feat(palette): integrate lane symbol

This commit is contained in:
Nico Rehwaldt 2015-08-11 11:53:48 +02:00 committed by pedesen
parent d520574d1a
commit fe63cb87a4
2 changed files with 14 additions and 1 deletions

View File

@ -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
}
} }
}); });

View File

@ -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);
})); }));
}); });