@twinfinity/core
    Preparing search index...

    Class MarkupSheet2D

    Class representing a markup sheet in the markup API.

    Hierarchy (View Summary)

    Index

    Properties

    id: string
    isEnabled: boolean = true

    Returns true if the entity and the sheet it belongs to are both enabled, otherwise false.

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

    Methods

    • Duplicates the sheet and all its entities.

      Parameters

      • id: string

        Id of the new duplicate sheet.

      Returns MarkupSheet2D

      The new duplicate sheet.

    • Parameters

      • states: MergableObjectState[] = []

        Array of states used to filter out entities, default is [MergableObjectState.Added, MergableObjectState.Modified, MergableObjectState.Unchanged].

      Returns IterableIterator<MarkupEntity>

      // Loops all modified entities in this sheet.
      for(const modifiedEntity of sheet.entities([MergableObjectState.Modified])) {
      modifiedEntity.x = 10;
      modifiedEntity.update();
      }