(value)
| 302 | } |
| 303 | |
| 304 | function parsePathMode(value) { |
| 305 | const mode = { |
| 306 | none: PathSimplifyMode.None, |
| 307 | polygon: PathSimplifyMode.Polygon, |
| 308 | spline: PathSimplifyMode.Spline, |
| 309 | }[value]; |
| 310 | |
| 311 | if (mode === undefined) { |
| 312 | throw new Error(`Unknown path mode '${value}'. Expected none, polygon, or spline`); |
| 313 | } |
| 314 | |
| 315 | return mode; |
| 316 | } |
| 317 | |
| 318 | function parseRawSize(value) { |
| 319 | const match = /^(\d+)x(\d+)$/i.exec(value); |
no outgoing calls
no test coverage detected
searching dependent graphs…