@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.js
CHANGED
|
@@ -6663,7 +6663,7 @@ var LeaferUI = function(exports) {
|
|
|
6663
6663
|
this.levelMap = null;
|
|
6664
6664
|
}
|
|
6665
6665
|
}
|
|
6666
|
-
const version = "2.0
|
|
6666
|
+
const version = "2.1.0";
|
|
6667
6667
|
class LeaferCanvas extends LeaferCanvasBase {
|
|
6668
6668
|
get allowBackgroundColor() {
|
|
6669
6669
|
return true;
|
|
@@ -7417,8 +7417,8 @@ var LeaferUI = function(exports) {
|
|
|
7417
7417
|
return this.__getRealStrokeWidth();
|
|
7418
7418
|
}
|
|
7419
7419
|
get __maxStrokeWidth() {
|
|
7420
|
-
const t = this;
|
|
7421
|
-
return t.__hasMultiStrokeStyle ? Math.max(t.__hasMultiStrokeStyle,
|
|
7420
|
+
const t = this, strokeWidth = t.__hasStrokeSides || t.strokeWidth;
|
|
7421
|
+
return t.__hasMultiStrokeStyle ? Math.max(t.__hasMultiStrokeStyle, strokeWidth) : strokeWidth;
|
|
7422
7422
|
}
|
|
7423
7423
|
get __hasMultiPaint() {
|
|
7424
7424
|
const t = this;
|
|
@@ -7519,6 +7519,10 @@ var LeaferUI = function(exports) {
|
|
|
7519
7519
|
}
|
|
7520
7520
|
return strokeWidth;
|
|
7521
7521
|
}
|
|
7522
|
+
__checkComplex() {
|
|
7523
|
+
const t = this;
|
|
7524
|
+
stintSet$3(t, "__complex", t.__isFills || t.__isStrokes || t.cornerRadius || t.__useEffect);
|
|
7525
|
+
}
|
|
7522
7526
|
__setPaint(attrName, value) {
|
|
7523
7527
|
this.__setInput(attrName, value);
|
|
7524
7528
|
const layout = this.__leaf.__layout;
|
|
@@ -7733,7 +7737,7 @@ var LeaferUI = function(exports) {
|
|
|
7733
7737
|
data.__useEffect = !!(shadow || otherEffect);
|
|
7734
7738
|
}
|
|
7735
7739
|
data.__checkSingle();
|
|
7736
|
-
|
|
7740
|
+
data.__checkComplex();
|
|
7737
7741
|
},
|
|
7738
7742
|
__drawFast(canvas, options) {
|
|
7739
7743
|
drawFast(this, canvas, options);
|