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.
@@ -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: 2023-09-19 14:25:54
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: 2023-08-29 14:14:49
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-24 09:24:26
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: 2023-11-30 10:25:51
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;
@@ -66,6 +66,7 @@
66
66
  font-size: 14px;
67
67
  cursor: pointer;
68
68
  transform: translateZ(0);
69
+ z-index: 1000;
69
70
  }
70
71
  }
71
72
  }
@@ -11,4 +11,5 @@
11
11
  .x6-widget-selection-box {
12
12
  border: none !important;
13
13
  box-shadow: none !important;
14
+ position: static !important;
14
15
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "public": true,
3
3
  "name": "ronds-metadata",
4
- "version": "1.3.29",
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
+ }