Profectus / game/layers / createLayer
Function: 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.
Type Parameters ​
• T extends LayerOptions
Parameters ​
id ​
string
The ID this layer will have. See BaseLayer.id.
optionsFunc ​
(layer
) => T
& ThisType
<Layer
& Omit
<T
, keyof Layer
>>
Layer options.
Returns ​
object
& Omit
<Omit
<T
& ThisType
<Layer
& Omit
<T
, keyof Layer
>>, "display"
| "classes"
| "style"
| "color"
| "name"
| "minimizable"
| "minimizedDisplay"
| "forceHideGoBack"
| "minWidth"
>, keyof LayerOptions
> & object