@leafer/renderer
Advanced tools
+3
-3
| { | ||
| "name": "@leafer/renderer", | ||
| "version": "2.0.1", | ||
| "version": "2.0.2", | ||
| "description": "@leafer/renderer", | ||
@@ -25,7 +25,7 @@ "author": "Chao (Leafer) Wan", | ||
| "dependencies": { | ||
| "@leafer/core": "2.0.1" | ||
| "@leafer/core": "2.0.2" | ||
| }, | ||
| "devDependencies": { | ||
| "@leafer/interface": "2.0.1" | ||
| "@leafer/interface": "2.0.2" | ||
| } | ||
| } |
+4
-3
@@ -220,3 +220,3 @@ import { ILeaf, ILeaferBase, ILeaferCanvas, IRenderer, IRendererConfig, IEventListenerId, IBounds, IFunction, IRenderOptions, ILeafList } from '@leafer/interface' | ||
| public addBlock(block: IBounds): void { | ||
| public addBlock(block: IBounds, _leafList?: ILeafList): void { | ||
| if (!this.updateBlocks) this.updateBlocks = [] | ||
@@ -283,3 +283,4 @@ this.updateBlocks.push(block) | ||
| let empty: boolean | ||
| if (item.updatedList) item.updatedList.list.some(leaf => { | ||
| const { updatedList } = item | ||
| if (updatedList) updatedList.list.some(leaf => { | ||
| empty = (!leaf.__world.width || !leaf.__world.height) | ||
@@ -292,3 +293,3 @@ if (empty) { | ||
| }) | ||
| this.addBlock(empty ? this.canvas.bounds : item.updatedBounds) | ||
| this.addBlock(empty ? this.canvas.bounds : item.updatedBounds, updatedList) | ||
| }) | ||
@@ -295,0 +296,0 @@ } |
+1
-1
@@ -40,3 +40,3 @@ import { IRenderer, ILeaf, ILeaferCanvas, IBounds, IRendererConfig, IRenderOptions, IEventListenerId, IFunction, ILeafList } from '@leafer/interface'; | ||
| getCellList(): ILeafList; | ||
| addBlock(block: IBounds): void; | ||
| addBlock(block: IBounds, _leafList?: ILeafList): void; | ||
| mergeBlocks(): void; | ||
@@ -43,0 +43,0 @@ protected __requestRender(): void; |
13449
0.67%299
0.34%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated