feat(palette): integrate lane symbol
This commit is contained in:
parent
d520574d1a
commit
fe63cb87a4
|
@ -58,6 +58,10 @@ PaletteProvider.prototype.getPaletteEntries = function(element) {
|
||||||
create.start(event, elementFactory.createParticipantShape(collapsed));
|
create.start(event, elementFactory.createParticipantShape(collapsed));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function createLane(event) {
|
||||||
|
create.start(event, elementFactory.createShape({ type: 'bpmn:Lane' }));
|
||||||
|
}
|
||||||
|
|
||||||
assign(actions, {
|
assign(actions, {
|
||||||
'lasso-tool': {
|
'lasso-tool': {
|
||||||
group: 'tools',
|
group: 'tools',
|
||||||
|
@ -110,6 +114,15 @@ PaletteProvider.prototype.getPaletteEntries = function(element) {
|
||||||
dragstart: createParticipant,
|
dragstart: createParticipant,
|
||||||
click: createParticipant
|
click: createParticipant
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
'create.lane': {
|
||||||
|
group: 'collaboration',
|
||||||
|
className: 'icon-lane',
|
||||||
|
title: 'Create Lane',
|
||||||
|
action: {
|
||||||
|
dragstart: createLane,
|
||||||
|
click: createLane
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ describe('features/palette', function() {
|
||||||
var entries = domQuery.all('.entry', paletteElement);
|
var entries = domQuery.all('.entry', paletteElement);
|
||||||
|
|
||||||
// then
|
// then
|
||||||
expect(entries.length).to.equal(9);
|
expect(entries.length).to.equal(10);
|
||||||
}));
|
}));
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue