@leafer/path
Advanced tools
+4
-4
| { | ||
| "name": "@leafer/path", | ||
| "version": "1.0.0-rc.23", | ||
| "version": "1.0.0-rc.24", | ||
| "description": "@leafer/path", | ||
@@ -25,8 +25,8 @@ "author": "Chao (Leafer) Wan", | ||
| "dependencies": { | ||
| "@leafer/math": "1.0.0-rc.23", | ||
| "@leafer/debug": "1.0.0-rc.23" | ||
| "@leafer/math": "1.0.0-rc.24", | ||
| "@leafer/debug": "1.0.0-rc.24" | ||
| }, | ||
| "devDependencies": { | ||
| "@leafer/interface": "1.0.0-rc.23" | ||
| "@leafer/interface": "1.0.0-rc.24" | ||
| } | ||
| } |
@@ -64,8 +64,8 @@ import { IPathCommandData, IPointData } from '@leafer/interface' | ||
| if (char === '.') { | ||
| if (current.dot) { pushData(data, num); num = '' } // .375.375 | ||
| current.dot++ | ||
| if (current.dot > 1) { | ||
| pushData(data, num); num = '' // .375.375 | ||
| } | ||
| } | ||
| if (num === '0' && char !== '.') { pushData(data, num); num = '' } // 00 01 | ||
| num += char | ||
@@ -72,0 +72,0 @@ |
59597
0.08%1166
-0.09%+ Added
+ Added
- Removed
- Removed
Updated
Updated