@leafer/math
Advanced tools
+2
-2
| { | ||
| "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 @@ } |
+1
-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; |
68134
0.4%1605
0.38%