构造函数
Optionalcontainer: string | HTMLElement容器元素或 CSS 选择器
视图选项
Readonlyamb环境光
Readonlycamera透视相机
Optionalcontainer挂载容器元素
瓦片地图轨道控制器
Readonlydir平行光
ReadonlyrendererWebGL 渲染器
Readonlyscene主场景
Readonlytimer帧计时器,用于计算每帧间隔时间
Readonlytop顶层覆盖场景列表(渲染在主场景之上)
获取当前控制器模式:MAP(地图模式)或 ORBIT(轨道模式)
设置控制器模式
是否正在飞行
获取雾密度系数
设置雾密度系数,默认值 1
容器高度
容器宽度
Adds a listener to an event type.
The type of event to listen to.
The function that gets called when the event is fired.
Three.js 动画循环
Protectedcreate创建环境光
环境光
Protectedcreate创建透视相机
相机
Protectedcreate创建平行光
平行光
ProtectedcreateProtectedcreate创建主场景
场景
Fire an event type.
The event that gets fired.
清理资源
飞行到指定位置
地图中心目标位置(世界坐标)
相机目标位置(世界坐标)
是否使用动画
飞行到指定对象的位置
目标对象,相机将飞向该对象
相机位置的偏移参数
Optionalanimate?: boolean是否使用动画效果飞行,默认值为 true
OptionalazimuthDeg?: number方位角,单位为度,默认值为 0
OptionaldistanceMultiplier?: number距离乘数,用于调整相机与对象的距离,默认值为 1.2
OptionalpitchDeg?: number俯仰角,单位为度,默认值为 30
一个 Promise,在飞行完成时 resolve
获取当前场景状态
中心位置和相机位置
Checks if listener is added to an event type.
The type of event to listen to.
The function that gets called when the event is fired.
Removes a listener from an event type.
The type of the listener that gets removed.
The listener function that gets removed.
Protectedupdate渲染一帧(主场景 + 覆盖场景)
Three.js 3D 场景视图类