@riil-frontend/component-topology 10.0.15 → 10.0.16
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.css +1 -1
- package/build/index.js +7 -7
- package/es/components/ColorPanel/components/FontColorRange/index.module.scss +1 -0
- package/es/core/editor/components/Toolbar/widgets/BoxBackgroundButton/BoxBackgroundSetting.js +3 -3
- package/es/core/editor/components/Toolbar/widgets/BoxBackgroundButton/BoxbackgroundSettings.module.scss +4 -5
- package/es/core/editor/components/Toolbar/widgets/EdgeTypeButton/EdgeType.js +1 -1
- package/es/core/editor/components/settings/common/AlignSetting/AlignTypeList.js +16 -13
- package/es/core/editor/utils/edgeTypeStyleUtil.js +1 -0
- package/es/core/models/TopoApp.js +1 -1
- package/lib/components/ColorPanel/components/FontColorRange/index.module.scss +1 -0
- package/lib/core/editor/components/Toolbar/widgets/BoxBackgroundButton/BoxBackgroundSetting.js +3 -3
- package/lib/core/editor/components/Toolbar/widgets/BoxBackgroundButton/BoxbackgroundSettings.module.scss +4 -5
- package/lib/core/editor/components/Toolbar/widgets/EdgeTypeButton/EdgeType.js +1 -1
- package/lib/core/editor/components/settings/common/AlignSetting/AlignTypeList.js +17 -13
- package/lib/core/editor/utils/edgeTypeStyleUtil.js +1 -0
- package/lib/core/models/TopoApp.js +1 -1
- package/package.json +2 -2
package/es/core/editor/components/Toolbar/widgets/BoxBackgroundButton/BoxBackgroundSetting.js
CHANGED
@@ -189,7 +189,7 @@ function BoxBackgroundSetting(props) {
|
|
189
189
|
max: 10,
|
190
190
|
min: 1,
|
191
191
|
unit: "px",
|
192
|
-
list: [
|
192
|
+
list: [1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
|
193
193
|
onChange: borderWidthChange,
|
194
194
|
defaultValue: width ? width : 0
|
195
195
|
})), /*#__PURE__*/React.createElement("div", {
|
@@ -216,7 +216,7 @@ function BoxBackgroundSetting(props) {
|
|
216
216
|
className: styles.leftInput,
|
217
217
|
value: leftInputVal,
|
218
218
|
min: 0,
|
219
|
-
max:
|
219
|
+
max: 20,
|
220
220
|
onChange: leftInputChange
|
221
221
|
}), /*#__PURE__*/React.createElement("span", {
|
222
222
|
className: styles.backOpacityLable
|
@@ -228,7 +228,7 @@ function BoxBackgroundSetting(props) {
|
|
228
228
|
className: styles.rightInput,
|
229
229
|
value: rightInputVal,
|
230
230
|
min: 0,
|
231
|
-
max:
|
231
|
+
max: 20,
|
232
232
|
onChange: rightInputChange
|
233
233
|
})), /*#__PURE__*/React.createElement("div", {
|
234
234
|
style: {
|
@@ -1,5 +1,8 @@
|
|
1
|
+
@import "@alifd/next/variables";
|
2
|
+
|
1
3
|
.content {
|
2
4
|
margin: 4px 0px 0px 6px;
|
5
|
+
color:$color-text1-4;
|
3
6
|
.fontColor{
|
4
7
|
width: 100%;
|
5
8
|
margin-bottom: 16px;
|
@@ -11,7 +14,6 @@
|
|
11
14
|
font-size: 12px;
|
12
15
|
font-family: PingFangSC-Regular, PingFang SC;
|
13
16
|
font-weight: 400;
|
14
|
-
color: #4D6277;
|
15
17
|
line-height: 17px;
|
16
18
|
}
|
17
19
|
|
@@ -25,10 +27,8 @@
|
|
25
27
|
}
|
26
28
|
&>span{
|
27
29
|
font-size: 12px;
|
28
|
-
color: black;
|
29
30
|
font-family: PingFangSC-Regular, PingFang SC;
|
30
31
|
font-weight: 400;
|
31
|
-
color: #4D6277;
|
32
32
|
line-height: 17px;
|
33
33
|
}
|
34
34
|
.backOpacity{
|
@@ -49,10 +49,8 @@
|
|
49
49
|
}
|
50
50
|
&>span{
|
51
51
|
font-size: 12px;
|
52
|
-
color: black;
|
53
52
|
font-family: PingFangSC-Regular, PingFang SC;
|
54
53
|
font-weight: 400;
|
55
|
-
color: #4D6277;
|
56
54
|
line-height: 17px;
|
57
55
|
}
|
58
56
|
.borderWidth{
|
@@ -72,6 +70,7 @@
|
|
72
70
|
margin-left: 16px;
|
73
71
|
line-height: 22px;
|
74
72
|
margin-right: 5px;
|
73
|
+
color:$color-text1-6;
|
75
74
|
}
|
76
75
|
:global{
|
77
76
|
.next-number-picker-normal.next-small{
|
@@ -82,7 +82,7 @@ function getValuesByEdges(topo) {
|
|
82
82
|
edgeValues.push({
|
83
83
|
baseAgreement: false,
|
84
84
|
//,
|
85
|
-
lineButton: edge.s('edge.type'),
|
85
|
+
lineButton: edge.a('edge.type.name') || edge.s('edge.type'),
|
86
86
|
startPoint: getStartPoint(edge),
|
87
87
|
endPoint: getEndPoint(edge),
|
88
88
|
lineMold: edge.a('lineMode') || 'solidLine'
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import _Balloon from "@alifd/next/es/balloon";
|
1
2
|
import _Button from "@alifd/next/es/button";
|
2
3
|
import _Icon from "@alifd/next/es/icon";
|
3
4
|
import _Divider from "@alifd/next/es/divider";
|
@@ -61,19 +62,21 @@ var AlignTypeList = function AlignTypeList(props) {
|
|
61
62
|
return item.value === 'divide' ? /*#__PURE__*/React.createElement(_Divider, {
|
62
63
|
key: index,
|
63
64
|
direction: "ver"
|
64
|
-
}) : /*#__PURE__*/React.createElement(
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
65
|
+
}) : /*#__PURE__*/React.createElement(_Balloon.Tooltip, {
|
66
|
+
trigger: /*#__PURE__*/React.createElement(_Button, {
|
67
|
+
key: index,
|
68
|
+
className: "" + styles.redioBtn,
|
69
|
+
text: true,
|
70
|
+
onClick: function onClick() {
|
71
|
+
handleChange(item);
|
72
|
+
} // eslint-disable-next-line no-unneeded-ternary
|
73
|
+
,
|
74
|
+
disabled: (item.value === 'distributeHorizontal' || item.value === 'distributeVertical') && distributionDisabled
|
75
|
+
}, /*#__PURE__*/React.createElement(_Icon, {
|
76
|
+
type: item.icon
|
77
|
+
})),
|
78
|
+
align: "b"
|
79
|
+
}, item.label);
|
77
80
|
}));
|
78
81
|
};
|
79
82
|
|
@@ -24,7 +24,7 @@ import ElementTagTipConfig from "./tagstips/ElementTagTipConfig";
|
|
24
24
|
import SelectionModel from "./SelectionModel";
|
25
25
|
import CiCache from "./cache/CiCache"; // eslint-disable-next-line no-undef
|
26
26
|
|
27
|
-
var version = typeof "10.0.
|
27
|
+
var version = typeof "10.0.16" === 'string' ? "10.0.16" : null;
|
28
28
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
29
29
|
/**
|
30
30
|
* 拓扑显示和编辑
|
package/lib/core/editor/components/Toolbar/widgets/BoxBackgroundButton/BoxBackgroundSetting.js
CHANGED
@@ -206,7 +206,7 @@ function BoxBackgroundSetting(props) {
|
|
206
206
|
max: 10,
|
207
207
|
min: 1,
|
208
208
|
unit: "px",
|
209
|
-
list: [
|
209
|
+
list: [1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
|
210
210
|
onChange: borderWidthChange,
|
211
211
|
defaultValue: width ? width : 0
|
212
212
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
@@ -233,7 +233,7 @@ function BoxBackgroundSetting(props) {
|
|
233
233
|
className: _BoxbackgroundSettingsModule["default"].leftInput,
|
234
234
|
value: leftInputVal,
|
235
235
|
min: 0,
|
236
|
-
max:
|
236
|
+
max: 20,
|
237
237
|
onChange: leftInputChange
|
238
238
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
239
239
|
className: _BoxbackgroundSettingsModule["default"].backOpacityLable
|
@@ -245,7 +245,7 @@ function BoxBackgroundSetting(props) {
|
|
245
245
|
className: _BoxbackgroundSettingsModule["default"].rightInput,
|
246
246
|
value: rightInputVal,
|
247
247
|
min: 0,
|
248
|
-
max:
|
248
|
+
max: 20,
|
249
249
|
onChange: rightInputChange
|
250
250
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
251
251
|
style: {
|
@@ -1,5 +1,8 @@
|
|
1
|
+
@import "@alifd/next/variables";
|
2
|
+
|
1
3
|
.content {
|
2
4
|
margin: 4px 0px 0px 6px;
|
5
|
+
color:$color-text1-4;
|
3
6
|
.fontColor{
|
4
7
|
width: 100%;
|
5
8
|
margin-bottom: 16px;
|
@@ -11,7 +14,6 @@
|
|
11
14
|
font-size: 12px;
|
12
15
|
font-family: PingFangSC-Regular, PingFang SC;
|
13
16
|
font-weight: 400;
|
14
|
-
color: #4D6277;
|
15
17
|
line-height: 17px;
|
16
18
|
}
|
17
19
|
|
@@ -25,10 +27,8 @@
|
|
25
27
|
}
|
26
28
|
&>span{
|
27
29
|
font-size: 12px;
|
28
|
-
color: black;
|
29
30
|
font-family: PingFangSC-Regular, PingFang SC;
|
30
31
|
font-weight: 400;
|
31
|
-
color: #4D6277;
|
32
32
|
line-height: 17px;
|
33
33
|
}
|
34
34
|
.backOpacity{
|
@@ -49,10 +49,8 @@
|
|
49
49
|
}
|
50
50
|
&>span{
|
51
51
|
font-size: 12px;
|
52
|
-
color: black;
|
53
52
|
font-family: PingFangSC-Regular, PingFang SC;
|
54
53
|
font-weight: 400;
|
55
|
-
color: #4D6277;
|
56
54
|
line-height: 17px;
|
57
55
|
}
|
58
56
|
.borderWidth{
|
@@ -72,6 +70,7 @@
|
|
72
70
|
margin-left: 16px;
|
73
71
|
line-height: 22px;
|
74
72
|
margin-right: 5px;
|
73
|
+
color:$color-text1-6;
|
75
74
|
}
|
76
75
|
:global{
|
77
76
|
.next-number-picker-normal.next-small{
|
@@ -100,7 +100,7 @@ function getValuesByEdges(topo) {
|
|
100
100
|
edgeValues.push({
|
101
101
|
baseAgreement: false,
|
102
102
|
//,
|
103
|
-
lineButton: edge.s('edge.type'),
|
103
|
+
lineButton: edge.a('edge.type.name') || edge.s('edge.type'),
|
104
104
|
startPoint: getStartPoint(edge),
|
105
105
|
endPoint: getEndPoint(edge),
|
106
106
|
lineMold: edge.a('lineMode') || 'solidLine'
|
@@ -5,6 +5,8 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
5
5
|
exports.__esModule = true;
|
6
6
|
exports["default"] = void 0;
|
7
7
|
|
8
|
+
var _balloon = _interopRequireDefault(require("@alifd/next/lib/balloon"));
|
9
|
+
|
8
10
|
var _button = _interopRequireDefault(require("@alifd/next/lib/button"));
|
9
11
|
|
10
12
|
var _icon = _interopRequireDefault(require("@alifd/next/lib/icon"));
|
@@ -77,19 +79,21 @@ var AlignTypeList = function AlignTypeList(props) {
|
|
77
79
|
return item.value === 'divide' ? /*#__PURE__*/_react["default"].createElement(_divider["default"], {
|
78
80
|
key: index,
|
79
81
|
direction: "ver"
|
80
|
-
}) : /*#__PURE__*/_react["default"].createElement(
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
82
|
+
}) : /*#__PURE__*/_react["default"].createElement(_balloon["default"].Tooltip, {
|
83
|
+
trigger: /*#__PURE__*/_react["default"].createElement(_button["default"], {
|
84
|
+
key: index,
|
85
|
+
className: "" + _AlignSettingModule["default"].redioBtn,
|
86
|
+
text: true,
|
87
|
+
onClick: function onClick() {
|
88
|
+
handleChange(item);
|
89
|
+
} // eslint-disable-next-line no-unneeded-ternary
|
90
|
+
,
|
91
|
+
disabled: (item.value === 'distributeHorizontal' || item.value === 'distributeVertical') && distributionDisabled
|
92
|
+
}, /*#__PURE__*/_react["default"].createElement(_icon["default"], {
|
93
|
+
type: item.icon
|
94
|
+
})),
|
95
|
+
align: "b"
|
96
|
+
}, item.label);
|
93
97
|
}));
|
94
98
|
};
|
95
99
|
|
@@ -56,7 +56,7 @@ var _SelectionModel = _interopRequireDefault(require("./SelectionModel"));
|
|
56
56
|
var _CiCache = _interopRequireDefault(require("./cache/CiCache"));
|
57
57
|
|
58
58
|
// eslint-disable-next-line no-undef
|
59
|
-
var version = typeof "10.0.
|
59
|
+
var version = typeof "10.0.16" === 'string' ? "10.0.16" : null;
|
60
60
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
61
61
|
/**
|
62
62
|
* 拓扑显示和编辑
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@riil-frontend/component-topology",
|
3
|
-
"version": "10.0.
|
3
|
+
"version": "10.0.16",
|
4
4
|
"description": "拓扑",
|
5
5
|
"scripts": {
|
6
6
|
"start": "build-scripts start",
|
@@ -116,6 +116,6 @@
|
|
116
116
|
"access": "public"
|
117
117
|
},
|
118
118
|
"license": "MIT",
|
119
|
-
"homepage": "https://unpkg.com/@riil-frontend/component-topology@10.0.
|
119
|
+
"homepage": "https://unpkg.com/@riil-frontend/component-topology@10.0.16/build/index.html",
|
120
120
|
"gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
|
121
121
|
}
|