@leafer/renderer 1.0.0 → 1.0.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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/Renderer.ts +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer/renderer",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "@leafer/renderer",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -22,9 +22,9 @@
22
22
  "leaferjs"
23
23
  ],
24
24
  "dependencies": {
25
- "@leafer/core": "1.0.0"
25
+ "@leafer/core": "1.0.1"
26
26
  },
27
27
  "devDependencies": {
28
- "@leafer/interface": "1.0.0"
28
+ "@leafer/interface": "1.0.1"
29
29
  }
30
30
  }
package/src/Renderer.ts CHANGED
@@ -188,13 +188,13 @@ export class Renderer implements IRenderer {
188
188
 
189
189
  this.target.__render(this.canvas, options)
190
190
 
191
- this.renderBounds = realBounds || bounds
191
+ this.renderBounds = realBounds = realBounds || bounds
192
192
  this.renderOptions = options
193
- this.totalBounds.isEmpty() ? this.totalBounds = this.renderBounds : this.totalBounds.add(this.renderBounds)
193
+ this.totalBounds.isEmpty() ? this.totalBounds = realBounds : this.totalBounds.add(realBounds)
194
194
 
195
195
  if (Debug.showHitView) this.renderHitView(options)
196
196
  if (Debug.showBoundsView) this.renderBoundsView(options)
197
- this.canvas.updateRender()
197
+ this.canvas.updateRender(realBounds)
198
198
  }
199
199
 
200
200
  public renderHitView(_options: IRenderOptions): void { }