20 Commits

Author SHA1 Message Date
5428ac8652 chore(moddle-copy): convert to ES6 2025-04-25 10:45:35 +02:00
9f4caca8a6 chore: simplify 2025-04-25 10:45:35 +02:00
ea35d60855 fix: event references are not lost when switching elements
Closes #2249, 1906
Related to: https://github.com/camunda/camunda-modeler/issues/4863
2025-04-25 10:45:35 +02:00
16473dc5ed chore(refactor): removed is 2025-04-25 10:45:35 +02:00
614163e96c chore: use @return instead of @returns 2023-04-19 12:18:42 +02:00
0974a196da chore: fix more JSDocs 2023-04-19 12:18:42 +02:00
f34e3c79e1 fix(copy-paste): fix ModdleCopy JSDoc 2023-04-19 12:18:42 +02:00
1ca6c65421 fix(copy-paste): only claim existing IDs 2022-08-16 13:14:13 +00:00
66c3612eb6 feat(copy-paste): implement group copy in a safe manner
* properly copy category and category value
* create category value when creating group label
2022-08-16 13:14:13 +00:00
ab6db7b073 feat(copy-paste): clone element on copy
Ensures copy is unaffected by edit operations after copy.

Closes https://github.com/bpmn-io/bpmn-js/issues/798
2022-08-16 13:14:13 +00:00
d87ccac2be feat(copy-paste): allow cloning of elements
Clone will copy elements in a side-effect free manner, i.e. not perform any wiring.
2022-08-16 13:14:13 +00:00
4ccf488a9f fix(moddle-copy): primitive arrays cloning
Closes https://github.com/bpmn-io/bpmn-js/issues/1518
2022-05-20 08:54:01 +00:00
39d7b9e59b fix(moddle-copy): properly copy ids
Related to https://github.com/camunda/camunda-modeler/issues/1410
2021-10-20 17:07:26 +02:00
1253326768 fix(copy-paste): do not create new id if unnecessary
Related to https://github.com/camunda/camunda-modeler/issues/1410
2021-10-15 13:07:00 +02:00
707257e020 fix(copy-paste): emit <moddleCopy.canSetCopiedProperty> with existing property 2020-03-02 13:08:42 +00:00
0143595230 Merge branch 'master' into develop 2019-09-25 13:34:54 +02:00
a74d838dc7 fix(copy-paste): do NOT copy generic properties
Related to camunda/camunda-modeler#1507
2019-09-25 13:09:00 +02:00
e65809f246 docs(project): correct spelling 2019-09-09 12:21:33 +02:00
6035f2ec22 chore(copy-paste): use #has util for hasOwnProperty check 2019-08-13 13:37:09 +02:00
194b963959 chore(copy-paste): rework and base upon diagram-js@5
* use <copyPaste.canCopyProperty> event to copy category value when copying group
* add camunda-bpmn-moddle for integration tests

BREAKING CHANGES

* CopyPaste: remove <property.clone>, add <moddleCopy.canCopyProperties>, <moddleCopy.canCopyProperty>, <moddleCopy.canSetCopiedProperty>
* BpmnRules: removed <elements.paste> rule in favor of <elements.create> rule
* BpmnRules: removed <element.paste> rule
* ElementFactory: use <attrs.di> property instead of <attrs.colors> for fill and stroke when creating element through ElementFactory#createBpmnElement
2019-08-07 16:03:55 +00:00