feat(editor-actions): add set color editor action

Related to camunda/camunda-modeler#445
This commit is contained in:
Philipp Fromme 2016-12-13 11:21:57 +01:00
parent 7f99263a5e
commit c308151474
2 changed files with 8 additions and 1 deletions

View File

@ -72,6 +72,13 @@ function BpmnEditorActions(
alignElements.trigger(aligneableElements, type); alignElements.trigger(aligneableElements, type);
} }
}, },
setColor: function(opts) {
var currentSelection = selection.get();
if (currentSelection.length) {
modeling.setColor(currentSelection, opts);
}
},
directEditing: function() { directEditing: function() {
var currentSelection = selection.get(); var currentSelection = selection.get();

View File

@ -36,7 +36,7 @@ describe('features - keyboard', function() {
it('should include triggers inside editorActions', inject(function(editorActions) { it('should include triggers inside editorActions', inject(function(editorActions) {
// then // then
expect(editorActions.length()).to.equal(18); expect(editorActions.length()).to.equal(19);
})); }));