@leafer-draw/worker 1.9.2 → 1.9.3
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/worker.js
CHANGED
|
@@ -1129,10 +1129,8 @@ var LeaferUI = function(exports) {
|
|
|
1129
1129
|
t.y += y;
|
|
1130
1130
|
},
|
|
1131
1131
|
scroll(t, data) {
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
t.y += data.scrollY;
|
|
1135
|
-
}
|
|
1132
|
+
t.x += data.scrollX;
|
|
1133
|
+
t.y += data.scrollY;
|
|
1136
1134
|
},
|
|
1137
1135
|
getByMove(t, x, y) {
|
|
1138
1136
|
t = Object.assign({}, t);
|
|
@@ -6343,7 +6341,7 @@ var LeaferUI = function(exports) {
|
|
|
6343
6341
|
this.levelMap = null;
|
|
6344
6342
|
}
|
|
6345
6343
|
}
|
|
6346
|
-
const version = "1.9.
|
|
6344
|
+
const version = "1.9.3";
|
|
6347
6345
|
class LeaferCanvas extends LeaferCanvasBase {
|
|
6348
6346
|
get allowBackgroundColor() {
|
|
6349
6347
|
return true;
|
|
@@ -8195,7 +8193,10 @@ var LeaferUI = function(exports) {
|
|
|
8195
8193
|
const data = this.__, layout = this.__layout, {renderBounds: renderBounds, boxBounds: boxBounds} = layout;
|
|
8196
8194
|
const childrenRenderBounds = layout.childrenRenderBounds || (layout.childrenRenderBounds = getBoundsData());
|
|
8197
8195
|
super.__updateRenderBounds(childrenRenderBounds);
|
|
8198
|
-
|
|
8196
|
+
if (data.overflow.includes("scroll")) {
|
|
8197
|
+
add(childrenRenderBounds, boxBounds);
|
|
8198
|
+
scroll(childrenRenderBounds, data);
|
|
8199
|
+
}
|
|
8199
8200
|
this.__updateRectRenderBounds();
|
|
8200
8201
|
isOverflow = !includes$1(boxBounds, childrenRenderBounds);
|
|
8201
8202
|
if (isOverflow && data.overflow === "show") add(renderBounds, childrenRenderBounds);
|