Skip to main content

MarkupLine

Class representing a markup line in the markup API.

Hierarchy

Implements

Index

Properties

publicreadonlyid

id: string

linePoints

linePoints: Vertex3[]

publicreadonlyproperties

properties: Map<string, MarkupProperty> = ...

style

style: { backgroundColor: Color4 } = ...

Type declaration

  • backgroundColor: Color4

thickness

thickness: number

Accessors

isEnabled

  • get isEnabled(): boolean
  • set isEnabled(b: boolean): void
  • Returns true if the entity and the sheet it belongs to are both enabled, otherwise false.


    Returns boolean

  • Sets if entity is enabled


    Parameters

    • b: boolean

    Returns void

sheet

  • Returns the markup sheet that the entity is attached to


    Returns MarkupSheet2D

Methods

clone

  • Makes a deep copy of this entity


    Returns MarkupLine

copyFrom

copyTo

  • Copy the line to another markup sheet.


    Parameters

    Returns MarkupLine

    The new markup line entity.

isEqual

  • Compares if this entity is equal to another entity


    Parameters

    Returns boolean

markAsDeleted

  • markAsDeleted(): boolean
  • Marks the entity as deleted in the MarkupSheet2D.


    Returns boolean

    true if object was deleted. Otherwise false.

markAsUpdated

  • markAsUpdated(): boolean
  • Sets the entity as updated in the layer API.


    Returns boolean

    true if object did exist, otherwise false

onAdded

onDelete

onUpdate