Class Tag

This is a light implementation of [[LabelModel]] for internal use The tag is mostly used to display measurements and sizes

Constructors

Properties

Accessors

Methods

Constructors

  • Creates a new tag object

    Parameters

    • board: Board

      The [[Board]]

    • defaultVisible: boolean = false

      Indicates whether a tag is visible by default or not

    Returns Tag

Properties

node: Label

Represents the main container that includes background and text nodes

Accessors

  • set position(point): void
  • Updates the position of the tag

    Parameters

    Returns void

  • set text(value): void
  • Updates the text value of the tag

    Parameters

    • value: string

    Returns void

Methods

  • Hides the tag node

    Returns void

  • Updates position and text of the tag Based on the given shape, the position is calculated automatically

    Parameters

    Returns void

  • Displays the tag node

    Returns void