@leafer-ui/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() {
@@ -8244,8 +8244,8 @@ class UIData extends LeafData {
8244
8244
  return this.__getRealStrokeWidth();
8245
8245
  }
8246
8246
  get __maxStrokeWidth() {
8247
- const t = this;
8248
- return t.__hasMultiStrokeStyle ? Math.max(t.__hasMultiStrokeStyle, t.strokeWidth) : t.strokeWidth;
8247
+ const t = this, strokeWidth = t.__hasStrokeSides || t.strokeWidth;
8248
+ return t.__hasMultiStrokeStyle ? Math.max(t.__hasMultiStrokeStyle, strokeWidth) : strokeWidth;
8249
8249
  }
8250
8250
  get __hasMultiPaint() {
8251
8251
  const t = this;
@@ -8346,6 +8346,10 @@ class UIData extends LeafData {
8346
8346
  }
8347
8347
  return strokeWidth;
8348
8348
  }
8349
+ __checkComplex() {
8350
+ const t = this;
8351
+ stintSet$3(t, "__complex", t.__isFills || t.__isStrokes || t.cornerRadius || t.__useEffect);
8352
+ }
8349
8353
  __setPaint(attrName, value) {
8350
8354
  this.__setInput(attrName, value);
8351
8355
  const layout = this.__leaf.__layout;
@@ -8580,7 +8584,7 @@ const UIRender = {
8580
8584
  data.__useEffect = !!(shadow || otherEffect);
8581
8585
  }
8582
8586
  data.__checkSingle();
8583
- stintSet$2(data, "__complex", data.__isFills || data.__isStrokes || data.cornerRadius || data.__useEffect);
8587
+ data.__checkComplex();
8584
8588
  },
8585
8589
  __drawFast(canvas, options) {
8586
8590
  drawFast(this, canvas, options);