@riil-frontend/component-topology 6.0.17 → 6.0.18

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.
@@ -9,7 +9,8 @@ function FontColorRange(props) {
9
9
  list = props.list,
10
10
  max = props.max,
11
11
  min = props.min,
12
- defaultValue = props.defaultValue;
12
+ defaultValue = props.defaultValue,
13
+ disabled = props.disabled;
13
14
 
14
15
  var _useState = useState(defaultValue),
15
16
  value = _useState[0],
@@ -26,6 +27,7 @@ function FontColorRange(props) {
26
27
  marks: list,
27
28
  hasTip: false,
28
29
  onChange: onChange,
30
+ disabled: disabled,
29
31
  onProcess: setValue
30
32
  })), /*#__PURE__*/React.createElement("div", {
31
33
  className: styles.unit
@@ -25,7 +25,7 @@ function FontColorDropdown(props) {
25
25
  var backOpacityChange = function backOpacityChange(value) {
26
26
  topo.historyManager.beginTransaction();
27
27
  onChange({
28
- opacity: (value / 100).toFixed(2)
28
+ opacity: (value / 100).toFixed(2) * 1
29
29
  });
30
30
  topo.historyManager.endTransaction();
31
31
  };
@@ -152,7 +152,8 @@ function FontColorDropdown(props) {
152
152
  unit: "%",
153
153
  list: [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100],
154
154
  onChange: backOpacityChange,
155
- defaultValue: opacity === undefined ? opacity : Math.round(opacity * 100)
155
+ defaultValue: opacity === undefined ? opacity : Math.round(opacity * 100),
156
+ disabled: !background
156
157
  })), /*#__PURE__*/React.createElement("div", {
157
158
  style: {
158
159
  marginTop: '10px',
@@ -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.17" === 'string' ? "6.0.17" : null;
26
+ var version = typeof "6.0.18" === 'string' ? "6.0.18" : null;
27
27
  console.info("\u62D3\u6251\u7248\u672C: " + version);
28
28
  /**
29
29
  * 拓扑显示和编辑
@@ -22,7 +22,8 @@ function FontColorRange(props) {
22
22
  list = props.list,
23
23
  max = props.max,
24
24
  min = props.min,
25
- defaultValue = props.defaultValue;
25
+ defaultValue = props.defaultValue,
26
+ disabled = props.disabled;
26
27
 
27
28
  var _useState = (0, _react.useState)(defaultValue),
28
29
  value = _useState[0],
@@ -39,6 +40,7 @@ function FontColorRange(props) {
39
40
  marks: list,
40
41
  hasTip: false,
41
42
  onChange: onChange,
43
+ disabled: disabled,
42
44
  onProcess: setValue
43
45
  })), /*#__PURE__*/_react["default"].createElement("div", {
44
46
  className: _indexModule["default"].unit
@@ -43,7 +43,7 @@ function FontColorDropdown(props) {
43
43
  var backOpacityChange = function backOpacityChange(value) {
44
44
  topo.historyManager.beginTransaction();
45
45
  onChange({
46
- opacity: (value / 100).toFixed(2)
46
+ opacity: (value / 100).toFixed(2) * 1
47
47
  });
48
48
  topo.historyManager.endTransaction();
49
49
  };
@@ -170,7 +170,8 @@ function FontColorDropdown(props) {
170
170
  unit: "%",
171
171
  list: [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100],
172
172
  onChange: backOpacityChange,
173
- defaultValue: opacity === undefined ? opacity : Math.round(opacity * 100)
173
+ defaultValue: opacity === undefined ? opacity : Math.round(opacity * 100),
174
+ disabled: !background
174
175
  })), /*#__PURE__*/_react["default"].createElement("div", {
175
176
  style: {
176
177
  marginTop: '10px',
@@ -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.17" === 'string' ? "6.0.17" : null;
57
+ var version = typeof "6.0.18" === 'string' ? "6.0.18" : 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.17",
3
+ "version": "6.0.18",
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.17/build/index.html",
119
+ "homepage": "https://unpkg.com/@riil-frontend/component-topology@6.0.18/build/index.html",
120
120
  "gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
121
121
  }