@riil-frontend/component-topology 6.0.0-alpha.54 → 6.0.0-alpha.55

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.
@@ -76,9 +76,7 @@ function useCanvasThemeConfig(props) {
76
76
  color: themeConfig.globalNodeLabelColor
77
77
  });
78
78
  topo.getHtTopo().setGlobalNodeLabelStyle(globalNodeLabelStyle);
79
- globalEdgeTagStyle = _extends({}, defaultEdgeLabelStyle, {
80
- color: themeConfig.globalEdgeTagColor
81
- });
79
+ globalEdgeTagStyle = _extends({}, defaultEdgeLabelStyle, themeConfig.globalEdgeTagStyle);
82
80
  topo.getHtTopo().setGlobalEdgeTagStyle(globalEdgeTagStyle);
83
81
  _context2.next = 7;
84
82
  return displayConfigDispatchers.update({
@@ -2,7 +2,13 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  var baseLightTheme = {
3
3
  color: '#FFFFFF',
4
4
  globalNodeLabelColor: '#4d6277',
5
- globalEdgeTagColor: '#4d6277',
5
+ globalEdgeTagStyle: {
6
+ color: '#CBCBCB',
7
+ background: '#FFFFFF',
8
+ // 背景色,不传使用默认内置 @V1.2
9
+ borderColor: '#CBCBCB' // 边框颜色,不传使用默认内置。用于主题切换 @V1.2
10
+
11
+ },
6
12
  text: {
7
13
  color: '#4d6277'
8
14
  },
@@ -56,7 +62,13 @@ var THEMES = [_extends({}, baseLightTheme, {
56
62
  color: '#031425',
57
63
  toolsTheme: 'black',
58
64
  globalNodeLabelColor: '#ffffff',
59
- globalEdgeTagColor: '#ffffff',
65
+ globalEdgeTagStyle: {
66
+ color: '#E4E9EE',
67
+ background: '#063658',
68
+ // 背景色,不传使用默认内置 @V1.2
69
+ borderColor: '#08A5F4' // 边框颜色,不传使用默认内置。用于主题切换 @V1.2
70
+
71
+ },
60
72
  text: {
61
73
  color: '#ffffff'
62
74
  },
@@ -27,8 +27,9 @@ export var setGlobalTagStyle = function setGlobalTagStyle(topo, styleData) {
27
27
 
28
28
  var globalNodeLabelStyle = _extends({}, nodeLabelStyle, style);
29
29
 
30
+ var globalEdgeTagStyle = _extends({}, nodeLabelStyle, defaultEdgeLabelStyle, style);
31
+
30
32
  topo.getHtTopo().setGlobalNodeLabelStyle(globalNodeLabelStyle);
31
- var globalEdgeTagStyle = globalNodeLabelStyle;
32
33
  topo.getHtTopo().setGlobalEdgeTagStyle(globalEdgeTagStyle);
33
34
  displayConfigDispatchers.update({
34
35
  nodeLabelStyle: globalNodeLabelStyle,
@@ -22,7 +22,7 @@ import topoFactory from "./topoFactory";
22
22
  import ElementTagTipConfig from "./tagstips/ElementTagTipConfig";
23
23
  import SelectionModel from "./SelectionModel"; // eslint-disable-next-line no-undef
24
24
 
25
- var version = typeof "6.0.0-alpha.54" === 'string' ? "6.0.0-alpha.54" : null;
25
+ var version = typeof "6.0.0-alpha.55" === 'string' ? "6.0.0-alpha.55" : null;
26
26
  console.info("\u62D3\u6251\u7248\u672C: " + version);
27
27
  /**
28
28
  * 拓扑显示和编辑
@@ -89,9 +89,7 @@ function useCanvasThemeConfig(props) {
89
89
  color: themeConfig.globalNodeLabelColor
90
90
  });
91
91
  topo.getHtTopo().setGlobalNodeLabelStyle(globalNodeLabelStyle);
92
- globalEdgeTagStyle = (0, _extends2["default"])({}, defaultEdgeLabelStyle, {
93
- color: themeConfig.globalEdgeTagColor
94
- });
92
+ globalEdgeTagStyle = (0, _extends2["default"])({}, defaultEdgeLabelStyle, themeConfig.globalEdgeTagStyle);
95
93
  topo.getHtTopo().setGlobalEdgeTagStyle(globalEdgeTagStyle);
96
94
  _context2.next = 7;
97
95
  return displayConfigDispatchers.update({
@@ -10,7 +10,13 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
10
10
  var baseLightTheme = {
11
11
  color: '#FFFFFF',
12
12
  globalNodeLabelColor: '#4d6277',
13
- globalEdgeTagColor: '#4d6277',
13
+ globalEdgeTagStyle: {
14
+ color: '#CBCBCB',
15
+ background: '#FFFFFF',
16
+ // 背景色,不传使用默认内置 @V1.2
17
+ borderColor: '#CBCBCB' // 边框颜色,不传使用默认内置。用于主题切换 @V1.2
18
+
19
+ },
14
20
  text: {
15
21
  color: '#4d6277'
16
22
  },
@@ -64,7 +70,13 @@ var THEMES = [(0, _extends2["default"])({}, baseLightTheme, {
64
70
  color: '#031425',
65
71
  toolsTheme: 'black',
66
72
  globalNodeLabelColor: '#ffffff',
67
- globalEdgeTagColor: '#ffffff',
73
+ globalEdgeTagStyle: {
74
+ color: '#E4E9EE',
75
+ background: '#063658',
76
+ // 背景色,不传使用默认内置 @V1.2
77
+ borderColor: '#08A5F4' // 边框颜色,不传使用默认内置。用于主题切换 @V1.2
78
+
79
+ },
68
80
  text: {
69
81
  color: '#ffffff'
70
82
  },
@@ -39,8 +39,8 @@ var setGlobalTagStyle = function setGlobalTagStyle(topo, styleData) {
39
39
  defaultEdgeLabelStyle = displayConfigState.defaultEdgeLabelStyle;
40
40
  var style = buildStyle(styleData, nodeLabelStyle);
41
41
  var globalNodeLabelStyle = (0, _extends2["default"])({}, nodeLabelStyle, style);
42
+ var globalEdgeTagStyle = (0, _extends2["default"])({}, nodeLabelStyle, defaultEdgeLabelStyle, style);
42
43
  topo.getHtTopo().setGlobalNodeLabelStyle(globalNodeLabelStyle);
43
- var globalEdgeTagStyle = globalNodeLabelStyle;
44
44
  topo.getHtTopo().setGlobalEdgeTagStyle(globalEdgeTagStyle);
45
45
  displayConfigDispatchers.update({
46
46
  nodeLabelStyle: globalNodeLabelStyle,
@@ -52,7 +52,7 @@ var _ElementTagTipConfig = _interopRequireDefault(require("./tagstips/ElementTag
52
52
  var _SelectionModel = _interopRequireDefault(require("./SelectionModel"));
53
53
 
54
54
  // eslint-disable-next-line no-undef
55
- var version = typeof "6.0.0-alpha.54" === 'string' ? "6.0.0-alpha.54" : null;
55
+ var version = typeof "6.0.0-alpha.55" === 'string' ? "6.0.0-alpha.55" : null;
56
56
  console.info("\u62D3\u6251\u7248\u672C: " + version);
57
57
  /**
58
58
  * 拓扑显示和编辑
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riil-frontend/component-topology",
3
- "version": "6.0.0-alpha.54",
3
+ "version": "6.0.0-alpha.55",
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.54/build/index.html",
119
+ "homepage": "https://unpkg.com/@riil-frontend/component-topology@6.0.0-alpha.55/build/index.html",
120
120
  "gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
121
121
  }