leafer-ui 2.1.10 → 2.1.11
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.cjs +1 -2
- package/dist/web.esm.js +1 -2
- package/dist/web.esm.min.js +1 -1
- package/dist/web.esm.min.js.map +1 -1
- package/dist/web.js +12 -6
- package/dist/web.min.cjs +1 -1
- package/dist/web.min.cjs.map +1 -1
- package/dist/web.min.js +1 -1
- package/dist/web.min.js.map +1 -1
- package/dist/web.module.js +12 -6
- package/dist/web.module.min.js +1 -1
- package/dist/web.module.min.js.map +1 -1
- package/package.json +11 -11
package/dist/web.module.js
CHANGED
|
@@ -1295,7 +1295,6 @@ const BoundsHelper = {
|
|
|
1295
1295
|
},
|
|
1296
1296
|
copyAndSpread(t, bounds, spread, isShrink, side) {
|
|
1297
1297
|
const {x: x, y: y, width: width, height: height} = bounds;
|
|
1298
|
-
if (!spread) spread = 0;
|
|
1299
1298
|
if (isArray(spread)) {
|
|
1300
1299
|
const four = fourNumber(spread);
|
|
1301
1300
|
isShrink ? B.set(t, x + four[3], y + four[0], width - four[1] - four[3], height - four[2] - four[0]) : B.set(t, x - four[3], y - four[0], width + four[1] + four[3], height + four[2] + four[0]);
|
|
@@ -3577,7 +3576,8 @@ const PathDrawer = {
|
|
|
3577
3576
|
return;
|
|
3578
3577
|
}
|
|
3579
3578
|
}
|
|
3580
|
-
}
|
|
3579
|
+
},
|
|
3580
|
+
drawPathByPoints(_drawer, _points, _closed) {}
|
|
3581
3581
|
};
|
|
3582
3582
|
|
|
3583
3583
|
const {M: M$1, L: L$2, C: C, Q: Q, Z: Z$1, N: N, D: D$1, X: X, G: G, F: F$1, O: O, P: P, U: U} = PathCommandMap;
|
|
@@ -6985,7 +6985,7 @@ class LeafLevelList {
|
|
|
6985
6985
|
}
|
|
6986
6986
|
}
|
|
6987
6987
|
|
|
6988
|
-
const version = "2.1.
|
|
6988
|
+
const version = "2.1.11";
|
|
6989
6989
|
|
|
6990
6990
|
const debug$5 = Debug.get("LeaferCanvas");
|
|
6991
6991
|
|
|
@@ -8723,8 +8723,9 @@ let UI = UI_1 = class UI extends Leaf {
|
|
|
8723
8723
|
this.__drawPathByData(canvas, data.__pathForRender);
|
|
8724
8724
|
}
|
|
8725
8725
|
__drawPath(canvas) {
|
|
8726
|
+
const data = this.__;
|
|
8726
8727
|
canvas.beginPath();
|
|
8727
|
-
this.__drawPathByData(canvas,
|
|
8728
|
+
data.__usePointsMode ? PathDrawer.drawPathByPoints(canvas, data.points, data.closed) : this.__drawPathByData(canvas, data.path, true);
|
|
8728
8729
|
}
|
|
8729
8730
|
__drawPathByData(drawer, data, ignoreCornerRadius) {
|
|
8730
8731
|
data ? PathDrawer.drawPathByData(drawer, data) : this.__drawPathByBox(drawer, ignoreCornerRadius);
|
|
@@ -9581,6 +9582,9 @@ let Polygon = class Polygon extends UI {
|
|
|
9581
9582
|
get __tag() {
|
|
9582
9583
|
return "Polygon";
|
|
9583
9584
|
}
|
|
9585
|
+
get isPointsMode() {
|
|
9586
|
+
return this.points && !this.pathInputed;
|
|
9587
|
+
}
|
|
9584
9588
|
__updatePath() {
|
|
9585
9589
|
const data = this.__;
|
|
9586
9590
|
const path = data.path = [];
|
|
@@ -9658,6 +9662,9 @@ let Line = class Line extends UI {
|
|
|
9658
9662
|
get __tag() {
|
|
9659
9663
|
return "Line";
|
|
9660
9664
|
}
|
|
9665
|
+
get isPointsMode() {
|
|
9666
|
+
return this.points && !this.pathInputed;
|
|
9667
|
+
}
|
|
9661
9668
|
get toPoint() {
|
|
9662
9669
|
const {width: width, rotation: rotation} = this.__;
|
|
9663
9670
|
const to = getPointData();
|
|
@@ -11841,8 +11848,7 @@ class Interaction extends InteractionBase {
|
|
|
11841
11848
|
destroy() {
|
|
11842
11849
|
if (this.view) {
|
|
11843
11850
|
super.destroy();
|
|
11844
|
-
this.view = null;
|
|
11845
|
-
this.touches = null;
|
|
11851
|
+
this.view = this.touches = null;
|
|
11846
11852
|
}
|
|
11847
11853
|
}
|
|
11848
11854
|
}
|