View.Layer
Properties
Measurements
Measurements: Omit<View.Measurements, 'MeasurementType' | 'getData' | 'data' | 'toggleMode' | 'mode'>
Tag
Tag: Omit<View.Tag, 'AttachmentType' | 'attachments' | 'data' | 'openTags' | 'close' | 'dock' | 'open' | 'registerAttachment' | 'registerSandbox' | 'toggleDocking' | 'toggleNavControls' | 'toggleSharing'>
A subset of the Tag namespace's functionality to manipulate Tags on this layer.
Provides access to Tag mutations including Tag.add to add directly to a layer.
Does not include observables or enums.
Accessors
toggled
toggled: (readonly) boolean
Whether this Layer toggled on or off. If toggled off, this Layer's objects are hidden.
Methods
toggle
toggle(active?: boolean): Promise<void>
Toggle this Layer's state to active.
| Parameter | Type |
|---|---|
| active? | boolean Whether this Layer should be toggled on or off. If active is undefined, the state is flipped. |
Returns: Promise<void>