Skip to content

Documentation / ExtensionStack / addLayerToStack

addLayerToStack() ​

ts
function addLayerToStack<Animating, L>(stack, layer): L;

Defined in: Animate/ExtensionStack.ts:47

A passthrough function that adds a layer to the stack and returns the layer.

Type Parameters ​

Animating ​

Animating extends Animatable<unknown>

L ​

L extends Layer<Animating>

Parameters ​

stack ​

ExtensionStack<Animating>

layer ​

L

Returns ​

L

the inputted layer