Table of contents

Public interface

Signature
interface TLCameraOptions {}
Source

packages/editor/src/lib/editor/types/misc-types.ts


Properties

constraints

Public propertysignature

The camera constraints.

Signature
constraints?: TLCameraConstraints
References

TLCameraConstraints


isLocked

Public propertysignature

Whether the camera is locked.

Signature
isLocked: boolean

panSpeed

Public propertysignature

The speed of a scroll wheel / trackpad pan. Default is 1.

Signature
panSpeed: number

wheelBehavior

Public propertysignature

Controls whether the wheel pans or zooms.

  • zoom: The wheel will zoom in and out.
  • pan: The wheel will pan the camera.
  • none: The wheel will do nothing.
Signature
wheelBehavior: 'none' | 'pan' | 'zoom'

zoomSpeed

Public propertysignature

The speed of a scroll wheel / trackpad zoom. Default is 1.

Signature
zoomSpeed: number

zoomSteps

Public propertysignature

The steps that a user can zoom between with zoom in / zoom out. The first and last value will determine the min and max zoom.

Signature
zoomSteps: number[]

TLCameraMoveOptionsTLCancelEvent