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

Function getMultiPathPreset

apps/sim/lib/pptx-renderer/shapes/presets.ts:6563–6572  ·  view source on GitHub ↗
(
  shapeType: string,
  w: number,
  h: number,
  adjustments?: Map<string, number>
)

Source from the content-addressed store, hash-verified

6561 * Returns null if the shape is not a multi-path preset (use getPresetShapePath instead).
6562 */
6563export function getMultiPathPreset(
6564 shapeType: string,
6565 w: number,
6566 h: number,
6567 adjustments?: Map<string, number>
6568): PresetSubPath[] | null {
6569 const key = shapeType.toLowerCase()
6570 const gen = multiPathPresets.get(key) ?? multiPathPresets.get(shapeType)
6571 return gen ? gen(w, h, adjustments) : null
6572}
6573
6574export function getPresetShapePath(
6575 shapeType: string,

Callers 1

renderShapeFunction · 0.90

Calls 1

getMethod · 0.65

Tested by

no test coverage detected