@leafer-draw/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.module.js
CHANGED
|
@@ -7079,7 +7079,7 @@ class LeafLevelList {
|
|
|
7079
7079
|
}
|
|
7080
7080
|
}
|
|
7081
7081
|
|
|
7082
|
-
const version = "2.0
|
|
7082
|
+
const version = "2.1.0";
|
|
7083
7083
|
|
|
7084
7084
|
class LeaferCanvas extends LeaferCanvasBase {
|
|
7085
7085
|
get allowBackgroundColor() {
|
|
@@ -7885,8 +7885,8 @@ class UIData extends LeafData {
|
|
|
7885
7885
|
return this.__getRealStrokeWidth();
|
|
7886
7886
|
}
|
|
7887
7887
|
get __maxStrokeWidth() {
|
|
7888
|
-
const t = this;
|
|
7889
|
-
return t.__hasMultiStrokeStyle ? Math.max(t.__hasMultiStrokeStyle,
|
|
7888
|
+
const t = this, strokeWidth = t.__hasStrokeSides || t.strokeWidth;
|
|
7889
|
+
return t.__hasMultiStrokeStyle ? Math.max(t.__hasMultiStrokeStyle, strokeWidth) : strokeWidth;
|
|
7890
7890
|
}
|
|
7891
7891
|
get __hasMultiPaint() {
|
|
7892
7892
|
const t = this;
|
|
@@ -7987,6 +7987,10 @@ class UIData extends LeafData {
|
|
|
7987
7987
|
}
|
|
7988
7988
|
return strokeWidth;
|
|
7989
7989
|
}
|
|
7990
|
+
__checkComplex() {
|
|
7991
|
+
const t = this;
|
|
7992
|
+
stintSet$3(t, "__complex", t.__isFills || t.__isStrokes || t.cornerRadius || t.__useEffect);
|
|
7993
|
+
}
|
|
7990
7994
|
__setPaint(attrName, value) {
|
|
7991
7995
|
this.__setInput(attrName, value);
|
|
7992
7996
|
const layout = this.__leaf.__layout;
|
|
@@ -8221,7 +8225,7 @@ const UIRender = {
|
|
|
8221
8225
|
data.__useEffect = !!(shadow || otherEffect);
|
|
8222
8226
|
}
|
|
8223
8227
|
data.__checkSingle();
|
|
8224
|
-
|
|
8228
|
+
data.__checkComplex();
|
|
8225
8229
|
},
|
|
8226
8230
|
__drawFast(canvas, options) {
|
|
8227
8231
|
drawFast(this, canvas, options);
|