@leafer-draw/miniapp 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() {
@@ -8044,8 +8044,8 @@ class UIData extends LeafData {
8044
8044
  return this.__getRealStrokeWidth();
8045
8045
  }
8046
8046
  get __maxStrokeWidth() {
8047
- const t = this;
8048
- return t.__hasMultiStrokeStyle ? Math.max(t.__hasMultiStrokeStyle, t.strokeWidth) : t.strokeWidth;
8047
+ const t = this, strokeWidth = t.__hasStrokeSides || t.strokeWidth;
8048
+ return t.__hasMultiStrokeStyle ? Math.max(t.__hasMultiStrokeStyle, strokeWidth) : strokeWidth;
8049
8049
  }
8050
8050
  get __hasMultiPaint() {
8051
8051
  const t = this;
@@ -8146,6 +8146,10 @@ class UIData extends LeafData {
8146
8146
  }
8147
8147
  return strokeWidth;
8148
8148
  }
8149
+ __checkComplex() {
8150
+ const t = this;
8151
+ stintSet$3(t, "__complex", t.__isFills || t.__isStrokes || t.cornerRadius || t.__useEffect);
8152
+ }
8149
8153
  __setPaint(attrName, value) {
8150
8154
  this.__setInput(attrName, value);
8151
8155
  const layout = this.__leaf.__layout;
@@ -8380,7 +8384,7 @@ const UIRender = {
8380
8384
  data.__useEffect = !!(shadow || otherEffect);
8381
8385
  }
8382
8386
  data.__checkSingle();
8383
- stintSet$2(data, "__complex", data.__isFills || data.__isStrokes || data.cornerRadius || data.__useEffect);
8387
+ data.__checkComplex();
8384
8388
  },
8385
8389
  __drawFast(canvas, options) {
8386
8390
  drawFast(this, canvas, options);