import type { BaseBehaviorOptions, RuntimeContext, ShortcutKey } from '@antv/g6';
import { BaseBehavior } from '@antv/g6';
/**
* 观察 3D 画布交互配置项
*
* Observe 3D canvas options
*/
export interface ObserveCanvas3DOptions extends BaseBehaviorOptions {
enable?: boolean;
/**
* 相机模式
* - `orbiting` 固定视点(`focalPoint`),改变相机位置。不能跨越南北极
* - `exploring` 固定视点(`focalPoint`),改变相机位置。可以跨越南北极
* - `tracking` 第一人称模式,固定相机位置,改变视点(`focalPoint`)位置
*
* Camera mode
* - `orbiting` Fixed viewpoint(`focalPoint`), change camera position. Cannot cross the north and south poles
* - `exploring` Fixed viewpoint(`focalPoint`), change camera position. Can cross the north and south poles
* - `tracking` First-person mode, fixed camera position, change viewpoint(`focalPoint`) position
*/
mode?: 'orbiting' | 'exploring' | 'tracking';
/**
* 按下该快捷键配合指针观察场景
*
* Press this shortcut key to observe the scene with the pointer
*/
trigger?: ShortcutKey;
/**
* 灵敏度
*
* Sensitivity
*/
sensitivity?: number;
}
/**
* 3D 场景控制器,提供缩放、平移、旋转等能力
*
* 3D scene controller, providing zoom, pan, rotate and other capabilities
*/
export declare class ObserveCanvas3D extends BaseBehavior {
static defaultOptions: Partial;
private shortcut;
private get camera();
constructor(context: RuntimeContext, options: ObserveCanvas3DOptions);
update(options: Partial): void;
private setCameraType;
private getRatio;
private onDrag;
private bindEvents;
destroy(): void;
}