Constructor
Optionalcontainer: string | HTMLElementcontainer element or selector string
GLViewer options
ReadonlyambReadonlycameraReadonlyclockOptionalcontainerReadonlydirReadonlyrendererReadonlysceneReadonlytopGet fog factor
Set fog factor, default 1
Container height
Container width
Adds a listener to an event type.
The type of event to listen to.
The function that gets called when the event is fired.
Add the renderer to a container
container element or selector string
this
Threejs animation loop
ProtectedcreateCreate ambient light
AmbientLight
ProtectedcreateCreate camera
camera
ProtectedcreateCreate directional light
DirectionalLight
ProtectedcreateProtectedcreateCreate scene
scene
Fire an event type.
The event that gets fired.
Fly to a position
Map center target position (world coordinate)
Camera target position (world coordinate)
animate or not
飞行到指定对象的位置
目标对象,相机将飞向该对象
相机位置的偏移参数
Optionalanimate?: boolean是否使用动画效果飞行,默认值为 true
OptionalazimuthDeg?: number方位角,单位为度,默认值为 0
OptionaldistanceMultiplier?: number距离乘数,用于调整相机与对象的距离,默认值为 1.2
OptionalpitchDeg?: number俯仰角,单位为度,默认值为 30
一个 Promise,在飞行完成时 resolve
Get current scens state
center position and camera position
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
Threejs scene initialize class