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

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

"dependencies": {
"@leafer/file": "1.9.6",
"@leafer/list": "1.9.6",
"@leafer/math": "1.9.6",
"@leafer/data": "1.9.6",
"@leafer/path": "1.9.6",
"@leafer/debug": "1.9.6",
"@leafer/platform": "1.9.6"
"@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"
},
"devDependencies": {
"@leafer/interface": "1.9.6"
"@leafer/interface": "1.9.7"
}
}

@@ -9,3 +9,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'

const { copy, multiplyParent } = MatrixHelper, { round } = Math, tempPixelBounds = new Bounds(), tempPixelBounds2 = new Bounds()
const { copy, multiplyParent, pixelScale } = MatrixHelper, { round } = Math, tempPixelBounds = new Bounds(), tempPixelBounds2 = new Bounds()
const minSize: IScreenSizeData = { width: 1, height: 1, pixelRatio: 1 }

@@ -140,10 +140,4 @@

if (parentMatrix) multiplyParent(matrix, parentMatrix, w)
pixelScale(matrix, pixelRatio, w)
w.a = matrix.a * pixelRatio
w.b = matrix.b * pixelRatio
w.c = matrix.c * pixelRatio
w.d = matrix.d * pixelRatio
w.e = matrix.e * pixelRatio
w.f = matrix.f * pixelRatio
if (pixelSnap) {

@@ -150,0 +144,0 @@ 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