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.
@@ -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.0";
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
- this.renderer.addBlock(bounds ? new Bounds(bounds) : this.canvas.bounds);
7805
- if (this.viewReady)
7806
- this.renderer.render();
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)