@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.
package/dist/worker.js CHANGED
@@ -6663,7 +6663,7 @@ var LeaferUI = function(exports) {
6663
6663
  this.levelMap = null;
6664
6664
  }
6665
6665
  }
6666
- const version = "2.0.9";
6666
+ const version = "2.1.0";
6667
6667
  class LeaferCanvas extends LeaferCanvasBase {
6668
6668
  get allowBackgroundColor() {
6669
6669
  return true;
@@ -7612,8 +7612,8 @@ var LeaferUI = function(exports) {
7612
7612
  return this.__getRealStrokeWidth();
7613
7613
  }
7614
7614
  get __maxStrokeWidth() {
7615
- const t = this;
7616
- return t.__hasMultiStrokeStyle ? Math.max(t.__hasMultiStrokeStyle, t.strokeWidth) : t.strokeWidth;
7615
+ const t = this, strokeWidth = t.__hasStrokeSides || t.strokeWidth;
7616
+ return t.__hasMultiStrokeStyle ? Math.max(t.__hasMultiStrokeStyle, strokeWidth) : strokeWidth;
7617
7617
  }
7618
7618
  get __hasMultiPaint() {
7619
7619
  const t = this;
@@ -7714,6 +7714,10 @@ var LeaferUI = function(exports) {
7714
7714
  }
7715
7715
  return strokeWidth;
7716
7716
  }
7717
+ __checkComplex() {
7718
+ const t = this;
7719
+ stintSet$5(t, "__complex", t.__isFills || t.__isStrokes || t.cornerRadius || t.__useEffect);
7720
+ }
7717
7721
  __setPaint(attrName, value) {
7718
7722
  this.__setInput(attrName, value);
7719
7723
  const layout = this.__leaf.__layout;
@@ -7928,7 +7932,7 @@ var LeaferUI = function(exports) {
7928
7932
  data.__useEffect = !!(shadow || otherEffect);
7929
7933
  }
7930
7934
  data.__checkSingle();
7931
- stintSet$4(data, "__complex", data.__isFills || data.__isStrokes || data.cornerRadius || data.__useEffect);
7935
+ data.__checkComplex();
7932
7936
  },
7933
7937
  __drawFast(canvas, options) {
7934
7938
  drawFast(this, canvas, options);