camera Direction camera Direction : any
camera Raycaster camera Raycaster : any
current Observer current Observer : any
get Pixels get Pixels : ( < T > ( x : number ,
y : number ,
width : number ,
height : number ,
pixelRatio ?: number ,
flipY ?: boolean ,
buffer ?: T ) => T ) Type declaration < T > ( x , y , width , height , pixelRatio ? , flipY ? , buffer ? ) : T Type Parameters T extends Uint8Array | Uint8ClampedArray = Uint8Array Parameters x : number y : number width : number height : number Optional
pixelRatio : number Optional
flipY : boolean Optional
buffer : T Returns T rgba颜色平铺的 Uint8Array
helper Visible helper Visible : any
init Basis Loader init Basis Loader : any
intersect Raycaster intersect Raycaster : ( ( raycaster : Raycaster ,
floor ?: number ,
sortByDistance ?: boolean ) => Intersection [] ) Type declaration ( raycaster , floor ? , sortByDistance ? ) : Intersection [] Parameters raycaster : Raycaster floor : number = null sortByDistance : boolean = true 返回碰撞
load Work Type declaration ( inputWork , state ? , options ? , userAction ? ) : Promise < void > Returns Promise < void > model Ready State model Ready State : any
needs Render needs Render : ( ( ) => void )
off Type declaration < K > ( name ? , callback ? ) : void Type Parameters K extends | "error" | "dispose" | "gesture.pan" | "gesture.tap" | "gesture.dbltap" | "gesture.press" | "gesture.pinch" | "gesture.mousewheel" | "gesture.mousemove" | "gesture.momentum" | "initAnimation.start" | "initAnimation.end" | "camera.update" | "intersect.update" | "pano.select" | "pano.request" | "pano.moveTo" | "pano.moving" | "pano.arrived" | "pano.cancel" | "pano.error" | "pano.texture.load" | "pano.texture.progress" | "pano.texture.success" | "pano.texture.error" | "pano.texture.abort" | "xr.session.end" | "xr.session.start" | "xr.gesture.tap" | "xr.gesture.press" | "xr.gesture.buttonUp" | "xr.gesture.buttonDown" | "xr.controller.update" | ( keyof LegacyEventType) | "works.request" | "works.load" | "works.ready" | "state.set" | "state.change" | "state.synced" | "currentState.change" | "model.request" | "model.load" | "model.error" | "model.changeShownFloor" | "models.load" | "models.refined" | "render.prepare" | "render" | "mode.change.request" | "mode.change" | "helpers.visible" | "network.resource" | "fps" Returns void Overrides Record.off
Defined in lib/react/withFive.ts:453 on on : ( < K > ( name : K ,
callback : ( ( ... args : Parameters < EventTypes [ K ] > ) => ReturnType < EventTypes [ K ] > ) ,
once ?: boolean ) => ( ( ) => void ) ) Type declaration < K > ( name , callback , once ? ) : ( ( ) => void ) Type Parameters K extends | "error" | "dispose" | "gesture.pan" | "gesture.tap" | "gesture.dbltap" | "gesture.press" | "gesture.pinch" | "gesture.mousewheel" | "gesture.mousemove" | "gesture.momentum" | "initAnimation.start" | "initAnimation.end" | "camera.update" | "intersect.update" | "pano.select" | "pano.request" | "pano.moveTo" | "pano.moving" | "pano.arrived" | "pano.cancel" | "pano.error" | "pano.texture.load" | "pano.texture.progress" | "pano.texture.success" | "pano.texture.error" | "pano.texture.abort" | "xr.session.end" | "xr.session.start" | "xr.gesture.tap" | "xr.gesture.press" | "xr.gesture.buttonUp" | "xr.gesture.buttonDown" | "xr.controller.update" | ( keyof LegacyEventType) | "works.request" | "works.load" | "works.ready" | "state.set" | "state.change" | "state.synced" | "currentState.change" | "model.request" | "model.load" | "model.error" | "model.changeShownFloor" | "models.load" | "models.refined" | "render.prepare" | "render" | "mode.change.request" | "mode.change" | "helpers.visible" | "network.resource" | "fps" Returns ( ( ) => void ) 解除事件
Overrides Record.on
Defined in lib/react/withFive.ts:430 once Type declaration < K > ( name , callback ) : ( ( ) => void ) Type Parameters K extends | "error" | "dispose" | "gesture.pan" | "gesture.tap" | "gesture.dbltap" | "gesture.press" | "gesture.pinch" | "gesture.mousewheel" | "gesture.mousemove" | "gesture.momentum" | "initAnimation.start" | "initAnimation.end" | "camera.update" | "intersect.update" | "pano.select" | "pano.request" | "pano.moveTo" | "pano.moving" | "pano.arrived" | "pano.cancel" | "pano.error" | "pano.texture.load" | "pano.texture.progress" | "pano.texture.success" | "pano.texture.error" | "pano.texture.abort" | "xr.session.end" | "xr.session.start" | "xr.gesture.tap" | "xr.gesture.press" | "xr.gesture.buttonUp" | "xr.gesture.buttonDown" | "xr.controller.update" | ( keyof LegacyEventType) | "works.request" | "works.load" | "works.ready" | "state.set" | "state.change" | "state.synced" | "currentState.change" | "model.request" | "model.load" | "model.error" | "model.changeShownFloor" | "models.load" | "models.refined" | "render.prepare" | "render" | "mode.change.request" | "mode.change" | "helpers.visible" | "network.resource" | "fps" Returns ( ( ) => void ) 解除事件
Defined in lib/react/withFive.ts:442 preload Pano preload Pano : ( ( pano : number | Pano | ` ${ string } [ ${ number } ] ` ,
callback ?: ( ( costs : number ) => void ) ) => Promise < number > ) project2d project2d : ( ( vector : Vector3 , testModel ?: boolean ) => Vector2 )
Type declaration ( vector , testModel ? ) : Vector2 Parameters vector : Vector3 testModel : boolean = false Returns Vector2 二维坐标 或者 null
render render : ( ( callback ?: ( ( ) => void ) , updateObjectResolution ?: boolean ) => any )
Type declaration ( callback ? , updateObjectResolution ? ) : any Parameters Optional
callback : ( ( ) => void ) updateObjectResolution : boolean = false Returns any Overrides Record.render
Defined in lib/react/withFive.ts:506 set State set State : ( ( state : Partial < State > ,
immediately ?: boolean ,
userAction ?: boolean ) => void ) Type declaration ( state , immediately ? , userAction ? ) : void Parameters state : Partial < State > immediately : boolean = false userAction : boolean = true Returns void show Floor show Floor : ( ( floorIndex ?: number ) => void )
Type declaration ( floorIndex ? ) : void Parameters Optional
floorIndex : number Returns void shown Floor shown Floor : any
state Overrides Record.state
Defined in lib/react/withFive.ts:357 toggle Helper Visible toggle Helper Visible : ( ( visible : boolean ) => void )
Type declaration ( visible ) : void Returns void total Floor Length total Floor Length : any
unsafe__five Instance unsafe__five Instance : Five update Camera update Camera : ( ( pose : Partial < Pose > ,
duration : number ,
userAction ?: boolean ) => Promise < void > ) Type declaration ( pose , duration , userAction ? ) : Promise < void > Parameters pose : Partial < Pose > duration : number userAction : boolean = true Returns Promise < void > Promise 是否移动成功
works Overrides Record.works
Defined in lib/react/withFive.ts:383
Five React Inject: Five 的当前状态