@leafer/path
Advanced tools
+3
-3
| { | ||
| "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 @@ }, |
+11
-3
@@ -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 |
23775
0.94%560
0.9%+ Added
- Removed
Updated