leafer-draw 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 +8 -4
- package/dist/web.min.js +1 -1
- package/dist/web.min.js.map +1 -1
- package/dist/web.module.js +8 -4
- package/dist/web.module.min.js +1 -1
- package/dist/web.module.min.js.map +1 -1
- package/package.json +3 -3
package/dist/web.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
|
const debug$4 = Debug.get("LeaferCanvas");
|
|
7085
7085
|
|
|
@@ -8079,8 +8079,8 @@ class UIData extends LeafData {
|
|
|
8079
8079
|
return this.__getRealStrokeWidth();
|
|
8080
8080
|
}
|
|
8081
8081
|
get __maxStrokeWidth() {
|
|
8082
|
-
const t = this;
|
|
8083
|
-
return t.__hasMultiStrokeStyle ? Math.max(t.__hasMultiStrokeStyle,
|
|
8082
|
+
const t = this, strokeWidth = t.__hasStrokeSides || t.strokeWidth;
|
|
8083
|
+
return t.__hasMultiStrokeStyle ? Math.max(t.__hasMultiStrokeStyle, strokeWidth) : strokeWidth;
|
|
8084
8084
|
}
|
|
8085
8085
|
get __hasMultiPaint() {
|
|
8086
8086
|
const t = this;
|
|
@@ -8181,6 +8181,10 @@ class UIData extends LeafData {
|
|
|
8181
8181
|
}
|
|
8182
8182
|
return strokeWidth;
|
|
8183
8183
|
}
|
|
8184
|
+
__checkComplex() {
|
|
8185
|
+
const t = this;
|
|
8186
|
+
stintSet$3(t, "__complex", t.__isFills || t.__isStrokes || t.cornerRadius || t.__useEffect);
|
|
8187
|
+
}
|
|
8184
8188
|
__setPaint(attrName, value) {
|
|
8185
8189
|
this.__setInput(attrName, value);
|
|
8186
8190
|
const layout = this.__leaf.__layout;
|
|
@@ -8415,7 +8419,7 @@ const UIRender = {
|
|
|
8415
8419
|
data.__useEffect = !!(shadow || otherEffect);
|
|
8416
8420
|
}
|
|
8417
8421
|
data.__checkSingle();
|
|
8418
|
-
|
|
8422
|
+
data.__checkComplex();
|
|
8419
8423
|
},
|
|
8420
8424
|
__drawFast(canvas, options) {
|
|
8421
8425
|
drawFast(this, canvas, options);
|