@riil-frontend/component-topology 13.0.0-dev.4 → 13.0.0-dev.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.
@@ -129,7 +129,7 @@ var Topology = function Topology(props) {
129
129
  topo.selectionModel.init();
130
130
  var htHistoryManager = topo.getDataModel().getHistoryManager();
131
131
 
132
- if (isEditMode && htHistoryManager) {
132
+ if (topo.store.getState().topoMod.viewState === 'edit' && htHistoryManager) {
133
133
  topo.historyManager = new HistoryManager(topo, htHistoryManager);
134
134
  topo.historyManager.clear();
135
135
  rlog.info('TopoView.handleGraphDataLoaded: 初始化HistoryManager ', topo.historyManager.toString());
@@ -24,7 +24,7 @@ import ElementTagTipConfig from "./tagstips/ElementTagTipConfig";
24
24
  import SelectionModel from "./SelectionModel";
25
25
  import CiCache from "./cache/CiCache"; // eslint-disable-next-line no-undef
26
26
 
27
- var version = typeof "13.0.0-dev.4" === 'string' ? "13.0.0-dev.4" : null;
27
+ var version = typeof "13.0.0-dev.6" === 'string' ? "13.0.0-dev.6" : null;
28
28
  console.info("\u62D3\u6251\u7248\u672C: " + version);
29
29
  /**
30
30
  * 拓扑显示和编辑
@@ -167,7 +167,7 @@ var Topology = function Topology(props) {
167
167
  topo.selectionModel.init();
168
168
  var htHistoryManager = topo.getDataModel().getHistoryManager();
169
169
 
170
- if (isEditMode && htHistoryManager) {
170
+ if (topo.store.getState().topoMod.viewState === 'edit' && htHistoryManager) {
171
171
  topo.historyManager = new _HistoryManager["default"](topo, htHistoryManager);
172
172
  topo.historyManager.clear();
173
173
  rlog.info('TopoView.handleGraphDataLoaded: 初始化HistoryManager ', topo.historyManager.toString());
@@ -54,7 +54,7 @@ var _SelectionModel = _interopRequireDefault(require("./SelectionModel"));
54
54
  var _CiCache = _interopRequireDefault(require("./cache/CiCache"));
55
55
 
56
56
  // eslint-disable-next-line no-undef
57
- var version = typeof "13.0.0-dev.4" === 'string' ? "13.0.0-dev.4" : null;
57
+ var version = typeof "13.0.0-dev.6" === 'string' ? "13.0.0-dev.6" : null;
58
58
  console.info("\u62D3\u6251\u7248\u672C: " + version);
59
59
  /**
60
60
  * 拓扑显示和编辑
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riil-frontend/component-topology",
3
- "version": "13.0.0-dev.4",
3
+ "version": "13.0.0-dev.6",
4
4
  "description": "拓扑",
5
5
  "scripts": {
6
6
  "start": "build-scripts start",
@@ -123,6 +123,6 @@
123
123
  "access": "public"
124
124
  },
125
125
  "license": "MIT",
126
- "homepage": "https://unpkg.com/@riil-frontend/component-topology@13.0.0-dev.4/build/index.html",
126
+ "homepage": "https://unpkg.com/@riil-frontend/component-topology@13.0.0-dev.6/build/index.html",
127
127
  "gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
128
128
  }