TyphonJS Runtime Library (FVTT) 0.3.0
  • #runtime/svelte/store/position
  • applyPosition

Function applyPosition

  • applyPosition(
        node: HTMLElement,
        position: TJSPosition | Positionable,
    ): ActionReturn<TJSPosition | Positionable>
  • Provides an action to apply a TJSPosition instance to a HTMLElement and invoke position.parent

    Parameters

    • node: HTMLElement

      The node associated with the action.

    • position: TJSPosition | Positionable

      A position or positionable instance.

    Returns ActionReturn<TJSPosition | Positionable>

    The action lifecycle methods.

Settings

Member Visibility
Demo - Essential Svelte ESM
TyphonJS Runtime Library (FVTT) 0.3.0