@leafer/path
Advanced tools
+4
-4
| { | ||
| "name": "@leafer/path", | ||
| "version": "1.0.0-rc.17", | ||
| "version": "1.0.0-rc.18", | ||
| "description": "@leafer/path", | ||
@@ -25,8 +25,8 @@ "author": "Chao (Leafer) Wan", | ||
| "dependencies": { | ||
| "@leafer/math": "1.0.0-rc.17", | ||
| "@leafer/debug": "1.0.0-rc.17" | ||
| "@leafer/math": "1.0.0-rc.18", | ||
| "@leafer/debug": "1.0.0-rc.18" | ||
| }, | ||
| "devDependencies": { | ||
| "@leafer/interface": "1.0.0-rc.17" | ||
| "@leafer/interface": "1.0.0-rc.18" | ||
| } | ||
| } |
+2
-0
@@ -22,1 +22,3 @@ export { PathHelper } from './PathHelper' | ||
| PathHelper.convertToCanvasData = PathConvert.toCanvasData | ||
| export const pen = new PathCreator() |
@@ -16,2 +16,6 @@ import { IPathCommandData, IPathDrawer, IPathString } from '@leafer/interface' | ||
| constructor(path?: IPathCommandData | IPathString) { | ||
| this.set(path) | ||
| } | ||
| public set(path?: IPathCommandData | IPathString): PathCreator { | ||
| if (path) { | ||
@@ -22,2 +26,3 @@ this.__path = typeof path === 'string' ? PathHelper.parse(path) : path | ||
| } | ||
| return this | ||
| } | ||
@@ -24,0 +29,0 @@ |
+4
-1
@@ -29,2 +29,3 @@ import { IPathCreator, IPathCommandData, IPathDrawer, IPathString, IBoundsData, ITwoPointBoundsData, IPointData, INumberMap, IStringMap } from '@leafer/interface'; | ||
| constructor(path?: IPathCommandData | IPathString); | ||
| set(path?: IPathCommandData | IPathString): PathCreator; | ||
| beginPath(): PathCreator; | ||
@@ -103,2 +104,4 @@ moveTo(x: number, y: number): PathCreator; | ||
| export { BezierHelper, EllipseHelper, NeedConvertToCanvasCommandMap, PathBounds, PathCommandDataHelper, PathCommandMap, PathConvert, PathCorner, PathCreator, PathDrawer, PathHelper, PathNumberCommandLengthMap, PathNumberCommandMap, RectHelper }; | ||
| declare const pen: PathCreator; | ||
| export { BezierHelper, EllipseHelper, NeedConvertToCanvasCommandMap, PathBounds, PathCommandDataHelper, PathCommandMap, PathConvert, PathCorner, PathCreator, PathDrawer, PathHelper, PathNumberCommandLengthMap, PathNumberCommandMap, RectHelper, pen }; |
59453
0.43%1165
0.52%+ Added
+ Added
- Removed
- Removed
Updated
Updated