@riil-frontend/component-topology 2.15.11 → 2.15.12
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.css +1 -1
- package/build/index.js +23 -23
- package/es/core/models/TopoApp.js +1 -1
- package/es/topoCenter/components/editor/propertyViews/edge/addLinkDrawer/AddLinkDrawer.js +4 -3
- package/es/topoCenter/hooks/editor/useDeleteEdges.js +3 -0
- package/es/utils/copyUtil.js +6 -0
- package/lib/core/models/TopoApp.js +1 -1
- package/lib/topoCenter/components/editor/propertyViews/edge/addLinkDrawer/AddLinkDrawer.js +5 -3
- package/lib/topoCenter/hooks/editor/useDeleteEdges.js +3 -0
- package/lib/utils/copyUtil.js +13 -0
- package/package.json +2 -2
|
@@ -19,7 +19,7 @@ import GraphDataModel from "./GraphDataModel";
|
|
|
19
19
|
import { updateEdgeExpanded } from "../utils/edgeUtil";
|
|
20
20
|
import PluginManager from "./PluginManager"; // eslint-disable-next-line no-undef
|
|
21
21
|
|
|
22
|
-
var version = typeof "2.15.
|
|
22
|
+
var version = typeof "2.15.12" === 'string' ? "2.15.12" : null;
|
|
23
23
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
|
24
24
|
var topoDebug = {};
|
|
25
25
|
window.topoDebug = topoDebug;
|
|
@@ -13,6 +13,7 @@ import TopoCenterEvent from "../../../../../event";
|
|
|
13
13
|
import EditLinkInfo from "./components/editLinkInfo";
|
|
14
14
|
import styles from "./index.module.scss";
|
|
15
15
|
import service from "./server";
|
|
16
|
+
import { clone } from "../../../../../../utils/copyUtil";
|
|
16
17
|
var CollapsePanel = _Collapse.Panel;
|
|
17
18
|
|
|
18
19
|
function AddLinkDrawer(props) {
|
|
@@ -321,7 +322,7 @@ function AddLinkDrawer(props) {
|
|
|
321
322
|
var _linkNodesRef$current = linkNodesRef.current,
|
|
322
323
|
source = _linkNodesRef$current.source,
|
|
323
324
|
target = _linkNodesRef$current.target;
|
|
324
|
-
rlog.debug("
|
|
325
|
+
rlog.debug("addLinkToGraph", source, target, htTopo);
|
|
325
326
|
|
|
326
327
|
try {
|
|
327
328
|
// 获取两个节点间的连线数据列表
|
|
@@ -351,7 +352,7 @@ function AddLinkDrawer(props) {
|
|
|
351
352
|
|
|
352
353
|
topo.getGraphView().dm().sm().ss(topo.getDataModel().getDataByTag(linkData.id));
|
|
353
354
|
} catch (error) {
|
|
354
|
-
rlog.error("
|
|
355
|
+
rlog.error("addLinkToGraph", error);
|
|
355
356
|
}
|
|
356
357
|
};
|
|
357
358
|
|
|
@@ -425,7 +426,7 @@ function AddLinkDrawer(props) {
|
|
|
425
426
|
});
|
|
426
427
|
isAgg = data["network_link.connect_type"] === "agg";
|
|
427
428
|
addLinkToGraph({
|
|
428
|
-
linkData: linkData,
|
|
429
|
+
linkData: clone(linkData),
|
|
429
430
|
isAgg: isAgg
|
|
430
431
|
});
|
|
431
432
|
} else {
|
|
@@ -46,7 +46,7 @@ var _edgeUtil = require("../utils/edgeUtil");
|
|
|
46
46
|
var _PluginManager = _interopRequireDefault(require("./PluginManager"));
|
|
47
47
|
|
|
48
48
|
// eslint-disable-next-line no-undef
|
|
49
|
-
var version = typeof "2.15.
|
|
49
|
+
var version = typeof "2.15.12" === 'string' ? "2.15.12" : null;
|
|
50
50
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
|
51
51
|
var topoDebug = {};
|
|
52
52
|
window.topoDebug = topoDebug;
|
|
@@ -33,6 +33,8 @@ var _indexModule = _interopRequireDefault(require("./index.module.scss"));
|
|
|
33
33
|
|
|
34
34
|
var _server = _interopRequireDefault(require("./server"));
|
|
35
35
|
|
|
36
|
+
var _copyUtil = require("../../../../../../utils/copyUtil");
|
|
37
|
+
|
|
36
38
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
37
39
|
|
|
38
40
|
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; }
|
|
@@ -360,7 +362,7 @@ function AddLinkDrawer(props) {
|
|
|
360
362
|
source = _linkNodesRef$current.source,
|
|
361
363
|
target = _linkNodesRef$current.target;
|
|
362
364
|
|
|
363
|
-
_rlog["default"].debug("
|
|
365
|
+
_rlog["default"].debug("addLinkToGraph", source, target, htTopo);
|
|
364
366
|
|
|
365
367
|
try {
|
|
366
368
|
// 获取两个节点间的连线数据列表
|
|
@@ -390,7 +392,7 @@ function AddLinkDrawer(props) {
|
|
|
390
392
|
|
|
391
393
|
topo.getGraphView().dm().sm().ss(topo.getDataModel().getDataByTag(linkData.id));
|
|
392
394
|
} catch (error) {
|
|
393
|
-
_rlog["default"].error("
|
|
395
|
+
_rlog["default"].error("addLinkToGraph", error);
|
|
394
396
|
}
|
|
395
397
|
};
|
|
396
398
|
|
|
@@ -465,7 +467,7 @@ function AddLinkDrawer(props) {
|
|
|
465
467
|
});
|
|
466
468
|
isAgg = data["network_link.connect_type"] === "agg";
|
|
467
469
|
addLinkToGraph({
|
|
468
|
-
linkData: linkData,
|
|
470
|
+
linkData: (0, _copyUtil.clone)(linkData),
|
|
469
471
|
isAgg: isAgg
|
|
470
472
|
});
|
|
471
473
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riil-frontend/component-topology",
|
|
3
|
-
"version": "2.15.
|
|
3
|
+
"version": "2.15.12",
|
|
4
4
|
"description": "拓扑",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "build-scripts start",
|
|
@@ -110,6 +110,6 @@
|
|
|
110
110
|
"access": "public"
|
|
111
111
|
},
|
|
112
112
|
"license": "MIT",
|
|
113
|
-
"homepage": "https://unpkg.com/@riil-frontend/component-topology@2.15.
|
|
113
|
+
"homepage": "https://unpkg.com/@riil-frontend/component-topology@2.15.12/build/index.html",
|
|
114
114
|
"gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
|
|
115
115
|
}
|