Bitbybit Docs
    Preparing search index...

    Class SVGShape<T> (Inputs.OCCT)

    One imported SVG element as svg.loadSVGStructured returns it: the built shape and the style resolved for it. An output, not an input.

    Type Parameters

    • T
    Index

    Constructors

    Properties

    shape: T

    The built shape: a wire, or a face when one was asked for and could be built.

    isFace: boolean

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

    elementType: string

    The SVG tag the shape came from, such as path, rect or circle.

    closed: boolean

    Whether the element's outline was closed.

    fill?: string

    The fill color that applied to the element, if any.

    true

    stroke?: string

    The stroke color that applied to the element, if any.

    true

    strokeWidth?: number

    The stroke width that applied to the element, if any.

    true

    opacity?: number

    The combined opacity of the element from 0 to 1, if any was set.

    true

    id?: string

    The element's id attribute, if any.

    true

    className?: string

    The element's class attribute, if any.

    true