Skip to content

Commit 0fb5f35

Browse files
wumailboyongjiong
authored andcommitted
fix(extension): change default value of cancelActivity
1 parent ad0d21a commit 0fb5f35

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

packages/extension/src/bpmn-adapter/bpmnIds.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class IDS {
66
this._ids = new Set();
77
}
88
generateId() {
9-
const id = 'xxxxxxxx'.replace(/[x]/g, (c) => {
9+
const id = 'xxxxxxx'.replace(/[x]/g, (c) => {
1010
const r = (Math.random() * 16) | 0;
1111
const v = c === 'x' ? r : (r & 0x3) | 0x8;
1212
return v.toString(16);

packages/extension/src/bpmn-elements/presets/Event/boundaryEventFactory.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ export function BoundaryEventFactory(lf: any): {
4848
cx: x,
4949
cy: y,
5050
r,
51-
strokeDasharray: cancelActivity ? '5,5' : '',
51+
strokeDasharray: cancelActivity ? '' : '5,5',
5252
strokeWidth: 1.5,
5353
}),
5454
h('circle', {
5555
...style,
5656
cx: x,
5757
cy: y,
5858
r: r - 3,
59-
strokeDasharray: cancelActivity ? '5,5' : '',
59+
strokeDasharray: cancelActivity ? '' : '5,5',
6060
strokeWidth: 1.5,
6161
}),
6262
i,
@@ -82,7 +82,7 @@ export function BoundaryEventFactory(lf: any): {
8282

8383
data.properties = {
8484
attachedToRef: '',
85-
cancelActivity: false,
85+
cancelActivity: true,
8686
...properties,
8787
...data.properties,
8888
};

packages/extension/src/bpmn-elements/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class IDS {
2525
this._ids = new Set();
2626
}
2727
generateId() {
28-
const id = 'xxxxxxxx'.replace(/[x]/g, (c) => {
28+
const id = 'xxxxxxx'.replace(/[x]/g, (c) => {
2929
const r = (Math.random() * 16) | 0;
3030
const v = c === 'x' ? r : (r & 0x3) | 0x8;
3131
return v.toString(16);

packages/extension/src/bpmn/getBpmnId.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class IDS {
66
this._ids = new Set();
77
}
88
generateId() {
9-
const id = 'xxxxxxxx'.replace(/[x]/g, (c) => {
9+
const id = 'xxxxxxx'.replace(/[x]/g, (c) => {
1010
const r = (Math.random() * 16) | 0;
1111
const v = c === 'x' ? r : (r & 0x3) | 0x8;
1212
return v.toString(16);

0 commit comments

Comments
 (0)