leafer-ui 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
  const debug$5 = Debug.get("LeaferCanvas");
7085
7085
 
@@ -8279,8 +8279,8 @@ class UIData extends LeafData {
8279
8279
  return this.__getRealStrokeWidth();
8280
8280
  }
8281
8281
  get __maxStrokeWidth() {
8282
- const t = this;
8283
- return t.__hasMultiStrokeStyle ? Math.max(t.__hasMultiStrokeStyle, t.strokeWidth) : t.strokeWidth;
8282
+ const t = this, strokeWidth = t.__hasStrokeSides || t.strokeWidth;
8283
+ return t.__hasMultiStrokeStyle ? Math.max(t.__hasMultiStrokeStyle, strokeWidth) : strokeWidth;
8284
8284
  }
8285
8285
  get __hasMultiPaint() {
8286
8286
  const t = this;
@@ -8381,6 +8381,10 @@ class UIData extends LeafData {
8381
8381
  }
8382
8382
  return strokeWidth;
8383
8383
  }
8384
+ __checkComplex() {
8385
+ const t = this;
8386
+ stintSet$3(t, "__complex", t.__isFills || t.__isStrokes || t.cornerRadius || t.__useEffect);
8387
+ }
8384
8388
  __setPaint(attrName, value) {
8385
8389
  this.__setInput(attrName, value);
8386
8390
  const layout = this.__leaf.__layout;
@@ -8615,7 +8619,7 @@ const UIRender = {
8615
8619
  data.__useEffect = !!(shadow || otherEffect);
8616
8620
  }
8617
8621
  data.__checkSingle();
8618
- stintSet$2(data, "__complex", data.__isFills || data.__isStrokes || data.cornerRadius || data.__useEffect);
8622
+ data.__checkComplex();
8619
8623
  },
8620
8624
  __drawFast(canvas, options) {
8621
8625
  drawFast(this, canvas, options);