Commit Graph

1593 Commits

Author SHA1 Message Date
Nico Rehwaldt 15596ef97c test(modeling): verify correct label adjustment 2018-07-11 13:10:18 +02:00
Nico Rehwaldt abbe54912f test(modeling): correct test cases
Ensure the test cases are not affected by accidential
automatic label adjumstment (TM).
2018-07-11 13:09:40 +02:00
Philipp Fromme 82a37e7253 chore(test): clean up test setup 2018-07-09 12:30:45 +02:00
Nico Rehwaldt 36613c5cdf 2.3.1 2018-06-28 10:28:53 +02:00
Nico Rehwaldt 3d4c5c054c chore(CHANGELOG): update to v2.3.1 2018-06-28 10:25:46 +02:00
Nico Rehwaldt cec9d08d61 fix(draw): revert to Arial as default font
This partially reverts commit 891cf4ac0c
which set `sans-serif` as the default font.

Setting it back to Arial solves SVG export and rendering issues,
especially on platforms (Windows, Mac) where the default font
metrics differ highly from Arial.

NOTE: The font can still be easily overriden if integrators wish
to do so in order to give their users a more native look and feel.

Closes #819
2018-06-28 10:21:08 +02:00
Nico Rehwaldt 75c0880341 chore(replace): retain definitions where appropriate
* simplify implementation
* retain event definitions when switching from interrupting
  to non-interrupting and vice versa

Closes #799
2018-06-28 09:03:34 +02:00
Nico Rehwaldt 628e2d1019 chore(test/matchers): improve jsonEquals matcher 2018-06-28 09:03:34 +02:00
Nico Rehwaldt 087c9575b5 2.3.0 2018-06-26 15:57:03 +02:00
Nico Rehwaldt e0bc3f7ccf chore(CHANGELOG): bump to v2.3.0 2018-06-26 15:54:14 +02:00
Nico Rehwaldt 803888d4d9 chore(project): use diagram-js@2.4.0 2018-06-25 09:21:45 +02:00
Nico Rehwaldt 01f0ce9774 chore(CHANGELOG): fix formatting 2018-06-18 09:37:01 +02:00
Nico Rehwaldt 1a258850e4 2.2.1 2018-06-18 09:26:57 +02:00
Nico Rehwaldt 85cece3c57 chore(CHANGELOG): update to v2.2.1 2018-06-18 09:23:49 +02:00
Nico Rehwaldt 300e7010c4 fix(modeling): correct DataStoreBehavior updating multiple stores 2018-06-18 09:21:18 +02:00
Philipp Fromme 757d358be4 chore(CHANGELOG): update 2018-06-13 16:13:42 +02:00
Philipp Fromme 9c70c04aa4 2.2.0 2018-06-13 16:10:42 +02:00
Philipp Fromme e1b8e54635 chore(project): bump diagram-js dependency 2018-06-13 15:36:11 +02:00
Philipp Fromme eab44234f1 chore(CHANGELOG): update 2018-06-13 15:04:19 +02:00
Philipp Fromme 5cc28d5d55 fix(modeling): apply DataStoreBehavior in collaboration only
* updating parents of datastores in the root is only
  necessary when deleting a subprocess in a collaboration

Related to camunda/camunda-modeler#823
2018-06-13 13:48:39 +02:00
Nico Rehwaldt c7103d8f07 chore(CHANGELOG): update 2018-06-13 11:12:44 +02:00
Nico Rehwaldt 834ac7db77 fix(draw): adjust center-middle aligned label padding 2018-06-13 11:09:09 +02:00
Nico Rehwaldt fb5fccb331 style(modeling): use constant instead of magic string 2018-06-13 11:08:46 +02:00
Nico Rehwaldt 694800d51a chore(CHANGELOG): update 2018-06-13 11:02:55 +02:00
Philipp Fromme 100f3fb2ee fix(label-behavior): text annotation resizing after text property change
Depends on bpmn-io/diagram-js#259

Related to camunda/camunda-modeler#631
2018-06-13 11:02:55 +02:00
Nico Rehwaldt 3c87716895 feat(viewer): emit export events
This makes the viewer emit events during SVG and XML export.

These events allow others to hook in, i.e. to trigger additional _save_
actions.

Closes #811
2018-06-12 15:44:52 +02:00
Nico Rehwaldt e8dfccedea chore(project): bump devDependency versions
Addresses the most urgent <npm audit> issues.
2018-06-12 09:43:03 +02:00
Nico Rehwaldt 6c081d854f chore(label-editing): remove businessObject name on empty text
The following two actions will now unset the
business objects name property:

* deleting external label
* entering empty text via direct editing
2018-06-11 11:39:08 +02:00
Nico Rehwaldt a7a1743df0 fix(modeling): properly cascade label deletion
Ensure we execute the following nicely:

* unset name -> remove label shape
* remove label shape -> unset name
2018-06-11 11:39:08 +02:00
Philipp Fromme 8bb34dacb2 chore(CONTRIBUTING): add ES code style hint 2018-06-07 13:40:50 +02:00
Nico Rehwaldt 4ade805f3d style(modeling): use constant instead of magic string 2018-06-06 14:31:31 +02:00
Nico Rehwaldt 2a940d9a82 chore(CHANGELOG): update 2018-06-06 14:29:20 +02:00
Nico Rehwaldt fcf7eb042c chore(project): drop wiredeps
* run CI against released libraries
2018-06-06 14:24:11 +02:00
Philipp Fromme 4a0f6da814 fix(label-behavior): properly check for name property change
Related to camunda/camunda-modeler#824
2018-06-06 13:35:57 +02:00
Philipp Fromme a3a597f34b chore(CHANGELOG): update 2018-05-29 17:52:24 +02:00
Philipp Fromme 909d3896c2 2.1.0 2018-05-29 16:23:56 +02:00
Philipp Fromme 0780fc7b89 chore(CHANGELOG): update 2018-05-29 16:02:49 +02:00
Philipp Fromme 88545a6461 chore(project): bump diagram-js dependency 2018-05-29 16:01:06 +02:00
Nico Rehwaldt 7a27fe3c9f chore(project): bump diagram-js-direct-editing version
Allows fontWeight and fontFamily to be propagated.
2018-05-29 11:58:15 +02:00
Philipp Fromme 891cf4ac0c feat(draw+modeling): support lineHeight
* take numeric line height into account when
  rendering text labels
* take line height into account when directly
  editing labels
* use default line height of 1.2 for text rendering

Closes #803
2018-05-29 11:58:15 +02:00
Nico Rehwaldt b1a4e08ddd feat(modeling): assign ID when creating bpmn:LaneSet 2018-05-28 09:55:30 +02:00
Nico Rehwaldt a973665f6c chore(CHANGELOG): add text rendering entry 2018-05-25 14:11:07 +02:00
Nico Rehwaldt 24c6dd2414 2.1.0-0 2018-05-24 16:35:06 +02:00
Nico Rehwaldt 4bb270f192 chore(draw): unify text rendering into service
A newly introduced TextRenderer is responsible for text
rendering and text related bounds computation.

This removes a bunch of code duplication, too.
2018-05-24 16:26:01 +02:00
Nico Rehwaldt 4cd0a01df6 chore(project): bump to diagram-js@2.1.1 2018-05-24 16:22:51 +02:00
Philipp Fromme 7537757357 feat(labels): labels can be deleted
Related to camunda/camunda-modeler#243
2018-05-24 16:22:51 +02:00
Nico Rehwaldt 114c81d763 chore(CHANGELOG): update 2018-05-24 15:03:52 +02:00
Nico Rehwaldt 0b66b77483 chore(draw): retrieve default colors from bpmnRenderer config
Related to #713
2018-05-24 15:03:52 +02:00
Nico Rehwaldt 290b2f6121 chore(test): collapse completed test containers 2018-05-24 14:21:09 +02:00
Nico Rehwaldt f973ce807a test(draw): add colored labels to test diagram 2018-05-24 14:21:09 +02:00