@processmaker/modeler 1.30.0 → 1.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/modeler.common.js +128 -115
- package/dist/modeler.common.js.map +1 -1
- package/dist/modeler.umd.js +128 -115
- package/dist/modeler.umd.js.map +1 -1
- package/dist/modeler.umd.min.js +2 -2
- package/dist/modeler.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/crown/crownButtons/associationFlowButton.vue +14 -1
- package/src/components/modeler/Selection.vue +1 -1
package/package.json
CHANGED
|
@@ -20,6 +20,8 @@ import connectIcon from '@/assets/connect-artifacts.svg';
|
|
|
20
20
|
import CrownButton from '@/components/crown/crownButtons/crownButton';
|
|
21
21
|
import { direction } from '@/components/nodes/association/associationConfig';
|
|
22
22
|
import Node from '@/components/nodes/node';
|
|
23
|
+
import store from '@/store';
|
|
24
|
+
import { V } from 'jointjs';
|
|
23
25
|
|
|
24
26
|
export default {
|
|
25
27
|
components: { CrownButton },
|
|
@@ -29,12 +31,23 @@ export default {
|
|
|
29
31
|
connectIcon,
|
|
30
32
|
};
|
|
31
33
|
},
|
|
34
|
+
computed: {
|
|
35
|
+
paper: () => store.getters.paper,
|
|
36
|
+
},
|
|
32
37
|
methods: {
|
|
33
38
|
addAssociation(cellView, evt, x, y) {
|
|
34
39
|
this.$emit('toggle-crown-state', false);
|
|
40
|
+
const { clientX, clientY } = cellView;
|
|
41
|
+
let point = null;
|
|
42
|
+
if (cellView){
|
|
43
|
+
point = V(this.paper.viewport).toLocalPoint(clientX, clientY);
|
|
44
|
+
}
|
|
35
45
|
const associationLink = this.moddle.create('bpmn:Association', {
|
|
36
46
|
sourceRef: this.shape.component.node.definition,
|
|
37
|
-
targetRef: {
|
|
47
|
+
targetRef: {
|
|
48
|
+
x: x ? x : point.x,
|
|
49
|
+
y: y ? y : point.y,
|
|
50
|
+
},
|
|
38
51
|
associationDirection: direction.none,
|
|
39
52
|
});
|
|
40
53
|
|
|
@@ -387,7 +387,7 @@ export default {
|
|
|
387
387
|
// remove from selection the selected flows that belongs to a selected pools
|
|
388
388
|
if (shape.model.component && flowTypes.includes(shape.model.component.node.type)) {
|
|
389
389
|
const parent = shape.model.getParentCell();
|
|
390
|
-
if (parent.component && parent.component.node.pool) {
|
|
390
|
+
if (parent && parent.component && parent.component.node.pool) {
|
|
391
391
|
return !selectedPoolsIds.includes(parent.component.node.pool.component.node.id);
|
|
392
392
|
}
|
|
393
393
|
}
|