Function drekContextOf

  • Obtains an updatable rendering context of the given document.

    Parameters

    • document: Document

      Target document.

    Returns Updatable

    Updatable document rendering context.

  • Obtains a rendering context of the given node.

    If the node is connected to document, then the rendering context of that document is returned. Otherwise, if the node belongs to the content of the rendered fragment, then the context provided by that fragment is returned. Otherwise, an unrooted context is created and attached to the root node of the target node.

    Parameters

    • node: Node

      Target node.

    Returns DrekContext

    Target node rendering context.

Generated using TypeDoc