import{_ase,cast,oasa,Nasr}from"./chunks/framework.0799945b.js";constu=JSON.parse('{"title":"Module: game/layers","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/modules/game/layers.md","lastUpdated":null}'),o={name:"api/modules/game/layers.md"},d=r('<h1id="module-game-layers"tabindex="-1">Module:game/layers<aclass="header-anchor"href="#module-game-layers"aria-label="Permalink to "Module: game/layers""></a></h1><h2id="interfaces"tabindex="-1">Interfaces<aclass="header-anchor"href="#interfaces"aria-label="Permalinkto"Interfaces""></a></h2><h3id="baselayer"tabindex="-1">BaseLayer<aclass="header-anchor"href="#baselayer"aria-label="Permalinkto"BaseLayer""></a></h3><p>•<strong>BaseLayer</strong>:<code>Object</code></p><p>Thepropertiesthatareaddedontoaprocessed<ahref="./layers#layeroptions">LayerOptions</a>tocreatea<ahref="./layers#layer">Layer</a></p><table><thead><tr><thstyle="text-align:left;">Name</th><thstyle="text-align:left;">Type</th><thstyle="text-align:left;">Description</th></tr></thead><tbody><tr><tdstyle="text-align:left;"><code>emit</code></td><tdstyle="text-align:left;"><K>(...<code>args</code>:[<code>K</code>,...Parameters<LayerEvents[K]>[]])=><code>void</code></td><tdstyle="text-align:left;">Afunctiontoemita<ahref="./layers#layerevents">LayerEvents</a>eventtothislayer.</td></tr><tr><tdstyle="text-align:left;"><code>emitter</code></td><tdstyle="text-align:left;"><code>Emitter</code><<ahref="./layers#layerevents"><code>LayerEvents</code></a>></td><tdstyle="text-align:left;">Anemitterforsending<ahref="./layers#layerevents">LayerEvents</a>eventsforthislayer.</td></tr><tr><tdstyle="text-align:left;"><code>id</code></td><tdstyle="text-align:left;"><code>string</code></td><tdstyle="text-align:left;">TheIDofthelayer.Populatedfromthe<ahref="./layers#createlayer">createLayer</a>parameters.Usedforsavingandtrackingopentabs.</td></tr><tr><tdstyle="text-align:left;"><code>minimized</code></td><tdstyle="text-align:left;"><ahref="./persistence#persistent"><code>Persistent</code></a><<code>boolean</code>></td><tdstyle="text-align:left;">Apersistentreftrackingifthetabisminimizedornot.</td></tr><tr><tdstyle="text-align:left;"><code>nodes</code></td><tdstyle="text-align:left;"><code>Ref</code><<ahref="https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type"target="_blank"rel="noreferrer"><code>Record</code></a><<code>string</code>,<code>undefined</code>|<ahref="./layers#featurenode"><code>FeatureNode</code></a>>></td><tdstyle="text-align:left;">Amapof<ahref="./layers#featurenode">FeatureNode</a>spresentinthislayer'sContextComponentcomponent.</td></tr><tr><tdstyle="text-align:left;"><code>on</code></td><tdstyle="text-align:left;">(...<code>args</code>:[event:keyofLayerEvents,cb:Function|Function|Function])=><code>Unsubscribe</code></td><tdstyle="text-align:left;">Afunctiontoregisteraneventlisteneron<ahref="./layers#emitter">emitter</a>.</td></tr></tbody></table><h4id="defined-in"tabindex="-1">Definedin<aclass="header-anchor"href="#defined-in"aria-label="Permalinkto"Definedin""></a></h4><p><ahref="https://github.com/profectus-engine/Profectus/blob/c386ace/src/game/layers.tsx#L148"target="_blank"rel="noreferrer">profectus/src/game/layers.tsx:148</a></p><hr><h3id="featurenode"tabindex="-1">FeatureNode<aclass="header-anchor"href="#featurenode"aria-label="Permalinkto"FeatureNode""></a></h3><p>•<strong>FeatureNode</strong>:<code>Object</code></p><p>Afeature'snodeintheDOMthathasitssizetracked.</p><table><thead><tr><thstyle="text-align:left;">Name</th><thstyle="text-align:left;">Type</th></tr></thead><tbody><tr><tdstyle="text-align:left;"><code>element</code></td><tdstyle="text-align:left;"><ahref="https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement"target="_bl