Function
getActionButtonIconPath
(
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 | */ |
| 4053 | export 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 | |
Tested by
no test coverage detected