TLCameraOptions
Public typealias
Signature
type TLCameraOptions = {
wheelBehavior: 'none' | 'pan' | 'zoom'
constraints?: {
behavior:
| 'contain'
| 'fixed'
| 'free'
| 'inside'
| 'outside'
| {
x: 'contain' | 'fixed' | 'free' | 'inside' | 'outside'
y: 'contain' | 'fixed' | 'free' | 'inside' | 'outside'
}
bounds: BoxModel
baseZoom:
| 'default'
| 'fit-max-100'
| 'fit-max'
| 'fit-min-100'
| 'fit-min'
| 'fit-x-100'
| 'fit-x'
| 'fit-y-100'
| 'fit-y'
initialZoom:
| 'default'
| 'fit-max-100'
| 'fit-max'
| 'fit-min-100'
| 'fit-min'
| 'fit-x-100'
| 'fit-x'
| 'fit-y-100'
| 'fit-y'
origin: VecLike
padding: VecLike
}
panSpeed: number
zoomSpeed: number
zoomSteps: number[]
isLocked: boolean
}
References
Source