@riil-frontend/component-topology 12.0.1 → 12.1.0-dev.10
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/1.js +1 -1
- package/build/index.js +14 -14
- package/es/core/editor/components/Toolbar/widgets/EdgeColorButton/EdgeColorButton.js +2 -2
- package/es/core/editor/components/Toolbar/widgets/EdgeTypeButton/LineType.js +5 -15
- package/es/core/editor/components/Toolbar/widgets/FontFamilyWidget.js +2 -27
- package/es/core/editor/components/Toolbar/widgets/FontSizeWidget.js +3 -28
- package/es/core/editor/components/Toolbar/widgets/FontStyleButton.js +6 -52
- package/es/core/editor/components/Toolbar/widgets/components/FontFamilySelect.js +29 -0
- package/es/core/editor/components/Toolbar/widgets/components/FontSizeSelect.js +29 -0
- package/es/core/editor/components/Toolbar/widgets/components/FontStyleSelect.js +71 -0
- package/es/core/editor/components/settings/propertyViews/view/GlobalEdgeToggle.js +2 -2
- package/es/core/editor/hooks/useNewElementTheme.js +20 -16
- package/es/core/editor/utils/edgeTypeStyleUtil.js +11 -32
- package/es/core/hooks/usePolling.js +2 -1
- package/es/core/hooks/useTopoEdit.js +169 -235
- package/es/core/models/AttributeMetricDisplay.js +2 -1
- package/es/core/models/HistoryManager.js +11 -9
- package/es/core/models/TopoApp.js +23 -31
- package/es/core/models/utils/linkUtils.js +36 -28
- package/es/core/store/models/topoConfig.js +2 -1
- package/es/core/utils/edgeUtil.js +7 -10
- package/es/core/viewer/components/plugins/ElementDetailDrawer/hooks/useElementDetailManager.js +2 -2
- package/es/networkTopo/models/EdgeGroupTagTipBuilder.js +7 -7
- package/es/networkTopo/models/LinkDynamicStyleExecutor.js +7 -63
- package/es/networkTopo/utils/edgeGroupTagUtil.js +2 -2
- package/es/utils/clusterUtil.js +3 -3
- package/es/utils/htElementUtils.js +16 -84
- package/lib/core/editor/components/Toolbar/widgets/EdgeColorButton/EdgeColorButton.js +2 -2
- package/lib/core/editor/components/Toolbar/widgets/EdgeTypeButton/LineType.js +5 -14
- package/lib/core/editor/components/Toolbar/widgets/FontFamilyWidget.js +3 -28
- package/lib/core/editor/components/Toolbar/widgets/FontSizeWidget.js +3 -28
- package/lib/core/editor/components/Toolbar/widgets/FontStyleButton.js +6 -56
- package/lib/core/editor/components/Toolbar/widgets/components/FontFamilySelect.js +38 -0
- package/lib/core/editor/components/Toolbar/widgets/components/FontSizeSelect.js +38 -0
- package/lib/core/editor/components/Toolbar/widgets/components/FontStyleSelect.js +83 -0
- package/lib/core/editor/components/settings/propertyViews/view/GlobalEdgeToggle.js +2 -2
- package/lib/core/editor/hooks/useNewElementTheme.js +20 -16
- package/lib/core/editor/utils/edgeTypeStyleUtil.js +10 -33
- package/lib/core/hooks/usePolling.js +6 -5
- package/lib/core/hooks/useTopoEdit.js +177 -261
- package/lib/core/models/AttributeMetricDisplay.js +6 -6
- package/lib/core/models/HistoryManager.js +13 -17
- package/lib/core/models/TopoApp.js +22 -29
- package/lib/core/models/utils/linkUtils.js +36 -27
- package/lib/core/store/models/topoConfig.js +9 -16
- package/lib/core/utils/edgeUtil.js +8 -10
- package/lib/core/viewer/components/plugins/ElementDetailDrawer/hooks/useElementDetailManager.js +3 -2
- package/lib/networkTopo/models/EdgeGroupTagTipBuilder.js +6 -6
- package/lib/networkTopo/models/LinkDynamicStyleExecutor.js +6 -64
- package/lib/networkTopo/utils/edgeGroupTagUtil.js +2 -2
- package/lib/utils/clusterUtil.js +2 -2
- package/lib/utils/htElementUtils.js +19 -93
- package/package.json +2 -2
- package/es/networkTopo/models/LinkTagsTipsBuilder.js +0 -235
- package/lib/networkTopo/models/LinkTagsTipsBuilder.js +0 -245
@@ -19,9 +19,7 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/
|
|
19
19
|
|
20
20
|
var _react = _interopRequireWildcard(require("react"));
|
21
21
|
|
22
|
-
var
|
23
|
-
|
24
|
-
var _rlog = _interopRequireDefault(require("@riil-frontend/component-topology-utils/es/rlog"));
|
22
|
+
var _loglevel = _interopRequireDefault(require("loglevel"));
|
25
23
|
|
26
24
|
var _componentTopologyGraph = require("@riil-frontend/component-topology-graph");
|
27
25
|
|
@@ -47,6 +45,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
47
45
|
|
48
46
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
49
47
|
|
48
|
+
var rlog = _loglevel["default"].getLogger('topo');
|
49
|
+
|
50
50
|
var useTopoEdit = function useTopoEdit(params) {
|
51
51
|
var topo = params.topo,
|
52
52
|
topoId = params.topoId,
|
@@ -96,8 +96,7 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
96
96
|
|
97
97
|
|
98
98
|
var showGlobalAddResourceDrawer = function showGlobalAddResourceDrawer() {
|
99
|
-
|
100
|
-
|
99
|
+
rlog.debug("showGlobalAddResourceDrawer", resourceConfig.getViewResources());
|
101
100
|
setComboResData(resourceConfig.getViewResources());
|
102
101
|
setShowComboResDrawer(true);
|
103
102
|
};
|
@@ -112,12 +111,10 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
112
111
|
topo.historyManager.beginTransaction(); // 从拓扑图获取分层和资源配置
|
113
112
|
|
114
113
|
config = resourceConfig.getConfigFromHt(topo.getDataModel());
|
115
|
-
|
116
|
-
_rlog["default"].info("onLayerAdd", {
|
114
|
+
rlog.info("onLayerAdd", {
|
117
115
|
config: config
|
118
116
|
}); // 如果非分层拓扑且有分层,切换到分层模板,设置方向
|
119
117
|
|
120
|
-
|
121
118
|
if (!(!isLayerTopo && config.layers.length)) {
|
122
119
|
_context.next = 7;
|
123
120
|
break;
|
@@ -127,10 +124,6 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
127
124
|
return topoDispatchers.setTopoType(_template.TPL_TREE);
|
128
125
|
|
129
126
|
case 7:
|
130
|
-
// 更新配置
|
131
|
-
// resourceConfig.updateConfig(config);
|
132
|
-
// 更新配置对应的资源、链路
|
133
|
-
// editDispatchers.fetchDataByConfig();
|
134
127
|
topo.historyManager.endTransaction();
|
135
128
|
|
136
129
|
case 8:
|
@@ -155,12 +148,10 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
155
148
|
emitEvent(_componentTopologyGraph.TopoEvent.EVENT_TRIGGER_DELETE, layerElement); // 获取资源配置
|
156
149
|
|
157
150
|
config = resourceConfig.getConfigFromHt(topo.getDataModel());
|
158
|
-
|
159
|
-
_rlog["default"].info("deleteLayer", {
|
151
|
+
rlog.info("deleteLayer", {
|
160
152
|
config: config
|
161
153
|
}); // 如果没有分层,将拓扑类型切换为空白模板
|
162
154
|
|
163
|
-
|
164
155
|
if (config.layers.length) {
|
165
156
|
_context2.next = 7;
|
166
157
|
break;
|
@@ -231,48 +222,7 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
231
222
|
return onOk;
|
232
223
|
}()
|
233
224
|
});
|
234
|
-
};
|
235
|
-
// return (
|
236
|
-
// <div>
|
237
|
-
// <Button type="primary" onClick={doDeleteOnlyGroup()}>
|
238
|
-
// 仅删除区域
|
239
|
-
// </Button>
|
240
|
-
// <Button type="primary" onClick={doDeleteOnlyGroup()}>
|
241
|
-
// 确定
|
242
|
-
// </Button>
|
243
|
-
// </div>
|
244
|
-
// );
|
245
|
-
// };
|
246
|
-
// const [groupDeleteVisible, setGroupDeleteVisible] = useState(false);
|
247
|
-
// function doDeleteOnlyGroup(data,group) {
|
248
|
-
// topo.historyManager.beginTransaction();
|
249
|
-
// console.log("仅删除区域", topo.view.topoClient, data);
|
250
|
-
// const children = getGroupChildren(group);
|
251
|
-
// children.map((child) => {
|
252
|
-
// child.setParent(null);
|
253
|
-
// // var viewRect = topo.getGraphView().getViewRect();
|
254
|
-
// // var nodeRect = child.getRect();
|
255
|
-
// // child.setPosition(
|
256
|
-
// // viewRect.x + nodeRect.width + 2,
|
257
|
-
// // viewRect.y + nodeRect.height + 4
|
258
|
-
// // ); // 解决集群从区域内移出时,连线位置未更新的问题
|
259
|
-
// setTimeout(function () {
|
260
|
-
// child.iv();
|
261
|
-
// topo.historyManager.endTransaction();
|
262
|
-
// }, 50);
|
263
|
-
// });
|
264
|
-
// topo.view.topoClient.deleteGroup(data);
|
265
|
-
// topo.historyManager.endTransaction();
|
266
|
-
// setGroupDeleteVisible(false);
|
267
|
-
// // console.log("仅删除区域", children, group);
|
268
|
-
// }
|
269
|
-
// function doDelete(data) {
|
270
|
-
// topo.historyManager.beginTransaction();
|
271
|
-
// // FIXME 。如果命中其他的动态条件,则立即显示
|
272
|
-
// topo.view.topoClient.deleteGroup(data);
|
273
|
-
// setGroupDeleteVisible(false);
|
274
|
-
// }
|
275
|
-
|
225
|
+
};
|
276
226
|
/**
|
277
227
|
* 删除容器。
|
278
228
|
*
|
@@ -303,21 +253,17 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
303
253
|
// content: "若执行相关操作,此区域包含的内容也会一同被删除,确定删除吗?",
|
304
254
|
content: "是否仅删除区域或将区域包含的内容一同删除?",
|
305
255
|
footer: [/*#__PURE__*/_react["default"].createElement(_button["default"], {
|
256
|
+
key: "1",
|
306
257
|
type: "normal",
|
307
258
|
onClick: doDeleteOnlyGroup,
|
308
259
|
style: {
|
309
260
|
marginRight: "15px"
|
310
261
|
}
|
311
262
|
}, "\u4EC5\u5220\u9664\u533A\u57DF"), /*#__PURE__*/_react["default"].createElement(_button["default"], {
|
263
|
+
key: "2",
|
312
264
|
type: "normal",
|
313
265
|
onClick: doDelete
|
314
266
|
}, "\u5168\u90E8\u5220\u9664")],
|
315
|
-
// okProps: {
|
316
|
-
// children: "仅删除区域",
|
317
|
-
// type: "normal",
|
318
|
-
// className: "next-btn-normal",
|
319
|
-
// },
|
320
|
-
// cancelProps: { children: "全部删除" },
|
321
267
|
messageProps: {
|
322
268
|
type: "warning"
|
323
269
|
}
|
@@ -328,13 +274,7 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
328
274
|
console.log("仅删除区域", topo.view.topoClient, data);
|
329
275
|
var children = (0, _htElementUtils.getGroupChildren)(group);
|
330
276
|
children.map(function (child) {
|
331
|
-
child.setParent(null);
|
332
|
-
// var nodeRect = child.getRect();
|
333
|
-
// child.setPosition(
|
334
|
-
// viewRect.x + nodeRect.width + 2,
|
335
|
-
// viewRect.y + nodeRect.height + 4
|
336
|
-
// ); // 解决集群从区域内移出时,连线位置未更新的问题
|
337
|
-
|
277
|
+
child.setParent(null);
|
338
278
|
setTimeout(function () {
|
339
279
|
child.iv();
|
340
280
|
topo.historyManager.endTransaction();
|
@@ -353,10 +293,6 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
353
293
|
}
|
354
294
|
};
|
355
295
|
|
356
|
-
var deleteNode = function deleteNode(node) {
|
357
|
-
emitEvent(_componentTopologyGraph.TopoEvent.EVENT_TRIGGER_DELETE, node);
|
358
|
-
};
|
359
|
-
|
360
296
|
var handleDeleteNode = function handleDeleteNode(element) {
|
361
297
|
var _topo$options$editor;
|
362
298
|
|
@@ -373,51 +309,36 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
373
309
|
if (typeof onNodeDelete === "function") {
|
374
310
|
onNodeDelete(data);
|
375
311
|
} else {
|
376
|
-
|
312
|
+
emitEvent(_componentTopologyGraph.TopoEvent.EVENT_TRIGGER_DELETE, node);
|
377
313
|
}
|
378
314
|
}
|
379
315
|
}; // 删除关联在节点上的出口链路
|
380
316
|
|
381
317
|
|
382
|
-
var deleteExLink =
|
383
|
-
var
|
384
|
-
var _node$getEdges$toArra, _node$getEdges;
|
318
|
+
var deleteExLink = function deleteExLink(node) {
|
319
|
+
var _node$getEdges$toArra, _node$getEdges;
|
385
320
|
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
// console.log("删除关联在节点上的出口链路- node, config", node, config);
|
391
|
-
edges = (_node$getEdges$toArra = (_node$getEdges = node.getEdges()) === null || _node$getEdges === void 0 ? void 0 : _node$getEdges.toArray()) !== null && _node$getEdges$toArra !== void 0 ? _node$getEdges$toArra : [];
|
321
|
+
rlog.debug("删除关联在节点上的出口链路", {
|
322
|
+
node: node
|
323
|
+
});
|
324
|
+
var edges = (_node$getEdges$toArra = (_node$getEdges = node.getEdges()) === null || _node$getEdges === void 0 ? void 0 : _node$getEdges.toArray()) !== null && _node$getEdges$toArra !== void 0 ? _node$getEdges$toArra : [];
|
392
325
|
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
326
|
+
if (edges.length > 0) {
|
327
|
+
edges.map(function (edge) {
|
328
|
+
if (edge.getTag()) {
|
329
|
+
var link = topo.dataModel.getDataById(edge.getTag());
|
397
330
|
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
}
|
402
|
-
});
|
403
|
-
}
|
404
|
-
|
405
|
-
case 2:
|
406
|
-
case "end":
|
407
|
-
return _context4.stop();
|
331
|
+
if (link && (0, _linkUtils.isExitLink)(link)) {
|
332
|
+
topo.getGraphView().dm().remove(edge);
|
333
|
+
}
|
408
334
|
}
|
409
|
-
}
|
410
|
-
}
|
411
|
-
|
412
|
-
return function deleteExLink(_x3) {
|
413
|
-
return _ref4.apply(this, arguments);
|
414
|
-
};
|
415
|
-
}();
|
335
|
+
});
|
336
|
+
}
|
337
|
+
};
|
416
338
|
|
417
339
|
var onDeleteElement = function onDeleteElement(data) {
|
418
340
|
var dtype = data.dtype;
|
419
|
-
|
420
|
-
_rlog["default"].info("onDeleteElement", data);
|
341
|
+
rlog.info("onDeleteElement", data);
|
421
342
|
|
422
343
|
if ((0, _htElementUtils.isLayer)(data)) {
|
423
344
|
handleDeleteLayer(data);
|
@@ -464,7 +385,7 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
464
385
|
function findUNExistedLinkElements(elements) {
|
465
386
|
var dm = topo.getDataModel();
|
466
387
|
var newLinkElements = elements.filter(function (element) {
|
467
|
-
return (element.type === "link" || element.type === "linkGroup") && !(0, _htElementUtils.
|
388
|
+
return (element.type === "link" || element.type === "linkGroup") && !(0, _htElementUtils.containsElement)(dm, element);
|
468
389
|
});
|
469
390
|
return newLinkElements;
|
470
391
|
}
|
@@ -478,7 +399,7 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
478
399
|
function findUNExistedElements(elements) {
|
479
400
|
var dm = topo.getDataModel();
|
480
401
|
var newLinkElements = elements.filter(function (element) {
|
481
|
-
return !(0, _htElementUtils.
|
402
|
+
return !(0, _htElementUtils.containsElement)(dm, element);
|
482
403
|
});
|
483
404
|
return newLinkElements;
|
484
405
|
}
|
@@ -487,31 +408,29 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
487
408
|
*/
|
488
409
|
|
489
410
|
|
490
|
-
function bindGroupResources(
|
411
|
+
function bindGroupResources(_x3, _x4) {
|
491
412
|
return _bindGroupResources.apply(this, arguments);
|
492
413
|
}
|
493
414
|
|
494
415
|
function _bindGroupResources() {
|
495
|
-
_bindGroupResources = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function
|
416
|
+
_bindGroupResources = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee9(group, resources) {
|
496
417
|
var id, tag, _yield$editDispatcher2, elements, nodeElements, newLinkElements, updateElements;
|
497
418
|
|
498
|
-
return _regenerator["default"].wrap(function
|
499
|
-
while (1) switch (
|
419
|
+
return _regenerator["default"].wrap(function _callee9$(_context9) {
|
420
|
+
while (1) switch (_context9.prev = _context9.next) {
|
500
421
|
case 0:
|
501
422
|
id = group.id, tag = group.tag;
|
502
|
-
|
503
|
-
_rlog["default"].debug("bindGroupResources--id, tag", id, tag);
|
504
|
-
|
423
|
+
rlog.debug("bindGroupResources--id, tag", id, tag);
|
505
424
|
topo.historyManager.beginTransaction();
|
506
|
-
|
425
|
+
_context9.next = 5;
|
507
426
|
return resourceConfig.updateGroupResources(group, resources);
|
508
427
|
|
509
428
|
case 5:
|
510
|
-
|
429
|
+
_context9.next = 7;
|
511
430
|
return editDispatchers.fetchDataByConfig();
|
512
431
|
|
513
432
|
case 7:
|
514
|
-
_yield$editDispatcher2 =
|
433
|
+
_yield$editDispatcher2 = _context9.sent;
|
515
434
|
elements = _yield$editDispatcher2.elements;
|
516
435
|
// 区域里的子区域及子区域的节点、新增的链路
|
517
436
|
nodeElements = (0, _topoData.findGroupChildren)(elements, group);
|
@@ -530,14 +449,14 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
530
449
|
|
531
450
|
case 14:
|
532
451
|
case "end":
|
533
|
-
return
|
452
|
+
return _context9.stop();
|
534
453
|
}
|
535
|
-
},
|
454
|
+
}, _callee9);
|
536
455
|
}));
|
537
456
|
return _bindGroupResources.apply(this, arguments);
|
538
457
|
}
|
539
458
|
|
540
|
-
function addGroupResources(
|
459
|
+
function addGroupResources(_x5, _x6) {
|
541
460
|
return _addGroupResources.apply(this, arguments);
|
542
461
|
}
|
543
462
|
/**
|
@@ -546,10 +465,10 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
546
465
|
|
547
466
|
|
548
467
|
function _addGroupResources() {
|
549
|
-
_addGroupResources = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function
|
468
|
+
_addGroupResources = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee10(group, newResourceIds) {
|
550
469
|
var groupConfig, resources, groupData;
|
551
|
-
return _regenerator["default"].wrap(function
|
552
|
-
while (1) switch (
|
470
|
+
return _regenerator["default"].wrap(function _callee10$(_context10) {
|
471
|
+
while (1) switch (_context10.prev = _context10.next) {
|
553
472
|
case 0:
|
554
473
|
groupConfig = resourceConfig.getGroupConfigByElement(group);
|
555
474
|
resources = {
|
@@ -559,19 +478,19 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
559
478
|
id: group.getTag(),
|
560
479
|
tag: group.a("tag")
|
561
480
|
};
|
562
|
-
|
481
|
+
_context10.next = 5;
|
563
482
|
return bindGroupResources(groupData, resources);
|
564
483
|
|
565
484
|
case 5:
|
566
485
|
case "end":
|
567
|
-
return
|
486
|
+
return _context10.stop();
|
568
487
|
}
|
569
|
-
},
|
488
|
+
}, _callee10);
|
570
489
|
}));
|
571
490
|
return _addGroupResources.apply(this, arguments);
|
572
491
|
}
|
573
492
|
|
574
|
-
function bindViewResources(
|
493
|
+
function bindViewResources(_x7) {
|
575
494
|
return _bindViewResources.apply(this, arguments);
|
576
495
|
}
|
577
496
|
/**
|
@@ -583,24 +502,24 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
583
502
|
|
584
503
|
|
585
504
|
function _bindViewResources() {
|
586
|
-
_bindViewResources = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function
|
505
|
+
_bindViewResources = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee11(data) {
|
587
506
|
var config, result, _elements;
|
588
507
|
|
589
|
-
return _regenerator["default"].wrap(function
|
590
|
-
while (1) switch (
|
508
|
+
return _regenerator["default"].wrap(function _callee11$(_context11) {
|
509
|
+
while (1) switch (_context11.prev = _context11.next) {
|
591
510
|
case 0:
|
592
511
|
// console.log("关联视图的资源", data);
|
593
512
|
config = resourceConfig.getConfig();
|
594
513
|
config.resources = data;
|
595
|
-
|
514
|
+
_context11.next = 4;
|
596
515
|
return resourceConfig.updateConfig(config);
|
597
516
|
|
598
517
|
case 4:
|
599
|
-
|
518
|
+
_context11.next = 6;
|
600
519
|
return editDispatchers.fetchDataByConfig();
|
601
520
|
|
602
521
|
case 6:
|
603
|
-
result =
|
522
|
+
result = _context11.sent;
|
604
523
|
console.log("fetchDataByConfig", result);
|
605
524
|
|
606
525
|
if (result) {
|
@@ -614,44 +533,42 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
614
533
|
|
615
534
|
case 9:
|
616
535
|
case "end":
|
617
|
-
return
|
536
|
+
return _context11.stop();
|
618
537
|
}
|
619
|
-
},
|
538
|
+
}, _callee11);
|
620
539
|
}));
|
621
540
|
return _bindViewResources.apply(this, arguments);
|
622
541
|
}
|
623
542
|
|
624
|
-
function addLayerResources(
|
543
|
+
function addLayerResources(_x8, _x9) {
|
625
544
|
return _addLayerResources.apply(this, arguments);
|
626
545
|
}
|
627
546
|
|
628
547
|
function _addLayerResources() {
|
629
|
-
_addLayerResources = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function
|
548
|
+
_addLayerResources = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee12(group, newResourceIds) {
|
630
549
|
var _yield$editDispatcher3, elements, newElements;
|
631
550
|
|
632
|
-
return _regenerator["default"].wrap(function
|
633
|
-
while (1) switch (
|
551
|
+
return _regenerator["default"].wrap(function _callee12$(_context12) {
|
552
|
+
while (1) switch (_context12.prev = _context12.next) {
|
634
553
|
case 0:
|
635
554
|
topo.historyManager.beginTransaction(); // 构造新的配置
|
636
555
|
|
637
|
-
|
556
|
+
_context12.next = 3;
|
638
557
|
return resourceConfig.addLayerStaticResources(group, newResourceIds);
|
639
558
|
|
640
559
|
case 3:
|
641
|
-
|
560
|
+
_context12.next = 5;
|
642
561
|
return editDispatchers.fetchDataByConfig();
|
643
562
|
|
644
563
|
case 5:
|
645
|
-
_yield$editDispatcher3 =
|
564
|
+
_yield$editDispatcher3 = _context12.sent;
|
646
565
|
elements = _yield$editDispatcher3.elements;
|
647
566
|
// 2022-11-10 修复 添加资源后分层重新布局问题,仅布局新增资源。替换api topo.updateElements(data)
|
648
567
|
newElements = findUNExistedElements(elements);
|
649
|
-
|
650
|
-
_rlog["default"].debug("添加分层资源", {
|
568
|
+
rlog.debug("添加分层资源", {
|
651
569
|
layer: group,
|
652
570
|
newElements: newElements
|
653
571
|
});
|
654
|
-
|
655
572
|
topo.getHtTopo().addElements(newElements); // 临时放这里,仅拓扑中心有
|
656
573
|
|
657
574
|
if (topo.linkDynamicStyleExecutor) {
|
@@ -667,32 +584,32 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
667
584
|
|
668
585
|
case 14:
|
669
586
|
case "end":
|
670
|
-
return
|
587
|
+
return _context12.stop();
|
671
588
|
}
|
672
|
-
},
|
589
|
+
}, _callee12);
|
673
590
|
}));
|
674
591
|
return _addLayerResources.apply(this, arguments);
|
675
592
|
}
|
676
593
|
|
677
|
-
function addResourceToFirstLayer(
|
594
|
+
function addResourceToFirstLayer(_x10) {
|
678
595
|
return _addResourceToFirstLayer.apply(this, arguments);
|
679
596
|
}
|
680
597
|
|
681
598
|
function _addResourceToFirstLayer() {
|
682
|
-
_addResourceToFirstLayer = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function
|
599
|
+
_addResourceToFirstLayer = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee13(data) {
|
683
600
|
var group;
|
684
|
-
return _regenerator["default"].wrap(function
|
685
|
-
while (1) switch (
|
601
|
+
return _regenerator["default"].wrap(function _callee13$(_context13) {
|
602
|
+
while (1) switch (_context13.prev = _context13.next) {
|
686
603
|
case 0:
|
687
604
|
group = resourceConfig.getGroups()[0];
|
688
|
-
|
605
|
+
_context13.next = 3;
|
689
606
|
return addLayerResources(group, data);
|
690
607
|
|
691
608
|
case 3:
|
692
609
|
case "end":
|
693
|
-
return
|
610
|
+
return _context13.stop();
|
694
611
|
}
|
695
|
-
},
|
612
|
+
}, _callee13);
|
696
613
|
}));
|
697
614
|
return _addResourceToFirstLayer.apply(this, arguments);
|
698
615
|
}
|
@@ -724,28 +641,27 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
724
641
|
|
725
642
|
|
726
643
|
var onSaveComboRes = /*#__PURE__*/function () {
|
727
|
-
var
|
728
|
-
return _regenerator["default"].wrap(function
|
729
|
-
while (1) switch (
|
644
|
+
var _ref4 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4(data) {
|
645
|
+
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
646
|
+
while (1) switch (_context4.prev = _context4.next) {
|
730
647
|
case 0:
|
731
|
-
|
732
|
-
|
648
|
+
rlog.debug("关联资源-----onSaveComboRes", data);
|
733
649
|
topo.historyManager.beginTransaction();
|
734
650
|
|
735
651
|
if (!(getAddResourceType() === "addToFirstLayer")) {
|
736
|
-
|
652
|
+
_context4.next = 7;
|
737
653
|
break;
|
738
654
|
}
|
739
655
|
|
740
|
-
|
656
|
+
_context4.next = 5;
|
741
657
|
return addResourceToFirstLayer(data);
|
742
658
|
|
743
659
|
case 5:
|
744
|
-
|
660
|
+
_context4.next = 9;
|
745
661
|
break;
|
746
662
|
|
747
663
|
case 7:
|
748
|
-
|
664
|
+
_context4.next = 9;
|
749
665
|
return bindViewResources(data);
|
750
666
|
|
751
667
|
case 9:
|
@@ -757,22 +673,22 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
757
673
|
|
758
674
|
case 12:
|
759
675
|
case "end":
|
760
|
-
return
|
676
|
+
return _context4.stop();
|
761
677
|
}
|
762
|
-
},
|
678
|
+
}, _callee4);
|
763
679
|
}));
|
764
680
|
|
765
|
-
return function onSaveComboRes(
|
766
|
-
return
|
681
|
+
return function onSaveComboRes(_x11) {
|
682
|
+
return _ref4.apply(this, arguments);
|
767
683
|
};
|
768
684
|
}();
|
769
685
|
|
770
686
|
var onSaveTopo = /*#__PURE__*/function () {
|
771
|
-
var
|
687
|
+
var _ref5 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee6(data) {
|
772
688
|
var id, config, serialize, _config$layout, template, layout, saveConfig;
|
773
689
|
|
774
|
-
return _regenerator["default"].wrap(function
|
775
|
-
while (1) switch (
|
690
|
+
return _regenerator["default"].wrap(function _callee6$(_context6) {
|
691
|
+
while (1) switch (_context6.prev = _context6.next) {
|
776
692
|
case 0:
|
777
693
|
id = data.id, config = data.config, serialize = data.serialize;
|
778
694
|
_config$layout = config === null || config === void 0 ? void 0 : config.layout, template = _config$layout.type, layout = _config$layout.layout;
|
@@ -780,11 +696,11 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
780
696
|
if (onSave) {
|
781
697
|
// 自定义保存
|
782
698
|
saveConfig = /*#__PURE__*/function () {
|
783
|
-
var
|
784
|
-
return _regenerator["default"].wrap(function
|
785
|
-
while (1) switch (
|
699
|
+
var _ref6 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5() {
|
700
|
+
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
701
|
+
while (1) switch (_context5.prev = _context5.next) {
|
786
702
|
case 0:
|
787
|
-
|
703
|
+
_context5.next = 2;
|
788
704
|
return editDispatchers.saveTopo({
|
789
705
|
id: id,
|
790
706
|
layout: layout,
|
@@ -793,13 +709,13 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
793
709
|
|
794
710
|
case 2:
|
795
711
|
case "end":
|
796
|
-
return
|
712
|
+
return _context5.stop();
|
797
713
|
}
|
798
|
-
},
|
714
|
+
}, _callee5);
|
799
715
|
}));
|
800
716
|
|
801
717
|
return function saveConfig() {
|
802
|
-
return
|
718
|
+
return _ref6.apply(this, arguments);
|
803
719
|
};
|
804
720
|
}();
|
805
721
|
|
@@ -812,13 +728,13 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
812
728
|
|
813
729
|
case 3:
|
814
730
|
case "end":
|
815
|
-
return
|
731
|
+
return _context6.stop();
|
816
732
|
}
|
817
|
-
},
|
733
|
+
}, _callee6);
|
818
734
|
}));
|
819
735
|
|
820
|
-
return function onSaveTopo(
|
821
|
-
return
|
736
|
+
return function onSaveTopo(_x12) {
|
737
|
+
return _ref5.apply(this, arguments);
|
822
738
|
};
|
823
739
|
}();
|
824
740
|
|
@@ -827,9 +743,7 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
827
743
|
type: type,
|
828
744
|
data: data
|
829
745
|
};
|
830
|
-
|
831
|
-
_rlog["default"].debug("TopoCenter:onSaveBind", eventData);
|
832
|
-
|
746
|
+
rlog.debug("TopoCenter:onSaveBind", eventData);
|
833
747
|
emitEvent(_componentTopologyGraph.TopoEvent.EVENT_DATA_RESULT, eventData);
|
834
748
|
};
|
835
749
|
/**
|
@@ -846,11 +760,11 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
846
760
|
|
847
761
|
|
848
762
|
var bindNodeResource = /*#__PURE__*/function () {
|
849
|
-
var
|
763
|
+
var _ref7 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee8(params) {
|
850
764
|
var id, oldResId, newResId, node, parentGroupElement, htTopo, config, groupId, groupTag, _yield$editDispatcher, elements, newData, doBind, _doBind, replaceOrAddRes;
|
851
765
|
|
852
|
-
return _regenerator["default"].wrap(function
|
853
|
-
while (1) switch (
|
766
|
+
return _regenerator["default"].wrap(function _callee8$(_context8) {
|
767
|
+
while (1) switch (_context8.prev = _context8.next) {
|
854
768
|
case 0:
|
855
769
|
replaceOrAddRes = function _replaceOrAddRes(resources, oldResId, newResId) {
|
856
770
|
return (0, _extends2["default"])({}, resources, {
|
@@ -861,10 +775,10 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
861
775
|
};
|
862
776
|
|
863
777
|
_doBind = function _doBind3() {
|
864
|
-
_doBind = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function
|
778
|
+
_doBind = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee7() {
|
865
779
|
var dm, newLinkElements, createElementsData, groupChildren, newGroupChildren, existedGroupChildren, groupElement, newElement, sm;
|
866
|
-
return _regenerator["default"].wrap(function
|
867
|
-
while (1) switch (
|
780
|
+
return _regenerator["default"].wrap(function _callee7$(_context7) {
|
781
|
+
while (1) switch (_context7.prev = _context7.next) {
|
868
782
|
case 0:
|
869
783
|
dm = htTopo.getGraphView().dm(); // 移除旧节点。先删除后创建,解决ip节点替换ping资源后链路丢失问题
|
870
784
|
|
@@ -917,8 +831,7 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
917
831
|
htTopo.createElements(createElementsData);
|
918
832
|
}
|
919
833
|
|
920
|
-
|
921
|
-
|
834
|
+
rlog.debug("批量创建元素", createElementsData); // 恢复图标、大小、位置、父区域
|
922
835
|
|
923
836
|
newElement = dm.getDataByTag(newData.id);
|
924
837
|
|
@@ -926,21 +839,18 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
926
839
|
newElement.setSize(node.getSize());
|
927
840
|
newElement.setPosition(node.getPosition());
|
928
841
|
newElement.setImage(node.getImage());
|
842
|
+
newElement.setParent(parentGroupElement);
|
929
843
|
} // 选中
|
930
844
|
|
931
845
|
|
932
846
|
sm = htTopo.getGraphView().sm();
|
933
|
-
sm.setSelection([newElement]);
|
934
|
-
|
935
|
-
if (topo.linkDynamicStyleExecutor) {
|
936
|
-
topo.linkDynamicStyleExecutor.execute();
|
937
|
-
}
|
847
|
+
sm.setSelection([newElement]);
|
938
848
|
|
939
|
-
case
|
849
|
+
case 10:
|
940
850
|
case "end":
|
941
|
-
return
|
851
|
+
return _context7.stop();
|
942
852
|
}
|
943
|
-
},
|
853
|
+
}, _callee7);
|
944
854
|
}));
|
945
855
|
return _doBind.apply(this, arguments);
|
946
856
|
};
|
@@ -951,9 +861,7 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
951
861
|
|
952
862
|
topo.historyManager.beginTransaction();
|
953
863
|
id = params.id, oldResId = params.oldResId, newResId = params.newResId;
|
954
|
-
|
955
|
-
_rlog["default"].debug("bindNodeResource", params);
|
956
|
-
|
864
|
+
rlog.debug("bindNodeResource", params);
|
957
865
|
node = topo.getDataModel().getDataById(id); // 节点所属容器
|
958
866
|
|
959
867
|
parentGroupElement = node.getParent();
|
@@ -982,49 +890,55 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
982
890
|
config.resources = replaceOrAddRes(config.resources, oldResId, newResId);
|
983
891
|
}
|
984
892
|
|
985
|
-
|
893
|
+
_context8.next = 13;
|
986
894
|
return resourceConfig.updateConfig(config);
|
987
895
|
|
988
896
|
case 13:
|
989
|
-
|
897
|
+
_context8.next = 15;
|
990
898
|
return editDispatchers.fetchDataByConfig();
|
991
899
|
|
992
900
|
case 15:
|
993
|
-
_yield$editDispatcher =
|
901
|
+
_yield$editDispatcher = _context8.sent;
|
994
902
|
elements = _yield$editDispatcher.elements;
|
995
903
|
newData = elements.find(function (item) {
|
996
904
|
return item.id === newResId;
|
997
905
|
});
|
998
906
|
|
999
|
-
if (newData) {
|
1000
|
-
|
907
|
+
if (!newData) {
|
908
|
+
_context8.next = 25;
|
1001
909
|
break;
|
1002
910
|
}
|
1003
911
|
|
1004
|
-
|
1005
|
-
|
1006
|
-
_message["default"].error("关联资源失败");
|
912
|
+
_context8.next = 21;
|
913
|
+
return doBind();
|
1007
914
|
|
1008
|
-
|
915
|
+
case 21:
|
916
|
+
topo.historyManager.endTransaction(); // 临时放这里,仅拓扑中心有
|
1009
917
|
|
1010
|
-
|
918
|
+
if (topo.linkDynamicStyleExecutor) {
|
919
|
+
topo.linkDynamicStyleExecutor.execute();
|
920
|
+
}
|
1011
921
|
|
1012
|
-
|
1013
|
-
|
1014
|
-
return doBind();
|
922
|
+
_context8.next = 29;
|
923
|
+
break;
|
1015
924
|
|
1016
925
|
case 25:
|
1017
926
|
topo.historyManager.endTransaction();
|
1018
927
|
|
1019
|
-
|
928
|
+
_message["default"].error("关联资源失败");
|
929
|
+
|
930
|
+
rlog.error("关联资源失败");
|
931
|
+
return _context8.abrupt("return", false);
|
932
|
+
|
933
|
+
case 29:
|
1020
934
|
case "end":
|
1021
|
-
return
|
935
|
+
return _context8.stop();
|
1022
936
|
}
|
1023
|
-
},
|
937
|
+
}, _callee8);
|
1024
938
|
}));
|
1025
939
|
|
1026
|
-
return function bindNodeResource(
|
1027
|
-
return
|
940
|
+
return function bindNodeResource(_x13) {
|
941
|
+
return _ref7.apply(this, arguments);
|
1028
942
|
};
|
1029
943
|
}();
|
1030
944
|
/**
|
@@ -1032,93 +946,96 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
1032
946
|
*/
|
1033
947
|
|
1034
948
|
|
1035
|
-
function relateNodeIp(_x15, _x16) {
|
949
|
+
function relateNodeIp(_x14, _x15, _x16) {
|
1036
950
|
return _relateNodeIp.apply(this, arguments);
|
1037
951
|
}
|
1038
952
|
|
1039
953
|
function _relateNodeIp() {
|
1040
|
-
_relateNodeIp = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function
|
1041
|
-
var dm, isUnique, ipNodeData, configObj, configData,
|
954
|
+
_relateNodeIp = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee14(txtValue, nodeElement, disableHistory) {
|
955
|
+
var dm, isUnique, ipNodeData, configObj, configData, elements, newLinkElements, newLink, newLinkGroup, createElementsData, _htTopo;
|
1042
956
|
|
1043
|
-
return _regenerator["default"].wrap(function
|
1044
|
-
while (1) switch (
|
957
|
+
return _regenerator["default"].wrap(function _callee14$(_context14) {
|
958
|
+
while (1) switch (_context14.prev = _context14.next) {
|
1045
959
|
case 0:
|
960
|
+
if (disableHistory === void 0) {
|
961
|
+
disableHistory = false;
|
962
|
+
}
|
963
|
+
|
1046
964
|
if (txtValue) {
|
1047
|
-
|
965
|
+
_context14.next = 3;
|
1048
966
|
break;
|
1049
967
|
}
|
1050
968
|
|
1051
|
-
return
|
969
|
+
return _context14.abrupt("return");
|
1052
970
|
|
1053
|
-
case
|
1054
|
-
// if (txtValue === nodeElement.a('bindIp')) {
|
1055
|
-
// return;
|
1056
|
-
// }
|
971
|
+
case 3:
|
1057
972
|
// 根据配置查询拓扑数据
|
1058
973
|
dm = topo.getDataModel(); // 执行唯一性验证
|
1059
974
|
|
1060
|
-
isUnique = (0, _exitLinkUtil.isUniqueIp)(dm, txtValue, nodeElement);
|
975
|
+
isUnique = (0, _exitLinkUtil.isUniqueIp)(dm, txtValue, nodeElement);
|
1061
976
|
|
1062
|
-
if (
|
1063
|
-
|
977
|
+
if (isUnique) {
|
978
|
+
_context14.next = 7;
|
1064
979
|
break;
|
1065
980
|
}
|
1066
981
|
|
1067
|
-
|
1068
|
-
_context15.next = 8;
|
1069
|
-
return deleteExLink(nodeElement);
|
982
|
+
return _context14.abrupt("return");
|
1070
983
|
|
1071
|
-
case
|
984
|
+
case 7:
|
985
|
+
disableHistory && topo.historyManager.setDisabled(true, '关联IP: 删除关联出口链路、节点绑定IP'); // 删除关联出口链路
|
986
|
+
|
987
|
+
deleteExLink(nodeElement); // 节点绑定IP
|
988
|
+
|
989
|
+
ipNodeData = (0, _exitLinkUtil.buildIpNode)(txtValue);
|
1072
990
|
nodeElement.a(ipNodeData);
|
1073
991
|
nodeElement.setName(txtValue);
|
1074
|
-
nodeElement.setTag("ip:" + txtValue);
|
992
|
+
nodeElement.setTag("ip:" + txtValue);
|
993
|
+
disableHistory && topo.historyManager.setDisabled(false, '关联IP: 删除关联出口链路、节点绑定IP'); // 获取配置
|
1075
994
|
|
1076
995
|
configObj = topo.resourceConfig.getConfig();
|
1077
|
-
|
996
|
+
_context14.next = 17;
|
1078
997
|
return resourceConfig.updateConfig(configObj);
|
1079
998
|
|
1080
|
-
case
|
1081
|
-
|
999
|
+
case 17:
|
1000
|
+
_context14.next = 19;
|
1082
1001
|
return editDispatchers.fetchDataByConfig();
|
1083
1002
|
|
1084
|
-
case
|
1085
|
-
configData =
|
1086
|
-
|
1087
|
-
|
1088
|
-
newLinkElements = findUNExistedLinkElements(_elements2); // console.log("configData", configData, newLinkElements);
|
1089
|
-
|
1003
|
+
case 19:
|
1004
|
+
configData = _context14.sent;
|
1005
|
+
elements = configData.elements;
|
1006
|
+
newLinkElements = findUNExistedLinkElements(elements);
|
1090
1007
|
newLink = newLinkElements.filter(function (item) {
|
1091
1008
|
return item.type === "link";
|
1092
1009
|
});
|
1093
1010
|
newLinkGroup = newLinkElements.filter(function (item) {
|
1094
1011
|
return item.type === "linkGroup";
|
1095
|
-
});
|
1096
|
-
// console.log("newData",newLinkElements, newLink);
|
1097
|
-
|
1012
|
+
});
|
1098
1013
|
createElementsData = {
|
1099
1014
|
groups: [],
|
1100
1015
|
nodes: [],
|
1101
1016
|
links: newLink,
|
1102
1017
|
linkGroups: newLinkGroup
|
1103
1018
|
};
|
1104
|
-
|
1019
|
+
rlog.debug("createElementsData", createElementsData);
|
1105
1020
|
|
1106
1021
|
if ([].concat(newLink, newLinkGroup).length > 0) {
|
1107
1022
|
_htTopo = topo.getHtTopo();
|
1023
|
+
disableHistory && topo.historyManager.setDisabled(true, '关联IP: 创建链路');
|
1108
1024
|
|
1109
|
-
_htTopo.createElements(createElementsData);
|
1025
|
+
_htTopo.createElements(createElementsData);
|
1110
1026
|
|
1027
|
+
disableHistory && topo.historyManager.setDisabled(false, '关联IP: 创建链路'); // 临时放这里,仅拓扑中心有
|
1111
1028
|
|
1112
1029
|
if (topo.linkDynamicStyleExecutor) {
|
1113
1030
|
topo.linkDynamicStyleExecutor.execute();
|
1114
1031
|
}
|
1115
1032
|
}
|
1116
1033
|
|
1117
|
-
case
|
1034
|
+
case 27:
|
1118
1035
|
case "end":
|
1119
|
-
return
|
1036
|
+
return _context14.stop();
|
1120
1037
|
}
|
1121
|
-
},
|
1038
|
+
}, _callee14);
|
1122
1039
|
}));
|
1123
1040
|
return _relateNodeIp.apply(this, arguments);
|
1124
1041
|
}
|
@@ -1139,8 +1056,7 @@ var useTopoEdit = function useTopoEdit(params) {
|
|
1139
1056
|
*/
|
1140
1057
|
|
1141
1058
|
var setViewMouseMode = function setViewMouseMode(mode) {
|
1142
|
-
|
1143
|
-
|
1059
|
+
rlog.debug("设置视图鼠标模式", mode);
|
1144
1060
|
topo.getHtTopo().setViewMouseMode(mode);
|
1145
1061
|
topoEditDispatchers.update({
|
1146
1062
|
viewMouseMode: mode
|