@riil-frontend/component-topology 6.0.0-alpha.61 → 6.0.0-alpha.62
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.js +1 -1
- package/es/core/editor/components/Toolbar/widgets/components/textStyleSetting/ElementTextStyleSetting/colorUtil.js +2 -2
- package/es/core/editor/components/Toolbar/widgets/components/textStyleSetting/GlobalTagStyleSetting/GlobalTagStyleSetting.js +5 -2
- package/es/core/editor/config/themes.js +2 -2
- package/es/core/models/TopoApp.js +1 -1
- package/lib/core/editor/components/Toolbar/widgets/components/textStyleSetting/ElementTextStyleSetting/colorUtil.js +2 -2
- package/lib/core/editor/components/Toolbar/widgets/components/textStyleSetting/GlobalTagStyleSetting/GlobalTagStyleSetting.js +5 -2
- package/lib/core/editor/config/themes.js +2 -2
- package/lib/core/models/TopoApp.js +1 -1
- package/package.json +2 -2
@@ -45,8 +45,8 @@ export function formatRgbaColor(color) {
|
|
45
45
|
}
|
46
46
|
/**
|
47
47
|
* 格式化背景rgba颜色
|
48
|
-
* @param {{background, opacity}} prevColor
|
49
|
-
* @param {{background, opacity}} currentColor
|
48
|
+
* @param {{background, opacity}} prevColor 原值
|
49
|
+
* @param {{background, opacity}} currentColor 新值
|
50
50
|
*/
|
51
51
|
|
52
52
|
export function formatBackgroundRgbaColor(prevColor, currentColor) {
|
@@ -11,9 +11,12 @@ function GlobalTagStyleSetting(props) {
|
|
11
11
|
var topo = props.topo;
|
12
12
|
|
13
13
|
var Component = props.Component,
|
14
|
-
widgetProps = _objectWithoutPropertiesLoose(props, _excluded);
|
14
|
+
widgetProps = _objectWithoutPropertiesLoose(props, _excluded); // const values = useValues(topo)
|
15
15
|
|
16
|
-
|
16
|
+
|
17
|
+
var values = useMemo(function () {
|
18
|
+
return {};
|
19
|
+
}, []);
|
17
20
|
var setStyle = useMemo(function () {
|
18
21
|
return function (style) {
|
19
22
|
return setGlobalTagStyle(topo, style);
|
@@ -3,7 +3,7 @@ var baseLightTheme = {
|
|
3
3
|
color: '#FFFFFF',
|
4
4
|
globalNodeLabelColor: '#4d6277',
|
5
5
|
globalEdgeTagStyle: {
|
6
|
-
color: '#
|
6
|
+
color: '#777B9A',
|
7
7
|
background: '#FFFFFF',
|
8
8
|
// 背景色,不传使用默认内置 @V1.2
|
9
9
|
borderColor: '#CBCBCB' // 边框颜色,不传使用默认内置。用于主题切换 @V1.2
|
@@ -18,7 +18,7 @@ var baseLightTheme = {
|
|
18
18
|
// 标题背景颜色
|
19
19
|
'group.title.color': '#4D6277',
|
20
20
|
// 标题文字颜色
|
21
|
-
'group.background': 'rgba(
|
21
|
+
'group.background': 'rgba(255, 255, 255, 0.9)',
|
22
22
|
'group.border.color': '#E4E9EE' // 边框颜色
|
23
23
|
|
24
24
|
}
|
@@ -23,7 +23,7 @@ import topoFactory from "./topoFactory";
|
|
23
23
|
import ElementTagTipConfig from "./tagstips/ElementTagTipConfig";
|
24
24
|
import SelectionModel from "./SelectionModel"; // eslint-disable-next-line no-undef
|
25
25
|
|
26
|
-
var version = typeof "6.0.0-alpha.
|
26
|
+
var version = typeof "6.0.0-alpha.62" === 'string' ? "6.0.0-alpha.62" : null;
|
27
27
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
28
28
|
/**
|
29
29
|
* 拓扑显示和编辑
|
@@ -59,8 +59,8 @@ function formatRgbaColor(color) {
|
|
59
59
|
}
|
60
60
|
/**
|
61
61
|
* 格式化背景rgba颜色
|
62
|
-
* @param {{background, opacity}} prevColor
|
63
|
-
* @param {{background, opacity}} currentColor
|
62
|
+
* @param {{background, opacity}} prevColor 原值
|
63
|
+
* @param {{background, opacity}} currentColor 新值
|
64
64
|
*/
|
65
65
|
|
66
66
|
|
@@ -26,8 +26,11 @@ var fieldDisabled = {
|
|
26
26
|
function GlobalTagStyleSetting(props) {
|
27
27
|
var topo = props.topo;
|
28
28
|
var Component = props.Component,
|
29
|
-
widgetProps = (0, _objectWithoutPropertiesLoose2["default"])(props, _excluded);
|
30
|
-
|
29
|
+
widgetProps = (0, _objectWithoutPropertiesLoose2["default"])(props, _excluded); // const values = useValues(topo)
|
30
|
+
|
31
|
+
var values = (0, _react.useMemo)(function () {
|
32
|
+
return {};
|
33
|
+
}, []);
|
31
34
|
var setStyle = (0, _react.useMemo)(function () {
|
32
35
|
return function (style) {
|
33
36
|
return (0, _globalTag.setGlobalTagStyle)(topo, style);
|
@@ -11,7 +11,7 @@ var baseLightTheme = {
|
|
11
11
|
color: '#FFFFFF',
|
12
12
|
globalNodeLabelColor: '#4d6277',
|
13
13
|
globalEdgeTagStyle: {
|
14
|
-
color: '#
|
14
|
+
color: '#777B9A',
|
15
15
|
background: '#FFFFFF',
|
16
16
|
// 背景色,不传使用默认内置 @V1.2
|
17
17
|
borderColor: '#CBCBCB' // 边框颜色,不传使用默认内置。用于主题切换 @V1.2
|
@@ -26,7 +26,7 @@ var baseLightTheme = {
|
|
26
26
|
// 标题背景颜色
|
27
27
|
'group.title.color': '#4D6277',
|
28
28
|
// 标题文字颜色
|
29
|
-
'group.background': 'rgba(
|
29
|
+
'group.background': 'rgba(255, 255, 255, 0.9)',
|
30
30
|
'group.border.color': '#E4E9EE' // 边框颜色
|
31
31
|
|
32
32
|
}
|
@@ -54,7 +54,7 @@ var _ElementTagTipConfig = _interopRequireDefault(require("./tagstips/ElementTag
|
|
54
54
|
var _SelectionModel = _interopRequireDefault(require("./SelectionModel"));
|
55
55
|
|
56
56
|
// eslint-disable-next-line no-undef
|
57
|
-
var version = typeof "6.0.0-alpha.
|
57
|
+
var version = typeof "6.0.0-alpha.62" === 'string' ? "6.0.0-alpha.62" : null;
|
58
58
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
59
59
|
/**
|
60
60
|
* 拓扑显示和编辑
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@riil-frontend/component-topology",
|
3
|
-
"version": "6.0.0-alpha.
|
3
|
+
"version": "6.0.0-alpha.62",
|
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@6.0.0-alpha.
|
119
|
+
"homepage": "https://unpkg.com/@riil-frontend/component-topology@6.0.0-alpha.62/build/index.html",
|
120
120
|
"gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
|
121
121
|
}
|