leafer-draw 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 +9 -6
- package/dist/web.min.js +1 -1
- package/dist/web.module.js +9 -6
- package/dist/web.module.min.js +1 -1
- package/package.json +2 -2
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$5 = Debug.get('LeaferCanvas');
|
|
6007
6007
|
class LeaferCanvas extends LeaferCanvasBase {
|
|
@@ -7800,10 +7800,13 @@ let Leafer = Leafer_1 = class Leafer extends Group {
|
|
|
7800
7800
|
const data = DataHelper.copyAttrs({}, size, canvasSizeAttrs);
|
|
7801
7801
|
Object.keys(data).forEach(key => this[key] = data[key]);
|
|
7802
7802
|
}
|
|
7803
|
-
forceRender(bounds) {
|
|
7804
|
-
|
|
7805
|
-
if (
|
|
7806
|
-
|
|
7803
|
+
forceRender(bounds, sync) {
|
|
7804
|
+
const { renderer } = this;
|
|
7805
|
+
if (renderer) {
|
|
7806
|
+
renderer.addBlock(bounds ? new Bounds(bounds) : this.canvas.bounds);
|
|
7807
|
+
if (this.viewReady)
|
|
7808
|
+
sync ? renderer.render() : renderer.update();
|
|
7809
|
+
}
|
|
7807
7810
|
}
|
|
7808
7811
|
requestRender(change = false) {
|
|
7809
7812
|
if (this.renderer)
|