Skip to main content

abstractMarkupEntity

Super class for markup entities in the markup API.

Hierarchy

Index

Properties

publicreadonlyid

id: string

publicreadonlyproperties

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

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

abstractclone

  • Makes a deep copy of this entity


    Returns MarkupEntityBase

abstractcopyTo

  • Copy the entity to another markup sheet.


    Parameters

    Returns MarkupEntity

    The new markup entity.

abstractisEqual

  • 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