MCPcopy
hub / github.com/midrender/revideo / parseLineJoin

Method parseLineJoin

packages/2d/src/lib/components/SVG.ts:536–546  ·  view source on GitHub ↗
(name: string | null)

Source from the content-addressed store, hash-verified

534 }
535
536 private static parseLineJoin(name: string | null): CanvasLineJoin | null {
537 if (!name) return null;
538 if (name === 'bevel' || name === 'miter' || name === 'round') return name;
539
540 if (name === 'arcs' || name === 'miter-clip') {
541 useLogger().warn(`SVG: line join is not supported "${name}"`);
542 } else {
543 useLogger().warn(`SVG: invalid line join "${name}"`);
544 }
545 return null;
546 }
547
548 private static parseLineDash(value: string | null): number[] | null {
549 if (!value) return null;

Callers 1

getElementStyleMethod · 0.95

Calls 2

useLoggerFunction · 0.90
warnMethod · 0.80

Tested by

no test coverage detected