leafer-game 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/web.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
  const debug$5 = Debug.get("LeaferCanvas");
6668
6668
  class LeaferCanvas extends LeaferCanvasBase {
6669
6669
  set zIndex(zIndex) {
@@ -7806,8 +7806,8 @@ var LeaferUI = function(exports) {
7806
7806
  return this.__getRealStrokeWidth();
7807
7807
  }
7808
7808
  get __maxStrokeWidth() {
7809
- const t = this;
7810
- return t.__hasMultiStrokeStyle ? Math.max(t.__hasMultiStrokeStyle, t.strokeWidth) : t.strokeWidth;
7809
+ const t = this, strokeWidth = t.__hasStrokeSides || t.strokeWidth;
7810
+ return t.__hasMultiStrokeStyle ? Math.max(t.__hasMultiStrokeStyle, strokeWidth) : strokeWidth;
7811
7811
  }
7812
7812
  get __hasMultiPaint() {
7813
7813
  const t = this;
@@ -7908,6 +7908,10 @@ var LeaferUI = function(exports) {
7908
7908
  }
7909
7909
  return strokeWidth;
7910
7910
  }
7911
+ __checkComplex() {
7912
+ const t = this;
7913
+ stintSet$3(t, "__complex", t.__isFills || t.__isStrokes || t.cornerRadius || t.__useEffect);
7914
+ }
7911
7915
  __setPaint(attrName, value) {
7912
7916
  this.__setInput(attrName, value);
7913
7917
  const layout = this.__leaf.__layout;
@@ -8122,7 +8126,7 @@ var LeaferUI = function(exports) {
8122
8126
  data.__useEffect = !!(shadow || otherEffect);
8123
8127
  }
8124
8128
  data.__checkSingle();
8125
- stintSet$2(data, "__complex", data.__isFills || data.__isStrokes || data.cornerRadius || data.__useEffect);
8129
+ data.__checkComplex();
8126
8130
  },
8127
8131
  __drawFast(canvas, options) {
8128
8132
  drawFast(this, canvas, options);