@riil-frontend/component-topology 10.0.21 → 10.0.22
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/config/themes.js +2 -6
- package/es/core/hooks/useCanvasTheme.js +3 -8
- package/es/core/models/TopoApp.js +1 -1
- package/lib/core/editor/config/themes.js +2 -6
- package/lib/core/hooks/useCanvasTheme.js +3 -8
- package/lib/core/models/TopoApp.js +1 -1
- package/package.json +2 -2
@@ -44,13 +44,11 @@ var baseLightTheme = {
|
|
44
44
|
var THEMES = [_extends({}, baseLightTheme, {
|
45
45
|
name: 'white',
|
46
46
|
label: '白色',
|
47
|
-
color: '#FFFFFF'
|
48
|
-
toolsTheme: 'lightgrayblue'
|
47
|
+
color: '#FFFFFF'
|
49
48
|
}), _extends({}, baseLightTheme, {
|
50
49
|
name: 'lightblue',
|
51
50
|
label: '蓝色',
|
52
|
-
color: '#F9FBFF'
|
53
|
-
toolsTheme: 'white'
|
51
|
+
color: '#F9FBFF'
|
54
52
|
}), // {
|
55
53
|
// name: 'yellow',
|
56
54
|
// label: '黄色',
|
@@ -65,7 +63,6 @@ var THEMES = [_extends({}, baseLightTheme, {
|
|
65
63
|
name: 'dark',
|
66
64
|
label: '深色',
|
67
65
|
color: '#031425',
|
68
|
-
toolsTheme: 'black',
|
69
66
|
globalNodeLabelStyle: {
|
70
67
|
color: '#ffffff'
|
71
68
|
},
|
@@ -108,7 +105,6 @@ var THEMES = [_extends({}, baseLightTheme, {
|
|
108
105
|
}, {
|
109
106
|
name: 'poly',
|
110
107
|
label: 'Poly',
|
111
|
-
toolsTheme: 'black',
|
112
108
|
backgroundImage: '/img/topo/themes/poly.png',
|
113
109
|
backgroundImageThumbnail: '/img/topo/themes/poly_thumbnail.png',
|
114
110
|
globalNodeLabelStyle: {
|
@@ -3,13 +3,11 @@ import React, { useEffect } from 'react';
|
|
3
3
|
var themeMap = [{
|
4
4
|
name: 'white',
|
5
5
|
label: '白色',
|
6
|
-
color: null
|
7
|
-
toolsTheme: 'white'
|
6
|
+
color: null
|
8
7
|
}, {
|
9
8
|
name: 'lightblue',
|
10
9
|
label: '蓝色',
|
11
|
-
color: '#F9FBFF'
|
12
|
-
toolsTheme: 'white'
|
10
|
+
color: '#F9FBFF'
|
13
11
|
}, {
|
14
12
|
name: 'yellow',
|
15
13
|
label: '黄色',
|
@@ -21,12 +19,10 @@ var themeMap = [{
|
|
21
19
|
}, {
|
22
20
|
name: 'dark',
|
23
21
|
label: '深色',
|
24
|
-
color: '#031425'
|
25
|
-
toolsTheme: 'dark'
|
22
|
+
color: '#031425'
|
26
23
|
}, {
|
27
24
|
name: 'poly',
|
28
25
|
label: 'Poly',
|
29
|
-
toolsTheme: 'dark',
|
30
26
|
backgroundImage: '/img/topo/themes/poly.png'
|
31
27
|
}].reduce(function (map, item) {
|
32
28
|
var _extends2;
|
@@ -49,7 +45,6 @@ export default function useCanvasTheme(props) {
|
|
49
45
|
if (graphLoaded && themeConfig) {
|
50
46
|
try {
|
51
47
|
topo.getHtTopo().setTheme(themeName);
|
52
|
-
topo.getHtTopo().setToolsTheme(themeConfig.toolsTheme);
|
53
48
|
} catch (error) {
|
54
49
|
console.error('切换主题失败', error);
|
55
50
|
}
|
@@ -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.22" === 'string' ? "10.0.22" : null;
|
28
28
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
29
29
|
/**
|
30
30
|
* 拓扑显示和编辑
|
@@ -52,13 +52,11 @@ var baseLightTheme = {
|
|
52
52
|
var THEMES = [(0, _extends2["default"])({}, baseLightTheme, {
|
53
53
|
name: 'white',
|
54
54
|
label: '白色',
|
55
|
-
color: '#FFFFFF'
|
56
|
-
toolsTheme: 'lightgrayblue'
|
55
|
+
color: '#FFFFFF'
|
57
56
|
}), (0, _extends2["default"])({}, baseLightTheme, {
|
58
57
|
name: 'lightblue',
|
59
58
|
label: '蓝色',
|
60
|
-
color: '#F9FBFF'
|
61
|
-
toolsTheme: 'white'
|
59
|
+
color: '#F9FBFF'
|
62
60
|
}), // {
|
63
61
|
// name: 'yellow',
|
64
62
|
// label: '黄色',
|
@@ -73,7 +71,6 @@ var THEMES = [(0, _extends2["default"])({}, baseLightTheme, {
|
|
73
71
|
name: 'dark',
|
74
72
|
label: '深色',
|
75
73
|
color: '#031425',
|
76
|
-
toolsTheme: 'black',
|
77
74
|
globalNodeLabelStyle: {
|
78
75
|
color: '#ffffff'
|
79
76
|
},
|
@@ -116,7 +113,6 @@ var THEMES = [(0, _extends2["default"])({}, baseLightTheme, {
|
|
116
113
|
}, {
|
117
114
|
name: 'poly',
|
118
115
|
label: 'Poly',
|
119
|
-
toolsTheme: 'black',
|
120
116
|
backgroundImage: '/img/topo/themes/poly.png',
|
121
117
|
backgroundImageThumbnail: '/img/topo/themes/poly_thumbnail.png',
|
122
118
|
globalNodeLabelStyle: {
|
@@ -16,13 +16,11 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
16
16
|
var themeMap = [{
|
17
17
|
name: 'white',
|
18
18
|
label: '白色',
|
19
|
-
color: null
|
20
|
-
toolsTheme: 'white'
|
19
|
+
color: null
|
21
20
|
}, {
|
22
21
|
name: 'lightblue',
|
23
22
|
label: '蓝色',
|
24
|
-
color: '#F9FBFF'
|
25
|
-
toolsTheme: 'white'
|
23
|
+
color: '#F9FBFF'
|
26
24
|
}, {
|
27
25
|
name: 'yellow',
|
28
26
|
label: '黄色',
|
@@ -34,12 +32,10 @@ var themeMap = [{
|
|
34
32
|
}, {
|
35
33
|
name: 'dark',
|
36
34
|
label: '深色',
|
37
|
-
color: '#031425'
|
38
|
-
toolsTheme: 'dark'
|
35
|
+
color: '#031425'
|
39
36
|
}, {
|
40
37
|
name: 'poly',
|
41
38
|
label: 'Poly',
|
42
|
-
toolsTheme: 'dark',
|
43
39
|
backgroundImage: '/img/topo/themes/poly.png'
|
44
40
|
}].reduce(function (map, item) {
|
45
41
|
var _extends2;
|
@@ -63,7 +59,6 @@ function useCanvasTheme(props) {
|
|
63
59
|
if (graphLoaded && themeConfig) {
|
64
60
|
try {
|
65
61
|
topo.getHtTopo().setTheme(themeName);
|
66
|
-
topo.getHtTopo().setToolsTheme(themeConfig.toolsTheme);
|
67
62
|
} catch (error) {
|
68
63
|
console.error('切换主题失败', error);
|
69
64
|
}
|
@@ -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.22" === 'string' ? "10.0.22" : 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.22",
|
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.22/build/index.html",
|
120
120
|
"gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
|
121
121
|
}
|