Core concepts for custom shapes
masterWhen implementing a ShapePlugin, understand these five core concepts:
- Appearance: A collection of properties (e.g., colors, text, states) that define how the shape looks.
- Identifier: A unique string name for the shape type.
- Configurables: A definition of how appearance values are displayed and edited in the UI sidebar (using a
ConfigurableFactory). - Constraints: Logic that restricts size calculations (e.g., making height dependent on font size).
- Default Size: The initial
{ x, y }dimensions applied when the shape is first added to a diagram.