MCPcopy Index your code
hub / github.com/simstudioai/sim / getActionButtonIconPath

Function getActionButtonIconPath

apps/sim/lib/pptx-renderer/shapes/presets.ts:4053–4061  ·  view source on GitHub ↗
(
  shapeType: string,
  w: number,
  h: number
)

Source from the content-addressed store, hash-verified

4051 * Returns undefined if the shape is not an action button or is actionButtonBlank.
4052 */
4053export function getActionButtonIconPath(
4054 shapeType: string,
4055 w: number,
4056 h: number
4057): string | undefined {
4058 const key = shapeType.toLowerCase()
4059 const generator = actionButtonIcons.get(key) ?? actionButtonIcons.get(shapeType)
4060 return generator?.(w, h)
4061}
4062
4063// ===== Aliases and common alternative names =====
4064

Callers 1

renderShapeFunction · 0.90

Calls 1

getMethod · 0.65

Tested by

no test coverage detected