Function getCamera

  • This function creates a camera using a npm package 3d-view-controls. The returned easy to use camera allows you to interact with graphics objects in the scene using mouse, such as pan, rotate, and zoom in/out the objects.

    Parameters

    • canvas: HTMLCanvasElement

      HTML canvas element

    • options: ICameraOptions

      Camera options, type of the ICameraOptions

    Returns any

Generated using TypeDoc