Commit Graph

1372 Commits

Author SHA1 Message Date
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
Nico Rehwaldt 3a980af0e7 test(draw): run tests in test containers 2018-05-24 14:21:09 +02:00
Philipp Fromme dc1f18a497 feat(bpmn-renderer): accept default fill and stroke color
Related to #797
2018-05-24 07:39:30 +02:00
Nico Rehwaldt 3321893252 2.0.1 2018-05-22 23:56:53 +02:00
Nico Rehwaldt f123e5ab58 chore(CHANGELOG): update 2018-05-22 23:53:08 +02:00
Nico Rehwaldt f5fcc45199 2.0.0 2018-05-22 09:42:18 +02:00
Nico Rehwaldt c17e5ee3d9 chore(CHANGELOG): update to v2.0.0 2018-05-22 08:57:15 +02:00
Philipp Fromme 690417b389 feat(modeling): allow data store anywhere in collaboration
ensure valid BPMN 2.0 parent when

* creating/moving data store
* removing participant
* turning process into collaboration
* turning collaboration into process

Closes #483
2018-05-17 15:09:37 +02:00
Nico Rehwaldt 0f62183410 test(modeling): verify missing bpmndi:BPMNLabel update behavior 2018-05-17 14:57:54 +02:00
Nico Rehwaldt b98dd6fe95 fix(modeling): correctly handle missing bpmndi:Label bounds
Closes #794
2018-05-17 14:57:54 +02:00
Nico Rehwaldt 92b0d4eced test(draw): unskip color spec 2018-05-17 11:26:38 +02:00
Philipp Fromme 537a55bc43 chore(CHANGELOG): update CHANGELOG 2018-05-14 16:11:42 +02:00
pedesen 17896df65c chore(contextPadProvider): adjust popupMenu method calls
Since breaking changes were introduced in diagram-js
popupMenu methos calls need to be adjusted

* call popupMenu#open with element, id and position as params
* call popupMenu#isEmpty with element and providerId as params
* remove popupMenu#create call
2018-05-14 15:13:29 +02:00
Philipp Fromme 6b2d4b47da chore(project): bump diagram-js dependency 2018-05-14 15:13:18 +02:00
Nico Rehwaldt 6bbbb54855 1.3.3 2018-05-14 11:33:40 +02:00
Nico Rehwaldt a63ff8ab11 chore(project): bump bpmn-moddle version 2018-05-14 11:30:12 +02:00
Nico Rehwaldt 15df6317a7 1.3.2 2018-05-07 13:54:50 +02:00
Nico Rehwaldt fb2b3d40f6 chore(project): bump bpmn-moddle version 2018-05-07 13:50:29 +02:00
Nico Rehwaldt 77b18bd25b 1.3.1 2018-05-04 10:48:49 +02:00
Nico Rehwaldt 16696b4f37 chore(CHANGELOG): bump to v1.3.1 2018-05-04 10:44:49 +02:00
Nicolas Boissel-Dallier 9379abafcc fix(auto-place): fix infinite loop during auto-place
* NaN was returned when autoplacing an element after
  a boundary event, attached to its hosts corner.

Closes #788
2018-05-04 10:40:01 +02:00
Nico Rehwaldt 327eb90140 style(tests): use not.to matchers
...in favor of to.not.
2018-05-03 16:37:24 +02:00