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
116
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.9.7
to
1.9.8
+9
-9
package.json
{
"name": "@leafer/canvas",
"version": "1.9.7",
"version": "1.9.8",
"description": "@leafer/canvas",

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

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

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

if (pixelSnap) {
if (pixelSnap && !matrix.ignorePixelSnap) {
if (matrix.half && (matrix.half * pixelRatio) % 2) w.e = round(w.e - 0.5) + 0.5, w.f = round(w.f - 0.5) + 0.5

@@ -144,0 +144,0 @@ else w.e = round(w.e), w.f = round(w.f)