@riil-frontend/component-topology 3.0.0-a.4 → 3.0.0
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 +5 -5
- package/es/core/components/DisplaySettingDrawer/EdgeFlow.js +0 -2
- package/es/core/editor/components/settings/propertyViews/view/GlobalNodeLabelStyle.js +2 -2
- package/es/core/models/TopoApp.js +1 -1
- package/es/topoCenter/components/Topology.js +3 -1
- package/lib/core/components/DisplaySettingDrawer/EdgeFlow.js +0 -2
- package/lib/core/editor/components/settings/propertyViews/view/GlobalNodeLabelStyle.js +2 -2
- package/lib/core/models/TopoApp.js +1 -1
- package/lib/topoCenter/components/Topology.js +3 -1
- package/package.json +2 -2
|
@@ -15,8 +15,6 @@ function EdgeFlow(props) {
|
|
|
15
15
|
}, /*#__PURE__*/React.createElement(_Radio, {
|
|
16
16
|
value: "none"
|
|
17
17
|
}, "\u65E0"), /*#__PURE__*/React.createElement(_Radio, {
|
|
18
|
-
value: "drip"
|
|
19
|
-
}, "\u4F20\u9001\u5E26"), /*#__PURE__*/React.createElement(_Radio, {
|
|
20
18
|
value: "point"
|
|
21
19
|
}, "\u5149\u70B9"), /*#__PURE__*/React.createElement(_Radio, {
|
|
22
20
|
value: "arrow"
|
|
@@ -56,7 +56,7 @@ export default function GlobalNodeLabelStyle(props) {
|
|
|
56
56
|
paddingRight: 12
|
|
57
57
|
}
|
|
58
58
|
}, /*#__PURE__*/React.createElement(_Form.Item, {
|
|
59
|
-
label: "\u5B57\u4F53",
|
|
59
|
+
label: "\u6807\u6CE8\u5B57\u4F53",
|
|
60
60
|
style: {
|
|
61
61
|
marginBottom: 0
|
|
62
62
|
}
|
|
@@ -96,7 +96,7 @@ export default function GlobalNodeLabelStyle(props) {
|
|
|
96
96
|
width: 70
|
|
97
97
|
}
|
|
98
98
|
}, /*#__PURE__*/React.createElement(_Form.Item, {
|
|
99
|
-
label: "\u989C\u8272",
|
|
99
|
+
label: "\u6807\u6CE8\u989C\u8272",
|
|
100
100
|
style: {
|
|
101
101
|
marginBottom: 0
|
|
102
102
|
}
|
|
@@ -20,7 +20,7 @@ import { updateEdgeExpanded } from "../utils/edgeUtil";
|
|
|
20
20
|
import PluginManager from "./PluginManager";
|
|
21
21
|
import topoFactory from "./topoFactory"; // eslint-disable-next-line no-undef
|
|
22
22
|
|
|
23
|
-
var version = typeof "3.0.0
|
|
23
|
+
var version = typeof "3.0.0" === 'string' ? "3.0.0" : null;
|
|
24
24
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
|
25
25
|
/**
|
|
26
26
|
* 拓扑显示和编辑
|
|
@@ -9,7 +9,8 @@ import AddLinkDrawer from "./editor/propertyViews/edge/addLinkDrawer/AddLinkDraw
|
|
|
9
9
|
import useTopoEdit from "../hooks/useTopoEdit";
|
|
10
10
|
export default function NetworkTopologyFull(props) {
|
|
11
11
|
var topo = props.topo,
|
|
12
|
-
customEditorProps = props.editorProps
|
|
12
|
+
customEditorProps = props.editorProps,
|
|
13
|
+
showTools = props.showTools;
|
|
13
14
|
var topoEdit = useTopoEdit({
|
|
14
15
|
topo: topo
|
|
15
16
|
});
|
|
@@ -38,6 +39,7 @@ export default function NetworkTopologyFull(props) {
|
|
|
38
39
|
graphViewProps: _extends({}, props.graphViewProps, {
|
|
39
40
|
onElementsDelete: topoEdit.onElementsDelete,
|
|
40
41
|
createHtTopoProps: {
|
|
42
|
+
showTools: showTools,
|
|
41
43
|
elementChangeLayerByDrag: true,
|
|
42
44
|
editor: {
|
|
43
45
|
useNewElementsDeleteEvent: true
|
|
@@ -23,8 +23,6 @@ function EdgeFlow(props) {
|
|
|
23
23
|
}, /*#__PURE__*/_react["default"].createElement(_radio["default"], {
|
|
24
24
|
value: "none"
|
|
25
25
|
}, "\u65E0"), /*#__PURE__*/_react["default"].createElement(_radio["default"], {
|
|
26
|
-
value: "drip"
|
|
27
|
-
}, "\u4F20\u9001\u5E26"), /*#__PURE__*/_react["default"].createElement(_radio["default"], {
|
|
28
26
|
value: "point"
|
|
29
27
|
}, "\u5149\u70B9"), /*#__PURE__*/_react["default"].createElement(_radio["default"], {
|
|
30
28
|
value: "arrow"
|
|
@@ -72,7 +72,7 @@ function GlobalNodeLabelStyle(props) {
|
|
|
72
72
|
paddingRight: 12
|
|
73
73
|
}
|
|
74
74
|
}, /*#__PURE__*/_react["default"].createElement(_form["default"].Item, {
|
|
75
|
-
label: "\u5B57\u4F53",
|
|
75
|
+
label: "\u6807\u6CE8\u5B57\u4F53",
|
|
76
76
|
style: {
|
|
77
77
|
marginBottom: 0
|
|
78
78
|
}
|
|
@@ -112,7 +112,7 @@ function GlobalNodeLabelStyle(props) {
|
|
|
112
112
|
width: 70
|
|
113
113
|
}
|
|
114
114
|
}, /*#__PURE__*/_react["default"].createElement(_form["default"].Item, {
|
|
115
|
-
label: "\u989C\u8272",
|
|
115
|
+
label: "\u6807\u6CE8\u989C\u8272",
|
|
116
116
|
style: {
|
|
117
117
|
marginBottom: 0
|
|
118
118
|
}
|
|
@@ -48,7 +48,7 @@ var _PluginManager = _interopRequireDefault(require("./PluginManager"));
|
|
|
48
48
|
var _topoFactory = _interopRequireDefault(require("./topoFactory"));
|
|
49
49
|
|
|
50
50
|
// eslint-disable-next-line no-undef
|
|
51
|
-
var version = typeof "3.0.0
|
|
51
|
+
var version = typeof "3.0.0" === 'string' ? "3.0.0" : null;
|
|
52
52
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
|
53
53
|
/**
|
|
54
54
|
* 拓扑显示和编辑
|
|
@@ -29,7 +29,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
29
29
|
|
|
30
30
|
function NetworkTopologyFull(props) {
|
|
31
31
|
var topo = props.topo,
|
|
32
|
-
customEditorProps = props.editorProps
|
|
32
|
+
customEditorProps = props.editorProps,
|
|
33
|
+
showTools = props.showTools;
|
|
33
34
|
var topoEdit = (0, _useTopoEdit["default"])({
|
|
34
35
|
topo: topo
|
|
35
36
|
});
|
|
@@ -56,6 +57,7 @@ function NetworkTopologyFull(props) {
|
|
|
56
57
|
graphViewProps: (0, _extends2["default"])({}, props.graphViewProps, {
|
|
57
58
|
onElementsDelete: topoEdit.onElementsDelete,
|
|
58
59
|
createHtTopoProps: {
|
|
60
|
+
showTools: showTools,
|
|
59
61
|
elementChangeLayerByDrag: true,
|
|
60
62
|
editor: {
|
|
61
63
|
useNewElementsDeleteEvent: true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riil-frontend/component-topology",
|
|
3
|
-
"version": "3.0.0
|
|
3
|
+
"version": "3.0.0",
|
|
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@3.0.0
|
|
113
|
+
"homepage": "https://unpkg.com/@riil-frontend/component-topology@3.0.0/build/index.html",
|
|
114
114
|
"gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
|
|
115
115
|
}
|