@operato/scene-bpmn 1.1.8 → 1.1.9
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/CHANGELOG.md +10 -0
- package/dist/base/bpmn-container-base.js +2 -2
- package/dist/base/bpmn-container-base.js.map +1 -1
- package/dist/base/bpmn-control-base.js +2 -2
- package/dist/base/bpmn-control-base.js.map +1 -1
- package/dist/bpmn-event.d.ts +9 -3
- package/dist/bpmn-event.js +28 -7
- package/dist/bpmn-event.js.map +1 -1
- package/dist/bpmn-expanded-subprocess.d.ts +13 -2
- package/dist/bpmn-expanded-subprocess.js +91 -3
- package/dist/bpmn-expanded-subprocess.js.map +1 -1
- package/dist/bpmn-flow.d.ts +8 -2
- package/dist/bpmn-flow.js +8 -0
- package/dist/bpmn-flow.js.map +1 -1
- package/dist/bpmn-subprocess.d.ts +13 -2
- package/dist/bpmn-subprocess.js +91 -3
- package/dist/bpmn-subprocess.js.map +1 -1
- package/dist/bpmn-task.js +14 -2
- package/dist/bpmn-task.js.map +1 -1
- package/dist/templates/bpmn-flow.d.ts +11 -4
- package/dist/templates/bpmn-flow.js +11 -4
- package/dist/templates/bpmn-flow.js.map +1 -1
- package/dist/templates/index.d.ts +24 -2
- package/logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json +15 -5
- package/logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json +15 -0
- package/logs/application-2022-11-05-23.log +6 -0
- package/logs/application-2022-11-06-00.log +6 -0
- package/logs/application-2022-11-06-12.log +6 -0
- package/logs/connections-2022-11-05-23.log +35 -0
- package/logs/connections-2022-11-06-00.log +35 -0
- package/logs/connections-2022-11-06-12.log +35 -0
- package/package.json +2 -2
- package/src/base/bpmn-container-base.ts +3 -3
- package/src/base/bpmn-control-base.ts +3 -3
- package/src/bpmn-event.ts +36 -10
- package/src/bpmn-expanded-subprocess.ts +94 -3
- package/src/bpmn-flow.ts +9 -0
- package/src/bpmn-subprocess.ts +93 -3
- package/src/bpmn-task.ts +13 -2
- package/src/templates/bpmn-flow.ts +11 -4
- package/translations/en.json +5 -1
- package/translations/ko.json +5 -1
- package/translations/ms.json +5 -1
- package/translations/zh.json +5 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/logs/application-2022-11-04-11.log +0 -6
package/dist/bpmn-subprocess.js
CHANGED
|
@@ -29,6 +29,77 @@ const NATURE = {
|
|
|
29
29
|
type: 'checkbox',
|
|
30
30
|
label: 'call-activity',
|
|
31
31
|
name: 'callActivity'
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
type: 'checkbox',
|
|
35
|
+
label: 'transaction',
|
|
36
|
+
name: 'transaction'
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
type: 'checkbox',
|
|
40
|
+
label: 'interrupting',
|
|
41
|
+
name: 'interrupting'
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
type: 'select',
|
|
45
|
+
label: 'event',
|
|
46
|
+
name: 'event',
|
|
47
|
+
property: {
|
|
48
|
+
options: [
|
|
49
|
+
{
|
|
50
|
+
display: '',
|
|
51
|
+
value: ''
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
display: 'message',
|
|
55
|
+
value: 'message'
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
display: 'timer',
|
|
59
|
+
value: 'timer'
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
display: 'error',
|
|
63
|
+
value: 'error'
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
display: 'escalation',
|
|
67
|
+
value: 'escalation'
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
display: 'cancel',
|
|
71
|
+
value: 'cancel'
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
display: 'compensation',
|
|
75
|
+
value: 'compensation'
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
display: 'conditional',
|
|
79
|
+
value: 'conditional'
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
display: 'link',
|
|
83
|
+
value: 'link'
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
display: 'signal',
|
|
87
|
+
value: 'signal'
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
display: 'terminate',
|
|
91
|
+
value: 'terminate'
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
display: 'multiple',
|
|
95
|
+
value: 'multiple'
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
display: 'parallel multiple',
|
|
99
|
+
value: 'parallel-multiple'
|
|
100
|
+
}
|
|
101
|
+
]
|
|
102
|
+
}
|
|
32
103
|
}
|
|
33
104
|
],
|
|
34
105
|
help: '/bpmn/subprocess/subprocess'
|
|
@@ -39,17 +110,34 @@ export default class BPMNSubprocess extends BPMNControlBase {
|
|
|
39
110
|
}
|
|
40
111
|
render(ctx) {
|
|
41
112
|
var { left, top, width, height } = this.bounds;
|
|
42
|
-
const { callActivity } = this.state;
|
|
113
|
+
const { callActivity, interrupting, transaction } = this.state;
|
|
43
114
|
ctx.translate(left, top);
|
|
44
115
|
ctx.beginPath();
|
|
45
|
-
var radius =
|
|
116
|
+
var radius = 10;
|
|
46
117
|
ctx.moveTo(radius, 0);
|
|
47
118
|
ctx.arcTo(width, 0, width, height, radius);
|
|
48
119
|
ctx.arcTo(width, height, 0, height, radius);
|
|
49
120
|
ctx.arcTo(0, height, 0, 0, radius);
|
|
50
121
|
ctx.arcTo(0, 0, width, 0, radius);
|
|
122
|
+
if (transaction) {
|
|
123
|
+
const LINEGAP = 3;
|
|
124
|
+
radius -= LINEGAP;
|
|
125
|
+
ctx.moveTo(radius + LINEGAP, LINEGAP);
|
|
126
|
+
ctx.arcTo(width - LINEGAP, LINEGAP, width - LINEGAP, height - LINEGAP, radius);
|
|
127
|
+
ctx.arcTo(width - LINEGAP, height - LINEGAP, LINEGAP, height, radius);
|
|
128
|
+
ctx.arcTo(LINEGAP, height - LINEGAP, LINEGAP, LINEGAP, radius);
|
|
129
|
+
ctx.arcTo(LINEGAP, LINEGAP, width - LINEGAP, LINEGAP, radius);
|
|
130
|
+
}
|
|
51
131
|
this.drawFill(ctx);
|
|
52
|
-
|
|
132
|
+
if (callActivity) {
|
|
133
|
+
this.drawStroke(ctx, { lineWidth: 5 });
|
|
134
|
+
}
|
|
135
|
+
else {
|
|
136
|
+
this.drawStroke(ctx, {
|
|
137
|
+
lineWidth: transaction ? 1 : 2,
|
|
138
|
+
lineDash: interrupting ? 'dash' : 'solid'
|
|
139
|
+
});
|
|
140
|
+
}
|
|
53
141
|
ctx.beginPath();
|
|
54
142
|
const images = this.getMarkerImages() || [];
|
|
55
143
|
const start = (width - images.length * 16) / 2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bpmn-subprocess.js","sourceRoot":"","sources":["../src/bpmn-subprocess.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAc,MAAM,wBAAwB,CAAA;AAE9D,OAAO,eAAe,MAAM,0BAA0B,CAAA;AAEtD,MAAM,MAAM,GAAG;IACb,OAAO,EAAE,KAAK;IACd,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,KAAK;IAChB,UAAU,EAAE;QACV;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,MAAM;YACb,IAAI,EAAE,MAAM;SACb;QACD;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,gBAAgB;YACvB,IAAI,EAAE,eAAe;SACtB;QACD;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,cAAc;YACrB,IAAI,EAAE,cAAc;SACrB;QACD;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,OAAO;YACd,IAAI,EAAE,OAAO;SACd;QACD;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,eAAe;YACtB,IAAI,EAAE,cAAc;SACrB;KACF;IACD,IAAI,EAAE,6BAA6B;CACpC,CAAA;AAED,MAAM,CAAC,OAAO,OA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AAC,CAAA;AAErD,MAAM,OAAO,GAA+B;IAC1C,IAAI,EAAE;;;;;;;;;CASP;IACC,aAAa,EAAE;;;;;;;;;;;;GAYd;IACD,YAAY,EAAE;;;;;;;;;;;;;;;GAeb;IACD,UAAU,EAAE;;;;;;;;;;;;;;;;;GAiBX;IACD,KAAK,EAAE;;;;;;;;;;GAUN;CACF,CAAA","sourcesContent":["import { Component, Properties } from '@hatiolab/things-scene'\n\nimport BPMNControlBase from './base/bpmn-control-base'\n\nconst NATURE = {\n mutable: false,\n resizable: true,\n rotatable: false,\n properties: [\n {\n type: 'checkbox',\n label: 'loop',\n name: 'loop'\n },\n {\n type: 'checkbox',\n label: 'multi-instance',\n name: 'multiInstance'\n },\n {\n type: 'checkbox',\n label: 'compensation',\n name: 'compensation'\n },\n {\n type: 'checkbox',\n label: 'adhoc',\n name: 'adhoc'\n },\n {\n type: 'checkbox',\n label: 'call-activity',\n name: 'callActivity'\n }\n ],\n help: '/bpmn/subprocess/subprocess'\n}\n\nexport default class BPMNSubprocess extends BPMNControlBase {\n private markerImages?: HTMLImageElement[]\n\n static get nature() {\n return NATURE\n }\n\n render(ctx: CanvasRenderingContext2D) {\n var { left, top, width, height } = this.bounds\n const { callActivity } = this.state\n\n ctx.translate(left, top)\n ctx.beginPath()\n\n var radius = 9\n\n ctx.moveTo(radius, 0)\n ctx.arcTo(width, 0, width, height, radius)\n ctx.arcTo(width, height, 0, height, radius)\n ctx.arcTo(0, height, 0, 0, radius)\n ctx.arcTo(0, 0, width, 0, radius)\n\n this.drawFill(ctx)\n this.drawStroke(ctx, callActivity ? { lineWidth: 5 } : undefined)\n\n ctx.beginPath()\n\n const images = this.getMarkerImages() || []\n const start = (width - images.length * 16) / 2\n\n images.forEach((image, index) => {\n this.drawImage(ctx, image, start + index * 16, height - 16, 16, 16)\n })\n\n ctx.translate(-left, -top)\n }\n\n onchange(after: Properties, before: Properties) {\n if (['loop', 'multiInstance', 'adhoc', 'compensation', 'strokeStyle'].find(prop => prop in after)) {\n delete this.markerImages\n }\n }\n\n getMarkerImages(): HTMLImageElement[] | null | undefined {\n if (!this.markerImages) {\n const { strokeStyle } = this.state\n\n this.markerImages = Object.keys(MARKERS)\n .filter(key => key === 'subprocess' || this.state[key])\n .map(key => {\n let image = new Image()\n image.src =\n 'data:image/svg+xml;charset=UTF-8;base64,' + btoa(MARKERS[key].replace(/{{strokeColor}}/g, strokeStyle))\n return image\n })\n }\n\n return this.markerImages\n }\n}\n\nComponent.register('bpmn-subprocess', BPMNSubprocess)\n\nconst MARKERS: { [type: string]: string } = {\n loop: `\n<svg version=\"1.1\" id=\"Layer_3\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n viewBox=\"0 0 35 35\" style=\"enable-background:new 0 0 35 35;\" xml:space=\"preserve\">\n <style type=\"text/css\">\n .st0{fill:{{strokeColor}};}\n </style>\n <path class=\"st0\" d=\"M9.5,5.2C4.3,9.7,3.7,17.5,8.1,22.8L5,25.4l7.8,0.6l0.6-7.8L10.2,21c-3.5-4.1-3-10.1,1-13.6s10.1-3,13.6,1\n\ts3,10.1-1,13.6c-1.6,1.4-3.5,2.1-5.4,2.3l-0.2,2.8c2.6-0.2,5.3-1.1,7.4-3c5.2-4.5,5.8-12.3,1.3-17.5S14.7,0.8,9.5,5.2z\"/>\n</svg>\n`,\n multiInstance: `\n <svg version=\"1.1\" id=\"Layer_3\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n\t viewBox=\"0 0 35 35\" style=\"enable-background:new 0 0 35 35;\" xml:space=\"preserve\">\n <style type=\"text/css\">\n .st0{fill:{{strokeColor}};}\n </style>\n <g>\n <rect x=\"5.5\" y=\"1.9\" class=\"st0\" width=\"3.3\" height=\"25.3\"/>\n <rect x=\"15.9\" y=\"1.9\" class=\"st0\" width=\"3.3\" height=\"25.3\"/>\n <rect x=\"26.2\" y=\"1.9\" class=\"st0\" width=\"3.3\" height=\"25.3\"/>\n </g>\n </svg>\n `,\n compensation: `\n <svg version=\"1.1\" id=\"Layer_3\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n\t viewBox=\"0 0 35 35\" style=\"enable-background:new 0 0 35 35;\" xml:space=\"preserve\">\n <style type=\"text/css\">\n .st0{fill:{{strokeColor}};}\n </style>\n <g>\n <path class=\"st0\" d=\"M16.1,6.9v15.6l-7.8-7.8L16.1,6.9 M18.1,2.1L5.5,14.7l12.6,12.6V2.1L18.1,2.1z M5.5,14.7L5.5,14.7L5.5,14.7\n L5.5,14.7L5.5,14.7z\"/>\n </g>\n <g>\n <path class=\"st0\" d=\"M27.5,6.9v15.6l-7.8-7.8L27.5,6.9 M29.5,2.1L16.9,14.7l12.6,12.6V2.1L29.5,2.1z M16.9,14.7L16.9,14.7\n L16.9,14.7L16.9,14.7L16.9,14.7z\"/>\n </g>\n </svg>\n `,\n subprocess: `\n <svg version=\"1.1\" id=\"Layer_3\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n\t viewBox=\"0 0 35 35\" style=\"enable-background:new 0 0 35 35;\" xml:space=\"preserve\">\n <style type=\"text/css\">\n .st0{fill:none;stroke:{{strokeColor}};stroke-width:2;stroke-miterlimit:10;}\n .st1{fill:{{strokeColor}};} \n </style>\n <rect x=\"5.5\" y=\"2.5\" class=\"st0\" width=\"24\" height=\"24\"/>\n <g>\n <g>\n <rect x=\"16.4\" y=\"6\" class=\"st1\" width=\"2.1\" height=\"17\"/>\n </g>\n <g>\n <rect x=\"9\" y=\"13.4\" class=\"st1\" width=\"17\" height=\"2.1\"/>\n </g>\n </g>\n </svg>\n `,\n adhoc: `\n <svg version=\"1.1\" id=\"Layer_3\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n\t viewBox=\"0 0 35 35\" style=\"enable-background:new 0 0 35 35;\" xml:space=\"preserve\">\n <style type=\"text/css\">\n .st0{fill:{{strokeColor}};}\n </style>\n <path class=\"st0\" d=\"M29.2,10.3c-0.8,0.9-1.7,1.7-2.5,2.2c-0.8,0.5-1.6,0.8-2.4,0.8c-1,0-3-0.6-6.1-1.9C15,10.2,12.6,9.6,11,9.6\n\t\tc-2.1,0-3.9,0.7-5.5,1.9v6.9c0.1,0,0.3-0.2,0.6-0.6C7.9,16,9.5,15,10.9,15c0.8,0,2.9,0.6,6.1,1.9c3.3,1.2,5.7,1.8,7.1,1.8\n\t\tc2,0,3.8-0.6,5.3-1.8v-6.9C29.4,10.1,29.3,10.2,29.2,10.3z\"/>\n </svg>\n `\n}\n"]}
|
|
1
|
+
{"version":3,"file":"bpmn-subprocess.js","sourceRoot":"","sources":["../src/bpmn-subprocess.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAc,MAAM,wBAAwB,CAAA;AAE9D,OAAO,eAAe,MAAM,0BAA0B,CAAA;AAEtD,MAAM,MAAM,GAAG;IACb,OAAO,EAAE,KAAK;IACd,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,KAAK;IAChB,UAAU,EAAE;QACV;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,MAAM;YACb,IAAI,EAAE,MAAM;SACb;QACD;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,gBAAgB;YACvB,IAAI,EAAE,eAAe;SACtB;QACD;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,cAAc;YACrB,IAAI,EAAE,cAAc;SACrB;QACD;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,OAAO;YACd,IAAI,EAAE,OAAO;SACd;QACD;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,eAAe;YACtB,IAAI,EAAE,cAAc;SACrB;QACD;YACE,IAAI,EAAE,U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,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,IAAI,KAAK,CAAC,EAAE;YACjG,OAAO,IAAI,CAAC,YAAY,CAAA;SACzB;IACH,CAAC;IAED,eAAe;QACb,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE;YACtB,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAA;YAElC,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC;iBACrC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,YAAY,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;iBACtD,GAAG,CAAC,GAAG,CAAC,EAAE;gBACT,IAAI,KAAK,GAAG,IAAI,KAAK,EAAE,CAAA;gBACvB,KAAK,CAAC,GAAG;oBACP,0CAA0C,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,kBAAkB,EAAE,WAAW,CAAC,CAAC,CAAA;gBAC1G,OAAO,KAAK,CAAA;YACd,CAAC,CAAC,CAAA;SACL;QAED,OAAO,IAAI,CAAC,YAAY,CAAA;IAC1B,CAAC;CACF;AAED,SAAS,CAAC,QAAQ,CAAC,iBAAiB,EAAE,cAAc,CAAC,CAAA;AAErD,MAAM,OAAO,GAA+B;IAC1C,IAAI,EAAE;;;;;;;;;CASP;IACC,aAAa,EAAE;;;;;;;;;;;;GAYd;IACD,YAAY,EAAE;;;;;;;;;;;;;;;GAeb;IACD,UAAU,EAAE;;;;;;;;;;;;;;;;;GAiBX;IACD,KAAK,EAAE;;;;;;;;;;GAUN;CACF,CAAA","sourcesContent":["import { Component, Properties } from '@hatiolab/things-scene'\n\nimport BPMNControlBase from './base/bpmn-control-base'\n\nconst NATURE = {\n mutable: false,\n resizable: true,\n rotatable: false,\n properties: [\n {\n type: 'checkbox',\n label: 'loop',\n name: 'loop'\n },\n {\n type: 'checkbox',\n label: 'multi-instance',\n name: 'multiInstance'\n },\n {\n type: 'checkbox',\n label: 'compensation',\n name: 'compensation'\n },\n {\n type: 'checkbox',\n label: 'adhoc',\n name: 'adhoc'\n },\n {\n type: 'checkbox',\n label: 'call-activity',\n name: 'callActivity'\n },\n {\n type: 'checkbox',\n label: 'transaction',\n name: 'transaction'\n },\n {\n type: 'checkbox',\n label: 'interrupting',\n name: 'interrupting'\n },\n {\n type: 'select',\n label: 'event',\n name: 'event',\n property: {\n options: [\n {\n display: '',\n value: ''\n },\n {\n display: 'message',\n value: 'message'\n },\n {\n display: 'timer',\n value: 'timer'\n },\n {\n display: 'error',\n value: 'error'\n },\n {\n display: 'escalation',\n value: 'escalation'\n },\n {\n display: 'cancel',\n value: 'cancel'\n },\n {\n display: 'compensation',\n value: 'compensation'\n },\n {\n display: 'conditional',\n value: 'conditional'\n },\n {\n display: 'link',\n value: 'link'\n },\n {\n display: 'signal',\n value: 'signal'\n },\n {\n display: 'terminate',\n value: 'terminate'\n },\n {\n display: 'multiple',\n value: 'multiple'\n },\n {\n display: 'parallel multiple',\n value: 'parallel-multiple'\n }\n ]\n }\n }\n ],\n help: '/bpmn/subprocess/subprocess'\n}\n\nexport default class BPMNSubprocess extends BPMNControlBase {\n private markerImages?: HTMLImageElement[]\n\n static get nature() {\n return NATURE\n }\n\n render(ctx: CanvasRenderingContext2D) {\n var { left, top, width, height } = this.bounds\n const { callActivity, interrupting, transaction } = this.state\n\n ctx.translate(left, top)\n ctx.beginPath()\n\n var radius = 10\n\n ctx.moveTo(radius, 0)\n ctx.arcTo(width, 0, width, height, radius)\n ctx.arcTo(width, height, 0, height, radius)\n ctx.arcTo(0, height, 0, 0, radius)\n ctx.arcTo(0, 0, width, 0, radius)\n\n if (transaction) {\n const LINEGAP = 3\n radius -= LINEGAP\n\n ctx.moveTo(radius + LINEGAP, LINEGAP)\n ctx.arcTo(width - LINEGAP, LINEGAP, width - LINEGAP, height - LINEGAP, radius)\n ctx.arcTo(width - LINEGAP, height - LINEGAP, LINEGAP, height, radius)\n ctx.arcTo(LINEGAP, height - LINEGAP, LINEGAP, LINEGAP, radius)\n ctx.arcTo(LINEGAP, LINEGAP, width - LINEGAP, LINEGAP, radius)\n }\n\n this.drawFill(ctx)\n\n if (callActivity) {\n this.drawStroke(ctx, { lineWidth: 5 })\n } else {\n this.drawStroke(ctx, {\n lineWidth: transaction ? 1 : 2,\n lineDash: interrupting ? 'dash' : 'solid'\n })\n }\n\n ctx.beginPath()\n\n const images = this.getMarkerImages() || []\n const start = (width - images.length * 16) / 2\n\n images.forEach((image, index) => {\n this.drawImage(ctx, image, start + index * 16, height - 16, 16, 16)\n })\n\n ctx.translate(-left, -top)\n }\n\n onchange(after: Properties, before: Properties) {\n if (['loop', 'multiInstance', 'adhoc', 'compensation', 'strokeStyle'].find(prop => prop in after)) {\n delete this.markerImages\n }\n }\n\n getMarkerImages(): HTMLImageElement[] | null | undefined {\n if (!this.markerImages) {\n const { strokeStyle } = this.state\n\n this.markerImages = Object.keys(MARKERS)\n .filter(key => key === 'subprocess' || this.state[key])\n .map(key => {\n let image = new Image()\n image.src =\n 'data:image/svg+xml;charset=UTF-8;base64,' + btoa(MARKERS[key].replace(/{{strokeColor}}/g, strokeStyle))\n return image\n })\n }\n\n return this.markerImages\n }\n}\n\nComponent.register('bpmn-subprocess', BPMNSubprocess)\n\nconst MARKERS: { [type: string]: string } = {\n loop: `\n<svg version=\"1.1\" id=\"Layer_3\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n viewBox=\"0 0 35 35\" style=\"enable-background:new 0 0 35 35;\" xml:space=\"preserve\">\n <style type=\"text/css\">\n .st0{fill:{{strokeColor}};}\n </style>\n <path class=\"st0\" d=\"M9.5,5.2C4.3,9.7,3.7,17.5,8.1,22.8L5,25.4l7.8,0.6l0.6-7.8L10.2,21c-3.5-4.1-3-10.1,1-13.6s10.1-3,13.6,1\n\ts3,10.1-1,13.6c-1.6,1.4-3.5,2.1-5.4,2.3l-0.2,2.8c2.6-0.2,5.3-1.1,7.4-3c5.2-4.5,5.8-12.3,1.3-17.5S14.7,0.8,9.5,5.2z\"/>\n</svg>\n`,\n multiInstance: `\n <svg version=\"1.1\" id=\"Layer_3\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n\t viewBox=\"0 0 35 35\" style=\"enable-background:new 0 0 35 35;\" xml:space=\"preserve\">\n <style type=\"text/css\">\n .st0{fill:{{strokeColor}};}\n </style>\n <g>\n <rect x=\"5.5\" y=\"1.9\" class=\"st0\" width=\"3.3\" height=\"25.3\"/>\n <rect x=\"15.9\" y=\"1.9\" class=\"st0\" width=\"3.3\" height=\"25.3\"/>\n <rect x=\"26.2\" y=\"1.9\" class=\"st0\" width=\"3.3\" height=\"25.3\"/>\n </g>\n </svg>\n `,\n compensation: `\n <svg version=\"1.1\" id=\"Layer_3\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n\t viewBox=\"0 0 35 35\" style=\"enable-background:new 0 0 35 35;\" xml:space=\"preserve\">\n <style type=\"text/css\">\n .st0{fill:{{strokeColor}};}\n </style>\n <g>\n <path class=\"st0\" d=\"M16.1,6.9v15.6l-7.8-7.8L16.1,6.9 M18.1,2.1L5.5,14.7l12.6,12.6V2.1L18.1,2.1z M5.5,14.7L5.5,14.7L5.5,14.7\n L5.5,14.7L5.5,14.7z\"/>\n </g>\n <g>\n <path class=\"st0\" d=\"M27.5,6.9v15.6l-7.8-7.8L27.5,6.9 M29.5,2.1L16.9,14.7l12.6,12.6V2.1L29.5,2.1z M16.9,14.7L16.9,14.7\n L16.9,14.7L16.9,14.7L16.9,14.7z\"/>\n </g>\n </svg>\n `,\n subprocess: `\n <svg version=\"1.1\" id=\"Layer_3\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n\t viewBox=\"0 0 35 35\" style=\"enable-background:new 0 0 35 35;\" xml:space=\"preserve\">\n <style type=\"text/css\">\n .st0{fill:none;stroke:{{strokeColor}};stroke-width:2;stroke-miterlimit:10;}\n .st1{fill:{{strokeColor}};} \n </style>\n <rect x=\"5.5\" y=\"2.5\" class=\"st0\" width=\"24\" height=\"24\"/>\n <g>\n <g>\n <rect x=\"16.4\" y=\"6\" class=\"st1\" width=\"2.1\" height=\"17\"/>\n </g>\n <g>\n <rect x=\"9\" y=\"13.4\" class=\"st1\" width=\"17\" height=\"2.1\"/>\n </g>\n </g>\n </svg>\n `,\n adhoc: `\n <svg version=\"1.1\" id=\"Layer_3\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n\t viewBox=\"0 0 35 35\" style=\"enable-background:new 0 0 35 35;\" xml:space=\"preserve\">\n <style type=\"text/css\">\n .st0{fill:{{strokeColor}};}\n </style>\n <path class=\"st0\" d=\"M29.2,10.3c-0.8,0.9-1.7,1.7-2.5,2.2c-0.8,0.5-1.6,0.8-2.4,0.8c-1,0-3-0.6-6.1-1.9C15,10.2,12.6,9.6,11,9.6\n\t\tc-2.1,0-3.9,0.7-5.5,1.9v6.9c0.1,0,0.3-0.2,0.6-0.6C7.9,16,9.5,15,10.9,15c0.8,0,2.9,0.6,6.1,1.9c3.3,1.2,5.7,1.8,7.1,1.8\n\t\tc2,0,3.8-0.6,5.3-1.8v-6.9C29.4,10.1,29.3,10.2,29.2,10.3z\"/>\n </svg>\n `\n}\n"]}
|
package/dist/bpmn-task.js
CHANGED
|
@@ -76,6 +76,11 @@ const NATURE = {
|
|
|
76
76
|
type: 'checkbox',
|
|
77
77
|
label: 'call-activity',
|
|
78
78
|
name: 'callActivity'
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
type: 'checkbox',
|
|
82
|
+
label: 'interrupting',
|
|
83
|
+
name: 'interrupting'
|
|
79
84
|
}
|
|
80
85
|
],
|
|
81
86
|
help: '/bpmn/task/task'
|
|
@@ -86,7 +91,7 @@ export default class BPMNTask extends BPMNControlBase {
|
|
|
86
91
|
}
|
|
87
92
|
render(ctx) {
|
|
88
93
|
const { left, top, width, height } = this.bounds;
|
|
89
|
-
const { callActivity } = this.state;
|
|
94
|
+
const { callActivity, interrupting } = this.state;
|
|
90
95
|
const radius = 9;
|
|
91
96
|
ctx.translate(left, top);
|
|
92
97
|
ctx.beginPath();
|
|
@@ -96,7 +101,14 @@ export default class BPMNTask extends BPMNControlBase {
|
|
|
96
101
|
ctx.arcTo(0, height, 0, 0, radius);
|
|
97
102
|
ctx.arcTo(0, 0, width, 0, radius);
|
|
98
103
|
this.drawFill(ctx);
|
|
99
|
-
|
|
104
|
+
if (callActivity) {
|
|
105
|
+
this.drawStroke(ctx, { lineWidth: 5 });
|
|
106
|
+
}
|
|
107
|
+
else {
|
|
108
|
+
this.drawStroke(ctx, {
|
|
109
|
+
lineDash: interrupting ? 'dash' : 'solid'
|
|
110
|
+
});
|
|
111
|
+
}
|
|
100
112
|
ctx.beginPath();
|
|
101
113
|
const image = this.getImageElement();
|
|
102
114
|
if (image) {
|
package/dist/bpmn-task.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bpmn-task.js","sourceRoot":"","sources":["../src/bpmn-task.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAc,MAAM,wBAAwB,CAAA;AAE9D,OAAO,eAAe,MAAM,0BAA0B,CAAA;AAEtD,MAAM,MAAM,GAAG;IACb,OAAO,EAAE,KAAK;IACd,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,KAAK;IAChB,UAAU,EAAE;QACV;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,WAAW;YAClB,IAAI,EAAE,UAAU;YAChB,QAAQ,EAAE;gBACR,OAAO,EAAE;oBACP;wBACE,OAAO,EAAE,EAAE;wBACX,KAAK,EAAE,EAAE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EAAE,CAAA;YAEtB,IAAI,IAAI,EAAE;gBACR,IAAI,KAAK,GAAG,IAAI,KAAK,EAAE,CAAA;gBACvB,KAAK,CAAC,GAAG;oBACP,0CAA0C,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,kBAAkB,EAAE,WAAW,CAAC,CAAC,CAAA;gBAC7G,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;aAC9B;YAED,IAAI,aAAa,EAAE;gBACjB,IAAI,KAAK,GAAG,IAAI,KAAK,EAAE,CAAA;gBACvB,KAAK,CAAC,GAAG;oBACP,0CAA0C;wBAC1C,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,kBAAkB,EAAE,WAAW,CAAC,CAAC,CAAA;gBACvE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;aAC9B;SACF;QAED,OAAO,IAAI,CAAC,YAAY,CAAA;IAC1B,CAAC;CACF;AAED,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAA;AAEzC,MAAM,MAAM,GAA+B;IACzC,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCV;IACC,IAAI,EAAE;;;;;;;;;GASL;IACD,OAAO,EAAE;;;;;;;;;GASR;IACD,IAAI,EAAE;;;;;;;;;;;;;;;;GAgBL;IACD,MAAM,EAAE;;;;;;;;;;;;;;;;;GAiBP;IACD,eAAe,EAAE;;;;;;;;;;;;;;GAchB;IACD,MAAM,EAAE;;;;;;;;;;;;;;;GAeP;CACF,CAAA;AAED,MAAM,OAAO,GAA+B;IAC1C,IAAI,EAAE;;;;;;;;;CASP;IACC,QAAQ,EAAE;;;;;;;;;;;;GAYT;IACD,UAAU,EAAE;;;;;;;;;;;;GAYX;CACF,CAAA","sourcesContent":["import { Component, Properties } from '@hatiolab/things-scene'\n\nimport BPMNControlBase from './base/bpmn-control-base'\n\nconst NATURE = {\n mutable: false,\n resizable: true,\n rotatable: false,\n properties: [\n {\n type: 'select',\n label: 'task-type',\n name: 'taskType',\n property: {\n options: [\n {\n display: '',\n value: ''\n },\n {\n display: 'service',\n value: 'service'\n },\n {\n display: 'send',\n value: 'send'\n },\n {\n display: 'receive',\n value: 'receive'\n },\n {\n display: 'user',\n value: 'user'\n },\n {\n display: 'manual',\n value: 'manual'\n },\n {\n display: 'business rule',\n value: 'business-rule'\n },\n {\n display: 'script',\n value: 'script'\n }\n ]\n }\n },\n {\n type: 'select',\n label: 'multi-instance',\n name: 'multiInstance',\n property: {\n options: [\n {\n display: '',\n value: ''\n },\n {\n display: 'parallel',\n value: 'parallel'\n },\n {\n display: 'sequential',\n value: 'sequential'\n }\n ]\n }\n },\n {\n type: 'checkbox',\n label: 'loop',\n name: 'loop'\n },\n {\n type: 'checkbox',\n label: 'call-activity',\n name: 'callActivity'\n }\n ],\n help: '/bpmn/task/task'\n}\n\nexport default class BPMNTask extends BPMNControlBase {\n private imageElement?: HTMLImageElement\n private markerImages?: HTMLImageElement[]\n\n static get nature() {\n return NATURE\n }\n\n render(ctx: CanvasRenderingContext2D) {\n const { left, top, width, height } = this.bounds\n const { callActivity } = this.state\n const radius = 9\n\n ctx.translate(left, top)\n ctx.beginPath()\n\n ctx.moveTo(radius, 0)\n ctx.arcTo(width, 0, width, height, radius)\n ctx.arcTo(width, height, 0, height, radius)\n ctx.arcTo(0, height, 0, 0, radius)\n ctx.arcTo(0, 0, width, 0, radius)\n\n this.drawFill(ctx)\n this.drawStroke(ctx, callActivity ? { lineWidth: 5 } : undefined)\n\n ctx.beginPath()\n\n const image = this.getImageElement()\n if (image) {\n this.drawImage(ctx, image, 0, 0, 24, 24)\n }\n\n const images = this.getMarkerImages() || []\n const start = (width - images.length * 16) / 2\n\n images.forEach((image, index) => {\n this.drawImage(ctx, image, start + index * 16, height - 16, 16, 16)\n })\n\n ctx.translate(-left, -top)\n }\n\n onchange(after: Properties, before: Properties) {\n if (['loop', 'multiInstance', 'taskType', 'strokeStyle'].find(prop => prop in after)) {\n delete this.markerImages\n delete this.imageElement\n }\n }\n\n getImageElement(): HTMLImageElement | null | undefined {\n if (!this.imageElement) {\n const { taskType, strokeStyle } = this.state\n\n if (!taskType) {\n return\n }\n\n const src = IMAGES[taskType]\n if (!src) {\n return\n }\n\n this.imageElement = new Image()\n this.imageElement.src =\n 'data:image/svg+xml;charset=UTF-8;base64,' + btoa(src.replace(/{{strokeColor}}/g, strokeStyle))\n }\n\n return this.imageElement\n }\n\n getMarkerImages(): HTMLImageElement[] | null | undefined {\n if (!this.markerImages) {\n const { loop, multiInstance, strokeStyle } = this.state\n\n this.markerImages = []\n\n if (loop) {\n let image = new Image()\n image.src =\n 'data:image/svg+xml;charset=UTF-8;base64,' + btoa(MARKERS['loop'].replace(/{{strokeColor}}/g, strokeStyle))\n this.markerImages.push(image)\n }\n\n if (multiInstance) {\n let image = new Image()\n image.src =\n 'data:image/svg+xml;charset=UTF-8;base64,' +\n btoa(MARKERS[multiInstance].replace(/{{strokeColor}}/g, strokeStyle))\n this.markerImages.push(image)\n }\n }\n\n return this.markerImages\n }\n}\n\nComponent.register('bpmn-task', BPMNTask)\n\nconst IMAGES: { [type: string]: string } = {\n service: `\n<svg version=\"1.1\" id=\"Layer_3\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n viewBox=\"0 0 35 35\" style=\"enable-background:new 0 0 35 35;\" xml:space=\"preserve\">\n <style type=\"text/css\">\n .st0{fill:{{strokeColor}};}\n </style>\n <g>\n <g>\n <path class=\"st0\" d=\"M22.6,11.3l0.3,2.1l0.1,0.6l0.5,0.2c0.5,0.2,0.9,0.5,1.4,0.8l0.5,0.3l0.5-0.2l2-0.8l1.5,2.5l-1.7,1.3\n l-0.5,0.4l0.1,0.6c0,0.2,0.1,0.5,0.1,0.8c0,0.3,0,0.5-0.1,0.8l-0.1,0.6l0.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</svg>\n`,\n send: `\n <svg version=\"1.1\" id=\"Layer_3\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n\t viewBox=\"0 0 35 35\" style=\"enable-background:new 0 0 35 35;\" xml:space=\"preserve\">\n <style type=\"text/css\">\n .st0{fill:{{strokeColor}};}\n </style>\n <path class=\"st0\" d=\"M27.1,7.9H7.9c-1.3,0-2.4,1.1-2.4,2.4l0,14.4c0,1.3,1.1,2.4,2.4,2.4h19.2c1.3,0,2.4-1.1,2.4-2.4V10.3\n\tC29.5,9,28.4,7.9,27.1,7.9z M27.1,12.7l-9.6,6l-9.6-6v-2.4l9.6,6l9.6-6V12.7z\"/>\n </svg>\n `,\n receive: `\n <svg version=\"1.1\" id=\"Layer_3\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n\t viewBox=\"0 0 35 35\" style=\"enable-background:new 0 0 35 35;\" xml:space=\"preserve\">\n <style type=\"text/css\">\n .st0{fill:{{strokeColor}};}\n </style>\n <path class=\"st0\" d=\"M29.5,10.3c0-1.3-1.1-2.4-2.4-2.4H7.9c-1.3,0-2.4,1.1-2.4,2.4v14.4c0,1.3,1.1,2.4,2.4,2.4h19.2c1.3,0,2.4-1.1,2.4-2.4V10.3z\n\t M27.1,9.3l-9.6,7l-9.6-7H27.1z M28.1,25.7H6.9v-16l10.6,8l10.6-8V25.7z\"/>\n </svg>\n `,\n user: `\n <svg version=\"1.1\" id=\"Layer_3\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n\t viewBox=\"0 0 35 35\" style=\"enable-background:new 0 0 35 35;\" xml:space=\"preserve\">\n <style type=\"text/css\">\n .st0{fill:{{strokeColor}};}\n </style>\n <g>\n <g>\n <path class=\"st0\" d=\"M17.5,6.5c2.8,0,5,2.2,5,5s-2.2,5-5,5s-5-2.2-5-5S14.7,6.5,17.5,6.5 M17.4,20c3.6,0,10.1,3.3,10.1,6.5v2h-20v-2\n C7.5,23.3,13.8,20,17.4,20 M17.5,5.5c-3.3,0-6,2.7-6,6s2.7,6,6,6s6-2.7,6-6S20.8,5.5,17.5,5.5L17.5,5.5z M17.4,19\n c-4,0-10.9,3.6-10.9,7.5v3h22v-3C28.5,22.5,21.4,19,17.4,19L17.4,19z\"/>\n </g>\n <path class=\"st0\" d=\"M14.6,7.2c0,0,2,4.5,7.9,3.9C22.5,11.1,21.8,4.3,14.6,7.2z\"/>\n <path class=\"st0\" d=\"M16.2,9.4c0,0-1.2,1.3-4,1.2l1.2-2.5L14.9,7L16.2,9.4z\"/>\n </g>\n </svg>\n `,\n manual: `\n <svg version=\"1.1\" id=\"Layer_3\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n\t viewBox=\"0 0 35 35\" style=\"enable-background:new 0 0 35 35;\" xml:space=\"preserve\">\n <style type=\"text/css\">\n .st0{fill:none;stroke:{{strokeColor}};stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}\n </style>\n <g>\n <g>\n <g>\n <path class=\"st0\" d=\"M24,28.5H9.5c-2.2,0-4-1.8-4-4v-7.3c0-1.1,0.4-2.1,1.2-2.9l8-7.9c0,0,1.2,1.3,1.2,1.3\n c0.2,0.2,0.3,0.5,0.3,0.8c0,0.2-0.1,0.4-0.2,0.6c0,0-2.5,4.3-2.5,4.3h11.9c0.8,0,1.5,0.7,1.5,1.5s-0.7,1.5-1.5,1.5h-7v1H28\n c0.8,0,1.5,0.7,1.5,1.5s-0.7,1.5-1.5,1.5h-9.5v1H27c0.8,0,1.5,0.7,1.5,1.5s-0.7,1.5-1.5,1.5h-8.5v1H24c0.8,0,1.5,0.7,1.5,1.5\n S24.8,28.5,24,28.5z\"/>\n </g>\n </g>\n </g>\n </svg>\n `,\n 'business-rule': `\n <svg version=\"1.1\" id=\"Layer_3\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n\t viewBox=\"0 0 35 35\" style=\"enable-background:new 0 0 35 35;\" xml:space=\"preserve\">\n <style type=\"text/css\">\n .st0{fill:{{strokeColor}};}\n </style>\n <g>\n <g>\n <path class=\"st0\" d=\"M28.6,11.1v14.8H6.5V11.1h20.3 M26.8,8H8.2c-1.5,0-2.7,1-2.7,2.1v15.8c0,1.2,1.2,1.1,2.7,1.1h18.7c1.5,0,2.7,0.1,2.7-1.1\n V10.1C29.5,8.9,28.3,8,26.8,8L26.8,8z\"/>\n </g>\n <path class=\"st0\" d=\"M29,21.4H6v-1h23V21.4z M28.8,16.4h-23v-1h23V16.4z M14.2,10.6v16h-1v-16H14.2z\"/>\n </g>\n </svg>\n `,\n script: `\n <svg version=\"1.1\" id=\"Layer_3\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n\t viewBox=\"0 0 35 35\" style=\"enable-background:new 0 0 35 35;\" xml:space=\"preserve\">\n <style type=\"text/css\">\n .st0{fill:none;stroke:{{strokeColor}};stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}\n </style>\n <g>\n <path class=\"st0\" d=\"M7.9,8h20.8c0,0-2.9,1.7-2.6,7.2c0.1,1,0.5,2,1.1,2.9c1.1,1.5,3,4.6,0.4,9h-21c0,0,3.2-5.5,1-9\n C7.6,18,3.8,12.4,7.9,8z\"/>\n <rect class=\"st0\" x=\"9.1\" y=\"11.3\" width=\"14\" height=\"1\"/>\n <rect class=\"st0\" x=\"9.7\" y=\"15\" width=\"14\" height=\"1\"/>\n <rect class=\"st0\" x=\"10.7\" y=\"18.7\" width=\"14\" height=\"1\"/>\n <rect class=\"st0\" x=\"11.7\" y=\"22.3\" width=\"14\" height=\"1\"/>\n </g>\n </svg>\n `\n}\n\nconst MARKERS: { [type: string]: string } = {\n loop: `\n <svg version=\"1.1\" id=\"Layer_3\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n viewBox=\"0 0 35 35\" style=\"enable-background:new 0 0 35 35;\" xml:space=\"preserve\">\n <style type=\"text/css\">\n .st0{fill:{{strokeColor}};}\n </style>\n <path class=\"st0\" d=\"M9.5,5.2C4.3,9.7,3.7,17.5,8.1,22.8L5,25.4l7.8,0.6l0.6-7.8L10.2,21c-3.5-4.1-3-10.1,1-13.6s10.1-3,13.6,1\n s3,10.1-1,13.6c-1.6,1.4-3.5,2.1-5.4,2.3l-0.2,2.8c2.6-0.2,5.3-1.1,7.4-3c5.2-4.5,5.8-12.3,1.3-17.5S14.7,0.8,9.5,5.2z\"/>\n </svg>\n`,\n parallel: `\n <svg version=\"1.1\" id=\"Layer_3\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n\t viewBox=\"0 0 35 35\" style=\"enable-background:new 0 0 35 35;\" xml:space=\"preserve\">\n <style type=\"text/css\">\n .st0{fill:{{strokeColor}};}\n </style>\n <g>\n <rect x=\"5.5\" y=\"1.9\" class=\"st0\" width=\"3.3\" height=\"25.3\"/>\n <rect x=\"15.9\" y=\"1.9\" class=\"st0\" width=\"3.3\" height=\"25.3\"/>\n <rect x=\"26.2\" y=\"1.9\" class=\"st0\" width=\"3.3\" height=\"25.3\"/>\n </g>\n </svg>\n `,\n sequential: `\n <svg version=\"1.1\" id=\"Layer_3\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n\t viewBox=\"0 0 35 35\" style=\"enable-background:new 0 0 35 35;\" xml:space=\"preserve\">\n <style type=\"text/css\">\n .st0{fill:{{strokeColor}};}\n </style>\n <g>\n <rect x=\"4.8\" y=\"2.6\" width=\"25.3\" height=\"3.3\" class=\"st0\"/>\n <rect x=\"4.8\" y=\"13\" width=\"25.3\" height=\"3.3\" class=\"st0\"/>\n <rect x=\"4.8\" y=\"23.3\" width=\"25.3\" height=\"3.3\" class=\"st0\"/>\n </g>\n </svg>\n `\n}\n"]}
|
|
1
|
+
{"version":3,"file":"bpmn-task.js","sourceRoot":"","sources":["../src/bpmn-task.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAc,MAAM,wBAAwB,CAAA;AAE9D,OAAO,eAAe,MAAM,0BAA0B,CAAA;AAEtD,MAAM,MAAM,GAAG;IACb,OAAO,EAAE,KAAK;IACd,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,KAAK;IAChB,UAAU,EAAE;QACV;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,WAAW;YAClB,IAAI,EAAE,UAAU;YAChB,QAAQ,EAAE;gBACR,OAAO,EAAE;oBACP;wBACE,OAAO,EAAE,EAAE;wBACX,KAAK,EAAE,EAAE;qBACV;oBACD;wBACE,OAAO,EAAE,SAAS;wBAClB,KAAK,EAAE,SAAS;qBACjB;oBACD;wBACE,OAAO,EAAE,MAAM;wBACf,KAAK,EAAE,MAAM;qBACd;oBACD;wBACE,OAAO,EAAE,SAAS;wBAClB,KAAK,EAAE,SAAS;qBACjB;oBACD;wBACE,OAAO,EAAE,MAAM;wBACf,KAAK,EAAE,MAAM;qBACd;oBACD;wBACE,OAAO,EAAE,QAAQ;wBACjB,KAAK,EAAE,QAAQ;qBAChB;oBACD;wBACE,OAAO,EAAE,eAAe;wBACxB,KAAK,EAAE,eAAe;qBACvB;oBACD;wBACE,OAAO,EAAE,QAAQ;wBACjB,KAAK,EAAE,QAAQ;qBAChB;iBACF;aACF;SACF;QACD;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,gBAAgB;YACvB,IAAI,EAAE,eAAe;YACrB,QAAQ,EAAE;gBACR,OAAO,EAAE;oBACP;wBACE,OAAO,EAAE,EAAE;wBAC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oBACP,0CAA0C;wBAC1C,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,kBAAkB,EAAE,WAAW,CAAC,CAAC,CAAA;gBACvE,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;aAC9B;SACF;QAED,OAAO,IAAI,CAAC,YAAY,CAAA;IAC1B,CAAC;CACF;AAED,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAA;AAEzC,MAAM,MAAM,GAA+B;IACzC,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCV;IACC,IAAI,EAAE;;;;;;;;;GASL;IACD,OAAO,EAAE;;;;;;;;;GASR;IACD,IAAI,EAAE;;;;;;;;;;;;;;;;GAgBL;IACD,MAAM,EAAE;;;;;;;;;;;;;;;;;GAiBP;IACD,eAAe,EAAE;;;;;;;;;;;;;;GAchB;IACD,MAAM,EAAE;;;;;;;;;;;;;;;GAeP;CACF,CAAA;AAED,MAAM,OAAO,GAA+B;IAC1C,IAAI,EAAE;;;;;;;;;CASP;IACC,QAAQ,EAAE;;;;;;;;;;;;GAYT;IACD,UAAU,EAAE;;;;;;;;;;;;GAYX;CACF,CAAA","sourcesContent":["import { Component, Properties } from '@hatiolab/things-scene'\n\nimport BPMNControlBase from './base/bpmn-control-base'\n\nconst NATURE = {\n mutable: false,\n resizable: true,\n rotatable: false,\n properties: [\n {\n type: 'select',\n label: 'task-type',\n name: 'taskType',\n property: {\n options: [\n {\n display: '',\n value: ''\n },\n {\n display: 'service',\n value: 'service'\n },\n {\n display: 'send',\n value: 'send'\n },\n {\n display: 'receive',\n value: 'receive'\n },\n {\n display: 'user',\n value: 'user'\n },\n {\n display: 'manual',\n value: 'manual'\n },\n {\n display: 'business rule',\n value: 'business-rule'\n },\n {\n display: 'script',\n value: 'script'\n }\n ]\n }\n },\n {\n type: 'select',\n label: 'multi-instance',\n name: 'multiInstance',\n property: {\n options: [\n {\n display: '',\n value: ''\n },\n {\n display: 'parallel',\n value: 'parallel'\n },\n {\n display: 'sequential',\n value: 'sequential'\n }\n ]\n }\n },\n {\n type: 'checkbox',\n label: 'loop',\n name: 'loop'\n },\n {\n type: 'checkbox',\n label: 'call-activity',\n name: 'callActivity'\n },\n {\n type: 'checkbox',\n label: 'interrupting',\n name: 'interrupting'\n }\n ],\n help: '/bpmn/task/task'\n}\n\nexport default class BPMNTask extends BPMNControlBase {\n private imageElement?: HTMLImageElement\n private markerImages?: HTMLImageElement[]\n\n static get nature() {\n return NATURE\n }\n\n render(ctx: CanvasRenderingContext2D) {\n const { left, top, width, height } = this.bounds\n const { callActivity, interrupting } = this.state\n const radius = 9\n\n ctx.translate(left, top)\n ctx.beginPath()\n\n ctx.moveTo(radius, 0)\n ctx.arcTo(width, 0, width, height, radius)\n ctx.arcTo(width, height, 0, height, radius)\n ctx.arcTo(0, height, 0, 0, radius)\n ctx.arcTo(0, 0, width, 0, radius)\n\n this.drawFill(ctx)\n if (callActivity) {\n this.drawStroke(ctx, { lineWidth: 5 })\n } else {\n this.drawStroke(ctx, {\n lineDash: interrupting ? 'dash' : 'solid'\n })\n }\n\n ctx.beginPath()\n\n const image = this.getImageElement()\n if (image) {\n this.drawImage(ctx, image, 0, 0, 24, 24)\n }\n\n const images = this.getMarkerImages() || []\n const start = (width - images.length * 16) / 2\n\n images.forEach((image, index) => {\n this.drawImage(ctx, image, start + index * 16, height - 16, 16, 16)\n })\n\n ctx.translate(-left, -top)\n }\n\n onchange(after: Properties, before: Properties) {\n if (['loop', 'multiInstance', 'taskType', 'strokeStyle'].find(prop => prop in after)) {\n delete this.markerImages\n delete this.imageElement\n }\n }\n\n getImageElement(): HTMLImageElement | null | undefined {\n if (!this.imageElement) {\n const { taskType, strokeStyle } = this.state\n\n if (!taskType) {\n return\n }\n\n const src = IMAGES[taskType]\n if (!src) {\n return\n }\n\n this.imageElement = new Image()\n this.imageElement.src =\n 'data:image/svg+xml;charset=UTF-8;base64,' + btoa(src.replace(/{{strokeColor}}/g, strokeStyle))\n }\n\n return this.imageElement\n }\n\n getMarkerImages(): HTMLImageElement[] | null | undefined {\n if (!this.markerImages) {\n const { loop, multiInstance, strokeStyle } = this.state\n\n this.markerImages = []\n\n if (loop) {\n let image = new Image()\n image.src =\n 'data:image/svg+xml;charset=UTF-8;base64,' + btoa(MARKERS['loop'].replace(/{{strokeColor}}/g, strokeStyle))\n this.markerImages.push(image)\n }\n\n if (multiInstance) {\n let image = new Image()\n image.src =\n 'data:image/svg+xml;charset=UTF-8;base64,' +\n btoa(MARKERS[multiInstance].replace(/{{strokeColor}}/g, strokeStyle))\n this.markerImages.push(image)\n }\n }\n\n return this.markerImages\n }\n}\n\nComponent.register('bpmn-task', BPMNTask)\n\nconst IMAGES: { [type: string]: string } = {\n service: `\n<svg version=\"1.1\" id=\"Layer_3\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n viewBox=\"0 0 35 35\" style=\"enable-background:new 0 0 35 35;\" xml:space=\"preserve\">\n <style type=\"text/css\">\n .st0{fill:{{strokeColor}};}\n </style>\n <g>\n <g>\n <path class=\"st0\" d=\"M22.6,11.3l0.3,2.1l0.1,0.6l0.5,0.2c0.5,0.2,0.9,0.5,1.4,0.8l0.5,0.3l0.5-0.2l2-0.8l1.5,2.5l-1.7,1.3\n l-0.5,0.4l0.1,0.6c0,0.2,0.1,0.5,0.1,0.8c0,0.3,0,0.5-0.1,0.8l-0.1,0.6l0.4,0.4l1.7,1.3l-1.5,2.5l-2-0.8l-0.5-0.2l-0.5,0.4\n c-0.4,0.3-0.9,0.6-1.4,0.8L23,25.8l-0.1,0.6l-0.3,2.1h-2.9l-0.3-2.1l-0.1-0.6l-0.5-0.2c-0.5-0.2-0.9-0.5-1.4-0.8l-0.5-0.3\n l-0.5,0.2l-2,0.8l-1.5-2.5l1.7-1.3l0.5-0.4L15,20.6c0-0.2-0.1-0.5-0.1-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5L17.2,9l0.1,0.6l0.3,0.1l-1,1.9c-0.5-0.2-1-0.3-1.5-0.3c-2.8,0-5.1,2.3-5.1,5.1\n c0,1.3,0.5,2.5,1.3,3.4l-1.2,1.9l-0.4,0.2l-2.3,0.9l-1.8-3.1l2-1.5l0.5-0.4L8,17.3c0-0.3-0.1-0.6-0.1-0.9c0-0.2,0-0.5,0.1-0.9\n l0.1-0.6l-0.5-0.4l-2-1.5l1.8-3.1l2.3,0.9l0.5,0.2l0.5-0.3c0.5-0.4,1.1-0.7,1.6-0.9l0.5-0.2L13,9l0.3-2.5H16.8 M17.2,5.5h-4.3\n c-0.3,0-0.5,0.2-0.5,0.5L12,8.9c-0.7,0.3-1.3,0.6-1.8,1.1L7.4,8.8c-0.1,0-0.1,0-0.2,0c-0.2,0-0.4,0.1-0.5,0.3l-2.2,3.7\n c-0.1,0.2-0.1,0.5,0.1,0.7L7,15.3C7,15.6,6.9,16,6.9,16.4c0,0.3,0,0.7,0.1,1.1l-2.3,1.8c-0.2,0.2-0.3,0.5-0.1,0.7l2.2,3.7\n c0.1,0.2,0.3,0.3,0.5,0.3c0.1,0,0.1,0,0.2,0l2.7-1.1c0.1,0.1,0.3,0.2,0.4,0.3l2.1-3.5c-1-0.7-1.6-1.9-1.6-3.2\n c0-2.2,1.8-4.1,4.1-4.1c0.7,0,1.4,0.2,2,0.5l1.9-3.6c-0.2-0.1-0.5-0.3-0.8-0.4L17.8,6C17.7,5.7,17.5,5.5,17.2,5.5L17.2,5.5z\"/>\n </g>\n </g>\n </g>\n</svg>\n`,\n send: `\n <svg version=\"1.1\" id=\"Layer_3\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n\t viewBox=\"0 0 35 35\" style=\"enable-background:new 0 0 35 35;\" xml:space=\"preserve\">\n <style type=\"text/css\">\n .st0{fill:{{strokeColor}};}\n </style>\n <path class=\"st0\" d=\"M27.1,7.9H7.9c-1.3,0-2.4,1.1-2.4,2.4l0,14.4c0,1.3,1.1,2.4,2.4,2.4h19.2c1.3,0,2.4-1.1,2.4-2.4V10.3\n\tC29.5,9,28.4,7.9,27.1,7.9z M27.1,12.7l-9.6,6l-9.6-6v-2.4l9.6,6l9.6-6V12.7z\"/>\n </svg>\n `,\n receive: `\n <svg version=\"1.1\" id=\"Layer_3\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n\t viewBox=\"0 0 35 35\" style=\"enable-background:new 0 0 35 35;\" xml:space=\"preserve\">\n <style type=\"text/css\">\n .st0{fill:{{strokeColor}};}\n </style>\n <path class=\"st0\" d=\"M29.5,10.3c0-1.3-1.1-2.4-2.4-2.4H7.9c-1.3,0-2.4,1.1-2.4,2.4v14.4c0,1.3,1.1,2.4,2.4,2.4h19.2c1.3,0,2.4-1.1,2.4-2.4V10.3z\n\t M27.1,9.3l-9.6,7l-9.6-7H27.1z M28.1,25.7H6.9v-16l10.6,8l10.6-8V25.7z\"/>\n </svg>\n `,\n user: `\n <svg version=\"1.1\" id=\"Layer_3\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n\t viewBox=\"0 0 35 35\" style=\"enable-background:new 0 0 35 35;\" xml:space=\"preserve\">\n <style type=\"text/css\">\n .st0{fill:{{strokeColor}};}\n </style>\n <g>\n <g>\n <path class=\"st0\" d=\"M17.5,6.5c2.8,0,5,2.2,5,5s-2.2,5-5,5s-5-2.2-5-5S14.7,6.5,17.5,6.5 M17.4,20c3.6,0,10.1,3.3,10.1,6.5v2h-20v-2\n C7.5,23.3,13.8,20,17.4,20 M17.5,5.5c-3.3,0-6,2.7-6,6s2.7,6,6,6s6-2.7,6-6S20.8,5.5,17.5,5.5L17.5,5.5z M17.4,19\n c-4,0-10.9,3.6-10.9,7.5v3h22v-3C28.5,22.5,21.4,19,17.4,19L17.4,19z\"/>\n </g>\n <path class=\"st0\" d=\"M14.6,7.2c0,0,2,4.5,7.9,3.9C22.5,11.1,21.8,4.3,14.6,7.2z\"/>\n <path class=\"st0\" d=\"M16.2,9.4c0,0-1.2,1.3-4,1.2l1.2-2.5L14.9,7L16.2,9.4z\"/>\n </g>\n </svg>\n `,\n manual: `\n <svg version=\"1.1\" id=\"Layer_3\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n\t viewBox=\"0 0 35 35\" style=\"enable-background:new 0 0 35 35;\" xml:space=\"preserve\">\n <style type=\"text/css\">\n .st0{fill:none;stroke:{{strokeColor}};stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}\n </style>\n <g>\n <g>\n <g>\n <path class=\"st0\" d=\"M24,28.5H9.5c-2.2,0-4-1.8-4-4v-7.3c0-1.1,0.4-2.1,1.2-2.9l8-7.9c0,0,1.2,1.3,1.2,1.3\n c0.2,0.2,0.3,0.5,0.3,0.8c0,0.2-0.1,0.4-0.2,0.6c0,0-2.5,4.3-2.5,4.3h11.9c0.8,0,1.5,0.7,1.5,1.5s-0.7,1.5-1.5,1.5h-7v1H28\n c0.8,0,1.5,0.7,1.5,1.5s-0.7,1.5-1.5,1.5h-9.5v1H27c0.8,0,1.5,0.7,1.5,1.5s-0.7,1.5-1.5,1.5h-8.5v1H24c0.8,0,1.5,0.7,1.5,1.5\n S24.8,28.5,24,28.5z\"/>\n </g>\n </g>\n </g>\n </svg>\n `,\n 'business-rule': `\n <svg version=\"1.1\" id=\"Layer_3\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n\t viewBox=\"0 0 35 35\" style=\"enable-background:new 0 0 35 35;\" xml:space=\"preserve\">\n <style type=\"text/css\">\n .st0{fill:{{strokeColor}};}\n </style>\n <g>\n <g>\n <path class=\"st0\" d=\"M28.6,11.1v14.8H6.5V11.1h20.3 M26.8,8H8.2c-1.5,0-2.7,1-2.7,2.1v15.8c0,1.2,1.2,1.1,2.7,1.1h18.7c1.5,0,2.7,0.1,2.7-1.1\n V10.1C29.5,8.9,28.3,8,26.8,8L26.8,8z\"/>\n </g>\n <path class=\"st0\" d=\"M29,21.4H6v-1h23V21.4z M28.8,16.4h-23v-1h23V16.4z M14.2,10.6v16h-1v-16H14.2z\"/>\n </g>\n </svg>\n `,\n script: `\n <svg version=\"1.1\" id=\"Layer_3\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n\t viewBox=\"0 0 35 35\" style=\"enable-background:new 0 0 35 35;\" xml:space=\"preserve\">\n <style type=\"text/css\">\n .st0{fill:none;stroke:{{strokeColor}};stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}\n </style>\n <g>\n <path class=\"st0\" d=\"M7.9,8h20.8c0,0-2.9,1.7-2.6,7.2c0.1,1,0.5,2,1.1,2.9c1.1,1.5,3,4.6,0.4,9h-21c0,0,3.2-5.5,1-9\n C7.6,18,3.8,12.4,7.9,8z\"/>\n <rect class=\"st0\" x=\"9.1\" y=\"11.3\" width=\"14\" height=\"1\"/>\n <rect class=\"st0\" x=\"9.7\" y=\"15\" width=\"14\" height=\"1\"/>\n <rect class=\"st0\" x=\"10.7\" y=\"18.7\" width=\"14\" height=\"1\"/>\n <rect class=\"st0\" x=\"11.7\" y=\"22.3\" width=\"14\" height=\"1\"/>\n </g>\n </svg>\n `\n}\n\nconst MARKERS: { [type: string]: string } = {\n loop: `\n <svg version=\"1.1\" id=\"Layer_3\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n viewBox=\"0 0 35 35\" style=\"enable-background:new 0 0 35 35;\" xml:space=\"preserve\">\n <style type=\"text/css\">\n .st0{fill:{{strokeColor}};}\n </style>\n <path class=\"st0\" d=\"M9.5,5.2C4.3,9.7,3.7,17.5,8.1,22.8L5,25.4l7.8,0.6l0.6-7.8L10.2,21c-3.5-4.1-3-10.1,1-13.6s10.1-3,13.6,1\n s3,10.1-1,13.6c-1.6,1.4-3.5,2.1-5.4,2.3l-0.2,2.8c2.6-0.2,5.3-1.1,7.4-3c5.2-4.5,5.8-12.3,1.3-17.5S14.7,0.8,9.5,5.2z\"/>\n </svg>\n`,\n parallel: `\n <svg version=\"1.1\" id=\"Layer_3\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n\t viewBox=\"0 0 35 35\" style=\"enable-background:new 0 0 35 35;\" xml:space=\"preserve\">\n <style type=\"text/css\">\n .st0{fill:{{strokeColor}};}\n </style>\n <g>\n <rect x=\"5.5\" y=\"1.9\" class=\"st0\" width=\"3.3\" height=\"25.3\"/>\n <rect x=\"15.9\" y=\"1.9\" class=\"st0\" width=\"3.3\" height=\"25.3\"/>\n <rect x=\"26.2\" y=\"1.9\" class=\"st0\" width=\"3.3\" height=\"25.3\"/>\n </g>\n </svg>\n `,\n sequential: `\n <svg version=\"1.1\" id=\"Layer_3\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\" y=\"0px\"\n\t viewBox=\"0 0 35 35\" style=\"enable-background:new 0 0 35 35;\" xml:space=\"preserve\">\n <style type=\"text/css\">\n .st0{fill:{{strokeColor}};}\n </style>\n <g>\n <rect x=\"4.8\" y=\"2.6\" width=\"25.3\" height=\"3.3\" class=\"st0\"/>\n <rect x=\"4.8\" y=\"13\" width=\"25.3\" height=\"3.3\" class=\"st0\"/>\n <rect x=\"4.8\" y=\"23.3\" width=\"25.3\" height=\"3.3\" class=\"st0\"/>\n </g>\n </svg>\n `\n}\n"]}
|
|
@@ -5,10 +5,17 @@ declare const _default: {
|
|
|
5
5
|
icon: string;
|
|
6
6
|
model: {
|
|
7
7
|
type: string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
x1: number;
|
|
9
|
+
y1: number;
|
|
10
|
+
x2: number;
|
|
11
|
+
y2: number;
|
|
12
|
+
strokeStyle: string;
|
|
13
|
+
lineWidth: number;
|
|
14
|
+
round: number;
|
|
15
|
+
begin: string;
|
|
16
|
+
beginSize: string;
|
|
17
|
+
end: string;
|
|
18
|
+
endSize: string;
|
|
12
19
|
};
|
|
13
20
|
about: string;
|
|
14
21
|
};
|
|
@@ -6,10 +6,17 @@ export default {
|
|
|
6
6
|
icon,
|
|
7
7
|
model: {
|
|
8
8
|
type: 'bpmn-flow',
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
x1: 100,
|
|
10
|
+
y1: 100,
|
|
11
|
+
x2: 200,
|
|
12
|
+
y2: 200,
|
|
13
|
+
strokeStyle: 'black',
|
|
14
|
+
lineWidth: 2,
|
|
15
|
+
round: 10,
|
|
16
|
+
begin: 'none',
|
|
17
|
+
beginSize: 'size1',
|
|
18
|
+
end: 'arrow',
|
|
19
|
+
endSize: 'size9'
|
|
13
20
|
},
|
|
14
21
|
about: '/helps/bpmn/flow/flow.md'
|
|
15
22
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bpmn-flow.js","sourceRoot":"","sources":["../../src/templates/bpmn-flow.ts"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,gCAAgC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAE5E,eAAe;IACb,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,wBAAwB;IACrC,KAAK,EAAE,SAAS;IAChB,IAAI;IACJ,KAAK,EAAE;QACL,IAAI,EAAE,WAAW;QACjB,
|
|
1
|
+
{"version":3,"file":"bpmn-flow.js","sourceRoot":"","sources":["../../src/templates/bpmn-flow.ts"],"names":[],"mappings":"AAAA,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,gCAAgC,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,CAAA;AAE5E,eAAe;IACb,IAAI,EAAE,WAAW;IACjB,WAAW,EAAE,wBAAwB;IACrC,KAAK,EAAE,SAAS;IAChB,IAAI;IACJ,KAAK,EAAE;QACL,IAAI,EAAE,WAAW;QACjB,EAAE,EAAE,GAAG;QACP,EAAE,EAAE,GAAG;QACP,EAAE,EAAE,GAAG;QACP,EAAE,EAAE,GAAG;QACP,WAAW,EAAE,OAAO;QACpB,SAAS,EAAE,CAAC;QACZ,KAAK,EAAE,EAAE;QACT,KAAK,EAAE,MAAM;QACb,SAAS,EAAE,OAAO;QAClB,GAAG,EAAE,OAAO;QACZ,OAAO,EAAE,OAAO;KACjB;IACD,KAAK,EAAE,0BAA0B;CAClC,CAAA","sourcesContent":["const icon = new URL('../../icons/icon-bpmn-flow.png', import.meta.url).href\n\nexport default {\n type: 'bpmn-flow',\n description: 'controls for BPMN flow',\n group: 'process',\n icon,\n model: {\n type: 'bpmn-flow',\n x1: 100,\n y1: 100,\n x2: 200,\n y2: 200,\n strokeStyle: 'black',\n lineWidth: 2,\n round: 10,\n begin: 'none',\n beginSize: 'size1',\n end: 'arrow',\n endSize: 'size9'\n },\n about: '/helps/bpmn/flow/flow.md'\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: {
|
|
1
|
+
declare const _default: ({
|
|
2
2
|
type: string;
|
|
3
3
|
description: string;
|
|
4
4
|
group: string;
|
|
@@ -9,7 +9,29 @@ declare const _default: {
|
|
|
9
9
|
top: number;
|
|
10
10
|
width: number;
|
|
11
11
|
height: number;
|
|
12
|
+
strokeStyle: string;
|
|
13
|
+
lineWidth: number;
|
|
12
14
|
};
|
|
13
15
|
about: string;
|
|
14
|
-
}
|
|
16
|
+
} | {
|
|
17
|
+
type: string;
|
|
18
|
+
description: string;
|
|
19
|
+
group: string;
|
|
20
|
+
icon: string;
|
|
21
|
+
model: {
|
|
22
|
+
type: string;
|
|
23
|
+
x1: number;
|
|
24
|
+
y1: number;
|
|
25
|
+
x2: number;
|
|
26
|
+
y2: number;
|
|
27
|
+
strokeStyle: string;
|
|
28
|
+
lineWidth: number;
|
|
29
|
+
round: number;
|
|
30
|
+
begin: string;
|
|
31
|
+
beginSize: string;
|
|
32
|
+
end: string;
|
|
33
|
+
endSize: string;
|
|
34
|
+
};
|
|
35
|
+
about: string;
|
|
36
|
+
})[];
|
|
15
37
|
export default _default;
|
|
@@ -5,11 +5,6 @@
|
|
|
5
5
|
},
|
|
6
6
|
"auditLog": "logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json",
|
|
7
7
|
"files": [
|
|
8
|
-
{
|
|
9
|
-
"date": 1667529554078,
|
|
10
|
-
"name": "logs/application-2022-11-04-11.log",
|
|
11
|
-
"hash": "a534e83ab1972d8e0a0bc94b3d5676455954fe3585f1b8d86f1f9bb18f3c9bfa"
|
|
12
|
-
},
|
|
13
8
|
{
|
|
14
9
|
"date": 1667539391709,
|
|
15
10
|
"name": "logs/application-2022-11-04-14.log",
|
|
@@ -49,6 +44,21 @@
|
|
|
49
44
|
"date": 1667648203876,
|
|
50
45
|
"name": "logs/application-2022-11-05-20.log",
|
|
51
46
|
"hash": "10b861fc26e00ea189134e063925fd03e749f8bdedb8d90b8fd112ec9a6fbb33"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"date": 1667658659432,
|
|
50
|
+
"name": "logs/application-2022-11-05-23.log",
|
|
51
|
+
"hash": "61c81cd567ef121dc101febadc22981507edec71533bc306b61716cfeed5ccc7"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"date": 1667663185909,
|
|
55
|
+
"name": "logs/application-2022-11-06-00.log",
|
|
56
|
+
"hash": "cfb02bf07e6f1e3aced77574cdad6729c41c9a6e6a5f41240a8d7dc39319e10b"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"date": 1667706475012,
|
|
60
|
+
"name": "logs/application-2022-11-06-12.log",
|
|
61
|
+
"hash": "dd895c49e0fb6505f9c27686fb228e03e6cf65b05b2dcc764fff87c768016993"
|
|
52
62
|
}
|
|
53
63
|
],
|
|
54
64
|
"hashType": "sha256"
|
|
@@ -59,6 +59,21 @@
|
|
|
59
59
|
"date": 1667648205315,
|
|
60
60
|
"name": "logs/connections-2022-11-05-20.log",
|
|
61
61
|
"hash": "e1064be56d3fcb012c1a92b9b670dfe212eb4b9da692dc02ba50b3e92aed0f11"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"date": 1667658660894,
|
|
65
|
+
"name": "logs/connections-2022-11-05-23.log",
|
|
66
|
+
"hash": "3cbf6fad1e4a4afb5a7053015ad2bdc8d0f579a4733ca6459e0445b2d77eebcd"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"date": 1667663186961,
|
|
70
|
+
"name": "logs/connections-2022-11-06-00.log",
|
|
71
|
+
"hash": "460a0734260e86f887869c0d16f9d871a411537404d71832b6d9fe446875b428"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"date": 1667706476124,
|
|
75
|
+
"name": "logs/connections-2022-11-06-12.log",
|
|
76
|
+
"hash": "55c3cea79b470acca8f8394b56ea7eb0696e94fad3ebe2e266c204894517e9a9"
|
|
62
77
|
}
|
|
63
78
|
],
|
|
64
79
|
"hashType": "sha256"
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
2022-11-05T23:31:00+09:00 info: File Storage is Ready.
|
|
2
|
+
2022-11-05T23:31:01+09:00 error: oracledb module loading failed
|
|
3
|
+
2022-11-05T23:31:01+09:00 info: Default DataSource established
|
|
4
|
+
2022-11-05T23:31:01+09:00 info: Transaction DataSource established
|
|
5
|
+
2022-11-05T23:31:02+09:00 info: 🚀 Server ready at http://0.0.0.0:3000/graphql
|
|
6
|
+
2022-11-05T23:31:02+09:00 info: 🚀 Subscriptions ready at ws://0.0.0.0:3000/graphql
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
2022-11-06T00:46:26+09:00 info: File Storage is Ready.
|
|
2
|
+
2022-11-06T00:46:27+09:00 error: oracledb module loading failed
|
|
3
|
+
2022-11-06T00:46:27+09:00 info: Default DataSource established
|
|
4
|
+
2022-11-06T00:46:28+09:00 info: Transaction DataSource established
|
|
5
|
+
2022-11-06T00:46:28+09:00 info: 🚀 Server ready at http://0.0.0.0:3000/graphql
|
|
6
|
+
2022-11-06T00:46:28+09:00 info: 🚀 Subscriptions ready at ws://0.0.0.0:3000/graphql
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
2022-11-06T12:47:55+09:00 info: File Storage is Ready.
|
|
2
|
+
2022-11-06T12:47:56+09:00 error: oracledb module loading failed
|
|
3
|
+
2022-11-06T12:47:57+09:00 info: Default DataSource established
|
|
4
|
+
2022-11-06T12:47:57+09:00 info: Transaction DataSource established
|
|
5
|
+
2022-11-06T12:47:58+09:00 info: 🚀 Server ready at http://0.0.0.0:3000/graphql
|
|
6
|
+
2022-11-06T12:47:58+09:00 info: 🚀 Subscriptions ready at ws://0.0.0.0:3000/graphql
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
2022-11-05T23:31:02+09:00 info: Initializing ConnectionManager...
|
|
2
|
+
2022-11-05T23:31:02+09:00 info: Connector 'echo-back-server' started to ready
|
|
3
|
+
2022-11-05T23:31:02+09:00 info: Connector 'echo-back' started to ready
|
|
4
|
+
2022-11-05T23:31:02+09:00 info: Connector 'http-connector' started to ready
|
|
5
|
+
2022-11-05T23:31:02+09:00 info: Connector 'graphql-connector' started to ready
|
|
6
|
+
2022-11-05T23:31:02+09:00 info: Connector 'sqlite-connector' started to ready
|
|
7
|
+
2022-11-05T23:31:02+09:00 info: Connector 'postgresql-connector' started to ready
|
|
8
|
+
2022-11-05T23:31:02+09:00 info: Connector 'mqtt-connector' started to ready
|
|
9
|
+
2022-11-05T23:31:02+09:00 info: Connector 'mssql-connector' started to ready
|
|
10
|
+
2022-11-05T23:31:02+09:00 info: Connector 'oracle-connector' started to ready
|
|
11
|
+
2022-11-05T23:31:02+09:00 info: Connector 'mysql-connector' started to ready
|
|
12
|
+
2022-11-05T23:31:02+09:00 info: Connector 'socket-server' started to ready
|
|
13
|
+
2022-11-05T23:31:02+09:00 info: echo-back-servers are ready
|
|
14
|
+
2022-11-05T23:31:02+09:00 info: echo-back connections are ready
|
|
15
|
+
2022-11-05T23:31:02+09:00 info: http-connector connections are ready
|
|
16
|
+
2022-11-05T23:31:02+09:00 info: graphql-connector connections are ready
|
|
17
|
+
2022-11-05T23:31:02+09:00 info: sqlite-connector connections are ready
|
|
18
|
+
2022-11-05T23:31:02+09:00 info: postgresql-connector connections are ready
|
|
19
|
+
2022-11-05T23:31:02+09:00 info: mqtt-connector connections are ready
|
|
20
|
+
2022-11-05T23:31:02+09:00 info: mssql-connector connections are ready
|
|
21
|
+
2022-11-05T23:31:02+09:00 info: oracle-connector connections are ready
|
|
22
|
+
2022-11-05T23:31:02+09:00 info: mysql-connector connections are ready
|
|
23
|
+
2022-11-05T23:31:02+09:00 info: socket servers are ready
|
|
24
|
+
2022-11-05T23:31:02+09:00 info: All connector for 'echo-back-server' ready
|
|
25
|
+
2022-11-05T23:31:02+09:00 info: All connector for 'echo-back' ready
|
|
26
|
+
2022-11-05T23:31:02+09:00 info: All connector for 'http-connector' ready
|
|
27
|
+
2022-11-05T23:31:02+09:00 info: All connector for 'graphql-connector' ready
|
|
28
|
+
2022-11-05T23:31:02+09:00 info: All connector for 'sqlite-connector' ready
|
|
29
|
+
2022-11-05T23:31:02+09:00 info: All connector for 'postgresql-connector' ready
|
|
30
|
+
2022-11-05T23:31:02+09:00 info: All connector for 'mqtt-connector' ready
|
|
31
|
+
2022-11-05T23:31:02+09:00 info: All connector for 'mssql-connector' ready
|
|
32
|
+
2022-11-05T23:31:02+09:00 info: All connector for 'oracle-connector' ready
|
|
33
|
+
2022-11-05T23:31:02+09:00 info: All connector for 'mysql-connector' ready
|
|
34
|
+
2022-11-05T23:31:02+09:00 info: All connector for 'socket-server' ready
|
|
35
|
+
2022-11-05T23:31:02+09:00 info: ConnectionManager initialization done:
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
2022-11-06T00:46:28+09:00 info: Initializing ConnectionManager...
|
|
2
|
+
2022-11-06T00:46:28+09:00 info: Connector 'echo-back-server' started to ready
|
|
3
|
+
2022-11-06T00:46:28+09:00 info: Connector 'echo-back' started to ready
|
|
4
|
+
2022-11-06T00:46:28+09:00 info: Connector 'http-connector' started to ready
|
|
5
|
+
2022-11-06T00:46:28+09:00 info: Connector 'graphql-connector' started to ready
|
|
6
|
+
2022-11-06T00:46:28+09:00 info: Connector 'sqlite-connector' started to ready
|
|
7
|
+
2022-11-06T00:46:28+09:00 info: Connector 'postgresql-connector' started to ready
|
|
8
|
+
2022-11-06T00:46:28+09:00 info: Connector 'mqtt-connector' started to ready
|
|
9
|
+
2022-11-06T00:46:28+09:00 info: Connector 'mssql-connector' started to ready
|
|
10
|
+
2022-11-06T00:46:28+09:00 info: Connector 'oracle-connector' started to ready
|
|
11
|
+
2022-11-06T00:46:28+09:00 info: Connector 'mysql-connector' started to ready
|
|
12
|
+
2022-11-06T00:46:28+09:00 info: Connector 'socket-server' started to ready
|
|
13
|
+
2022-11-06T00:46:28+09:00 info: echo-back-servers are ready
|
|
14
|
+
2022-11-06T00:46:28+09:00 info: echo-back connections are ready
|
|
15
|
+
2022-11-06T00:46:28+09:00 info: http-connector connections are ready
|
|
16
|
+
2022-11-06T00:46:28+09:00 info: graphql-connector connections are ready
|
|
17
|
+
2022-11-06T00:46:28+09:00 info: sqlite-connector connections are ready
|
|
18
|
+
2022-11-06T00:46:28+09:00 info: postgresql-connector connections are ready
|
|
19
|
+
2022-11-06T00:46:28+09:00 info: mqtt-connector connections are ready
|
|
20
|
+
2022-11-06T00:46:28+09:00 info: mssql-connector connections are ready
|
|
21
|
+
2022-11-06T00:46:28+09:00 info: oracle-connector connections are ready
|
|
22
|
+
2022-11-06T00:46:28+09:00 info: mysql-connector connections are ready
|
|
23
|
+
2022-11-06T00:46:28+09:00 info: socket servers are ready
|
|
24
|
+
2022-11-06T00:46:28+09:00 info: All connector for 'echo-back-server' ready
|
|
25
|
+
2022-11-06T00:46:28+09:00 info: All connector for 'echo-back' ready
|
|
26
|
+
2022-11-06T00:46:28+09:00 info: All connector for 'http-connector' ready
|
|
27
|
+
2022-11-06T00:46:28+09:00 info: All connector for 'graphql-connector' ready
|
|
28
|
+
2022-11-06T00:46:28+09:00 info: All connector for 'sqlite-connector' ready
|
|
29
|
+
2022-11-06T00:46:28+09:00 info: All connector for 'postgresql-connector' ready
|
|
30
|
+
2022-11-06T00:46:28+09:00 info: All connector for 'mqtt-connector' ready
|
|
31
|
+
2022-11-06T00:46:28+09:00 info: All connector for 'mssql-connector' ready
|
|
32
|
+
2022-11-06T00:46:28+09:00 info: All connector for 'oracle-connector' ready
|
|
33
|
+
2022-11-06T00:46:28+09:00 info: All connector for 'mysql-connector' ready
|
|
34
|
+
2022-11-06T00:46:28+09:00 info: All connector for 'socket-server' ready
|
|
35
|
+
2022-11-06T00:46:28+09:00 info: ConnectionManager initialization done:
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
2022-11-06T12:47:58+09:00 info: Initializing ConnectionManager...
|
|
2
|
+
2022-11-06T12:47:58+09:00 info: Connector 'echo-back-server' started to ready
|
|
3
|
+
2022-11-06T12:47:58+09:00 info: Connector 'echo-back' started to ready
|
|
4
|
+
2022-11-06T12:47:58+09:00 info: Connector 'http-connector' started to ready
|
|
5
|
+
2022-11-06T12:47:58+09:00 info: Connector 'graphql-connector' started to ready
|
|
6
|
+
2022-11-06T12:47:58+09:00 info: Connector 'sqlite-connector' started to ready
|
|
7
|
+
2022-11-06T12:47:58+09:00 info: Connector 'postgresql-connector' started to ready
|
|
8
|
+
2022-11-06T12:47:58+09:00 info: Connector 'mqtt-connector' started to ready
|
|
9
|
+
2022-11-06T12:47:58+09:00 info: Connector 'mssql-connector' started to ready
|
|
10
|
+
2022-11-06T12:47:58+09:00 info: Connector 'oracle-connector' started to ready
|
|
11
|
+
2022-11-06T12:47:58+09:00 info: Connector 'mysql-connector' started to ready
|
|
12
|
+
2022-11-06T12:47:58+09:00 info: Connector 'socket-server' started to ready
|
|
13
|
+
2022-11-06T12:47:58+09:00 info: echo-back-servers are ready
|
|
14
|
+
2022-11-06T12:47:58+09:00 info: echo-back connections are ready
|
|
15
|
+
2022-11-06T12:47:58+09:00 info: http-connector connections are ready
|
|
16
|
+
2022-11-06T12:47:58+09:00 info: graphql-connector connections are ready
|
|
17
|
+
2022-11-06T12:47:58+09:00 info: sqlite-connector connections are ready
|
|
18
|
+
2022-11-06T12:47:58+09:00 info: postgresql-connector connections are ready
|
|
19
|
+
2022-11-06T12:47:58+09:00 info: mqtt-connector connections are ready
|
|
20
|
+
2022-11-06T12:47:58+09:00 info: mssql-connector connections are ready
|
|
21
|
+
2022-11-06T12:47:58+09:00 info: oracle-connector connections are ready
|
|
22
|
+
2022-11-06T12:47:58+09:00 info: mysql-connector connections are ready
|
|
23
|
+
2022-11-06T12:47:58+09:00 info: socket servers are ready
|
|
24
|
+
2022-11-06T12:47:58+09:00 info: All connector for 'echo-back-server' ready
|
|
25
|
+
2022-11-06T12:47:58+09:00 info: All connector for 'echo-back' ready
|
|
26
|
+
2022-11-06T12:47:58+09:00 info: All connector for 'http-connector' ready
|
|
27
|
+
2022-11-06T12:47:58+09:00 info: All connector for 'graphql-connector' ready
|
|
28
|
+
2022-11-06T12:47:58+09:00 info: All connector for 'sqlite-connector' ready
|
|
29
|
+
2022-11-06T12:47:58+09:00 info: All connector for 'postgresql-connector' ready
|
|
30
|
+
2022-11-06T12:47:58+09:00 info: All connector for 'mqtt-connector' ready
|
|
31
|
+
2022-11-06T12:47:58+09:00 info: All connector for 'mssql-connector' ready
|
|
32
|
+
2022-11-06T12:47:58+09:00 info: All connector for 'oracle-connector' ready
|
|
33
|
+
2022-11-06T12:47:58+09:00 info: All connector for 'mysql-connector' ready
|
|
34
|
+
2022-11-06T12:47:58+09:00 info: All connector for 'socket-server' ready
|
|
35
|
+
2022-11-06T12:47:58+09:00 info: ConnectionManager initialization done:
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "bpmn components for things-scene",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "heartyoh",
|
|
6
|
-
"version": "1.1.
|
|
6
|
+
"version": "1.1.9",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"module": "dist/index.js",
|
|
9
9
|
"things-scene": true,
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"prettier --write"
|
|
58
58
|
]
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "57be850ad2f3d257cecadb5e956b542d1c10a9aa"
|
|
61
61
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Anchor, Container, Connectable, LinkEnd } from '@hatiolab/things-scene'
|
|
1
|
+
import { Anchor, Container, Connectable, LinkEnd, Properties } from '@hatiolab/things-scene'
|
|
2
2
|
|
|
3
3
|
export enum DIRECTION {
|
|
4
4
|
NORTH = 'N',
|
|
@@ -30,8 +30,8 @@ export type NODE = {
|
|
|
30
30
|
|
|
31
31
|
const STYLE_MAP = {
|
|
32
32
|
message: {
|
|
33
|
-
strokeStyle: '
|
|
34
|
-
fillStyle: '
|
|
33
|
+
strokeStyle: 'black',
|
|
34
|
+
fillStyle: 'black'
|
|
35
35
|
},
|
|
36
36
|
sequence: {
|
|
37
37
|
strokeStyle: 'red',
|