@next-bricks/diagram 0.57.2 → 0.57.3
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/dist/bricks.json +3 -3
- package/dist/chunks/9024.5b38eea3.js +2 -0
- package/dist/chunks/{9024.0a48a95e.js.map → 9024.5b38eea3.js.map} +1 -1
- package/dist/chunks/{main.4613f015.js → main.fe69dbee.js} +2 -2
- package/dist/chunks/{main.4613f015.js.map → main.fe69dbee.js.map} +1 -1
- package/dist/examples.json +5 -5
- package/dist/{index.58cf665c.js → index.1439c846.js} +2 -2
- package/dist/{index.58cf665c.js.map → index.1439c846.js.map} +1 -1
- package/dist/manifest.json +205 -205
- package/dist/types.json +4056 -4056
- package/package.json +2 -2
- package/dist/chunks/9024.0a48a95e.js +0 -2
package/dist/manifest.json
CHANGED
|
@@ -3,6 +3,46 @@
|
|
|
3
3
|
"package": "@next-bricks/diagram",
|
|
4
4
|
"name": "diagram",
|
|
5
5
|
"bricks": [
|
|
6
|
+
{
|
|
7
|
+
"name": "diagram.editable-label",
|
|
8
|
+
"properties": [
|
|
9
|
+
{
|
|
10
|
+
"name": "label",
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name": "type",
|
|
15
|
+
"type": "LabelType"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "readOnly",
|
|
19
|
+
"type": "boolean"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"events": [
|
|
23
|
+
{
|
|
24
|
+
"name": "label.editing.change",
|
|
25
|
+
"detail": {
|
|
26
|
+
"type": "boolean"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "label.change",
|
|
31
|
+
"detail": {
|
|
32
|
+
"type": "string"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"slots": [],
|
|
37
|
+
"methods": [
|
|
38
|
+
{
|
|
39
|
+
"name": "enableEditing",
|
|
40
|
+
"params": []
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"parts": [],
|
|
44
|
+
"description": "构件 `diagram.editable-label`"
|
|
45
|
+
},
|
|
6
46
|
{
|
|
7
47
|
"name": "eo-diagram",
|
|
8
48
|
"properties": [
|
|
@@ -138,211 +178,6 @@
|
|
|
138
178
|
"parts": [],
|
|
139
179
|
"description": "构件 `eo-diagram`"
|
|
140
180
|
},
|
|
141
|
-
{
|
|
142
|
-
"name": "diagram.editable-label",
|
|
143
|
-
"properties": [
|
|
144
|
-
{
|
|
145
|
-
"name": "label",
|
|
146
|
-
"type": "string"
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
"name": "type",
|
|
150
|
-
"type": "LabelType"
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
"name": "readOnly",
|
|
154
|
-
"type": "boolean"
|
|
155
|
-
}
|
|
156
|
-
],
|
|
157
|
-
"events": [
|
|
158
|
-
{
|
|
159
|
-
"name": "label.editing.change",
|
|
160
|
-
"detail": {
|
|
161
|
-
"type": "boolean"
|
|
162
|
-
}
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
"name": "label.change",
|
|
166
|
-
"detail": {
|
|
167
|
-
"type": "string"
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
],
|
|
171
|
-
"slots": [],
|
|
172
|
-
"methods": [
|
|
173
|
-
{
|
|
174
|
-
"name": "enableEditing",
|
|
175
|
-
"params": []
|
|
176
|
-
}
|
|
177
|
-
],
|
|
178
|
-
"parts": [],
|
|
179
|
-
"description": "构件 `diagram.editable-label`"
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
"name": "diagram.experimental-node",
|
|
183
|
-
"properties": [
|
|
184
|
-
{
|
|
185
|
-
"name": "usage",
|
|
186
|
-
"type": "ExperimentalUsage"
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
"name": "status",
|
|
190
|
-
"type": "NodeStatus"
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
"name": "decorator",
|
|
194
|
-
"type": "DecoratorType"
|
|
195
|
-
}
|
|
196
|
-
],
|
|
197
|
-
"events": [
|
|
198
|
-
{
|
|
199
|
-
"name": "drag.start",
|
|
200
|
-
"detail": {
|
|
201
|
-
"type": "PositionTuple"
|
|
202
|
-
}
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
"name": "drag.move",
|
|
206
|
-
"detail": {
|
|
207
|
-
"type": "PositionTuple"
|
|
208
|
-
}
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
"name": "drag.end",
|
|
212
|
-
"detail": {
|
|
213
|
-
"type": "PositionTuple"
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
],
|
|
217
|
-
"slots": [],
|
|
218
|
-
"methods": [],
|
|
219
|
-
"parts": [],
|
|
220
|
-
"description": "构件 `diagram.experimental-node`"
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
"name": "eo-display-canvas",
|
|
224
|
-
"properties": [
|
|
225
|
-
{
|
|
226
|
-
"name": "cells",
|
|
227
|
-
"description": "用于查看的画布可以更新 `cells` 属性。",
|
|
228
|
-
"attribute": false,
|
|
229
|
-
"type": "InitialCell[]"
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
"name": "layout",
|
|
233
|
-
"type": "LayoutType"
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
"name": "layoutOptions",
|
|
237
|
-
"attribute": false,
|
|
238
|
-
"type": "LayoutOptions"
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
"name": "defaultNodeSize",
|
|
242
|
-
"attribute": false,
|
|
243
|
-
"type": "SizeTuple",
|
|
244
|
-
"default": "[DEFAULT_NODE_SIZE, DEFAULT_NODE_SIZE]"
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
"name": "defaultNodeBricks",
|
|
248
|
-
"attribute": false,
|
|
249
|
-
"type": "NodeBrickConf[]"
|
|
250
|
-
},
|
|
251
|
-
{
|
|
252
|
-
"name": "degradedThreshold",
|
|
253
|
-
"description": "当节点数量达到或超过 `degradedThreshold` 时,节点将被降级展示。",
|
|
254
|
-
"default": "500",
|
|
255
|
-
"type": "number"
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
"name": "degradedNodeLabel",
|
|
259
|
-
"description": "设置节点将降级展示时显示的名称。",
|
|
260
|
-
"default": "\"<% DATA.node.id %>\"",
|
|
261
|
-
"attribute": false,
|
|
262
|
-
"type": "string"
|
|
263
|
-
},
|
|
264
|
-
{
|
|
265
|
-
"name": "defaultEdgeLines",
|
|
266
|
-
"description": "使用条件判断设置默认的边对应的连线。在 `if` 表达式中 `DATA` 为 `{ edge }`,例如:\n\n```yaml\ndefaultEdgeLines:\n - if: <% DATA.edge.data?.virtual %>\n dashed: true\n```",
|
|
267
|
-
"attribute": false,
|
|
268
|
-
"type": "EdgeLineConf[]"
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
"name": "activeTarget",
|
|
272
|
-
"attribute": false,
|
|
273
|
-
"type": "ActiveTarget | null"
|
|
274
|
-
},
|
|
275
|
-
{
|
|
276
|
-
"name": "fadeUnrelatedCells",
|
|
277
|
-
"description": "当鼠标悬浮到某节点上时,隐藏其他跟该节点无关的元素。",
|
|
278
|
-
"type": "boolean"
|
|
279
|
-
},
|
|
280
|
-
{
|
|
281
|
-
"name": "zoomable",
|
|
282
|
-
"type": "boolean",
|
|
283
|
-
"default": "true"
|
|
284
|
-
},
|
|
285
|
-
{
|
|
286
|
-
"name": "scrollable",
|
|
287
|
-
"type": "boolean",
|
|
288
|
-
"default": "true"
|
|
289
|
-
},
|
|
290
|
-
{
|
|
291
|
-
"name": "pannable",
|
|
292
|
-
"type": "boolean",
|
|
293
|
-
"default": "true"
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
"name": "scaleRange",
|
|
297
|
-
"attribute": false,
|
|
298
|
-
"type": "RangeTuple"
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
"name": "hideZoomBar",
|
|
302
|
-
"description": "隐藏右下角放大缩小的控制栏",
|
|
303
|
-
"type": "boolean"
|
|
304
|
-
},
|
|
305
|
-
{
|
|
306
|
-
"name": "autoCenterWhenCellsChange",
|
|
307
|
-
"description": "每当 cells 改变时,重新自动居中",
|
|
308
|
-
"type": "boolean"
|
|
309
|
-
},
|
|
310
|
-
{
|
|
311
|
-
"name": "doNotResetActiveTargetForSelector",
|
|
312
|
-
"description": "选择器,点击该选择器对应的元素时不重置 `activeTarget`。",
|
|
313
|
-
"type": "string"
|
|
314
|
-
},
|
|
315
|
-
{
|
|
316
|
-
"name": "doNotResetActiveTargetOutsideCanvas",
|
|
317
|
-
"description": "在画布外点击时不重置 `activeTarget`。",
|
|
318
|
-
"type": "boolean"
|
|
319
|
-
}
|
|
320
|
-
],
|
|
321
|
-
"events": [
|
|
322
|
-
{
|
|
323
|
-
"name": "activeTarget.change",
|
|
324
|
-
"detail": {
|
|
325
|
-
"type": "ActiveTarget | null"
|
|
326
|
-
}
|
|
327
|
-
},
|
|
328
|
-
{
|
|
329
|
-
"name": "cell.contextmenu",
|
|
330
|
-
"detail": {
|
|
331
|
-
"type": "CellContextMenuDetail"
|
|
332
|
-
}
|
|
333
|
-
},
|
|
334
|
-
{
|
|
335
|
-
"name": "cell.click",
|
|
336
|
-
"detail": {
|
|
337
|
-
"type": "CellContextMenuDetail"
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
],
|
|
341
|
-
"slots": [],
|
|
342
|
-
"methods": [],
|
|
343
|
-
"parts": [],
|
|
344
|
-
"description": "用于展示查看的画布。"
|
|
345
|
-
},
|
|
346
181
|
{
|
|
347
182
|
"name": "eo-draw-canvas",
|
|
348
183
|
"properties": [
|
|
@@ -644,6 +479,171 @@
|
|
|
644
479
|
],
|
|
645
480
|
"parts": [],
|
|
646
481
|
"description": "用于手工绘图的画布。\n\n注意:将配套另外一个用于展示的画布构件。"
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"name": "diagram.experimental-node",
|
|
485
|
+
"properties": [
|
|
486
|
+
{
|
|
487
|
+
"name": "usage",
|
|
488
|
+
"type": "ExperimentalUsage"
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
"name": "status",
|
|
492
|
+
"type": "NodeStatus"
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
"name": "decorator",
|
|
496
|
+
"type": "DecoratorType"
|
|
497
|
+
}
|
|
498
|
+
],
|
|
499
|
+
"events": [
|
|
500
|
+
{
|
|
501
|
+
"name": "drag.start",
|
|
502
|
+
"detail": {
|
|
503
|
+
"type": "PositionTuple"
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
"name": "drag.move",
|
|
508
|
+
"detail": {
|
|
509
|
+
"type": "PositionTuple"
|
|
510
|
+
}
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
"name": "drag.end",
|
|
514
|
+
"detail": {
|
|
515
|
+
"type": "PositionTuple"
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
],
|
|
519
|
+
"slots": [],
|
|
520
|
+
"methods": [],
|
|
521
|
+
"parts": [],
|
|
522
|
+
"description": "构件 `diagram.experimental-node`"
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
"name": "eo-display-canvas",
|
|
526
|
+
"properties": [
|
|
527
|
+
{
|
|
528
|
+
"name": "cells",
|
|
529
|
+
"description": "用于查看的画布可以更新 `cells` 属性。",
|
|
530
|
+
"attribute": false,
|
|
531
|
+
"type": "InitialCell[]"
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
"name": "layout",
|
|
535
|
+
"type": "LayoutType"
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"name": "layoutOptions",
|
|
539
|
+
"attribute": false,
|
|
540
|
+
"type": "LayoutOptions"
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
"name": "defaultNodeSize",
|
|
544
|
+
"attribute": false,
|
|
545
|
+
"type": "SizeTuple",
|
|
546
|
+
"default": "[DEFAULT_NODE_SIZE, DEFAULT_NODE_SIZE]"
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
"name": "defaultNodeBricks",
|
|
550
|
+
"attribute": false,
|
|
551
|
+
"type": "NodeBrickConf[]"
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
"name": "degradedThreshold",
|
|
555
|
+
"description": "当节点数量达到或超过 `degradedThreshold` 时,节点将被降级展示。",
|
|
556
|
+
"default": "500",
|
|
557
|
+
"type": "number"
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
"name": "degradedNodeLabel",
|
|
561
|
+
"description": "设置节点将降级展示时显示的名称。",
|
|
562
|
+
"default": "\"<% DATA.node.id %>\"",
|
|
563
|
+
"attribute": false,
|
|
564
|
+
"type": "string"
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
"name": "defaultEdgeLines",
|
|
568
|
+
"description": "使用条件判断设置默认的边对应的连线。在 `if` 表达式中 `DATA` 为 `{ edge }`,例如:\n\n```yaml\ndefaultEdgeLines:\n - if: <% DATA.edge.data?.virtual %>\n dashed: true\n```",
|
|
569
|
+
"attribute": false,
|
|
570
|
+
"type": "EdgeLineConf[]"
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
"name": "activeTarget",
|
|
574
|
+
"attribute": false,
|
|
575
|
+
"type": "ActiveTarget | null"
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
"name": "fadeUnrelatedCells",
|
|
579
|
+
"description": "当鼠标悬浮到某节点上时,隐藏其他跟该节点无关的元素。",
|
|
580
|
+
"type": "boolean"
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
"name": "zoomable",
|
|
584
|
+
"type": "boolean",
|
|
585
|
+
"default": "true"
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
"name": "scrollable",
|
|
589
|
+
"type": "boolean",
|
|
590
|
+
"default": "true"
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
"name": "pannable",
|
|
594
|
+
"type": "boolean",
|
|
595
|
+
"default": "true"
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"name": "scaleRange",
|
|
599
|
+
"attribute": false,
|
|
600
|
+
"type": "RangeTuple"
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
"name": "hideZoomBar",
|
|
604
|
+
"description": "隐藏右下角放大缩小的控制栏",
|
|
605
|
+
"type": "boolean"
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
"name": "autoCenterWhenCellsChange",
|
|
609
|
+
"description": "每当 cells 改变时,重新自动居中",
|
|
610
|
+
"type": "boolean"
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
"name": "doNotResetActiveTargetForSelector",
|
|
614
|
+
"description": "选择器,点击该选择器对应的元素时不重置 `activeTarget`。",
|
|
615
|
+
"type": "string"
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
"name": "doNotResetActiveTargetOutsideCanvas",
|
|
619
|
+
"description": "在画布外点击时不重置 `activeTarget`。",
|
|
620
|
+
"type": "boolean"
|
|
621
|
+
}
|
|
622
|
+
],
|
|
623
|
+
"events": [
|
|
624
|
+
{
|
|
625
|
+
"name": "activeTarget.change",
|
|
626
|
+
"detail": {
|
|
627
|
+
"type": "ActiveTarget | null"
|
|
628
|
+
}
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
"name": "cell.contextmenu",
|
|
632
|
+
"detail": {
|
|
633
|
+
"type": "CellContextMenuDetail"
|
|
634
|
+
}
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
"name": "cell.click",
|
|
638
|
+
"detail": {
|
|
639
|
+
"type": "CellContextMenuDetail"
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
],
|
|
643
|
+
"slots": [],
|
|
644
|
+
"methods": [],
|
|
645
|
+
"parts": [],
|
|
646
|
+
"description": "用于展示查看的画布。"
|
|
647
647
|
}
|
|
648
648
|
],
|
|
649
649
|
"providers": []
|