Options
All
  • Public
  • Public/Protected
  • All
Menu

Viewer plugin that lets us look at the entire Scene from along a chosen axis or diagonal.

Hierarchy

Index

Constructors

Properties

id: string

ID for this Plugin, unique within its Viewer.

viewer: Viewer

The Viewer that contains this Plugin.

Methods

  • destroy(): void
  • error(msg: string): void
  • Logs an error message to the JavaScript developer console, prefixed with the ID of this Plugin.

    Parameters

    • msg: string

      The error message

    Returns void

  • fire(event: string, value: any): void
  • Fires an event at this Plugin.

    Parameters

    • event: string

      The event type name

    • value: any

      The event parameters

    Returns void

  • getCameraFitFOV(): number
  • getCameraFly(): boolean
  • getCameraFlyDuration(): boolean
  • getFitVisible(): boolean
  • getSynchProjection(): boolean
  • getVisible(): boolean
  • log(msg: string): void
  • Logs a message to the JavaScript developer console, prefixed with the ID of this Plugin.

    Parameters

    • msg: string

      The error message

    Returns void

  • on(event: string, callback: () => void): void
  • Subscribes to an event fired at this Plugin.

    Parameters

    • event: string

      The event

    • callback: () => void

      Callback fired on the event

        • (): void
        • Returns void

    Returns void

  • setCameraFitFOV(value: number): void
  • Sets how much of the field-of-view, in degrees, that the Scene should fill the canvas when flying or jumping the Camera to each selected axis or diagonal.

    Default value is 45.

    Parameters

    • value: number

      New FOV value.

    Returns void

  • setCameraFly(value: boolean): void
  • setCameraFlyDuration(value: boolean): void
  • When flying the Camera to each new axis or diagonal, sets how long, in seconds, that the Camera takes to get there.

    Default is 0.5.

    Parameters

    • value: boolean

      Camera flight duration in seconds.

    Returns void

  • setFitVisible(value: boolean): void
  • setSynchProjection(value: boolean): void
  • Sets whether the NavCube switches between perspective and orthographic projections in synchrony with the Camera. When false, the NavCube will always be rendered with perspective projection.

    Parameters

    • value: boolean

      Set true to keep NavCube projection synchronized with Camera.projection.

    Returns void

  • setVisible(value?: boolean): void
  • warn(msg: string): void
  • Logs a warning message to the JavaScript developer console, prefixed with the ID of this Plugin.

    Parameters

    • msg: string

      The error message

    Returns void

Generated using TypeDoc