This may have unwanted side-effects, i.e. when using id
validation and caching.
We must ensure the meta-model element is actually instance stateless in
order to safely cache it.
It is now possible to add bendpoints to flows or drag bendpoints to
update their position / trigger reconnects.
Upon bendpoint move a rule is checked to figure out whether or not a
bendpoint operation is allowed or not.
Closes#123Closes#138Closes#139Closes#165
This commit puts all import related stuff into the import module.
The core module remains as an entry point to require the basic modules
needed by bpmn-js. At the time this is { import, draw }.
This commit fixes the SVG export of bpmn-js.
* exports the base layer only (no overlays, no markers)
* assigns correct view box to exported SVG
Related to #97
This enables users to instantiate Viewers/Modelers via
```
new Viewer({
additionalModules: [ ... ]
});
```
to bootstrap their own modules with the viewer without overriding the
existing ones.
This commit removes the build dependency on brfs by inlining the bpmn-js
logo directly into the source code.
Because of that users have an easier time integrating the library.
This commit removes the behavior that width and height of a viewer are
automatically set to 100% unless specified otherwise.
The width and height are now optional attributes, that are only applied
if given. This way, users may still style their elements via CSS.
The project logo now properly embeds in the Viewer and links to bpmn.io.
This way, we are able to ship it as part of a bpmn-js bundle.
In addition to that change this commit upgrades to the latest diagram-js
release, too which adds support for Diagram#destroy().
Closes#15
This commit removes the bpmn model specific parts that have been
outsourced to the project bpmn-io/bpmn-moddle.
In addition it removes BPMN 2.0 diagrams that were crafted
especially for tests of that functionality.
Closes#25
This commit upgrades the code base to the latest diagram-js changes and
adds a component called BpmnRegistry that can be used to retrieve a
certain BPMN/DI element from a shape/connection id.
Related to #19