leafer-draw 1.12.0 → 1.12.1
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 +47 -4
- package/dist/web.min.js +1 -1
- package/dist/web.min.js.map +1 -1
- package/dist/web.module.js +47 -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.js
CHANGED
|
@@ -4652,9 +4652,52 @@ var LeaferUI = function(exports) {
|
|
|
4652
4652
|
if (exclude && exclude === branch) continue;
|
|
4653
4653
|
updateBounds$3(branch);
|
|
4654
4654
|
}
|
|
4655
|
+
},
|
|
4656
|
+
move(branch, x, y) {
|
|
4657
|
+
let w;
|
|
4658
|
+
const {children: children} = branch;
|
|
4659
|
+
for (let i = 0, len = children.length; i < len; i++) {
|
|
4660
|
+
branch = children[i];
|
|
4661
|
+
w = branch.__world;
|
|
4662
|
+
w.e += x;
|
|
4663
|
+
w.f += y;
|
|
4664
|
+
w.x += x;
|
|
4665
|
+
w.y += y;
|
|
4666
|
+
if (branch.isBranch) move$3(branch, x, y);
|
|
4667
|
+
}
|
|
4668
|
+
},
|
|
4669
|
+
scale(branch, x, y, scaleX, scaleY, a, b) {
|
|
4670
|
+
let w;
|
|
4671
|
+
const {children: children} = branch;
|
|
4672
|
+
const changeScaleX = scaleX - 1;
|
|
4673
|
+
const changeScaleY = scaleY - 1;
|
|
4674
|
+
for (let i = 0, len = children.length; i < len; i++) {
|
|
4675
|
+
branch = children[i];
|
|
4676
|
+
w = branch.__world;
|
|
4677
|
+
w.a *= scaleX;
|
|
4678
|
+
w.d *= scaleY;
|
|
4679
|
+
if (w.b || w.c) {
|
|
4680
|
+
w.b *= scaleX;
|
|
4681
|
+
w.c *= scaleY;
|
|
4682
|
+
}
|
|
4683
|
+
if (w.e === w.x && w.f === w.y) {
|
|
4684
|
+
w.x = w.e += (w.e - a) * changeScaleX + x;
|
|
4685
|
+
w.y = w.f += (w.f - b) * changeScaleY + y;
|
|
4686
|
+
} else {
|
|
4687
|
+
w.e += (w.e - a) * changeScaleX + x;
|
|
4688
|
+
w.f += (w.f - b) * changeScaleY + y;
|
|
4689
|
+
w.x += (w.x - a) * changeScaleX + x;
|
|
4690
|
+
w.y += (w.y - b) * changeScaleY + y;
|
|
4691
|
+
}
|
|
4692
|
+
w.width *= scaleX;
|
|
4693
|
+
w.height *= scaleY;
|
|
4694
|
+
w.scaleX *= scaleX;
|
|
4695
|
+
w.scaleY *= scaleY;
|
|
4696
|
+
if (branch.isBranch) scale$1(branch, x, y, scaleX, scaleY, a, b);
|
|
4697
|
+
}
|
|
4655
4698
|
}
|
|
4656
4699
|
};
|
|
4657
|
-
const {pushAllChildBranch: pushAllChildBranch$1, pushAllBranchStack: pushAllBranchStack, updateBoundsByBranchStack: updateBoundsByBranchStack} = BranchHelper;
|
|
4700
|
+
const {pushAllChildBranch: pushAllChildBranch$1, pushAllBranchStack: pushAllBranchStack, updateBoundsByBranchStack: updateBoundsByBranchStack, move: move$3, scale: scale$1} = BranchHelper;
|
|
4658
4701
|
const WaitHelper = {
|
|
4659
4702
|
run(wait) {
|
|
4660
4703
|
if (wait && wait.length) {
|
|
@@ -6118,10 +6161,10 @@ var LeaferUI = function(exports) {
|
|
|
6118
6161
|
hit(_world, _hitRadius) {
|
|
6119
6162
|
return true;
|
|
6120
6163
|
}
|
|
6121
|
-
__hitWorld(_point) {
|
|
6164
|
+
__hitWorld(_point, _forceHitFill) {
|
|
6122
6165
|
return true;
|
|
6123
6166
|
}
|
|
6124
|
-
__hit(_local) {
|
|
6167
|
+
__hit(_local, _forceHitFill) {
|
|
6125
6168
|
return true;
|
|
6126
6169
|
}
|
|
6127
6170
|
__hitFill(_inner) {
|
|
@@ -6470,7 +6513,7 @@ var LeaferUI = function(exports) {
|
|
|
6470
6513
|
this.levelMap = null;
|
|
6471
6514
|
}
|
|
6472
6515
|
}
|
|
6473
|
-
const version = "1.12.
|
|
6516
|
+
const version = "1.12.1";
|
|
6474
6517
|
const debug$4 = Debug.get("LeaferCanvas");
|
|
6475
6518
|
class LeaferCanvas extends LeaferCanvasBase {
|
|
6476
6519
|
set zIndex(zIndex) {
|