Commit Graph

1647 Commits

Author SHA1 Message Date
Maciej Barelkowski 6c191590b5 test(modeling/layout): expect layout on reconnect end 2019-04-18 16:06:44 +00:00
Maciej Barelkowski 411da58d43 chore(modeling): remove reconnect listeners
Listeners are triggered via layout event.
2019-04-18 16:06:44 +00:00
Maciej Barelkowski 6a396fb947 test(modeling/layout): add integration test for reconnection 2019-04-18 16:06:44 +00:00
Philipp Fromme 76ed2b4c26 fix(tests): fix Firefox 2019-04-18 14:42:01 +00:00
Nico Rehwaldt 65e4a1ab19 test(draw): double check marker coloring
* improves color detection to not fail on CI
* verifies message flow markers are being re-used
2019-04-18 14:42:01 +00:00
Nico Rehwaldt f106187a98 test(draw): in-source colors diagram
* don'r rely on diagram in fixtures
2019-04-18 14:42:01 +00:00
Nico Rehwaldt 13e3752f94 fix(draw): render hex and rgb encoded color markers
Until now we did not properly sanitize the IDs we create for colored
markers. This would make the marker retrival fail with fill and
stroke colors encoded in hex and rgb(a, b, c) form.

This commit improves the situation by removing forbidden chars from
the marker ID.

Closes #981
Related to camunda/camunda-modeler#1342
2019-04-18 14:42:01 +00:00
Maciej Barełkowski cfe0da7315
chore(PULL_REQUEST_TEMPLATE): fix typo 2019-04-18 16:07:18 +02:00
Maciej Barelkowski 0affb3b3bc test(Viewer): simplify multiple-diagrams test cases 2019-04-16 15:20:12 +02:00
Maciej Barelkowski 87c1d2d142 test(Viewer): expect no warnings when DIs use same elements 2019-04-16 15:20:12 +02:00
Maciej Barelkowski a7c0bb8f57 test(Viewer): make sure it opens only selected diagram 2019-04-16 15:20:12 +02:00
Nico Rehwaldt 7b03e5289a test(import): verify duplicate DI import behavior 2019-04-16 15:20:12 +02:00
Nico Rehwaldt ba987734f8 test(Viewer): make diagram names human readable 2019-04-16 15:20:12 +02:00
Nico Rehwaldt 2f99cff34a test(Viewer): verify non-args #open 2019-04-16 15:20:12 +02:00
Nico Rehwaldt b1ee678fe3 test(Viewer): split config -> container handling into own describe 2019-04-16 15:20:12 +02:00
Nico Rehwaldt a78f8037c7 test(Viewer): group multiple diagram handling 2019-04-16 15:20:12 +02:00
Nico Rehwaldt daee95743d chore(Viewer): type BPMNDiagram arg where possible 2019-04-16 15:20:12 +02:00
Valerio Spadaro 3f0583ad5f feat(Viewer): add #open method
This adds a method to switch displayed diagram without reimporting
xml via

```
var viewer = new Viewer({ container: container });
viewer.importXML(xml, diagramId, done);

var diagrams = viewer.getDefinitions().diagrams;
viewer.open(diagrams[1], done);
```
2019-04-16 15:20:12 +02:00
Valerio Spadaro 1c0585aaaf feat(Viewer): allow to select diagram to view
This introduces a new parameter to `Viewer#importXML`
which enables to choose the diagram to display.

```
var viewer = new Viewer({ container: container });
viewer.importXML(xml, diagramId, done);
```

Closes #87
2019-04-16 15:20:12 +02:00
Maciej Barelkowski 0c71ad30a0 feat(Viewer): remove businessObject#di binding on #clear
Closes #978
2019-04-16 15:10:43 +02:00
Maciej Barelkowski 00b7d9ecc2 fix(import/BpmnTreeWalker): pass context to unhandled process handler 2019-04-16 09:15:14 +00:00
Nico Rehwaldt eadcbc0a7b chore(project): bump dev dependencies 2019-04-12 17:42:41 +02:00
Nico Rehwaldt e9f99b00c7 chore(ci): add wiredeps script 2019-04-12 17:42:08 +02:00
Philipp Fromme b596c6dd06 feat(snapping): add grid snapping
Related to #973
2019-04-12 17:42:08 +02:00
Nico Rehwaldt 9c8294e2c2 chore(project): update screencast
* higher resolution
* smaller in size
2019-04-11 09:35:56 +02:00
Nico Rehwaldt 0edd79fe22 chore(CHANGELOG): update 2019-04-10 21:13:50 +02:00
Maciej Barelkowski 8eced8a3fb test(modeling): ensure layout is done after element removal
* adjust test suite to pass with diagram-js@3.2
* verify new cropping behavior
* verify #940 is fixed
2019-04-10 19:08:49 +00:00
Maciej Barelkowski 6f7925080c chore(modeling/BpmnUpdater): remove now unnecessary crop on reconnect
As of diagram-js@3.2.0 layouting will be triggered
on reconnectStart / reconnectEnd.

Related to #940
2019-04-10 19:08:49 +00:00
Maciej Barelkowski bc586d0d52 chore(project): bump diagram-js
Closes #940
2019-04-10 19:08:49 +00:00
Nico Rehwaldt 11e286593d chore(project): bump dev dependencies
This mitigates several security audit warnings.
2019-04-09 16:59:53 +02:00
Nico Rehwaldt 6c59388b04
chore(CHANGELOG): update
* add forgotten about entries
2019-04-09 15:55:50 +02:00
Gustavo E. Jimenez Folta efc68be2d4 3.3.1 2019-04-08 10:44:19 +02:00
Gustavo E. Jimenez Folta 990816b2a0 chore(CHANGELOG): update to v3.3.1 2019-04-08 10:38:42 +02:00
Gustavo E. Jimenez Folta 2df5215d70 chore(deps): bump diagram-js-direct-editing 1.4.1 -> 1.4.2 2019-04-08 10:35:18 +02:00
Gustavo Jiménez 1ae80a9990 fix(changelog): add missing v3.2.3 release note 2019-04-01 11:45:34 +00:00
Nico Rehwaldt faca2d5c25 3.3.0 2019-03-29 15:01:07 +01:00
Nico Rehwaldt a9c1a0fc04 chore(CHANGELOG): update to v3.3.0 2019-03-29 14:57:15 +01:00
Nico Rehwaldt 3348c9e207 style(project): reformat test diagram 2019-03-29 13:21:34 +00:00
Nico Rehwaldt 8ca4c1d7b0 feat(modeling): allow basic movement of DataInput / DataOutput
Allow moving DataInput / DataOutput as
long as they do not leave their original
container.

Related to #951
2019-03-29 13:21:34 +00:00
Nico Rehwaldt fe9d4ff06d feat(modeling): ensure wrapping DataInput/Output in participant works 2019-03-29 13:21:34 +00:00
Nico Rehwaldt 8c49cb679b fix(modeling): properly handle DataInput / DataOutput move
Closes #961
2019-03-29 13:21:34 +00:00
Nico Rehwaldt 4c270a01e4 test(Modeler): add data input / output editing spec 2019-03-26 11:55:36 +01:00
Nico Rehwaldt 2fff30a284 feat(label-editing): support data input/output
Related to #951
2019-03-26 11:55:36 +01:00
Nico Rehwaldt 89719de3be feat(import): render DataInput and DataOutput labels
Related to #951
Related to camunda/camunda-modeler#1324
2019-03-26 11:55:36 +01:00
Philipp Fromme d8dbc95279 3.2.3 2019-03-25 14:41:56 +01:00
Philipp Fromme 8a96f0ca61 chore(CHANGELOG): update to v3.2.3 2019-03-25 14:35:25 +01:00
Philipp Fromme 0cfd960cdd chore(project): bump diagram-js-direct-editing dependency 2019-03-25 14:12:48 +01:00
Niklas Kiefer ff6dea4ce0 3.2.2 2019-03-13 15:47:29 +01:00
Niklas Kiefer cf893f900e chore(CHANGELOG): update to v3.2.2 2019-03-13 14:38:03 +00:00
Nico Rehwaldt 1538bd8a9e style(tests): use appropriate chai matcher 2019-03-12 08:56:03 +00:00