@leafer/renderer 1.0.0-rc.6 → 1.0.0-rc.8

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-rc.6",
3
+ "version": "1.0.0-rc.8",
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-rc.6"
25
+ "@leafer/core": "1.0.0-rc.8"
26
26
  },
27
27
  "devDependencies": {
28
- "@leafer/interface": "1.0.0-rc.6"
28
+ "@leafer/interface": "1.0.0-rc.8"
29
29
  }
30
30
  }
package/src/Renderer.ts CHANGED
@@ -144,7 +144,7 @@ export class Renderer implements IRenderer {
144
144
 
145
145
  const bounds = block.getIntersect(canvas.bounds)
146
146
  const includes = block.includes(this.target.__world)
147
- const realBounds = new Bounds().copy(bounds)
147
+ const realBounds = new Bounds(bounds)
148
148
 
149
149
  canvas.save()
150
150
 
@@ -204,7 +204,7 @@ export class Renderer implements IRenderer {
204
204
  const { updateBlocks: list } = this
205
205
  if (list) {
206
206
  const bounds = new Bounds()
207
- bounds.setByList(list)
207
+ bounds.setList(list)
208
208
  list.length = 0
209
209
  list.push(bounds)
210
210
  }
@@ -240,7 +240,7 @@ export class Renderer implements IRenderer {
240
240
  if (item.updatedList) item.updatedList.list.some(leaf => {
241
241
  empty = (!leaf.__world.width || !leaf.__world.height)
242
242
  if (empty) {
243
- if (!leaf.isLeafer) debug.warn(leaf.innerName, ': empty')
243
+ if (!leaf.isLeafer) debug.tip(leaf.innerName, ': empty')
244
244
  empty = (!leaf.isBranch || leaf.isBranchLeaf) // render object
245
245
  }
246
246
  return empty