leafer-ui 1.2.0 → 1.2.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 +11 -8
- package/dist/web.min.js +1 -1
- package/dist/web.module.js +11 -8
- package/dist/web.module.min.js +1 -1
- package/package.json +12 -11
package/dist/web.module.js
CHANGED
|
@@ -5431,7 +5431,7 @@ let Leaf = class Leaf {
|
|
|
5431
5431
|
this.__[attrName] = value === undefined ? null : undefined;
|
|
5432
5432
|
this[attrName] = value;
|
|
5433
5433
|
}
|
|
5434
|
-
forceRender(_bounds) {
|
|
5434
|
+
forceRender(_bounds, _sync) {
|
|
5435
5435
|
this.forceUpdate('surface');
|
|
5436
5436
|
}
|
|
5437
5437
|
__updateWorldMatrix() { }
|
|
@@ -6001,7 +6001,7 @@ class LeafLevelList {
|
|
|
6001
6001
|
}
|
|
6002
6002
|
}
|
|
6003
6003
|
|
|
6004
|
-
const version = "1.2.
|
|
6004
|
+
const version = "1.2.1";
|
|
6005
6005
|
|
|
6006
6006
|
const debug$6 = Debug.get('LeaferCanvas');
|
|
6007
6007
|
class LeaferCanvas extends LeaferCanvasBase {
|
|
@@ -8073,10 +8073,13 @@ let Leafer = Leafer_1 = class Leafer extends Group {
|
|
|
8073
8073
|
const data = DataHelper.copyAttrs({}, size, canvasSizeAttrs);
|
|
8074
8074
|
Object.keys(data).forEach(key => this[key] = data[key]);
|
|
8075
8075
|
}
|
|
8076
|
-
forceRender(bounds) {
|
|
8077
|
-
|
|
8078
|
-
if (
|
|
8079
|
-
|
|
8076
|
+
forceRender(bounds, sync) {
|
|
8077
|
+
const { renderer } = this;
|
|
8078
|
+
if (renderer) {
|
|
8079
|
+
renderer.addBlock(bounds ? new Bounds(bounds) : this.canvas.bounds);
|
|
8080
|
+
if (this.viewReady)
|
|
8081
|
+
sync ? renderer.render() : renderer.update();
|
|
8082
|
+
}
|
|
8080
8083
|
}
|
|
8081
8084
|
requestRender(change = false) {
|
|
8082
8085
|
if (this.renderer)
|
|
@@ -9065,8 +9068,8 @@ let App = class App extends Leafer {
|
|
|
9065
9068
|
super.lockLayout();
|
|
9066
9069
|
this.children.forEach(leafer => leafer.lockLayout());
|
|
9067
9070
|
}
|
|
9068
|
-
forceRender(bounds) {
|
|
9069
|
-
this.children.forEach(leafer => leafer.forceRender(bounds));
|
|
9071
|
+
forceRender(bounds, sync) {
|
|
9072
|
+
this.children.forEach(leafer => leafer.forceRender(bounds, sync));
|
|
9070
9073
|
}
|
|
9071
9074
|
addLeafer(merge) {
|
|
9072
9075
|
const leafer = new Leafer(merge);
|