camunda-bpmn-js 4.6.3 → 4.7.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 (49) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +88 -88
  3. package/dist/assets/base-modeler.css +5 -5
  4. package/dist/assets/base-navigated-viewer.css +1 -1
  5. package/dist/assets/base-viewer.css +1 -1
  6. package/dist/assets/camunda-cloud-modeler.css +2 -2
  7. package/dist/assets/camunda-platform-modeler.css +1 -1
  8. package/dist/assets/diagram-js.css +24 -0
  9. package/dist/base-modeler.development.js +144 -80
  10. package/dist/base-modeler.production.min.js +50 -36
  11. package/dist/camunda-cloud-modeler.development.js +207 -143
  12. package/dist/camunda-cloud-modeler.production.min.js +52 -38
  13. package/dist/camunda-cloud-navigated-viewer.development.js +40 -40
  14. package/dist/camunda-cloud-viewer.development.js +40 -40
  15. package/dist/camunda-platform-modeler.development.js +190 -126
  16. package/dist/camunda-platform-modeler.production.min.js +50 -36
  17. package/dist/camunda-platform-navigated-viewer.development.js +27 -27
  18. package/dist/camunda-platform-viewer.development.js +27 -27
  19. package/lib/base/Modeler.d.ts +20 -20
  20. package/lib/base/Modeler.js +65 -65
  21. package/lib/base/NavigatedViewer.d.ts +2 -2
  22. package/lib/base/NavigatedViewer.js +2 -2
  23. package/lib/base/Viewer.d.ts +2 -2
  24. package/lib/base/Viewer.js +2 -2
  25. package/lib/camunda-cloud/ElementTemplatesValidator.d.ts +1 -1
  26. package/lib/camunda-cloud/Modeler.d.ts +3 -3
  27. package/lib/camunda-cloud/Modeler.js +84 -84
  28. package/lib/camunda-cloud/NavigatedViewer.d.ts +9 -9
  29. package/lib/camunda-cloud/NavigatedViewer.js +36 -36
  30. package/lib/camunda-cloud/Viewer.d.ts +9 -9
  31. package/lib/camunda-cloud/Viewer.js +36 -36
  32. package/lib/camunda-cloud/util/commonModules.d.ts +9 -9
  33. package/lib/camunda-cloud/util/commonModules.js +15 -15
  34. package/lib/camunda-platform/Modeler.d.ts +3 -3
  35. package/lib/camunda-platform/Modeler.js +68 -68
  36. package/lib/camunda-platform/NavigatedViewer.d.ts +9 -9
  37. package/lib/camunda-platform/NavigatedViewer.js +27 -27
  38. package/lib/camunda-platform/Viewer.d.ts +9 -9
  39. package/lib/camunda-platform/Viewer.js +27 -27
  40. package/lib/camunda-platform/util/commonModules.d.ts +9 -9
  41. package/lib/camunda-platform/util/commonModules.js +11 -11
  42. package/lib/util/ExtensionElementsUtil.d.ts +24 -24
  43. package/lib/util/ExtensionElementsUtil.js +68 -68
  44. package/package.json +140 -140
  45. package/styles/base-modeler.css +5 -5
  46. package/styles/base-navigated-viewer.css +1 -1
  47. package/styles/base-viewer.css +1 -1
  48. package/styles/camunda-cloud-modeler.css +2 -2
  49. package/styles/camunda-platform-modeler.css +1 -1
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) 2021-present Camunda Services GmbH
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021-present Camunda Services GmbH
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
21
  THE SOFTWARE.
package/README.md CHANGED
@@ -1,88 +1,88 @@
1
- # camunda-bpmn-js
2
-
3
- [![CI](https://github.com/camunda/camunda-bpmn-js/workflows/CI/badge.svg)](https://github.com/camunda/camunda-bpmn-js/actions?query=workflow%3ACI)
4
-
5
- Embeddable Camunda modeling distributions based on [bpmn-js](https://github.com/bpmn-io/bpmn-js).
6
-
7
- ## Usage
8
-
9
- This project is designed to deliver different BPMN modeling distributions. Instead of creating custom Modeler implementations based on [bpmn-js](https://github.com/bpmn-io/bpmn-js), choose one of the existing packages to mirror the modeling experience of [Camunda's modeling](https://github.com/camunda/camunda-modeler/) products.
10
-
11
- Use a pre-packaged distribution
12
-
13
- ```html
14
- <link rel="stylesheet" href="https://unpkg.com/camunda-bpmn-js@0.1.0/dist/assets/camunda-platform-modeler.css" />
15
-
16
- <script src="https://unpkg.com/camunda-bpmn-js@0.1.0/dist/camunda-platform-modeler.development.js"></script>
17
- ```
18
-
19
- or install it via npm
20
-
21
- ```js
22
- import BpmnModeler from 'camunda-bpmn-js/lib/camunda-platform/Modeler';
23
-
24
- import 'camunda-bpmn-js/dist/assets/camunda-platform-modeler.css';
25
- ```
26
-
27
- into your web-application.
28
-
29
- ```js
30
- var bpmnModeler = new BpmnModeler({
31
- container: '#canvas',
32
- propertiesPanel: {
33
- parent: '#properties'
34
- }
35
- });
36
-
37
- try {
38
-
39
- await bpmnModeler.importXML(someDiagram);
40
-
41
- console.log('success!');
42
- bpmnModeler.get('canvas').zoom('fit-viewport');
43
- } catch (err) {
44
-
45
- console.error('something went wrong:', err);
46
- }
47
- ```
48
-
49
- Checkout [the docs](./docs/DISTRIBUTIONS.md) to learn more about the available distributions.
50
-
51
- ## Build and Run
52
-
53
- Prepare the project by installing all dependencies:
54
-
55
- ```sh
56
- npm install
57
- ```
58
-
59
- Then, depending on your use-case, you may run any of the following commands:
60
-
61
- ```sh
62
- # build the library and run all tests
63
- npm run all
64
-
65
- # spin up a single local camunda platform modeler instance
66
- npm run start:platform
67
-
68
- # run the full development setup
69
- npm run dev
70
- ```
71
-
72
- ## Related
73
-
74
- camunda-bpmn-js builds on top of a few powerful tools:
75
-
76
- * [bpmn-js](https://github.com/bpmn-io/bpmn-js): View and edit BPMN 2.0 diagrams in the browser
77
- * [diagram-js](https://github.com/bpmn-io/diagram-js): Diagram rendering and editing toolkit
78
- * [bpmn-js-properties-panel](https://github.com/bpmn-io/bpmn-js-properties-panel): A panel for (technical) properties editing
79
- * [bpmn-js-element-templates](https://github.com/bpmn-io/bpmn-js-element-templates): Domain specific editing for bpmn-js
80
- * [bpmn-js-create-append-anything](bpmn-js-create-append-anything): A create/append anything extension for bpmn-js
81
- * [bpmn-moddle](https://github.com/bpmn-io/bpmn-moddle): A BPMN 2.0 diagram reader/writer with extensions for [Camunda 7](https://github.com/camunda/camunda-bpmn-moddle) and [Camunda 8](https://github.com/camunda/zeebe-bpmn-moddle)
82
- * [camunda-bpmn-js-behaviors](https://github.com/camunda/camunda-bpmn-js-behaviors): Camunda specific behaviors for bpmn-js
83
-
84
- ## License
85
-
86
- MIT
87
-
88
- Uses [bpmn-js](https://github.com/bpmn-io/bpmn-js) licensed under the bpmn.io license.
1
+ # camunda-bpmn-js
2
+
3
+ [![CI](https://github.com/camunda/camunda-bpmn-js/workflows/CI/badge.svg)](https://github.com/camunda/camunda-bpmn-js/actions?query=workflow%3ACI)
4
+
5
+ Embeddable Camunda modeling distributions based on [bpmn-js](https://github.com/bpmn-io/bpmn-js).
6
+
7
+ ## Usage
8
+
9
+ This project is designed to deliver different BPMN modeling distributions. Instead of creating custom Modeler implementations based on [bpmn-js](https://github.com/bpmn-io/bpmn-js), choose one of the existing packages to mirror the modeling experience of [Camunda's modeling](https://github.com/camunda/camunda-modeler/) products.
10
+
11
+ Use a pre-packaged distribution
12
+
13
+ ```html
14
+ <link rel="stylesheet" href="https://unpkg.com/camunda-bpmn-js@0.1.0/dist/assets/camunda-platform-modeler.css" />
15
+
16
+ <script src="https://unpkg.com/camunda-bpmn-js@0.1.0/dist/camunda-platform-modeler.development.js"></script>
17
+ ```
18
+
19
+ or install it via npm
20
+
21
+ ```js
22
+ import BpmnModeler from 'camunda-bpmn-js/lib/camunda-platform/Modeler';
23
+
24
+ import 'camunda-bpmn-js/dist/assets/camunda-platform-modeler.css';
25
+ ```
26
+
27
+ into your web-application.
28
+
29
+ ```js
30
+ var bpmnModeler = new BpmnModeler({
31
+ container: '#canvas',
32
+ propertiesPanel: {
33
+ parent: '#properties'
34
+ }
35
+ });
36
+
37
+ try {
38
+
39
+ await bpmnModeler.importXML(someDiagram);
40
+
41
+ console.log('success!');
42
+ bpmnModeler.get('canvas').zoom('fit-viewport');
43
+ } catch (err) {
44
+
45
+ console.error('something went wrong:', err);
46
+ }
47
+ ```
48
+
49
+ Checkout [the docs](./docs/DISTRIBUTIONS.md) to learn more about the available distributions.
50
+
51
+ ## Build and Run
52
+
53
+ Prepare the project by installing all dependencies:
54
+
55
+ ```sh
56
+ npm install
57
+ ```
58
+
59
+ Then, depending on your use-case, you may run any of the following commands:
60
+
61
+ ```sh
62
+ # build the library and run all tests
63
+ npm run all
64
+
65
+ # spin up a single local camunda platform modeler instance
66
+ npm run start:platform
67
+
68
+ # run the full development setup
69
+ npm run dev
70
+ ```
71
+
72
+ ## Related
73
+
74
+ camunda-bpmn-js builds on top of a few powerful tools:
75
+
76
+ * [bpmn-js](https://github.com/bpmn-io/bpmn-js): View and edit BPMN 2.0 diagrams in the browser
77
+ * [diagram-js](https://github.com/bpmn-io/diagram-js): Diagram rendering and editing toolkit
78
+ * [bpmn-js-properties-panel](https://github.com/bpmn-io/bpmn-js-properties-panel): A panel for (technical) properties editing
79
+ * [bpmn-js-element-templates](https://github.com/bpmn-io/bpmn-js-element-templates): Domain specific editing for bpmn-js
80
+ * [bpmn-js-create-append-anything](bpmn-js-create-append-anything): A create/append anything extension for bpmn-js
81
+ * [bpmn-moddle](https://github.com/bpmn-io/bpmn-moddle): A BPMN 2.0 diagram reader/writer with extensions for [Camunda 7](https://github.com/camunda/camunda-bpmn-moddle) and [Camunda 8](https://github.com/camunda/zeebe-bpmn-moddle)
82
+ * [camunda-bpmn-js-behaviors](https://github.com/camunda/camunda-bpmn-js-behaviors): Camunda specific behaviors for bpmn-js
83
+
84
+ ## License
85
+
86
+ MIT
87
+
88
+ Uses [bpmn-js](https://github.com/bpmn-io/bpmn-js) licensed under the bpmn.io license.
@@ -1,6 +1,6 @@
1
- @import './diagram-js.css';
2
- @import './bpmn-js.css';
3
- @import './bpmn-font/css/bpmn-embedded.css';
4
- @import './diagram-js-minimap.css';
5
- @import './properties-panel.css';
1
+ @import './diagram-js.css';
2
+ @import './bpmn-js.css';
3
+ @import './bpmn-font/css/bpmn-embedded.css';
4
+ @import './diagram-js-minimap.css';
5
+ @import './properties-panel.css';
6
6
  @import './color-picker.css';
@@ -1,2 +1,2 @@
1
- @import './diagram-js.css';
1
+ @import './diagram-js.css';
2
2
  @import './bpmn-js.css';
@@ -1,2 +1,2 @@
1
- @import './diagram-js.css';
1
+ @import './diagram-js.css';
2
2
  @import './bpmn-js.css';
@@ -1,3 +1,3 @@
1
- @import './base-modeler.css';
2
- @import './element-templates.css';
1
+ @import './base-modeler.css';
2
+ @import './element-templates.css';
3
3
  @import './element-template-chooser.css';
@@ -1,2 +1,2 @@
1
- @import './base-modeler.css';
1
+ @import './base-modeler.css';
2
2
  @import './element-templates.css';
@@ -59,6 +59,7 @@
59
59
  --popup-font-size: 14px;
60
60
  --popup-header-entry-selected-color: var(--color-blue-205-100-50);
61
61
  --popup-header-font-weight: bolder;
62
+ --popup-header-group-divider-color: var(--color-grey-225-10-75);
62
63
  --popup-background-color: var(--color-white);
63
64
  --popup-border-color: transparent;
64
65
  --popup-shadow-color: var(--color-black-opacity-30);
@@ -568,6 +569,29 @@ marker.djs-dragger tspan {
568
569
  color: inherit;
569
570
  }
570
571
 
572
+ .djs-popup-header-group {
573
+ display: flex;
574
+ flex-direction: row;
575
+ align-items: center;
576
+ list-style: none;
577
+ margin: 0;
578
+ padding: 0;
579
+ }
580
+
581
+ .djs-popup-header-group .entry {
582
+ display: flex;
583
+ flex-direction: row;
584
+ align-items: center;
585
+ }
586
+
587
+ .djs-popup-header-group + .djs-popup-header-group:before {
588
+ content: '';
589
+ width: 1px;
590
+ height: 20px;
591
+ background: var(--popup-header-group-divider-color);
592
+ margin: 0 5px;
593
+ }
594
+
571
595
  .djs-popup-search {
572
596
  margin: 10px 12px;
573
597
  }
@@ -28233,6 +28233,94 @@
28233
28233
 
28234
28234
  function r$2(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r$2(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r$2(e))&&(n&&(n+=" "),n+=t);return n}
28235
28235
 
28236
+ /**
28237
+ * @typedef {import('./PopupMenuProvider').PopupMenuHeaderEntry} PopupMenuHeaderEntry
28238
+ */
28239
+
28240
+ /**
28241
+ * Component that renders a popup menu header.
28242
+ *
28243
+ * @param {Object} props
28244
+ * @param {PopupMenuHeaderEntry[]} props.headerEntries
28245
+ * @param {PopupMenuHeaderEntry} props.selectedEntry
28246
+ * @param {(event: MouseEvent, entry: PopupMenuHeaderEntry) => void} props.onSelect
28247
+ * @param {(entry: PopupMenuHeaderEntry | null) => void} props.setSelectedEntry
28248
+ * @param {string} props.title
28249
+ */
28250
+ function PopupMenuHeader(props) {
28251
+ const {
28252
+ headerEntries,
28253
+ onSelect,
28254
+ selectedEntry,
28255
+ setSelectedEntry,
28256
+ title
28257
+ } = props;
28258
+
28259
+ const groups = F$3(() => groupEntries$1(headerEntries), [ headerEntries ]);
28260
+
28261
+ return m$3`
28262
+ <div class="djs-popup-header">
28263
+ <h3 class="djs-popup-title" title=${ title }>${ title }</h3>
28264
+ ${ groups.map((group) => m$3`
28265
+ <ul key=${ group.id } class="djs-popup-header-group" data-header-group=${ group.id }>
28266
+
28267
+ ${ group.entries.map(entry => m$3`
28268
+ <li key=${ entry.id }>
28269
+ <${ entry.action ? 'button' : 'span' }
28270
+ class=${ getHeaderClasses(entry, entry === selectedEntry) }
28271
+ onClick=${ event => entry.action && onSelect(event, entry) }
28272
+ title=${ entry.title || entry.label }
28273
+ data-id=${ entry.id }
28274
+ onMouseEnter=${ () => entry.action && setSelectedEntry(entry) }
28275
+ onMouseLeave=${ () => entry.action && setSelectedEntry(null) }
28276
+ onFocus=${ () => entry.action && setSelectedEntry(entry) }
28277
+ onBlur=${ () => entry.action && setSelectedEntry(null) }
28278
+ >
28279
+ ${(entry.imageUrl && m$3`<img class="djs-popup-entry-icon" src=${ entry.imageUrl } alt="" />`) ||
28280
+ (entry.imageHtml && m$3`<div class="djs-popup-entry-icon" dangerouslySetInnerHTML=${ { __html: entry.imageHtml } } />`)}
28281
+ ${ entry.label ? m$3`
28282
+ <span class="djs-popup-label">${ entry.label }</span>
28283
+ ` : null }
28284
+ </${ entry.action ? 'button' : 'span' }>
28285
+ </li>
28286
+ `) }
28287
+ </ul>
28288
+ `) }
28289
+ </div>
28290
+ `;
28291
+ }
28292
+
28293
+
28294
+ // helpers
28295
+ function groupEntries$1(entries) {
28296
+ return entries.reduce((groups, entry) => {
28297
+ const groupId = entry.group || 'default';
28298
+
28299
+ const group = groups.find(group => group.id === groupId);
28300
+
28301
+ if (group) {
28302
+ group.entries.push(entry);
28303
+ } else {
28304
+ groups.push({
28305
+ id: groupId,
28306
+ entries: [ entry ]
28307
+ });
28308
+ }
28309
+
28310
+ return groups;
28311
+ }, []);
28312
+ }
28313
+
28314
+ function getHeaderClasses(entry, selected) {
28315
+ return clsx(
28316
+ 'entry',
28317
+ entry.className,
28318
+ entry.active ? 'active' : '',
28319
+ entry.disabled ? 'disabled' : '',
28320
+ selected ? 'selected' : ''
28321
+ );
28322
+ }
28323
+
28236
28324
  /**
28237
28325
  * @typedef {import('./PopupMenuProvider').PopupMenuEntry} PopupMenuEntry
28238
28326
  */
@@ -28430,6 +28518,7 @@
28430
28518
  *
28431
28519
  * @param {Object} props
28432
28520
  * @param {() => void} props.onClose
28521
+ * @param {() => void} props.onSelect
28433
28522
  * @param {(element: HTMLElement) => Point} props.position
28434
28523
  * @param {string} props.className
28435
28524
  * @param {PopupMenuEntry[]} props.entries
@@ -28580,28 +28669,13 @@
28580
28669
  scale=${ scale }
28581
28670
  >
28582
28671
  ${ displayHeader && m$3`
28583
- <div class="djs-popup-header">
28584
- <h3 class="djs-popup-title" title=${ title }>${ title }</h3>
28585
- ${ headerEntries.map(entry => m$3`
28586
- <${ entry.action ? 'button' : 'span' }
28587
- class=${ getHeaderClasses(entry, entry === selectedEntry) }
28588
- onClick=${ event => onSelect(event, entry) }
28589
- title=${ entry.title || entry.label }
28590
- data-id=${ entry.id }
28591
- onMouseEnter=${ () => setSelectedEntry(entry) }
28592
- onMouseLeave=${ () => setSelectedEntry(null) }
28593
- onFocus=${ () => setSelectedEntry(entry) }
28594
- onBlur=${ () => setSelectedEntry(null) }
28595
- >
28596
- ${(entry.imageUrl && m$3`<img class="djs-popup-entry-icon" src=${ entry.imageUrl } alt="" />`) ||
28597
- (entry.imageHtml && m$3`<div class="djs-popup-entry-icon" dangerouslySetInnerHTML=${ { __html: entry.imageHtml } } />`)}
28598
-
28599
- ${ entry.label ? m$3`
28600
- <span class="djs-popup-label">${ entry.label }</span>
28601
- ` : null }
28602
- </${ entry.action ? 'button' : 'span' }>
28603
- `) }
28604
- </div>
28672
+ <${PopupMenuHeader}
28673
+ headerEntries=${ headerEntries }
28674
+ onSelect=${ onSelect }
28675
+ selectedEntry=${ selectedEntry }
28676
+ setSelectedEntry=${ setSelectedEntry }
28677
+ title=${ title }
28678
+ />
28605
28679
  ` }
28606
28680
  ${ originalEntries.length > 0 && m$3`
28607
28681
  <div class="djs-popup-body">
@@ -28724,16 +28798,6 @@
28724
28798
  width: `${props.width}px`,
28725
28799
  'transform-origin': 'top left'
28726
28800
  };
28727
- }
28728
-
28729
- function getHeaderClasses(entry, selected) {
28730
- return clsx(
28731
- 'entry',
28732
- entry.className,
28733
- entry.active ? 'active' : '',
28734
- entry.disabled ? 'disabled' : '',
28735
- selected ? 'selected' : ''
28736
- );
28737
28801
  }
28738
28802
 
28739
28803
  /**
@@ -110083,54 +110147,54 @@
110083
110147
  bpmnPropertiesProvider: ['type', BpmnPropertiesProvider]
110084
110148
  };
110085
110149
 
110086
- /**
110087
- * @typedef {import('bpmn-js/lib/BaseViewer').BaseViewerOptions} BaseViewerOptions
110088
- *
110089
- * @typedef {import('didi').ModuleDeclaration} ModuleDeclaration
110090
- */
110091
-
110092
- /**
110093
- *
110094
- * @param {BaseViewerOptions} options
110095
- */
110096
- function Modeler(options = {}) {
110097
- Modeler$1.call(this, options);
110098
- }
110099
-
110100
- e$5(Modeler, Modeler$1);
110101
-
110102
- /**
110103
- * @param { {
110104
- * disableAdjustOrigin?: boolean;
110105
- * disableGrid?: boolean;
110106
- * } } [options]
110107
- *
110108
- * @returns {ModuleDeclaration[]}
110109
- */
110110
- Modeler.prototype.getModules = function(options = {}) {
110111
- const modules = Modeler$1.prototype.getModules.call(this, options);
110112
-
110113
- return [
110114
- ...modules,
110115
- options.disableAdjustOrigin
110116
- ? diagramOriginModule
110117
- : alignToOriginModule,
110118
- options.disableGrid
110119
- ? {}
110120
- : index$4
110121
- ];
110122
- };
110123
-
110124
- Modeler.prototype._extensionModules = [
110125
- index$5,
110126
- ExecutableFixModule,
110127
- index$3,
110128
- index$2
110129
- ];
110130
-
110131
- Modeler.prototype._modules = [].concat(
110132
- Modeler$1.prototype._modules,
110133
- Modeler.prototype._extensionModules
110150
+ /**
110151
+ * @typedef {import('bpmn-js/lib/BaseViewer').BaseViewerOptions} BaseViewerOptions
110152
+ *
110153
+ * @typedef {import('didi').ModuleDeclaration} ModuleDeclaration
110154
+ */
110155
+
110156
+ /**
110157
+ *
110158
+ * @param {BaseViewerOptions} options
110159
+ */
110160
+ function Modeler(options = {}) {
110161
+ Modeler$1.call(this, options);
110162
+ }
110163
+
110164
+ e$5(Modeler, Modeler$1);
110165
+
110166
+ /**
110167
+ * @param { {
110168
+ * disableAdjustOrigin?: boolean;
110169
+ * disableGrid?: boolean;
110170
+ * } } [options]
110171
+ *
110172
+ * @returns {ModuleDeclaration[]}
110173
+ */
110174
+ Modeler.prototype.getModules = function(options = {}) {
110175
+ const modules = Modeler$1.prototype.getModules.call(this, options);
110176
+
110177
+ return [
110178
+ ...modules,
110179
+ options.disableAdjustOrigin
110180
+ ? diagramOriginModule
110181
+ : alignToOriginModule,
110182
+ options.disableGrid
110183
+ ? {}
110184
+ : index$4
110185
+ ];
110186
+ };
110187
+
110188
+ Modeler.prototype._extensionModules = [
110189
+ index$5,
110190
+ ExecutableFixModule,
110191
+ index$3,
110192
+ index$2
110193
+ ];
110194
+
110195
+ Modeler.prototype._modules = [].concat(
110196
+ Modeler$1.prototype._modules,
110197
+ Modeler.prototype._extensionModules
110134
110198
  );
110135
110199
 
110136
110200
  return Modeler;