@operato/scene-bpmn 1.1.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.
Files changed (180) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/LICENSE +21 -0
  3. package/README.md +13 -0
  4. package/assets/favicon.ico +0 -0
  5. package/assets/images/spinner.png +0 -0
  6. package/db.sqlite +0 -0
  7. package/dist/base/bpmn-activity.d.ts +5 -0
  8. package/dist/base/bpmn-activity.js +23 -0
  9. package/dist/base/bpmn-activity.js.map +1 -0
  10. package/dist/base/bpmn-container-base.d.ts +36 -0
  11. package/dist/base/bpmn-container-base.js +167 -0
  12. package/dist/base/bpmn-container-base.js.map +1 -0
  13. package/dist/base/bpmn-control-base.d.ts +36 -0
  14. package/dist/base/bpmn-control-base.js +167 -0
  15. package/dist/base/bpmn-control-base.js.map +1 -0
  16. package/dist/bpmn-call-activity.d.ts +11 -0
  17. package/dist/bpmn-call-activity.js +19 -0
  18. package/dist/bpmn-call-activity.js.map +1 -0
  19. package/dist/bpmn-comment.d.ts +14 -0
  20. package/dist/bpmn-comment.js +53 -0
  21. package/dist/bpmn-comment.js.map +1 -0
  22. package/dist/bpmn-data-object.d.ts +25 -0
  23. package/dist/bpmn-data-object.js +106 -0
  24. package/dist/bpmn-data-object.js.map +1 -0
  25. package/dist/bpmn-data-store.d.ts +11 -0
  26. package/dist/bpmn-data-store.js +36 -0
  27. package/dist/bpmn-data-store.js.map +1 -0
  28. package/dist/bpmn-event.d.ts +25 -0
  29. package/dist/bpmn-event.js +421 -0
  30. package/dist/bpmn-event.js.map +1 -0
  31. package/dist/bpmn-flow.d.ts +19 -0
  32. package/dist/bpmn-flow.js +26 -0
  33. package/dist/bpmn-flow.js.map +1 -0
  34. package/dist/bpmn-gateway.d.ts +25 -0
  35. package/dist/bpmn-gateway.js +146 -0
  36. package/dist/bpmn-gateway.js.map +1 -0
  37. package/dist/bpmn-group.d.ts +11 -0
  38. package/dist/bpmn-group.js +35 -0
  39. package/dist/bpmn-group.js.map +1 -0
  40. package/dist/bpmn-lane.d.ts +15 -0
  41. package/dist/bpmn-lane.js +25 -0
  42. package/dist/bpmn-lane.js.map +1 -0
  43. package/dist/bpmn-pool.d.ts +14 -0
  44. package/dist/bpmn-pool.js +22 -0
  45. package/dist/bpmn-pool.js.map +1 -0
  46. package/dist/bpmn-subprocess.d.ts +19 -0
  47. package/dist/bpmn-subprocess.js +146 -0
  48. package/dist/bpmn-subprocess.js.map +1 -0
  49. package/dist/bpmn-task.d.ts +32 -0
  50. package/dist/bpmn-task.js +311 -0
  51. package/dist/bpmn-task.js.map +1 -0
  52. package/dist/editors/index.d.ts +0 -0
  53. package/dist/editors/index.js +2 -0
  54. package/dist/editors/index.js.map +1 -0
  55. package/dist/groups/index.d.ts +7 -0
  56. package/dist/groups/index.js +3 -0
  57. package/dist/groups/index.js.map +1 -0
  58. package/dist/groups/process.d.ts +6 -0
  59. package/dist/groups/process.js +48 -0
  60. package/dist/groups/process.js.map +1 -0
  61. package/dist/index.d.ts +12 -0
  62. package/dist/index.js +13 -0
  63. package/dist/index.js.map +1 -0
  64. package/dist/templates/bpmn-call-activity.d.ts +17 -0
  65. package/dist/templates/bpmn-call-activity.js +18 -0
  66. package/dist/templates/bpmn-call-activity.js.map +1 -0
  67. package/dist/templates/bpmn-comment.d.ts +19 -0
  68. package/dist/templates/bpmn-comment.js +20 -0
  69. package/dist/templates/bpmn-comment.js.map +1 -0
  70. package/dist/templates/bpmn-data-object.d.ts +19 -0
  71. package/dist/templates/bpmn-data-object.js +20 -0
  72. package/dist/templates/bpmn-data-object.js.map +1 -0
  73. package/dist/templates/bpmn-data-store.d.ts +17 -0
  74. package/dist/templates/bpmn-data-store.js +18 -0
  75. package/dist/templates/bpmn-data-store.js.map +1 -0
  76. package/dist/templates/bpmn-event.d.ts +17 -0
  77. package/dist/templates/bpmn-event.js +18 -0
  78. package/dist/templates/bpmn-event.js.map +1 -0
  79. package/dist/templates/bpmn-flow.d.ts +15 -0
  80. package/dist/templates/bpmn-flow.js +16 -0
  81. package/dist/templates/bpmn-flow.js.map +1 -0
  82. package/dist/templates/bpmn-gateway.d.ts +17 -0
  83. package/dist/templates/bpmn-gateway.js +18 -0
  84. package/dist/templates/bpmn-gateway.js.map +1 -0
  85. package/dist/templates/bpmn-group.d.ts +15 -0
  86. package/dist/templates/bpmn-group.js +16 -0
  87. package/dist/templates/bpmn-group.js.map +1 -0
  88. package/dist/templates/bpmn-lane.d.ts +17 -0
  89. package/dist/templates/bpmn-lane.js +18 -0
  90. package/dist/templates/bpmn-lane.js.map +1 -0
  91. package/dist/templates/bpmn-pool.d.ts +15 -0
  92. package/dist/templates/bpmn-pool.js +16 -0
  93. package/dist/templates/bpmn-pool.js.map +1 -0
  94. package/dist/templates/bpmn-subprocess.d.ts +17 -0
  95. package/dist/templates/bpmn-subprocess.js +18 -0
  96. package/dist/templates/bpmn-subprocess.js.map +1 -0
  97. package/dist/templates/bpmn-task.d.ts +17 -0
  98. package/dist/templates/bpmn-task.js +18 -0
  99. package/dist/templates/bpmn-task.js.map +1 -0
  100. package/dist/templates/index.d.ts +15 -0
  101. package/dist/templates/index.js +28 -0
  102. package/dist/templates/index.js.map +1 -0
  103. package/helps/bpmn/gateway/complex-decision-gateway-example.png +0 -0
  104. package/helps/bpmn/gateway/complex-decision-gateway.png +0 -0
  105. package/helps/bpmn/gateway/event-based-gateway-example.webp +0 -0
  106. package/helps/bpmn/gateway/exclusive-event-based-gateway-example.png +0 -0
  107. package/helps/bpmn/gateway/exclusive-event-based-gateway.webp +0 -0
  108. package/helps/bpmn/gateway/exclusive-gateway-example.webp +0 -0
  109. package/helps/bpmn/gateway/exclusive-gateway.png +0 -0
  110. package/helps/bpmn/gateway/gateway-types.webp +0 -0
  111. package/helps/bpmn/gateway/gateway.md +111 -0
  112. package/helps/bpmn/gateway/inclusive-gateway-example.webp +0 -0
  113. package/helps/bpmn/gateway/inclusive-gateway.png +0 -0
  114. package/helps/bpmn/gateway/parallel-event-based-gateway-example.png +0 -0
  115. package/helps/bpmn/gateway/parallel-event-based-gateway.png +0 -0
  116. package/helps/bpmn/gateway/parallel-gateway-example.webp +0 -0
  117. package/helps/bpmn/gateway/parallel-gateway.png +0 -0
  118. package/icons/bpmn-group.png +0 -0
  119. package/icons/bpmn-lane.png +0 -0
  120. package/icons/bpmn-pool.png +0 -0
  121. package/icons/icon-bpmn-association-flow.png +0 -0
  122. package/icons/icon-bpmn-call-activity.png +0 -0
  123. package/icons/icon-bpmn-comment.png +0 -0
  124. package/icons/icon-bpmn-data-object.png +0 -0
  125. package/icons/icon-bpmn-data-store.png +0 -0
  126. package/icons/icon-bpmn-event.png +0 -0
  127. package/icons/icon-bpmn-flow.png +0 -0
  128. package/icons/icon-bpmn-gateway.png +0 -0
  129. package/icons/icon-bpmn-group.png +0 -0
  130. package/icons/icon-bpmn-lane.png +0 -0
  131. package/icons/icon-bpmn-message-flow.png +0 -0
  132. package/icons/icon-bpmn-pool.png +0 -0
  133. package/icons/icon-bpmn-subprocess.png +0 -0
  134. package/icons/icon-bpmn-task.png +0 -0
  135. package/logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json +20 -0
  136. package/logs/.5e5d741d8b7784a2fbad65eedc0fd46946aaf6f2-audit.json +20 -0
  137. package/logs/application-2022-11-03-10.log +22 -0
  138. package/logs/application-2022-11-03-11.log +18 -0
  139. package/logs/connections-2022-11-03-10.log +70 -0
  140. package/logs/connections-2022-11-03-11.log +105 -0
  141. package/package.json +60 -0
  142. package/src/base/bpmn-activity.ts +32 -0
  143. package/src/base/bpmn-container-base.ts +201 -0
  144. package/src/base/bpmn-control-base.ts +201 -0
  145. package/src/bpmn-call-activity.ts +22 -0
  146. package/src/bpmn-comment.ts +65 -0
  147. package/src/bpmn-data-object.ts +127 -0
  148. package/src/bpmn-data-store.ts +47 -0
  149. package/src/bpmn-event.ts +442 -0
  150. package/src/bpmn-flow.ts +28 -0
  151. package/src/bpmn-gateway.ts +165 -0
  152. package/src/bpmn-group.ts +39 -0
  153. package/src/bpmn-lane.ts +46 -0
  154. package/src/bpmn-pool.ts +25 -0
  155. package/src/bpmn-subprocess.ts +165 -0
  156. package/src/bpmn-task.ts +340 -0
  157. package/src/editors/index.ts +0 -0
  158. package/src/groups/index.ts +3 -0
  159. package/src/groups/process.ts +48 -0
  160. package/src/index.ts +12 -0
  161. package/src/templates/bpmn-call-activity.ts +18 -0
  162. package/src/templates/bpmn-comment.ts +20 -0
  163. package/src/templates/bpmn-data-object.ts +20 -0
  164. package/src/templates/bpmn-data-store.ts +18 -0
  165. package/src/templates/bpmn-event.ts +18 -0
  166. package/src/templates/bpmn-flow.ts +16 -0
  167. package/src/templates/bpmn-gateway.ts +18 -0
  168. package/src/templates/bpmn-group.ts +16 -0
  169. package/src/templates/bpmn-lane.ts +18 -0
  170. package/src/templates/bpmn-pool.ts +16 -0
  171. package/src/templates/bpmn-subprocess.ts +18 -0
  172. package/src/templates/bpmn-task.ts +18 -0
  173. package/src/templates/index.ts +29 -0
  174. package/things-scene.config.js +7 -0
  175. package/translations/en.json +11 -0
  176. package/translations/ko.json +11 -0
  177. package/translations/ms.json +11 -0
  178. package/translations/zh.json +11 -0
  179. package/tsconfig.json +22 -0
  180. package/tsconfig.tsbuildinfo +1 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bpmn-comment.js","sourceRoot":"","sources":["../src/bpmn-comment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAE1D,OAAO,eAAe,EAAE,EAAE,SAAS,EAAE,KAAK,EAAQ,IAAI,EAAE,MAAM,0BAA0B,CAAA;AAExF,MAAM,MAAM,GAAG;IACb,OAAO,EAAE,KAAK;IACd,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,KAAK;IAChB,UAAU,EAAE,EAAE;IACd,IAAI,EAAE,uCAAuC;CAC9C,CAAA;AAED,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,eAAe;IACtD,M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AAG,IAAI,CAAC,MAAM,CAAA;QAE9C,OAAO;YACL,IAAI,EAAE,IAAI,GAAG,EAAE;YACf,GAAG,EAAE,GAAG,GAAG,EAAE;YACb,KAAK,EAAE,KAAK,GAAG,EAAE;YACjB,MAAM,EAAE,MAAM,GAAG,EAAE;SACpB,CAAA;IACH,CAAC;CACF;AAED,SAAS,CAAC,QAAQ,CAAC,cAAc,EAAE,WAAW,CAAC,CAAA","sourcesContent":["import { BOUNDS, Component } from '@hatiolab/things-scene'\n\nimport BPMNControlBase, { DIRECTION, INOUT, NODE, FLOW } from './base/bpmn-control-base'\n\nconst NATURE = {\n mutable: false,\n resizable: true,\n rotatable: false,\n properties: [],\n help: '/eipatterns/bpmn-comment/bpmn-comment'\n}\n\nexport default class BPMNComment extends BPMNControlBase {\n static get nature() {\n return NATURE\n }\n\n get nodes(): NODE[] {\n return [\n {\n name: 'Left',\n description: 'Left side message inout',\n inout: INOUT.INOUT,\n type: FLOW.MESSAGE,\n direction: DIRECTION.WEST,\n multiplicity: 1\n }\n ]\n }\n\n render(ctx: CanvasRenderingContext2D) {\n const { left, top, width, height } = this.bounds\n const bracket = height / 3\n\n ctx.translate(left, top)\n ctx.beginPath()\n\n ctx.moveTo(bracket, 0)\n ctx.lineTo(0, 0)\n ctx.lineTo(0, height)\n ctx.lineTo(bracket, height)\n this.drawStroke(ctx)\n\n ctx.beginPath()\n ctx.rect(0, 0, width, height)\n this.drawFill(ctx)\n\n ctx.beginPath()\n\n ctx.translate(-left, -top)\n }\n\n get textBounds(): BOUNDS {\n var { left, top, width, height } = this.bounds\n\n return {\n left: left + 10,\n top: top + 10,\n width: width - 10,\n height: height - 10\n }\n }\n}\n\nComponent.register('bpmn-comment', BPMNComment)\n"]}
@@ -0,0 +1,25 @@
1
+ import { Properties } from '@hatiolab/things-scene';
2
+ import BPMNControlBase from './base/bpmn-control-base';
3
+ export default class BPMNDataObject extends BPMNControlBase {
4
+ private imageElement?;
5
+ static get nature(): {
6
+ mutable: boolean;
7
+ resizable: boolean;
8
+ rotatable: boolean;
9
+ properties: {
10
+ type: string;
11
+ name: string;
12
+ label: string;
13
+ property: {
14
+ options: {
15
+ display: string;
16
+ value: string;
17
+ }[];
18
+ };
19
+ }[];
20
+ help: string;
21
+ };
22
+ render(ctx: CanvasRenderingContext2D): void;
23
+ onchange(after: Properties, before: Properties): void;
24
+ getImageElement(): HTMLImageElement | undefined;
25
+ }
@@ -0,0 +1,106 @@
1
+ import { Component } from '@hatiolab/things-scene';
2
+ import BPMNControlBase from './base/bpmn-control-base';
3
+ const NATURE = {
4
+ mutable: false,
5
+ resizable: true,
6
+ rotatable: false,
7
+ properties: [
8
+ {
9
+ type: 'select',
10
+ name: 'inout',
11
+ label: 'inout',
12
+ property: {
13
+ options: [
14
+ {
15
+ display: '',
16
+ value: ''
17
+ },
18
+ {
19
+ display: 'input',
20
+ value: 'input'
21
+ },
22
+ {
23
+ display: 'output',
24
+ value: 'output'
25
+ }
26
+ ]
27
+ }
28
+ }
29
+ ],
30
+ help: '/eipatterns/bpmn-data-object/bpmn-data-object'
31
+ };
32
+ export default class BPMNDataObject extends BPMNControlBase {
33
+ static get nature() {
34
+ return NATURE;
35
+ }
36
+ render(ctx) {
37
+ var { left, top, width, height } = this.bounds;
38
+ const corner = (Math.min(width, height) * 2) / 5;
39
+ ctx.translate(left, top);
40
+ ctx.beginPath();
41
+ ctx.moveTo(width - corner, 0);
42
+ ctx.lineTo(width - corner, corner);
43
+ ctx.lineTo(width, corner);
44
+ ctx.lineTo(width - corner, 0);
45
+ this.drawStroke(ctx);
46
+ ctx.beginPath();
47
+ ctx.moveTo(0, 0);
48
+ ctx.lineTo(width - corner, 0);
49
+ ctx.lineTo(width - corner, corner);
50
+ ctx.lineTo(width, corner);
51
+ ctx.lineTo(width, height);
52
+ ctx.lineTo(0, height);
53
+ ctx.lineTo(0, 0);
54
+ this.drawFill(ctx);
55
+ this.drawStroke(ctx);
56
+ ctx.beginPath();
57
+ const image = this.getImageElement();
58
+ if (image) {
59
+ this.drawImage(ctx, image, 0, 0, corner, corner);
60
+ }
61
+ ctx.translate(-left, -top);
62
+ }
63
+ onchange(after, before) {
64
+ if ('inout' in after || 'strokeStyle' in after) {
65
+ delete this.imageElement;
66
+ }
67
+ }
68
+ getImageElement() {
69
+ if (!this.imageElement) {
70
+ const { inout, strokeStyle } = this.state;
71
+ if (!inout) {
72
+ return;
73
+ }
74
+ const src = IMAGES[inout];
75
+ if (!src) {
76
+ return;
77
+ }
78
+ this.imageElement = new Image();
79
+ this.imageElement.src =
80
+ 'data:image/svg+xml;charset=UTF-8;base64,' + btoa(src.replace(/{{strokeColor}}/g, strokeStyle));
81
+ }
82
+ return this.imageElement;
83
+ }
84
+ }
85
+ Component.register('bpmn-data-object', BPMNDataObject);
86
+ const IMAGES = {
87
+ input: `
88
+ <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"
89
+ viewBox="0 0 35 35" style="enable-background:new 0 0 35 35;" xml:space="preserve">
90
+ <style type="text/css">
91
+ .st0{fill:none;stroke:{{strokeColor}};stroke-miterlimit:10;}
92
+ </style>
93
+ <path class="st0" d="M19,13.8V8l9.5,9.5L19,27v-5.8H6.5v-7.5H19z"/>
94
+ </svg>
95
+ `,
96
+ output: `
97
+ <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"
98
+ viewBox="0 0 35 35" style="enable-background:new 0 0 35 35;" xml:space="preserve">
99
+ <style type="text/css">
100
+ .st0{fill:{{strokeColor}};}
101
+ </style>
102
+ <path class="st0" d="M19,13.8V8l9.5,9.5L19,27v-5.8H6.5v-7.5H19z"/>
103
+ </svg>
104
+ `
105
+ };
106
+ //# sourceMappingURL=bpmn-data-object.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bpmn-data-object.js","sourceRoot":"","sources":["../src/bpmn-data-object.ts"],"names":[],"mapp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EAAE,GAAG,IAAI,CAAC,KAAK,CAAA;YAEzC,IAAI,CAAC,KAAK,EAAE;gBACV,OAAM;aACP;YAED,MAAM,GAAG,GAAW,MAAM,CAAC,KAAK,CAAC,CAAA;YACjC,IAAI,CAAC,GAAG,EAAE;gBACR,OAAM;aACP;YAED,IAAI,CAAC,YAAY,GAAG,IAAI,KAAK,EAAE,CAAA;YAC/B,IAAI,CAAC,YAAY,CAAC,GAAG;gBACnB,0CAA0C,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,kBAAkB,EAAE,WAAW,CAAC,CAAC,CAAA;SAClG;QAED,OAAO,IAAI,CAAC,YAAY,CAAA;IAC1B,CAAC;CACF;AAED,SAAS,CAAC,QAAQ,CAAC,kBAAkB,EAAE,cAAc,CAAC,CAAA;AAEtD,MAAM,MAAM,GAA+B;IACzC,KAAK,EAAE;;;;;;;;GAQN;IACD,MAAM,EAAE;;;;;;;;GAQP;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 name: 'inout',\n label: 'inout',\n property: {\n options: [\n {\n display: '',\n value: ''\n },\n {\n display: 'input',\n value: 'input'\n },\n {\n display: 'output',\n value: 'output'\n }\n ]\n }\n }\n ],\n help: '/eipatterns/bpmn-data-object/bpmn-data-object'\n}\n\nexport default class BPMNDataObject extends BPMNControlBase {\n private imageElement?: HTMLImageElement\n\n static get nature() {\n return NATURE\n }\n\n render(ctx: CanvasRenderingContext2D) {\n var { left, top, width, height } = this.bounds\n\n const corner = (Math.min(width, height) * 2) / 5\n\n ctx.translate(left, top)\n ctx.beginPath()\n\n ctx.moveTo(width - corner, 0)\n ctx.lineTo(width - corner, corner)\n ctx.lineTo(width, corner)\n ctx.lineTo(width - corner, 0)\n this.drawStroke(ctx)\n\n ctx.beginPath()\n ctx.moveTo(0, 0)\n ctx.lineTo(width - corner, 0)\n ctx.lineTo(width - corner, corner)\n ctx.lineTo(width, corner)\n ctx.lineTo(width, height)\n ctx.lineTo(0, height)\n ctx.lineTo(0, 0)\n\n this.drawFill(ctx)\n this.drawStroke(ctx)\n\n ctx.beginPath()\n\n const image = this.getImageElement()\n if (image) {\n this.drawImage(ctx, image, 0, 0, corner, corner)\n }\n\n ctx.translate(-left, -top)\n }\n\n onchange(after: Properties, before: Properties) {\n if ('inout' in after || 'strokeStyle' in after) {\n delete this.imageElement\n }\n }\n\n getImageElement(): HTMLImageElement | undefined {\n if (!this.imageElement) {\n const { inout, strokeStyle } = this.state\n\n if (!inout) {\n return\n }\n\n const src: string = IMAGES[inout]\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\nComponent.register('bpmn-data-object', BPMNDataObject)\n\nconst IMAGES: { [type: string]: string } = {\n input: `\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:none;stroke:{{strokeColor}};stroke-miterlimit:10;}\n </style>\n <path class=\"st0\" d=\"M19,13.8V8l9.5,9.5L19,27v-5.8H6.5v-7.5H19z\"/>\n </svg>\n `,\n output: `\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=\"M19,13.8V8l9.5,9.5L19,27v-5.8H6.5v-7.5H19z\"/>\n </svg>\n `\n}\n"]}
@@ -0,0 +1,11 @@
1
+ import BPMNControlBase from './base/bpmn-control-base';
2
+ export default class BPMNDataStore extends BPMNControlBase {
3
+ static get nature(): {
4
+ mutable: boolean;
5
+ resizable: boolean;
6
+ rotatable: boolean;
7
+ properties: never[];
8
+ help: string;
9
+ };
10
+ render(ctx: CanvasRenderingContext2D): void;
11
+ }
@@ -0,0 +1,36 @@
1
+ import { Component } from '@hatiolab/things-scene';
2
+ import BPMNControlBase from './base/bpmn-control-base';
3
+ const NATURE = {
4
+ mutable: false,
5
+ resizable: true,
6
+ rotatable: false,
7
+ properties: [],
8
+ help: '/eipatterns/bpmn-data-store/bpmn-data-store'
9
+ };
10
+ export default class BPMNDataStore extends BPMNControlBase {
11
+ static get nature() {
12
+ return NATURE;
13
+ }
14
+ render(ctx) {
15
+ const { left, top, width, height } = this.bounds;
16
+ const ry = Math.abs(height / 6);
17
+ const startAngle = Math.PI;
18
+ const endAngle = 0;
19
+ ctx.translate(left, top);
20
+ ctx.beginPath();
21
+ ctx.ellipse(width / 2, ry, width / 2, ry, 0, startAngle, startAngle - Math.PI * 2, true);
22
+ ctx.moveTo(0, ry + ry / 2);
23
+ ctx.ellipse(width / 2, ry + ry / 2, width / 2, ry, 0, startAngle, endAngle, true);
24
+ ctx.moveTo(0, ry + ry);
25
+ ctx.ellipse(width / 2, ry + ry, width / 2, ry, 0, startAngle, endAngle, true);
26
+ ctx.moveTo(0, ry);
27
+ ctx.lineTo(0, height - ry);
28
+ ctx.ellipse(width / 2, height - ry, width / 2, ry, 0, startAngle, endAngle, true);
29
+ ctx.lineTo(width, ry);
30
+ this.drawFill(ctx);
31
+ this.drawStroke(ctx);
32
+ ctx.translate(-left, -top);
33
+ }
34
+ }
35
+ Component.register('bpmn-data-store', BPMNDataStore);
36
+ //# sourceMappingURL=bpmn-data-store.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bpmn-data-store.js","sourceRoot":"","sources":["../src/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G,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;QACtB,GAAG,CAAC,OAAO,CAAC,KAAK,GAAG,CAAC,EAAE,EAAE,GAAG,EAAE,EAAE,KAAK,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAA;QAE7E,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA;QACjB,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,GAAG,EAAE,CAAC,CAAA;QAC1B,GAAG,CAAC,OAAO,CAAC,KAAK,GAAG,CAAC,EAAE,MAAM,GAAG,EAAE,EAAE,KAAK,GAAG,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAA;QACjF,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,EAAE,CAAC,CAAA;QAErB,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;QAClB,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAA;QAEpB,GAAG,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAA;IAC5B,CAAC;CACF;AAED,SAAS,CAAC,QAAQ,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAA","sourcesContent":["import { Component } 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 help: '/eipatterns/bpmn-data-store/bpmn-data-store'\n}\n\nexport default class BPMNDataStore extends BPMNControlBase {\n static get nature() {\n return NATURE\n }\n\n render(ctx: CanvasRenderingContext2D) {\n const { left, top, width, height } = this.bounds\n const ry = Math.abs(height / 6)\n const startAngle = Math.PI\n const endAngle = 0\n\n ctx.translate(left, top)\n ctx.beginPath()\n\n ctx.ellipse(width / 2, ry, width / 2, ry, 0, startAngle, startAngle - Math.PI * 2, true)\n\n ctx.moveTo(0, ry + ry / 2)\n ctx.ellipse(width / 2, ry + ry / 2, width / 2, ry, 0, startAngle, endAngle, true)\n\n ctx.moveTo(0, ry + ry)\n ctx.ellipse(width / 2, ry + ry, width / 2, ry, 0, startAngle, endAngle, true)\n\n ctx.moveTo(0, ry)\n ctx.lineTo(0, height - ry)\n ctx.ellipse(width / 2, height - ry, width / 2, ry, 0, startAngle, endAngle, true)\n ctx.lineTo(width, ry)\n\n this.drawFill(ctx)\n this.drawStroke(ctx)\n\n ctx.translate(-left, -top)\n }\n}\n\nComponent.register('bpmn-data-store', BPMNDataStore)\n"]}
@@ -0,0 +1,25 @@
1
+ import { Properties } from '@hatiolab/things-scene';
2
+ import BPMNControlBase from './base/bpmn-control-base';
3
+ export default class BPMNEvent extends BPMNControlBase {
4
+ private imageElement?;
5
+ static get nature(): {
6
+ mutable: boolean;
7
+ resizable: boolean;
8
+ rotatable: boolean;
9
+ properties: {
10
+ type: string;
11
+ name: string;
12
+ label: string;
13
+ property: {
14
+ options: {
15
+ display: string;
16
+ value: string;
17
+ }[];
18
+ };
19
+ }[];
20
+ help: string;
21
+ };
22
+ render(ctx: CanvasRenderingContext2D): void;
23
+ onchange(after: Properties, before: Properties): void;
24
+ getImageElement(): HTMLImageElement | undefined;
25
+ }
@@ -0,0 +1,421 @@
1
+ import { Component } from '@hatiolab/things-scene';
2
+ import BPMNControlBase from './base/bpmn-control-base';
3
+ var BEHAVIOR;
4
+ (function (BEHAVIOR) {
5
+ BEHAVIOR[BEHAVIOR["catching"] = 0] = "catching";
6
+ BEHAVIOR[BEHAVIOR["throwing"] = 1] = "throwing";
7
+ })(BEHAVIOR || (BEHAVIOR = {}));
8
+ const NATURE = {
9
+ mutable: false,
10
+ resizable: false,
11
+ rotatable: false,
12
+ properties: [
13
+ {
14
+ type: 'select',
15
+ name: 'eventType',
16
+ label: 'event-type',
17
+ property: {
18
+ options: [
19
+ {
20
+ display: 'start',
21
+ value: 'start'
22
+ },
23
+ {
24
+ display: 'intermediate',
25
+ value: 'intermediate'
26
+ },
27
+ {
28
+ display: 'end',
29
+ value: 'end'
30
+ }
31
+ ]
32
+ }
33
+ },
34
+ {
35
+ type: 'select',
36
+ name: 'marker',
37
+ label: 'marker',
38
+ property: {
39
+ options: [
40
+ {
41
+ display: 'message',
42
+ value: 'message'
43
+ },
44
+ {
45
+ display: 'timer',
46
+ value: 'timer'
47
+ },
48
+ {
49
+ display: 'error',
50
+ value: 'error'
51
+ },
52
+ {
53
+ display: 'escalation',
54
+ value: 'escalation'
55
+ },
56
+ {
57
+ display: 'cancel',
58
+ value: 'cancel'
59
+ },
60
+ {
61
+ display: 'compensation',
62
+ value: 'compensation'
63
+ },
64
+ {
65
+ display: 'conditional',
66
+ value: 'conditional'
67
+ },
68
+ {
69
+ display: 'link',
70
+ value: 'link'
71
+ },
72
+ {
73
+ display: 'signal',
74
+ value: 'signal'
75
+ },
76
+ {
77
+ display: 'terminate',
78
+ value: 'terminate'
79
+ },
80
+ {
81
+ display: 'multiple',
82
+ value: 'multiple'
83
+ },
84
+ {
85
+ display: 'parallel multiple',
86
+ value: 'parallel-multiple'
87
+ }
88
+ ]
89
+ }
90
+ }
91
+ ],
92
+ help: '/eipatterns/bpmn-event/bpmn-event'
93
+ };
94
+ export default class BPMNEvent extends BPMNControlBase {
95
+ static get nature() {
96
+ return NATURE;
97
+ }
98
+ render(ctx) {
99
+ const { left, top, width, height } = this.bounds;
100
+ const { lineWidth } = this.state;
101
+ const { eventType } = this.state;
102
+ const cx = width / 2;
103
+ const cy = height / 2;
104
+ ctx.translate(left, top);
105
+ ctx.beginPath();
106
+ switch (eventType) {
107
+ case 'intermediate':
108
+ this.setState('lineWidth', 2);
109
+ ctx.ellipse(cx, cy, width / 2, height / 2, 0, 0, 2 * Math.PI);
110
+ ctx.moveTo(width / 2 + width / 2.5, height / 2);
111
+ ctx.ellipse(cx, cy, width / 2.5, height / 2.5, 0, 0, 2 * Math.PI);
112
+ break;
113
+ case 'end':
114
+ this.setState('lineWidth', 6);
115
+ ctx.ellipse(cx, cy, width / 2 - 1.5, height / 2 - 1.5, 0, 0, 2 * Math.PI);
116
+ break;
117
+ case 'start':
118
+ default:
119
+ this.setState('lineWidth', 2);
120
+ ctx.ellipse(cx, cy, width / 2, height / 2, 0, 0, 2 * Math.PI);
121
+ break;
122
+ }
123
+ this.drawFill(ctx);
124
+ this.drawStroke(ctx);
125
+ ctx.beginPath();
126
+ this.setState('lineWidth', lineWidth);
127
+ const image = this.getImageElement();
128
+ if (image) {
129
+ this.drawImage(ctx, image, width / 6, height / 6, (width * 2) / 3, (height * 2) / 3);
130
+ }
131
+ ctx.translate(-left, -top);
132
+ }
133
+ onchange(after, before) {
134
+ if ('marker' in after || 'strokeStyle' in after) {
135
+ delete this.imageElement;
136
+ }
137
+ }
138
+ getImageElement() {
139
+ if (!this.imageElement) {
140
+ const { marker, strokeStyle } = this.state;
141
+ if (!marker) {
142
+ return;
143
+ }
144
+ const src = IMAGES[marker];
145
+ if (!src) {
146
+ return;
147
+ }
148
+ this.imageElement = new Image();
149
+ this.imageElement.src =
150
+ 'data:image/svg+xml;charset=UTF-8;base64,' + btoa(src.replace(/{{strokeColor}}/g, strokeStyle));
151
+ }
152
+ return this.imageElement;
153
+ }
154
+ }
155
+ Component.register('bpmn-event', BPMNEvent);
156
+ const IMAGES = {
157
+ message: `
158
+ <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"
159
+ viewBox="0 0 35 35" style="enable-background:new 0 0 35 35;" xml:space="preserve">
160
+ <style type="text/css">
161
+ .st0{fill:{{strokeColor}};}
162
+ </style>
163
+ <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
164
+ M27.1,9.3l-9.6,7l-9.6-7H27.1z M28.1,25.7H6.9v-16l10.6,8l10.6-8V25.7z"/>
165
+ </svg>
166
+ `,
167
+ 'message-fill': `
168
+ <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"
169
+ viewBox="0 0 35 35" style="enable-background:new 0 0 35 35;" xml:space="preserve">
170
+ <style type="text/css">
171
+ .st0{fill:{{strokeColor}};}
172
+ </style>
173
+ <path 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
174
+ 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"/>
175
+ </svg>
176
+ `,
177
+ timer: `
178
+ <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"
179
+ viewBox="0 0 35 35" style="enable-background:new 0 0 35 35;" xml:space="preserve">
180
+ <style type="text/css">
181
+ .st0{fill:{{strokeColor}};}
182
+ </style>
183
+ <g>
184
+ <g id="XMLID_807_">
185
+ <path class="st0" d="M17.5,9.6c0.3,0,0.6-0.3,0.6-0.6V7.2c0-0.3-0.3-0.6-0.6-0.6c-0.3,0-0.6,0.3-0.6,0.6V9C16.9,9.3,17.2,9.6,17.5,9.6z"/>
186
+ </g>
187
+ <g>
188
+ <path class="st0" d="M7.4,18.2h1.8c0.3,0,0.6-0.3,0.6-0.6c0-0.3-0.3-0.6-0.6-0.6H7.4c-0.3,0-0.6,0.3-0.6,0.6C6.8,18,7,18.2,7.4,18.2z"/>
189
+ </g>
190
+ <g>
191
+ <path class="st0" d="M17.5,28.5c0.3,0,0.6-0.3,0.6-0.6v-1.8c0-0.3-0.3-0.6-0.6-0.6c-0.3,0-0.6,0.3-0.6,0.6v1.8C16.9,28.2,17.2,28.5,17.5,28.5z
192
+ "/>
193
+ </g>
194
+ <g>
195
+ <path class="st0" d="M25.9,18.2h1.8c0.3,0,0.6-0.3,0.6-0.6c0-0.3-0.3-0.6-0.6-0.6h-1.8c-0.3,0-0.6,0.3-0.6,0.6C25.3,18,25.5,18.2,25.9,18.2z"
196
+ />
197
+ </g>
198
+ <g>
199
+ <path class="st0" d="M13.2,10.9c0.1,0,0.2,0,0.3-0.1c0.3-0.2,0.4-0.5,0.2-0.8l-0.9-1.5c-0.2-0.3-0.5-0.4-0.8-0.2c-0.3,0.2-0.4,0.5-0.2,0.8
200
+ l0.9,1.5C12.8,10.8,13,10.9,13.2,10.9z"/>
201
+ </g>
202
+ <g>
203
+ <path class="st0" d="M9,23.5c0.1,0,0.2,0,0.3-0.1l1.5-0.9c0.3-0.2,0.4-0.5,0.2-0.8c-0.2-0.3-0.5-0.4-0.8-0.2l-1.5,0.9
204
+ c-0.3,0.2-0.4,0.5-0.2,0.8C8.6,23.4,8.8,23.5,9,23.5z"/>
205
+ </g>
206
+ <g>
207
+ <path class="st0" d="M22.6,27.2c0.1,0,0.2,0,0.3-0.1c0.3-0.2,0.4-0.5,0.2-0.8l-0.9-1.5c-0.2-0.3-0.5-0.4-0.8-0.2c-0.3,0.2-0.4,0.5-0.2,0.8
208
+ l0.9,1.5C22.2,27.1,22.4,27.2,22.6,27.2z"/>
209
+ </g>
210
+ <g>
211
+ <path class="st0" d="M25.1,14.5c0.1,0,0.2,0,0.3-0.1l1.5-0.9c0.3-0.2,0.4-0.5,0.2-0.8c-0.2-0.3-0.5-0.4-0.8-0.2l-1.5,0.9
212
+ c-0.3,0.2-0.4,0.5-0.2,0.8C24.7,14.4,24.9,14.5,25.1,14.5z"/>
213
+ </g>
214
+ <g>
215
+ <path class="st0" d="M10,13.8c0.2,0,0.4-0.1,0.5-0.3c0.2-0.3,0.1-0.7-0.2-0.8l-1.5-0.9c-0.3-0.2-0.7-0.1-0.8,0.2c-0.2,0.3-0.1,0.7,0.2,0.8
216
+ l1.5,0.9C9.8,13.8,9.9,13.8,10,13.8z"/>
217
+ </g>
218
+ <g>
219
+ <path class="st0" d="M12.4,27.1c0.2,0,0.4-0.1,0.5-0.3l0.9-1.5c0.2-0.3,0.1-0.7-0.2-0.8c-0.3-0.2-0.7-0.1-0.8,0.2l-0.9,1.5
220
+ c-0.2,0.3-0.1,0.7,0.2,0.8C12.2,27.1,12.3,27.1,12.4,27.1z"/>
221
+ </g>
222
+ <g>
223
+ <path class="st0" d="M26,23.5c0.2,0,0.4-0.1,0.5-0.3c0.2-0.3,0.1-0.7-0.2-0.8l-1.5-0.9c-0.3-0.2-0.7-0.1-0.8,0.2c-0.2,0.3-0.1,0.7,0.2,0.8
224
+ l1.5,0.9C25.8,23.5,25.9,23.5,26,23.5z"/>
225
+ </g>
226
+ <g>
227
+ <path class="st0" d="M21.8,10.8c0.2,0,0.4-0.1,0.5-0.3L23.2,9c0.2-0.3,0.1-0.7-0.2-0.8c-0.3-0.2-0.7-0.1-0.8,0.2l-0.9,1.5
228
+ c-0.2,0.3-0.1,0.7,0.2,0.8C21.6,10.8,21.7,10.8,21.8,10.8z"/>
229
+ </g>
230
+ <g id="XMLID_806_">
231
+ <path class="st0" d="M17.5,17.7c0.4,0,0.7-0.3,0.7-0.7v-5.6c0-0.4-0.3-0.7-0.7-0.7c-0.4,0-0.7,0.3-0.7,0.7V17C16.8,17.4,17.1,17.7,17.5,17.7z"
232
+ />
233
+ </g>
234
+ <g id="XMLID_805_">
235
+ <path class="st0" d="M17.5,18.3h3.9c0.4,0,0.7-0.3,0.7-0.7c0-0.4-0.3-0.7-0.7-0.7h-3.9c-0.4,0-0.7,0.3-0.7,0.7C16.8,17.9,17.1,18.3,17.5,18.3z
236
+ "/>
237
+ </g>
238
+ <g>
239
+ <path class="st0" d="M17.5,7.2c5.7,0,10.2,4.6,10.2,10.2s-4.6,10.2-10.2,10.2S7.2,23.2,7.2,17.5S11.8,7.2,17.5,7.2 M17.5,6.5
240
+ c-6.1,0-11,4.9-11,11s4.9,11,11,11s11-4.9,11-11S23.6,6.5,17.5,6.5L17.5,6.5z"/>
241
+ </g>
242
+ </g>
243
+ </svg>
244
+ `,
245
+ error: `
246
+ <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"
247
+ viewBox="0 0 35 35" style="enable-background:new 0 0 35 35;" xml:space="preserve">
248
+ <style type="text/css">
249
+ .st0{fill:{{strokeColor}};}
250
+ </style>
251
+ <g>
252
+ <path class="st0" d="M9.7,10.3l11.1,6.1c0.2,0.1,0.5,0.2,0.7,0.2c0.4,0,0.7-0.1,1-0.4l4.9-4.3l-2,12.7l-10.1-6c-0.2-0.1-0.5-0.2-0.8-0.2
253
+ c-0.3,0-0.7,0.1-0.9,0.3l-6,4.7L9.7,10.3 M29.5,8l-8,7.1L8.5,8l-3,19l9-7.1l12,7.1L29.5,8L29.5,8z"/>
254
+ </g>
255
+ </svg>
256
+ `,
257
+ 'error-fill': `
258
+ <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"
259
+ viewBox="0 0 35 35" style="enable-background:new 0 0 35 35;" xml:space="preserve">
260
+ <style type="text/css">
261
+ .st0{fill:{{strokeColor}};}
262
+ </style>
263
+ <g>
264
+ <polygon class="st0" points="26.5,27 29.5,8 21.5,15.1 8.5,8 5.5,27 14.5,19.9 "/>
265
+ </g>
266
+ </svg>
267
+ `,
268
+ escalation: `
269
+ <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"
270
+ viewBox="0 0 35 35" style="enable-background:new 0 0 35 35;" xml:space="preserve">
271
+ <style type="text/css">
272
+ .st0{fill:none;stroke:{{strokeColor}};stroke-miterlimit:10;}
273
+ </style>
274
+ <polygon class="st0" points="17.5,19.9 7.5,27 17.5,8 27.5,27 "/>
275
+ </svg>
276
+ `,
277
+ 'escalation-fill': `
278
+ <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"
279
+ viewBox="0 0 35 35" style="enable-background:new 0 0 35 35;" xml:space="preserve">
280
+ <style type="text/css">
281
+ .st0{fill:{{strokeColor}};}
282
+ </style>
283
+ <polygon class="st0" points="17.5,19.9 7.5,27 17.5,8 27.5,27 "/>
284
+ </svg>
285
+ `,
286
+ cancel: `
287
+ <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"
288
+ viewBox="0 0 35 35" style="enable-background:new 0 0 35 35;" xml:space="preserve">
289
+ <style type="text/css">
290
+ .st0{fill:{{strokeColor}};}
291
+ </style>
292
+ <path class="st0" d="M24.4,8.8l1.8,1.8l-6.9,6.9l6.9,6.9l-1.8,1.8l-6.9-6.9l-6.9,6.9l-1.8-1.8l6.9-6.9l-6.9-6.9l1.8-1.8l6.9,6.9L24.4,8.8
293
+ M24.4,7.4l-0.7,0.7l-6.2,6.2l-6.2-6.2l-0.7-0.7L9.9,8.1L8.1,9.9l-0.7,0.7l0.7,0.7l6.2,6.2l-6.2,6.2l-0.7,0.7l0.7,0.7l1.8,1.8
294
+ l0.7,0.7l0.7-0.7l6.2-6.2l6.2,6.2l0.7,0.7l0.7-0.7l1.8-1.8l0.7-0.7l-0.7-0.7l-6.2-6.2l6.2-6.2l0.7-0.7l-0.7-0.7l-1.8-1.8L24.4,7.4
295
+ L24.4,7.4z"/>
296
+ </svg>
297
+ `,
298
+ 'cancel-fill': `
299
+ <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"
300
+ viewBox="0 0 35 35" style="enable-background:new 0 0 35 35;" xml:space="preserve">
301
+ <style type="text/css">
302
+ .st0{fill:{{strokeColor}};}
303
+ </style>
304
+ <g>
305
+ <rect class="st0" x="6.5" y="16.3" transform="matrix(0.7071 -0.7071 0.7071 0.7071 -7.2487 17.5)" width="22" height="2.5"/>
306
+ </g>
307
+ <g>
308
+ <rect class="st0" x="16.2" y="6.5" transform="matrix(0.7071 -0.7071 0.7071 0.7071 -7.2487 17.5)" width="2.5" height="22"/>
309
+ </g>
310
+ </svg>
311
+ `,
312
+ compensation: `
313
+ <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"
314
+ viewBox="0 0 35 35" style="enable-background:new 0 0 35 35;" xml:space="preserve">
315
+ <style type="text/css">
316
+ .st0{fill:{{strokeColor}};}
317
+ </style>
318
+ <path class="st0" d="M17,10.4v14.2l-7.1-7.1L17,10.4 M18,8l-9.5,9.5L18,27V8L18,8z M8.5,17.5L8.5,17.5L8.5,17.5L8.5,17.5L8.5,17.5z"/>
319
+ <path class="st0" d="M25.5,10.4v14.2l-7.1-7.1L25.5,10.4 M26.5,8L17,17.5l9.5,9.5V8L26.5,8z M17,17.5L17,17.5L17,17.5L17,17.5L17,17.5z"/>
320
+ </svg>
321
+ `,
322
+ 'compensation-fill': `
323
+ <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"
324
+ viewBox="0 0 35 35" style="enable-background:new 0 0 35 35;" xml:space="preserve">
325
+ <style type="text/css">
326
+ .st0{fill:{{strokeColor}};}
327
+ </style>
328
+ <polygon class="st0" points="8.5,17.5 18,8 18,27 8.5,17.5 "/>
329
+ <polygon class="st0" points="17,17.5 26.5,8 26.5,27 17,17.5 "/>
330
+ </svg>
331
+ `,
332
+ conditional: `
333
+ <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"
334
+ viewBox="0 0 35 35" style="enable-background:new 0 0 35 35;" xml:space="preserve">
335
+ <style type="text/css">
336
+ .st0{fill:{{strokeColor}};}
337
+ </style>
338
+ <g>
339
+ <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
340
+ V10.1C29.5,8.9,28.3,8,26.8,8L26.8,8z"/>
341
+ </g>
342
+ <path class="st0" d="M27.5,23.5h-20v-1h20V23.5z M27.5,17.8h-20v-1h20V17.8z M27.5,14.9h-20v-1h20V14.9z M27.5,20.6h-20v-1h20V20.6z"/>
343
+ </svg>
344
+ `,
345
+ link: `
346
+ <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"
347
+ viewBox="0 0 35 35" style="enable-background:new 0 0 35 35;" xml:space="preserve">
348
+ <style type="text/css">
349
+ .st0{fill:none;stroke:{{strokeColor}};stroke-miterlimit:10;}
350
+ </style>
351
+ <path class="st0" d="M19,13.8V8l9.5,9.5L19,27v-5.8H6.5v-7.5H19z"/>
352
+ </svg>
353
+ `,
354
+ 'link-fill': `
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="M19,13.8V8l9.5,9.5L19,27v-5.8H6.5v-7.5H19z"/>
361
+ </svg>
362
+ `,
363
+ signal: `
364
+ <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"
365
+ viewBox="0 0 35 35" style="enable-background:new 0 0 35 35;" xml:space="preserve">
366
+ <style type="text/css">
367
+ .st0{fill:none;stroke:{{strokeColor}};stroke-miterlimit:10;}
368
+ </style>
369
+ <polygon class="st0" points="17.5,26.9 7.5,27 17.5,8 27.5,27 "/>
370
+ </svg>
371
+ `,
372
+ 'signal-fill': `
373
+ <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"
374
+ viewBox="0 0 35 35" style="enable-background:new 0 0 35 35;" xml:space="preserve">
375
+ <style type="text/css">
376
+ .st0{fill:{{strokeColor}};}
377
+ </style>
378
+ <polygon class="st0" points="17.5,26.9 7.5,27 17.5,8 27.5,27 "/>
379
+ </svg>
380
+ `,
381
+ terminate: `
382
+ <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"
383
+ viewBox="0 0 35 35" style="enable-background:new 0 0 35 35;" xml:space="preserve">
384
+ <style type="text/css">
385
+ .st0{fill:{{strokeColor}};}
386
+ </style>
387
+ <circle class="st0" cx="17.5" cy="17.5" r="11.5"/>
388
+ </svg>
389
+ `,
390
+ multiple: `
391
+ <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"
392
+ viewBox="0 0 35 35" style="enable-background:new 0 0 35 35;" xml:space="preserve">
393
+ <style type="text/css">
394
+ .st0{stroke:{{strokeColor}};}
395
+ </style>
396
+ <path class="st0" d="M17.5,9.2l8.8,6.4L23,26H12L8.7,15.6L17.5,9.2 M17.5,8l-10,7.3L11.3,27h12.4l3.8-11.8L17.5,8L17.5,8z"/>
397
+ </svg>
398
+ `,
399
+ 'multiple-fill': `
400
+ <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"
401
+ viewBox="0 0 35 35" style="enable-background:new 0 0 35 35;" xml:space="preserve">
402
+ <style type="text/css">
403
+ .st0{fill:{{strokeColor}};}
404
+ </style>
405
+ <polygon class="st0" points="17.5,8 7.5,15.3 11.3,27 23.7,27 27.5,15.3 "/>
406
+ </svg>
407
+ `,
408
+ 'parallel-multiple': `
409
+ <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"
410
+ viewBox="0 0 35 35" style="enable-background:new 0 0 35 35;" xml:space="preserve">
411
+ <style type="text/css">
412
+ .st0{fill:none;stroke:{{strokeColor}};stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}
413
+ .st1{fill:{{strokeColor}};}
414
+ </style>
415
+ <path class="st1" d="M18.4,10v6.6H25l0,1.7h-6.6V25h-1.7l0-6.6H10v-1.7h6.6V10H18.4 M19.4,9h-1h-1.7h-1v1v5.6H10H9v1v1.7v1h1h5.6l0,5.6v1h1h1.7
416
+ h1v-1v-5.6H25h1l0-1l0-1.7l0-1h-1h-5.6V10V9L19.4,9z"/>
417
+ <circle class="st0" cx="17.5" cy="17.5" r="12"/>
418
+ </svg>
419
+ `
420
+ };
421
+ //# sourceMappingURL=bpmn-event.js.map