Class MarkupShapeAbstract

Abstract class representing a markup shape.

Hierarchy

Constructors

  • Parameters

    • owner: BaseBimCanvas
    • x: number
    • y: number
    • Optional width: number
    • Optional height: number

    Returns MarkupShape

Methods

  • Returns void

  • Checks if the shape has shadows enabled.

    Returns

    True if shadows are enabled, false otherwise.

    Returns boolean

  • Returns GetSet<boolean, Node<NodeConfig>>

  • Returns Node<NodeConfig>

  • Returns Shape<ShapeConfig>

  • Returns void

  • Sets the background color of the shape.

    Parameters

    • color: string

      The background color.

    Returns any

  • Parameters

    • val: boolean

    Returns void

  • Sets the foreground color of the shape.

    Parameters

    • color: string

      The foreground color.

    Returns any

  • Enables or disables the shadow for the shape.

    Parameters

    • enabled: boolean

      True to enable shadow, false to disable.

    Returns any

  • Sets the stroke width of the shape.

    Parameters

    • width: number

      The stroke width.

    Returns any

  • Returns boolean

  • Returns void