@leafer-ui/worker 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/worker.js +11 -8
- package/dist/worker.min.js +1 -1
- package/dist/worker.module.js +11 -8
- package/dist/worker.module.min.js +1 -1
- package/package.json +10 -9
package/dist/worker.js
CHANGED
|
@@ -5434,7 +5434,7 @@ var LeaferUI = (function (exports) {
|
|
|
5434
5434
|
this.__[attrName] = value === undefined ? null : undefined;
|
|
5435
5435
|
this[attrName] = value;
|
|
5436
5436
|
}
|
|
5437
|
-
forceRender(_bounds) {
|
|
5437
|
+
forceRender(_bounds, _sync) {
|
|
5438
5438
|
this.forceUpdate('surface');
|
|
5439
5439
|
}
|
|
5440
5440
|
__updateWorldMatrix() { }
|
|
@@ -6004,7 +6004,7 @@ var LeaferUI = (function (exports) {
|
|
|
6004
6004
|
}
|
|
6005
6005
|
}
|
|
6006
6006
|
|
|
6007
|
-
const version = "1.2.
|
|
6007
|
+
const version = "1.2.1";
|
|
6008
6008
|
|
|
6009
6009
|
class LeaferCanvas extends LeaferCanvasBase {
|
|
6010
6010
|
get allowBackgroundColor() { return true; }
|
|
@@ -7903,10 +7903,13 @@ var LeaferUI = (function (exports) {
|
|
|
7903
7903
|
const data = DataHelper.copyAttrs({}, size, canvasSizeAttrs);
|
|
7904
7904
|
Object.keys(data).forEach(key => this[key] = data[key]);
|
|
7905
7905
|
}
|
|
7906
|
-
forceRender(bounds) {
|
|
7907
|
-
|
|
7908
|
-
if (
|
|
7909
|
-
|
|
7906
|
+
forceRender(bounds, sync) {
|
|
7907
|
+
const { renderer } = this;
|
|
7908
|
+
if (renderer) {
|
|
7909
|
+
renderer.addBlock(bounds ? new Bounds(bounds) : this.canvas.bounds);
|
|
7910
|
+
if (this.viewReady)
|
|
7911
|
+
sync ? renderer.render() : renderer.update();
|
|
7912
|
+
}
|
|
7910
7913
|
}
|
|
7911
7914
|
requestRender(change = false) {
|
|
7912
7915
|
if (this.renderer)
|
|
@@ -8895,8 +8898,8 @@ var LeaferUI = (function (exports) {
|
|
|
8895
8898
|
super.lockLayout();
|
|
8896
8899
|
this.children.forEach(leafer => leafer.lockLayout());
|
|
8897
8900
|
}
|
|
8898
|
-
forceRender(bounds) {
|
|
8899
|
-
this.children.forEach(leafer => leafer.forceRender(bounds));
|
|
8901
|
+
forceRender(bounds, sync) {
|
|
8902
|
+
this.children.forEach(leafer => leafer.forceRender(bounds, sync));
|
|
8900
8903
|
}
|
|
8901
8904
|
addLeafer(merge) {
|
|
8902
8905
|
const leafer = new exports.Leafer(merge);
|