@soonspacejs/plugin-cps-scheme 2.14.28 → 2.14.30

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/dist/index.esm.js CHANGED
@@ -4567,7 +4567,7 @@ class v {
4567
4567
  });
4568
4568
  }
4569
4569
  _initColor() {
4570
- this._pathNode && (this._color.fill = y(this._pathNode.getAttribute("fill") || ""), this._color.fillOpacity = this._pathNode.getAttribute("fill-opacity"), this._color.stroke = y(this._pathNode.getAttribute("stroke") || "")), this._textNode && (this._color.text = y(this._textNode.getAttribute("fill") || ""));
4570
+ this._pathNode && (this._color.fill = y(this._pathNode.getAttribute("fill")), this._color.fillOpacity = this._pathNode.getAttribute("fill-opacity"), this._color.stroke = y(this._pathNode.getAttribute("stroke"))), this._textNode && (this._color.text = y(this._textNode.getAttribute("fill")));
4571
4571
  }
4572
4572
  _changeColor() {
4573
4573
  let { text: a, fill: l, fillOpacity: h, stroke: t } = this._color;
@@ -4716,14 +4716,7 @@ class p2 extends v {
4716
4716
  }
4717
4717
  case g.PREPARE:
4718
4718
  case g.ACTIVE: {
4719
- switch (t = a = U.whiteText, this.readyState) {
4720
- /*case ReadyState.NOT_READY: // 取消未就绪颜色
4721
- stroke = text = active.notReadyLight
4722
- break*/
4723
- case w.READY:
4724
- t = a = this._color.main;
4725
- break;
4726
- }
4719
+ t = a = U.whiteText, this.readyState === w.READY && (t = a = this._color.main);
4727
4720
  break;
4728
4721
  }
4729
4722
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@soonspacejs/plugin-cps-scheme",
3
3
  "pluginName": "CpsSchemePlugin",
4
- "version": "2.14.28",
4
+ "version": "2.14.30",
5
5
  "description": "cps scheme plugin for SoonSpace.js",
6
6
  "main": "dist/index.esm.js",
7
7
  "module": "dist/index.esm.js",
@@ -21,7 +21,7 @@
21
21
  "color": "4.2.3"
22
22
  },
23
23
  "peerDependencies": {
24
- "@soonspacejs/plugin-cps-soonmanager": "2.14.28",
25
- "soonspacejs": "2.14.28"
24
+ "@soonspacejs/plugin-cps-soonmanager": "2.14.30",
25
+ "soonspacejs": "2.14.30"
26
26
  }
27
27
  }