leafer-game 2.2.5 → 2.2.7
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.esm.min.js.map +1 -1
- package/dist/web.js +163 -112
- 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 +166 -113
- package/dist/web.module.min.js +1 -1
- package/dist/web.module.min.js.map +1 -1
- package/package.json +12 -12
package/dist/web.js
CHANGED
|
@@ -434,7 +434,7 @@ var LeaferUI = function(exports) {
|
|
|
434
434
|
}
|
|
435
435
|
const {sin: sin$6, cos: cos$6, acos: acos, sqrt: sqrt$5} = Math;
|
|
436
436
|
const {float: float$5} = MathHelper;
|
|
437
|
-
const tempPoint$
|
|
437
|
+
const tempPoint$7 = {};
|
|
438
438
|
function getWorld() {
|
|
439
439
|
return Object.assign(Object.assign(Object.assign({}, getMatrixData()), getBoundsData()), {
|
|
440
440
|
scaleX: 1,
|
|
@@ -491,8 +491,8 @@ var LeaferUI = function(exports) {
|
|
|
491
491
|
to.f = t.f * pixelRatio;
|
|
492
492
|
},
|
|
493
493
|
scaleOfOuter(t, origin, scaleX, scaleY) {
|
|
494
|
-
M$7.toInnerPoint(t, origin, tempPoint$
|
|
495
|
-
M$7.scaleOfInner(t, tempPoint$
|
|
494
|
+
M$7.toInnerPoint(t, origin, tempPoint$7);
|
|
495
|
+
M$7.scaleOfInner(t, tempPoint$7, scaleX, scaleY);
|
|
496
496
|
},
|
|
497
497
|
scaleOfInner(t, origin, scaleX, scaleY = scaleX) {
|
|
498
498
|
M$7.translateInner(t, origin.x, origin.y);
|
|
@@ -510,8 +510,8 @@ var LeaferUI = function(exports) {
|
|
|
510
510
|
t.d = c * sinR + d * cosR;
|
|
511
511
|
},
|
|
512
512
|
rotateOfOuter(t, origin, rotation) {
|
|
513
|
-
M$7.toInnerPoint(t, origin, tempPoint$
|
|
514
|
-
M$7.rotateOfInner(t, tempPoint$
|
|
513
|
+
M$7.toInnerPoint(t, origin, tempPoint$7);
|
|
514
|
+
M$7.rotateOfInner(t, tempPoint$7, rotation);
|
|
515
515
|
},
|
|
516
516
|
rotateOfInner(t, origin, rotation) {
|
|
517
517
|
M$7.translateInner(t, origin.x, origin.y);
|
|
@@ -532,8 +532,8 @@ var LeaferUI = function(exports) {
|
|
|
532
532
|
}
|
|
533
533
|
},
|
|
534
534
|
skewOfOuter(t, origin, skewX, skewY) {
|
|
535
|
-
M$7.toInnerPoint(t, origin, tempPoint$
|
|
536
|
-
M$7.skewOfInner(t, tempPoint$
|
|
535
|
+
M$7.toInnerPoint(t, origin, tempPoint$7);
|
|
536
|
+
M$7.skewOfInner(t, tempPoint$7, skewX, skewY);
|
|
537
537
|
},
|
|
538
538
|
skewOfInner(t, origin, skewX, skewY = 0) {
|
|
539
539
|
M$7.translateInner(t, origin.x, origin.y);
|
|
@@ -951,7 +951,7 @@ var LeaferUI = function(exports) {
|
|
|
951
951
|
return this;
|
|
952
952
|
}
|
|
953
953
|
}
|
|
954
|
-
const tempPoint$
|
|
954
|
+
const tempPoint$6 = new Point;
|
|
955
955
|
class Matrix {
|
|
956
956
|
constructor(a, b, c, d, e, f) {
|
|
957
957
|
this.set(a, b, c, d, e, f);
|
|
@@ -1814,7 +1814,7 @@ var LeaferUI = function(exports) {
|
|
|
1814
1814
|
return name;
|
|
1815
1815
|
}
|
|
1816
1816
|
const D$5 = Debug;
|
|
1817
|
-
const debug$
|
|
1817
|
+
const debug$h = Debug.get("RunTime");
|
|
1818
1818
|
const Run = {
|
|
1819
1819
|
currentId: 0,
|
|
1820
1820
|
currentName: "",
|
|
@@ -1832,7 +1832,7 @@ var LeaferUI = function(exports) {
|
|
|
1832
1832
|
const time = R$1.idMap[id], name = R$1.nameMap[id];
|
|
1833
1833
|
const duration = microsecond ? (performance.now() - time) / 1e3 : Date.now() - time;
|
|
1834
1834
|
R$1.idMap[id] = R$1.nameMap[id] = R$1.nameToIdMap[name] = undefined;
|
|
1835
|
-
debug$
|
|
1835
|
+
debug$h.log(name, duration, "ms");
|
|
1836
1836
|
},
|
|
1837
1837
|
endOfName(name, microsecond) {
|
|
1838
1838
|
const id = R$1.nameToIdMap[name];
|
|
@@ -1862,17 +1862,17 @@ var LeaferUI = function(exports) {
|
|
|
1862
1862
|
return Plugin.need("editor");
|
|
1863
1863
|
}
|
|
1864
1864
|
};
|
|
1865
|
-
const debug$
|
|
1865
|
+
const debug$g = Debug.get("UICreator");
|
|
1866
1866
|
const UICreator = {
|
|
1867
1867
|
list: {},
|
|
1868
1868
|
register(UI) {
|
|
1869
1869
|
const {__tag: tag} = UI.prototype;
|
|
1870
|
-
if (list$1[tag]) debug$
|
|
1870
|
+
if (list$1[tag]) debug$g.repeat(tag);
|
|
1871
1871
|
list$1[tag] = UI;
|
|
1872
1872
|
},
|
|
1873
1873
|
get(tag, data, x, y, width, height) {
|
|
1874
1874
|
if (!list$1[tag]) {
|
|
1875
|
-
debug$
|
|
1875
|
+
debug$g.warn("not register " + tag);
|
|
1876
1876
|
return undefined;
|
|
1877
1877
|
}
|
|
1878
1878
|
const ui = new list$1[tag](data);
|
|
@@ -1886,14 +1886,14 @@ var LeaferUI = function(exports) {
|
|
|
1886
1886
|
}
|
|
1887
1887
|
};
|
|
1888
1888
|
const {list: list$1} = UICreator;
|
|
1889
|
-
const debug$
|
|
1889
|
+
const debug$f = Debug.get("EventCreator");
|
|
1890
1890
|
const EventCreator = {
|
|
1891
1891
|
nameList: {},
|
|
1892
1892
|
register(Event) {
|
|
1893
1893
|
let name;
|
|
1894
1894
|
Object.keys(Event).forEach(key => {
|
|
1895
1895
|
name = Event[key];
|
|
1896
|
-
if (isString(name)) nameList[name] && debug$
|
|
1896
|
+
if (isString(name)) nameList[name] && debug$f.repeat(name), nameList[name] = Event;
|
|
1897
1897
|
});
|
|
1898
1898
|
},
|
|
1899
1899
|
changeName(oldName, newName) {
|
|
@@ -2529,7 +2529,7 @@ var LeaferUI = function(exports) {
|
|
|
2529
2529
|
const {setPoint: setPoint$1, addPoint: addPoint$1} = TwoPointBoundsHelper;
|
|
2530
2530
|
const {set: set$3, toNumberPoints: toNumberPoints} = PointHelper;
|
|
2531
2531
|
const {M: M$6, L: L$7, C: C$5, Q: Q$4, Z: Z$6} = PathCommandMap;
|
|
2532
|
-
const tempPoint$
|
|
2532
|
+
const tempPoint$5 = {};
|
|
2533
2533
|
const BezierHelper = {
|
|
2534
2534
|
points(data, originPoints, curve, close) {
|
|
2535
2535
|
let points = toNumberPoints(originPoints);
|
|
@@ -2702,8 +2702,8 @@ var LeaferUI = function(exports) {
|
|
|
2702
2702
|
addMode ? addPoint$1(pointBounds, fromX, fromY) : setPoint$1(pointBounds, fromX, fromY);
|
|
2703
2703
|
addPoint$1(pointBounds, toX, toY);
|
|
2704
2704
|
for (let i = 0, len = tList.length; i < len; i++) {
|
|
2705
|
-
getPointAndSet(tList[i], fromX, fromY, x1, y1, x2, y2, toX, toY, tempPoint$
|
|
2706
|
-
addPoint$1(pointBounds, tempPoint$
|
|
2705
|
+
getPointAndSet(tList[i], fromX, fromY, x1, y1, x2, y2, toX, toY, tempPoint$5);
|
|
2706
|
+
addPoint$1(pointBounds, tempPoint$5.x, tempPoint$5.y);
|
|
2707
2707
|
}
|
|
2708
2708
|
},
|
|
2709
2709
|
getPointAndSet(t, fromX, fromY, x1, y1, x2, y2, toX, toY, setPoint) {
|
|
@@ -2807,7 +2807,7 @@ var LeaferUI = function(exports) {
|
|
|
2807
2807
|
const {M: M$5, m: m, L: L$6, l: l, H: H, h: h, V: V, v: v, C: C$4, c: c, S: S, s: s, Q: Q$3, q: q, T: T, t: t, A: A, a: a, Z: Z$5, z: z, N: N$3, D: D$4, X: X$3, G: G$3, F: F$4, O: O$3, P: P$3, U: U$3} = PathCommandMap;
|
|
2808
2808
|
const {rect: rect$3, roundRect: roundRect$2, arcTo: arcTo$3, arc: arc$3, ellipse: ellipse$4, quadraticCurveTo: quadraticCurveTo$1} = BezierHelper;
|
|
2809
2809
|
const {ellipticalArc: ellipticalArc} = EllipseHelper;
|
|
2810
|
-
const debug$
|
|
2810
|
+
const debug$e = Debug.get("PathConvert");
|
|
2811
2811
|
const setEndPoint$1 = {};
|
|
2812
2812
|
const PathConvert = {
|
|
2813
2813
|
current: {
|
|
@@ -3072,7 +3072,7 @@ var LeaferUI = function(exports) {
|
|
|
3072
3072
|
break;
|
|
3073
3073
|
|
|
3074
3074
|
default:
|
|
3075
|
-
debug$
|
|
3075
|
+
debug$e.error(`command: ${command} [index:${i}]`, old);
|
|
3076
3076
|
return data;
|
|
3077
3077
|
}
|
|
3078
3078
|
lastCommand = command;
|
|
@@ -3129,7 +3129,9 @@ var LeaferUI = function(exports) {
|
|
|
3129
3129
|
const {getMinDistanceFrom: getMinDistanceFrom, getRadianFrom: getRadianFrom} = PointHelper;
|
|
3130
3130
|
const {tan: tan, min: min$1, abs: abs$5} = Math;
|
|
3131
3131
|
const startPoint = {};
|
|
3132
|
+
const debug$d = Debug.get("PointsCurve");
|
|
3132
3133
|
const PathCommandDataHelper = {
|
|
3134
|
+
pointsCurveList: {},
|
|
3133
3135
|
beginPath(data) {
|
|
3134
3136
|
data.length = 0;
|
|
3135
3137
|
},
|
|
@@ -3199,11 +3201,19 @@ var LeaferUI = function(exports) {
|
|
|
3199
3201
|
data.push(M$4, startPoint.x, startPoint.y);
|
|
3200
3202
|
arc$2(data, x, y, radius, startAngle, endAngle, anticlockwise);
|
|
3201
3203
|
},
|
|
3202
|
-
drawPoints(data, points, curve, close) {
|
|
3203
|
-
|
|
3204
|
+
drawPoints(data, points, curve, close, options) {
|
|
3205
|
+
let type = "Q";
|
|
3206
|
+
if (isObject(curve)) type = curve.type, curve = curve.value;
|
|
3207
|
+
if (!pointsCurveList[type]) debug$d.warn("not found:", type), type = "Q";
|
|
3208
|
+
pointsCurveList[type](data, points, curve, close, options);
|
|
3204
3209
|
}
|
|
3205
3210
|
};
|
|
3206
|
-
const {ellipse: ellipse$3, arc: arc$2} = PathCommandDataHelper;
|
|
3211
|
+
const {ellipse: ellipse$3, arc: arc$2, pointsCurveList: pointsCurveList} = PathCommandDataHelper;
|
|
3212
|
+
function registerPointsCurve(type, fn) {
|
|
3213
|
+
if (pointsCurveList[type]) debug$d.repeat(type);
|
|
3214
|
+
pointsCurveList[type] = fn;
|
|
3215
|
+
}
|
|
3216
|
+
registerPointsCurve("Q", BezierHelper.points);
|
|
3207
3217
|
const {moveTo: moveTo$4, lineTo: lineTo$3, quadraticCurveTo: quadraticCurveTo, bezierCurveTo: bezierCurveTo, closePath: closePath$3, beginPath: beginPath, rect: rect$2, roundRect: roundRect$1, ellipse: ellipse$2, arc: arc$1, arcTo: arcTo$2, drawEllipse: drawEllipse, drawArc: drawArc, drawPoints: drawPoints$2} = PathCommandDataHelper;
|
|
3208
3218
|
class PathCreator {
|
|
3209
3219
|
set path(value) {
|
|
@@ -4503,7 +4513,7 @@ var LeaferUI = function(exports) {
|
|
|
4503
4513
|
const LeafHelper = {
|
|
4504
4514
|
updateAllMatrix(leaf, checkAutoLayout, waitAutoLayout) {
|
|
4505
4515
|
if (checkAutoLayout && leaf.__hasAutoLayout && leaf.__layout.matrixChanged) waitAutoLayout = true;
|
|
4506
|
-
updateMatrix$
|
|
4516
|
+
updateMatrix$2(leaf, checkAutoLayout, waitAutoLayout);
|
|
4507
4517
|
if (leaf.isBranch) {
|
|
4508
4518
|
const {children: children} = leaf;
|
|
4509
4519
|
for (let i = 0, len = children.length; i < len; i++) {
|
|
@@ -4524,9 +4534,10 @@ var LeaferUI = function(exports) {
|
|
|
4524
4534
|
if (layout.matrixChanged) leaf.__updateLocalMatrix();
|
|
4525
4535
|
if (!layout.waitAutoLayout) leaf.__updateWorldMatrix();
|
|
4526
4536
|
},
|
|
4527
|
-
updateBounds(leaf) {
|
|
4537
|
+
updateBounds(leaf, noUpdateSize) {
|
|
4528
4538
|
const layout = leaf.__layout;
|
|
4529
4539
|
if (layout.boundsChanged) leaf.__updateLocalBounds();
|
|
4540
|
+
if (noUpdateSize) layout.resized = undefined;
|
|
4530
4541
|
if (!layout.waitAutoLayout) leaf.__updateWorldBounds();
|
|
4531
4542
|
},
|
|
4532
4543
|
updateAllWorldOpacity(leaf) {
|
|
@@ -4549,7 +4560,7 @@ var LeaferUI = function(exports) {
|
|
|
4549
4560
|
}
|
|
4550
4561
|
},
|
|
4551
4562
|
updateAllChange(leaf) {
|
|
4552
|
-
updateChange
|
|
4563
|
+
updateChange(leaf);
|
|
4553
4564
|
if (leaf.isBranch) {
|
|
4554
4565
|
const {children: children} = leaf;
|
|
4555
4566
|
for (let i = 0, len = children.length; i < len; i++) {
|
|
@@ -4719,7 +4730,7 @@ var LeaferUI = function(exports) {
|
|
|
4719
4730
|
}
|
|
4720
4731
|
};
|
|
4721
4732
|
const L$1 = LeafHelper;
|
|
4722
|
-
const {updateAllMatrix: updateAllMatrix$4, updateMatrix: updateMatrix$
|
|
4733
|
+
const {updateAllMatrix: updateAllMatrix$4, updateMatrix: updateMatrix$2, updateAllWorldOpacity: updateAllWorldOpacity, updateAllChange: updateAllChange$1, updateChange: updateChange} = L$1;
|
|
4723
4734
|
function getTempLocal(t, worldPoint) {
|
|
4724
4735
|
t.updateLayout();
|
|
4725
4736
|
return t.parent ? PointHelper.tempToInnerOf(worldPoint, t.parent.scrollWorldTransform) : worldPoint;
|
|
@@ -4760,7 +4771,7 @@ var LeaferUI = function(exports) {
|
|
|
4760
4771
|
if (target.__.mask) findMask = 1;
|
|
4761
4772
|
return findMask < 0 ? null : (findMask && (findMask = -1), true);
|
|
4762
4773
|
}
|
|
4763
|
-
const {updateBounds: updateBounds$
|
|
4774
|
+
const {updateBounds: updateBounds$3} = LeafHelper;
|
|
4764
4775
|
const BranchHelper = {
|
|
4765
4776
|
sort(a, b) {
|
|
4766
4777
|
return a.__.zIndex === b.__.zIndex ? a.__tempNumber - b.__tempNumber : a.__.zIndex - b.__.zIndex;
|
|
@@ -4820,10 +4831,10 @@ var LeaferUI = function(exports) {
|
|
|
4820
4831
|
branch = branchStack[i];
|
|
4821
4832
|
children = branch.children;
|
|
4822
4833
|
for (let j = 0, len = children.length; j < len; j++) {
|
|
4823
|
-
updateBounds$
|
|
4834
|
+
updateBounds$3(children[j]);
|
|
4824
4835
|
}
|
|
4825
4836
|
if (exclude && exclude === branch) continue;
|
|
4826
|
-
updateBounds$
|
|
4837
|
+
updateBounds$3(branch);
|
|
4827
4838
|
}
|
|
4828
4839
|
},
|
|
4829
4840
|
move(branch, x, y) {
|
|
@@ -4882,7 +4893,7 @@ var LeaferUI = function(exports) {
|
|
|
4882
4893
|
}
|
|
4883
4894
|
}
|
|
4884
4895
|
};
|
|
4885
|
-
const {getRelativeWorld: getRelativeWorld$1, updateBounds: updateBounds$
|
|
4896
|
+
const {getRelativeWorld: getRelativeWorld$1, updateBounds: updateBounds$2} = LeafHelper;
|
|
4886
4897
|
const {toOuterOf: toOuterOf$3, getPoints: getPoints, copy: copy$4} = BoundsHelper;
|
|
4887
4898
|
const localContent = "_localContentBounds";
|
|
4888
4899
|
const worldContent = "_worldContentBounds", worldBox = "_worldBoxBounds", worldStroke = "_worldStrokeBounds";
|
|
@@ -4986,7 +4997,7 @@ var LeaferUI = function(exports) {
|
|
|
4986
4997
|
}
|
|
4987
4998
|
update() {
|
|
4988
4999
|
const {leaf: leaf} = this, {leafer: leafer} = leaf;
|
|
4989
|
-
if (leaf.isApp) return updateBounds$
|
|
5000
|
+
if (leaf.isApp) return updateBounds$2(leaf);
|
|
4990
5001
|
if (leafer) {
|
|
4991
5002
|
if (leafer.ready) leafer.watcher.changed && leafer.layouter.layout(); else leafer.start();
|
|
4992
5003
|
} else {
|
|
@@ -5648,9 +5659,12 @@ var LeaferUI = function(exports) {
|
|
|
5648
5659
|
}
|
|
5649
5660
|
},
|
|
5650
5661
|
emitPropertyEvent(type, name, oldValue, newValue) {
|
|
5651
|
-
const
|
|
5652
|
-
|
|
5653
|
-
|
|
5662
|
+
const {leafer: leafer} = this;
|
|
5663
|
+
if (leafer.config.trackChanges || leafer.zoomLayer === this) {
|
|
5664
|
+
const event = new PropertyEvent(type, this, name, oldValue, newValue);
|
|
5665
|
+
this.isLeafer || this.hasEvent(type) && this.emitEvent(event);
|
|
5666
|
+
leafer.emitEvent(event);
|
|
5667
|
+
} else leafer.watcher.add(this);
|
|
5654
5668
|
},
|
|
5655
5669
|
__realSetAttr(name, newValue) {
|
|
5656
5670
|
const data = this.__;
|
|
@@ -5664,7 +5678,7 @@ var LeaferUI = function(exports) {
|
|
|
5664
5678
|
}
|
|
5665
5679
|
};
|
|
5666
5680
|
const {setLayout: setLayout, multiplyParent: multiplyParent$2, translateInner: translateInner, defaultWorld: defaultWorld} = MatrixHelper;
|
|
5667
|
-
const {toPoint: toPoint$3, tempPoint: tempPoint$
|
|
5681
|
+
const {toPoint: toPoint$3, tempPoint: tempPoint$4} = AroundHelper;
|
|
5668
5682
|
const LeafMatrix = {
|
|
5669
5683
|
__updateWorldMatrix() {
|
|
5670
5684
|
const {parent: parent, __layout: __layout, __world: __world, __scrollWorld: __scrollWorld, __: __} = this;
|
|
@@ -5684,15 +5698,15 @@ var LeaferUI = function(exports) {
|
|
|
5684
5698
|
local.e = data.x + data.offsetX;
|
|
5685
5699
|
local.f = data.y + data.offsetY;
|
|
5686
5700
|
if (data.around || data.origin) {
|
|
5687
|
-
toPoint$3(data.around || data.origin, layout.boxBounds, tempPoint$
|
|
5688
|
-
translateInner(local, -tempPoint$
|
|
5701
|
+
toPoint$3(data.around || data.origin, layout.boxBounds, tempPoint$4);
|
|
5702
|
+
translateInner(local, -tempPoint$4.x, -tempPoint$4.y, !data.around);
|
|
5689
5703
|
}
|
|
5690
5704
|
}
|
|
5691
5705
|
this.__layout.matrixChanged = undefined;
|
|
5692
5706
|
}
|
|
5693
5707
|
};
|
|
5694
|
-
const {updateMatrix: updateMatrix$
|
|
5695
|
-
const {updateBounds: updateBounds$
|
|
5708
|
+
const {updateMatrix: updateMatrix$1, updateAllMatrix: updateAllMatrix$3} = LeafHelper;
|
|
5709
|
+
const {updateBounds: updateBounds$1} = BranchHelper;
|
|
5696
5710
|
const {toOuterOf: toOuterOf$2, copyAndSpread: copyAndSpread$2, copy: copy$3} = BoundsHelper;
|
|
5697
5711
|
const {toBounds: toBounds} = PathBounds;
|
|
5698
5712
|
const LeafBounds = {
|
|
@@ -5792,14 +5806,14 @@ var LeaferUI = function(exports) {
|
|
|
5792
5806
|
if (this.__layout.childrenSortChanged) this.__updateSortChildren();
|
|
5793
5807
|
if (this.__layout.boxChanged) this.__updateFlowLayout();
|
|
5794
5808
|
updateAllMatrix$3(this);
|
|
5795
|
-
updateBounds$
|
|
5809
|
+
updateBounds$1(this, this);
|
|
5796
5810
|
if (this.__.__autoSide) this.__updateBoxBounds(true);
|
|
5797
5811
|
} else {
|
|
5798
5812
|
updateAllMatrix$3(this);
|
|
5799
|
-
updateBounds$
|
|
5813
|
+
updateBounds$1(this, this);
|
|
5800
5814
|
}
|
|
5801
5815
|
} else {
|
|
5802
|
-
updateMatrix$
|
|
5816
|
+
updateMatrix$1(this);
|
|
5803
5817
|
}
|
|
5804
5818
|
},
|
|
5805
5819
|
__updateNaturalSize() {
|
|
@@ -6455,9 +6469,12 @@ var LeaferUI = function(exports) {
|
|
|
6455
6469
|
if (this.isFrame) child.__bindFrame(null);
|
|
6456
6470
|
}
|
|
6457
6471
|
__emitChildEvent(type, child) {
|
|
6458
|
-
const
|
|
6459
|
-
if (
|
|
6460
|
-
|
|
6472
|
+
const {leafer: leafer} = this;
|
|
6473
|
+
if (leafer.config.trackChanges || leafer.zoomLayer === this) {
|
|
6474
|
+
const event = new ChildEvent(type, child, this);
|
|
6475
|
+
if (this.hasEvent(type) && !this.isLeafer) this.emitEvent(event);
|
|
6476
|
+
leafer.emitEvent(event);
|
|
6477
|
+
} else leafer.watcher.addChild(child, this, type);
|
|
6461
6478
|
}
|
|
6462
6479
|
};
|
|
6463
6480
|
exports.Branch = __decorate([ useModule(BranchRender) ], exports.Branch);
|
|
@@ -6606,7 +6623,7 @@ var LeaferUI = function(exports) {
|
|
|
6606
6623
|
this.levelMap = null;
|
|
6607
6624
|
}
|
|
6608
6625
|
}
|
|
6609
|
-
const version = "2.2.
|
|
6626
|
+
const version = "2.2.7";
|
|
6610
6627
|
const debug$5 = Debug.get("LeaferCanvas");
|
|
6611
6628
|
class LeaferCanvas extends LeaferCanvasBase {
|
|
6612
6629
|
set zIndex(zIndex) {
|
|
@@ -6920,6 +6937,7 @@ var LeaferUI = function(exports) {
|
|
|
6920
6937
|
}
|
|
6921
6938
|
constructor(target, userConfig) {
|
|
6922
6939
|
this.totalTimes = 0;
|
|
6940
|
+
this.changed = 0;
|
|
6923
6941
|
this.config = {};
|
|
6924
6942
|
this.__updatedList = new LeafList;
|
|
6925
6943
|
this.target = target;
|
|
@@ -6939,8 +6957,10 @@ var LeaferUI = function(exports) {
|
|
|
6939
6957
|
this.disabled = true;
|
|
6940
6958
|
}
|
|
6941
6959
|
update() {
|
|
6942
|
-
this.changed
|
|
6943
|
-
|
|
6960
|
+
if (this.changed < 100) {
|
|
6961
|
+
this.changed++;
|
|
6962
|
+
if (this.running) this.target.emit(RenderEvent.REQUEST);
|
|
6963
|
+
}
|
|
6944
6964
|
}
|
|
6945
6965
|
__onAttrChange(event) {
|
|
6946
6966
|
this.add(event.target);
|
|
@@ -6949,18 +6969,21 @@ var LeaferUI = function(exports) {
|
|
|
6949
6969
|
if (this.config.usePartLayout) this.__updatedList.add(leaf);
|
|
6950
6970
|
this.update();
|
|
6951
6971
|
}
|
|
6952
|
-
|
|
6972
|
+
addChild(child, parent, eventType) {
|
|
6953
6973
|
if (this.config.usePartLayout) {
|
|
6954
|
-
if (
|
|
6974
|
+
if (eventType === ChildEvent.ADD) {
|
|
6955
6975
|
this.hasAdd = true;
|
|
6956
|
-
this.__pushChild(
|
|
6976
|
+
this.__pushChild(child);
|
|
6957
6977
|
} else {
|
|
6958
6978
|
this.hasRemove = true;
|
|
6959
|
-
this.__updatedList.add(
|
|
6979
|
+
this.__updatedList.add(parent);
|
|
6960
6980
|
}
|
|
6961
6981
|
}
|
|
6962
6982
|
this.update();
|
|
6963
6983
|
}
|
|
6984
|
+
__onChildEvent(event) {
|
|
6985
|
+
this.addChild(event.child, event.parent, event.type);
|
|
6986
|
+
}
|
|
6964
6987
|
__pushChild(child) {
|
|
6965
6988
|
this.__updatedList.add(child);
|
|
6966
6989
|
if (child.isBranch) this.__loopChildren(child);
|
|
@@ -6975,7 +6998,8 @@ var LeaferUI = function(exports) {
|
|
|
6975
6998
|
}));
|
|
6976
6999
|
this.__updatedList = new LeafList;
|
|
6977
7000
|
this.totalTimes++;
|
|
6978
|
-
this.
|
|
7001
|
+
this.hasVisible = this.hasRemove = this.hasAdd = false;
|
|
7002
|
+
this.changed = 0;
|
|
6979
7003
|
}
|
|
6980
7004
|
__listenEvents() {
|
|
6981
7005
|
this.__eventIds = [ this.target.on_([ [ PropertyEvent.CHANGE, this.__onAttrChange, this ], [ [ ChildEvent.ADD, ChildEvent.REMOVE ], this.__onChildEvent, this ], [ WatchEvent.REQUEST, this.__onRquestData, this ] ]) ];
|
|
@@ -6993,45 +7017,56 @@ var LeaferUI = function(exports) {
|
|
|
6993
7017
|
}
|
|
6994
7018
|
const {updateAllMatrix: updateAllMatrix$2, updateBounds: updateOneBounds, updateChange: updateOneChange} = LeafHelper;
|
|
6995
7019
|
const {pushAllChildBranch: pushAllChildBranch, pushAllParent: pushAllParent} = BranchHelper;
|
|
6996
|
-
|
|
6997
|
-
|
|
6998
|
-
|
|
6999
|
-
|
|
7000
|
-
|
|
7001
|
-
|
|
7002
|
-
|
|
7003
|
-
|
|
7004
|
-
if (
|
|
7005
|
-
|
|
7006
|
-
|
|
7007
|
-
|
|
7008
|
-
if (
|
|
7009
|
-
|
|
7020
|
+
const LayouterHelper = {
|
|
7021
|
+
updateMatrix(updateList, levelList) {
|
|
7022
|
+
let index = 0, leaf, layout;
|
|
7023
|
+
const {list: list} = updateList;
|
|
7024
|
+
while (index < list.length) {
|
|
7025
|
+
leaf = list[index];
|
|
7026
|
+
layout = leaf.__layout;
|
|
7027
|
+
if (levelList.without(leaf) && !layout.proxyZoom) {
|
|
7028
|
+
if (layout.matrixChanged) {
|
|
7029
|
+
updateAllMatrix$2(leaf, true);
|
|
7030
|
+
if (leaf.isBranch) pushAllChildBranch(leaf, levelList);
|
|
7031
|
+
push(leaf, levelList);
|
|
7032
|
+
} else if (layout.boundsChanged) {
|
|
7033
|
+
if (leaf.isBranch) leaf.__tempNumber = 0;
|
|
7034
|
+
push(leaf, levelList);
|
|
7035
|
+
}
|
|
7010
7036
|
}
|
|
7037
|
+
index++;
|
|
7011
7038
|
}
|
|
7012
|
-
}
|
|
7013
|
-
|
|
7014
|
-
|
|
7015
|
-
|
|
7016
|
-
|
|
7017
|
-
|
|
7018
|
-
|
|
7019
|
-
|
|
7020
|
-
|
|
7021
|
-
|
|
7022
|
-
|
|
7023
|
-
|
|
7024
|
-
|
|
7025
|
-
|
|
7039
|
+
},
|
|
7040
|
+
updateBounds(boundsList) {
|
|
7041
|
+
let index = 0, level, list, branch, children;
|
|
7042
|
+
const {levels: levels, levelMap: levelMap} = boundsList;
|
|
7043
|
+
boundsList.sort(true);
|
|
7044
|
+
while (index < levels.length) {
|
|
7045
|
+
level = levels[index];
|
|
7046
|
+
list = levelMap[level];
|
|
7047
|
+
for (let i = 0, len = list.length; i < len; i++) {
|
|
7048
|
+
branch = list[i];
|
|
7049
|
+
if (branch.isBranch && branch.__tempNumber) {
|
|
7050
|
+
children = branch.children;
|
|
7051
|
+
for (let j = 0, jLen = children.length; j < jLen; j++) {
|
|
7052
|
+
if (!children[j].isBranch) {
|
|
7053
|
+
updateOneBounds(children[j]);
|
|
7054
|
+
}
|
|
7026
7055
|
}
|
|
7027
7056
|
}
|
|
7057
|
+
updateOneBounds(branch);
|
|
7028
7058
|
}
|
|
7029
|
-
|
|
7059
|
+
index++;
|
|
7030
7060
|
}
|
|
7031
|
-
}
|
|
7032
|
-
|
|
7033
|
-
|
|
7034
|
-
|
|
7061
|
+
},
|
|
7062
|
+
updateChange(updateList) {
|
|
7063
|
+
updateList.list.forEach(updateOneChange);
|
|
7064
|
+
},
|
|
7065
|
+
push: push
|
|
7066
|
+
};
|
|
7067
|
+
function push(leaf, levelList) {
|
|
7068
|
+
levelList.add(leaf);
|
|
7069
|
+
pushAllParent(leaf, levelList);
|
|
7035
7070
|
}
|
|
7036
7071
|
const {worldBounds: worldBounds} = LeafBoundsHelper;
|
|
7037
7072
|
class LayoutBlockData {
|
|
@@ -7133,9 +7168,9 @@ var LeaferUI = function(exports) {
|
|
|
7133
7168
|
target.emitEvent(new LayoutEvent(BEFORE, blocks, this.times));
|
|
7134
7169
|
this.extraBlock = null;
|
|
7135
7170
|
updateList.sort();
|
|
7136
|
-
updateMatrix
|
|
7137
|
-
updateBounds
|
|
7138
|
-
updateChange(updateList);
|
|
7171
|
+
LayouterHelper.updateMatrix(updateList, this.__levelList);
|
|
7172
|
+
LayouterHelper.updateBounds(this.__levelList);
|
|
7173
|
+
LayouterHelper.updateChange(updateList);
|
|
7139
7174
|
if (this.extraBlock) blocks.push(this.extraBlock);
|
|
7140
7175
|
blocks.forEach(item => item.setAfter());
|
|
7141
7176
|
target.emitEvent(new LayoutEvent(LAYOUT, blocks, this.times));
|
|
@@ -7165,11 +7200,16 @@ var LeaferUI = function(exports) {
|
|
|
7165
7200
|
if (target.isBranch) BranchHelper.updateBounds(target); else LeafHelper.updateBounds(target);
|
|
7166
7201
|
updateAllChange(target);
|
|
7167
7202
|
}
|
|
7168
|
-
addExtra(leaf) {
|
|
7203
|
+
addExtra(leaf, updateBounds) {
|
|
7169
7204
|
if (!this.__updatedList.has(leaf)) {
|
|
7170
7205
|
const {updatedList: updatedList, beforeBounds: beforeBounds} = this.extraBlock || (this.extraBlock = new LayoutBlockData([]));
|
|
7171
7206
|
updatedList.length ? beforeBounds.add(leaf.__world) : beforeBounds.set(leaf.__world);
|
|
7172
7207
|
updatedList.add(leaf);
|
|
7208
|
+
if (updateBounds) {
|
|
7209
|
+
const list = this.__levelList;
|
|
7210
|
+
LayouterHelper.push(leaf, list);
|
|
7211
|
+
list.sort(true);
|
|
7212
|
+
}
|
|
7173
7213
|
}
|
|
7174
7214
|
}
|
|
7175
7215
|
createBlock(data) {
|
|
@@ -7432,7 +7472,7 @@ var LeaferUI = function(exports) {
|
|
|
7432
7472
|
}
|
|
7433
7473
|
}
|
|
7434
7474
|
Renderer.clipSpread = 10;
|
|
7435
|
-
const tempPoint$
|
|
7475
|
+
const tempPoint$3 = {};
|
|
7436
7476
|
const {copyRadiusPoint: copyRadiusPoint$1} = PointHelper;
|
|
7437
7477
|
const {hitRadiusPoint: hitRadiusPoint$1} = BoundsHelper;
|
|
7438
7478
|
class Picker {
|
|
@@ -7487,7 +7527,7 @@ var LeaferUI = function(exports) {
|
|
|
7487
7527
|
for (let i = 0, len = list.length; i < len; i++) {
|
|
7488
7528
|
find = list[i];
|
|
7489
7529
|
if (ignoreHittable || LeafHelper.worldHittable(find)) {
|
|
7490
|
-
this.hitChild(find, find.hitThrough ? this.point : point);
|
|
7530
|
+
this.hitChild(find, find.hitThrough ? this.point : point, find.mask && find.parent && find.parent.__onlyHitMask);
|
|
7491
7531
|
if (findList.length) {
|
|
7492
7532
|
if (find.isBranchLeaf && list.some(item => item !== find && LeafHelper.hasParent(item, find))) {
|
|
7493
7533
|
findList.reset();
|
|
@@ -7564,7 +7604,7 @@ var LeaferUI = function(exports) {
|
|
|
7564
7604
|
for (let i = len - 1; i > -1; i--) {
|
|
7565
7605
|
child = children[i], data = child.__;
|
|
7566
7606
|
if (!data.visible || onlyHitMask && !data.mask) continue;
|
|
7567
|
-
hit = hitRadiusPoint$1(child.__world, data.hitRadius ? copyRadiusPoint$1(tempPoint$
|
|
7607
|
+
hit = hitRadiusPoint$1(child.__world, data.hitRadius ? copyRadiusPoint$1(tempPoint$3, point, data.hitRadius) : point);
|
|
7568
7608
|
if (child.isBranch) {
|
|
7569
7609
|
if (hit || child.__ignoreHitWorld) {
|
|
7570
7610
|
if (child.isBranchLeaf && data.__clipAfterFill && !child.__hitWorld(point, true)) continue;
|
|
@@ -7586,7 +7626,7 @@ var LeaferUI = function(exports) {
|
|
|
7586
7626
|
}
|
|
7587
7627
|
const leaf = proxy || child, {hitThrough: hitThrough} = child, {findList: findList} = this;
|
|
7588
7628
|
if (hitThrough) {
|
|
7589
|
-
const index = findList.list.findIndex(item => item[hitThrough] === child[hitThrough]);
|
|
7629
|
+
const index = findList.list.findIndex(item => hitThrough === "parent" ? LeafHelper.hasParent(item.parent, child.parent) : item[hitThrough] === child[hitThrough]);
|
|
7590
7630
|
if (index > 0) return findList.addAt(leaf, index);
|
|
7591
7631
|
}
|
|
7592
7632
|
findList.add(leaf);
|
|
@@ -8073,7 +8113,7 @@ var LeaferUI = function(exports) {
|
|
|
8073
8113
|
}
|
|
8074
8114
|
if (data.__useEffect) {
|
|
8075
8115
|
const {shadow: shadow, fill: fill, stroke: stroke} = data, otherEffect = data.innerShadow || data.blur || data.backgroundBlur || data.filter;
|
|
8076
|
-
stintSet$2(data, "__isFastShadow", shadow && !otherEffect && shadow.length < 2 && !shadow[0].spread && !Effect.isTransformShadow(shadow[0]) && fill && !data.__isTransparentFill && !(isArray(fill) && fill.length > 1) && (this.useFastShadow || !stroke || stroke && data.strokeAlign === "inside"));
|
|
8116
|
+
stintSet$2(data, "__isFastShadow", shadow && !otherEffect && shadow.length < 2 && !shadow[0].spread && !Effect.isTransformShadow(shadow[0]) && !(shadow[0].blendMode && shadow[0].blendMode !== "pass-through") && fill && !data.__isTransparentFill && !(isArray(fill) && fill.length > 1) && (this.useFastShadow || !stroke || stroke && data.strokeAlign === "inside"));
|
|
8077
8117
|
data.__useEffect = !!(shadow || otherEffect);
|
|
8078
8118
|
}
|
|
8079
8119
|
data.__checkSingle();
|
|
@@ -8482,6 +8522,7 @@ var LeaferUI = function(exports) {
|
|
|
8482
8522
|
start: true,
|
|
8483
8523
|
hittable: true,
|
|
8484
8524
|
smooth: true,
|
|
8525
|
+
trackChanges: true,
|
|
8485
8526
|
lazySpeard: 100
|
|
8486
8527
|
};
|
|
8487
8528
|
this.leafs = 0;
|
|
@@ -8936,7 +8977,7 @@ var LeaferUI = function(exports) {
|
|
|
8936
8977
|
__decorate([ surfaceType("#FFFFFF") ], exports.Frame.prototype, "fill", void 0);
|
|
8937
8978
|
__decorate([ affectRenderBoundsType("hide") ], exports.Frame.prototype, "overflow", void 0);
|
|
8938
8979
|
exports.Frame = __decorate([ registerUI() ], exports.Frame);
|
|
8939
|
-
const {moveTo: moveTo$3, closePath: closePath$2, ellipse: ellipse} = PathCommandDataHelper, {tempPoint: tempPoint$
|
|
8980
|
+
const {moveTo: moveTo$3, closePath: closePath$2, ellipse: ellipse} = PathCommandDataHelper, {tempPoint: tempPoint$2, set: set$2, rotate: rotate$2} = PointHelper, {abs: abs$4} = Math, tempCenter = {};
|
|
8940
8981
|
exports.Ellipse = class Ellipse extends exports.UI {
|
|
8941
8982
|
get __tag() {
|
|
8942
8983
|
return "Ellipse";
|
|
@@ -8956,9 +8997,9 @@ var LeaferUI = function(exports) {
|
|
|
8956
8997
|
if (drawInnerEllipse) {
|
|
8957
8998
|
if (closedAngle) {
|
|
8958
8999
|
closePath$2(path);
|
|
8959
|
-
set$2(tempPoint$
|
|
8960
|
-
rotate$2(tempPoint$
|
|
8961
|
-
moveTo$3(path, tempPoint$
|
|
9000
|
+
set$2(tempPoint$2, rx + innerRx, ry), set$2(tempCenter, rx, ry);
|
|
9001
|
+
rotate$2(tempPoint$2, endAngle, tempCenter, rx, ry);
|
|
9002
|
+
moveTo$3(path, tempPoint$2.x, tempPoint$2.y);
|
|
8962
9003
|
}
|
|
8963
9004
|
ellipse(path, rx, ry, innerRx, innerRy, 0, endAngle, startAngle, true);
|
|
8964
9005
|
} else {
|
|
@@ -9005,7 +9046,7 @@ var LeaferUI = function(exports) {
|
|
|
9005
9046
|
const data = this.__;
|
|
9006
9047
|
const path = data.path = [];
|
|
9007
9048
|
if (data.points) {
|
|
9008
|
-
drawPoints$1(path, data.points, data.curve, data.closed);
|
|
9049
|
+
drawPoints$1(path, data.points, data.curve, data.closed, data);
|
|
9009
9050
|
} else {
|
|
9010
9051
|
const {width: width, height: height, sides: sides, startAngle: startAngle} = data;
|
|
9011
9052
|
const rx = width / 2, ry = height / 2;
|
|
@@ -9080,7 +9121,7 @@ var LeaferUI = function(exports) {
|
|
|
9080
9121
|
const data = this.__;
|
|
9081
9122
|
const path = data.path = [];
|
|
9082
9123
|
if (data.points) {
|
|
9083
|
-
drawPoints(path, data.points, data.curve, data.closed);
|
|
9124
|
+
drawPoints(path, data.points, data.curve, data.closed, data);
|
|
9084
9125
|
} else {
|
|
9085
9126
|
moveTo(path, 0, 0);
|
|
9086
9127
|
lineTo(path, this.width, 0);
|
|
@@ -11475,7 +11516,7 @@ var LeaferUI = function(exports) {
|
|
|
11475
11516
|
data.__naturalHeight = image.height / data.pixelRatio;
|
|
11476
11517
|
if (data.__autoSide) {
|
|
11477
11518
|
ui.forceUpdate();
|
|
11478
|
-
LeafHelper.updateBounds(ui);
|
|
11519
|
+
LeafHelper.updateBounds(ui, true);
|
|
11479
11520
|
ui.__layout.boundsChanged = true;
|
|
11480
11521
|
if (ui.__proxyData) {
|
|
11481
11522
|
ui.setProxyAttr("width", data.width);
|
|
@@ -14131,7 +14172,7 @@ var LeaferUI = function(exports) {
|
|
|
14131
14172
|
};
|
|
14132
14173
|
const {getDistance: getDistance} = HighBezierHelper;
|
|
14133
14174
|
const {M: M, L: L, C: C, Z: Z} = PathCommandMap, {float: float} = MathHelper, {set: set, getAngle: getAngle, getDistanceFrom: getDistanceFrom, getDistancePoint: getDistancePoint} = PointHelper;
|
|
14134
|
-
const tempPoint = {}, tempFrom = {};
|
|
14175
|
+
const tempPoint$1 = {}, tempFrom = {};
|
|
14135
14176
|
const HighCurveHelper = {
|
|
14136
14177
|
transform(data, matrix) {
|
|
14137
14178
|
let i = 0, command;
|
|
@@ -14157,11 +14198,11 @@ var LeaferUI = function(exports) {
|
|
|
14157
14198
|
},
|
|
14158
14199
|
transformPoints(data, matrix, start, pointCount) {
|
|
14159
14200
|
for (let i = start + 1, end = i + pointCount * 2; i < end; i += 2) {
|
|
14160
|
-
tempPoint.x = data[i];
|
|
14161
|
-
tempPoint.y = data[i + 1];
|
|
14162
|
-
MatrixHelper.toOuterPoint(matrix, tempPoint);
|
|
14163
|
-
data[i] = tempPoint.x;
|
|
14164
|
-
data[i + 1] = tempPoint.y;
|
|
14201
|
+
tempPoint$1.x = data[i];
|
|
14202
|
+
tempPoint$1.y = data[i + 1];
|
|
14203
|
+
MatrixHelper.toOuterPoint(matrix, tempPoint$1);
|
|
14204
|
+
data[i] = tempPoint$1.x;
|
|
14205
|
+
data[i + 1] = tempPoint$1.y;
|
|
14165
14206
|
}
|
|
14166
14207
|
},
|
|
14167
14208
|
getMotionPathData(data) {
|
|
@@ -14394,9 +14435,11 @@ var LeaferUI = function(exports) {
|
|
|
14394
14435
|
const {updateMatrix: updateMatrix, updateAllMatrix: updateAllMatrix} = LeafHelper;
|
|
14395
14436
|
const {updateBounds: updateBounds} = BranchHelper;
|
|
14396
14437
|
const {toVertical: toVertical} = PointHelper;
|
|
14438
|
+
const tempPoint = {};
|
|
14397
14439
|
exports.UI.addAttr("motionPath", undefined, motionPathType);
|
|
14398
14440
|
exports.UI.addAttr("motionPrecision", 1, motionPathType);
|
|
14399
14441
|
exports.UI.addAttr("motion", undefined, motionPathType);
|
|
14442
|
+
exports.UI.addAttr("motionAround", undefined, motionPathType);
|
|
14400
14443
|
exports.UI.addAttr("motionVertical", "below", motionPathType);
|
|
14401
14444
|
exports.UI.addAttr("motionRotation", true, motionPathType);
|
|
14402
14445
|
ui$1.getMotionPath = function() {
|
|
@@ -14408,13 +14451,19 @@ var LeaferUI = function(exports) {
|
|
|
14408
14451
|
ui$1.getMotionContentHeight = function() {
|
|
14409
14452
|
return this.__layout.boxBounds.height;
|
|
14410
14453
|
};
|
|
14411
|
-
ui$1.getMotionPoint = function(motionDistance,
|
|
14454
|
+
ui$1.getMotionPoint = function(motionDistance, motionAround, motionVertical, offsetX = 0, offsetY = 0, pathElement) {
|
|
14412
14455
|
if (!pathElement) pathElement = getMotionPath(this);
|
|
14413
14456
|
const data = getMotionPathData(pathElement);
|
|
14414
14457
|
if (!data.total) return {};
|
|
14415
14458
|
const point = HighCurveHelper.getDistancePoint(data, motionDistance, pathElement.motionPrecision, offsetX);
|
|
14416
14459
|
const {motionRotation: motionRotation} = this;
|
|
14417
14460
|
if (isNumber(motionRotation)) point.rotation += motionRotation;
|
|
14461
|
+
if (motionAround && motionAround !== "top-left") {
|
|
14462
|
+
AroundHelper.toPoint(motionAround, this.__layout.boxBounds, tempPoint);
|
|
14463
|
+
PointHelper.set(tempPoint, point.x - tempPoint.x * this.scaleX, point.y - tempPoint.y * this.scaleY);
|
|
14464
|
+
if (point.rotation) PointHelper.rotate(tempPoint, point.rotation, point);
|
|
14465
|
+
PointHelper.copy(point, tempPoint);
|
|
14466
|
+
}
|
|
14418
14467
|
let verticalType, verticalOffset;
|
|
14419
14468
|
if (isObject(motionVertical)) verticalType = motionVertical.type, verticalOffset = motionVertical.offset; else if (isNumber(motionVertical)) verticalOffset = motionVertical; else verticalType = motionVertical;
|
|
14420
14469
|
if (verticalType !== "below" || offsetY) {
|
|
@@ -14464,7 +14513,7 @@ var LeaferUI = function(exports) {
|
|
|
14464
14513
|
if (data.total) leaf.__.__pathForRender = HighCurveHelper.getDistancePath(data, motion, leaf.motionPrecision);
|
|
14465
14514
|
} else {
|
|
14466
14515
|
if (leaf.motionText) leaf.__updateMotionText(); else {
|
|
14467
|
-
const point = leaf.getMotionPoint(motion);
|
|
14516
|
+
const point = leaf.getMotionPoint(motion, leaf.motionAround);
|
|
14468
14517
|
if (leaf.motionRotation === false) delete point.rotation;
|
|
14469
14518
|
leaf.set(point);
|
|
14470
14519
|
}
|
|
@@ -14686,6 +14735,7 @@ var LeaferUI = function(exports) {
|
|
|
14686
14735
|
exports.Keyboard = Keyboard;
|
|
14687
14736
|
exports.LayoutEvent = LayoutEvent;
|
|
14688
14737
|
exports.Layouter = Layouter;
|
|
14738
|
+
exports.LayouterHelper = LayouterHelper;
|
|
14689
14739
|
exports.LeafBounds = LeafBounds;
|
|
14690
14740
|
exports.LeafBoundsHelper = LeafBoundsHelper;
|
|
14691
14741
|
exports.LeafData = LeafData;
|
|
@@ -14819,6 +14869,7 @@ var LeaferUI = function(exports) {
|
|
|
14819
14869
|
exports.pathType = pathType;
|
|
14820
14870
|
exports.pen = pen;
|
|
14821
14871
|
exports.positionType = positionType;
|
|
14872
|
+
exports.registerPointsCurve = registerPointsCurve;
|
|
14822
14873
|
exports.registerUI = registerUI;
|
|
14823
14874
|
exports.registerUIEvent = registerUIEvent;
|
|
14824
14875
|
exports.resizeType = resizeType;
|
|
@@ -14834,7 +14885,7 @@ var LeaferUI = function(exports) {
|
|
|
14834
14885
|
exports.surfaceType = surfaceType;
|
|
14835
14886
|
exports.tempBounds = tempBounds$2;
|
|
14836
14887
|
exports.tempMatrix = tempMatrix$2;
|
|
14837
|
-
exports.tempPoint = tempPoint$
|
|
14888
|
+
exports.tempPoint = tempPoint$6;
|
|
14838
14889
|
exports.tryToNumber = tryToNumber;
|
|
14839
14890
|
exports.useCanvas = useCanvas;
|
|
14840
14891
|
exports.useModule = useModule;
|