leafer-game 2.2.8 → 2.2.9
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 +5 -25
- package/dist/web.min.js +1 -1
- package/dist/web.min.js.map +1 -1
- package/dist/web.module.js +5 -26
- 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
|
@@ -2800,7 +2800,7 @@ var LeaferUI = function(exports) {
|
|
|
2800
2800
|
toCommand(_nodes) {
|
|
2801
2801
|
return [];
|
|
2802
2802
|
},
|
|
2803
|
-
toNode(_data) {
|
|
2803
|
+
toNode(_data, _filterSamePoint) {
|
|
2804
2804
|
return [];
|
|
2805
2805
|
}
|
|
2806
2806
|
};
|
|
@@ -6626,7 +6626,7 @@ var LeaferUI = function(exports) {
|
|
|
6626
6626
|
this.levelMap = null;
|
|
6627
6627
|
}
|
|
6628
6628
|
}
|
|
6629
|
-
const version = "2.2.
|
|
6629
|
+
const version = "2.2.9";
|
|
6630
6630
|
const debug$5 = Debug.get("LeaferCanvas");
|
|
6631
6631
|
class LeaferCanvas extends LeaferCanvasBase {
|
|
6632
6632
|
set zIndex(zIndex) {
|
|
@@ -14271,6 +14271,7 @@ var LeaferUI = function(exports) {
|
|
|
14271
14271
|
motionDistance = UnitConvert.number(motionDistance, total);
|
|
14272
14272
|
if (offsetX) motionDistance += offsetX;
|
|
14273
14273
|
if (motionDistance > total) motionDistance = motionDistance % total;
|
|
14274
|
+
if (motionDistance < 0) motionDistance = total + motionDistance;
|
|
14274
14275
|
let nowDistance = 0, distance, to = {};
|
|
14275
14276
|
let i = 0, index = 0, x = 0, y = 0, startX = 0, startY = 0, toX, toY, command;
|
|
14276
14277
|
let x1, y1, x2, y2, t;
|
|
@@ -14461,10 +14462,7 @@ var LeaferUI = function(exports) {
|
|
|
14461
14462
|
ui$1.getMotionPathData = function() {
|
|
14462
14463
|
return getMotionPathData(getMotionPath(this));
|
|
14463
14464
|
};
|
|
14464
|
-
ui$1.
|
|
14465
|
-
return this.__layout.boxBounds.height;
|
|
14466
|
-
};
|
|
14467
|
-
ui$1.getMotionPoint = function(motionDistance, motionAround, motionVertical, offsetX = 0, offsetY = 0, pathElement) {
|
|
14465
|
+
ui$1.getMotionPoint = function(motionDistance, motionAround, offsetX = 0, offsetY = 0, pathElement) {
|
|
14468
14466
|
if (!pathElement) pathElement = getMotionPath(this);
|
|
14469
14467
|
const data = getMotionPathData(pathElement);
|
|
14470
14468
|
if (!data.total) return {};
|
|
@@ -14477,25 +14475,7 @@ var LeaferUI = function(exports) {
|
|
|
14477
14475
|
if (point.rotation) PointHelper.rotate(tempPoint, point.rotation, point);
|
|
14478
14476
|
PointHelper.copy(point, tempPoint);
|
|
14479
14477
|
}
|
|
14480
|
-
|
|
14481
|
-
if (isObject(motionVertical)) verticalType = motionVertical.type, verticalOffset = motionVertical.offset; else if (isNumber(motionVertical)) verticalOffset = motionVertical; else verticalType = motionVertical;
|
|
14482
|
-
if (verticalType !== "below" || offsetY) {
|
|
14483
|
-
const {rotation: rotation} = point, height = this.getMotionContentHeight();
|
|
14484
|
-
if (verticalOffset) offsetY += verticalType === "above" ? -verticalOffset : verticalOffset;
|
|
14485
|
-
switch (verticalType) {
|
|
14486
|
-
case "above":
|
|
14487
|
-
toVertical(point, rotation, -height + offsetY);
|
|
14488
|
-
break;
|
|
14489
|
-
|
|
14490
|
-
case "center":
|
|
14491
|
-
toVertical(point, rotation, -height / 2 + offsetY);
|
|
14492
|
-
break;
|
|
14493
|
-
|
|
14494
|
-
case "below":
|
|
14495
|
-
default:
|
|
14496
|
-
toVertical(point, rotation, offsetY);
|
|
14497
|
-
}
|
|
14498
|
-
}
|
|
14478
|
+
if (offsetY) toVertical(point, point.rotation, offsetY);
|
|
14499
14479
|
MatrixHelper.toOuterPoint(pathElement.localTransform, point);
|
|
14500
14480
|
return point;
|
|
14501
14481
|
};
|