You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@leafer/canvas

Package Overview
Dependencies
Maintainers
1
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@leafer/canvas - npm Package Compare versions

Comparing version
1.5.0
to
1.5.1
+9
-9
package.json
{
"name": "@leafer/canvas",
"version": "1.5.0",
"version": "1.5.1",
"description": "@leafer/canvas",

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

"dependencies": {
"@leafer/file": "1.5.0",
"@leafer/list": "1.5.0",
"@leafer/math": "1.5.0",
"@leafer/data": "1.5.0",
"@leafer/path": "1.5.0",
"@leafer/debug": "1.5.0",
"@leafer/platform": "1.5.0"
"@leafer/file": "1.5.1",
"@leafer/list": "1.5.1",
"@leafer/math": "1.5.1",
"@leafer/data": "1.5.1",
"@leafer/path": "1.5.1",
"@leafer/debug": "1.5.1",
"@leafer/platform": "1.5.1"
},
"devDependencies": {
"@leafer/interface": "1.5.0"
"@leafer/interface": "1.5.1"
}
}

@@ -54,3 +54,2 @@ import { IBounds, ILeaferCanvas, ICanvasStrokeOptions, ILeaferCanvasConfig, IExportOptions, IMatrixData, IBoundsData, IAutoBounds, IScreenSizeData, IResizeEventListener, IMatrixWithBoundsData, IPointData, InnerId, ICanvasManager, IWindingRule, IBlendMode, IExportImageType, IExportFileType, IBlob, ICursorType, ILeaferCanvasView, IRadiusPointData, IObject } from '@leafer/interface'

if (!config) config = minSize
if (!config.pixelRatio) config.pixelRatio = Platform.devicePixelRatio

@@ -63,3 +62,3 @@ this.manager = manager

this.size.pixelRatio = pixelRatio
this.size.pixelRatio = pixelRatio | Platform.devicePixelRatio
this.config = config

@@ -312,3 +311,3 @@

public isSameSize(size: IScreenSizeData): boolean {
return this.width === size.width && this.height === size.height && this.pixelRatio === size.pixelRatio
return this.width === size.width && this.height === size.height && (!size.pixelRatio || this.pixelRatio === size.pixelRatio)
}

@@ -315,0 +314,0 @@