@leafer/path
Advanced tools
+4
-4
| { | ||
| "name": "@leafer/path", | ||
| "version": "1.0.0-rc.4", | ||
| "version": "1.0.0-rc.5", | ||
| "description": "@leafer/path", | ||
@@ -25,8 +25,8 @@ "author": "Chao (Leafer) Wan", | ||
| "dependencies": { | ||
| "@leafer/math": "1.0.0-rc.4", | ||
| "@leafer/debug": "1.0.0-rc.4" | ||
| "@leafer/math": "1.0.0-rc.5", | ||
| "@leafer/debug": "1.0.0-rc.5" | ||
| }, | ||
| "devDependencies": { | ||
| "@leafer/interface": "1.0.0-rc.4" | ||
| "@leafer/interface": "1.0.0-rc.5" | ||
| } | ||
| } |
| import { IPathCommandData } from '@leafer/interface' | ||
| import { OneRadian, PI2 } from '@leafer/math' | ||
| import { Platform } from '@leafer/platform' | ||
@@ -7,2 +8,3 @@ import { PathCommandMap } from './PathCommandMap' | ||
| const { sin, cos, sqrt, atan2 } = Math | ||
@@ -60,3 +62,3 @@ const { ellipse } = BezierHelper | ||
| if (curveMode) { | ||
| if (curveMode || Platform.name === 'node') { | ||
| ellipse(data, centerX, centerY, radiusX, radiusY, rotation, startRadian / OneRadian, endRadian / OneRadian, anticlockwise as unknown as boolean) | ||
@@ -63,0 +65,0 @@ } else { |
56050
0.13%1099
0.09%+ Added
+ Added
- Removed
- Removed
Updated
Updated