Configures canvas resolution scaling for a View.

  • Located at View.resolutionScale.
  • Resolution scaling reduces the pixel resolution of a View's canvas to improve its frame rate, typically applied temporarily during camera movement to enhance responsiveness.
  • View will apply resulotion scaling when View.renderMode is set to one of the values specified in ResolutionScale.renderModes.

See @xeokit/sdk/viewer for usage info.

Hierarchy (View Summary)

Properties

destroyed: boolean

True once this Component has been destroyed.

Don't use this Component if this is true.

dirty: boolean
id: string

Unique ID of this Component.

view: View

The View to which this ResolutionScale belongs.

Accessors

Methods

  • Protected

    Logs an error for this component to the JavaScript console.

    The console message will have this format: [ERROR] [<component type> =<component id>: <message>

    Parameters

    • message: string

      The error message to log

    Returns void

  • Protected

    Logs a message for this component.

    The message will have this format: [LOG] [<component type> <component id>: <message>

    Parameters

    • message: string

      The message to log

    Returns void

  • Protected

    Logs a warning for this component to the JavaScript console.

    The console message will have this format: [WARN] [<component type> =<component id>: <message>

    Parameters

    • message: string

      The warning message to log

    Returns void

Events

onDestroyed: EventEmitter<Component, null>

Emits an event when the Component has been destroyed.