@leafer-draw/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 +9 -6
- package/dist/worker.min.js +1 -1
- package/dist/worker.module.js +9 -6
- package/dist/worker.module.min.js +1 -1
- package/package.json +6 -6
package/dist/worker.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
|
class LeaferCanvas extends LeaferCanvasBase {
|
|
6007
6007
|
get allowBackgroundColor() { return true; }
|
|
@@ -7627,10 +7627,13 @@ let Leafer = Leafer_1 = class Leafer extends Group {
|
|
|
7627
7627
|
const data = DataHelper.copyAttrs({}, size, canvasSizeAttrs);
|
|
7628
7628
|
Object.keys(data).forEach(key => this[key] = data[key]);
|
|
7629
7629
|
}
|
|
7630
|
-
forceRender(bounds) {
|
|
7631
|
-
|
|
7632
|
-
if (
|
|
7633
|
-
|
|
7630
|
+
forceRender(bounds, sync) {
|
|
7631
|
+
const { renderer } = this;
|
|
7632
|
+
if (renderer) {
|
|
7633
|
+
renderer.addBlock(bounds ? new Bounds(bounds) : this.canvas.bounds);
|
|
7634
|
+
if (this.viewReady)
|
|
7635
|
+
sync ? renderer.render() : renderer.update();
|
|
7636
|
+
}
|
|
7634
7637
|
}
|
|
7635
7638
|
requestRender(change = false) {
|
|
7636
7639
|
if (this.renderer)
|