ronds-metadata 1.3.29 → 1.3.30
Sign up to get free protection for your applications and to get access to all the features.
- package/es/comps/DynamicPorts/comps/NodeElement.js +1 -1
- package/es/comps/DynamicPorts/comps/NodeStatus.js +6 -2
- package/es/comps/DynamicPorts/graph.d.ts +1 -1
- package/es/comps/DynamicPorts/graph.js +4 -2
- package/es/comps/DynamicPorts/index.js +2 -2
- package/es/comps/DynamicPorts/index.less +1 -0
- package/es/framework/graph/index.less +1 -0
- package/package.json +2 -2
@@ -7,7 +7,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
7
7
|
/*
|
8
8
|
* @Author: wangxian
|
9
9
|
* @Date: 2022-05-24 08:50:16
|
10
|
-
* @LastEditTime:
|
10
|
+
* @LastEditTime: 2024-02-01 15:14:11
|
11
11
|
*/
|
12
12
|
import { GlobalOutlined } from '@ant-design/icons';
|
13
13
|
import { filter } from 'rxjs/operators';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*
|
2
2
|
* @Author: wangxian
|
3
3
|
* @Date: 2023-08-22 14:00:47
|
4
|
-
* @LastEditTime:
|
4
|
+
* @LastEditTime: 2024-02-01 14:02:14
|
5
5
|
*/
|
6
6
|
import React from 'react';
|
7
7
|
import { CheckCircleOutlined, CloseCircleOutlined, SyncOutlined, LineChartOutlined } from '@ant-design/icons';
|
@@ -33,7 +33,11 @@ export var NodeStatus = function NodeStatus(props) {
|
|
33
33
|
var color = '#2ecc71';
|
34
34
|
return /*#__PURE__*/React.createElement("div", {
|
35
35
|
className: className,
|
36
|
-
onClick: onClick
|
36
|
+
onClick: onClick,
|
37
|
+
style: {
|
38
|
+
zIndex: 1000,
|
39
|
+
cursor: 'pointer'
|
40
|
+
}
|
37
41
|
}, /*#__PURE__*/React.createElement(CheckCircleOutlined, {
|
38
42
|
style: {
|
39
43
|
color: color
|
@@ -85,4 +85,4 @@ declare class DPGraph extends GraphCore<BaseNode, BaseEdge> {
|
|
85
85
|
export declare let gDPGraph: DPGraph;
|
86
86
|
export default DPGraph;
|
87
87
|
export declare const useDPGraph: (graphData?: NDPGraph.GraphData) => DPGraph;
|
88
|
-
export declare const useUnmountDPGraph: (dispose: boolean) => void;
|
88
|
+
export declare const useUnmountDPGraph: (dispose: boolean, dpGraph: any) => void;
|
@@ -16,7 +16,7 @@ import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
16
16
|
/*
|
17
17
|
* @Author: wangxian
|
18
18
|
* @Date: 2022-05-24 14:31:01
|
19
|
-
* @LastEditTime: 2024-01
|
19
|
+
* @LastEditTime: 2024-02-01 15:08:03
|
20
20
|
*/
|
21
21
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
22
22
|
import produce from 'immer';
|
@@ -903,12 +903,14 @@ export var useDPGraph = function useDPGraph(graphData) {
|
|
903
903
|
gDPGraph = new DPGraph(graphData);
|
904
904
|
return gDPGraph;
|
905
905
|
};
|
906
|
-
export var useUnmountDPGraph = function useUnmountDPGraph(dispose) {
|
906
|
+
export var useUnmountDPGraph = function useUnmountDPGraph(dispose, dpGraph) {
|
907
907
|
React.useEffect(function () {
|
908
908
|
return function () {
|
909
909
|
if (dispose) {
|
910
910
|
gDPGraph.dispose();
|
911
911
|
}
|
912
|
+
dpGraph === null || dpGraph === void 0 ? void 0 : dpGraph.factory$.executionStatus.next({});
|
913
|
+
dpGraph === null || dpGraph === void 0 ? void 0 : dpGraph.stopRunGraph();
|
912
914
|
};
|
913
915
|
}, [dispose]);
|
914
916
|
};
|
@@ -3,7 +3,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
3
|
/*
|
4
4
|
* @Author: wangxian
|
5
5
|
* @Date: 2022-05-16 18:53:31
|
6
|
-
* @LastEditTime:
|
6
|
+
* @LastEditTime: 2024-02-01 14:44:28
|
7
7
|
*/
|
8
8
|
import React from 'react';
|
9
9
|
import { filter } from 'rxjs';
|
@@ -36,7 +36,7 @@ var DynamicPorts = function DynamicPorts(props) {
|
|
36
36
|
var dpGraphRef = React.useRef();
|
37
37
|
var firstLoadRef = React.useRef(true);
|
38
38
|
// 处理画布卸载
|
39
|
-
useUnmountDPGraph(dispose);
|
39
|
+
useUnmountDPGraph(dispose, dpGraphRef.current);
|
40
40
|
var resizeSensorRef = React.useRef(null);
|
41
41
|
var onResizeStrategy = function onResizeStrategy() {
|
42
42
|
var _dpGraphRef$current, _dpGraphRef$current2;
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"public": true,
|
3
3
|
"name": "ronds-metadata",
|
4
|
-
"version": "1.3.
|
4
|
+
"version": "1.3.30",
|
5
5
|
"scripts": {
|
6
6
|
"start": "dumi dev",
|
7
7
|
"docs:build": "dumi build",
|
@@ -112,4 +112,4 @@
|
|
112
112
|
"webpack-cli": "^3.3.12",
|
113
113
|
"yorkie": "^2.0.0"
|
114
114
|
}
|
115
|
-
}
|
115
|
+
}
|