@leafer/worker 2.0.9 → 2.1.0

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.
@@ -7079,7 +7079,7 @@ class LeafLevelList {
7079
7079
  }
7080
7080
  }
7081
7081
 
7082
- const version = "2.0.9";
7082
+ const version = "2.1.0";
7083
7083
 
7084
7084
  class LeaferCanvas extends LeaferCanvasBase {
7085
7085
  get allowBackgroundColor() {
@@ -8085,8 +8085,8 @@ class UIData extends LeafData {
8085
8085
  return this.__getRealStrokeWidth();
8086
8086
  }
8087
8087
  get __maxStrokeWidth() {
8088
- const t = this;
8089
- return t.__hasMultiStrokeStyle ? Math.max(t.__hasMultiStrokeStyle, t.strokeWidth) : t.strokeWidth;
8088
+ const t = this, strokeWidth = t.__hasStrokeSides || t.strokeWidth;
8089
+ return t.__hasMultiStrokeStyle ? Math.max(t.__hasMultiStrokeStyle, strokeWidth) : strokeWidth;
8090
8090
  }
8091
8091
  get __hasMultiPaint() {
8092
8092
  const t = this;
@@ -8187,6 +8187,10 @@ class UIData extends LeafData {
8187
8187
  }
8188
8188
  return strokeWidth;
8189
8189
  }
8190
+ __checkComplex() {
8191
+ const t = this;
8192
+ stintSet$5(t, "__complex", t.__isFills || t.__isStrokes || t.cornerRadius || t.__useEffect);
8193
+ }
8190
8194
  __setPaint(attrName, value) {
8191
8195
  this.__setInput(attrName, value);
8192
8196
  const layout = this.__leaf.__layout;
@@ -8421,7 +8425,7 @@ const UIRender = {
8421
8425
  data.__useEffect = !!(shadow || otherEffect);
8422
8426
  }
8423
8427
  data.__checkSingle();
8424
- stintSet$4(data, "__complex", data.__isFills || data.__isStrokes || data.cornerRadius || data.__useEffect);
8428
+ data.__checkComplex();
8425
8429
  },
8426
8430
  __drawFast(canvas, options) {
8427
8431
  drawFast(this, canvas, options);