Skip to content

Type Alias: SHAPE_NAME ​

SHAPE_NAME = `${ShapeType}` | CONNECTOR_PRESET_NAME

Every shape geometry name addShape accepts: the friendly ShapeType names plus the connector presets that enum does not surface.

Derived from ShapeType rather than spelled out, for the reason CHART_NAME, SCHEME_COLORS, PLACEHOLDER_TYPE and CONNECTOR_PRESET_NAME are each derived from their runtime source: the two cannot drift. The hand-written union this replaced had all 179 members in enum order, and the runtime VALID_SHAPE_PRESETS set was already built from Object.values(ShapeType), so the type and the set it is supposed to describe could disagree on exactly the half nothing checked. The union this produces is character-for-character the one it replaces.