mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-01-29 10:15:43 +00:00
f1daf4841f
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
23 lines
901 B
JavaScript
23 lines
901 B
JavaScript
module.exports = {
|
|
__init__: [ 'modeling', 'bpmnUpdater' ],
|
|
__depends__: [
|
|
require('./behavior'),
|
|
require('../rules'),
|
|
require('../ordering'),
|
|
require('../replace'),
|
|
require('diagram-js/lib/command'),
|
|
require('diagram-js/lib/features/tooltips'),
|
|
require('diagram-js/lib/features/label-support'),
|
|
require('diagram-js/lib/features/attach-support'),
|
|
require('diagram-js/lib/features/selection'),
|
|
require('diagram-js/lib/features/change-support'),
|
|
require('diagram-js/lib/features/space-tool')
|
|
],
|
|
bpmnFactory: [ 'type', require('./BpmnFactory') ],
|
|
bpmnUpdater: [ 'type', require('./BpmnUpdater') ],
|
|
elementFactory: [ 'type', require('./ElementFactory') ],
|
|
modeling: [ 'type', require('./Modeling') ],
|
|
layouter: [ 'type', require('./BpmnLayouter') ],
|
|
connectionDocking: [ 'type', require('diagram-js/lib/layout/CroppingConnectionDocking') ]
|
|
};
|