@next-bricks/diagram 0.58.1 → 0.58.2
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/9711.17347472.js +2 -0
- package/dist/chunks/{9711.c17794d0.js.map → 9711.17347472.js.map} +1 -1
- package/dist/chunks/{eo-draw-canvas.f4591339.js → eo-draw-canvas.03ad3919.js} +2 -2
- package/dist/chunks/{eo-draw-canvas.f4591339.js.map → eo-draw-canvas.03ad3919.js.map} +1 -1
- package/dist/chunks/{main.1e2e3e8d.js → main.02c645b1.js} +2 -2
- package/dist/chunks/{main.1e2e3e8d.js.map → main.02c645b1.js.map} +1 -1
- package/dist/examples.json +3 -3
- package/dist/{index.cc69f1f0.js → index.d17f194a.js} +2 -2
- package/dist/{index.cc69f1f0.js.map → index.d17f194a.js.map} +1 -1
- package/dist/manifest.json +165 -165
- package/dist/types.json +4705 -4705
- package/package.json +2 -2
- package/dist/chunks/9711.c17794d0.js +0 -2
package/dist/manifest.json
CHANGED
|
@@ -178,6 +178,171 @@
|
|
|
178
178
|
"parts": [],
|
|
179
179
|
"description": "构件 `diagram.editable-label`"
|
|
180
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
|
+
},
|
|
181
346
|
{
|
|
182
347
|
"name": "eo-draw-canvas",
|
|
183
348
|
"properties": [
|
|
@@ -479,171 +644,6 @@
|
|
|
479
644
|
],
|
|
480
645
|
"parts": [],
|
|
481
646
|
"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": []
|