You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign 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
1.11.2
to
1.12.0
+3
-3
package.json
{
"name": "@leafer/renderer",
"version": "1.11.2",
"version": "1.12.0",
"description": "@leafer/renderer",

@@ -25,7 +25,7 @@ "author": "Chao (Leafer) Wan",

"dependencies": {
"@leafer/core": "1.11.2"
"@leafer/core": "1.12.0"
},
"devDependencies": {
"@leafer/interface": "1.11.2"
"@leafer/interface": "1.12.0"
}
}

@@ -1,2 +0,2 @@

import { ILeaf, ILeaferBase, ILeaferCanvas, IRenderer, IRendererConfig, IEventListenerId, IBounds, IFunction, IRenderOptions } from '@leafer/interface'
import { ILeaf, ILeaferBase, ILeaferCanvas, IRenderer, IRendererConfig, IEventListenerId, IBounds, IFunction, IRenderOptions, ILeafList } from '@leafer/interface'
import { LayoutEvent, RenderEvent, ResizeEvent, ImageManager, Bounds, DataHelper, Platform, Debug, Run } from '@leafer/core'

@@ -60,3 +60,3 @@

if (!this.changed) this.changed = change
this.__requestRender()
if (!this.requestTime) this.__requestRender()
}

@@ -197,3 +197,3 @@

protected __render(bounds: IBounds, realBounds?: IBounds): void {
const { canvas } = this, includes = bounds.includes(this.target.__world), options: IRenderOptions = includes ? { includes } : { bounds, includes }
const { canvas, target } = this, includes = bounds.includes(target.__world), options: IRenderOptions = includes ? { includes } : { bounds, includes }

@@ -203,4 +203,6 @@ if (this.needFill) canvas.fillWorld(bounds, this.config.fill)

Platform.render(this.target, canvas, options)
if (this.config.useCellRender) options.cellList = this.getCellList()
Platform.render(target, canvas, options)
this.renderBounds = realBounds = realBounds || bounds

@@ -213,2 +215,7 @@ this.renderOptions = options

// need rewrite
getCellList(): ILeafList {
return undefined
}
public addBlock(block: IBounds): void {

@@ -215,0 +222,0 @@ if (!this.updateBlocks) this.updateBlocks = []

@@ -1,2 +0,2 @@

import { IRenderer, ILeaf, ILeaferCanvas, IBounds, IRendererConfig, IRenderOptions, IEventListenerId, IFunction } from '@leafer/interface';
import { IRenderer, ILeaf, ILeaferCanvas, IBounds, IRendererConfig, IRenderOptions, IEventListenerId, IFunction, ILeafList } from '@leafer/interface';
import { ResizeEvent, LayoutEvent } from '@leafer/core';

@@ -39,2 +39,3 @@

protected __render(bounds: IBounds, realBounds?: IBounds): void;
getCellList(): ILeafList;
addBlock(block: IBounds): void;

@@ -41,0 +42,0 @@ mergeBlocks(): void;