Function
getMultiPathPreset
(
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 | */ |
| 6563 | export 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 | |
| 6574 | export function getPresetShapePath( |
| 6575 | shapeType: string, |
Tested by
no test coverage detected