MCPcopy Create free account
hub / github.com/neplextech/vectorizer / parsePathMode

Function parsePathMode

cli/index.mjs:304–316  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

302}
303
304function 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
318function parseRawSize(value) {
319 const match = /^(\d+)x(\d+)$/i.exec(value);

Callers 1

buildVectorizeConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…