@operato/scene-bpmn 8.0.0-beta.1 → 8.0.0

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.
Files changed (39) hide show
  1. package/package.json +5 -5
  2. package/CHANGELOG.md +0 -400
  3. package/src/base/bpmn-activity.ts +0 -32
  4. package/src/base/bpmn-container-base.ts +0 -201
  5. package/src/base/bpmn-control-base.ts +0 -201
  6. package/src/bpmn-comment.ts +0 -64
  7. package/src/bpmn-data-object.ts +0 -181
  8. package/src/bpmn-data-store.ts +0 -63
  9. package/src/bpmn-event.ts +0 -468
  10. package/src/bpmn-expanded-subprocess.ts +0 -207
  11. package/src/bpmn-flow.ts +0 -37
  12. package/src/bpmn-gateway.ts +0 -181
  13. package/src/bpmn-group.ts +0 -39
  14. package/src/bpmn-lane.ts +0 -125
  15. package/src/bpmn-message.ts +0 -57
  16. package/src/bpmn-pool.ts +0 -25
  17. package/src/bpmn-subprocess.ts +0 -323
  18. package/src/bpmn-task.ts +0 -479
  19. package/src/characteristics/loop.ts +0 -0
  20. package/src/editors/index.ts +0 -0
  21. package/src/groups/index.ts +0 -3
  22. package/src/groups/process.ts +0 -48
  23. package/src/index.ts +0 -13
  24. package/src/templates/bpmn-comment.ts +0 -24
  25. package/src/templates/bpmn-data-object.ts +0 -21
  26. package/src/templates/bpmn-data-store.ts +0 -19
  27. package/src/templates/bpmn-event.ts +0 -19
  28. package/src/templates/bpmn-expanded-subprocess.ts +0 -24
  29. package/src/templates/bpmn-flow.ts +0 -23
  30. package/src/templates/bpmn-gateway.ts +0 -19
  31. package/src/templates/bpmn-group.ts +0 -20
  32. package/src/templates/bpmn-lane.ts +0 -20
  33. package/src/templates/bpmn-message.ts +0 -21
  34. package/src/templates/bpmn-pool.ts +0 -18
  35. package/src/templates/bpmn-subprocess.ts +0 -18
  36. package/src/templates/bpmn-task.ts +0 -18
  37. package/src/templates/index.ts +0 -31
  38. package/tsconfig.json +0 -24
  39. package/tsconfig.tsbuildinfo +0 -1
package/src/bpmn-task.ts DELETED
@@ -1,479 +0,0 @@
1
- import { Component, ComponentNature, Properties } from '@hatiolab/things-scene'
2
-
3
- import BPMNControlBase from './base/bpmn-control-base'
4
-
5
- const NATURE: ComponentNature = {
6
- mutable: false,
7
- resizable: true,
8
- rotatable: false,
9
- properties: [
10
- {
11
- type: 'select',
12
- label: 'task-type',
13
- name: 'taskType',
14
- property: {
15
- options: [
16
- {
17
- display: '',
18
- value: ''
19
- },
20
- {
21
- display: 'service',
22
- value: 'service'
23
- },
24
- {
25
- display: 'send',
26
- value: 'send'
27
- },
28
- {
29
- display: 'receive',
30
- value: 'receive'
31
- },
32
- {
33
- display: 'user',
34
- value: 'user'
35
- },
36
- {
37
- display: 'manual',
38
- value: 'manual'
39
- },
40
- {
41
- display: 'business rule',
42
- value: 'business-rule'
43
- },
44
- {
45
- display: 'script',
46
- value: 'script'
47
- }
48
- ]
49
- }
50
- },
51
- {
52
- type: 'select',
53
- label: 'multi-instance',
54
- name: 'multiInstance',
55
- property: {
56
- options: [
57
- {
58
- display: '',
59
- value: ''
60
- },
61
- {
62
- display: 'parallel',
63
- value: 'parallel'
64
- },
65
- {
66
- display: 'sequential',
67
- value: 'sequential'
68
- }
69
- ]
70
- }
71
- },
72
- {
73
- type: 'checkbox',
74
- label: 'loop',
75
- name: 'loop'
76
- },
77
- {
78
- type: 'checkbox',
79
- label: 'call-activity',
80
- name: 'callActivity'
81
- },
82
- {
83
- type: 'checkbox',
84
- label: 'interrupting',
85
- name: 'interrupting'
86
- },
87
- {
88
- type: 'select',
89
- label: 'trigger-event',
90
- name: 'triggerEvent',
91
- property: {
92
- options: [
93
- {
94
- display: '',
95
- value: ''
96
- },
97
- {
98
- display: 'message',
99
- value: 'message'
100
- },
101
- {
102
- display: 'timer',
103
- value: 'timer'
104
- },
105
- {
106
- display: 'error',
107
- value: 'error'
108
- },
109
- {
110
- display: 'escalation',
111
- value: 'escalation'
112
- },
113
- {
114
- display: 'cancel',
115
- value: 'cancel'
116
- },
117
- {
118
- display: 'compensation',
119
- value: 'compensation'
120
- },
121
- {
122
- display: 'conditional',
123
- value: 'conditional'
124
- },
125
- {
126
- display: 'link',
127
- value: 'link'
128
- },
129
- {
130
- display: 'signal',
131
- value: 'signal'
132
- },
133
- {
134
- display: 'terminate',
135
- value: 'terminate'
136
- },
137
- {
138
- display: 'multiple',
139
- value: 'multiple'
140
- },
141
- {
142
- display: 'parallel multiple',
143
- value: 'parallel-multiple'
144
- }
145
- ]
146
- }
147
- },
148
- {
149
- // TODO this property might be an array
150
- type: 'select',
151
- label: 'boundary-event',
152
- name: 'boundaryEvent',
153
- property: {
154
- options: [
155
- {
156
- display: '',
157
- value: ''
158
- },
159
- {
160
- display: 'message',
161
- value: 'message'
162
- },
163
- {
164
- display: 'timer',
165
- value: 'timer'
166
- },
167
- {
168
- display: 'error',
169
- value: 'error'
170
- },
171
- {
172
- display: 'escalation',
173
- value: 'escalation'
174
- },
175
- {
176
- display: 'cancel',
177
- value: 'cancel'
178
- },
179
- {
180
- display: 'compensation',
181
- value: 'compensation'
182
- },
183
- {
184
- display: 'conditional',
185
- value: 'conditional'
186
- },
187
- {
188
- display: 'link',
189
- value: 'link'
190
- },
191
- {
192
- display: 'signal',
193
- value: 'signal'
194
- },
195
- {
196
- display: 'terminate',
197
- value: 'terminate'
198
- },
199
- {
200
- display: 'multiple',
201
- value: 'multiple'
202
- },
203
- {
204
- display: 'parallel multiple',
205
- value: 'parallel-multiple'
206
- }
207
- ]
208
- }
209
- }
210
- ],
211
- help: '/bpmn/task/task'
212
- }
213
-
214
- export default class BPMNTask extends BPMNControlBase {
215
- private imageElement?: HTMLImageElement
216
- private markerImages?: HTMLImageElement[]
217
-
218
- static get nature() {
219
- return NATURE
220
- }
221
-
222
- render(ctx: CanvasRenderingContext2D) {
223
- const { left, top, width, height } = this.bounds
224
- const { callActivity, interrupting } = this.state
225
- const radius = 9
226
-
227
- ctx.translate(left, top)
228
- ctx.beginPath()
229
-
230
- ctx.moveTo(radius, 0)
231
- ctx.arcTo(width, 0, width, height, radius)
232
- ctx.arcTo(width, height, 0, height, radius)
233
- ctx.arcTo(0, height, 0, 0, radius)
234
- ctx.arcTo(0, 0, width, 0, radius)
235
-
236
- ctx.translate(-left, -top)
237
-
238
- this.drawFill(ctx)
239
- if (callActivity) {
240
- this.drawStroke(ctx, { lineWidth: 5 })
241
- } else {
242
- this.drawStroke(ctx, {
243
- lineDash: interrupting ? 'dash' : 'solid'
244
- })
245
- }
246
-
247
- ctx.beginPath()
248
-
249
- const image = this.getImageElement()
250
- if (image) {
251
- this.drawImage(ctx, image, left, top, 24, 24)
252
- }
253
-
254
- const images = this.getMarkerImages() || []
255
- const start = left + (width - images.length * 16) / 2
256
-
257
- images.forEach((image, index) => {
258
- this.drawImage(ctx, image, start + index * 16, top + height - 16, 16, 16)
259
- })
260
- }
261
-
262
- onchange(after: Properties, before: Properties) {
263
- if (['loop', 'multiInstance', 'taskType', 'strokeStyle'].find(prop => prop in after)) {
264
- delete this.markerImages
265
- delete this.imageElement
266
- }
267
- }
268
-
269
- getImageElement(): HTMLImageElement | null | undefined {
270
- if (!this.imageElement) {
271
- const { taskType, strokeStyle } = this.state
272
-
273
- if (!taskType) {
274
- return
275
- }
276
-
277
- const src = IMAGES[taskType]
278
- if (!src) {
279
- return
280
- }
281
-
282
- this.imageElement = new Image()
283
- this.imageElement.src =
284
- 'data:image/svg+xml;charset=UTF-8;base64,' + btoa(src.replace(/{{strokeColor}}/g, strokeStyle))
285
- }
286
-
287
- return this.imageElement
288
- }
289
-
290
- getMarkerImages(): HTMLImageElement[] | null | undefined {
291
- if (!this.markerImages) {
292
- const { loop, multiInstance, strokeStyle } = this.state
293
-
294
- this.markerImages = []
295
-
296
- if (loop) {
297
- let image = new Image()
298
- image.src =
299
- 'data:image/svg+xml;charset=UTF-8;base64,' + btoa(MARKERS['loop'].replace(/{{strokeColor}}/g, strokeStyle))
300
- this.markerImages.push(image)
301
- }
302
-
303
- if (multiInstance) {
304
- let image = new Image()
305
- image.src =
306
- 'data:image/svg+xml;charset=UTF-8;base64,' +
307
- btoa(MARKERS[multiInstance].replace(/{{strokeColor}}/g, strokeStyle))
308
- this.markerImages.push(image)
309
- }
310
- }
311
-
312
- return this.markerImages
313
- }
314
- }
315
-
316
- Component.register('bpmn-task', BPMNTask)
317
-
318
- const IMAGES: { [type: string]: string } = {
319
- service: `
320
- <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"
321
- viewBox="0 0 35 35" style="enable-background:new 0 0 35 35;" xml:space="preserve">
322
- <style type="text/css">
323
- .st0{fill:{{strokeColor}};}
324
- </style>
325
- <g>
326
- <g>
327
- <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
328
- 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
329
- 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
330
- 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-0.8c0-0.2,0-0.5,0.1-0.8l0.1-0.6l-0.5-0.4L13,16.8l1.5-2.5
331
- l2,0.8l0.5,0.2l0.5-0.3c0.5-0.4,0.9-0.6,1.4-0.8l0.5-0.2l0.1-0.6l0.3-2.1H22.6 M21.1,24.5c2.5,0,4.6-2.1,4.6-4.6s-2.1-4.6-4.6-4.6
332
- s-4.6,2.1-4.6,4.6S18.6,24.5,21.1,24.5 M23,10.3h-3.8c-0.2,0-0.4,0.2-0.5,0.4l-0.4,2.5c-0.6,0.2-1.1,0.6-1.6,0.9l-2.4-1
333
- c-0.1,0-0.1,0-0.2,0c-0.2,0-0.3,0.1-0.4,0.3l-1.9,3.3c-0.1,0.2-0.1,0.5,0.1,0.6l2,1.6c-0.1,0.3-0.1,0.6-0.1,0.9s0,0.6,0.1,0.9
334
- l-2,1.6c-0.2,0.1-0.2,0.4-0.1,0.6l1.9,3.3c0.1,0.2,0.3,0.2,0.4,0.2c0.1,0,0.1,0,0.2,0l2.4-1c0.5,0.4,1,0.7,1.6,0.9l0.4,2.5
335
- c0,0.2,0.2,0.4,0.5,0.4H23c0.2,0,0.4-0.2,0.5-0.4l0.4-2.5c0.6-0.2,1.1-0.6,1.6-0.9l2.4,1c0.1,0,0.1,0,0.2,0c0.2,0,0.3-0.1,0.4-0.3
336
- l1.9-3.3c0.1-0.2,0.1-0.5-0.1-0.6l-2-1.6c0-0.3,0.1-0.6,0.1-0.9c0-0.3,0-0.6-0.1-0.9l2-1.6c0.2-0.1,0.2-0.4,0.1-0.6l-1.9-3.3
337
- c-0.1-0.2-0.3-0.2-0.4-0.2c-0.1,0-0.1,0-0.2,0l-2.4,1c-0.5-0.4-1-0.7-1.6-0.9l-0.4-2.5C23.5,10.4,23.3,10.3,23,10.3L23,10.3z
338
- M21.1,23.5c-2,0-3.6-1.6-3.6-3.6s1.6-3.6,3.6-3.6s3.6,1.6,3.6,3.6S23.1,23.5,21.1,23.5L21.1,23.5z"/>
339
- </g>
340
- <g>
341
- <g>
342
- <path class="st0" d="M16.8,6.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
343
- 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
344
- 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
345
- 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
346
- 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
347
- 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
348
- 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"/>
349
- </g>
350
- </g>
351
- </g>
352
- </svg>
353
- `,
354
- send: `
355
- <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"
356
- viewBox="0 0 35 35" style="enable-background:new 0 0 35 35;" xml:space="preserve">
357
- <style type="text/css">
358
- .st0{fill:{{strokeColor}};}
359
- </style>
360
- <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
361
- C29.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"/>
362
- </svg>
363
- `,
364
- receive: `
365
- <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"
366
- viewBox="0 0 35 35" style="enable-background:new 0 0 35 35;" xml:space="preserve">
367
- <style type="text/css">
368
- .st0{fill:{{strokeColor}};}
369
- </style>
370
- <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
371
- M27.1,9.3l-9.6,7l-9.6-7H27.1z M28.1,25.7H6.9v-16l10.6,8l10.6-8V25.7z"/>
372
- </svg>
373
- `,
374
- user: `
375
- <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"
376
- viewBox="0 0 35 35" style="enable-background:new 0 0 35 35;" xml:space="preserve">
377
- <style type="text/css">
378
- .st0{fill:{{strokeColor}};}
379
- </style>
380
- <g>
381
- <g>
382
- <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
383
- 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
384
- c-4,0-10.9,3.6-10.9,7.5v3h22v-3C28.5,22.5,21.4,19,17.4,19L17.4,19z"/>
385
- </g>
386
- <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"/>
387
- <path class="st0" d="M16.2,9.4c0,0-1.2,1.3-4,1.2l1.2-2.5L14.9,7L16.2,9.4z"/>
388
- </g>
389
- </svg>
390
- `,
391
- manual: `
392
- <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"
393
- viewBox="0 0 35 35" style="enable-background:new 0 0 35 35;" xml:space="preserve">
394
- <style type="text/css">
395
- .st0{fill:none;stroke:{{strokeColor}};stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}
396
- </style>
397
- <g>
398
- <g>
399
- <g>
400
- <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
401
- 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
402
- 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
403
- S24.8,28.5,24,28.5z"/>
404
- </g>
405
- </g>
406
- </g>
407
- </svg>
408
- `,
409
- 'business-rule': `
410
- <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"
411
- viewBox="0 0 35 35" style="enable-background:new 0 0 35 35;" xml:space="preserve">
412
- <style type="text/css">
413
- .st0{fill:{{strokeColor}};}
414
- </style>
415
- <g>
416
- <g>
417
- <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
418
- V10.1C29.5,8.9,28.3,8,26.8,8L26.8,8z"/>
419
- </g>
420
- <path class="st0" d="M29,21.4H6v-1h23V21.4z M28.8,16.4h-23v-1h23V16.4z M14.2,10.6v16h-1v-16H14.2z"/>
421
- </g>
422
- </svg>
423
- `,
424
- script: `
425
- <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"
426
- viewBox="0 0 35 35" style="enable-background:new 0 0 35 35;" xml:space="preserve">
427
- <style type="text/css">
428
- .st0{fill:none;stroke:{{strokeColor}};stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}
429
- </style>
430
- <g>
431
- <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
432
- C7.6,18,3.8,12.4,7.9,8z"/>
433
- <rect class="st0" x="9.1" y="11.3" width="14" height="1"/>
434
- <rect class="st0" x="9.7" y="15" width="14" height="1"/>
435
- <rect class="st0" x="10.7" y="18.7" width="14" height="1"/>
436
- <rect class="st0" x="11.7" y="22.3" width="14" height="1"/>
437
- </g>
438
- </svg>
439
- `
440
- }
441
-
442
- const MARKERS: { [type: string]: string } = {
443
- loop: `
444
- <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"
445
- viewBox="0 0 35 35" style="enable-background:new 0 0 35 35;" xml:space="preserve">
446
- <style type="text/css">
447
- .st0{fill:{{strokeColor}};}
448
- </style>
449
- <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
450
- 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"/>
451
- </svg>
452
- `,
453
- parallel: `
454
- <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"
455
- viewBox="0 0 35 35" style="enable-background:new 0 0 35 35;" xml:space="preserve">
456
- <style type="text/css">
457
- .st0{fill:{{strokeColor}};}
458
- </style>
459
- <g>
460
- <rect x="5.5" y="1.9" class="st0" width="3.3" height="25.3"/>
461
- <rect x="15.9" y="1.9" class="st0" width="3.3" height="25.3"/>
462
- <rect x="26.2" y="1.9" class="st0" width="3.3" height="25.3"/>
463
- </g>
464
- </svg>
465
- `,
466
- sequential: `
467
- <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"
468
- viewBox="0 0 35 35" style="enable-background:new 0 0 35 35;" xml:space="preserve">
469
- <style type="text/css">
470
- .st0{fill:{{strokeColor}};}
471
- </style>
472
- <g>
473
- <rect x="4.8" y="2.6" width="25.3" height="3.3" class="st0"/>
474
- <rect x="4.8" y="13" width="25.3" height="3.3" class="st0"/>
475
- <rect x="4.8" y="23.3" width="25.3" height="3.3" class="st0"/>
476
- </g>
477
- </svg>
478
- `
479
- }
File without changes
File without changes
@@ -1,3 +0,0 @@
1
- import { process } from './process'
2
-
3
- export default [process]
@@ -1,48 +0,0 @@
1
- const icon = `
2
- <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
3
- viewBox="0 0 35 35" style="enable-background:new 0 0 35 35;" xml:space="preserve">
4
- <style type="text/css">
5
- .st0{fill:{{strokeColor}};}
6
- </style>
7
- <g>
8
- <g>
9
- <path class="st0" d="M33.2,15.2v4.6h-4.6v-4.6H33.2 M34,14.4h-6.1v6.1H34V14.4L34,14.4z"/>
10
- </g>
11
- <g>
12
- <g>
13
- <path class="st0" d="M17.5,15.3l2.2,2.2l-2.2,2.2l-2.2-2.2L17.5,15.3 M17.5,14.2l-3.3,3.3l3.3,3.3l3.3-3.3L17.5,14.2L17.5,14.2z"
14
- />
15
- </g>
16
- <g>
17
- <path class="st0" d="M19.8,7.2v4.6h-4.6V7.2H19.8 M20.6,6.5h-6.1v6.1h6.1V6.5L20.6,6.5z"/>
18
- </g>
19
- <g>
20
- <path class="st0" d="M19.8,23.1v4.6h-4.6v-4.6H19.8 M20.6,22.4h-6.1v6.1h6.1V22.4L20.6,22.4z"/>
21
- </g>
22
- </g>
23
- <g>
24
- <g>
25
- <polygon class="st0" points="13.3,17.4 10.6,19.6 10.6,15.2 13.3,17.4 "/>
26
- </g>
27
- <rect x="8.2" y="16.9" class="st0" width="3.4" height="0.9"/>
28
- </g>
29
- <g>
30
- <g>
31
- <polygon class="st0" points="26.8,17.4 24,19.6 24,15.2 26.8,17.4 "/>
32
- </g>
33
- <rect x="21.7" y="16.9" class="st0" width="3.4" height="0.9"/>
34
- </g>
35
- <g>
36
- <path class="st0" d="M4.1,15.2c1.3,0,2.3,1,2.3,2.3s-1,2.3-2.3,2.3s-2.3-1-2.3-2.3S2.8,15.2,4.1,15.2 M4.1,14.4
37
- c-1.7,0-3.1,1.4-3.1,3.1c0,1.7,1.4,3.1,3.1,3.1s3.1-1.4,3.1-3.1C7.1,15.8,5.8,14.4,4.1,14.4L4.1,14.4z"/>
38
- </g>
39
- </g>
40
- </svg>
41
- `
42
-
43
- export const process = {
44
- name: 'process',
45
- description: 'a group of Business Process Management Notation',
46
- icon,
47
- templates: []
48
- }
package/src/index.ts DELETED
@@ -1,13 +0,0 @@
1
- export { default as BPMNComment } from './bpmn-comment'
2
- export { default as BPMNDataObject } from './bpmn-data-object'
3
- export { default as BPMNDataStore } from './bpmn-data-store'
4
- export { default as BPMNEvent } from './bpmn-event'
5
- export { default as BPMNFlow } from './bpmn-flow'
6
- export { default as BPMNGateway } from './bpmn-gateway'
7
- export { default as BPMNGroup } from './bpmn-group'
8
- export { default as BPMNLane } from './bpmn-lane'
9
- export { default as BPMNPool } from './bpmn-pool'
10
- export { default as BPMNSubprocess } from './bpmn-subprocess'
11
- export { default as BPMNExpandedSubprocess } from './bpmn-expanded-subprocess'
12
- export { default as BPMNTask } from './bpmn-task'
13
- export { default as BPMNMessage } from './bpmn-message'
@@ -1,24 +0,0 @@
1
- const icon = new URL('../../icons/icon-bpmn-comment.png', import.meta.url).href
2
-
3
- export default {
4
- type: 'bpmn-comment',
5
- description: 'controls for BPMN comment',
6
- group: 'process',
7
- icon,
8
- model: {
9
- type: 'bpmn-comment',
10
- left: 10,
11
- top: 10,
12
- width: 100,
13
- height: 60,
14
- lineWidth: 2,
15
- strokeStyle: 'black',
16
- textAlign: 'left',
17
- textBaseline: 'top',
18
- paddingTop: 10,
19
- paddingBottom: 10,
20
- paddingLeft: 10,
21
- paddingRight: 10
22
- },
23
- about: '/helps/bpmn/comment/comment.md'
24
- }
@@ -1,21 +0,0 @@
1
- const icon = new URL('../../icons/icon-bpmn-data-object.png', import.meta.url).href
2
-
3
- export default {
4
- type: 'bpmn-data-object',
5
- description: 'controls for BPMN data-object',
6
- group: 'process',
7
- icon,
8
- model: {
9
- type: 'bpmn-data-object',
10
- left: 10,
11
- top: 10,
12
- width: 60,
13
- height: 60,
14
- strokeStyle: 'black',
15
- lineWidth: 2,
16
- lineCap: 'round',
17
- lineJoin: 'round',
18
- textBaseline: 'top'
19
- },
20
- about: '/helps/bpmn/data-object/data-object.md'
21
- }
@@ -1,19 +0,0 @@
1
- const icon = new URL('../../icons/icon-bpmn-data-store.png', import.meta.url).href
2
-
3
- export default {
4
- type: 'bpmn-data-store',
5
- description: 'controls for BPMN data-store',
6
- group: 'process',
7
- icon,
8
- model: {
9
- type: 'bpmn-data-store',
10
- left: 10,
11
- top: 10,
12
- width: 60,
13
- height: 60,
14
- strokeStyle: 'black',
15
- lineWidth: 2,
16
- textBaseline: 'top'
17
- },
18
- about: '/helps/bpmn/data-store/data-store.md'
19
- }
@@ -1,19 +0,0 @@
1
- const icon = new URL('../../icons/icon-bpmn-event.png', import.meta.url).href
2
-
3
- export default {
4
- type: 'bpmn-event',
5
- description: 'controls for BPMN event',
6
- group: 'process',
7
- icon,
8
- model: {
9
- type: 'bpmn-event',
10
- left: 10,
11
- top: 10,
12
- width: 48,
13
- height: 48,
14
- strokeStyle: 'black',
15
- lineWidth: 2,
16
- textBaseline: 'top'
17
- },
18
- about: 'https://www.visual-paradigm.com/guide/bpmn/bpmn-events/'
19
- }
@@ -1,24 +0,0 @@
1
- const icon = new URL('../../icons/icon-bpmn-expanded-subprocess.png', import.meta.url).href
2
-
3
- export default {
4
- type: 'bpmn-expanded-subprocess',
5
- description: 'controls for BPMN expanded subprocess',
6
- group: 'process',
7
- icon,
8
- model: {
9
- type: 'bpmn-expanded-subprocess',
10
- left: 10,
11
- top: 10,
12
- width: 160,
13
- height: 120,
14
- lineWidth: 1,
15
- strokeStyle: 'black',
16
- textAlign: 'left',
17
- textBaseline: 'top',
18
- text: '#{name}',
19
- paddingLeft: 6,
20
- paddingTop: 6
21
- },
22
-
23
- about: '/helps/bpmn/expanded-subprocess/expanded-subprocess.md'
24
- }
@@ -1,23 +0,0 @@
1
- const icon = new URL('../../icons/icon-bpmn-flow.png', import.meta.url).href
2
-
3
- export default {
4
- type: 'bpmn-flow',
5
- description: 'controls for BPMN flow',
6
- group: 'process',
7
- icon,
8
- model: {
9
- type: 'bpmn-flow',
10
- x1: 100,
11
- y1: 100,
12
- x2: 200,
13
- y2: 200,
14
- strokeStyle: 'black',
15
- lineWidth: 2,
16
- round: 10,
17
- begin: 'none',
18
- beginSize: 'size1',
19
- end: 'arrow',
20
- endSize: 'size9'
21
- },
22
- about: '/helps/bpmn/flow/flow.md'
23
- }