@riil-frontend/component-topology 8.0.5 → 8.0.6
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/build/index.js +1 -1
- package/es/core/models/HistoryManager.js +2 -1
- package/es/core/models/TopoApp.js +14 -12
- package/es/core/store/models/topoMod.js +4 -0
- package/lib/core/models/HistoryManager.js +2 -1
- package/lib/core/models/TopoApp.js +14 -12
- package/lib/core/store/models/topoMod.js +4 -0
- package/package.json +2 -2
@@ -68,7 +68,8 @@ var HistoryManager = /*#__PURE__*/function () {
|
|
68
68
|
var displayConfigProperties = [// 单多链路
|
69
69
|
'expandAllEdges', // 节点标注
|
70
70
|
'nodeLabelStyle', // 画布主题
|
71
|
-
'canvasTheme', 'linkTag', 'linkTip', 'nodeTag', 'nodeTip'
|
71
|
+
'canvasTheme', 'linkTag', 'linkTip', 'nodeTag', 'nodeTip', // @V1.4 网络拓扑特有,待迁移到网络拓扑
|
72
|
+
'autoChangeEdgeWidth', 'autoHideEdgeTag'];
|
72
73
|
var items = [{
|
73
74
|
modelName: 'topoMod',
|
74
75
|
property: 'data'
|
@@ -23,7 +23,7 @@ import topoFactory from "./topoFactory";
|
|
23
23
|
import ElementTagTipConfig from "./tagstips/ElementTagTipConfig";
|
24
24
|
import SelectionModel from "./SelectionModel"; // eslint-disable-next-line no-undef
|
25
25
|
|
26
|
-
var version = typeof "8.0.
|
26
|
+
var version = typeof "8.0.6" === 'string' ? "8.0.6" : null;
|
27
27
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
28
28
|
/**
|
29
29
|
* 拓扑显示和编辑
|
@@ -535,44 +535,46 @@ var Topo = /*#__PURE__*/function () {
|
|
535
535
|
while (1) {
|
536
536
|
switch (_context12.prev = _context12.next) {
|
537
537
|
case 0:
|
538
|
+
rlog.info('TopoApp.enterEditMode');
|
539
|
+
|
538
540
|
if (!this.options.onSwitchToEditModeBegin) {
|
539
|
-
_context12.next =
|
541
|
+
_context12.next = 4;
|
540
542
|
break;
|
541
543
|
}
|
542
544
|
|
543
|
-
_context12.next =
|
545
|
+
_context12.next = 4;
|
544
546
|
return this.options.onSwitchToEditModeBegin(this);
|
545
547
|
|
546
|
-
case
|
548
|
+
case 4:
|
547
549
|
topoDispatchers = this.store.getModelDispatchers('topoMod');
|
548
|
-
_context12.next =
|
550
|
+
_context12.next = 7;
|
549
551
|
return topoDispatchers.update({
|
550
552
|
viewState: 'edit'
|
551
553
|
});
|
552
554
|
|
553
|
-
case
|
554
|
-
_context12.next =
|
555
|
+
case 7:
|
556
|
+
_context12.next = 9;
|
555
557
|
return this.view.switchToEditMode();
|
556
558
|
|
557
|
-
case
|
559
|
+
case 9:
|
558
560
|
updateEdgeExpanded(this);
|
559
561
|
|
560
562
|
if (!this.options.onSwitchToEditMode) {
|
561
|
-
_context12.next =
|
563
|
+
_context12.next = 13;
|
562
564
|
break;
|
563
565
|
}
|
564
566
|
|
565
|
-
_context12.next =
|
567
|
+
_context12.next = 13;
|
566
568
|
return this.options.onSwitchToEditMode(this);
|
567
569
|
|
568
|
-
case
|
570
|
+
case 13:
|
569
571
|
// 更新节点名称显示隐藏
|
570
572
|
this.attributeMetricDisplay.updateNodesNameVisible(); // 加载自定义上传的图标
|
571
573
|
|
572
574
|
iconManageDispatchers = this.store.getModelDispatchers('customIcon');
|
573
575
|
iconManageDispatchers.loadEditorIcons();
|
574
576
|
|
575
|
-
case
|
577
|
+
case 16:
|
576
578
|
case "end":
|
577
579
|
return _context12.stop();
|
578
580
|
}
|
@@ -80,7 +80,8 @@ var HistoryManager = /*#__PURE__*/function () {
|
|
80
80
|
var displayConfigProperties = [// 单多链路
|
81
81
|
'expandAllEdges', // 节点标注
|
82
82
|
'nodeLabelStyle', // 画布主题
|
83
|
-
'canvasTheme', 'linkTag', 'linkTip', 'nodeTag', 'nodeTip'
|
83
|
+
'canvasTheme', 'linkTag', 'linkTip', 'nodeTag', 'nodeTip', // @V1.4 网络拓扑特有,待迁移到网络拓扑
|
84
|
+
'autoChangeEdgeWidth', 'autoHideEdgeTag'];
|
84
85
|
var items = [{
|
85
86
|
modelName: 'topoMod',
|
86
87
|
property: 'data'
|
@@ -54,7 +54,7 @@ var _ElementTagTipConfig = _interopRequireDefault(require("./tagstips/ElementTag
|
|
54
54
|
var _SelectionModel = _interopRequireDefault(require("./SelectionModel"));
|
55
55
|
|
56
56
|
// eslint-disable-next-line no-undef
|
57
|
-
var version = typeof "8.0.
|
57
|
+
var version = typeof "8.0.6" === 'string' ? "8.0.6" : null;
|
58
58
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
59
59
|
/**
|
60
60
|
* 拓扑显示和编辑
|
@@ -566,44 +566,46 @@ var Topo = /*#__PURE__*/function () {
|
|
566
566
|
while (1) {
|
567
567
|
switch (_context12.prev = _context12.next) {
|
568
568
|
case 0:
|
569
|
+
_rlog["default"].info('TopoApp.enterEditMode');
|
570
|
+
|
569
571
|
if (!this.options.onSwitchToEditModeBegin) {
|
570
|
-
_context12.next =
|
572
|
+
_context12.next = 4;
|
571
573
|
break;
|
572
574
|
}
|
573
575
|
|
574
|
-
_context12.next =
|
576
|
+
_context12.next = 4;
|
575
577
|
return this.options.onSwitchToEditModeBegin(this);
|
576
578
|
|
577
|
-
case
|
579
|
+
case 4:
|
578
580
|
topoDispatchers = this.store.getModelDispatchers('topoMod');
|
579
|
-
_context12.next =
|
581
|
+
_context12.next = 7;
|
580
582
|
return topoDispatchers.update({
|
581
583
|
viewState: 'edit'
|
582
584
|
});
|
583
585
|
|
584
|
-
case
|
585
|
-
_context12.next =
|
586
|
+
case 7:
|
587
|
+
_context12.next = 9;
|
586
588
|
return this.view.switchToEditMode();
|
587
589
|
|
588
|
-
case
|
590
|
+
case 9:
|
589
591
|
(0, _edgeUtil.updateEdgeExpanded)(this);
|
590
592
|
|
591
593
|
if (!this.options.onSwitchToEditMode) {
|
592
|
-
_context12.next =
|
594
|
+
_context12.next = 13;
|
593
595
|
break;
|
594
596
|
}
|
595
597
|
|
596
|
-
_context12.next =
|
598
|
+
_context12.next = 13;
|
597
599
|
return this.options.onSwitchToEditMode(this);
|
598
600
|
|
599
|
-
case
|
601
|
+
case 13:
|
600
602
|
// 更新节点名称显示隐藏
|
601
603
|
this.attributeMetricDisplay.updateNodesNameVisible(); // 加载自定义上传的图标
|
602
604
|
|
603
605
|
iconManageDispatchers = this.store.getModelDispatchers('customIcon');
|
604
606
|
iconManageDispatchers.loadEditorIcons();
|
605
607
|
|
606
|
-
case
|
608
|
+
case 16:
|
607
609
|
case "end":
|
608
610
|
return _context12.stop();
|
609
611
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@riil-frontend/component-topology",
|
3
|
-
"version": "8.0.
|
3
|
+
"version": "8.0.6",
|
4
4
|
"description": "拓扑",
|
5
5
|
"scripts": {
|
6
6
|
"start": "build-scripts start",
|
@@ -116,6 +116,6 @@
|
|
116
116
|
"access": "public"
|
117
117
|
},
|
118
118
|
"license": "MIT",
|
119
|
-
"homepage": "https://unpkg.com/@riil-frontend/component-topology@8.0.
|
119
|
+
"homepage": "https://unpkg.com/@riil-frontend/component-topology@8.0.6/build/index.html",
|
120
120
|
"gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
|
121
121
|
}
|