Bitbybit Docs
    Preparing search index...

    Class SVGShape<T>

    Type Parameters

    • T
    Index

    Constructors

    Properties

    shape: T

    The built shape: a wire, or a face when requested.

    isFace: boolean

    True when shape is a face, false when it is a wire.

    elementType: string

    SVG tag the shape came from: "path" | "rect" | "circle" | ...

    closed: boolean

    Whether the source subpaths were closed.

    fill?: string

    Resolved fill colour, if any.

    stroke?: string

    Resolved stroke colour, if any.

    strokeWidth?: number

    Stroke width (the "strength" of the line), if any.

    opacity?: number

    Combined opacity in [0, 1], if any.

    id?: string

    Element id, if any.

    className?: string

    Element class attribute, if any.