@leafer/math
Advanced tools
+2
-2
| { | ||
| "name": "@leafer/math", | ||
| "version": "1.0.0-rc.25", | ||
| "version": "1.0.0-rc.26", | ||
| "description": "@leafer/math", | ||
@@ -25,4 +25,4 @@ "author": "Chao (Leafer) Wan", | ||
| "devDependencies": { | ||
| "@leafer/interface": "1.0.0-rc.25" | ||
| "@leafer/interface": "1.0.0-rc.26" | ||
| } | ||
| } |
+5
-0
@@ -117,2 +117,7 @@ import { IBounds, IBoundsData, IMatrixData, IPointData, IBoundsDataFn, IObject, IMatrix, IRadiusPointData, IMatrixWithLayoutData, IFourNumber } from '@leafer/interface' | ||
| public setPoint(point: IPointData): IBounds { | ||
| B.setPoint(this, point) | ||
| return this | ||
| } | ||
| public setPoints(points: IPointData[]): IBounds { | ||
@@ -119,0 +124,0 @@ B.setPoints(this, points) |
@@ -267,2 +267,6 @@ import { IPointData, IBoundsData, IMatrixData, IFourNumber, IBoundsDataFn, IObject, IMatrix, IOffsetBoundsData, IRadiusPointData, IMatrixWithScaleData } from '@leafer/interface' | ||
| setPoint(t: IBoundsData, point: IPointData): void { | ||
| B.set(t, point.x, point.y) | ||
| }, | ||
| addPoint(t: IBoundsData, point: IPointData): void { | ||
@@ -269,0 +273,0 @@ add(t, point as IBoundsData, true) |
+2
-0
@@ -66,2 +66,3 @@ import { INumberMap, IPoint, IPointData, IMatrixData, IBounds, IBoundsData, IMatrix, IFourNumber, IObject, IBoundsDataFn, IRadiusPointData, IMatrixWithLayoutData, IAutoBounds, IAutoBoundsData, ISizeData, IMatrixWithScaleData, ILayoutData, IUnitPointData, IAround, IAlign, IOffsetBoundsData, ITwoPointBoundsData, IMatrixWithOptionScaleData, IScaleData, IScrollPointData } from '@leafer/interface'; | ||
| setListWithFn(list: IObject[], boundsDataFn: IBoundsDataFn): IBounds; | ||
| setPoint(point: IPointData): IBounds; | ||
| setPoints(points: IPointData[]): IBounds; | ||
@@ -211,2 +212,3 @@ addPoint(point: IPointData): IBounds; | ||
| setPoints(t: IBoundsData, points: IPointData[]): void; | ||
| setPoint(t: IBoundsData, point: IPointData): void; | ||
| addPoint(t: IBoundsData, point: IPointData): void; | ||
@@ -213,0 +215,0 @@ getPoints(t: IBoundsData): IPointData[]; |
63558
0.48%1536
0.59%