Function Scene

  • Create a new scene, creates new Lightning 3 nodes and renders them to the scene.

    Parameters

    • template: ITemplate

      The JSON template of the scene

    • parent: null | ISceneNode = null

      Optional parent node, if no parent is provided the scene will be rendered to the root node.

    Returns IScene

    IScene

    Remark

    The props of the template can be either INodeWritableProps or ITextNodeWritableProps and is used to manipulate the coordinates of the parent node when nesting.

Generated using TypeDoc