import{_ as t,c as o,a0 as a,o as r}from"./chunks/framework.P9qPzDnn.js";const h=JSON.parse('{"title":"Function: createLayer()","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/game/layers/functions/createLayer.md","filePath":"api/game/layers/functions/createLayer.md","lastUpdated":null}'),c={name:"api/game/layers/functions/createLayer.md"};function d(i,e,s,n,l,p){return r(),o("div",null,e[0]||(e[0]=[a('
Profectus / game/layers / createLayer
createLayer<
T
>(id
,optionsFunc
):object
&Omit
<Omit
<T
&ThisType
<Layer
&Omit
<T
, keyofLayer
>>,"display"
|"classes"
|"style"
|"color"
|"name"
|"minimizable"
|"minimizedDisplay"
|"forceHideGoBack"
|"minWidth"
>, keyofLayerOptions
> &object
Lazily creates a layer with the given options.
• T extends LayerOptions
string
The ID this layer will have. See BaseLayer.id.
(layer
) => T
& ThisType
<Layer
& Omit
<T
, keyof Layer
>>
Layer options.
object
& Omit
<Omit
<T
& ThisType
<Layer
& Omit
<T
, keyof Layer
>>, "display"
| "classes"
| "style"
| "color"
| "name"
| "minimizable"
| "minimizedDisplay"
| "forceHideGoBack"
| "minWidth"
>, keyof LayerOptions
> & object