ronds-metadata 1.3.15 → 1.3.17
Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,7 @@ import React from "react";
|
|
4
4
|
/*
|
5
5
|
* @Author: wangxian
|
6
6
|
* @Date: 2022-05-26 08:50:06
|
7
|
-
* @LastEditTime: 2023-09-
|
7
|
+
* @LastEditTime: 2023-09-19 14:08:18
|
8
8
|
*/
|
9
9
|
import { DragSource } from 'react-dnd';
|
10
10
|
import { GlobalOutlined } from '@ant-design/icons';
|
@@ -22,7 +22,7 @@ var InnerNodeTitle = function InnerNodeTitle(props) {
|
|
22
22
|
width: '100%'
|
23
23
|
}
|
24
24
|
}, /*#__PURE__*/React.createElement(_Tooltip, {
|
25
|
-
title: (data === null || data === void 0 ? void 0 : (_data$param = data.param) === null || _data$param === void 0 ? void 0 : _data$param.
|
25
|
+
title: (data === null || data === void 0 ? void 0 : (_data$param = data.param) === null || _data$param === void 0 ? void 0 : _data$param.readme) ? /*#__PURE__*/React.createElement("div", {
|
26
26
|
style: {
|
27
27
|
maxHeight: '200px',
|
28
28
|
whiteSpace: 'pre-line',
|
@@ -30,7 +30,7 @@ var InnerNodeTitle = function InnerNodeTitle(props) {
|
|
30
30
|
overflowX: 'hidden',
|
31
31
|
wordBreak: 'break-all'
|
32
32
|
}
|
33
|
-
}, /*#__PURE__*/React.createElement("span", null, data === null || data === void 0 ? void 0 : (_data$param2 = data.param) === null || _data$param2 === void 0 ? void 0 : _data$param2.
|
33
|
+
}, /*#__PURE__*/React.createElement("span", null, data === null || data === void 0 ? void 0 : (_data$param2 = data.param) === null || _data$param2 === void 0 ? void 0 : _data$param2.readme)) : undefined
|
34
34
|
}, /*#__PURE__*/React.createElement("div", {
|
35
35
|
className: "icon",
|
36
36
|
style: {
|
@@ -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-
|
10
|
+
* @LastEditTime: 2023-09-19 14:25:54
|
11
11
|
*/
|
12
12
|
import { GlobalOutlined } from '@ant-design/icons';
|
13
13
|
import { filter } from 'rxjs/operators';
|
@@ -73,7 +73,7 @@ var NodeElement = function NodeElement(props) {
|
|
73
73
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
74
74
|
className: "node-element"
|
75
75
|
}, /*#__PURE__*/React.createElement(_Tooltip, {
|
76
|
-
title: (param === null || param === void 0 ? void 0 : param.remark) ? /*#__PURE__*/React.createElement("div", {
|
76
|
+
title: (param === null || param === void 0 ? void 0 : param.remark) !== name ? /*#__PURE__*/React.createElement("div", {
|
77
77
|
style: {
|
78
78
|
maxHeight: '200px',
|
79
79
|
whiteSpace: 'pre-line',
|
@@ -6,7 +6,7 @@ var _excluded = ["wrapper", "container", "nodes", "edges"];
|
|
6
6
|
/*
|
7
7
|
* @Author: wangxian
|
8
8
|
* @Date: 2022-05-24 13:55:44
|
9
|
-
* @LastEditTime: 2023-
|
9
|
+
* @LastEditTime: 2023-09-19 19:26:19
|
10
10
|
*/
|
11
11
|
import { Graph } from '@antv/x6';
|
12
12
|
import { debounceTime, fromEventPattern, map, merge, scan, tap } from 'rxjs';
|
@@ -340,7 +340,8 @@ export var GraphCore = /*#__PURE__*/function () {
|
|
340
340
|
var height = wrapper.clientHeight;
|
341
341
|
var graph = new Graph(_objectSpread(_objectSpread({}, options), {}, {
|
342
342
|
width: width,
|
343
|
-
height: height
|
343
|
+
height: height,
|
344
|
+
snapline: true
|
344
345
|
}));
|
345
346
|
this.graph = graph;
|
346
347
|
nodeMetas.forEach(function (nodeMeta) {
|