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

@leafer/path

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/path - npm Package Compare versions

Comparing version
1.0.0-alpha.21
to
1.0.0-alpha.23
+3
-3
package.json
{
"name": "@leafer/path",
"version": "1.0.0-alpha.21",
"version": "1.0.0-alpha.23",
"description": "@leafer/path",

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

"dependencies": {
"@leafer/math": "1.0.0-alpha.21"
"@leafer/math": "1.0.0-alpha.23"
},
"devDependencies": {
"@leafer/interface": "1.0.0-alpha.21"
"@leafer/interface": "1.0.0-alpha.23"
}
}

@@ -83,3 +83,2 @@ import { IPathCommandData } from '@leafer/interface'

//console.log(pathString, P._data)
return (convert && needConvert) ? PathConvert.convertToSimple(data) : data

@@ -86,0 +85,0 @@ },

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

import { IPathDrawer, ITwoPointBoundsData, IPathCommandData } from '@leafer/interface'
import { IPathDrawer, ITwoPointBoundsData, IPathCommandData, IBoundsData } from '@leafer/interface'
import { TwoPointBoundsHelper } from '@leafer/math'

@@ -10,5 +10,6 @@

const { toTwoPointBounds } = BezierHelper
const { add, addPoint, setPoint } = TwoPointBoundsHelper
const { add, addPoint, setPoint, toBounds } = TwoPointBoundsHelper
const tempPointBounds = {} as ITwoPointBoundsData
const setPointBounds = {} as ITwoPointBoundsData

@@ -21,2 +22,7 @@ export const PathHelper = {

toBounds(data: IPathCommandData, setBounds: IBoundsData): void {
P.toTwoPointBounds(data, setPointBounds)
toBounds(setPointBounds, setBounds)
},
toTwoPointBounds(data: IPathCommandData, setPointBounds: ITwoPointBoundsData): void {

@@ -117,2 +123,4 @@

}
}
const P = PathHelper