MCPcopy Create free account
hub / github.com/simstudioai/sim / ooxmlDashToCss

Function ooxmlDashToCss

apps/sim/lib/pptx-renderer/renderer/style-resolver.ts:604–624  ·  view source on GitHub ↗

* Map OOXML preset dash values to CSS border-style.

(val: string)

Source from the content-addressed store, hash-verified

602 * Map OOXML preset dash values to CSS border-style.
603 */
604function ooxmlDashToCss(val: string): string {
605 switch (val) {
606 case 'solid':
607 return 'solid'
608 case 'dot':
609 case 'sysDot':
610 return 'dotted'
611 case 'dash':
612 case 'sysDash':
613 case 'lgDash':
614 return 'dashed'
615 case 'dashDot':
616 case 'lgDashDot':
617 case 'lgDashDotDot':
618 case 'sysDashDot':
619 case 'sysDashDotDot':
620 return 'dashed'
621 default:
622 return 'solid'
623 }
624}
625
626// ---------------------------------------------------------------------------
627// Gradient Fill Resolution (structured data for SVG use)

Callers 1

resolveLineStyleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected