@riil-frontend/component-topology 5.0.16 → 5.0.17
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.
|
@@ -7,10 +7,10 @@ import rlog from '@riil-frontend/component-topology-utils/es/rlog';
|
|
|
7
7
|
|
|
8
8
|
function useSelection(props) {
|
|
9
9
|
var topo = props.topo;
|
|
10
|
-
var selectionDispatchers = topo.store.useModelDispatchers('selection');
|
|
11
10
|
var removeListenerRef = useRef(null);
|
|
12
11
|
|
|
13
12
|
var setSelection = function setSelection(selection) {
|
|
13
|
+
var selectionDispatchers = topo.store.getModelDispatchers('selection');
|
|
14
14
|
selectionDispatchers.update({
|
|
15
15
|
selection: selection
|
|
16
16
|
});
|
|
@@ -21,7 +21,7 @@ import PluginManager from "./PluginManager";
|
|
|
21
21
|
import topoFactory from "./topoFactory";
|
|
22
22
|
import ElementTagTipConfig from "./tagstips/ElementTagTipConfig"; // eslint-disable-next-line no-undef
|
|
23
23
|
|
|
24
|
-
var version = typeof "5.0.
|
|
24
|
+
var version = typeof "5.0.17" === 'string' ? "5.0.17" : null;
|
|
25
25
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
|
26
26
|
/**
|
|
27
27
|
* 拓扑显示和编辑
|
|
@@ -16,10 +16,10 @@ var _rlog = _interopRequireDefault(require("@riil-frontend/component-topology-ut
|
|
|
16
16
|
*/
|
|
17
17
|
function useSelection(props) {
|
|
18
18
|
var topo = props.topo;
|
|
19
|
-
var selectionDispatchers = topo.store.useModelDispatchers('selection');
|
|
20
19
|
var removeListenerRef = (0, _react.useRef)(null);
|
|
21
20
|
|
|
22
21
|
var setSelection = function setSelection(selection) {
|
|
22
|
+
var selectionDispatchers = topo.store.getModelDispatchers('selection');
|
|
23
23
|
selectionDispatchers.update({
|
|
24
24
|
selection: selection
|
|
25
25
|
});
|
|
@@ -50,7 +50,7 @@ var _topoFactory = _interopRequireDefault(require("./topoFactory"));
|
|
|
50
50
|
var _ElementTagTipConfig = _interopRequireDefault(require("./tagstips/ElementTagTipConfig"));
|
|
51
51
|
|
|
52
52
|
// eslint-disable-next-line no-undef
|
|
53
|
-
var version = typeof "5.0.
|
|
53
|
+
var version = typeof "5.0.17" === 'string' ? "5.0.17" : null;
|
|
54
54
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
|
55
55
|
/**
|
|
56
56
|
* 拓扑显示和编辑
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riil-frontend/component-topology",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.17",
|
|
4
4
|
"description": "拓扑",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "build-scripts start",
|
|
@@ -115,6 +115,6 @@
|
|
|
115
115
|
"access": "public"
|
|
116
116
|
},
|
|
117
117
|
"license": "MIT",
|
|
118
|
-
"homepage": "https://unpkg.com/@riil-frontend/component-topology@5.0.
|
|
118
|
+
"homepage": "https://unpkg.com/@riil-frontend/component-topology@5.0.17/build/index.html",
|
|
119
119
|
"gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
|
|
120
120
|
}
|