MarkupSheet2D
Hierarchy
- MarkupEntityBase
- MarkupSheet2D
Index
Properties
publicreadonlyid
publicisEnabled
readonlyparent
publicreadonlyproperties
Methods
[iterator]
Returns IterableIterator<MarkupEntity>
add
Type parameters
- ARG
- RET: MarkupEntity<RET>
Parameters
ctor: new (args: MarkupEntityConstructorArgs & ARG) => RET
Entity type to add to the sheet
entitySpecifics: ARG
specific parameters for that entity type.
properties: Map<string, MarkupProperty> = ...
Returns RET
a new entity that has been added to the sheet.
clone
Makes a deep copy of this entity
Returns MarkupSheet2D
duplicate
Duplicates the sheet and all its entities.
Parameters
id: string
Id of the new duplicate sheet.
Returns MarkupSheet2D
The new duplicate sheet.
entites
Parameters
states: MergableObjectState[] = []
Array of states used to filter out entities, default is [MergableObjectState.Added, MergableObjectState.Modified, MergableObjectState.Unchanged].
Returns IterableIterator<MarkupEntity>
get
Get a markup entity based on an id.
Parameters
entityOrId: string | Pick<MarkupEntity, id>
Returns undefined | MergableObjectWithState<MarkupEntity>
The markup entity corralating to the id if it exists in the sheet.
isEqual
Compares if this entity is equal to another entity
Parameters
Returns boolean
markAsDeleted
Mark this sheet to be deleted on the next saveAndMergeSheets.
Returns boolean
true if sheet was deleted, false if it failed to delete.
markAsUpdated
Marks the sheet as updated in the MarkupSheet2DCollection.
Returns boolean
onAdded
Called when this entity is added
Parameters
Returns void
onDelete
Called when this entity is deleted
Parameters
Returns void
onUpdate
Called when this entity is updated
Parameters
Returns void
Class representing a markup sheet in the markup API.