@jsfkit/types
    Preparing search index...

    Type Alias GraphicShape

    Basic shape object.

    Represents a standard geometric shape (rectangle, circle, arrow, etc.) with customizable geometry, styling, and text content.

    type GraphicShape = {
        id: string;
        name: string;
        shape?: Shape;
        text?: TextBody;
        type: "shape";
        xfrm?: Xfrm;
    }
    Index

    Properties

    id: string

    Unique identifier for this shape.

    name: string

    Display name of the shape.

    shape?: Shape

    Visual styling properties (fill, line, effects, geometry preset, etc.).

    text?: TextBody

    Optional text content displayed within the shape.

    type: "shape"

    Type discriminator for basic shapes.

    xfrm?: Xfrm

    2D transformation (position, rotation, scale).