Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

@leafer/renderer

Package Overview
Dependencies
Maintainers
1
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@leafer/renderer - npm Package Compare versions

Comparing version
2.0.1
to
2.0.2
+3
-3
package.json
{
"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"
}
}

@@ -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 @@ }

@@ -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;