@syncfusion/ej2-vue-diagrams 20.4.53 → 21.1.35
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 +12 -3
- package/dist/ej2-vue-diagrams.umd.min.js +2 -2
- package/dist/ej2-vue-diagrams.umd.min.js.map +1 -1
- package/dist/es6/ej2-vue-diagrams.es2015.js +750 -1145
- package/dist/es6/ej2-vue-diagrams.es2015.js.map +1 -1
- package/dist/es6/ej2-vue-diagrams.es5.js +830 -1360
- package/dist/es6/ej2-vue-diagrams.es5.js.map +1 -1
- package/dist/global/ej2-vue-diagrams.min.js +2 -2
- package/package.json +9 -9
- package/src/diagram/connector-annotation.directive.d.ts +2 -12
- package/src/diagram/connector-annotation.directive.js +22 -71
- package/src/diagram/connector-fixeduserhandle.directive.d.ts +2 -12
- package/src/diagram/connector-fixeduserhandle.directive.js +22 -71
- package/src/diagram/connectors.directive.d.ts +2 -12
- package/src/diagram/connectors.directive.js +22 -71
- package/src/diagram/customcursor.directive.d.ts +2 -12
- package/src/diagram/customcursor.directive.js +22 -71
- package/src/diagram/diagram.component.d.ts +3 -120
- package/src/diagram/diagram.component.js +378 -407
- package/src/diagram/layers.directive.d.ts +2 -12
- package/src/diagram/layers.directive.js +22 -71
- package/src/diagram/node-annotation.directive.d.ts +2 -12
- package/src/diagram/node-annotation.directive.js +22 -71
- package/src/diagram/node-fixeduserhandle.directive.d.ts +2 -12
- package/src/diagram/node-fixeduserhandle.directive.js +22 -71
- package/src/diagram/nodes.directive.d.ts +2 -12
- package/src/diagram/nodes.directive.js +22 -71
- package/src/diagram/ports.directive.d.ts +2 -12
- package/src/diagram/ports.directive.js +22 -71
- package/src/overview/overview.component.d.ts +3 -23
- package/src/overview/overview.component.js +86 -115
- package/src/symbol-palette/palettes.directive.d.ts +2 -12
- package/src/symbol-palette/palettes.directive.js +22 -71
- package/src/symbol-palette/symbolpalette.component.d.ts +3 -26
- package/src/symbol-palette/symbolpalette.component.js +95 -124
- package/styles/bootstrap-dark.css +22 -11
- package/styles/bootstrap.css +22 -11
- package/styles/bootstrap4.css +22 -11
- package/styles/bootstrap5-dark.css +24 -13
- package/styles/bootstrap5.css +24 -13
- package/styles/diagram/bootstrap-dark.css +22 -11
- package/styles/diagram/bootstrap.css +22 -11
- package/styles/diagram/bootstrap4.css +22 -11
- package/styles/diagram/bootstrap5-dark.css +24 -13
- package/styles/diagram/bootstrap5.css +24 -13
- package/styles/diagram/fabric-dark.css +22 -11
- package/styles/diagram/fabric.css +22 -11
- package/styles/diagram/fluent-dark.css +24 -13
- package/styles/diagram/fluent.css +24 -13
- package/styles/diagram/highcontrast-light.css +22 -11
- package/styles/diagram/highcontrast.css +22 -11
- package/styles/diagram/material-dark.css +22 -11
- package/styles/diagram/material.css +22 -11
- package/styles/diagram/tailwind-dark.css +23 -12
- package/styles/diagram/tailwind.css +23 -12
- package/styles/fabric-dark.css +22 -11
- package/styles/fabric.css +22 -11
- package/styles/fluent-dark.css +24 -13
- package/styles/fluent.css +24 -13
- package/styles/highcontrast-light.css +22 -11
- package/styles/highcontrast.css +22 -11
- package/styles/material-dark.css +22 -11
- package/styles/material.css +22 -11
- package/styles/tailwind-dark.css +23 -12
- package/styles/tailwind.css +23 -12
|
@@ -1,42 +1,10 @@
|
|
|
1
1
|
import { Diagram, Overview, SymbolPalette } from '@syncfusion/ej2-diagrams';
|
|
2
|
-
import { ComponentBase,
|
|
3
|
-
import { Vue } from 'vue-class-component';
|
|
2
|
+
import { ComponentBase, getProps, gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
|
|
4
3
|
import { getValue, isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
5
|
-
import Vue$1 from 'vue';
|
|
6
4
|
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
11
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
12
|
-
return extendStatics(d, b);
|
|
13
|
-
};
|
|
14
|
-
return function (d, b) {
|
|
15
|
-
extendStatics(d, b);
|
|
16
|
-
function __() { this.constructor = d; }
|
|
17
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
18
|
-
};
|
|
19
|
-
})();
|
|
20
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
21
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
22
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
23
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
24
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25
|
-
};
|
|
26
|
-
import { Options } from 'vue-class-component';
|
|
27
|
-
var vueImport;
|
|
28
|
-
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
29
|
-
vueImport = Vue;
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
vueImport = Vue$1;
|
|
33
|
-
}
|
|
34
|
-
var LayersDirective = /** @__PURE__ @class */ (function (_super) {
|
|
35
|
-
__extends(LayersDirective, _super);
|
|
36
|
-
function LayersDirective() {
|
|
37
|
-
return _super.call(this, arguments) || this;
|
|
38
|
-
}
|
|
39
|
-
LayersDirective.prototype.render = function (createElement) {
|
|
5
|
+
var LayersDirective = vueDefineComponent({
|
|
6
|
+
inject: { custom: { default: null } },
|
|
7
|
+
render: function (createElement) {
|
|
40
8
|
if (!isExecute) {
|
|
41
9
|
var h = !isExecute ? gh : createElement;
|
|
42
10
|
var slots = null;
|
|
@@ -46,31 +14,22 @@ var LayersDirective = /** @__PURE__ @class */ (function (_super) {
|
|
|
46
14
|
return h('div', { class: 'e-directive' }, slots);
|
|
47
15
|
}
|
|
48
16
|
return;
|
|
49
|
-
}
|
|
50
|
-
|
|
17
|
+
},
|
|
18
|
+
updated: function () {
|
|
51
19
|
if (!isExecute && this.custom) {
|
|
52
20
|
this.custom();
|
|
53
21
|
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
inject: {
|
|
62
|
-
custom: {
|
|
63
|
-
default: null
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
})
|
|
67
|
-
], LayersDirective);
|
|
68
|
-
return LayersDirective;
|
|
69
|
-
}(vueImport));
|
|
22
|
+
},
|
|
23
|
+
methods: {
|
|
24
|
+
getTag: function () {
|
|
25
|
+
return 'e-layers';
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
});
|
|
70
29
|
var LayersPlugin = {
|
|
71
30
|
name: 'e-layers',
|
|
72
|
-
install: function (Vue
|
|
73
|
-
Vue
|
|
31
|
+
install: function (Vue) {
|
|
32
|
+
Vue.component(LayersPlugin.name, LayersDirective);
|
|
74
33
|
}
|
|
75
34
|
};
|
|
76
35
|
/**
|
|
@@ -85,62 +44,26 @@ var LayersPlugin = {
|
|
|
85
44
|
</ejs-diagram>
|
|
86
45
|
* ```
|
|
87
46
|
*/
|
|
88
|
-
var LayerDirective =
|
|
89
|
-
|
|
90
|
-
function LayerDirective() {
|
|
91
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
92
|
-
}
|
|
93
|
-
LayerDirective.prototype.render = function () {
|
|
47
|
+
var LayerDirective = vueDefineComponent({
|
|
48
|
+
render: function () {
|
|
94
49
|
return;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
return LayerDirective;
|
|
103
|
-
}(vueImport));
|
|
50
|
+
},
|
|
51
|
+
methods: {
|
|
52
|
+
getTag: function () {
|
|
53
|
+
return 'e-layer';
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
});
|
|
104
57
|
var LayerPlugin = {
|
|
105
58
|
name: 'e-layer',
|
|
106
|
-
install: function (Vue
|
|
107
|
-
Vue
|
|
59
|
+
install: function (Vue) {
|
|
60
|
+
Vue.component(LayerPlugin.name, LayerDirective);
|
|
108
61
|
}
|
|
109
62
|
};
|
|
110
63
|
|
|
111
|
-
var
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
115
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
116
|
-
return extendStatics(d, b);
|
|
117
|
-
};
|
|
118
|
-
return function (d, b) {
|
|
119
|
-
extendStatics(d, b);
|
|
120
|
-
function __() { this.constructor = d; }
|
|
121
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
122
|
-
};
|
|
123
|
-
})();
|
|
124
|
-
var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
125
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
126
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
127
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
128
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
129
|
-
};
|
|
130
|
-
// {{VueImport}}
|
|
131
|
-
var vueImport$1;
|
|
132
|
-
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
133
|
-
vueImport$1 = Vue;
|
|
134
|
-
}
|
|
135
|
-
else {
|
|
136
|
-
vueImport$1 = Vue$1;
|
|
137
|
-
}
|
|
138
|
-
var CustomCursorsDirective = /** @__PURE__ @class */ (function (_super) {
|
|
139
|
-
__extends$1(CustomCursorsDirective, _super);
|
|
140
|
-
function CustomCursorsDirective() {
|
|
141
|
-
return _super.call(this, arguments) || this;
|
|
142
|
-
}
|
|
143
|
-
CustomCursorsDirective.prototype.render = function (createElement) {
|
|
64
|
+
var CustomCursorsDirective = vueDefineComponent({
|
|
65
|
+
inject: { custom: { default: null } },
|
|
66
|
+
render: function (createElement) {
|
|
144
67
|
if (!isExecute) {
|
|
145
68
|
var h = !isExecute ? gh : createElement;
|
|
146
69
|
var slots = null;
|
|
@@ -150,31 +73,22 @@ var CustomCursorsDirective = /** @__PURE__ @class */ (function (_super) {
|
|
|
150
73
|
return h('div', { class: 'e-directive' }, slots);
|
|
151
74
|
}
|
|
152
75
|
return;
|
|
153
|
-
}
|
|
154
|
-
|
|
76
|
+
},
|
|
77
|
+
updated: function () {
|
|
155
78
|
if (!isExecute && this.custom) {
|
|
156
79
|
this.custom();
|
|
157
80
|
}
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
inject: {
|
|
166
|
-
custom: {
|
|
167
|
-
default: null
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
})
|
|
171
|
-
], CustomCursorsDirective);
|
|
172
|
-
return CustomCursorsDirective;
|
|
173
|
-
}(vueImport$1));
|
|
81
|
+
},
|
|
82
|
+
methods: {
|
|
83
|
+
getTag: function () {
|
|
84
|
+
return 'e-cursormaps';
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
});
|
|
174
88
|
var CustomCursorsPlugin = {
|
|
175
89
|
name: 'e-cursormaps',
|
|
176
|
-
install: function (Vue
|
|
177
|
-
Vue
|
|
90
|
+
install: function (Vue) {
|
|
91
|
+
Vue.component(CustomCursorsPlugin.name, CustomCursorsDirective);
|
|
178
92
|
}
|
|
179
93
|
};
|
|
180
94
|
/**
|
|
@@ -189,62 +103,26 @@ var CustomCursorsPlugin = {
|
|
|
189
103
|
</ejs-diagram>
|
|
190
104
|
* ```
|
|
191
105
|
*/
|
|
192
|
-
var CustomCursorDirective =
|
|
193
|
-
|
|
194
|
-
function CustomCursorDirective() {
|
|
195
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
196
|
-
}
|
|
197
|
-
CustomCursorDirective.prototype.render = function () {
|
|
106
|
+
var CustomCursorDirective = vueDefineComponent({
|
|
107
|
+
render: function () {
|
|
198
108
|
return;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
return CustomCursorDirective;
|
|
207
|
-
}(vueImport$1));
|
|
109
|
+
},
|
|
110
|
+
methods: {
|
|
111
|
+
getTag: function () {
|
|
112
|
+
return 'e-cursormap';
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
});
|
|
208
116
|
var CustomCursorPlugin = {
|
|
209
117
|
name: 'e-cursormap',
|
|
210
|
-
install: function (Vue
|
|
211
|
-
Vue
|
|
118
|
+
install: function (Vue) {
|
|
119
|
+
Vue.component(CustomCursorPlugin.name, CustomCursorDirective);
|
|
212
120
|
}
|
|
213
121
|
};
|
|
214
122
|
|
|
215
|
-
var
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
219
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
220
|
-
return extendStatics(d, b);
|
|
221
|
-
};
|
|
222
|
-
return function (d, b) {
|
|
223
|
-
extendStatics(d, b);
|
|
224
|
-
function __() { this.constructor = d; }
|
|
225
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
226
|
-
};
|
|
227
|
-
})();
|
|
228
|
-
var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
229
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
230
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
231
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
232
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
233
|
-
};
|
|
234
|
-
// {{VueImport}}
|
|
235
|
-
var vueImport$2;
|
|
236
|
-
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
237
|
-
vueImport$2 = Vue;
|
|
238
|
-
}
|
|
239
|
-
else {
|
|
240
|
-
vueImport$2 = Vue$1;
|
|
241
|
-
}
|
|
242
|
-
var ConnectorFixedUserHandlesDirective = /** @__PURE__ @class */ (function (_super) {
|
|
243
|
-
__extends$2(ConnectorFixedUserHandlesDirective, _super);
|
|
244
|
-
function ConnectorFixedUserHandlesDirective() {
|
|
245
|
-
return _super.call(this, arguments) || this;
|
|
246
|
-
}
|
|
247
|
-
ConnectorFixedUserHandlesDirective.prototype.render = function (createElement) {
|
|
123
|
+
var ConnectorFixedUserHandlesDirective = vueDefineComponent({
|
|
124
|
+
inject: { custom: { default: null } },
|
|
125
|
+
render: function (createElement) {
|
|
248
126
|
if (!isExecute) {
|
|
249
127
|
var h = !isExecute ? gh : createElement;
|
|
250
128
|
var slots = null;
|
|
@@ -254,31 +132,22 @@ var ConnectorFixedUserHandlesDirective = /** @__PURE__ @class */ (function (_sup
|
|
|
254
132
|
return h('div', { class: 'e-directive' }, slots);
|
|
255
133
|
}
|
|
256
134
|
return;
|
|
257
|
-
}
|
|
258
|
-
|
|
135
|
+
},
|
|
136
|
+
updated: function () {
|
|
259
137
|
if (!isExecute && this.custom) {
|
|
260
138
|
this.custom();
|
|
261
139
|
}
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
inject: {
|
|
270
|
-
custom: {
|
|
271
|
-
default: null
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
})
|
|
275
|
-
], ConnectorFixedUserHandlesDirective);
|
|
276
|
-
return ConnectorFixedUserHandlesDirective;
|
|
277
|
-
}(vueImport$2));
|
|
140
|
+
},
|
|
141
|
+
methods: {
|
|
142
|
+
getTag: function () {
|
|
143
|
+
return 'e-connector-fixeduserhandles';
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
});
|
|
278
147
|
var ConnectorFixedUserHandlesPlugin = {
|
|
279
148
|
name: 'e-connector-fixeduserhandles',
|
|
280
|
-
install: function (Vue
|
|
281
|
-
Vue
|
|
149
|
+
install: function (Vue) {
|
|
150
|
+
Vue.component(ConnectorFixedUserHandlesPlugin.name, ConnectorFixedUserHandlesDirective);
|
|
282
151
|
}
|
|
283
152
|
};
|
|
284
153
|
/**
|
|
@@ -297,62 +166,26 @@ var ConnectorFixedUserHandlesPlugin = {
|
|
|
297
166
|
* </ejs-diagram>
|
|
298
167
|
* ```
|
|
299
168
|
*/
|
|
300
|
-
var ConnectorFixedUserHandleDirective =
|
|
301
|
-
|
|
302
|
-
function ConnectorFixedUserHandleDirective() {
|
|
303
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
304
|
-
}
|
|
305
|
-
ConnectorFixedUserHandleDirective.prototype.render = function () {
|
|
169
|
+
var ConnectorFixedUserHandleDirective = vueDefineComponent({
|
|
170
|
+
render: function () {
|
|
306
171
|
return;
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
return ConnectorFixedUserHandleDirective;
|
|
315
|
-
}(vueImport$2));
|
|
172
|
+
},
|
|
173
|
+
methods: {
|
|
174
|
+
getTag: function () {
|
|
175
|
+
return 'e-connector-fixeduserhandle';
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
});
|
|
316
179
|
var ConnectorFixedUserHandlePlugin = {
|
|
317
180
|
name: 'e-connector-fixeduserhandle',
|
|
318
|
-
install: function (Vue
|
|
319
|
-
Vue
|
|
181
|
+
install: function (Vue) {
|
|
182
|
+
Vue.component(ConnectorFixedUserHandlePlugin.name, ConnectorFixedUserHandleDirective);
|
|
320
183
|
}
|
|
321
184
|
};
|
|
322
185
|
|
|
323
|
-
var
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
327
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
328
|
-
return extendStatics(d, b);
|
|
329
|
-
};
|
|
330
|
-
return function (d, b) {
|
|
331
|
-
extendStatics(d, b);
|
|
332
|
-
function __() { this.constructor = d; }
|
|
333
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
334
|
-
};
|
|
335
|
-
})();
|
|
336
|
-
var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
337
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
338
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
339
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
340
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
341
|
-
};
|
|
342
|
-
// {{VueImport}}
|
|
343
|
-
var vueImport$3;
|
|
344
|
-
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
345
|
-
vueImport$3 = Vue;
|
|
346
|
-
}
|
|
347
|
-
else {
|
|
348
|
-
vueImport$3 = Vue$1;
|
|
349
|
-
}
|
|
350
|
-
var ConnectorAnnotationsDirective = /** @__PURE__ @class */ (function (_super) {
|
|
351
|
-
__extends$3(ConnectorAnnotationsDirective, _super);
|
|
352
|
-
function ConnectorAnnotationsDirective() {
|
|
353
|
-
return _super.call(this, arguments) || this;
|
|
354
|
-
}
|
|
355
|
-
ConnectorAnnotationsDirective.prototype.render = function (createElement) {
|
|
186
|
+
var ConnectorAnnotationsDirective = vueDefineComponent({
|
|
187
|
+
inject: { custom: { default: null } },
|
|
188
|
+
render: function (createElement) {
|
|
356
189
|
if (!isExecute) {
|
|
357
190
|
var h = !isExecute ? gh : createElement;
|
|
358
191
|
var slots = null;
|
|
@@ -362,31 +195,22 @@ var ConnectorAnnotationsDirective = /** @__PURE__ @class */ (function (_super) {
|
|
|
362
195
|
return h('div', { class: 'e-directive' }, slots);
|
|
363
196
|
}
|
|
364
197
|
return;
|
|
365
|
-
}
|
|
366
|
-
|
|
198
|
+
},
|
|
199
|
+
updated: function () {
|
|
367
200
|
if (!isExecute && this.custom) {
|
|
368
201
|
this.custom();
|
|
369
202
|
}
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
inject: {
|
|
378
|
-
custom: {
|
|
379
|
-
default: null
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
})
|
|
383
|
-
], ConnectorAnnotationsDirective);
|
|
384
|
-
return ConnectorAnnotationsDirective;
|
|
385
|
-
}(vueImport$3));
|
|
203
|
+
},
|
|
204
|
+
methods: {
|
|
205
|
+
getTag: function () {
|
|
206
|
+
return 'e-connector-annotations';
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
});
|
|
386
210
|
var ConnectorAnnotationsPlugin = {
|
|
387
211
|
name: 'e-connector-annotations',
|
|
388
|
-
install: function (Vue
|
|
389
|
-
Vue
|
|
212
|
+
install: function (Vue) {
|
|
213
|
+
Vue.component(ConnectorAnnotationsPlugin.name, ConnectorAnnotationsDirective);
|
|
390
214
|
}
|
|
391
215
|
};
|
|
392
216
|
/**
|
|
@@ -405,62 +229,26 @@ var ConnectorAnnotationsPlugin = {
|
|
|
405
229
|
* </ejs-diagram>
|
|
406
230
|
* ```
|
|
407
231
|
*/
|
|
408
|
-
var ConnectorAnnotationDirective =
|
|
409
|
-
|
|
410
|
-
function ConnectorAnnotationDirective() {
|
|
411
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
412
|
-
}
|
|
413
|
-
ConnectorAnnotationDirective.prototype.render = function () {
|
|
232
|
+
var ConnectorAnnotationDirective = vueDefineComponent({
|
|
233
|
+
render: function () {
|
|
414
234
|
return;
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
return ConnectorAnnotationDirective;
|
|
423
|
-
}(vueImport$3));
|
|
235
|
+
},
|
|
236
|
+
methods: {
|
|
237
|
+
getTag: function () {
|
|
238
|
+
return 'e-connector-annotation';
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
});
|
|
424
242
|
var ConnectorAnnotationPlugin = {
|
|
425
243
|
name: 'e-connector-annotation',
|
|
426
|
-
install: function (Vue
|
|
427
|
-
Vue
|
|
244
|
+
install: function (Vue) {
|
|
245
|
+
Vue.component(ConnectorAnnotationPlugin.name, ConnectorAnnotationDirective);
|
|
428
246
|
}
|
|
429
247
|
};
|
|
430
248
|
|
|
431
|
-
var
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
435
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
436
|
-
return extendStatics(d, b);
|
|
437
|
-
};
|
|
438
|
-
return function (d, b) {
|
|
439
|
-
extendStatics(d, b);
|
|
440
|
-
function __() { this.constructor = d; }
|
|
441
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
442
|
-
};
|
|
443
|
-
})();
|
|
444
|
-
var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
445
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
446
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
447
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
448
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
449
|
-
};
|
|
450
|
-
// {{VueImport}}
|
|
451
|
-
var vueImport$4;
|
|
452
|
-
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
453
|
-
vueImport$4 = Vue;
|
|
454
|
-
}
|
|
455
|
-
else {
|
|
456
|
-
vueImport$4 = Vue$1;
|
|
457
|
-
}
|
|
458
|
-
var ConnectorsDirective = /** @__PURE__ @class */ (function (_super) {
|
|
459
|
-
__extends$4(ConnectorsDirective, _super);
|
|
460
|
-
function ConnectorsDirective() {
|
|
461
|
-
return _super.call(this, arguments) || this;
|
|
462
|
-
}
|
|
463
|
-
ConnectorsDirective.prototype.render = function (createElement) {
|
|
249
|
+
var ConnectorsDirective = vueDefineComponent({
|
|
250
|
+
inject: { custom: { default: null } },
|
|
251
|
+
render: function (createElement) {
|
|
464
252
|
if (!isExecute) {
|
|
465
253
|
var h = !isExecute ? gh : createElement;
|
|
466
254
|
var slots = null;
|
|
@@ -470,31 +258,22 @@ var ConnectorsDirective = /** @__PURE__ @class */ (function (_super) {
|
|
|
470
258
|
return h('div', { class: 'e-directive' }, slots);
|
|
471
259
|
}
|
|
472
260
|
return;
|
|
473
|
-
}
|
|
474
|
-
|
|
261
|
+
},
|
|
262
|
+
updated: function () {
|
|
475
263
|
if (!isExecute && this.custom) {
|
|
476
264
|
this.custom();
|
|
477
265
|
}
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
inject: {
|
|
486
|
-
custom: {
|
|
487
|
-
default: null
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
})
|
|
491
|
-
], ConnectorsDirective);
|
|
492
|
-
return ConnectorsDirective;
|
|
493
|
-
}(vueImport$4));
|
|
266
|
+
},
|
|
267
|
+
methods: {
|
|
268
|
+
getTag: function () {
|
|
269
|
+
return 'e-connectors';
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
});
|
|
494
273
|
var ConnectorsPlugin = {
|
|
495
274
|
name: 'e-connectors',
|
|
496
|
-
install: function (Vue
|
|
497
|
-
Vue
|
|
275
|
+
install: function (Vue) {
|
|
276
|
+
Vue.component(ConnectorsPlugin.name, ConnectorsDirective);
|
|
498
277
|
}
|
|
499
278
|
};
|
|
500
279
|
/**
|
|
@@ -508,62 +287,26 @@ var ConnectorsPlugin = {
|
|
|
508
287
|
* </ejs-diagram>
|
|
509
288
|
* ```
|
|
510
289
|
*/
|
|
511
|
-
var ConnectorDirective =
|
|
512
|
-
|
|
513
|
-
function ConnectorDirective() {
|
|
514
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
515
|
-
}
|
|
516
|
-
ConnectorDirective.prototype.render = function () {
|
|
290
|
+
var ConnectorDirective = vueDefineComponent({
|
|
291
|
+
render: function () {
|
|
517
292
|
return;
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
return ConnectorDirective;
|
|
526
|
-
}(vueImport$4));
|
|
293
|
+
},
|
|
294
|
+
methods: {
|
|
295
|
+
getTag: function () {
|
|
296
|
+
return 'e-connector';
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
});
|
|
527
300
|
var ConnectorPlugin = {
|
|
528
301
|
name: 'e-connector',
|
|
529
|
-
install: function (Vue
|
|
530
|
-
Vue
|
|
302
|
+
install: function (Vue) {
|
|
303
|
+
Vue.component(ConnectorPlugin.name, ConnectorDirective);
|
|
531
304
|
}
|
|
532
305
|
};
|
|
533
306
|
|
|
534
|
-
var
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
538
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
539
|
-
return extendStatics(d, b);
|
|
540
|
-
};
|
|
541
|
-
return function (d, b) {
|
|
542
|
-
extendStatics(d, b);
|
|
543
|
-
function __() { this.constructor = d; }
|
|
544
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
545
|
-
};
|
|
546
|
-
})();
|
|
547
|
-
var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
548
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
549
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
550
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
551
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
552
|
-
};
|
|
553
|
-
// {{VueImport}}
|
|
554
|
-
var vueImport$5;
|
|
555
|
-
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
556
|
-
vueImport$5 = Vue;
|
|
557
|
-
}
|
|
558
|
-
else {
|
|
559
|
-
vueImport$5 = Vue$1;
|
|
560
|
-
}
|
|
561
|
-
var NodeFixedUserHandlesDirective = /** @__PURE__ @class */ (function (_super) {
|
|
562
|
-
__extends$5(NodeFixedUserHandlesDirective, _super);
|
|
563
|
-
function NodeFixedUserHandlesDirective() {
|
|
564
|
-
return _super.call(this, arguments) || this;
|
|
565
|
-
}
|
|
566
|
-
NodeFixedUserHandlesDirective.prototype.render = function (createElement) {
|
|
307
|
+
var NodeFixedUserHandlesDirective = vueDefineComponent({
|
|
308
|
+
inject: { custom: { default: null } },
|
|
309
|
+
render: function (createElement) {
|
|
567
310
|
if (!isExecute) {
|
|
568
311
|
var h = !isExecute ? gh : createElement;
|
|
569
312
|
var slots = null;
|
|
@@ -573,31 +316,22 @@ var NodeFixedUserHandlesDirective = /** @__PURE__ @class */ (function (_super) {
|
|
|
573
316
|
return h('div', { class: 'e-directive' }, slots);
|
|
574
317
|
}
|
|
575
318
|
return;
|
|
576
|
-
}
|
|
577
|
-
|
|
319
|
+
},
|
|
320
|
+
updated: function () {
|
|
578
321
|
if (!isExecute && this.custom) {
|
|
579
322
|
this.custom();
|
|
580
323
|
}
|
|
581
|
-
}
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
inject: {
|
|
589
|
-
custom: {
|
|
590
|
-
default: null
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
})
|
|
594
|
-
], NodeFixedUserHandlesDirective);
|
|
595
|
-
return NodeFixedUserHandlesDirective;
|
|
596
|
-
}(vueImport$5));
|
|
324
|
+
},
|
|
325
|
+
methods: {
|
|
326
|
+
getTag: function () {
|
|
327
|
+
return 'e-node-fixeduserhandles';
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
});
|
|
597
331
|
var NodeFixedUserHandlesPlugin = {
|
|
598
332
|
name: 'e-node-fixeduserhandles',
|
|
599
|
-
install: function (Vue
|
|
600
|
-
Vue
|
|
333
|
+
install: function (Vue) {
|
|
334
|
+
Vue.component(NodeFixedUserHandlesPlugin.name, NodeFixedUserHandlesDirective);
|
|
601
335
|
}
|
|
602
336
|
};
|
|
603
337
|
/**
|
|
@@ -616,62 +350,26 @@ var NodeFixedUserHandlesPlugin = {
|
|
|
616
350
|
* </ejs-diagram>
|
|
617
351
|
* ```
|
|
618
352
|
*/
|
|
619
|
-
var NodeFixedUserHandleDirective =
|
|
620
|
-
|
|
621
|
-
function NodeFixedUserHandleDirective() {
|
|
622
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
623
|
-
}
|
|
624
|
-
NodeFixedUserHandleDirective.prototype.render = function () {
|
|
353
|
+
var NodeFixedUserHandleDirective = vueDefineComponent({
|
|
354
|
+
render: function () {
|
|
625
355
|
return;
|
|
626
|
-
}
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
return NodeFixedUserHandleDirective;
|
|
634
|
-
}(vueImport$5));
|
|
356
|
+
},
|
|
357
|
+
methods: {
|
|
358
|
+
getTag: function () {
|
|
359
|
+
return 'e-node-fixeduserhandle';
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
});
|
|
635
363
|
var NodeFixedUserHandlePlugin = {
|
|
636
364
|
name: 'e-node-fixeduserhandle',
|
|
637
|
-
install: function (Vue
|
|
638
|
-
Vue
|
|
365
|
+
install: function (Vue) {
|
|
366
|
+
Vue.component(NodeFixedUserHandlePlugin.name, NodeFixedUserHandleDirective);
|
|
639
367
|
}
|
|
640
368
|
};
|
|
641
369
|
|
|
642
|
-
var
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
646
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
647
|
-
return extendStatics(d, b);
|
|
648
|
-
};
|
|
649
|
-
return function (d, b) {
|
|
650
|
-
extendStatics(d, b);
|
|
651
|
-
function __() { this.constructor = d; }
|
|
652
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
653
|
-
};
|
|
654
|
-
})();
|
|
655
|
-
var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
656
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
657
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
658
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
659
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
660
|
-
};
|
|
661
|
-
// {{VueImport}}
|
|
662
|
-
var vueImport$6;
|
|
663
|
-
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
664
|
-
vueImport$6 = Vue;
|
|
665
|
-
}
|
|
666
|
-
else {
|
|
667
|
-
vueImport$6 = Vue$1;
|
|
668
|
-
}
|
|
669
|
-
var NodeAnnotationsDirective = /** @__PURE__ @class */ (function (_super) {
|
|
670
|
-
__extends$6(NodeAnnotationsDirective, _super);
|
|
671
|
-
function NodeAnnotationsDirective() {
|
|
672
|
-
return _super.call(this, arguments) || this;
|
|
673
|
-
}
|
|
674
|
-
NodeAnnotationsDirective.prototype.render = function (createElement) {
|
|
370
|
+
var NodeAnnotationsDirective = vueDefineComponent({
|
|
371
|
+
inject: { custom: { default: null } },
|
|
372
|
+
render: function (createElement) {
|
|
675
373
|
if (!isExecute) {
|
|
676
374
|
var h = !isExecute ? gh : createElement;
|
|
677
375
|
var slots = null;
|
|
@@ -681,31 +379,22 @@ var NodeAnnotationsDirective = /** @__PURE__ @class */ (function (_super) {
|
|
|
681
379
|
return h('div', { class: 'e-directive' }, slots);
|
|
682
380
|
}
|
|
683
381
|
return;
|
|
684
|
-
}
|
|
685
|
-
|
|
382
|
+
},
|
|
383
|
+
updated: function () {
|
|
686
384
|
if (!isExecute && this.custom) {
|
|
687
385
|
this.custom();
|
|
688
386
|
}
|
|
689
|
-
}
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
inject: {
|
|
697
|
-
custom: {
|
|
698
|
-
default: null
|
|
699
|
-
}
|
|
700
|
-
}
|
|
701
|
-
})
|
|
702
|
-
], NodeAnnotationsDirective);
|
|
703
|
-
return NodeAnnotationsDirective;
|
|
704
|
-
}(vueImport$6));
|
|
387
|
+
},
|
|
388
|
+
methods: {
|
|
389
|
+
getTag: function () {
|
|
390
|
+
return 'e-node-annotations';
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
});
|
|
705
394
|
var NodeAnnotationsPlugin = {
|
|
706
395
|
name: 'e-node-annotations',
|
|
707
|
-
install: function (Vue
|
|
708
|
-
Vue
|
|
396
|
+
install: function (Vue) {
|
|
397
|
+
Vue.component(NodeAnnotationsPlugin.name, NodeAnnotationsDirective);
|
|
709
398
|
}
|
|
710
399
|
};
|
|
711
400
|
/**
|
|
@@ -724,62 +413,26 @@ var NodeAnnotationsPlugin = {
|
|
|
724
413
|
* </ejs-diagram>
|
|
725
414
|
* ```
|
|
726
415
|
*/
|
|
727
|
-
var NodeAnnotationDirective =
|
|
728
|
-
|
|
729
|
-
function NodeAnnotationDirective() {
|
|
730
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
731
|
-
}
|
|
732
|
-
NodeAnnotationDirective.prototype.render = function () {
|
|
416
|
+
var NodeAnnotationDirective = vueDefineComponent({
|
|
417
|
+
render: function () {
|
|
733
418
|
return;
|
|
734
|
-
}
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
return NodeAnnotationDirective;
|
|
742
|
-
}(vueImport$6));
|
|
419
|
+
},
|
|
420
|
+
methods: {
|
|
421
|
+
getTag: function () {
|
|
422
|
+
return 'e-node-annotation';
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
});
|
|
743
426
|
var NodeAnnotationPlugin = {
|
|
744
427
|
name: 'e-node-annotation',
|
|
745
|
-
install: function (Vue
|
|
746
|
-
Vue
|
|
428
|
+
install: function (Vue) {
|
|
429
|
+
Vue.component(NodeAnnotationPlugin.name, NodeAnnotationDirective);
|
|
747
430
|
}
|
|
748
431
|
};
|
|
749
432
|
|
|
750
|
-
var
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
754
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
755
|
-
return extendStatics(d, b);
|
|
756
|
-
};
|
|
757
|
-
return function (d, b) {
|
|
758
|
-
extendStatics(d, b);
|
|
759
|
-
function __() { this.constructor = d; }
|
|
760
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
761
|
-
};
|
|
762
|
-
})();
|
|
763
|
-
var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
764
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
765
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
766
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
767
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
768
|
-
};
|
|
769
|
-
// {{VueImport}}
|
|
770
|
-
var vueImport$7;
|
|
771
|
-
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
772
|
-
vueImport$7 = Vue;
|
|
773
|
-
}
|
|
774
|
-
else {
|
|
775
|
-
vueImport$7 = Vue$1;
|
|
776
|
-
}
|
|
777
|
-
var PortsDirective = /** @__PURE__ @class */ (function (_super) {
|
|
778
|
-
__extends$7(PortsDirective, _super);
|
|
779
|
-
function PortsDirective() {
|
|
780
|
-
return _super.call(this, arguments) || this;
|
|
781
|
-
}
|
|
782
|
-
PortsDirective.prototype.render = function (createElement) {
|
|
433
|
+
var PortsDirective = vueDefineComponent({
|
|
434
|
+
inject: { custom: { default: null } },
|
|
435
|
+
render: function (createElement) {
|
|
783
436
|
if (!isExecute) {
|
|
784
437
|
var h = !isExecute ? gh : createElement;
|
|
785
438
|
var slots = null;
|
|
@@ -789,31 +442,22 @@ var PortsDirective = /** @__PURE__ @class */ (function (_super) {
|
|
|
789
442
|
return h('div', { class: 'e-directive' }, slots);
|
|
790
443
|
}
|
|
791
444
|
return;
|
|
792
|
-
}
|
|
793
|
-
|
|
445
|
+
},
|
|
446
|
+
updated: function () {
|
|
794
447
|
if (!isExecute && this.custom) {
|
|
795
448
|
this.custom();
|
|
796
449
|
}
|
|
797
|
-
}
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
inject: {
|
|
805
|
-
custom: {
|
|
806
|
-
default: null
|
|
807
|
-
}
|
|
808
|
-
}
|
|
809
|
-
})
|
|
810
|
-
], PortsDirective);
|
|
811
|
-
return PortsDirective;
|
|
812
|
-
}(vueImport$7));
|
|
450
|
+
},
|
|
451
|
+
methods: {
|
|
452
|
+
getTag: function () {
|
|
453
|
+
return 'e-node-ports';
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
});
|
|
813
457
|
var PortsPlugin = {
|
|
814
458
|
name: 'e-node-ports',
|
|
815
|
-
install: function (Vue
|
|
816
|
-
Vue
|
|
459
|
+
install: function (Vue) {
|
|
460
|
+
Vue.component(PortsPlugin.name, PortsDirective);
|
|
817
461
|
}
|
|
818
462
|
};
|
|
819
463
|
/**
|
|
@@ -832,62 +476,26 @@ var PortsPlugin = {
|
|
|
832
476
|
* </ejs-diagram>
|
|
833
477
|
* ```
|
|
834
478
|
*/
|
|
835
|
-
var PortDirective =
|
|
836
|
-
|
|
837
|
-
function PortDirective() {
|
|
838
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
839
|
-
}
|
|
840
|
-
PortDirective.prototype.render = function () {
|
|
479
|
+
var PortDirective = vueDefineComponent({
|
|
480
|
+
render: function () {
|
|
841
481
|
return;
|
|
842
|
-
}
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
return PortDirective;
|
|
850
|
-
}(vueImport$7));
|
|
482
|
+
},
|
|
483
|
+
methods: {
|
|
484
|
+
getTag: function () {
|
|
485
|
+
return 'e-node-port';
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
});
|
|
851
489
|
var PortPlugin = {
|
|
852
490
|
name: 'e-node-port',
|
|
853
|
-
install: function (Vue
|
|
854
|
-
Vue
|
|
491
|
+
install: function (Vue) {
|
|
492
|
+
Vue.component(PortPlugin.name, PortDirective);
|
|
855
493
|
}
|
|
856
494
|
};
|
|
857
495
|
|
|
858
|
-
var
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
862
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
863
|
-
return extendStatics(d, b);
|
|
864
|
-
};
|
|
865
|
-
return function (d, b) {
|
|
866
|
-
extendStatics(d, b);
|
|
867
|
-
function __() { this.constructor = d; }
|
|
868
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
869
|
-
};
|
|
870
|
-
})();
|
|
871
|
-
var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
872
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
873
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
874
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
875
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
876
|
-
};
|
|
877
|
-
// {{VueImport}}
|
|
878
|
-
var vueImport$8;
|
|
879
|
-
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
880
|
-
vueImport$8 = Vue;
|
|
881
|
-
}
|
|
882
|
-
else {
|
|
883
|
-
vueImport$8 = Vue$1;
|
|
884
|
-
}
|
|
885
|
-
var NodesDirective = /** @__PURE__ @class */ (function (_super) {
|
|
886
|
-
__extends$8(NodesDirective, _super);
|
|
887
|
-
function NodesDirective() {
|
|
888
|
-
return _super.call(this, arguments) || this;
|
|
889
|
-
}
|
|
890
|
-
NodesDirective.prototype.render = function (createElement) {
|
|
496
|
+
var NodesDirective = vueDefineComponent({
|
|
497
|
+
inject: { custom: { default: null } },
|
|
498
|
+
render: function (createElement) {
|
|
891
499
|
if (!isExecute) {
|
|
892
500
|
var h = !isExecute ? gh : createElement;
|
|
893
501
|
var slots = null;
|
|
@@ -897,31 +505,22 @@ var NodesDirective = /** @__PURE__ @class */ (function (_super) {
|
|
|
897
505
|
return h('div', { class: 'e-directive' }, slots);
|
|
898
506
|
}
|
|
899
507
|
return;
|
|
900
|
-
}
|
|
901
|
-
|
|
508
|
+
},
|
|
509
|
+
updated: function () {
|
|
902
510
|
if (!isExecute && this.custom) {
|
|
903
511
|
this.custom();
|
|
904
512
|
}
|
|
905
|
-
}
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
inject: {
|
|
913
|
-
custom: {
|
|
914
|
-
default: null
|
|
915
|
-
}
|
|
916
|
-
}
|
|
917
|
-
})
|
|
918
|
-
], NodesDirective);
|
|
919
|
-
return NodesDirective;
|
|
920
|
-
}(vueImport$8));
|
|
513
|
+
},
|
|
514
|
+
methods: {
|
|
515
|
+
getTag: function () {
|
|
516
|
+
return 'e-nodes';
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
});
|
|
921
520
|
var NodesPlugin = {
|
|
922
521
|
name: 'e-nodes',
|
|
923
|
-
install: function (Vue
|
|
924
|
-
Vue
|
|
522
|
+
install: function (Vue) {
|
|
523
|
+
Vue.component(NodesPlugin.name, NodesDirective);
|
|
925
524
|
}
|
|
926
525
|
};
|
|
927
526
|
/**
|
|
@@ -935,50 +534,24 @@ var NodesPlugin = {
|
|
|
935
534
|
* </ejs-diagram>
|
|
936
535
|
* ```
|
|
937
536
|
*/
|
|
938
|
-
var NodeDirective =
|
|
939
|
-
|
|
940
|
-
function NodeDirective() {
|
|
941
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
942
|
-
}
|
|
943
|
-
NodeDirective.prototype.render = function () {
|
|
537
|
+
var NodeDirective = vueDefineComponent({
|
|
538
|
+
render: function () {
|
|
944
539
|
return;
|
|
945
|
-
}
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
return NodeDirective;
|
|
953
|
-
}(vueImport$8));
|
|
540
|
+
},
|
|
541
|
+
methods: {
|
|
542
|
+
getTag: function () {
|
|
543
|
+
return 'e-node';
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
});
|
|
954
547
|
var NodePlugin = {
|
|
955
548
|
name: 'e-node',
|
|
956
|
-
install: function (Vue
|
|
957
|
-
Vue
|
|
549
|
+
install: function (Vue) {
|
|
550
|
+
Vue.component(NodePlugin.name, NodeDirective);
|
|
958
551
|
}
|
|
959
552
|
};
|
|
960
553
|
|
|
961
|
-
var
|
|
962
|
-
var extendStatics = function (d, b) {
|
|
963
|
-
extendStatics = Object.setPrototypeOf ||
|
|
964
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
965
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
966
|
-
return extendStatics(d, b);
|
|
967
|
-
};
|
|
968
|
-
return function (d, b) {
|
|
969
|
-
extendStatics(d, b);
|
|
970
|
-
function __() { this.constructor = d; }
|
|
971
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
972
|
-
};
|
|
973
|
-
})();
|
|
974
|
-
var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
975
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
976
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
977
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
978
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
979
|
-
};
|
|
980
|
-
// {{VueImport}}
|
|
981
|
-
var properties = ['isLazyUpdate', 'plugins', 'addInfo', 'annotationTemplate', 'backgroundColor', 'bridgeDirection', 'commandManager', 'connectorDefaults', 'connectors', 'constraints', 'contextMenuSettings', 'customCursor', 'dataSourceSettings', 'diagramSettings', 'drawingObject', 'enableConnectorSplit', 'enablePersistence', 'enableRtl', 'getConnectorDefaults', 'getCustomCursor', 'getCustomProperty', 'getCustomTool', 'getDescription', 'getNodeDefaults', 'height', 'historyManager', 'layers', 'layout', 'locale', 'mode', 'nodeDefaults', 'nodeTemplate', 'nodes', 'pageSettings', 'rulerSettings', 'scrollSettings', 'segmentThumbShape', 'selectedItems', 'serializationSettings', 'setNodeTemplate', 'snapSettings', 'tool', 'tooltip', 'updateSelection', 'userHandleTemplate', 'width', 'animationComplete', 'click', 'collectionChange', 'commandExecute', 'connectionChange', 'contextMenuBeforeItemRender', 'contextMenuClick', 'contextMenuOpen', 'created', 'dataLoaded', 'doubleClick', 'dragEnter', 'dragLeave', 'dragOver', 'drop', 'expandStateChange', 'fixedUserHandleClick', 'historyChange', 'historyStateChange', 'keyDown', 'keyUp', 'mouseEnter', 'mouseLeave', 'mouseOver', 'mouseWheel', 'onImageLoad', 'onUserHandleMouseDown', 'onUserHandleMouseEnter', 'onUserHandleMouseLeave', 'onUserHandleMouseUp', 'positionChange', 'propertyChange', 'rotateChange', 'scrollChange', 'segmentCollectionChange', 'selectionChange', 'sizeChange', 'sourcePointChange', 'targetPointChange', 'textEdit', 'elementDraw'];
|
|
554
|
+
var properties = ['isLazyUpdate', 'plugins', 'addInfo', 'annotationTemplate', 'backgroundColor', 'bridgeDirection', 'commandManager', 'connectorDefaults', 'connectors', 'constraints', 'contextMenuSettings', 'customCursor', 'dataSourceSettings', 'diagramSettings', 'drawingObject', 'enableConnectorSplit', 'enablePersistence', 'enableRtl', 'getConnectorDefaults', 'getCustomCursor', 'getCustomProperty', 'getCustomTool', 'getDescription', 'getNodeDefaults', 'height', 'historyManager', 'layers', 'layout', 'locale', 'mode', 'nodeDefaults', 'nodeTemplate', 'nodes', 'pageSettings', 'rulerSettings', 'scrollSettings', 'segmentThumbShape', 'selectedItems', 'serializationSettings', 'setNodeTemplate', 'snapSettings', 'tool', 'tooltip', 'updateSelection', 'userHandleTemplate', 'width', 'animationComplete', 'click', 'collectionChange', 'commandExecute', 'connectionChange', 'contextMenuBeforeItemRender', 'contextMenuClick', 'contextMenuOpen', 'created', 'dataLoaded', 'doubleClick', 'dragEnter', 'dragLeave', 'dragOver', 'drop', 'expandStateChange', 'fixedUserHandleClick', 'historyChange', 'historyStateChange', 'keyDown', 'keyUp', 'mouseEnter', 'mouseLeave', 'mouseOver', 'mouseWheel', 'onImageLoad', 'onUserHandleMouseDown', 'onUserHandleMouseEnter', 'onUserHandleMouseLeave', 'onUserHandleMouseUp', 'positionChange', 'propertyChange', 'rotateChange', 'scrollChange', 'segmentChange', 'segmentCollectionChange', 'selectionChange', 'sizeChange', 'sourcePointChange', 'targetPointChange', 'textEdit', 'elementDraw'];
|
|
982
555
|
var modelProps = [];
|
|
983
556
|
var testProp = getProps({ props: properties });
|
|
984
557
|
var props = testProp[0];
|
|
@@ -995,453 +568,417 @@ for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
|
|
|
995
568
|
* <ejs-diagram></ejs-diagram>
|
|
996
569
|
* ```
|
|
997
570
|
*/
|
|
998
|
-
var DiagramComponent =
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
571
|
+
var DiagramComponent = vueDefineComponent({
|
|
572
|
+
name: 'DiagramComponent',
|
|
573
|
+
mixins: [ComponentBase],
|
|
574
|
+
props: props,
|
|
575
|
+
watch: watch,
|
|
576
|
+
emits: emitProbs,
|
|
577
|
+
provide: function () { return { custom: this.custom }; },
|
|
578
|
+
data: function () {
|
|
579
|
+
return {
|
|
580
|
+
ej2Instances: new Diagram({}),
|
|
581
|
+
propKeys: properties,
|
|
582
|
+
models: modelProps,
|
|
583
|
+
hasChildDirective: true,
|
|
584
|
+
hasInjectedModules: true,
|
|
585
|
+
tagMapper: { "e-layers": "e-layer", "e-cursormaps": "e-cursormap", "e-connectors": { "e-connector": { "e-connector-fixeduserhandles": "e-connector-fixeduserhandle", "e-connector-annotations": "e-connector-annotation" } }, "e-nodes": { "e-node": { "e-node-fixeduserhandles": "e-node-fixeduserhandle", "e-node-annotations": "e-node-annotation", "e-node-ports": "e-node-port" } } },
|
|
586
|
+
tagNameMapper: { "e-cursormaps": "e-customCursor", "e-connector-fixeduserhandles": "e-fixedUserHandles", "e-connector-annotations": "e-annotations", "e-node-fixeduserhandles": "e-fixedUserHandles", "e-node-annotations": "e-annotations", "e-node-ports": "e-ports" },
|
|
587
|
+
isVue3: !isExecute,
|
|
588
|
+
templateCollection: {},
|
|
589
|
+
};
|
|
590
|
+
},
|
|
591
|
+
created: function () {
|
|
592
|
+
this.bindProperties();
|
|
593
|
+
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
|
|
594
|
+
this.ej2Instances.setProperties = this.setProperties;
|
|
595
|
+
this.ej2Instances.clearTemplate = this.clearTemplate;
|
|
596
|
+
this.updated = this.updated;
|
|
597
|
+
},
|
|
598
|
+
render: function (createElement) {
|
|
599
|
+
var h = !isExecute ? gh : createElement;
|
|
600
|
+
var slots = null;
|
|
601
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
602
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
1020
603
|
}
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
604
|
+
return h('div', slots);
|
|
605
|
+
},
|
|
606
|
+
methods: {
|
|
607
|
+
clearTemplate: function (templateNames) {
|
|
608
|
+
if (!templateNames) {
|
|
609
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
610
|
+
}
|
|
611
|
+
if (templateNames.length && this.templateCollection) {
|
|
612
|
+
for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
|
|
613
|
+
var tempName = templateNames_1[_i];
|
|
614
|
+
var elementCollection = this.templateCollection[tempName];
|
|
615
|
+
if (elementCollection && elementCollection.length) {
|
|
616
|
+
for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
|
|
617
|
+
var ele = elementCollection_1[_a];
|
|
618
|
+
var destroy = getValue('__vue__.$destroy', ele);
|
|
619
|
+
if (destroy) {
|
|
620
|
+
ele.__vue__.$destroy();
|
|
621
|
+
}
|
|
622
|
+
if (ele.innerHTML) {
|
|
623
|
+
ele.innerHTML = '';
|
|
624
|
+
}
|
|
1034
625
|
}
|
|
626
|
+
delete this.templateCollection[tempName];
|
|
1035
627
|
}
|
|
1036
|
-
delete this.templateCollection[tempName];
|
|
1037
628
|
}
|
|
1038
629
|
}
|
|
1039
|
-
}
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
630
|
+
},
|
|
631
|
+
setProperties: function (prop, muteOnChange) {
|
|
632
|
+
var _this = this;
|
|
633
|
+
if (this.isVue3) {
|
|
634
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
635
|
+
}
|
|
636
|
+
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
637
|
+
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
638
|
+
}
|
|
639
|
+
if (prop && this.models && this.models.length) {
|
|
640
|
+
Object.keys(prop).map(function (key) {
|
|
641
|
+
_this.models.map(function (model) {
|
|
642
|
+
if ((key === model) && !(/datasource/i.test(key))) {
|
|
643
|
+
if (_this.isVue3) {
|
|
644
|
+
_this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
645
|
+
}
|
|
646
|
+
else {
|
|
647
|
+
_this.$emit('update:' + key, prop[key]);
|
|
648
|
+
_this.$emit('modelchanged', prop[key]);
|
|
649
|
+
}
|
|
1059
650
|
}
|
|
1060
|
-
}
|
|
651
|
+
});
|
|
1061
652
|
});
|
|
1062
|
-
});
|
|
1063
|
-
}
|
|
1064
|
-
};
|
|
1065
|
-
DiagramComponent.prototype.render = function (createElement) {
|
|
1066
|
-
var h = !isExecute ? gh : createElement;
|
|
1067
|
-
var slots = null;
|
|
1068
|
-
if (!isNullOrUndefined(this.$slots.default)) {
|
|
1069
|
-
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
1070
|
-
}
|
|
1071
|
-
return h('div', slots);
|
|
1072
|
-
};
|
|
1073
|
-
DiagramComponent.prototype.custom = function () {
|
|
1074
|
-
this.updated();
|
|
1075
|
-
};
|
|
1076
|
-
DiagramComponent.prototype.add = function (obj, group) {
|
|
1077
|
-
return this.ej2Instances.add(obj, group);
|
|
1078
|
-
};
|
|
1079
|
-
DiagramComponent.prototype.addChildToGroup = function (group, child) {
|
|
1080
|
-
return this.ej2Instances.addChildToGroup(group, child);
|
|
1081
|
-
};
|
|
1082
|
-
DiagramComponent.prototype.addConnector = function (obj) {
|
|
1083
|
-
return this.ej2Instances.addConnector(obj);
|
|
1084
|
-
};
|
|
1085
|
-
DiagramComponent.prototype.addConnectorLabels = function (obj, labels) {
|
|
1086
|
-
return this.ej2Instances.addConnectorLabels(obj, labels);
|
|
1087
|
-
};
|
|
1088
|
-
DiagramComponent.prototype.addConstraints = function (constraintsType, constraintsValue) {
|
|
1089
|
-
return this.ej2Instances.addConstraints(constraintsType, constraintsValue);
|
|
1090
|
-
};
|
|
1091
|
-
DiagramComponent.prototype.addCustomHistoryEntry = function (entry) {
|
|
1092
|
-
return this.ej2Instances.addCustomHistoryEntry(entry);
|
|
1093
|
-
};
|
|
1094
|
-
DiagramComponent.prototype.addHistoryEntry = function (entry, sourceId) {
|
|
1095
|
-
return this.ej2Instances.addHistoryEntry(entry, sourceId);
|
|
1096
|
-
};
|
|
1097
|
-
DiagramComponent.prototype.addLabels = function (obj, labels) {
|
|
1098
|
-
return this.ej2Instances.addLabels(obj, labels);
|
|
1099
|
-
};
|
|
1100
|
-
DiagramComponent.prototype.addLanes = function (node, lane, index) {
|
|
1101
|
-
return this.ej2Instances.addLanes(node, lane, index);
|
|
1102
|
-
};
|
|
1103
|
-
DiagramComponent.prototype.addLayer = function (layer, layerObject) {
|
|
1104
|
-
return this.ej2Instances.addLayer(layer, layerObject);
|
|
1105
|
-
};
|
|
1106
|
-
DiagramComponent.prototype.addNode = function (obj, group) {
|
|
1107
|
-
return this.ej2Instances.addNode(obj, group);
|
|
1108
|
-
};
|
|
1109
|
-
DiagramComponent.prototype.addNodeLabels = function (obj, labels) {
|
|
1110
|
-
return this.ej2Instances.addNodeLabels(obj, labels);
|
|
1111
|
-
};
|
|
1112
|
-
DiagramComponent.prototype.addNodeToLane = function (node, swimLane, lane) {
|
|
1113
|
-
return this.ej2Instances.addNodeToLane(node, swimLane, lane);
|
|
1114
|
-
};
|
|
1115
|
-
DiagramComponent.prototype.addPhases = function (node, phases) {
|
|
1116
|
-
return this.ej2Instances.addPhases(node, phases);
|
|
1117
|
-
};
|
|
1118
|
-
DiagramComponent.prototype.addPorts = function (obj, ports) {
|
|
1119
|
-
return this.ej2Instances.addPorts(obj, ports);
|
|
1120
|
-
};
|
|
1121
|
-
DiagramComponent.prototype.addProcess = function (process, parentId) {
|
|
1122
|
-
return this.ej2Instances.addProcess(process, parentId);
|
|
1123
|
-
};
|
|
1124
|
-
DiagramComponent.prototype.addTextAnnotation = function (annotation, node) {
|
|
1125
|
-
return this.ej2Instances.addTextAnnotation(annotation, node);
|
|
1126
|
-
};
|
|
1127
|
-
DiagramComponent.prototype.align = function (option, objects, type) {
|
|
1128
|
-
return this.ej2Instances.align(option, objects, type);
|
|
1129
|
-
};
|
|
1130
|
-
DiagramComponent.prototype.bringIntoView = function (bound) {
|
|
1131
|
-
return this.ej2Instances.bringIntoView(bound);
|
|
1132
|
-
};
|
|
1133
|
-
DiagramComponent.prototype.bringLayerForward = function (layerName) {
|
|
1134
|
-
return this.ej2Instances.bringLayerForward(layerName);
|
|
1135
|
-
};
|
|
1136
|
-
DiagramComponent.prototype.bringToCenter = function (bound) {
|
|
1137
|
-
return this.ej2Instances.bringToCenter(bound);
|
|
1138
|
-
};
|
|
1139
|
-
DiagramComponent.prototype.bringToFront = function () {
|
|
1140
|
-
return this.ej2Instances.bringToFront();
|
|
1141
|
-
};
|
|
1142
|
-
DiagramComponent.prototype.clear = function () {
|
|
1143
|
-
return this.ej2Instances.clear();
|
|
1144
|
-
};
|
|
1145
|
-
DiagramComponent.prototype.clearHistory = function () {
|
|
1146
|
-
return this.ej2Instances.clearHistory();
|
|
1147
|
-
};
|
|
1148
|
-
DiagramComponent.prototype.clearSelection = function () {
|
|
1149
|
-
return this.ej2Instances.clearSelection();
|
|
1150
|
-
};
|
|
1151
|
-
DiagramComponent.prototype.cloneLayer = function (layerName) {
|
|
1152
|
-
return this.ej2Instances.cloneLayer(layerName);
|
|
1153
|
-
};
|
|
1154
|
-
DiagramComponent.prototype.copy = function () {
|
|
1155
|
-
return this.ej2Instances.copy();
|
|
1156
|
-
};
|
|
1157
|
-
DiagramComponent.prototype.cut = function () {
|
|
1158
|
-
return this.ej2Instances.cut();
|
|
1159
|
-
};
|
|
1160
|
-
DiagramComponent.prototype.distribute = function (option, objects) {
|
|
1161
|
-
return this.ej2Instances.distribute(option, objects);
|
|
1162
|
-
};
|
|
1163
|
-
DiagramComponent.prototype.doLayout = function () {
|
|
1164
|
-
return this.ej2Instances.doLayout();
|
|
1165
|
-
};
|
|
1166
|
-
DiagramComponent.prototype.drag = function (obj, tx, ty) {
|
|
1167
|
-
return this.ej2Instances.drag(obj, tx, ty);
|
|
1168
|
-
};
|
|
1169
|
-
DiagramComponent.prototype.dragSourceEnd = function (obj, tx, ty) {
|
|
1170
|
-
return this.ej2Instances.dragSourceEnd(obj, tx, ty);
|
|
1171
|
-
};
|
|
1172
|
-
DiagramComponent.prototype.dragTargetEnd = function (obj, tx, ty) {
|
|
1173
|
-
return this.ej2Instances.dragTargetEnd(obj, tx, ty);
|
|
1174
|
-
};
|
|
1175
|
-
DiagramComponent.prototype.endGroupAction = function () {
|
|
1176
|
-
return this.ej2Instances.endGroupAction();
|
|
1177
|
-
};
|
|
1178
|
-
DiagramComponent.prototype.exportDiagram = function (options) {
|
|
1179
|
-
return this.ej2Instances.exportDiagram(options);
|
|
1180
|
-
};
|
|
1181
|
-
DiagramComponent.prototype.exportImage = function (image, options) {
|
|
1182
|
-
return this.ej2Instances.exportImage(image, options);
|
|
1183
|
-
};
|
|
1184
|
-
DiagramComponent.prototype.findElementUnderMouse = function (obj, position, padding) {
|
|
1185
|
-
return this.ej2Instances.findElementUnderMouse(obj, position, padding);
|
|
1186
|
-
};
|
|
1187
|
-
DiagramComponent.prototype.findObjectUnderMouse = function (objects, action, inAction) {
|
|
1188
|
-
return this.ej2Instances.findObjectUnderMouse(objects, action, inAction);
|
|
1189
|
-
};
|
|
1190
|
-
DiagramComponent.prototype.findObjectsUnderMouse = function (position, source) {
|
|
1191
|
-
return this.ej2Instances.findObjectsUnderMouse(position, source);
|
|
1192
|
-
};
|
|
1193
|
-
DiagramComponent.prototype.findTargetObjectUnderMouse = function (objects, action, inAction, position, source) {
|
|
1194
|
-
return this.ej2Instances.findTargetObjectUnderMouse(objects, action, inAction, position, source);
|
|
1195
|
-
};
|
|
1196
|
-
DiagramComponent.prototype.fitToPage = function (options) {
|
|
1197
|
-
return this.ej2Instances.fitToPage(options);
|
|
1198
|
-
};
|
|
1199
|
-
DiagramComponent.prototype.getActiveLayer = function () {
|
|
1200
|
-
return this.ej2Instances.getActiveLayer();
|
|
1201
|
-
};
|
|
1202
|
-
DiagramComponent.prototype.getConnectorObject = function (id) {
|
|
1203
|
-
return this.ej2Instances.getConnectorObject(id);
|
|
1204
|
-
};
|
|
1205
|
-
DiagramComponent.prototype.getCursor = function (action, active) {
|
|
1206
|
-
return this.ej2Instances.getCursor(action, active);
|
|
1207
|
-
};
|
|
1208
|
-
DiagramComponent.prototype.getDiagramAction = function (diagramAction) {
|
|
1209
|
-
return this.ej2Instances.getDiagramAction(diagramAction);
|
|
1210
|
-
};
|
|
1211
|
-
DiagramComponent.prototype.getDiagramBounds = function () {
|
|
1212
|
-
return this.ej2Instances.getDiagramBounds();
|
|
1213
|
-
};
|
|
1214
|
-
DiagramComponent.prototype.getDiagramContent = function (styleSheets) {
|
|
1215
|
-
return this.ej2Instances.getDiagramContent(styleSheets);
|
|
1216
|
-
};
|
|
1217
|
-
DiagramComponent.prototype.getEdges = function (args) {
|
|
1218
|
-
return this.ej2Instances.getEdges(args);
|
|
1219
|
-
};
|
|
1220
|
-
DiagramComponent.prototype.getHistoryStack = function (isUndoStack) {
|
|
1221
|
-
return this.ej2Instances.getHistoryStack(isUndoStack);
|
|
1222
|
-
};
|
|
1223
|
-
DiagramComponent.prototype.getNodeObject = function (id) {
|
|
1224
|
-
return this.ej2Instances.getNodeObject(id);
|
|
1225
|
-
};
|
|
1226
|
-
DiagramComponent.prototype.getObject = function (name) {
|
|
1227
|
-
return this.ej2Instances.getObject(name);
|
|
1228
|
-
};
|
|
1229
|
-
DiagramComponent.prototype.getParentId = function (id) {
|
|
1230
|
-
return this.ej2Instances.getParentId(id);
|
|
1231
|
-
};
|
|
1232
|
-
DiagramComponent.prototype.getTool = function (action) {
|
|
1233
|
-
return this.ej2Instances.getTool(action);
|
|
1234
|
-
};
|
|
1235
|
-
DiagramComponent.prototype.group = function () {
|
|
1236
|
-
return this.ej2Instances.group();
|
|
1237
|
-
};
|
|
1238
|
-
DiagramComponent.prototype.hideTooltip = function (obj) {
|
|
1239
|
-
return this.ej2Instances.hideTooltip(obj);
|
|
1240
|
-
};
|
|
1241
|
-
DiagramComponent.prototype.insertData = function (node) {
|
|
1242
|
-
return this.ej2Instances.insertData(node);
|
|
1243
|
-
};
|
|
1244
|
-
DiagramComponent.prototype.loadDiagram = function (data) {
|
|
1245
|
-
return this.ej2Instances.loadDiagram(data);
|
|
1246
|
-
};
|
|
1247
|
-
DiagramComponent.prototype.moveForward = function () {
|
|
1248
|
-
return this.ej2Instances.moveForward();
|
|
1249
|
-
};
|
|
1250
|
-
DiagramComponent.prototype.moveObjects = function (objects, targetLayer) {
|
|
1251
|
-
return this.ej2Instances.moveObjects(objects, targetLayer);
|
|
1252
|
-
};
|
|
1253
|
-
DiagramComponent.prototype.moveObjectsUp = function (node, currentLayer) {
|
|
1254
|
-
return this.ej2Instances.moveObjectsUp(node, currentLayer);
|
|
1255
|
-
};
|
|
1256
|
-
DiagramComponent.prototype.nudge = function (direction, x, y) {
|
|
1257
|
-
return this.ej2Instances.nudge(direction, x, y);
|
|
1258
|
-
};
|
|
1259
|
-
DiagramComponent.prototype.pan = function (horizontalOffset, verticalOffset, focusedPoint, isInteractiveZoomPan) {
|
|
1260
|
-
return this.ej2Instances.pan(horizontalOffset, verticalOffset, focusedPoint, isInteractiveZoomPan);
|
|
1261
|
-
};
|
|
1262
|
-
DiagramComponent.prototype.paste = function (obj) {
|
|
1263
|
-
return this.ej2Instances.paste(obj);
|
|
1264
|
-
};
|
|
1265
|
-
DiagramComponent.prototype.print = function (options) {
|
|
1266
|
-
return this.ej2Instances.print(options);
|
|
1267
|
-
};
|
|
1268
|
-
DiagramComponent.prototype.printImage = function (image, options) {
|
|
1269
|
-
return this.ej2Instances.printImage(image, options);
|
|
1270
|
-
};
|
|
1271
|
-
DiagramComponent.prototype.redo = function () {
|
|
1272
|
-
return this.ej2Instances.redo();
|
|
1273
|
-
};
|
|
1274
|
-
DiagramComponent.prototype.remove = function (obj) {
|
|
1275
|
-
return this.ej2Instances.remove(obj);
|
|
1276
|
-
};
|
|
1277
|
-
DiagramComponent.prototype.removeConstraints = function (constraintsType, constraintsValue) {
|
|
1278
|
-
return this.ej2Instances.removeConstraints(constraintsType, constraintsValue);
|
|
1279
|
-
};
|
|
1280
|
-
DiagramComponent.prototype.removeData = function (node) {
|
|
1281
|
-
return this.ej2Instances.removeData(node);
|
|
1282
|
-
};
|
|
1283
|
-
DiagramComponent.prototype.removeLabels = function (obj, labels) {
|
|
1284
|
-
return this.ej2Instances.removeLabels(obj, labels);
|
|
1285
|
-
};
|
|
1286
|
-
DiagramComponent.prototype.removeLane = function (node, lane) {
|
|
1287
|
-
return this.ej2Instances.removeLane(node, lane);
|
|
1288
|
-
};
|
|
1289
|
-
DiagramComponent.prototype.removeLayer = function (layerId) {
|
|
1290
|
-
return this.ej2Instances.removeLayer(layerId);
|
|
1291
|
-
};
|
|
1292
|
-
DiagramComponent.prototype.removePhase = function (node, phase) {
|
|
1293
|
-
return this.ej2Instances.removePhase(node, phase);
|
|
1294
|
-
};
|
|
1295
|
-
DiagramComponent.prototype.removePorts = function (obj, ports) {
|
|
1296
|
-
return this.ej2Instances.removePorts(obj, ports);
|
|
1297
|
-
};
|
|
1298
|
-
DiagramComponent.prototype.removeProcess = function (id) {
|
|
1299
|
-
return this.ej2Instances.removeProcess(id);
|
|
1300
|
-
};
|
|
1301
|
-
DiagramComponent.prototype.reset = function () {
|
|
1302
|
-
return this.ej2Instances.reset();
|
|
1303
|
-
};
|
|
1304
|
-
DiagramComponent.prototype.resetSegments = function () {
|
|
1305
|
-
return this.ej2Instances.resetSegments();
|
|
1306
|
-
};
|
|
1307
|
-
DiagramComponent.prototype.rotate = function (obj, angle, pivot) {
|
|
1308
|
-
return this.ej2Instances.rotate(obj, angle, pivot);
|
|
1309
|
-
};
|
|
1310
|
-
DiagramComponent.prototype.sameSize = function (option, objects) {
|
|
1311
|
-
return this.ej2Instances.sameSize(option, objects);
|
|
1312
|
-
};
|
|
1313
|
-
DiagramComponent.prototype.saveDiagram = function () {
|
|
1314
|
-
return this.ej2Instances.saveDiagram();
|
|
1315
|
-
};
|
|
1316
|
-
DiagramComponent.prototype.scale = function (obj, sx, sy, pivot) {
|
|
1317
|
-
return this.ej2Instances.scale(obj, sx, sy, pivot);
|
|
1318
|
-
};
|
|
1319
|
-
DiagramComponent.prototype.select = function (objects, multipleSelection, oldValue) {
|
|
1320
|
-
return this.ej2Instances.select(objects, multipleSelection, oldValue);
|
|
1321
|
-
};
|
|
1322
|
-
DiagramComponent.prototype.selectAll = function () {
|
|
1323
|
-
return this.ej2Instances.selectAll();
|
|
1324
|
-
};
|
|
1325
|
-
DiagramComponent.prototype.sendBackward = function () {
|
|
1326
|
-
return this.ej2Instances.sendBackward();
|
|
1327
|
-
};
|
|
1328
|
-
DiagramComponent.prototype.sendLayerBackward = function (layerName) {
|
|
1329
|
-
return this.ej2Instances.sendLayerBackward(layerName);
|
|
1330
|
-
};
|
|
1331
|
-
DiagramComponent.prototype.sendToBack = function () {
|
|
1332
|
-
return this.ej2Instances.sendToBack();
|
|
1333
|
-
};
|
|
1334
|
-
DiagramComponent.prototype.setActiveLayer = function (layerName) {
|
|
1335
|
-
return this.ej2Instances.setActiveLayer(layerName);
|
|
1336
|
-
};
|
|
1337
|
-
DiagramComponent.prototype.setStackLimit = function (stackLimit) {
|
|
1338
|
-
return this.ej2Instances.setStackLimit(stackLimit);
|
|
1339
|
-
};
|
|
1340
|
-
DiagramComponent.prototype.showTooltip = function (obj) {
|
|
1341
|
-
return this.ej2Instances.showTooltip(obj);
|
|
1342
|
-
};
|
|
1343
|
-
DiagramComponent.prototype.startGroupAction = function () {
|
|
1344
|
-
return this.ej2Instances.startGroupAction();
|
|
1345
|
-
};
|
|
1346
|
-
DiagramComponent.prototype.startTextEdit = function (node, id) {
|
|
1347
|
-
return this.ej2Instances.startTextEdit(node, id);
|
|
1348
|
-
};
|
|
1349
|
-
DiagramComponent.prototype.unGroup = function () {
|
|
1350
|
-
return this.ej2Instances.unGroup();
|
|
1351
|
-
};
|
|
1352
|
-
DiagramComponent.prototype.unSelect = function (obj) {
|
|
1353
|
-
return this.ej2Instances.unSelect(obj);
|
|
1354
|
-
};
|
|
1355
|
-
DiagramComponent.prototype.undo = function () {
|
|
1356
|
-
return this.ej2Instances.undo();
|
|
1357
|
-
};
|
|
1358
|
-
DiagramComponent.prototype.updateData = function (node) {
|
|
1359
|
-
return this.ej2Instances.updateData(node);
|
|
1360
|
-
};
|
|
1361
|
-
DiagramComponent.prototype.updateViewPort = function () {
|
|
1362
|
-
return this.ej2Instances.updateViewPort();
|
|
1363
|
-
};
|
|
1364
|
-
DiagramComponent.prototype.zoom = function (factor, focusedPoint) {
|
|
1365
|
-
return this.ej2Instances.zoom(factor, focusedPoint);
|
|
1366
|
-
};
|
|
1367
|
-
DiagramComponent.prototype.zoomTo = function (options) {
|
|
1368
|
-
return this.ej2Instances.zoomTo(options);
|
|
1369
|
-
};
|
|
1370
|
-
DiagramComponent = __decorate$9([
|
|
1371
|
-
EJComponentDecorator({
|
|
1372
|
-
props: properties
|
|
1373
|
-
}, isExecute)
|
|
1374
|
-
,Options({
|
|
1375
|
-
props: props,
|
|
1376
|
-
watch: watch,
|
|
1377
|
-
emits: emitProbs,
|
|
1378
|
-
provide: function provide() {
|
|
1379
|
-
return {
|
|
1380
|
-
custom: this.custom
|
|
1381
|
-
};
|
|
1382
653
|
}
|
|
1383
|
-
}
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
}
|
|
654
|
+
},
|
|
655
|
+
custom: function () {
|
|
656
|
+
this.updated();
|
|
657
|
+
},
|
|
658
|
+
add: function (obj, group) {
|
|
659
|
+
return this.ej2Instances.add(obj, group);
|
|
660
|
+
},
|
|
661
|
+
addChildToGroup: function (group, child) {
|
|
662
|
+
return this.ej2Instances.addChildToGroup(group, child);
|
|
663
|
+
},
|
|
664
|
+
addConnector: function (obj) {
|
|
665
|
+
return this.ej2Instances.addConnector(obj);
|
|
666
|
+
},
|
|
667
|
+
addConnectorLabels: function (obj, labels) {
|
|
668
|
+
return this.ej2Instances.addConnectorLabels(obj, labels);
|
|
669
|
+
},
|
|
670
|
+
addConstraints: function (constraintsType, constraintsValue) {
|
|
671
|
+
return this.ej2Instances.addConstraints(constraintsType, constraintsValue);
|
|
672
|
+
},
|
|
673
|
+
addCustomHistoryEntry: function (entry) {
|
|
674
|
+
return this.ej2Instances.addCustomHistoryEntry(entry);
|
|
675
|
+
},
|
|
676
|
+
addHistoryEntry: function (entry, sourceId) {
|
|
677
|
+
return this.ej2Instances.addHistoryEntry(entry, sourceId);
|
|
678
|
+
},
|
|
679
|
+
addLabels: function (obj, labels) {
|
|
680
|
+
return this.ej2Instances.addLabels(obj, labels);
|
|
681
|
+
},
|
|
682
|
+
addLanes: function (node, lane, index) {
|
|
683
|
+
return this.ej2Instances.addLanes(node, lane, index);
|
|
684
|
+
},
|
|
685
|
+
addLayer: function (layer, layerObject) {
|
|
686
|
+
return this.ej2Instances.addLayer(layer, layerObject);
|
|
687
|
+
},
|
|
688
|
+
addNode: function (obj, group) {
|
|
689
|
+
return this.ej2Instances.addNode(obj, group);
|
|
690
|
+
},
|
|
691
|
+
addNodeLabels: function (obj, labels) {
|
|
692
|
+
return this.ej2Instances.addNodeLabels(obj, labels);
|
|
693
|
+
},
|
|
694
|
+
addNodeToLane: function (node, swimLane, lane) {
|
|
695
|
+
return this.ej2Instances.addNodeToLane(node, swimLane, lane);
|
|
696
|
+
},
|
|
697
|
+
addPhases: function (node, phases) {
|
|
698
|
+
return this.ej2Instances.addPhases(node, phases);
|
|
699
|
+
},
|
|
700
|
+
addPorts: function (obj, ports) {
|
|
701
|
+
return this.ej2Instances.addPorts(obj, ports);
|
|
702
|
+
},
|
|
703
|
+
addProcess: function (process, parentId) {
|
|
704
|
+
return this.ej2Instances.addProcess(process, parentId);
|
|
705
|
+
},
|
|
706
|
+
addTextAnnotation: function (annotation, node) {
|
|
707
|
+
return this.ej2Instances.addTextAnnotation(annotation, node);
|
|
708
|
+
},
|
|
709
|
+
align: function (option, objects, type) {
|
|
710
|
+
return this.ej2Instances.align(option, objects, type);
|
|
711
|
+
},
|
|
712
|
+
bringIntoView: function (bound) {
|
|
713
|
+
return this.ej2Instances.bringIntoView(bound);
|
|
714
|
+
},
|
|
715
|
+
bringLayerForward: function (layerName) {
|
|
716
|
+
return this.ej2Instances.bringLayerForward(layerName);
|
|
717
|
+
},
|
|
718
|
+
bringToCenter: function (bound) {
|
|
719
|
+
return this.ej2Instances.bringToCenter(bound);
|
|
720
|
+
},
|
|
721
|
+
bringToFront: function () {
|
|
722
|
+
return this.ej2Instances.bringToFront();
|
|
723
|
+
},
|
|
724
|
+
clear: function () {
|
|
725
|
+
return this.ej2Instances.clear();
|
|
726
|
+
},
|
|
727
|
+
clearHistory: function () {
|
|
728
|
+
return this.ej2Instances.clearHistory();
|
|
729
|
+
},
|
|
730
|
+
clearSelection: function () {
|
|
731
|
+
return this.ej2Instances.clearSelection();
|
|
732
|
+
},
|
|
733
|
+
cloneLayer: function (layerName) {
|
|
734
|
+
return this.ej2Instances.cloneLayer(layerName);
|
|
735
|
+
},
|
|
736
|
+
copy: function () {
|
|
737
|
+
return this.ej2Instances.copy();
|
|
738
|
+
},
|
|
739
|
+
cut: function () {
|
|
740
|
+
return this.ej2Instances.cut();
|
|
741
|
+
},
|
|
742
|
+
distribute: function (option, objects) {
|
|
743
|
+
return this.ej2Instances.distribute(option, objects);
|
|
744
|
+
},
|
|
745
|
+
doLayout: function () {
|
|
746
|
+
return this.ej2Instances.doLayout();
|
|
747
|
+
},
|
|
748
|
+
drag: function (obj, tx, ty) {
|
|
749
|
+
return this.ej2Instances.drag(obj, tx, ty);
|
|
750
|
+
},
|
|
751
|
+
dragSourceEnd: function (obj, tx, ty) {
|
|
752
|
+
return this.ej2Instances.dragSourceEnd(obj, tx, ty);
|
|
753
|
+
},
|
|
754
|
+
dragTargetEnd: function (obj, tx, ty) {
|
|
755
|
+
return this.ej2Instances.dragTargetEnd(obj, tx, ty);
|
|
756
|
+
},
|
|
757
|
+
endGroupAction: function () {
|
|
758
|
+
return this.ej2Instances.endGroupAction();
|
|
759
|
+
},
|
|
760
|
+
exportDiagram: function (options) {
|
|
761
|
+
return this.ej2Instances.exportDiagram(options);
|
|
762
|
+
},
|
|
763
|
+
exportImage: function (image, options) {
|
|
764
|
+
return this.ej2Instances.exportImage(image, options);
|
|
765
|
+
},
|
|
766
|
+
findElementUnderMouse: function (obj, position, padding) {
|
|
767
|
+
return this.ej2Instances.findElementUnderMouse(obj, position, padding);
|
|
768
|
+
},
|
|
769
|
+
findObjectUnderMouse: function (objects, action, inAction) {
|
|
770
|
+
return this.ej2Instances.findObjectUnderMouse(objects, action, inAction);
|
|
771
|
+
},
|
|
772
|
+
findObjectsUnderMouse: function (position, source) {
|
|
773
|
+
return this.ej2Instances.findObjectsUnderMouse(position, source);
|
|
774
|
+
},
|
|
775
|
+
findTargetObjectUnderMouse: function (objects, action, inAction, position, source) {
|
|
776
|
+
return this.ej2Instances.findTargetObjectUnderMouse(objects, action, inAction, position, source);
|
|
777
|
+
},
|
|
778
|
+
fitToPage: function (options) {
|
|
779
|
+
return this.ej2Instances.fitToPage(options);
|
|
780
|
+
},
|
|
781
|
+
getActiveLayer: function () {
|
|
782
|
+
return this.ej2Instances.getActiveLayer();
|
|
783
|
+
},
|
|
784
|
+
getConnectorObject: function (id) {
|
|
785
|
+
return this.ej2Instances.getConnectorObject(id);
|
|
786
|
+
},
|
|
787
|
+
getCursor: function (action, active) {
|
|
788
|
+
return this.ej2Instances.getCursor(action, active);
|
|
789
|
+
},
|
|
790
|
+
getDiagramAction: function (diagramAction) {
|
|
791
|
+
return this.ej2Instances.getDiagramAction(diagramAction);
|
|
792
|
+
},
|
|
793
|
+
getDiagramBounds: function () {
|
|
794
|
+
return this.ej2Instances.getDiagramBounds();
|
|
795
|
+
},
|
|
796
|
+
getDiagramContent: function (styleSheets) {
|
|
797
|
+
return this.ej2Instances.getDiagramContent(styleSheets);
|
|
798
|
+
},
|
|
799
|
+
getEdges: function (args) {
|
|
800
|
+
return this.ej2Instances.getEdges(args);
|
|
801
|
+
},
|
|
802
|
+
getHistoryStack: function (isUndoStack) {
|
|
803
|
+
return this.ej2Instances.getHistoryStack(isUndoStack);
|
|
804
|
+
},
|
|
805
|
+
getNodeObject: function (id) {
|
|
806
|
+
return this.ej2Instances.getNodeObject(id);
|
|
807
|
+
},
|
|
808
|
+
getObject: function (name) {
|
|
809
|
+
return this.ej2Instances.getObject(name);
|
|
810
|
+
},
|
|
811
|
+
getParentId: function (id) {
|
|
812
|
+
return this.ej2Instances.getParentId(id);
|
|
813
|
+
},
|
|
814
|
+
getTool: function (action) {
|
|
815
|
+
return this.ej2Instances.getTool(action);
|
|
816
|
+
},
|
|
817
|
+
group: function () {
|
|
818
|
+
return this.ej2Instances.group();
|
|
819
|
+
},
|
|
820
|
+
hideTooltip: function (obj) {
|
|
821
|
+
return this.ej2Instances.hideTooltip(obj);
|
|
822
|
+
},
|
|
823
|
+
insertData: function (node) {
|
|
824
|
+
return this.ej2Instances.insertData(node);
|
|
825
|
+
},
|
|
826
|
+
loadDiagram: function (data) {
|
|
827
|
+
return this.ej2Instances.loadDiagram(data);
|
|
828
|
+
},
|
|
829
|
+
moveForward: function () {
|
|
830
|
+
return this.ej2Instances.moveForward();
|
|
831
|
+
},
|
|
832
|
+
moveObjects: function (objects, targetLayer) {
|
|
833
|
+
return this.ej2Instances.moveObjects(objects, targetLayer);
|
|
834
|
+
},
|
|
835
|
+
moveObjectsUp: function (node, currentLayer) {
|
|
836
|
+
return this.ej2Instances.moveObjectsUp(node, currentLayer);
|
|
837
|
+
},
|
|
838
|
+
nudge: function (direction, x, y) {
|
|
839
|
+
return this.ej2Instances.nudge(direction, x, y);
|
|
840
|
+
},
|
|
841
|
+
pan: function (horizontalOffset, verticalOffset, focusedPoint, isInteractiveZoomPan) {
|
|
842
|
+
return this.ej2Instances.pan(horizontalOffset, verticalOffset, focusedPoint, isInteractiveZoomPan);
|
|
843
|
+
},
|
|
844
|
+
paste: function (obj) {
|
|
845
|
+
return this.ej2Instances.paste(obj);
|
|
846
|
+
},
|
|
847
|
+
print: function (options) {
|
|
848
|
+
return this.ej2Instances.print(options);
|
|
849
|
+
},
|
|
850
|
+
printImage: function (image, options) {
|
|
851
|
+
return this.ej2Instances.printImage(image, options);
|
|
852
|
+
},
|
|
853
|
+
redo: function () {
|
|
854
|
+
return this.ej2Instances.redo();
|
|
855
|
+
},
|
|
856
|
+
remove: function (obj) {
|
|
857
|
+
return this.ej2Instances.remove(obj);
|
|
858
|
+
},
|
|
859
|
+
removeConstraints: function (constraintsType, constraintsValue) {
|
|
860
|
+
return this.ej2Instances.removeConstraints(constraintsType, constraintsValue);
|
|
861
|
+
},
|
|
862
|
+
removeData: function (node) {
|
|
863
|
+
return this.ej2Instances.removeData(node);
|
|
864
|
+
},
|
|
865
|
+
removeLabels: function (obj, labels) {
|
|
866
|
+
return this.ej2Instances.removeLabels(obj, labels);
|
|
867
|
+
},
|
|
868
|
+
removeLane: function (node, lane) {
|
|
869
|
+
return this.ej2Instances.removeLane(node, lane);
|
|
870
|
+
},
|
|
871
|
+
removeLayer: function (layerId) {
|
|
872
|
+
return this.ej2Instances.removeLayer(layerId);
|
|
873
|
+
},
|
|
874
|
+
removePhase: function (node, phase) {
|
|
875
|
+
return this.ej2Instances.removePhase(node, phase);
|
|
876
|
+
},
|
|
877
|
+
removePorts: function (obj, ports) {
|
|
878
|
+
return this.ej2Instances.removePorts(obj, ports);
|
|
879
|
+
},
|
|
880
|
+
removeProcess: function (id) {
|
|
881
|
+
return this.ej2Instances.removeProcess(id);
|
|
882
|
+
},
|
|
883
|
+
reset: function () {
|
|
884
|
+
return this.ej2Instances.reset();
|
|
885
|
+
},
|
|
886
|
+
resetSegments: function () {
|
|
887
|
+
return this.ej2Instances.resetSegments();
|
|
888
|
+
},
|
|
889
|
+
rotate: function (obj, angle, pivot) {
|
|
890
|
+
return this.ej2Instances.rotate(obj, angle, pivot);
|
|
891
|
+
},
|
|
892
|
+
sameSize: function (option, objects) {
|
|
893
|
+
return this.ej2Instances.sameSize(option, objects);
|
|
894
|
+
},
|
|
895
|
+
saveDiagram: function () {
|
|
896
|
+
return this.ej2Instances.saveDiagram();
|
|
897
|
+
},
|
|
898
|
+
scale: function (obj, sx, sy, pivot) {
|
|
899
|
+
return this.ej2Instances.scale(obj, sx, sy, pivot);
|
|
900
|
+
},
|
|
901
|
+
select: function (objects, multipleSelection, oldValue) {
|
|
902
|
+
return this.ej2Instances.select(objects, multipleSelection, oldValue);
|
|
903
|
+
},
|
|
904
|
+
selectAll: function () {
|
|
905
|
+
return this.ej2Instances.selectAll();
|
|
906
|
+
},
|
|
907
|
+
sendBackward: function () {
|
|
908
|
+
return this.ej2Instances.sendBackward();
|
|
909
|
+
},
|
|
910
|
+
sendLayerBackward: function (layerName) {
|
|
911
|
+
return this.ej2Instances.sendLayerBackward(layerName);
|
|
912
|
+
},
|
|
913
|
+
sendToBack: function () {
|
|
914
|
+
return this.ej2Instances.sendToBack();
|
|
915
|
+
},
|
|
916
|
+
setActiveLayer: function (layerName) {
|
|
917
|
+
return this.ej2Instances.setActiveLayer(layerName);
|
|
918
|
+
},
|
|
919
|
+
setStackLimit: function (stackLimit) {
|
|
920
|
+
return this.ej2Instances.setStackLimit(stackLimit);
|
|
921
|
+
},
|
|
922
|
+
showTooltip: function (obj) {
|
|
923
|
+
return this.ej2Instances.showTooltip(obj);
|
|
924
|
+
},
|
|
925
|
+
startGroupAction: function () {
|
|
926
|
+
return this.ej2Instances.startGroupAction();
|
|
927
|
+
},
|
|
928
|
+
startTextEdit: function (node, id) {
|
|
929
|
+
return this.ej2Instances.startTextEdit(node, id);
|
|
930
|
+
},
|
|
931
|
+
unGroup: function () {
|
|
932
|
+
return this.ej2Instances.unGroup();
|
|
933
|
+
},
|
|
934
|
+
unSelect: function (obj) {
|
|
935
|
+
return this.ej2Instances.unSelect(obj);
|
|
936
|
+
},
|
|
937
|
+
undo: function () {
|
|
938
|
+
return this.ej2Instances.undo();
|
|
939
|
+
},
|
|
940
|
+
updateData: function (node) {
|
|
941
|
+
return this.ej2Instances.updateData(node);
|
|
942
|
+
},
|
|
943
|
+
updateViewPort: function () {
|
|
944
|
+
return this.ej2Instances.updateViewPort();
|
|
945
|
+
},
|
|
946
|
+
zoom: function (factor, focusedPoint) {
|
|
947
|
+
return this.ej2Instances.zoom(factor, focusedPoint);
|
|
948
|
+
},
|
|
949
|
+
zoomTo: function (options) {
|
|
950
|
+
return this.ej2Instances.zoomTo(options);
|
|
951
|
+
},
|
|
952
|
+
}
|
|
953
|
+
});
|
|
1387
954
|
var DiagramPlugin = {
|
|
1388
955
|
name: 'ejs-diagram',
|
|
1389
|
-
install: function (Vue
|
|
1390
|
-
Vue
|
|
1391
|
-
Vue
|
|
1392
|
-
Vue
|
|
1393
|
-
Vue
|
|
1394
|
-
Vue
|
|
1395
|
-
Vue
|
|
1396
|
-
Vue
|
|
1397
|
-
Vue
|
|
1398
|
-
Vue
|
|
1399
|
-
Vue
|
|
1400
|
-
Vue
|
|
1401
|
-
Vue
|
|
1402
|
-
Vue
|
|
1403
|
-
Vue
|
|
1404
|
-
Vue
|
|
1405
|
-
Vue
|
|
1406
|
-
Vue
|
|
1407
|
-
Vue
|
|
1408
|
-
Vue
|
|
956
|
+
install: function (Vue) {
|
|
957
|
+
Vue.component(DiagramPlugin.name, DiagramComponent);
|
|
958
|
+
Vue.component(LayerPlugin.name, LayerDirective);
|
|
959
|
+
Vue.component(LayersPlugin.name, LayersDirective);
|
|
960
|
+
Vue.component(CustomCursorPlugin.name, CustomCursorDirective);
|
|
961
|
+
Vue.component(CustomCursorsPlugin.name, CustomCursorsDirective);
|
|
962
|
+
Vue.component(ConnectorPlugin.name, ConnectorDirective);
|
|
963
|
+
Vue.component(ConnectorsPlugin.name, ConnectorsDirective);
|
|
964
|
+
Vue.component(ConnectorFixedUserHandlePlugin.name, ConnectorFixedUserHandleDirective);
|
|
965
|
+
Vue.component(ConnectorFixedUserHandlesPlugin.name, ConnectorFixedUserHandlesDirective);
|
|
966
|
+
Vue.component(ConnectorAnnotationPlugin.name, ConnectorAnnotationDirective);
|
|
967
|
+
Vue.component(ConnectorAnnotationsPlugin.name, ConnectorAnnotationsDirective);
|
|
968
|
+
Vue.component(NodePlugin.name, NodeDirective);
|
|
969
|
+
Vue.component(NodesPlugin.name, NodesDirective);
|
|
970
|
+
Vue.component(NodeFixedUserHandlePlugin.name, NodeFixedUserHandleDirective);
|
|
971
|
+
Vue.component(NodeFixedUserHandlesPlugin.name, NodeFixedUserHandlesDirective);
|
|
972
|
+
Vue.component(NodeAnnotationPlugin.name, NodeAnnotationDirective);
|
|
973
|
+
Vue.component(NodeAnnotationsPlugin.name, NodeAnnotationsDirective);
|
|
974
|
+
Vue.component(PortPlugin.name, PortDirective);
|
|
975
|
+
Vue.component(PortsPlugin.name, PortsDirective);
|
|
1409
976
|
}
|
|
1410
977
|
};
|
|
1411
978
|
|
|
1412
|
-
var
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
1416
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
1417
|
-
return extendStatics(d, b);
|
|
1418
|
-
};
|
|
1419
|
-
return function (d, b) {
|
|
1420
|
-
extendStatics(d, b);
|
|
1421
|
-
function __() { this.constructor = d; }
|
|
1422
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1423
|
-
};
|
|
1424
|
-
})();
|
|
1425
|
-
var __decorate$10 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1426
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1427
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1428
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1429
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1430
|
-
};
|
|
1431
|
-
// {{VueImport}}
|
|
1432
|
-
var vueImport$9;
|
|
1433
|
-
if (!isExecute || parseInt(allVue.version) < 3) {
|
|
1434
|
-
vueImport$9 = Vue;
|
|
1435
|
-
}
|
|
1436
|
-
else {
|
|
1437
|
-
vueImport$9 = Vue$1;
|
|
1438
|
-
}
|
|
1439
|
-
var PalettesDirective = /** @__PURE__ @class */ (function (_super) {
|
|
1440
|
-
__extends$10(PalettesDirective, _super);
|
|
1441
|
-
function PalettesDirective() {
|
|
1442
|
-
return _super.call(this, arguments) || this;
|
|
1443
|
-
}
|
|
1444
|
-
PalettesDirective.prototype.render = function (createElement) {
|
|
979
|
+
var PalettesDirective = vueDefineComponent({
|
|
980
|
+
inject: { custom: { default: null } },
|
|
981
|
+
render: function (createElement) {
|
|
1445
982
|
if (!isExecute) {
|
|
1446
983
|
var h = !isExecute ? gh : createElement;
|
|
1447
984
|
var slots = null;
|
|
@@ -1451,31 +988,22 @@ var PalettesDirective = /** @__PURE__ @class */ (function (_super) {
|
|
|
1451
988
|
return h('div', { class: 'e-directive' }, slots);
|
|
1452
989
|
}
|
|
1453
990
|
return;
|
|
1454
|
-
}
|
|
1455
|
-
|
|
991
|
+
},
|
|
992
|
+
updated: function () {
|
|
1456
993
|
if (!isExecute && this.custom) {
|
|
1457
994
|
this.custom();
|
|
1458
995
|
}
|
|
1459
|
-
}
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
inject: {
|
|
1467
|
-
custom: {
|
|
1468
|
-
default: null
|
|
1469
|
-
}
|
|
1470
|
-
}
|
|
1471
|
-
})
|
|
1472
|
-
], PalettesDirective);
|
|
1473
|
-
return PalettesDirective;
|
|
1474
|
-
}(vueImport$9));
|
|
996
|
+
},
|
|
997
|
+
methods: {
|
|
998
|
+
getTag: function () {
|
|
999
|
+
return 'e-palettes';
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
});
|
|
1475
1003
|
var PalettesPlugin = {
|
|
1476
1004
|
name: 'e-palettes',
|
|
1477
|
-
install: function (Vue
|
|
1478
|
-
Vue
|
|
1005
|
+
install: function (Vue) {
|
|
1006
|
+
Vue.component(PalettesPlugin.name, PalettesDirective);
|
|
1479
1007
|
}
|
|
1480
1008
|
};
|
|
1481
1009
|
/**
|
|
@@ -1485,49 +1013,23 @@ var PalettesPlugin = {
|
|
|
1485
1013
|
* <e-palettes><e-palette></e-palette><e-palettes>
|
|
1486
1014
|
* ```
|
|
1487
1015
|
*/
|
|
1488
|
-
var PaletteDirective =
|
|
1489
|
-
|
|
1490
|
-
function PaletteDirective() {
|
|
1491
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
1492
|
-
}
|
|
1493
|
-
PaletteDirective.prototype.render = function () {
|
|
1016
|
+
var PaletteDirective = vueDefineComponent({
|
|
1017
|
+
render: function () {
|
|
1494
1018
|
return;
|
|
1495
|
-
}
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
return PaletteDirective;
|
|
1503
|
-
}(vueImport$9));
|
|
1019
|
+
},
|
|
1020
|
+
methods: {
|
|
1021
|
+
getTag: function () {
|
|
1022
|
+
return 'e-palette';
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1025
|
+
});
|
|
1504
1026
|
var PalettePlugin = {
|
|
1505
1027
|
name: 'e-palette',
|
|
1506
|
-
install: function (Vue
|
|
1507
|
-
Vue
|
|
1028
|
+
install: function (Vue) {
|
|
1029
|
+
Vue.component(PalettePlugin.name, PaletteDirective);
|
|
1508
1030
|
}
|
|
1509
1031
|
};
|
|
1510
1032
|
|
|
1511
|
-
var __extends$11 = (undefined && undefined.__extends) || (function () {
|
|
1512
|
-
var extendStatics = function (d, b) {
|
|
1513
|
-
extendStatics = Object.setPrototypeOf ||
|
|
1514
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
1515
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
1516
|
-
return extendStatics(d, b);
|
|
1517
|
-
};
|
|
1518
|
-
return function (d, b) {
|
|
1519
|
-
extendStatics(d, b);
|
|
1520
|
-
function __() { this.constructor = d; }
|
|
1521
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1522
|
-
};
|
|
1523
|
-
})();
|
|
1524
|
-
var __decorate$11 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1525
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1526
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1527
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1528
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1529
|
-
};
|
|
1530
|
-
// {{VueImport}}
|
|
1531
1033
|
var properties$1 = ['isLazyUpdate', 'plugins', 'accessKey', 'allowDrag', 'connectorDefaults', 'enableAnimation', 'enablePersistence', 'enableRtl', 'enableSearch', 'expandMode', 'filterSymbols', 'getConnectorDefaults', 'getNodeDefaults', 'getSymbolInfo', 'getSymbolTemplate', 'height', 'ignoreSymbolsOnSearch', 'locale', 'nodeDefaults', 'palettes', 'symbolDragSize', 'symbolHeight', 'symbolInfo', 'symbolMargin', 'symbolPreview', 'symbolWidth', 'width', 'paletteExpanding', 'paletteSelectionChange'];
|
|
1532
1034
|
var modelProps$1 = [];
|
|
1533
1035
|
var testProp$1 = getProps({ props: properties$1 });
|
|
@@ -1545,142 +1047,116 @@ for (var _i$1 = 0, modelProps_1$1 = modelProps$1; _i$1 < modelProps_1$1.length;
|
|
|
1545
1047
|
* <ej-symbol-palette></ej-symbol-palette>
|
|
1546
1048
|
* ```
|
|
1547
1049
|
*/
|
|
1548
|
-
var SymbolPaletteComponent =
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1050
|
+
var SymbolPaletteComponent = vueDefineComponent({
|
|
1051
|
+
name: 'SymbolPaletteComponent',
|
|
1052
|
+
mixins: [ComponentBase],
|
|
1053
|
+
props: props$1,
|
|
1054
|
+
watch: watch$1,
|
|
1055
|
+
emits: emitProbs$1,
|
|
1056
|
+
provide: function () { return { custom: this.custom }; },
|
|
1057
|
+
data: function () {
|
|
1058
|
+
return {
|
|
1059
|
+
ej2Instances: new SymbolPalette({}),
|
|
1060
|
+
propKeys: properties$1,
|
|
1061
|
+
models: modelProps$1,
|
|
1062
|
+
hasChildDirective: true,
|
|
1063
|
+
hasInjectedModules: true,
|
|
1064
|
+
tagMapper: { "e-palettes": "e-palette" },
|
|
1065
|
+
tagNameMapper: {},
|
|
1066
|
+
isVue3: !isExecute,
|
|
1067
|
+
templateCollection: {},
|
|
1068
|
+
};
|
|
1069
|
+
},
|
|
1070
|
+
created: function () {
|
|
1071
|
+
this.bindProperties();
|
|
1072
|
+
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
|
|
1073
|
+
this.ej2Instances.setProperties = this.setProperties;
|
|
1074
|
+
this.ej2Instances.clearTemplate = this.clearTemplate;
|
|
1075
|
+
this.updated = this.updated;
|
|
1076
|
+
},
|
|
1077
|
+
render: function (createElement) {
|
|
1078
|
+
var h = !isExecute ? gh : createElement;
|
|
1079
|
+
var slots = null;
|
|
1080
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
1081
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
1570
1082
|
}
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1083
|
+
return h('div', slots);
|
|
1084
|
+
},
|
|
1085
|
+
methods: {
|
|
1086
|
+
clearTemplate: function (templateNames) {
|
|
1087
|
+
if (!templateNames) {
|
|
1088
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
1089
|
+
}
|
|
1090
|
+
if (templateNames.length && this.templateCollection) {
|
|
1091
|
+
for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
|
|
1092
|
+
var tempName = templateNames_1[_i];
|
|
1093
|
+
var elementCollection = this.templateCollection[tempName];
|
|
1094
|
+
if (elementCollection && elementCollection.length) {
|
|
1095
|
+
for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
|
|
1096
|
+
var ele = elementCollection_1[_a];
|
|
1097
|
+
var destroy = getValue('__vue__.$destroy', ele);
|
|
1098
|
+
if (destroy) {
|
|
1099
|
+
ele.__vue__.$destroy();
|
|
1100
|
+
}
|
|
1101
|
+
if (ele.innerHTML) {
|
|
1102
|
+
ele.innerHTML = '';
|
|
1103
|
+
}
|
|
1584
1104
|
}
|
|
1105
|
+
delete this.templateCollection[tempName];
|
|
1585
1106
|
}
|
|
1586
|
-
delete this.templateCollection[tempName];
|
|
1587
1107
|
}
|
|
1588
1108
|
}
|
|
1589
|
-
}
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1109
|
+
},
|
|
1110
|
+
setProperties: function (prop, muteOnChange) {
|
|
1111
|
+
var _this = this;
|
|
1112
|
+
if (this.isVue3) {
|
|
1113
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
1114
|
+
}
|
|
1115
|
+
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
1116
|
+
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
1117
|
+
}
|
|
1118
|
+
if (prop && this.models && this.models.length) {
|
|
1119
|
+
Object.keys(prop).map(function (key) {
|
|
1120
|
+
_this.models.map(function (model) {
|
|
1121
|
+
if ((key === model) && !(/datasource/i.test(key))) {
|
|
1122
|
+
if (_this.isVue3) {
|
|
1123
|
+
_this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
1124
|
+
}
|
|
1125
|
+
else {
|
|
1126
|
+
_this.$emit('update:' + key, prop[key]);
|
|
1127
|
+
_this.$emit('modelchanged', prop[key]);
|
|
1128
|
+
}
|
|
1609
1129
|
}
|
|
1610
|
-
}
|
|
1130
|
+
});
|
|
1611
1131
|
});
|
|
1612
|
-
});
|
|
1613
|
-
}
|
|
1614
|
-
};
|
|
1615
|
-
SymbolPaletteComponent.prototype.render = function (createElement) {
|
|
1616
|
-
var h = !isExecute ? gh : createElement;
|
|
1617
|
-
var slots = null;
|
|
1618
|
-
if (!isNullOrUndefined(this.$slots.default)) {
|
|
1619
|
-
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
1620
|
-
}
|
|
1621
|
-
return h('div', slots);
|
|
1622
|
-
};
|
|
1623
|
-
SymbolPaletteComponent.prototype.custom = function () {
|
|
1624
|
-
this.updated();
|
|
1625
|
-
};
|
|
1626
|
-
SymbolPaletteComponent.prototype.addPaletteItem = function (paletteName, paletteSymbol, isChild) {
|
|
1627
|
-
return this.ej2Instances.addPaletteItem(paletteName, paletteSymbol, isChild);
|
|
1628
|
-
};
|
|
1629
|
-
SymbolPaletteComponent.prototype.addPalettes = function (palettes) {
|
|
1630
|
-
return this.ej2Instances.addPalettes(palettes);
|
|
1631
|
-
};
|
|
1632
|
-
SymbolPaletteComponent.prototype.removePaletteItem = function (paletteName, symbolId) {
|
|
1633
|
-
return this.ej2Instances.removePaletteItem(paletteName, symbolId);
|
|
1634
|
-
};
|
|
1635
|
-
SymbolPaletteComponent.prototype.removePalettes = function (palettes) {
|
|
1636
|
-
return this.ej2Instances.removePalettes(palettes);
|
|
1637
|
-
};
|
|
1638
|
-
SymbolPaletteComponent = __decorate$11([
|
|
1639
|
-
EJComponentDecorator({
|
|
1640
|
-
props: properties$1
|
|
1641
|
-
}, isExecute)
|
|
1642
|
-
,Options({
|
|
1643
|
-
props: props,
|
|
1644
|
-
watch: watch,
|
|
1645
|
-
emits: emitProbs,
|
|
1646
|
-
provide: function provide() {
|
|
1647
|
-
return {
|
|
1648
|
-
custom: this.custom
|
|
1649
|
-
};
|
|
1650
1132
|
}
|
|
1651
|
-
}
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
}
|
|
1133
|
+
},
|
|
1134
|
+
custom: function () {
|
|
1135
|
+
this.updated();
|
|
1136
|
+
},
|
|
1137
|
+
addPaletteItem: function (paletteName, paletteSymbol, isChild) {
|
|
1138
|
+
return this.ej2Instances.addPaletteItem(paletteName, paletteSymbol, isChild);
|
|
1139
|
+
},
|
|
1140
|
+
addPalettes: function (palettes) {
|
|
1141
|
+
return this.ej2Instances.addPalettes(palettes);
|
|
1142
|
+
},
|
|
1143
|
+
removePaletteItem: function (paletteName, symbolId) {
|
|
1144
|
+
return this.ej2Instances.removePaletteItem(paletteName, symbolId);
|
|
1145
|
+
},
|
|
1146
|
+
removePalettes: function (palettes) {
|
|
1147
|
+
return this.ej2Instances.removePalettes(palettes);
|
|
1148
|
+
},
|
|
1149
|
+
}
|
|
1150
|
+
});
|
|
1655
1151
|
var SymbolPalettePlugin = {
|
|
1656
1152
|
name: 'ejs-symbolpalette',
|
|
1657
|
-
install: function (Vue
|
|
1658
|
-
Vue
|
|
1659
|
-
Vue
|
|
1660
|
-
Vue
|
|
1153
|
+
install: function (Vue) {
|
|
1154
|
+
Vue.component(SymbolPalettePlugin.name, SymbolPaletteComponent);
|
|
1155
|
+
Vue.component(PalettePlugin.name, PaletteDirective);
|
|
1156
|
+
Vue.component(PalettesPlugin.name, PalettesDirective);
|
|
1661
1157
|
}
|
|
1662
1158
|
};
|
|
1663
1159
|
|
|
1664
|
-
var __extends$12 = (undefined && undefined.__extends) || (function () {
|
|
1665
|
-
var extendStatics = function (d, b) {
|
|
1666
|
-
extendStatics = Object.setPrototypeOf ||
|
|
1667
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
1668
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
1669
|
-
return extendStatics(d, b);
|
|
1670
|
-
};
|
|
1671
|
-
return function (d, b) {
|
|
1672
|
-
extendStatics(d, b);
|
|
1673
|
-
function __() { this.constructor = d; }
|
|
1674
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
1675
|
-
};
|
|
1676
|
-
})();
|
|
1677
|
-
var __decorate$12 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1678
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1679
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1680
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1681
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1682
|
-
};
|
|
1683
|
-
// {{VueImport}}
|
|
1684
1160
|
var properties$2 = ['isLazyUpdate', 'plugins', 'enablePersistence', 'enableRtl', 'height', 'locale', 'sourceID', 'width', 'created'];
|
|
1685
1161
|
var modelProps$2 = [];
|
|
1686
1162
|
var testProp$2 = getProps({ props: properties$2 });
|
|
@@ -1698,108 +1174,102 @@ for (var _i$2 = 0, modelProps_1$2 = modelProps$2; _i$2 < modelProps_1$2.length;
|
|
|
1698
1174
|
* <ej-overview></ej-overview>
|
|
1699
1175
|
* ```
|
|
1700
1176
|
*/
|
|
1701
|
-
var OverviewComponent =
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1177
|
+
var OverviewComponent = vueDefineComponent({
|
|
1178
|
+
name: 'OverviewComponent',
|
|
1179
|
+
mixins: [ComponentBase],
|
|
1180
|
+
props: props$2,
|
|
1181
|
+
watch: watch$2,
|
|
1182
|
+
emits: emitProbs$2,
|
|
1183
|
+
provide: function () { return { custom: this.custom }; },
|
|
1184
|
+
data: function () {
|
|
1185
|
+
return {
|
|
1186
|
+
ej2Instances: new Overview({}),
|
|
1187
|
+
propKeys: properties$2,
|
|
1188
|
+
models: modelProps$2,
|
|
1189
|
+
hasChildDirective: true,
|
|
1190
|
+
hasInjectedModules: false,
|
|
1191
|
+
tagMapper: {},
|
|
1192
|
+
tagNameMapper: {},
|
|
1193
|
+
isVue3: !isExecute,
|
|
1194
|
+
templateCollection: {},
|
|
1195
|
+
};
|
|
1196
|
+
},
|
|
1197
|
+
created: function () {
|
|
1198
|
+
this.bindProperties();
|
|
1199
|
+
this.ej2Instances._setProperties = this.ej2Instances.setProperties;
|
|
1200
|
+
this.ej2Instances.setProperties = this.setProperties;
|
|
1201
|
+
this.ej2Instances.clearTemplate = this.clearTemplate;
|
|
1202
|
+
this.updated = this.updated;
|
|
1203
|
+
},
|
|
1204
|
+
render: function (createElement) {
|
|
1205
|
+
var h = !isExecute ? gh : createElement;
|
|
1206
|
+
var slots = null;
|
|
1207
|
+
if (!isNullOrUndefined(this.$slots.default)) {
|
|
1208
|
+
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
1723
1209
|
}
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1210
|
+
return h('div', slots);
|
|
1211
|
+
},
|
|
1212
|
+
methods: {
|
|
1213
|
+
clearTemplate: function (templateNames) {
|
|
1214
|
+
if (!templateNames) {
|
|
1215
|
+
templateNames = Object.keys(this.templateCollection || {});
|
|
1216
|
+
}
|
|
1217
|
+
if (templateNames.length && this.templateCollection) {
|
|
1218
|
+
for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
|
|
1219
|
+
var tempName = templateNames_1[_i];
|
|
1220
|
+
var elementCollection = this.templateCollection[tempName];
|
|
1221
|
+
if (elementCollection && elementCollection.length) {
|
|
1222
|
+
for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
|
|
1223
|
+
var ele = elementCollection_1[_a];
|
|
1224
|
+
var destroy = getValue('__vue__.$destroy', ele);
|
|
1225
|
+
if (destroy) {
|
|
1226
|
+
ele.__vue__.$destroy();
|
|
1227
|
+
}
|
|
1228
|
+
if (ele.innerHTML) {
|
|
1229
|
+
ele.innerHTML = '';
|
|
1230
|
+
}
|
|
1737
1231
|
}
|
|
1232
|
+
delete this.templateCollection[tempName];
|
|
1738
1233
|
}
|
|
1739
|
-
delete this.templateCollection[tempName];
|
|
1740
1234
|
}
|
|
1741
1235
|
}
|
|
1742
|
-
}
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1236
|
+
},
|
|
1237
|
+
setProperties: function (prop, muteOnChange) {
|
|
1238
|
+
var _this = this;
|
|
1239
|
+
if (this.isVue3) {
|
|
1240
|
+
this.models = !this.models ? this.ej2Instances.referModels : this.models;
|
|
1241
|
+
}
|
|
1242
|
+
if (this.ej2Instances && this.ej2Instances._setProperties) {
|
|
1243
|
+
this.ej2Instances._setProperties(prop, muteOnChange);
|
|
1244
|
+
}
|
|
1245
|
+
if (prop && this.models && this.models.length) {
|
|
1246
|
+
Object.keys(prop).map(function (key) {
|
|
1247
|
+
_this.models.map(function (model) {
|
|
1248
|
+
if ((key === model) && !(/datasource/i.test(key))) {
|
|
1249
|
+
if (_this.isVue3) {
|
|
1250
|
+
_this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
|
|
1251
|
+
}
|
|
1252
|
+
else {
|
|
1253
|
+
_this.$emit('update:' + key, prop[key]);
|
|
1254
|
+
_this.$emit('modelchanged', prop[key]);
|
|
1255
|
+
}
|
|
1762
1256
|
}
|
|
1763
|
-
}
|
|
1257
|
+
});
|
|
1764
1258
|
});
|
|
1765
|
-
});
|
|
1766
|
-
}
|
|
1767
|
-
};
|
|
1768
|
-
OverviewComponent.prototype.render = function (createElement) {
|
|
1769
|
-
var h = !isExecute ? gh : createElement;
|
|
1770
|
-
var slots = null;
|
|
1771
|
-
if (!isNullOrUndefined(this.$slots.default)) {
|
|
1772
|
-
slots = !isExecute ? this.$slots.default() : this.$slots.default;
|
|
1773
|
-
}
|
|
1774
|
-
return h('div', slots);
|
|
1775
|
-
};
|
|
1776
|
-
OverviewComponent.prototype.custom = function () {
|
|
1777
|
-
this.updated();
|
|
1778
|
-
};
|
|
1779
|
-
OverviewComponent.prototype.updateHtmlLayer = function (view) {
|
|
1780
|
-
return this.ej2Instances.updateHtmlLayer(view);
|
|
1781
|
-
};
|
|
1782
|
-
OverviewComponent = __decorate$12([
|
|
1783
|
-
EJComponentDecorator({
|
|
1784
|
-
props: properties$2
|
|
1785
|
-
}, isExecute)
|
|
1786
|
-
,Options({
|
|
1787
|
-
props: props,
|
|
1788
|
-
watch: watch,
|
|
1789
|
-
emits: emitProbs,
|
|
1790
|
-
provide: function provide() {
|
|
1791
|
-
return {
|
|
1792
|
-
custom: this.custom
|
|
1793
|
-
};
|
|
1794
1259
|
}
|
|
1795
|
-
}
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
}
|
|
1260
|
+
},
|
|
1261
|
+
custom: function () {
|
|
1262
|
+
this.updated();
|
|
1263
|
+
},
|
|
1264
|
+
updateHtmlLayer: function (view) {
|
|
1265
|
+
return this.ej2Instances.updateHtmlLayer(view);
|
|
1266
|
+
},
|
|
1267
|
+
}
|
|
1268
|
+
});
|
|
1799
1269
|
var OverviewPlugin = {
|
|
1800
1270
|
name: 'ejs-overview',
|
|
1801
|
-
install: function (Vue
|
|
1802
|
-
Vue
|
|
1271
|
+
install: function (Vue) {
|
|
1272
|
+
Vue.component(OverviewPlugin.name, OverviewComponent);
|
|
1803
1273
|
}
|
|
1804
1274
|
};
|
|
1805
1275
|
|