Type Alias LegacyEventType
LegacyEventType: { cameraDirectionUpdate(coordinates: Pick<Pose, "longitude" | "latitude">,
userAction: boolean): void; cameraFovUpdate(fov: number,
userAction: boolean): void; cameraPositionUpdate(offset: Vector3,
userAction: boolean): void; cameraUpdate(pose: Pose,
userAction: boolean): void; currentStateChange(state: State,
userAction: boolean): void; dblTapGesture(raycaster: Raycaster,
tapPosition: Vector2,
final: boolean): void; gesture(type: GestureTypes,
pointers: { delta?: number; x: number; y: number; }[],
final: boolean): void; helpersVisibleChange(visible: boolean): void; initAnimationEnded(panoIndex: number,
pose: Pose,
userAction: boolean): void; initAnimationWillStart(panoIndex: number,
pose: Pose,
userAction: boolean): void; interiaPan(pose: Pose,
final: boolean): void; intersectionHidden(): void; intersectionOnModelUpdate(intersection: Intersection,
mesh: Object3D): void; load(input: any,
work: Work,
state: Partial<State>): void; loaded(input: any,
work: Work): void; modeChange(mode: Mode,
prevMode: Mode,
panoIndex: number,
toPose: Pose,
userAction: boolean): void; modelLoadError(error: Error,
model: Model): void; modelLoaded(model: Model): void; modelShownFloorChange(shownFloor: number,
floorLength: number): void; modelWillLoad(workModel: WorkModel): void; mouseWheel(delta: number,
fov: number,
final: boolean): void; moveToPano(panoIndex: number,
userAction: boolean): void; moveToPanoCanceled(panoIndex: number): void; movingToPano(panoIndex: number,
prevPanoIndex: number,
progress: number): void; network(source: string,
type: NetworkType,
state: NetworkState,
detail: string): void; panGesture(pose: Pose,
final: boolean): void; panoArrived(panoIndex: number,
pose: Pose,
userAction: boolean): void; panoLoadError(error: Error,
panoIndex: number): void; panoLoaded(panoIndex: number): void; panoSelected(panoIndex: number): void; panoWillArrive(panoIndex: number,
pose: Pose,
userAction: boolean): void; panoWillLoad(panoIndex: number): void; pinchGesture(scale: number,
fov: number,
final: boolean): void; pressGesture(raycaster: Raycaster,
tapPosition: Vector2,
duration: number,
final: boolean): void; renderFrame(rendered: boolean): void; setState(state: State): void; stateChange(state: State,
userAction: boolean): void; stateSynced(state: State): void; tapGesture(raycaster: Raycaster,
tapPosition: Vector2,
final: boolean): void; textureAbort(panoIndex: number): void; textureError(error: Error,
panoIndex: number): void; textureLoaded(panoIndex: number,
meta: NetWorkMeta[]): void; textureLoading(progress: number,
panoIndex: number): void; textureStartLoad(panoIndex: number): void; wantsChangeCameraFov(fov: number): false | void; wantsChangeMode(mode: Mode,
prevMode: Mode): false | void; wantsDblTapGesture(raycaster: Raycaster,
tapPosition: Vector2,
final: boolean): false | void; wantsGesture(type: GestureTypes,
pointers: { delta?: number; x: number; y: number; }[],
final: boolean): false | void; wantsInteriaPan(pose: Pose): false | void; wantsMouseWheel(delta: number,
nextFov: number,
final: boolean): false | void; wantsMoveToPano(panoIndex: number,
options: MovePanoOptions,
userAction: boolean): false | void; wantsPanGesture(pose: Pose,
final: boolean): false | void; wantsPinchGesture(scale: number,
nextFov: number,
final: boolean): false | void; wantsPressGesture(raycaster: Raycaster,
tapPosition: Vector2,
duration: number,
final: boolean): false | void; wantsShowIntersectionOnModel(raycaster: Raycaster): false | void; wantsTapGesture(raycaster: Raycaster,
tapPosition: Vector2,
final: boolean): false | void; wantsToMoveToPano(panoIndex: number,
options: MovePanoOptions,
userAction: boolean): void; webXRAxesUpdate(type: "left" | "right",
param: WebXRAxesParams): void; webXRControllerEvent(type: WebXRControllerType,
key: | "Y" | "X" | "A" | "B" | "RightTrigger" | "RightPinch" | "LeftTrigger" | "LeftPinch" | "LeftAxesLeft" | "LeftAxesRight" | "LeftAxesUp" | "LeftAxesDown" | "RightAxesLeft" | "RightAxesRight" | "RightAxesUp" | "RightAxesDown",
params: WebXRControllerParams): void; webXRControllerRayUpdate(raycaster: { leftRay?: THREE.Raycaster; rightRay?: THREE.Raycaster; }): void; webXRSessionEnd(): void; webXRSessionStart(): void; willLoad(input: any,
work: Work,
state: Partial<State>): void; } Type declaration
cameraDirectionUpdate:function
- cameraDirectionUpdate(coordinates, userAction): void
Parameters
- coordinates: Pick<Pose, "longitude" | "latitude">
- userAction: boolean
Returns void
cameraFovUpdate:function
- cameraFovUpdate(fov, userAction): void
Parameters
- fov: number
- userAction: boolean
Returns void
cameraPositionUpdate:function
- cameraPositionUpdate(offset, userAction): void
Parameters
- offset: Vector3
- userAction: boolean
Returns void
cameraUpdate:function
- cameraUpdate(pose, userAction): void
Parameters
- pose: Pose
- userAction: boolean
Returns void
currentStateChange:function
- currentStateChange(state, userAction): void
Parameters
- state: State
- userAction: boolean
Returns void
dblTapGesture:function
- dblTapGesture(raycaster, tapPosition, final): void
Parameters
- raycaster: Raycaster
- tapPosition: Vector2
- final: boolean
Returns void
gesture:function
- gesture(type, pointers, final): void
Parameters
- type: GestureTypes
- pointers: {
delta?: number;
x: number;
y: number;
}[] - final: boolean
Returns void
helpersVisibleChange:function
- helpersVisibleChange(visible): void
Returns void
initAnimationEnded:function
- initAnimationEnded(panoIndex, pose, userAction): void
Parameters
- panoIndex: number
- pose: Pose
- userAction: boolean
Returns void
initAnimationWillStart:function
- initAnimationWillStart(panoIndex, pose, userAction): void
Parameters
- panoIndex: number
- pose: Pose
- userAction: boolean
Returns void
interiaPan:function
- interiaPan(pose, final): void
Returns void
intersectionHidden:function
- intersectionHidden(): void
Returns void
intersectionOnModelUpdate:function
- intersectionOnModelUpdate(intersection, mesh): void
Returns void
load:function
- load(input, work, state): void
Returns void
loaded:function
- loaded(input, work): void
Returns void
modeChange:function
- modeChange(mode, prevMode, panoIndex, toPose, userAction): void
Parameters
- mode: Mode
- prevMode: Mode
- panoIndex: number
- toPose: Pose
- userAction: boolean
Returns void
modelLoadError:function
- modelLoadError(error, model): void
Returns void
modelLoaded:function
- modelLoaded(model): void
Returns void
modelShownFloorChange:function
- modelShownFloorChange(shownFloor, floorLength): void
Parameters
- shownFloor: number
- floorLength: number
Returns void
modelWillLoad:function
- modelWillLoad(workModel): void
Returns void
mouseWheel:function
- mouseWheel(delta, fov, final): void
Parameters
- delta: number
- fov: number
- final: boolean
Returns void
moveToPano:function
- moveToPano(panoIndex, userAction): void
Parameters
- panoIndex: number
- userAction: boolean
Returns void
moveToPanoCanceled:function
- moveToPanoCanceled(panoIndex): void
Returns void
movingToPano:function
- movingToPano(panoIndex, prevPanoIndex, progress): void
Parameters
- panoIndex: number
- prevPanoIndex: number
- progress: number
Returns void
network:function
- network(source, type, state, detail): void
Returns void
panGesture:function
- panGesture(pose, final): void
Returns void
panoArrived:function
- panoArrived(panoIndex, pose, userAction): void
Parameters
- panoIndex: number
- pose: Pose
- userAction: boolean
Returns void
panoLoadError:function
- panoLoadError(error, panoIndex): void
Parameters
- error: Error
- panoIndex: number
Returns void
panoLoaded:function
- panoLoaded(panoIndex): void
Returns void
panoSelected:function
- panoSelected(panoIndex): void
Returns void
panoWillArrive:function
- panoWillArrive(panoIndex, pose, userAction): void
Parameters
- panoIndex: number
- pose: Pose
- userAction: boolean
Returns void
panoWillLoad:function
- panoWillLoad(panoIndex): void
Returns void
pinchGesture:function
- pinchGesture(scale, fov, final): void
Parameters
- scale: number
- fov: number
- final: boolean
Returns void
pressGesture:function
- pressGesture(raycaster, tapPosition, duration, final): void
Parameters
- raycaster: Raycaster
- tapPosition: Vector2
- duration: number
- final: boolean
Returns void
renderFrame:function
- renderFrame(rendered): void
Returns void
setState:function
- setState(state): void
Returns void
stateChange:function
- stateChange(state, userAction): void
Parameters
- state: State
- userAction: boolean
Returns void
stateSynced:function
- stateSynced(state): void
Returns void
tapGesture:function
- tapGesture(raycaster, tapPosition, final): void
Parameters
- raycaster: Raycaster
- tapPosition: Vector2
- final: boolean
Returns void
textureAbort:function
- textureAbort(panoIndex): void
Returns void
textureError:function
- textureError(error, panoIndex): void
Parameters
- error: Error
- panoIndex: number
Returns void
textureLoaded:function
- textureLoaded(panoIndex, meta): void
Returns void
textureLoading:function
- textureLoading(progress, panoIndex): void
Parameters
- progress: number
- panoIndex: number
Returns void
textureStartLoad:function
- textureStartLoad(panoIndex): void
Returns void
wantsChangeCameraFov:function
- wantsChangeCameraFov(fov): false | void
Returns false | void
可以通过 return false
阻止
wantsChangeMode:function
- wantsChangeMode(mode, prevMode): false | void
Returns false | void
可以通过 return false 阻止
wantsDblTapGesture:function
- wantsDblTapGesture(raycaster, tapPosition, final): false | void
Parameters
- raycaster: Raycaster
- tapPosition: Vector2
- final: boolean
Returns false | void
可以通过 return false
阻止
wantsGesture:function
- wantsGesture(type, pointers, final): false | void
Parameters
- type: GestureTypes
- pointers: {
delta?: number;
x: number;
y: number;
}[] - final: boolean
Returns false | void
可以通过 return false
阻止
wantsInteriaPan:function
- wantsInteriaPan(pose): false | void
Returns false | void
可以通过 return false
阻止
wantsMouseWheel:function
- wantsMouseWheel(delta, nextFov, final): false | void
Parameters
- delta: number
- nextFov: number
- final: boolean
Returns false | void
可以通过 return false
阻止
wantsMoveToPano:function
- wantsMoveToPano(panoIndex, options, userAction): false | void
Returns false | void
可以通过 return false 阻止
wantsPanGesture:function
- wantsPanGesture(pose, final): false | void
Returns false | void
可以通过 return false
阻止
wantsPinchGesture:function
- wantsPinchGesture(scale, nextFov, final): false | void
Parameters
- scale: number
- nextFov: number
- final: boolean
Returns false | void
可以通过 return false
阻止
wantsPressGesture:function
- wantsPressGesture(raycaster, tapPosition, duration, final): false | void
Parameters
- raycaster: Raycaster
- tapPosition: Vector2
- duration: number
- final: boolean
Returns false | void
可以通过 return false
阻止
wantsShowIntersectionOnModel:function
- wantsShowIntersectionOnModel(raycaster): false | void
Returns false | void
可以通过 return false
阻止
wantsTapGesture:function
- wantsTapGesture(raycaster, tapPosition, final): false | void
Parameters
- raycaster: Raycaster
- tapPosition: Vector2
- final: boolean
Returns false | void
可以通过 return false
阻止
wantsToMoveToPano:function
- wantsToMoveToPano(panoIndex, options, userAction): void
Returns void
可以通过 return false 阻止
webXRAxesUpdate:function
- webXRAxesUpdate(type, param): void
Returns void
webXRControllerEvent:function
- webXRControllerEvent(type, key, params): void
Parameters
- type: WebXRControllerType
- key:
| "Y"
| "X"
| "A"
| "B"
| "RightTrigger"
| "RightPinch"
| "LeftTrigger"
| "LeftPinch"
| "LeftAxesLeft"
| "LeftAxesRight"
| "LeftAxesUp"
| "LeftAxesDown"
| "RightAxesLeft"
| "RightAxesRight"
| "RightAxesUp"
| "RightAxesDown" - params: WebXRControllerParams
Returns void
webXRControllerRayUpdate:function
- webXRControllerRayUpdate(raycaster): void
Parameters
- raycaster: {
leftRay?: THREE.Raycaster;
rightRay?: THREE.Raycaster;
}Optional
leftRay?: THREE.Raycaster
Optional
rightRay?: THREE.Raycaster
Returns void
webXRSessionEnd:function
- webXRSessionEnd(): void
Returns void
webXRSessionStart:function
- webXRSessionStart(): void
Returns void
willLoad:function
- willLoad(input, work, state): void
Returns void
过时的事件列表