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

@leafer/math

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

Comparing version
1.7.0
to
1.8.0
+2
-2
package.json
{
"name": "@leafer/math",
"version": "1.7.0",
"version": "1.8.0",
"description": "@leafer/math",

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

"devDependencies": {
"@leafer/interface": "1.7.0"
"@leafer/interface": "1.8.0"
}
}

@@ -45,2 +45,8 @@ import { IAround, IPointData, IBoundsData, IUnitPointData } from '@leafer/interface'

if (!onlyBoxSize) to.x += box.x, to.y += box.y
},
getPoint(around: IAround, box: IBoundsData, to?: IPointData): IPointData {
if (!to) to = {} as IPointData
AroundHelper.toPoint(around, box, to, true)
return to
}

@@ -47,0 +53,0 @@ }

@@ -176,2 +176,3 @@ import { INumberMap, IPoint, IPointData, IMatrixData, IBounds, IBoundsData, IMatrix, IAlign, IFourNumber, ISide, IObject, IBoundsDataFn, IRadiusPointData, IMatrixWithLayoutData, IAutoBounds, IAutoBoundsData, ISizeData, IMatrixWithScaleData, ILayoutData, IUnitPointData, IAround, IOffsetBoundsData, ITwoPointBoundsData, IRangeSize, IOptionSizeData, IScaleData, IMatrixWithOptionScaleData, IScrollPointData } from '@leafer/interface';

toPoint(around: IAround, box: IBoundsData, to: IPointData, onlyBoxSize?: boolean, content?: IBoundsData, onlyContentSize?: boolean): void;
getPoint(around: IAround, box: IBoundsData, to?: IPointData): IPointData;
};

@@ -178,0 +179,0 @@ declare function get(around: IAround): IUnitPointData;