Nico Rehwaldt f1daf4841f fix(modeling): support newBounds
This fixes a bug where Modeling#updateLabel would not work on
text annotations, because these need to have labels pre-configured.

* Modeling#updateLabel now takes the (optional) newBounds
* newBounds must now explicitly be passed to trigger resize
  for text annotations
* newBounds is _only_ passed for text annotations via
  LabelEditingProvider (it was discarded before anyway)
* lib/features/label-editing did not depend on lib/features/modeling
  for historical reasons. It now uses the offical #updateLabel
  API provided by Modeling
* Localize test diagrams

Closes #753
2018-01-29 17:20:41 +01:00

16 lines
536 B
JavaScript

module.exports = {
__depends__: [
require('diagram-js/lib/features/align-elements'),
require('diagram-js/lib/features/editor-actions'),
require('diagram-js/lib/features/hand-tool'),
require('diagram-js/lib/features/lasso-tool'),
require('diagram-js/lib/features/space-tool'),
require('diagram-js-direct-editing'),
require('../global-connect'),
require('../copy-paste'),
require('../distribute-elements'),
require('../search')
],
editorActions: [ 'type', require('./BpmnEditorActions') ]
};