API

Function moveRenderingContext

  • Move a registered rendering context to index in surface's render order.

    index is the context's final position and is clamped to the registry bounds. Returns false (and changes nothing) when context is not registered on surface. Contexts render in list order, so an overlay such as a utility layer should sit immediately after the scene it composites onto.

    Parameters

    Returns boolean

    RangeError when index is not an integer.