leafer-ui 2.1.9 → 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 -5
- 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 -5
- 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
|
@@ -3576,7 +3576,8 @@ const PathDrawer = {
|
|
|
3576
3576
|
return;
|
|
3577
3577
|
}
|
|
3578
3578
|
}
|
|
3579
|
-
}
|
|
3579
|
+
},
|
|
3580
|
+
drawPathByPoints(_drawer, _points, _closed) {}
|
|
3580
3581
|
};
|
|
3581
3582
|
|
|
3582
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;
|
|
@@ -6984,7 +6985,7 @@ class LeafLevelList {
|
|
|
6984
6985
|
}
|
|
6985
6986
|
}
|
|
6986
6987
|
|
|
6987
|
-
const version = "2.1.
|
|
6988
|
+
const version = "2.1.11";
|
|
6988
6989
|
|
|
6989
6990
|
const debug$5 = Debug.get("LeaferCanvas");
|
|
6990
6991
|
|
|
@@ -8722,8 +8723,9 @@ let UI = UI_1 = class UI extends Leaf {
|
|
|
8722
8723
|
this.__drawPathByData(canvas, data.__pathForRender);
|
|
8723
8724
|
}
|
|
8724
8725
|
__drawPath(canvas) {
|
|
8726
|
+
const data = this.__;
|
|
8725
8727
|
canvas.beginPath();
|
|
8726
|
-
this.__drawPathByData(canvas,
|
|
8728
|
+
data.__usePointsMode ? PathDrawer.drawPathByPoints(canvas, data.points, data.closed) : this.__drawPathByData(canvas, data.path, true);
|
|
8727
8729
|
}
|
|
8728
8730
|
__drawPathByData(drawer, data, ignoreCornerRadius) {
|
|
8729
8731
|
data ? PathDrawer.drawPathByData(drawer, data) : this.__drawPathByBox(drawer, ignoreCornerRadius);
|
|
@@ -9580,6 +9582,9 @@ let Polygon = class Polygon extends UI {
|
|
|
9580
9582
|
get __tag() {
|
|
9581
9583
|
return "Polygon";
|
|
9582
9584
|
}
|
|
9585
|
+
get isPointsMode() {
|
|
9586
|
+
return this.points && !this.pathInputed;
|
|
9587
|
+
}
|
|
9583
9588
|
__updatePath() {
|
|
9584
9589
|
const data = this.__;
|
|
9585
9590
|
const path = data.path = [];
|
|
@@ -9657,6 +9662,9 @@ let Line = class Line extends UI {
|
|
|
9657
9662
|
get __tag() {
|
|
9658
9663
|
return "Line";
|
|
9659
9664
|
}
|
|
9665
|
+
get isPointsMode() {
|
|
9666
|
+
return this.points && !this.pathInputed;
|
|
9667
|
+
}
|
|
9660
9668
|
get toPoint() {
|
|
9661
9669
|
const {width: width, rotation: rotation} = this.__;
|
|
9662
9670
|
const to = getPointData();
|
|
@@ -11840,8 +11848,7 @@ class Interaction extends InteractionBase {
|
|
|
11840
11848
|
destroy() {
|
|
11841
11849
|
if (this.view) {
|
|
11842
11850
|
super.destroy();
|
|
11843
|
-
this.view = null;
|
|
11844
|
-
this.touches = null;
|
|
11851
|
+
this.view = this.touches = null;
|
|
11845
11852
|
}
|
|
11846
11853
|
}
|
|
11847
11854
|
}
|