bpmn-js 15.2.2 → 16.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.
@@ -6,6 +6,13 @@
6
6
  */
7
7
  export function isExpanded(element: Element, di?: ModdleElement): boolean;
8
8
 
9
+ /**
10
+ * @param element
11
+ *
12
+ * @return
13
+ */
14
+ export function isHorizontal(element: Element): boolean;
15
+
9
16
  /**
10
17
  * @param element
11
18
  *
@@ -42,6 +42,26 @@ export function isExpanded(element, di) {
42
42
  return true;
43
43
  }
44
44
 
45
+ /**
46
+ * @param {Element} element
47
+ *
48
+ * @return {boolean}
49
+ */
50
+ export function isHorizontal(element) {
51
+
52
+ if (!is(element, 'bpmn:Participant') && !is(element, 'bpmn:Lane')) {
53
+ return undefined;
54
+ }
55
+
56
+ var isHorizontal = getDi(element).isHorizontal;
57
+
58
+ if (isHorizontal === undefined) {
59
+ return true;
60
+ }
61
+
62
+ return isHorizontal;
63
+ }
64
+
45
65
  /**
46
66
  * @param {Element} element
47
67
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpmn-js",
3
- "version": "15.2.2",
3
+ "version": "16.0.0",
4
4
  "description": "A bpmn 2.0 toolkit and web modeler",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -99,7 +99,7 @@
99
99
  "mocha-test-container-support": "0.2.0",
100
100
  "npm-run-all": "^4.1.2",
101
101
  "puppeteer": "^21.3.8",
102
- "remark-cli": "^11.0.0",
102
+ "remark-cli": "^12.0.0",
103
103
  "remark-preset-bpmn-io": "^0.2.1",
104
104
  "rollup": "^3.19.1",
105
105
  "rollup-plugin-license": "^3.0.0",
@@ -111,7 +111,7 @@
111
111
  },
112
112
  "dependencies": {
113
113
  "bpmn-moddle": "^8.0.1",
114
- "diagram-js": "^12.8.1",
114
+ "diagram-js": "^13.0.0",
115
115
  "diagram-js-direct-editing": "^2.0.0",
116
116
  "ids": "^1.0.5",
117
117
  "inherits-browser": "^0.1.0",