import{_ as e,c as a,o as t,N as r}from"./chunks/framework.0799945b.js";const u=JSON.parse('{"title":"Interface: BaseLayer","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/interfaces/game/layers.BaseLayer.md","lastUpdated":null}'),o={name:"api/interfaces/game/layers.BaseLayer.md"},n=r('
game/layers.BaseLayer
The properties that are added onto a processed LayerOptions to create a Layer
• emit: <K>(...args
: [K
, ...Parameters<LayerEvents[K]>[]]) => void
▸ <K
>(...args
): void
A function to emit a LayerEvents event to this layer.
Name | Type |
---|---|
K | extends keyof LayerEvents |
Name | Type |
---|---|
...args | [K , ...Parameters<LayerEvents[K]>[]] |
void
profectus/src/game/layers.tsx:162
• emitter: Emitter
<LayerEvents
>
An emitter for sending LayerEvents events for this layer.
profectus/src/game/layers.tsx:158
• id: string
The ID of the layer. Populated from the createLayer parameters. Used for saving and tracking open tabs.
profectus/src/game/layers.tsx:154
• minimized: Persistent
<boolean
>
A persistent ref tracking if the tab is minimized or not.
profectus/src/game/layers.tsx:156
• nodes: Ref
<Record
<string
, undefined
| FeatureNode
>>
A map of FeatureNodes present in this layer's ContextComponent component.
profectus/src/game/layers.tsx:164
• on: (...args
: [event: keyof LayerEvents, cb: Function | Function | Function]) => Unsubscribe
▸ (...args
): Unsubscribe
A function to register an event listener on emitter.
Name | Type |
---|---|
...args | [event: keyof LayerEvents, cb: Function | Function | Function] |
Unsubscribe