@leafer/path 2.0.9 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer/path",
3
- "version": "2.0.9",
3
+ "version": "2.1.1",
4
4
  "description": "@leafer/path",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -22,11 +22,11 @@
22
22
  "leaferjs"
23
23
  ],
24
24
  "dependencies": {
25
- "@leafer/data": "2.0.9",
26
- "@leafer/math": "2.0.9",
27
- "@leafer/debug": "2.0.9"
25
+ "@leafer/data": "2.1.1",
26
+ "@leafer/math": "2.1.1",
27
+ "@leafer/debug": "2.1.1"
28
28
  },
29
29
  "devDependencies": {
30
- "@leafer/interface": "2.0.9"
30
+ "@leafer/interface": "2.1.1"
31
31
  }
32
32
  }
@@ -124,7 +124,7 @@ export const PathConvert = {
124
124
  case M:
125
125
  x = old[i + 1]
126
126
  y = old[i + 2]
127
- data.push(M, x, y)
127
+ data.push(lastCommand === command ? L : M, x, y) // M command followed by multiple coordinates
128
128
  i += 3
129
129
  break
130
130