@realsee/five 5.0.0-alpha.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +362 -0
- package/TERMS.txt +56 -0
- package/docs/.nojekyll +1 -0
- package/docs/assets/highlight.css +134 -0
- package/docs/assets/icons.css +1043 -0
- package/docs/assets/icons.png +0 -0
- package/docs/assets/icons@2x.png +0 -0
- package/docs/assets/main.js +52 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1388 -0
- package/docs/assets/widgets.png +0 -0
- package/docs/assets/widgets@2x.png +0 -0
- package/docs/classes/five.AnimationFrameLoop.html +15 -0
- package/docs/classes/five.BVH.html +10 -0
- package/docs/classes/five.BVHIntersect.html +1 -0
- package/docs/classes/five.BVHNode.html +7 -0
- package/docs/classes/five.BVHVector3.html +1 -0
- package/docs/classes/five.Camera.html +11 -0
- package/docs/classes/five.Five.html +303 -0
- package/docs/classes/five.InternalWebGLRenderer.html +1 -0
- package/docs/classes/five.IntersectMesh.html +1 -0
- package/docs/classes/five.LegacyPanoCircleMesh.html +5 -0
- package/docs/classes/five.Model.html +77 -0
- package/docs/classes/five.NetworkSubscribe.html +50 -0
- package/docs/classes/five.PBMContainer.html +17 -0
- package/docs/classes/five.PBMGroup.html +19 -0
- package/docs/classes/five.PBMMaterial.html +15 -0
- package/docs/classes/five.PBMMesh.html +7 -0
- package/docs/classes/five.PanoCircleMesh.html +7 -0
- package/docs/classes/five.Scene.html +3 -0
- package/docs/classes/five.Subscribe.html +56 -0
- package/docs/classes/five.Work.html +30 -0
- package/docs/classes/gltf_loader.GLTFLoader.html +17 -0
- package/docs/classes/gltf_loader.GLTFObject.html +7 -0
- package/docs/classes/line.Line.html +1 -0
- package/docs/classes/line.LineGeometry.html +1 -0
- package/docs/classes/line.LineMaterial.html +1 -0
- package/docs/classes/line.LineSegmentsGeometry.html +1 -0
- package/docs/classes/line.THREE_Line2.html +1 -0
- package/docs/classes/line.THREE_LineSegments2.html +1 -0
- package/docs/classes/react.Store.html +29 -0
- package/docs/classes/server.BVH.html +10 -0
- package/docs/classes/server.BVHIntersect.html +1 -0
- package/docs/classes/server.BVHNode.html +7 -0
- package/docs/classes/server.BVHVector3.html +1 -0
- package/docs/classes/server.Model.html +63 -0
- package/docs/classes/server.PBMGroup.html +9 -0
- package/docs/classes/server.PBMMesh.html +7 -0
- package/docs/classes/sticker.Sticker.html +32 -0
- package/docs/index.html +182 -0
- package/docs/interfaces/five.AddableObject.html +1 -0
- package/docs/interfaces/five.AnimationFrame.html +1 -0
- package/docs/interfaces/five.CameraPose.html +1 -0
- package/docs/interfaces/five.DepthPanoramaControllerCustomInitArgs.html +28 -0
- package/docs/interfaces/five.EventCallback.html +391 -0
- package/docs/interfaces/five.FiveInitArgs.html +96 -0
- package/docs/interfaces/five.FloorplanControllerCustomInitArgs.html +15 -0
- package/docs/interfaces/five.ImageOptions.html +16 -0
- package/docs/interfaces/five.ImageURLOptions.html +1 -0
- package/docs/interfaces/five.IntersectMeshInterface.html +3 -0
- package/docs/interfaces/five.Intersection.html +7 -0
- package/docs/interfaces/five.ModelControllerCustomInitArgs.html +20 -0
- package/docs/interfaces/five.ModelEventCallback.html +22 -0
- package/docs/interfaces/five.MovePanoOptions.html +39 -0
- package/docs/interfaces/five.PBMPanoPicture.html +7 -0
- package/docs/interfaces/five.PBMParameters.html +15 -0
- package/docs/interfaces/five.PanoCircleMeshInterface.html +19 -0
- package/docs/interfaces/five.PanoramaControllerCustomInitArgs.html +28 -0
- package/docs/interfaces/five.PanoramaLikeControllerCustomInitArgs.html +20 -0
- package/docs/interfaces/five.Pose.html +35 -0
- package/docs/interfaces/five.Scissor.html +14 -0
- package/docs/interfaces/five.State.html +19 -0
- package/docs/interfaces/five.SubscribeMixinType.emit.html +1 -0
- package/docs/interfaces/five.SubscribeMixinType.hasListener.html +1 -0
- package/docs/interfaces/five.SubscribeMixinType.off.html +1 -0
- package/docs/interfaces/five.SubscribeMixinType.on.html +1 -0
- package/docs/interfaces/five.SubscribeMixinType.once.html +1 -0
- package/docs/interfaces/five.TextureOptions.html +18 -0
- package/docs/interfaces/five.TopviewControllerCustomInitArgs.html +7 -0
- package/docs/interfaces/five.VRPanoramaControllerCustomInitArgs.html +24 -0
- package/docs/interfaces/five.WorkCubeImage.html +13 -0
- package/docs/interfaces/five.WorkImage.html +21 -0
- package/docs/interfaces/five.WorkInitial.html +13 -0
- package/docs/interfaces/five.WorkModel.html +11 -0
- package/docs/interfaces/five.WorkObserver.html +25 -0
- package/docs/interfaces/five.WorkTile.html +1 -0
- package/docs/interfaces/five.WorkVideo.html +9 -0
- package/docs/interfaces/gltf_loader.GLTF.html +7 -0
- package/docs/interfaces/react.FiveActionReactCallbacks.html +62 -0
- package/docs/interfaces/react.FiveInjectionTypes.html +191 -0
- package/docs/interfaces/react.PropTypeOfFiveFeatures.html +1 -0
- package/docs/interfaces/server.Intersection.html +7 -0
- package/docs/interfaces/server.ModelEventCallback.html +18 -0
- package/docs/interfaces/sticker.IntersectionLike.html +8 -0
- package/docs/media/coordinate.jpg +0 -0
- package/docs/media/topview.jpg +0 -0
- package/docs/media/typescript.jpg +0 -0
- package/docs/modules/five.SubscribeMixinType.html +1 -0
- package/docs/modules/five.html +481 -0
- package/docs/modules/gltf_loader.html +1 -0
- package/docs/modules/line.html +1 -0
- package/docs/modules/react.html +130 -0
- package/docs/modules/server.html +18 -0
- package/docs/modules/sticker.html +1 -0
- package/docs/modules.html +1 -0
- package/exporters/staticify.js +203 -0
- package/five/index.d.ts +2061 -0
- package/five/index.js +372 -0
- package/gltf-loader/index.d.ts +75 -0
- package/gltf-loader/index.js +260 -0
- package/line/index.d.ts +68 -0
- package/line/index.js +260 -0
- package/package.json +36 -0
- package/react/index.d.ts +812 -0
- package/react/index.js +260 -0
- package/resource/basis/basis_transcoder.js +22 -0
- package/resource/basis/basis_transcoder.wasm +0 -0
- package/resource/gltf/draco_decoder.js +31 -0
- package/resource/gltf/draco_decoder.wasm +0 -0
- package/resource/gltf/draco_wasm_wrapper.js +119 -0
- package/scripts/five-plugin-init.js +83 -0
- package/scripts/five-quick-start-init.js +80 -0
- package/scripts/five-react-component-init.js +83 -0
- package/scripts/five-staticify.js +21 -0
- package/server/index.d.ts +568 -0
- package/server/index.js +367 -0
- package/sticker/index.d.ts +70 -0
- package/sticker/index.js +260 -0
- package/templates/plugin/README.md +38 -0
- package/templates/plugin/devtools/external-five.js +5 -0
- package/templates/plugin/devtools/external-three.js +5 -0
- package/templates/plugin/devtools/tsconfig.build.json +18 -0
- package/templates/plugin/devtools/webpack.bundle.js +44 -0
- package/templates/plugin/devtools/webpack.example.js +39 -0
- package/templates/plugin/docs/.gitkeep +0 -0
- package/templates/plugin/examples/data.json +507 -0
- package/templates/plugin/examples/index.html +28 -0
- package/templates/plugin/examples/index.ts +12 -0
- package/templates/plugin/lib/index.ts +30 -0
- package/templates/plugin/package.json +32 -0
- package/templates/plugin/tsconfig.json +26 -0
- package/templates/quick-start/README.md +47 -0
- package/templates/quick-start/assets/work.json +507 -0
- package/templates/quick-start/index.html +54 -0
- package/templates/quick-start/index.tsx +123 -0
- package/templates/quick-start/package.json +25 -0
- package/templates/quick-start/tsconfig.json +27 -0
- package/templates/quick-start/webpack.config.js +45 -0
- package/templates/quick-start/webpack.production.js +42 -0
- package/templates/react-component/README.md +32 -0
- package/templates/react-component/devtools/external-five.js +5 -0
- package/templates/react-component/devtools/external-react.js +5 -0
- package/templates/react-component/devtools/external-three.js +5 -0
- package/templates/react-component/devtools/tsconfig.build.json +19 -0
- package/templates/react-component/devtools/webpack.bundle.js +44 -0
- package/templates/react-component/devtools/webpack.example.js +39 -0
- package/templates/react-component/docs/.gitkeep +0 -0
- package/templates/react-component/examples/data.json +507 -0
- package/templates/react-component/examples/index.html +17 -0
- package/templates/react-component/examples/index.tsx +62 -0
- package/templates/react-component/lib/index.tsx +157 -0
- package/templates/react-component/package.json +38 -0
- package/templates/react-component/tsconfig.json +27 -0
- package/umd/five-gltf-loader.js +2 -0
- package/umd/five-gltf-loader.js.LICENSE.txt +14 -0
- package/umd/five-line.js +2 -0
- package/umd/five-line.js.LICENSE.txt +14 -0
- package/umd/five-react.js +2 -0
- package/umd/five-react.js.LICENSE.txt +14 -0
- package/umd/five-sticker.js +2 -0
- package/umd/five-sticker.js.LICENSE.txt +14 -0
- package/umd/five.js +2 -0
- package/umd/five.js.LICENSE.txt +116 -0
|
@@ -0,0 +1,481 @@
|
|
|
1
|
+
<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>five | 如视 Five SDK - v5.0.0-alpha.100</title><meta name="description" content="Documentation for 如视 Five SDK - v5.0.0-alpha.100"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视 Five SDK - v5.0.0-alpha.100</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><ul class="tsd-breadcrumb"><li><a href="../modules.html">如视 Five SDK - v5.0.0-alpha.100</a></li><li><a href="five.html">five</a></li></ul><h1>Module five</h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Namespaces</h3><ul class="tsd-index-list"><li class="tsd-kind-namespace tsd-parent-kind-module"><a href="five.SubscribeMixinType.html" class="tsd-kind-icon">Subscribe<wbr/>Mixin<wbr/>Type</a></li></ul></section><section class="tsd-index-section "><h3>Classes</h3><ul class="tsd-index-list"><li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/five.AnimationFrameLoop.html" class="tsd-kind-icon">Animation<wbr/>Frame<wbr/>Loop</a></li><li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/five.BVH.html" class="tsd-kind-icon">BVH</a></li><li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/five.BVHIntersect.html" class="tsd-kind-icon">BVHIntersect</a></li><li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/five.BVHNode.html" class="tsd-kind-icon">BVHNode</a></li><li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/five.BVHVector3.html" class="tsd-kind-icon">BVHVector3</a></li><li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/five.Camera.html" class="tsd-kind-icon">Camera</a></li><li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/five.Five.html" class="tsd-kind-icon">Five</a></li><li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/five.InternalWebGLRenderer.html" class="tsd-kind-icon">Internal<wbr/>WebGLRenderer</a></li><li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/five.IntersectMesh.html" class="tsd-kind-icon">Intersect<wbr/>Mesh</a></li><li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/five.LegacyPanoCircleMesh.html" class="tsd-kind-icon">Legacy<wbr/>Pano<wbr/>Circle<wbr/>Mesh</a></li><li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/five.Model.html" class="tsd-kind-icon">Model</a></li><li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/five.NetworkSubscribe.html" class="tsd-kind-icon">Network<wbr/>Subscribe</a></li><li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/five.PBMContainer.html" class="tsd-kind-icon">PBMContainer</a></li><li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/five.PBMGroup.html" class="tsd-kind-icon">PBMGroup</a></li><li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/five.PBMMaterial.html" class="tsd-kind-icon">PBMMaterial</a></li><li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/five.PBMMesh.html" class="tsd-kind-icon">PBMMesh</a></li><li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/five.PanoCircleMesh.html" class="tsd-kind-icon">Pano<wbr/>Circle<wbr/>Mesh</a></li><li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/five.Scene.html" class="tsd-kind-icon">Scene</a></li><li class="tsd-kind-class tsd-parent-kind-module tsd-has-type-parameter"><a href="../classes/five.Subscribe.html" class="tsd-kind-icon">Subscribe</a></li><li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/five.Work.html" class="tsd-kind-icon">Work</a></li></ul></section><section class="tsd-index-section "><h3>Interfaces</h3><ul class="tsd-index-list"><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.AddableObject.html" class="tsd-kind-icon">Addable<wbr/>Object</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.AnimationFrame.html" class="tsd-kind-icon">Animation<wbr/>Frame</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.CameraPose.html" class="tsd-kind-icon">Camera<wbr/>Pose</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.DepthPanoramaControllerCustomInitArgs.html" class="tsd-kind-icon">Depth<wbr/>Panorama<wbr/>Controller<wbr/>Custom<wbr/>Init<wbr/>Args</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.EventCallback.html" class="tsd-kind-icon">Event<wbr/>Callback</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.FiveInitArgs.html" class="tsd-kind-icon">Five<wbr/>Init<wbr/>Args</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.FloorplanControllerCustomInitArgs.html" class="tsd-kind-icon">Floorplan<wbr/>Controller<wbr/>Custom<wbr/>Init<wbr/>Args</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.ImageOptions.html" class="tsd-kind-icon">Image<wbr/>Options</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.ImageURLOptions.html" class="tsd-kind-icon">ImageURLOptions</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.IntersectMeshInterface.html" class="tsd-kind-icon">Intersect<wbr/>Mesh<wbr/>Interface</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.Intersection.html" class="tsd-kind-icon">Intersection</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.ModelControllerCustomInitArgs.html" class="tsd-kind-icon">Model<wbr/>Controller<wbr/>Custom<wbr/>Init<wbr/>Args</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.ModelEventCallback.html" class="tsd-kind-icon">Model<wbr/>Event<wbr/>Callback</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.MovePanoOptions.html" class="tsd-kind-icon">Move<wbr/>Pano<wbr/>Options</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.PBMPanoPicture.html" class="tsd-kind-icon">PBMPano<wbr/>Picture</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.PBMParameters.html" class="tsd-kind-icon">PBMParameters</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.PanoCircleMeshInterface.html" class="tsd-kind-icon">Pano<wbr/>Circle<wbr/>Mesh<wbr/>Interface</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.PanoramaControllerCustomInitArgs.html" class="tsd-kind-icon">Panorama<wbr/>Controller<wbr/>Custom<wbr/>Init<wbr/>Args</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.PanoramaLikeControllerCustomInitArgs.html" class="tsd-kind-icon">Panorama<wbr/>Like<wbr/>Controller<wbr/>Custom<wbr/>Init<wbr/>Args</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.Pose.html" class="tsd-kind-icon">Pose</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.Scissor.html" class="tsd-kind-icon">Scissor</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.State.html" class="tsd-kind-icon">State</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.TextureOptions.html" class="tsd-kind-icon">Texture<wbr/>Options</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.TopviewControllerCustomInitArgs.html" class="tsd-kind-icon">Topview<wbr/>Controller<wbr/>Custom<wbr/>Init<wbr/>Args</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.VRPanoramaControllerCustomInitArgs.html" class="tsd-kind-icon">VRPanorama<wbr/>Controller<wbr/>Custom<wbr/>Init<wbr/>Args</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.WorkCubeImage.html" class="tsd-kind-icon">Work<wbr/>Cube<wbr/>Image</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.WorkImage.html" class="tsd-kind-icon">Work<wbr/>Image</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.WorkInitial.html" class="tsd-kind-icon">Work<wbr/>Initial</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.WorkModel.html" class="tsd-kind-icon">Work<wbr/>Model</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.WorkObserver.html" class="tsd-kind-icon">Work<wbr/>Observer</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.WorkTile.html" class="tsd-kind-icon">Work<wbr/>Tile</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.WorkVideo.html" class="tsd-kind-icon">Work<wbr/>Video</a></li></ul></section><section class="tsd-index-section "><h3>Type aliases</h3><ul class="tsd-index-list"><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="five.html#ControllerCustomInitTypes" class="tsd-kind-icon">Controller<wbr/>Custom<wbr/>Init<wbr/>Types</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="five.html#ControllerEventTypes" class="tsd-kind-icon">Controller<wbr/>Event<wbr/>Types</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="five.html#EventTypes" class="tsd-kind-icon">Event<wbr/>Types</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module tsd-has-type-parameter"><a href="five.html#FivePlugin" class="tsd-kind-icon">Five<wbr/>Plugin</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module tsd-has-type-parameter"><a href="five.html#FivePluginInit" class="tsd-kind-icon">Five<wbr/>Plugin<wbr/>Init</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module tsd-has-type-parameter"><a href="five.html#FivePluginInstance" class="tsd-kind-icon">Five<wbr/>Plugin<wbr/>Instance</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="five.html#GestureTypes" class="tsd-kind-icon">Gesture<wbr/>Types</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="five.html#LooseWork" class="tsd-kind-icon">Loose<wbr/>Work</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="five.html#LooseWorkInitial" class="tsd-kind-icon">Loose<wbr/>Work<wbr/>Initial</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="five.html#LooseWorkModel" class="tsd-kind-icon">Loose<wbr/>Work<wbr/>Model</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="five.html#LooseWorkObserver" class="tsd-kind-icon">Loose<wbr/>Work<wbr/>Observer</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="five.html#LooseWorkPanorama" class="tsd-kind-icon">Loose<wbr/>Work<wbr/>Panorama</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="five.html#LooseWorkVideo" class="tsd-kind-icon">Loose<wbr/>Work<wbr/>Video</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module tsd-has-type-parameter"><a href="five.html#Mirror" class="tsd-kind-icon">Mirror</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="five.html#Mode" class="tsd-kind-icon">Mode</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="five.html#ModelEventType" class="tsd-kind-icon">Model<wbr/>Event<wbr/>Type</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="five.html#NetWorkMeta" class="tsd-kind-icon">Net<wbr/>Work<wbr/>Meta</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="five.html#NetworkState" class="tsd-kind-icon">Network<wbr/>State</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="five.html#NetworkType" class="tsd-kind-icon">Network<wbr/>Type</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="five.html#ParseWorkOptions" class="tsd-kind-icon">Parse<wbr/>Work<wbr/>Options</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="five.html#SubscribeEventMap" class="tsd-kind-icon">Subscribe<wbr/>Event<wbr/>Map</a></li></ul></section><section class="tsd-index-section "><h3>Variables</h3><ul class="tsd-index-list"><li class="tsd-kind-variable tsd-parent-kind-module"><a href="five.html#PROXY_CONTROLLER_EVENT_NAMES" class="tsd-kind-icon">PROXY_<wbr/>CONTROLLER_<wbr/>EVENT_<wbr/>NAMES</a></li></ul></section><section class="tsd-index-section "><h3>Functions</h3><ul class="tsd-index-list"><li class="tsd-kind-function tsd-parent-kind-module"><a href="five.html#defaultImageURLTransform" class="tsd-kind-icon">default<wbr/>ImageURLTransform</a></li><li class="tsd-kind-function tsd-parent-kind-module"><a href="five.html#getViewportScale" class="tsd-kind-icon">get<wbr/>Viewport<wbr/>Scale</a></li><li class="tsd-kind-function tsd-parent-kind-module"><a href="five.html#parseWork" class="tsd-kind-icon">parse<wbr/>Work</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Type aliases</h2><section class="tsd-panel tsd-member tsd-kind-type-alias tsd-parent-kind-module"><a id="ControllerCustomInitTypes" class="tsd-anchor"></a><h3>Controller<wbr/>Custom<wbr/>Init<wbr/>Types</h3><div class="tsd-signature tsd-kind-icon">Controller<wbr/>Custom<wbr/>Init<wbr/>Types<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>DepthPanorama<span class="tsd-signature-symbol">: </span><a href="../interfaces/five.DepthPanoramaControllerCustomInitArgs.html" class="tsd-signature-type" data-tsd-kind="Interface">DepthPanoramaControllerCustomInitArgs</a><span class="tsd-signature-symbol">; </span>Floorplan<span class="tsd-signature-symbol">: </span><a href="../interfaces/five.FloorplanControllerCustomInitArgs.html" class="tsd-signature-type" data-tsd-kind="Interface">FloorplanControllerCustomInitArgs</a><span class="tsd-signature-symbol">; </span>Model<span class="tsd-signature-symbol">: </span><a href="../interfaces/five.ModelControllerCustomInitArgs.html" class="tsd-signature-type" data-tsd-kind="Interface">ModelControllerCustomInitArgs</a><span class="tsd-signature-symbol">; </span>Panorama<span class="tsd-signature-symbol">: </span><a href="../interfaces/five.PanoramaControllerCustomInitArgs.html" class="tsd-signature-type" data-tsd-kind="Interface">PanoramaControllerCustomInitArgs</a><span class="tsd-signature-symbol">; </span>Topview<span class="tsd-signature-symbol">: </span><a href="../interfaces/five.TopviewControllerCustomInitArgs.html" class="tsd-signature-type" data-tsd-kind="Interface">TopviewControllerCustomInitArgs</a><span class="tsd-signature-symbol">; </span>VRPanorama<span class="tsd-signature-symbol">: </span><a href="../interfaces/five.VRPanoramaControllerCustomInitArgs.html" class="tsd-signature-type" data-tsd-kind="Interface">VRPanoramaControllerCustomInitArgs</a><span class="tsd-signature-symbol"> }</span></div><aside class="tsd-sources"><ul><li>Defined in lib/five/application/controllers.ts:22</li></ul></aside><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5>Depth<wbr/>Panorama<span class="tsd-signature-symbol">: </span><a href="../interfaces/five.DepthPanoramaControllerCustomInitArgs.html" class="tsd-signature-type" data-tsd-kind="Interface">DepthPanoramaControllerCustomInitArgs</a></h5></li><li class="tsd-parameter"><h5>Floorplan<span class="tsd-signature-symbol">: </span><a href="../interfaces/five.FloorplanControllerCustomInitArgs.html" class="tsd-signature-type" data-tsd-kind="Interface">FloorplanControllerCustomInitArgs</a></h5></li><li class="tsd-parameter"><h5>Model<span class="tsd-signature-symbol">: </span><a href="../interfaces/five.ModelControllerCustomInitArgs.html" class="tsd-signature-type" data-tsd-kind="Interface">ModelControllerCustomInitArgs</a></h5></li><li class="tsd-parameter"><h5>Panorama<span class="tsd-signature-symbol">: </span><a href="../interfaces/five.PanoramaControllerCustomInitArgs.html" class="tsd-signature-type" data-tsd-kind="Interface">PanoramaControllerCustomInitArgs</a></h5></li><li class="tsd-parameter"><h5>Topview<span class="tsd-signature-symbol">: </span><a href="../interfaces/five.TopviewControllerCustomInitArgs.html" class="tsd-signature-type" data-tsd-kind="Interface">TopviewControllerCustomInitArgs</a></h5></li><li class="tsd-parameter"><h5>VRPanorama<span class="tsd-signature-symbol">: </span><a href="../interfaces/five.VRPanoramaControllerCustomInitArgs.html" class="tsd-signature-type" data-tsd-kind="Interface">VRPanoramaControllerCustomInitArgs</a></h5></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias tsd-parent-kind-module"><a id="ControllerEventTypes" class="tsd-anchor"></a><h3>Controller<wbr/>Event<wbr/>Types</h3><div class="tsd-signature tsd-kind-icon">Controller<wbr/>Event<wbr/>Types<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>cameraDirectionUpdate<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>cameraFovUpdate<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>cameraPositionUpdate<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>cameraUpdate<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>gesture<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>initAnimationEnded<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>initAnimationWillStart<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>interiaPan<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>intersectionHidden<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>intersectionOnModelUpdate<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>mouseWheel<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>moveToPano<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>moveToPanoCanceled<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>movingToPano<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>panGesture<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>panoArrived<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>panoLoadError<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>panoLoaded<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>panoSelected<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>panoWillArrive<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>panoWillLoad<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>pinchGesture<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>pressGesture<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>tapGesture<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>textureAbort<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>textureError<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>textureLoaded<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>textureLoading<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>textureStartLoad<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>vrWantsToExit<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>wantsChangeCameraFov<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>wantsGesture<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>wantsInteriaPan<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>wantsMouseWheel<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>wantsMoveToPano<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>wantsPanGesture<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>wantsPinchGesture<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>wantsPressGesture<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>wantsShowIntersectionOnModel<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>wantsTapGesture<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> }</span></div><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:11</li></ul></aside><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5>camera<wbr/>Direction<wbr/>Update<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">camera<wbr/>Direction<wbr/>Update<span class="tsd-signature-symbol">(</span>coordinates<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/five.Pose.html" class="tsd-signature-type" data-tsd-kind="Interface">Pose</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"longitude"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"latitude"</span><span class="tsd-signature-symbol">></span>, userAction<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:64</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
2
|
+
<p>相机姿态中相机方向变化</p>
|
|
3
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>coordinates: <span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/five.Pose.html" class="tsd-signature-type" data-tsd-kind="Interface">Pose</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"longitude"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"latitude"</span><span class="tsd-signature-symbol">></span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
4
|
+
<p>相机姿态的俯仰角和偏航角</p>
|
|
5
|
+
</div></div></li><li><h5>userAction: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
6
|
+
<p>是否用户触发</p>
|
|
7
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li><li class="tsd-parameter"><h5>camera<wbr/>Fov<wbr/>Update<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">camera<wbr/>Fov<wbr/>Update<span class="tsd-signature-symbol">(</span>fov<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, userAction<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:50</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
8
|
+
<p>相机姿态中可视角度变化</p>
|
|
9
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>fov: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
10
|
+
<p>相机的可视角度</p>
|
|
11
|
+
</div></div></li><li><h5>userAction: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
12
|
+
<p>是否用户触发</p>
|
|
13
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li><li class="tsd-parameter"><h5>camera<wbr/>Position<wbr/>Update<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">camera<wbr/>Position<wbr/>Update<span class="tsd-signature-symbol">(</span>offset<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Vector3</span>, userAction<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:57</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
14
|
+
<p>相机姿态中相机位置变化</p>
|
|
15
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>offset: <span class="tsd-signature-type">Vector3</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
16
|
+
<p>相机位置</p>
|
|
17
|
+
</div></div></li><li><h5>userAction: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
18
|
+
<p>是否用户触发</p>
|
|
19
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li><li class="tsd-parameter"><h5>camera<wbr/>Update<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">camera<wbr/>Update<span class="tsd-signature-symbol">(</span>pose<span class="tsd-signature-symbol">: </span><a href="../interfaces/five.Pose.html" class="tsd-signature-type" data-tsd-kind="Interface">Pose</a>, userAction<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:43</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
20
|
+
<p>相机姿态变化</p>
|
|
21
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>pose: <a href="../interfaces/five.Pose.html" class="tsd-signature-type" data-tsd-kind="Interface">Pose</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
22
|
+
<p>相机姿态</p>
|
|
23
|
+
</div></div></li><li><h5>userAction: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
24
|
+
<p>是否用户触发</p>
|
|
25
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li><li class="tsd-parameter"><h5>error<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">error<span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Error</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:330</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
26
|
+
<p>抛出错误</p>
|
|
27
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>error: <span class="tsd-signature-type">Error</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
28
|
+
<p>抛出错误</p>
|
|
29
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li><li class="tsd-parameter"><h5>gesture<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">gesture<span class="tsd-signature-symbol">(</span>type<span class="tsd-signature-symbol">: </span><a href="five.html#GestureTypes" class="tsd-signature-type" data-tsd-kind="Type alias">GestureTypes</a>, pointers<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span>delta<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">[]</span>, final<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:167</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
30
|
+
<p>手势 触发</p>
|
|
31
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>type: <a href="five.html#GestureTypes" class="tsd-signature-type" data-tsd-kind="Type alias">GestureTypes</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
32
|
+
<p>手势类型</p>
|
|
33
|
+
</div></div></li><li><h5>pointers: <span class="tsd-signature-symbol">{ </span>delta<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">[]</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
34
|
+
<p>手指位置</p>
|
|
35
|
+
</div></div></li><li><h5>final: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
36
|
+
<p>是否手势结束</p>
|
|
37
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li><li class="tsd-parameter"><h5>init<wbr/>Animation<wbr/>Ended<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">init<wbr/>Animation<wbr/>Ended<span class="tsd-signature-symbol">(</span>panoIndex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, pose<span class="tsd-signature-symbol">: </span><a href="../interfaces/five.Pose.html" class="tsd-signature-type" data-tsd-kind="Interface">Pose</a>, userAction<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:27</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
38
|
+
<p>模态间切换动画结束</p>
|
|
39
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>panoIndex: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
40
|
+
<p>当前点位</p>
|
|
41
|
+
</div></div></li><li><h5>pose: <a href="../interfaces/five.Pose.html" class="tsd-signature-type" data-tsd-kind="Interface">Pose</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
42
|
+
<p>相机姿态</p>
|
|
43
|
+
</div></div></li><li><h5>userAction: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
44
|
+
<p>是否用户触发</p>
|
|
45
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li><li class="tsd-parameter"><h5>init<wbr/>Animation<wbr/>Will<wbr/>Start<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">init<wbr/>Animation<wbr/>Will<wbr/>Start<span class="tsd-signature-symbol">(</span>panoIndex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, pose<span class="tsd-signature-symbol">: </span><a href="../interfaces/five.Pose.html" class="tsd-signature-type" data-tsd-kind="Interface">Pose</a>, userAction<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:19</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
46
|
+
<p>模态间切换动画开始</p>
|
|
47
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>panoIndex: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
48
|
+
<p>当前点位</p>
|
|
49
|
+
</div></div></li><li><h5>pose: <a href="../interfaces/five.Pose.html" class="tsd-signature-type" data-tsd-kind="Interface">Pose</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
50
|
+
<p>相机姿态</p>
|
|
51
|
+
</div></div></li><li><h5>userAction: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
52
|
+
<p>是否用户触发</p>
|
|
53
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li><li class="tsd-parameter"><h5>interia<wbr/>Pan<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">interia<wbr/>Pan<span class="tsd-signature-symbol">(</span>pose<span class="tsd-signature-symbol">: </span><a href="../interfaces/five.Pose.html" class="tsd-signature-type" data-tsd-kind="Interface">Pose</a>, final<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:197</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
54
|
+
<p>pan 手势(滑动屏幕) 的惯性运动</p>
|
|
55
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>pose: <a href="../interfaces/five.Pose.html" class="tsd-signature-type" data-tsd-kind="Interface">Pose</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
56
|
+
<p>意图的相机姿态</p>
|
|
57
|
+
</div></div></li><li><h5>final: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
58
|
+
<p>是否手势结束</p>
|
|
59
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li><li class="tsd-parameter"><h5>intersection<wbr/>Hidden<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">intersection<wbr/>Hidden<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:284</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
60
|
+
<p>鼠标焦点环被隐藏</p>
|
|
61
|
+
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li><li class="tsd-parameter"><h5>intersection<wbr/>On<wbr/>Model<wbr/>Update<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">intersection<wbr/>On<wbr/>Model<wbr/>Update<span class="tsd-signature-symbol">(</span>intersection<span class="tsd-signature-symbol">: </span><a href="../interfaces/five.Intersection.html" class="tsd-signature-type" data-tsd-kind="Interface">Intersection</a>, mesh<span class="tsd-signature-symbol">: </span><a href="../interfaces/five.IntersectMeshInterface.html" class="tsd-signature-type" data-tsd-kind="Interface">IntersectMeshInterface</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:274</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
62
|
+
<p>鼠标焦点环位置被重新计算</p>
|
|
63
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>intersection: <a href="../interfaces/five.Intersection.html" class="tsd-signature-type" data-tsd-kind="Interface">Intersection</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
64
|
+
<p>焦点碰撞结果</p>
|
|
65
|
+
</div></div></li><li><h5>mesh: <a href="../interfaces/five.IntersectMeshInterface.html" class="tsd-signature-type" data-tsd-kind="Interface">IntersectMeshInterface</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
66
|
+
<p>焦点环 mesh</p>
|
|
67
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li><li class="tsd-parameter"><h5>mouse<wbr/>Wheel<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">mouse<wbr/>Wheel<span class="tsd-signature-symbol">(</span>delta<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, fov<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, final<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:267</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
68
|
+
<p>鼠标滚轮被触发</p>
|
|
69
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>delta: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
70
|
+
<p>滚轮数值</p>
|
|
71
|
+
</div></div></li><li><h5>fov: <span class="tsd-signature-type">number</span></h5></li><li><h5>final: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
72
|
+
<p>是否手势结束</p>
|
|
73
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li><li class="tsd-parameter"><h5>move<wbr/>To<wbr/>Pano<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">move<wbr/>To<wbr/>Pano<span class="tsd-signature-symbol">(</span>panoIndex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, userAction<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:90</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
74
|
+
<p>开始加载并移动到某个观察点位</p>
|
|
75
|
+
</div><dl class="tsd-comment-tags"><dt>description</dt><dd><p>可 panoWillArrive 相比</p>
|
|
76
|
+
<ul>
|
|
77
|
+
<li>moveToPano 在加载全景图资源前触发</li>
|
|
78
|
+
<li>panoWillArrive 在加载全景图资源后触发</li>
|
|
79
|
+
</ul>
|
|
80
|
+
</dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>panoIndex: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
81
|
+
<p>移动到的点位下标</p>
|
|
82
|
+
</div></div></li><li><h5>userAction: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
83
|
+
<p>是否用户触发</p>
|
|
84
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li><li class="tsd-parameter"><h5>move<wbr/>To<wbr/>Pano<wbr/>Canceled<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">move<wbr/>To<wbr/>Pano<wbr/>Canceled<span class="tsd-signature-symbol">(</span>panoIndex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:121</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
85
|
+
<p>移动到某个观察点位被取消</p>
|
|
86
|
+
</div><dl class="tsd-comment-tags"><dt>description</dt><dd><p>这个有一些情况会导致</p>
|
|
87
|
+
<ul>
|
|
88
|
+
<li>移动过程中切换模态</li>
|
|
89
|
+
<li>移动过程中 five 被析构</li>
|
|
90
|
+
<li>移动过程点击切换到另一个点位</li>
|
|
91
|
+
</ul>
|
|
92
|
+
</dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>panoIndex: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
93
|
+
<p>对应的点位下标</p>
|
|
94
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li><li class="tsd-parameter"><h5>moving<wbr/>To<wbr/>Pano<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">moving<wbr/>To<wbr/>Pano<span class="tsd-signature-symbol">(</span>panoIndex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, prevPanoIndex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, progress<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:149</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
95
|
+
<p>移动中, 会告知移动状态(耗时百分比)</p>
|
|
96
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>panoIndex: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
97
|
+
<p>将要移动到的点位下标</p>
|
|
98
|
+
</div></div></li><li><h5>prevPanoIndex: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
99
|
+
<p>上一个点位下标</p>
|
|
100
|
+
</div></div></li><li><h5>progress: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
101
|
+
<p>整个过程经度 [0-1]</p>
|
|
102
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li><li class="tsd-parameter"><h5>pan<wbr/>Gesture<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">pan<wbr/>Gesture<span class="tsd-signature-symbol">(</span>pose<span class="tsd-signature-symbol">: </span><a href="../interfaces/five.Pose.html" class="tsd-signature-type" data-tsd-kind="Interface">Pose</a>, final<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:182</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
103
|
+
<p>pan 手势(滑动屏幕) 被触发</p>
|
|
104
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>pose: <a href="../interfaces/five.Pose.html" class="tsd-signature-type" data-tsd-kind="Interface">Pose</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
105
|
+
<p>相机姿态</p>
|
|
106
|
+
</div></div></li><li><h5>final: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
107
|
+
<p>是否手势结束</p>
|
|
108
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li><li class="tsd-parameter"><h5>pano<wbr/>Arrived<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">pano<wbr/>Arrived<span class="tsd-signature-symbol">(</span>panoIndex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, pose<span class="tsd-signature-symbol">: </span><a href="../interfaces/five.Pose.html" class="tsd-signature-type" data-tsd-kind="Interface">Pose</a>, userAction<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:141</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
109
|
+
<p>移动到某个观察点位</p>
|
|
110
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>panoIndex: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
111
|
+
<p>移动到点位下标</p>
|
|
112
|
+
</div></div></li><li><h5>pose: <a href="../interfaces/five.Pose.html" class="tsd-signature-type" data-tsd-kind="Interface">Pose</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
113
|
+
<p>相机姿态</p>
|
|
114
|
+
</div></div></li><li><h5>userAction: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
115
|
+
<p>是否用户触发</p>
|
|
116
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li><li class="tsd-parameter"><h5>pano<wbr/>Load<wbr/>Error<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">pano<wbr/>Load<wbr/>Error<span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Error</span>, panoIndex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:110</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
117
|
+
<p>某个观察点的全景资源加载失败</p>
|
|
118
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>error: <span class="tsd-signature-type">Error</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
119
|
+
<p>错误对象</p>
|
|
120
|
+
</div></div></li><li><h5>panoIndex: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
121
|
+
<p>对应的点位下标</p>
|
|
122
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li><li class="tsd-parameter"><h5>pano<wbr/>Loaded<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">pano<wbr/>Loaded<span class="tsd-signature-symbol">(</span>panoIndex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:102</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
123
|
+
<p>某个观察点的全景资源加载完成</p>
|
|
124
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>panoIndex: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
125
|
+
<p>对应的点位下标</p>
|
|
126
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li><li class="tsd-parameter"><h5>pano<wbr/>Selected<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">pano<wbr/>Selected<span class="tsd-signature-symbol">(</span>panoIndex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:70</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
127
|
+
<p>观察点位被选择</p>
|
|
128
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>panoIndex: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
129
|
+
<p>选择的点位</p>
|
|
130
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li><li class="tsd-parameter"><h5>pano<wbr/>Will<wbr/>Arrive<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">pano<wbr/>Will<wbr/>Arrive<span class="tsd-signature-symbol">(</span>panoIndex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, pose<span class="tsd-signature-symbol">: </span><a href="../interfaces/five.Pose.html" class="tsd-signature-type" data-tsd-kind="Interface">Pose</a>, userAction<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:133</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
131
|
+
<p>开始移动到某个观察点位</p>
|
|
132
|
+
</div><dl class="tsd-comment-tags"><dt>description</dt><dd><p>和 moveToPano 相比</p>
|
|
133
|
+
<ul>
|
|
134
|
+
<li>moveToPano 在加载全景图资源前触发</li>
|
|
135
|
+
<li>panoWillArrive 在加载全景图资源后触发</li>
|
|
136
|
+
</ul>
|
|
137
|
+
</dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>panoIndex: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
138
|
+
<p>移动到点位下标</p>
|
|
139
|
+
</div></div></li><li><h5>pose: <a href="../interfaces/five.Pose.html" class="tsd-signature-type" data-tsd-kind="Interface">Pose</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
140
|
+
<p>相机姿态</p>
|
|
141
|
+
</div></div></li><li><h5>userAction: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
142
|
+
<p>是否用户触发</p>
|
|
143
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li><li class="tsd-parameter"><h5>pano<wbr/>Will<wbr/>Load<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">pano<wbr/>Will<wbr/>Load<span class="tsd-signature-symbol">(</span>panoIndex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:96</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
144
|
+
<p>开始加载某个观察点的全景资源</p>
|
|
145
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>panoIndex: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
146
|
+
<p>移动到的点位下标</p>
|
|
147
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li><li class="tsd-parameter"><h5>pinch<wbr/>Gesture<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">pinch<wbr/>Gesture<span class="tsd-signature-symbol">(</span>scale<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, fov<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, final<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:250</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
148
|
+
<p>pinch 手势(双指缩放) 被触发</p>
|
|
149
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>scale: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
150
|
+
<p>缩放数值</p>
|
|
151
|
+
</div></div></li><li><h5>fov: <span class="tsd-signature-type">number</span></h5></li><li><h5>final: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
152
|
+
<p>是否手势结束</p>
|
|
153
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li><li class="tsd-parameter"><h5>press<wbr/>Gesture<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">press<wbr/>Gesture<span class="tsd-signature-symbol">(</span>raycaster<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Raycaster</span>, tapPosition<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Vector2</span>, duration<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, isFinal<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:242</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
154
|
+
<p>tap 手势(点击屏幕) 被触发</p>
|
|
155
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>raycaster: <span class="tsd-signature-type">Raycaster</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
156
|
+
<p>点击对应的三维射线</p>
|
|
157
|
+
</div></div></li><li><h5>tapPosition: <span class="tsd-signature-type">Vector2</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
158
|
+
<p>点击对应的屏幕位置</p>
|
|
159
|
+
</div></div></li><li><h5>duration: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
160
|
+
<p>长按持续时间</p>
|
|
161
|
+
</div></div></li><li><h5>isFinal: <span class="tsd-signature-type">boolean</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li><li class="tsd-parameter"><h5>tap<wbr/>Gesture<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">tap<wbr/>Gesture<span class="tsd-signature-symbol">(</span>raycaster<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Raycaster</span>, tapPosition<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Vector2</span>, final<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:214</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
162
|
+
<p>tap 手势(点击屏幕) 被触发</p>
|
|
163
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>raycaster: <span class="tsd-signature-type">Raycaster</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
164
|
+
<p>点击对应的三维射线</p>
|
|
165
|
+
</div></div></li><li><h5>tapPosition: <span class="tsd-signature-type">Vector2</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
166
|
+
<p>点击对应的屏幕位置</p>
|
|
167
|
+
</div></div></li><li><h5>final: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
168
|
+
<p>是否手势结束</p>
|
|
169
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li><li class="tsd-parameter"><h5>texture<wbr/>Abort<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">texture<wbr/>Abort<span class="tsd-signature-symbol">(</span>panoIndex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, observer<span class="tsd-signature-symbol">: </span><a href="../interfaces/five.WorkObserver.html" class="tsd-signature-type" data-tsd-kind="Interface">WorkObserver</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:309</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
170
|
+
<p>观察点的全景资源加载被中止</p>
|
|
171
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>panoIndex: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
172
|
+
<p>加载点位下标</p>
|
|
173
|
+
</div></div></li><li><h5>observer: <a href="../interfaces/five.WorkObserver.html" class="tsd-signature-type" data-tsd-kind="Interface">WorkObserver</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
174
|
+
<p>对应的 observer 详情</p>
|
|
175
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li><li class="tsd-parameter"><h5>texture<wbr/>Error<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">texture<wbr/>Error<span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Error</span>, panoIndex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, observer<span class="tsd-signature-symbol">: </span><a href="../interfaces/five.WorkObserver.html" class="tsd-signature-type" data-tsd-kind="Interface">WorkObserver</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:317</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
176
|
+
<p>观察点的全景资源加载失败</p>
|
|
177
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>error: <span class="tsd-signature-type">Error</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
178
|
+
<p>错误对象</p>
|
|
179
|
+
</div></div></li><li><h5>panoIndex: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
180
|
+
<p>加载点位下标</p>
|
|
181
|
+
</div></div></li><li><h5>observer: <a href="../interfaces/five.WorkObserver.html" class="tsd-signature-type" data-tsd-kind="Interface">WorkObserver</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
182
|
+
<p>对应的 observer 详情</p>
|
|
183
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li><li class="tsd-parameter"><h5>texture<wbr/>Loaded<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">texture<wbr/>Loaded<span class="tsd-signature-symbol">(</span>panoIndex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, observer<span class="tsd-signature-symbol">: </span><a href="../interfaces/five.WorkObserver.html" class="tsd-signature-type" data-tsd-kind="Interface">WorkObserver</a>, meta<span class="tsd-signature-symbol">: </span><a href="five.html#NetWorkMeta" class="tsd-signature-type" data-tsd-kind="Type alias">NetWorkMeta</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:324</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
184
|
+
<p>观察点的全景资源加载完成</p>
|
|
185
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>panoIndex: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
186
|
+
<p>加载点位下标</p>
|
|
187
|
+
</div></div></li><li><h5>observer: <a href="../interfaces/five.WorkObserver.html" class="tsd-signature-type" data-tsd-kind="Interface">WorkObserver</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
188
|
+
<p>对应的 observer 详情</p>
|
|
189
|
+
</div></div></li><li><h5>meta: <a href="five.html#NetWorkMeta" class="tsd-signature-type" data-tsd-kind="Type alias">NetWorkMeta</a><span class="tsd-signature-symbol">[]</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li><li class="tsd-parameter"><h5>texture<wbr/>Loading<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">texture<wbr/>Loading<span class="tsd-signature-symbol">(</span>progress<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, panoIndex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, observer<span class="tsd-signature-symbol">: </span><a href="../interfaces/five.WorkObserver.html" class="tsd-signature-type" data-tsd-kind="Interface">WorkObserver</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:302</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
190
|
+
<p>观察点的全景资源加载中,可获取到进度</p>
|
|
191
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>progress: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
192
|
+
<p>加载进度 [0-1]</p>
|
|
193
|
+
</div></div></li><li><h5>panoIndex: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
194
|
+
<p>加载点位下标</p>
|
|
195
|
+
</div></div></li><li><h5>observer: <a href="../interfaces/five.WorkObserver.html" class="tsd-signature-type" data-tsd-kind="Interface">WorkObserver</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
196
|
+
<p>对应的 observer 详情</p>
|
|
197
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li><li class="tsd-parameter"><h5>texture<wbr/>Start<wbr/>Load<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">texture<wbr/>Start<wbr/>Load<span class="tsd-signature-symbol">(</span>panoIndex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, observer<span class="tsd-signature-symbol">: </span><a href="../interfaces/five.WorkObserver.html" class="tsd-signature-type" data-tsd-kind="Interface">WorkObserver</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:294</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
198
|
+
<p>观察点的全景资源开始加载</p>
|
|
199
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>panoIndex: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
200
|
+
<p>加载点位下标</p>
|
|
201
|
+
</div></div></li><li><h5>observer: <a href="../interfaces/five.WorkObserver.html" class="tsd-signature-type" data-tsd-kind="Interface">WorkObserver</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
202
|
+
<p>对应的 observer 详情</p>
|
|
203
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li><li class="tsd-parameter"><h5>vr<wbr/>Wants<wbr/>To<wbr/>Exit<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">vr<wbr/>Wants<wbr/>To<wbr/>Exit<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:287</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
204
|
+
<p>意图要退出VR眼镜模式</p>
|
|
205
|
+
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li><li class="tsd-parameter"><h5>wants<wbr/>Change<wbr/>Camera<wbr/>Fov<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">wants<wbr/>Change<wbr/>Camera<wbr/>Fov<span class="tsd-signature-symbol">(</span>fov<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">false</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:36</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
206
|
+
<p>意图要变化相机的可视角度 可以通过 <code>return false</code> 阻止</p>
|
|
207
|
+
</div><dl class="tsd-comment-tags"><dt>deprecated</dt><dd><p>建议通过 初始化设置的 <code>defaultFov</code>, <code>maxFov</code>, <code>minFov</code> 来限制</p>
|
|
208
|
+
</dd></dl></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>fov: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
209
|
+
<p>意图要变化相机的可视角度</p>
|
|
210
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">false</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">void</span></h4><div><p>可以通过 <code>return false</code> 阻止</p>
|
|
211
|
+
</div></li></ul></li><li class="tsd-parameter"><h5>wants<wbr/>Gesture<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">wants<wbr/>Gesture<span class="tsd-signature-symbol">(</span>type<span class="tsd-signature-symbol">: </span><a href="five.html#GestureTypes" class="tsd-signature-type" data-tsd-kind="Type alias">GestureTypes</a>, pointers<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span>delta<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">[]</span>, final<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">false</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:159</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
212
|
+
<p>意图要触发手势, 可以通过 <code>return false</code> 阻止</p>
|
|
213
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>type: <a href="five.html#GestureTypes" class="tsd-signature-type" data-tsd-kind="Type alias">GestureTypes</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
214
|
+
<p>手势类型</p>
|
|
215
|
+
</div></div></li><li><h5>pointers: <span class="tsd-signature-symbol">{ </span>delta<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">[]</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
216
|
+
<p>手指位置</p>
|
|
217
|
+
</div></div></li><li><h5>final: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
218
|
+
<p>是否手势结束</p>
|
|
219
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">false</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">void</span></h4><div><p>可以通过 <code>return false</code> 阻止</p>
|
|
220
|
+
</div></li></ul></li><li class="tsd-parameter"><h5>wants<wbr/>Interia<wbr/>Pan<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">wants<wbr/>Interia<wbr/>Pan<span class="tsd-signature-symbol">(</span>pose<span class="tsd-signature-symbol">: </span><a href="../interfaces/five.Pose.html" class="tsd-signature-type" data-tsd-kind="Interface">Pose</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">false</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:190</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
221
|
+
<p>意图要触发 pan 手势(滑动屏幕) 的惯性运动, 可以通过 <code>return false</code> 阻止</p>
|
|
222
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>pose: <a href="../interfaces/five.Pose.html" class="tsd-signature-type" data-tsd-kind="Interface">Pose</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
223
|
+
<p>意图的相机姿态</p>
|
|
224
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">false</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">void</span></h4><div><p>可以通过 <code>return false</code> 阻止</p>
|
|
225
|
+
</div></li></ul></li><li class="tsd-parameter"><h5>wants<wbr/>Mouse<wbr/>Wheel<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">wants<wbr/>Mouse<wbr/>Wheel<span class="tsd-signature-symbol">(</span>delta<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, nextFov<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, final<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">false</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:259</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
226
|
+
<p>意图要触发 鼠标滚轮 可以通过 <code>return false</code> 阻止</p>
|
|
227
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>delta: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
228
|
+
<p>滚轮数值</p>
|
|
229
|
+
</div></div></li><li><h5>nextFov: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
230
|
+
<p>意图的fov变更</p>
|
|
231
|
+
</div></div></li><li><h5>final: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
232
|
+
<p>是否手势结束</p>
|
|
233
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">false</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">void</span></h4><div><p>可以通过 <code>return false</code> 阻止</p>
|
|
234
|
+
</div></li></ul></li><li class="tsd-parameter"><h5>wants<wbr/>Move<wbr/>To<wbr/>Pano<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">wants<wbr/>Move<wbr/>To<wbr/>Pano<span class="tsd-signature-symbol">(</span>panoIndex<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, options<span class="tsd-signature-symbol">: </span><a href="../interfaces/five.MovePanoOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">MovePanoOptions</a>, userAction<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">false</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:79</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
235
|
+
<p>意图要移动到某个点位 可以通过 <code>return false</code> 阻止</p>
|
|
236
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>panoIndex: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
237
|
+
<p>图要移动到的点位下标</p>
|
|
238
|
+
</div></div></li><li><h5>options: <a href="../interfaces/five.MovePanoOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">MovePanoOptions</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
239
|
+
<p>移动参数</p>
|
|
240
|
+
</div></div></li><li><h5>userAction: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
241
|
+
<p>是否用户触发</p>
|
|
242
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">false</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">void</span></h4><div><p>可以通过 <code>return false</code> 阻止</p>
|
|
243
|
+
</div></li></ul></li><li class="tsd-parameter"><h5>wants<wbr/>Pan<wbr/>Gesture<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">wants<wbr/>Pan<wbr/>Gesture<span class="tsd-signature-symbol">(</span>pose<span class="tsd-signature-symbol">: </span><a href="../interfaces/five.Pose.html" class="tsd-signature-type" data-tsd-kind="Interface">Pose</a>, final<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">false</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:175</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
244
|
+
<p>意图要触发 pan 手势(滑动屏幕), 可以通过 <code>return false</code> 阻止</p>
|
|
245
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>pose: <a href="../interfaces/five.Pose.html" class="tsd-signature-type" data-tsd-kind="Interface">Pose</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
246
|
+
<p>意图的相机姿态</p>
|
|
247
|
+
</div></div></li><li><h5>final: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
248
|
+
<p>是否手势结束</p>
|
|
249
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">false</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">void</span></h4><div><p>可以通过 <code>return false</code> 阻止</p>
|
|
250
|
+
</div></li></ul></li><li class="tsd-parameter"><h5>wants<wbr/>Pinch<wbr/>Gesture<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">wants<wbr/>Pinch<wbr/>Gesture<span class="tsd-signature-symbol">(</span>scale<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, nextFov<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, final<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">false</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:223</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
251
|
+
<p>意图要触发 pinch 手势(双指缩放),可以通过 <code>return false</code> 阻止</p>
|
|
252
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>scale: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
253
|
+
<p>缩放数值</p>
|
|
254
|
+
</div></div></li><li><h5>nextFov: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
255
|
+
<p>意图的fov变更</p>
|
|
256
|
+
</div></div></li><li><h5>final: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
257
|
+
<p>是否手势结束</p>
|
|
258
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">false</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">void</span></h4><div><p>可以通过 <code>return false</code> 阻止</p>
|
|
259
|
+
</div></li></ul></li><li class="tsd-parameter"><h5>wants<wbr/>Press<wbr/>Gesture<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">wants<wbr/>Press<wbr/>Gesture<span class="tsd-signature-symbol">(</span>raycaster<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Raycaster</span>, tapPosition<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Vector2</span>, duration<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, isFinal<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">false</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:233</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
260
|
+
<p>意图要触发 press 手势(长按屏幕), 可以通过 <code>return false</code> 阻止</p>
|
|
261
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>raycaster: <span class="tsd-signature-type">Raycaster</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
262
|
+
<p>长按对应的三维射线</p>
|
|
263
|
+
</div></div></li><li><h5>tapPosition: <span class="tsd-signature-type">Vector2</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
264
|
+
<p>长按对应的屏幕位置</p>
|
|
265
|
+
</div></div></li><li><h5>duration: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
266
|
+
<p>长按持续时间</p>
|
|
267
|
+
</div></div></li><li><h5>isFinal: <span class="tsd-signature-type">boolean</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">false</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">void</span></h4><div><p>可以通过 <code>return false</code> 阻止</p>
|
|
268
|
+
</div></li></ul></li><li class="tsd-parameter"><h5>wants<wbr/>Show<wbr/>Intersection<wbr/>On<wbr/>Model<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">wants<wbr/>Show<wbr/>Intersection<wbr/>On<wbr/>Model<span class="tsd-signature-symbol">(</span>raycaster<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Raycaster</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">false</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:281</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
269
|
+
<p>意图要展示鼠标焦点环,可以通过 <code>return false</code> 阻止</p>
|
|
270
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>raycaster: <span class="tsd-signature-type">Raycaster</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">false</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">void</span></h4><div><p>可以通过 <code>return false</code> 阻止</p>
|
|
271
|
+
</div></li></ul></li><li class="tsd-parameter"><h5>wants<wbr/>Tap<wbr/>Gesture<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">wants<wbr/>Tap<wbr/>Gesture<span class="tsd-signature-symbol">(</span>raycaster<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Raycaster</span>, tapPosition<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Vector2</span>, final<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">false</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:206</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
272
|
+
<p>意图要触发 tap 手势(点击屏幕), 可以通过 <code>return false</code> 阻止</p>
|
|
273
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>raycaster: <span class="tsd-signature-type">Raycaster</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
274
|
+
<p>点击对应的三维射线</p>
|
|
275
|
+
</div></div></li><li><h5>tapPosition: <span class="tsd-signature-type">Vector2</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
276
|
+
<p>点击对应的屏幕位置</p>
|
|
277
|
+
</div></div></li><li><h5>final: <span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
278
|
+
<p>是否手势结束</p>
|
|
279
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">false</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">void</span></h4><div><p>可以通过 <code>return false</code> 阻止</p>
|
|
280
|
+
</div></li></ul></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias tsd-parent-kind-module"><a id="EventTypes" class="tsd-anchor"></a><h3>Event<wbr/>Types</h3><div class="tsd-signature tsd-kind-icon">Event<wbr/>Types<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Pick</span><span class="tsd-signature-symbol"><</span><a href="five.html#ControllerEventTypes" class="tsd-signature-type" data-tsd-kind="Type alias">ControllerEventTypes</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-symbol">typeof </span><a href="five.html#PROXY_CONTROLLER_EVENT_NAMES" class="tsd-signature-type" data-tsd-kind="Variable">PROXY_CONTROLLER_EVENT_NAMES</a><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol"> & </span><span class="tsd-signature-symbol">{ </span>currentStateChange<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>dispose<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>fps<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>helpersVisibleChange<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>load<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>loaded<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>modeChange<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>modelBvhLoaded<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>modelGeometryLoaded<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>modelLoadError<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>modelLoaded<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>modelMaterialLoaded<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>modelShownFloorChange<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>modelWillLoad<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>network<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>renderFrame<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>setState<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>stateChange<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>stateSynced<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>wantsChangeMode<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>wantsMoveToPano<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>wantsToMoveToPano<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>willLoad<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> }</span></div><aside class="tsd-sources"><ul><li>Defined in lib/five/application/events.ts:54</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
281
|
+
<p>Five 事件列表</p>
|
|
282
|
+
</div><dl class="tsd-comment-tags"><dt>description</dt><dd><p>具体事件列表 请查看 <a href="../interfaces/five.EventCallback.html">EventCallback</a></p>
|
|
283
|
+
</dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias tsd-parent-kind-module tsd-has-type-parameter"><a id="FivePlugin" class="tsd-anchor"></a><h3>Five<wbr/>Plugin</h3><div class="tsd-signature tsd-kind-icon">Five<wbr/>Plugin<span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">Parameters</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">Returns</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type" data-tsd-kind="Type parameter">Parameters</span><span class="tsd-signature-symbol"> extends </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol"> ? </span><span class="tsd-signature-symbol">(</span>five<span class="tsd-signature-symbol">: </span><a href="../classes/five.Five.html" class="tsd-signature-type" data-tsd-kind="Class">Five</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">Returns</span><span class="tsd-signature-symbol"> : </span><span class="tsd-signature-symbol">(</span>five<span class="tsd-signature-symbol">: </span><a href="../classes/five.Five.html" class="tsd-signature-type" data-tsd-kind="Class">Five</a>, parameters<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">Parameters</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">Returns</span></div><aside class="tsd-sources"><ul><li>Defined in lib/five/types/plugin.ts:9</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
284
|
+
<p>Five 插件</p>
|
|
285
|
+
|
|
286
|
+
<a href="#插件-plugins" id="插件-plugins" style="color: inherit; text-decoration: none;">
|
|
287
|
+
<h1>插件 Plugins</h1>
|
|
288
|
+
</a>
|
|
289
|
+
<blockquote>
|
|
290
|
+
<p>Five 提供了工厂模式的插件机制,
|
|
291
|
+
提供了 FivePlugin FivePluginInstance FivePluginInits 接口来帮助创建和使用插件</p>
|
|
292
|
+
</blockquote>
|
|
293
|
+
|
|
294
|
+
<a href="#插件的作用" id="插件的作用" style="color: inherit; text-decoration: none;">
|
|
295
|
+
<h2>插件的作用</h2>
|
|
296
|
+
</a>
|
|
297
|
+
<ol>
|
|
298
|
+
<li>插件即是将一些通用的对于 five 的操作的一些复用的抽象。</li>
|
|
299
|
+
<li>可以通过插件来组织代码,减少逻辑依赖。</li>
|
|
300
|
+
</ol>
|
|
301
|
+
|
|
302
|
+
<a href="#创建插件" id="创建插件" style="color: inherit; text-decoration: none;">
|
|
303
|
+
<h2>创建插件</h2>
|
|
304
|
+
</a>
|
|
305
|
+
<pre><code><span class="hl-2">mkdir</span><span class="hl-0"> </span><span class="hl-2">a</span><span class="hl-0">-</span><span class="hl-2">five</span><span class="hl-0">-</span><span class="hl-2">plugin</span><br/><span class="hl-2">npm</span><span class="hl-0"> </span><span class="hl-2">init</span><span class="hl-0"> -</span><span class="hl-2">y</span><br/><span class="hl-2">npm</span><span class="hl-0"> </span><span class="hl-2">install</span><span class="hl-0"> @</span><span class="hl-2">realsee</span><span class="hl-0">/</span><span class="hl-2">five</span><br/><span class="hl-2">npx</span><span class="hl-0"> </span><span class="hl-2">five</span><span class="hl-0">-</span><span class="hl-2">plugin</span><span class="hl-0">-</span><span class="hl-2">init</span>
|
|
306
|
+
</code></pre>
|
|
307
|
+
|
|
308
|
+
<a href="#项目目录" id="项目目录" style="color: inherit; text-decoration: none;">
|
|
309
|
+
<h2>项目目录</h2>
|
|
310
|
+
</a>
|
|
311
|
+
<pre><code><span class="hl-0">.</span><br/><span class="hl-0">├── </span><span class="hl-6">README</span><span class="hl-0">.</span><span class="hl-2">md</span><br/><span class="hl-0">├── </span><span class="hl-2">devtools</span><br/><span class="hl-0">│ ├── </span><span class="hl-2">external</span><span class="hl-0">-</span><span class="hl-2">five</span><span class="hl-0">.</span><span class="hl-2">js</span><br/><span class="hl-0">│ ├── </span><span class="hl-2">external</span><span class="hl-0">-</span><span class="hl-2">three</span><span class="hl-0">.</span><span class="hl-2">js</span><br/><span class="hl-0">│ ├── </span><span class="hl-2">tsconfig</span><span class="hl-0">.</span><span class="hl-2">build</span><span class="hl-0">.</span><span class="hl-2">json</span><br/><span class="hl-0">│ ├── </span><span class="hl-2">webpack</span><span class="hl-0">.</span><span class="hl-2">bundle</span><span class="hl-0">.</span><span class="hl-2">js</span><br/><span class="hl-0">│ └── </span><span class="hl-2">webpack</span><span class="hl-0">.</span><span class="hl-2">example</span><span class="hl-0">.</span><span class="hl-2">js</span><br/><span class="hl-0">├── </span><span class="hl-2">docs</span><br/><span class="hl-0">├── </span><span class="hl-2">examples</span><br/><span class="hl-0">│ ├── </span><span class="hl-2">data</span><span class="hl-0">.</span><span class="hl-2">json</span><br/><span class="hl-0">│ ├── </span><span class="hl-2">index</span><span class="hl-0">.</span><span class="hl-2">html</span><br/><span class="hl-0">│ └── </span><span class="hl-2">index</span><span class="hl-0">.</span><span class="hl-2">ts</span><br/><span class="hl-0">├── </span><span class="hl-2">lib</span><br/><span class="hl-0">│ └── </span><span class="hl-2">index</span><span class="hl-0">.</span><span class="hl-2">ts</span><br/><span class="hl-0">├── </span><span class="hl-2">package</span><span class="hl-0">.</span><span class="hl-2">json</span><br/><span class="hl-0">└── </span><span class="hl-2">tsconfig</span><span class="hl-0">.</span><span class="hl-2">json</span>
|
|
312
|
+
</code></pre>
|
|
313
|
+
|
|
314
|
+
<a href="#npm-script" id="npm-script" style="color: inherit; text-decoration: none;">
|
|
315
|
+
<h2>npm script</h2>
|
|
316
|
+
</a>
|
|
317
|
+
<ul>
|
|
318
|
+
<li><code>example</code>: 开发环境,编译 example 下的 index.ts, 监听变化,并且开启端口监听,可以通过 <code>localhost:8080</code> 访问</li>
|
|
319
|
+
<li><code>build:doc</code>: 通过 typedoc 生成项目文档,生成目标在 <code>docs</code> 目录下</li>
|
|
320
|
+
<li><code>build:typescript</code>: 通过 <code>tsc</code> 编译 ts 代码,生成目标在 <code>build</code> 目录下</li>
|
|
321
|
+
<li><code>build:bundle</code>: 通过 <code>webpack</code> 编译 unpack 包, 生成目标在 <code>bundle</code> 目录下</li>
|
|
322
|
+
<li><code>build:all</code>: <code>npm run build:doc && npm run build:typescript && && npm run build:example && npm run build:bundle</code></li>
|
|
323
|
+
</ul>
|
|
324
|
+
|
|
325
|
+
<a href="#编译配置" id="编译配置" style="color: inherit; text-decoration: none;">
|
|
326
|
+
<h2>编译配置</h2>
|
|
327
|
+
</a>
|
|
328
|
+
<p>编译配置均在 devtools 目录下, 可以自行修改配置</p>
|
|
329
|
+
<ul>
|
|
330
|
+
<li>ts 的编译参数在 <code>devtools/tsconfig.build.json</code> 下</li>
|
|
331
|
+
<li>bundle 的 webpack 配置在 <code>devtools/webpack.bundle.js</code> 下</li>
|
|
332
|
+
</ul>
|
|
333
|
+
|
|
334
|
+
<a href="#发布" id="发布" style="color: inherit; text-decoration: none;">
|
|
335
|
+
<h2>发布</h2>
|
|
336
|
+
</a>
|
|
337
|
+
<ul>
|
|
338
|
+
<li>往 npm 发布,默认发布的入口文件在 <code>build/index.js</code>, 即通过 tsc 编译得到的代码。你可以在 <code>package.json</code> 中修改。</li>
|
|
339
|
+
<li>bundle 包发布,可以直接使用 <code>build:bundle</code> 生成的结果。</li>
|
|
340
|
+
</ul>
|
|
341
|
+
|
|
342
|
+
<a href="#类型说明" id="类型说明" style="color: inherit; text-decoration: none;">
|
|
343
|
+
<h3>类型说明</h3>
|
|
344
|
+
</a>
|
|
345
|
+
<pre><code class="language-typescript"><span class="hl-7">type</span><span class="hl-0"> </span><span class="hl-8">FivePlugin</span><span class="hl-0"><</span><span class="hl-8">Parameters</span><span class="hl-0">, </span><span class="hl-8">Returns</span><span class="hl-0">>;</span>
|
|
346
|
+
</code></pre>
|
|
347
|
+
<ul>
|
|
348
|
+
<li>Parameters 插件定义的参数</li>
|
|
349
|
+
<li>Returns 插件返回的实例</li>
|
|
350
|
+
</ul>
|
|
351
|
+
|
|
352
|
+
<a href="#简单例子" id="简单例子" style="color: inherit; text-decoration: none;">
|
|
353
|
+
<h3>简单例子</h3>
|
|
354
|
+
</a>
|
|
355
|
+
<blockquote>
|
|
356
|
+
<p>这是一个在当five显示界面被点击时 打印 "tap!" 的一个简单插件, 并且可以拉取历史列表</p>
|
|
357
|
+
</blockquote>
|
|
358
|
+
<pre><code class="language-typescript"><span class="hl-1">import</span><span class="hl-0"> { </span><span class="hl-2">FivePlugin</span><span class="hl-0"> } </span><span class="hl-1">from</span><span class="hl-0"> </span><span class="hl-3">"@realsee/five"</span><span class="hl-0">;</span><br/><br/><span class="hl-4">// 打印的内容</span><br/><span class="hl-7">type</span><span class="hl-0"> </span><span class="hl-8">TapRecordPluginParameter</span><span class="hl-0"> = </span><span class="hl-8">string</span><span class="hl-0">;</span><br/><br/><span class="hl-4">// 实例方法</span><br/><span class="hl-7">type</span><span class="hl-0"> </span><span class="hl-8">TapRecordPluginReturns</span><span class="hl-0"> = {</span><br/><span class="hl-0"> </span><span class="hl-4">// 一个返回历史列表的防范</span><br/><span class="hl-0"> </span><span class="hl-5">getHistory</span><span class="hl-0">: () </span><span class="hl-7">=></span><span class="hl-0"> </span><span class="hl-8">string</span><span class="hl-0">[]</span><br/><span class="hl-0">};</span><br/><br/><span class="hl-7">const</span><span class="hl-0"> </span><span class="hl-6">TapRecordPlugin</span><span class="hl-0">: </span><span class="hl-8">FivePlugin</span><span class="hl-0"><</span><br/><span class="hl-0"> </span><span class="hl-8">TapRecordPluginParameter</span><span class="hl-0">,</span><br/><span class="hl-0"> </span><span class="hl-8">TapRecordPluginReturns</span><br/><span class="hl-0">> = (</span><span class="hl-2">five</span><span class="hl-0">, </span><span class="hl-2">message</span><span class="hl-0"> = </span><span class="hl-3">"tap!"</span><span class="hl-0">) </span><span class="hl-7">=></span><span class="hl-0"> {</span><br/><br/><span class="hl-0"> </span><span class="hl-7">const</span><span class="hl-0"> </span><span class="hl-6">list</span><span class="hl-0">: </span><span class="hl-8">string</span><span class="hl-0">[] = [];</span><br/><br/><span class="hl-0"> </span><span class="hl-2">five</span><span class="hl-0">.</span><span class="hl-5">on</span><span class="hl-0">(</span><span class="hl-3">"tapGesture"</span><span class="hl-0">, () </span><span class="hl-7">=></span><span class="hl-0"> {</span><br/><span class="hl-0"> </span><span class="hl-2">console</span><span class="hl-0">.</span><span class="hl-5">log</span><span class="hl-0">(</span><span class="hl-2">message</span><span class="hl-0">);</span><br/><span class="hl-0"> </span><span class="hl-2">list</span><span class="hl-0">.</span><span class="hl-5">push</span><span class="hl-0">(</span><span class="hl-3">`</span><span class="hl-7">${</span><span class="hl-7">new</span><span class="hl-11"> </span><span class="hl-8">Date</span><span class="hl-11">().</span><span class="hl-5">toUTCString</span><span class="hl-11">()</span><span class="hl-7">}</span><span class="hl-3"> </span><span class="hl-7">${</span><span class="hl-2">message</span><span class="hl-7">}</span><span class="hl-3">`</span><span class="hl-0">);</span><br/><span class="hl-0"> });</span><br/><br/><span class="hl-0"> </span><span class="hl-1">return</span><span class="hl-0"> { </span><span class="hl-5">getHistory</span><span class="hl-2">:</span><span class="hl-0"> () </span><span class="hl-7">=></span><span class="hl-0"> </span><span class="hl-2">list</span><span class="hl-0">.</span><span class="hl-5">slice</span><span class="hl-0">() };</span><br/><span class="hl-0">};</span><br/>
|
|
359
|
+
</code></pre>
|
|
360
|
+
<ul>
|
|
361
|
+
<li>工厂函数的参数是 five 实例 以及对应的插件需要的参数, 参数使用后面在插件初始化中详细说明。</li>
|
|
362
|
+
<li>工厂函数的返回将在 five.plugis 中取到,后面会详细说明。</li>
|
|
363
|
+
</ul>
|
|
364
|
+
|
|
365
|
+
<a href="#插件初始化" id="插件初始化" style="color: inherit; text-decoration: none;">
|
|
366
|
+
<h3>插件初始化</h3>
|
|
367
|
+
</a>
|
|
368
|
+
|
|
369
|
+
<a href="#类型说明-1" id="类型说明-1" style="color: inherit; text-decoration: none;">
|
|
370
|
+
<h3>类型说明</h3>
|
|
371
|
+
</a>
|
|
372
|
+
<pre><code><span class="hl-7">type</span><span class="hl-0"> </span><span class="hl-8">FivePluginInit</span><span class="hl-0"><</span><span class="hl-8">FivePlugin</span><span class="hl-0">></span>
|
|
373
|
+
</code></pre>
|
|
374
|
+
|
|
375
|
+
<a href="#简单例子-1" id="简单例子-1" style="color: inherit; text-decoration: none;">
|
|
376
|
+
<h3>简单例子</h3>
|
|
377
|
+
</a>
|
|
378
|
+
<blockquote>
|
|
379
|
+
<p>就上面 TapRecordPlugin 的例子来初始化插件</p>
|
|
380
|
+
</blockquote>
|
|
381
|
+
<pre><code class="language-typescript"><span class="hl-1">import</span><span class="hl-0"> </span><span class="hl-2">Five</span><span class="hl-0">, { </span><span class="hl-2">FivePluginInits</span><span class="hl-0"> } </span><span class="hl-1">from</span><span class="hl-0"> </span><span class="hl-3">"@realsee/five"</span><span class="hl-0">;</span><br/><br/><span class="hl-7">const</span><span class="hl-0"> </span><span class="hl-6">five</span><span class="hl-0"> = </span><span class="hl-7">new</span><span class="hl-0"> </span><span class="hl-5">Five</span><span class="hl-0">({</span><br/><span class="hl-0"> </span><span class="hl-2">plugins:</span><span class="hl-0"> [</span><br/><span class="hl-0"> [</span><br/><span class="hl-0"> </span><span class="hl-4">// 插件</span><br/><span class="hl-0"> </span><span class="hl-2">TapRecordPlugin</span><span class="hl-0">,</span><br/><br/><span class="hl-0"> </span><span class="hl-4">// 插件对象在 five.plugins 中的命名实例名称,</span><br/><span class="hl-0"> </span><span class="hl-4">// 比如这个就是通过 five.plguins.tapRecord 获取到插件实例</span><br/><span class="hl-0"> </span><span class="hl-3">"tapRecord"</span><span class="hl-0">,</span><br/><br/><span class="hl-0"> </span><span class="hl-4">// 插件参数,必须符合 TapRecordPluginParameter 的生命</span><br/><span class="hl-0"> </span><span class="hl-3">"tap!"</span><br/><span class="hl-0"> ] </span><span class="hl-1">as</span><span class="hl-0"> </span><span class="hl-8">FivePluginInit</span><span class="hl-0"><</span><span class="hl-7">typeof</span><span class="hl-0"> </span><span class="hl-2">TapRecordPlugin</span><span class="hl-0">></span><br/><span class="hl-0"> ]</span><br/><span class="hl-0">});</span><br/><br/><span class="hl-4">// five.load(...)</span><br/>
|
|
382
|
+
</code></pre>
|
|
383
|
+
<ul>
|
|
384
|
+
<li>需要使用 <code>as FivePluginInit</code> 的方法声明,否则无法约束参数</li>
|
|
385
|
+
<li>第一个参数必须唯一的,不要出现插件间冲突</li>
|
|
386
|
+
</ul>
|
|
387
|
+
|
|
388
|
+
<a href="#使用插件实例" id="使用插件实例" style="color: inherit; text-decoration: none;">
|
|
389
|
+
<h2>使用插件实例</h2>
|
|
390
|
+
</a>
|
|
391
|
+
<pre><code><span class="hl-7">type</span><span class="hl-0"> </span><span class="hl-8">FivePluginInstance</span><span class="hl-0"><</span><span class="hl-8">FivePlugin</span><span class="hl-0">>;</span>
|
|
392
|
+
</code></pre>
|
|
393
|
+
<p>简单例子
|
|
394
|
+
就上面 TapRecordPlugin 的例子来获取历时点击列表</p>
|
|
395
|
+
<pre><code class="language-typescript"><span class="hl-1">import</span><span class="hl-0"> { </span><span class="hl-2">FivePluginInstance</span><span class="hl-0"> } </span><span class="hl-1">from</span><span class="hl-0"> </span><span class="hl-3">"@realsee/five"</span><span class="hl-0">;</span><br/><br/><span class="hl-4">// five.plugins.tapRecord 可以获取到插件实例 "tapRecord" 是插件初始化声明确定的</span><br/><span class="hl-4">// 通过 FivePluginInstance 在约束类型,否则均为 any</span><br/><span class="hl-7">const</span><span class="hl-0"> </span><span class="hl-6">tapRecord</span><span class="hl-0">: </span><span class="hl-8">FivePluginInstance</span><span class="hl-0"><</span><span class="hl-7">typeof</span><span class="hl-0"> </span><span class="hl-2">TapRecordPlugin</span><span class="hl-0">> = </span><span class="hl-2">five</span><span class="hl-0">.</span><span class="hl-2">plugins</span><span class="hl-0">.</span><span class="hl-2">tapRecord</span><span class="hl-0">;</span><br/><br/><span class="hl-4">// 现在就可以获取到历时列表了</span><br/><span class="hl-7">const</span><span class="hl-0"> </span><span class="hl-6">getHistory</span><span class="hl-0">: </span><span class="hl-8">string</span><span class="hl-0">[] = </span><span class="hl-2">tapRecord</span><span class="hl-0">.</span><span class="hl-5">getHistory</span><span class="hl-0">();</span><br/><br/><span class="hl-2">console</span><span class="hl-0">.</span><span class="hl-5">log</span><span class="hl-0">(</span><span class="hl-2">getHistory</span><span class="hl-0">);</span>
|
|
396
|
+
</code></pre>
|
|
397
|
+
|
|
398
|
+
<a href="#回顾整体的例子" id="回顾整体的例子" style="color: inherit; text-decoration: none;">
|
|
399
|
+
<h3>回顾整体的例子</h3>
|
|
400
|
+
</a>
|
|
401
|
+
<pre><code class="language-typescript"><span class="hl-1">import</span><span class="hl-0"> </span><span class="hl-2">Five</span><span class="hl-0">, { </span><span class="hl-2">FivePlugin</span><span class="hl-0">, </span><span class="hl-2">FivePluginInit</span><span class="hl-0">, </span><span class="hl-2">FivePluginInstance</span><span class="hl-0"> } </span><span class="hl-1">from</span><span class="hl-0"> </span><span class="hl-3">"@realsee/five"</span><span class="hl-0">;</span><br/><br/><span class="hl-4">// 打印的内容</span><br/><span class="hl-7">type</span><span class="hl-0"> </span><span class="hl-8">TapRecordPluginParameter</span><span class="hl-0"> = </span><span class="hl-8">string</span><span class="hl-0">;</span><br/><br/><span class="hl-4">// 实例方法</span><br/><span class="hl-7">type</span><span class="hl-0"> </span><span class="hl-8">TapRecordPluginReturns</span><span class="hl-0"> = {</span><br/><span class="hl-0"> </span><span class="hl-4">// 一个返回历史列表的防范</span><br/><span class="hl-0"> </span><span class="hl-5">getHistory</span><span class="hl-0">: () </span><span class="hl-7">=></span><span class="hl-0"> </span><span class="hl-8">string</span><span class="hl-0">[]</span><br/><span class="hl-0">};</span><br/><br/><span class="hl-7">const</span><span class="hl-0"> </span><span class="hl-6">TapRecordPlugin</span><span class="hl-0">: </span><span class="hl-8">FivePlugin</span><span class="hl-0"><</span><br/><span class="hl-0"> </span><span class="hl-8">TapRecordPluginParameter</span><span class="hl-0">,</span><br/><span class="hl-0"> </span><span class="hl-8">TapRecordPluginReturns</span><br/><span class="hl-0">> = (</span><span class="hl-2">five</span><span class="hl-0">, </span><span class="hl-2">message</span><span class="hl-0"> = </span><span class="hl-3">"tap!"</span><span class="hl-0">) </span><span class="hl-7">=></span><span class="hl-0"> {</span><br/><br/><span class="hl-0"> </span><span class="hl-7">const</span><span class="hl-0"> </span><span class="hl-6">list</span><span class="hl-0">: </span><span class="hl-8">string</span><span class="hl-0">[] = [];</span><br/><br/><span class="hl-0"> </span><span class="hl-2">five</span><span class="hl-0">.</span><span class="hl-5">on</span><span class="hl-0">(</span><span class="hl-3">"tapGesture"</span><span class="hl-0">, () </span><span class="hl-7">=></span><span class="hl-0"> {</span><br/><span class="hl-0"> </span><span class="hl-2">console</span><span class="hl-0">.</span><span class="hl-5">log</span><span class="hl-0">(</span><span class="hl-2">message</span><span class="hl-0">);</span><br/><span class="hl-0"> </span><span class="hl-2">list</span><span class="hl-0">.</span><span class="hl-5">push</span><span class="hl-0">(</span><span class="hl-3">`</span><span class="hl-7">${</span><span class="hl-7">new</span><span class="hl-11"> </span><span class="hl-8">Date</span><span class="hl-11">().</span><span class="hl-5">toUTCString</span><span class="hl-11">()</span><span class="hl-7">}</span><span class="hl-3"> </span><span class="hl-7">${</span><span class="hl-2">message</span><span class="hl-7">}</span><span class="hl-3">`</span><span class="hl-0">);</span><br/><span class="hl-0"> });</span><br/><br/><span class="hl-0"> </span><span class="hl-1">return</span><span class="hl-0"> { </span><span class="hl-5">getHistory</span><span class="hl-2">:</span><span class="hl-0"> () </span><span class="hl-7">=></span><span class="hl-0"> </span><span class="hl-2">list</span><span class="hl-0">.</span><span class="hl-5">slice</span><span class="hl-0">() };</span><br/><span class="hl-0">};</span><br/><br/><span class="hl-7">const</span><span class="hl-0"> </span><span class="hl-6">five</span><span class="hl-0"> = </span><span class="hl-7">new</span><span class="hl-0"> </span><span class="hl-5">Five</span><span class="hl-0">({</span><br/><span class="hl-0"> </span><span class="hl-2">plugins:</span><span class="hl-0"> [</span><br/><span class="hl-0"> [</span><br/><span class="hl-0"> </span><span class="hl-4">// 插件对象在 five.plugins 中的命名实例名称,</span><br/><span class="hl-0"> </span><span class="hl-4">// 比如这个就是通过 five.plguins.tapRecord 获取到插件实例</span><br/><span class="hl-0"> </span><span class="hl-3">"tapRecord"</span><span class="hl-0">,</span><br/><br/><span class="hl-0"> </span><span class="hl-4">// 插件</span><br/><span class="hl-0"> </span><span class="hl-2">TapRecordPlugin</span><span class="hl-0">,</span><br/><br/><span class="hl-0"> </span><span class="hl-4">// 插件参数,必须符合 TapRecordPluginParameter 的生命</span><br/><span class="hl-0"> </span><span class="hl-3">"tap!"</span><br/><span class="hl-0"> ] </span><span class="hl-1">as</span><span class="hl-0"> </span><span class="hl-8">FivePluginInit</span><span class="hl-0"><</span><span class="hl-7">typeof</span><span class="hl-0"> </span><span class="hl-2">TapRecordPlugin</span><span class="hl-0">></span><br/><span class="hl-0"> ]</span><br/><span class="hl-0">});</span><br/><br/><span class="hl-4">// five.load(...)</span><br/><br/><span class="hl-4">// five.plugins.tapRecord 可以获取到插件实例 "tapRecord" 是插件初始化声明确定的</span><br/><span class="hl-4">// 通过 FivePluginInstance 在约束类型,否则均为 any</span><br/><span class="hl-7">const</span><span class="hl-0"> </span><span class="hl-6">tapRecord</span><span class="hl-0">: </span><span class="hl-8">FivePluginInstance</span><span class="hl-0"><</span><span class="hl-7">typeof</span><span class="hl-0"> </span><span class="hl-2">TapRecordPlugin</span><span class="hl-0">> = </span><span class="hl-2">five</span><span class="hl-0">.</span><span class="hl-2">plugins</span><span class="hl-0">.</span><span class="hl-2">tapRecord</span><span class="hl-0">;</span><br/><br/><span class="hl-4">// 现在就可以获取到历时列表了</span><br/><span class="hl-7">const</span><span class="hl-0"> </span><span class="hl-6">getHistory</span><span class="hl-0">: </span><span class="hl-8">string</span><span class="hl-0">[] = </span><span class="hl-2">tapRecord</span><span class="hl-0">.</span><span class="hl-5">getHistory</span><span class="hl-0">();</span><br/><br/><span class="hl-2">console</span><span class="hl-0">.</span><span class="hl-5">log</span><span class="hl-0">(</span><span class="hl-2">getHistory</span><span class="hl-0">);</span>
|
|
402
|
+
</code></pre>
|
|
403
|
+
|
|
404
|
+
<a href="#其他注意的问题" id="其他注意的问题" style="color: inherit; text-decoration: none;">
|
|
405
|
+
<h2>其他注意的问题</h2>
|
|
406
|
+
</a>
|
|
407
|
+
<ol>
|
|
408
|
+
<li>插件初始化的时机在 <code>new Five</code> 时,Five 并没有调用 <code>load</code> 来创建VR,请通过监听事件的方式,在合适的时机获取模型。</li>
|
|
409
|
+
<li>如果插件内容需要有 five 销毁同时销毁的内容,请监听 <code>five.on("dispose")</code> 事件来处理。</li>
|
|
410
|
+
<li>不要出现初始化插件同名的现象,会出现插件间冲突。</li>
|
|
411
|
+
</ol>
|
|
412
|
+
</div></div><h4 class="tsd-type-parameters-title">Type parameters</h4><ul class="tsd-type-parameters"><li><h4>Parameters = <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"><div class="lead">
|
|
413
|
+
<p>插件参数, 没有参数则为 void</p>
|
|
414
|
+
</div></div></li><li><h4>Returns = <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"><div class="lead">
|
|
415
|
+
<p>如果有参数则插件暴露的 api,没有参数则不传</p>
|
|
416
|
+
</div></div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-type-alias tsd-parent-kind-module tsd-has-type-parameter"><a id="FivePluginInit" class="tsd-anchor"></a><h3>Five<wbr/>Plugin<wbr/>Init</h3><div class="tsd-signature tsd-kind-icon">Five<wbr/>Plugin<wbr/>Init<span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Parameters</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">1</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol"> extends </span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> ? </span><span class="tsd-signature-symbol">[</span>Plugin<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">, </span>instanceName<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol"> : </span><span class="tsd-signature-symbol">[</span>Plugin<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">, </span>instanceName<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">, </span>parameters<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Parameters</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">1</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">]</span></div><aside class="tsd-sources"><ul><li>Defined in lib/five/types/plugin.ts:24</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
417
|
+
<p>获取插件在Five中的初始化结构</p>
|
|
418
|
+
</div></div><h4 class="tsd-type-parameters-title">Type parameters</h4><ul class="tsd-type-parameters"><li><h4>T<span class="tsd-signature-symbol">: </span><a href="five.html#FivePlugin" class="tsd-signature-type" data-tsd-kind="Type alias">FivePlugin</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span></h4><div class="tsd-comment tsd-typography"><div class="lead">
|
|
419
|
+
<p>Five 插件</p>
|
|
420
|
+
</div></div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-type-alias tsd-parent-kind-module tsd-has-type-parameter"><a id="FivePluginInstance" class="tsd-anchor"></a><h3>Five<wbr/>Plugin<wbr/>Instance</h3><div class="tsd-signature tsd-kind-icon">Five<wbr/>Plugin<wbr/>Instance<span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ReturnType</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">></span></div><aside class="tsd-sources"><ul><li>Defined in lib/five/types/plugin.ts:18</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
421
|
+
<p>获取插件暴露的 api</p>
|
|
422
|
+
</div></div><h4 class="tsd-type-parameters-title">Type parameters</h4><ul class="tsd-type-parameters"><li><h4>T<span class="tsd-signature-symbol">: </span><a href="five.html#FivePlugin" class="tsd-signature-type" data-tsd-kind="Type alias">FivePlugin</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span></h4><div class="tsd-comment tsd-typography"><div class="lead">
|
|
423
|
+
<p>Five 插件</p>
|
|
424
|
+
</div></div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-type-alias tsd-parent-kind-module"><a id="GestureTypes" class="tsd-anchor"></a><h3>Gesture<wbr/>Types</h3><div class="tsd-signature tsd-kind-icon">Gesture<wbr/>Types<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"pan"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"tap"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"pinch"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"press"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"mouseWheel"</span></div><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/events.ts:9</li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-type-alias tsd-parent-kind-module"><a id="LooseWork" class="tsd-anchor"></a><h3>Loose<wbr/>Work</h3><div class="tsd-signature tsd-kind-icon">Loose<wbr/>Work<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>base_url<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>bvh<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">; </span>initial<span class="tsd-signature-symbol">?: </span><a href="five.html#LooseWorkInitial" class="tsd-signature-type" data-tsd-kind="Type alias">LooseWorkInitial</a><span class="tsd-signature-symbol">; </span>model<span class="tsd-signature-symbol">?: </span><a href="five.html#LooseWorkModel" class="tsd-signature-type" data-tsd-kind="Type alias">LooseWorkModel</a><span class="tsd-signature-symbol">; </span>modelAsync<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">; </span>observers<span class="tsd-signature-symbol">: </span><a href="five.html#LooseWorkObserver" class="tsd-signature-type" data-tsd-kind="Type alias">LooseWorkObserver</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">; </span>panorama<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span>base_url<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>info<span class="tsd-signature-symbol">?: </span><a href="five.html#LooseWorkPanorama" class="tsd-signature-type" data-tsd-kind="Type alias">LooseWorkPanorama</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">; </span>list<span class="tsd-signature-symbol">?: </span><a href="five.html#LooseWorkPanorama" class="tsd-signature-type" data-tsd-kind="Type alias">LooseWorkPanorama</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">; </span>pano_high_cube_base_url<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol"> }</span></div><aside class="tsd-sources"><ul><li>Defined in lib/five/work/looseWorkType.ts:51</li></ul></aside><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> base_<wbr/>url<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span></h5></li><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> bvh<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span></h5></li><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> initial<span class="tsd-signature-symbol">?: </span><a href="five.html#LooseWorkInitial" class="tsd-signature-type" data-tsd-kind="Type alias">LooseWorkInitial</a></h5></li><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> model<span class="tsd-signature-symbol">?: </span><a href="five.html#LooseWorkModel" class="tsd-signature-type" data-tsd-kind="Type alias">LooseWorkModel</a></h5></li><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> model<wbr/>Async<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span></h5></li><li class="tsd-parameter"><h5>observers<span class="tsd-signature-symbol">: </span><a href="five.html#LooseWorkObserver" class="tsd-signature-type" data-tsd-kind="Type alias">LooseWorkObserver</a><span class="tsd-signature-symbol">[]</span></h5></li><li class="tsd-parameter"><h5>panorama<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span>base_url<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>info<span class="tsd-signature-symbol">?: </span><a href="five.html#LooseWorkPanorama" class="tsd-signature-type" data-tsd-kind="Type alias">LooseWorkPanorama</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">; </span>list<span class="tsd-signature-symbol">?: </span><a href="five.html#LooseWorkPanorama" class="tsd-signature-type" data-tsd-kind="Type alias">LooseWorkPanorama</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">; </span>pano_high_cube_base_url<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span></h5><ul class="tsd-parameters"><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> base_<wbr/>url<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span></h5></li><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> info<span class="tsd-signature-symbol">?: </span><a href="five.html#LooseWorkPanorama" class="tsd-signature-type" data-tsd-kind="Type alias">LooseWorkPanorama</a><span class="tsd-signature-symbol">[]</span></h5></li><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> list<span class="tsd-signature-symbol">?: </span><a href="five.html#LooseWorkPanorama" class="tsd-signature-type" data-tsd-kind="Type alias">LooseWorkPanorama</a><span class="tsd-signature-symbol">[]</span></h5></li><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> pano_<wbr/>high_<wbr/>cube_<wbr/>base_<wbr/>url<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span></h5></li></ul></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias tsd-parent-kind-module"><a id="LooseWorkInitial" class="tsd-anchor"></a><h3>Loose<wbr/>Work<wbr/>Initial</h3><div class="tsd-signature tsd-kind-icon">Loose<wbr/>Work<wbr/>Initial<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>heading<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>latitude<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>longitude<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>pano<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>pano_index<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> }</span></div><aside class="tsd-sources"><ul><li>Defined in lib/five/work/looseWorkType.ts:27</li></ul></aside><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> heading<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> latitude<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> longitude<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> pano<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> pano_<wbr/>index<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span></h5></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias tsd-parent-kind-module"><a id="LooseWorkModel" class="tsd-anchor"></a><h3>Loose<wbr/>Work<wbr/>Model</h3><div class="tsd-signature tsd-kind-icon">Loose<wbr/>Work<wbr/>Model<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>file_url<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>material_base_url<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>material_textures<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> }</span></div><aside class="tsd-sources"><ul><li>Defined in lib/five/work/looseWorkType.ts:34</li></ul></aside><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5>file_<wbr/>url<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5></li><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> material_<wbr/>base_<wbr/>url<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span></h5></li><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> material_<wbr/>textures<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></h5></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias tsd-parent-kind-module"><a id="LooseWorkObserver" class="tsd-anchor"></a><h3>Loose<wbr/>Work<wbr/>Observer</h3><div class="tsd-signature tsd-kind-icon">Loose<wbr/>Work<wbr/>Observer<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>accessible_nodes<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">; </span>active<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">; </span>floor<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>floor_index<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>index<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>position<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">; </span>quaternion<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span>w<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>z<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">; </span>standing_position<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">; </span>visible_nodes<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> }</span></div><aside class="tsd-sources"><ul><li>Defined in lib/five/work/looseWorkType.ts:39</li></ul></aside><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5>accessible_<wbr/>nodes<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span></h5></li><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> active<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span></h5></li><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> floor<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> floor_<wbr/>index<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> index<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>position<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span></h5></li><li class="tsd-parameter"><h5>quaternion<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span>w<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>z<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> }</span></h5><ul class="tsd-parameters"><li class="tsd-parameter"><h5>w<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>x<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>y<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>z<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li></ul></li><li class="tsd-parameter"><h5>standing_<wbr/>position<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span></h5></li><li class="tsd-parameter"><h5>visible_<wbr/>nodes<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span></h5></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias tsd-parent-kind-module"><a id="LooseWorkPanorama" class="tsd-anchor"></a><h3>Loose<wbr/>Work<wbr/>Panorama</h3><div class="tsd-signature tsd-kind-icon">Loose<wbr/>Work<wbr/>Panorama<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>active<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">; </span>back<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>down<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>front<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>index<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>left<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>loadable<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">; </span>luminance<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">{ </span>back<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>down<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>front<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>left<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>right<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>up<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">; </span>right<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>tiles<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">; </span>up<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>video<span class="tsd-signature-symbol">?: </span><a href="five.html#LooseWorkVideo" class="tsd-signature-type" data-tsd-kind="Type alias">LooseWorkVideo</a><span class="tsd-signature-symbol"> }</span></div><aside class="tsd-sources"><ul><li>Defined in lib/five/work/looseWorkType.ts:6</li></ul></aside><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> active<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span></h5></li><li class="tsd-parameter"><h5>back<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5></li><li class="tsd-parameter"><h5>down<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5></li><li class="tsd-parameter"><h5>front<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5></li><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> index<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>left<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5></li><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> loadable<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span></h5></li><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> luminance<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">{ </span>back<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>down<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>front<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>left<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>right<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>up<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span></h5><ul class="tsd-parameters"><li class="tsd-parameter"><h5>back<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5></li><li class="tsd-parameter"><h5>down<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5></li><li class="tsd-parameter"><h5>front<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5></li><li class="tsd-parameter"><h5>left<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5></li><li class="tsd-parameter"><h5>right<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5></li><li class="tsd-parameter"><h5>up<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5></li></ul></li><li class="tsd-parameter"><h5>right<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5></li><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> tiles<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span></h5></li><li class="tsd-parameter"><h5>up<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5></li><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> video<span class="tsd-signature-symbol">?: </span><a href="five.html#LooseWorkVideo" class="tsd-signature-type" data-tsd-kind="Type alias">LooseWorkVideo</a></h5></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias tsd-parent-kind-module"><a id="LooseWorkVideo" class="tsd-anchor"></a><h3>Loose<wbr/>Work<wbr/>Video</h3><div class="tsd-signature tsd-kind-icon">Loose<wbr/>Work<wbr/>Video<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>matrix<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">; </span>size<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">; </span>source<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span></div><aside class="tsd-sources"><ul><li>Defined in lib/five/work/looseWorkType.ts:1</li></ul></aside><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5>matrix<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span></h5></li><li class="tsd-parameter"><h5>size<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span></h5></li><li class="tsd-parameter"><h5>source<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias tsd-parent-kind-module tsd-has-type-parameter"><a id="Mirror" class="tsd-anchor"></a><h3>Mirror</h3><div class="tsd-signature tsd-kind-icon">Mirror<span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Record</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">></span></div><aside class="tsd-sources"><ul><li>Defined in lib/five/application/five.ts:66</li></ul></aside><h4 class="tsd-type-parameters-title">Type parameters</h4><ul class="tsd-type-parameters"><li><h4>T<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-type-alias tsd-parent-kind-module"><a id="Mode" class="tsd-anchor"></a><h3>Mode</h3><div class="tsd-signature tsd-kind-icon">Mode<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"Floorplan"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"Topview"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"Panorama"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"VRPanorama"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"Model"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"DepthPanorama"</span></div><aside class="tsd-sources"><ul><li>Defined in lib/five/types/mode.ts:10</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
425
|
+
<p>Five 的显示模式,可以通过 <code>five.changeMode</code> <code>five.setState</code> 来切换</p>
|
|
426
|
+
<ul>
|
|
427
|
+
<li><strong>Panorama</strong>: 全景图游走模式</li>
|
|
428
|
+
<li><strong>Model</strong>: 模型游走模式</li>
|
|
429
|
+
<li><strong>Floorplan</strong>: 模型查看模式</li>
|
|
430
|
+
<li><strong>Topview</strong>: 户型图模式</li>
|
|
431
|
+
<li><strong>DepthPanorama</strong>: 深度图游走模式</li>
|
|
432
|
+
<li><strong>VRPanorama</strong>: VR眼镜模式</li>
|
|
433
|
+
</ul>
|
|
434
|
+
</div></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias tsd-parent-kind-module"><a id="ModelEventType" class="tsd-anchor"></a><h3>Model<wbr/>Event<wbr/>Type</h3><div class="tsd-signature tsd-kind-icon">Model<wbr/>Event<wbr/>Type<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>bvhLoaded<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>geometryLoaded<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>loaded<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>materialLoaded<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">; </span>shownFloorChange<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol"> }</span></div><aside class="tsd-sources"><ul><li>Defined in lib/five/loaders/model/index.ts:71</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
435
|
+
<p>模型事件列表</p>
|
|
436
|
+
</div><dl class="tsd-comment-tags"><dt>description</dt><dd><p>具体事件列表 请查看 <a href="../interfaces/five.ModelEventCallback.html">ModelEventCallback</a></p>
|
|
437
|
+
</dd></dl></div><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5>bvh<wbr/>Loaded<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">bvh<wbr/>Loaded<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/loaders/model/index.ts:78</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
438
|
+
<p>模型 bvh树 计算完成</p>
|
|
439
|
+
</div><dl class="tsd-comment-tags"><dt>description</dt><dd><p>bvh 树用于高效的碰撞检测,可以在 <code>model.bvh</code> 属性来设置是否开启。默认开启。
|
|
440
|
+
bvh 树计算需要一定事件,可能会暂时影响一些性能。计算完毕后,会对碰撞检测带来质的提升。</p>
|
|
441
|
+
</dd></dl></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li><li class="tsd-parameter"><h5>error<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">error<span class="tsd-signature-symbol">(</span>error<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Error</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/loaders/model/index.ts:99</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
442
|
+
<p>内部错误</p>
|
|
443
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>error: <span class="tsd-signature-type">Error</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
444
|
+
<p>错误对象</p>
|
|
445
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li><li class="tsd-parameter"><h5>geometry<wbr/>Loaded<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">geometry<wbr/>Loaded<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/loaders/model/index.ts:81</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
446
|
+
<p>模型三角面片结构加载完成</p>
|
|
447
|
+
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li><li class="tsd-parameter"><h5>loaded<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">loaded<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/loaders/model/index.ts:87</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
448
|
+
<p>模型加载完成</p>
|
|
449
|
+
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li><li class="tsd-parameter"><h5>material<wbr/>Loaded<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">material<wbr/>Loaded<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/loaders/model/index.ts:84</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
450
|
+
<p>模型材质结构加载完成</p>
|
|
451
|
+
</div></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li><li class="tsd-parameter"><h5>shown<wbr/>Floor<wbr/>Change<span class="tsd-signature-symbol">:</span>function</h5><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-type-literal"><li class="tsd-signature tsd-kind-icon">shown<wbr/>Floor<wbr/>Change<span class="tsd-signature-symbol">(</span>shownFloor<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span>, totalFloorLength<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/loaders/model/index.ts:93</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
452
|
+
<p>显示楼层改变</p>
|
|
453
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>shownFloor: <span class="tsd-signature-type">number</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
454
|
+
<p>显示的楼层</p>
|
|
455
|
+
</div></div></li><li><h5>totalFloorLength: <span class="tsd-signature-type">number</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias tsd-parent-kind-module"><a id="NetWorkMeta" class="tsd-anchor"></a><h3>Net<wbr/>Work<wbr/>Meta</h3><div class="tsd-signature tsd-kind-icon">Net<wbr/>Work<wbr/>Meta<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>costs<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>headers<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{}</span><span class="tsd-signature-symbol">; </span>requestTime<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>responseTime<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>size<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span>source<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span></div><aside class="tsd-sources"><ul><li>Defined in lib/five/utils/ajax.ts:22</li></ul></aside><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5>costs<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>headers<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{}</span></h5><ul class="tsd-parameters"><li class="tsd-parameter-index-signature"><h5><span class="tsd-signature-symbol">[</span>name: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]: </span><span class="tsd-signature-type">string</span></h5></li></ul></li><li class="tsd-parameter"><h5>request<wbr/>Time<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>response<wbr/>Time<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> size<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span></h5></li><li class="tsd-parameter"><h5>source<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias tsd-parent-kind-module"><a id="NetworkState" class="tsd-anchor"></a><h3>Network<wbr/>State</h3><div class="tsd-signature tsd-kind-icon">Network<wbr/>State<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"ok"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"preload"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"error"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"timeout"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"forbidden"</span></div><aside class="tsd-sources"><ul><li>Defined in lib/five/utils/ajax.ts:34</li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-type-alias tsd-parent-kind-module"><a id="NetworkType" class="tsd-anchor"></a><h3>Network<wbr/>Type</h3><div class="tsd-signature tsd-kind-icon">Network<wbr/>Type<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"XMLHttpRequest"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"Script"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"Image"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"Link"</span></div><aside class="tsd-sources"><ul><li>Defined in lib/five/utils/ajax.ts:33</li></ul></aside></section><section class="tsd-panel tsd-member tsd-kind-type-alias tsd-parent-kind-module"><a id="ParseWorkOptions" class="tsd-anchor"></a><h3>Parse<wbr/>Work<wbr/>Options</h3><div class="tsd-signature tsd-kind-icon">Parse<wbr/>Work<wbr/>Options<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span>baseURL<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>jsonp<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">; </span>modelBvh<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">; </span>shortPath<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> }</span></div><aside class="tsd-sources"><ul><li>Defined in lib/five/work/work.ts:17</li></ul></aside><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> baseURL<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
456
|
+
<p>重写 work 中的资源前缀</p>
|
|
457
|
+
</div></div></li><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> jsonp<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
458
|
+
<p>work 中的资源使用 jsonp 方式发布</p>
|
|
459
|
+
</div></div></li><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> model<wbr/>Bvh<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
460
|
+
<p>work 中模型是否计算bvh碰撞数,默认计算 true</p>
|
|
461
|
+
</div></div></li><li class="tsd-parameter"><h5><span class="tsd-flag ts-flagOptional">Optional</span> short<wbr/>Path<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
462
|
+
<p>work 中的资源地址使用短地址</p>
|
|
463
|
+
</div></div></li></ul></div></section><section class="tsd-panel tsd-member tsd-kind-type-alias tsd-parent-kind-module"><a id="SubscribeEventMap" class="tsd-anchor"></a><h3>Subscribe<wbr/>Event<wbr/>Map</h3><div class="tsd-signature tsd-kind-icon">Subscribe<wbr/>Event<wbr/>Map<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{}</span></div><aside class="tsd-sources"><ul><li>Defined in lib/five/utils/subscribe.ts:6</li></ul></aside><div class="tsd-type-declaration"><h4>Type declaration</h4><ul class="tsd-parameters"><li class="tsd-parameter-index-signature"><h5><span class="tsd-signature-symbol">[</span>name: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">...</span>args<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">boolean</span></h5><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures tsd-kind-type-literal"><li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">...</span>args<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">boolean</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5><span class="tsd-flag ts-flagRest">Rest</span> <span class="tsd-signature-symbol">...</span>args: <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">[]</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">boolean</span></h4></li></ul></li></ul></li></ul></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Variables</h2><section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-module"><a id="PROXY_CONTROLLER_EVENT_NAMES" class="tsd-anchor"></a><h3>PROXY_<wbr/>CONTROLLER_<wbr/>EVENT_<wbr/>NAMES</h3><div class="tsd-signature tsd-kind-icon">PROXY_<wbr/>CONTROLLER_<wbr/>EVENT_<wbr/>NAMES<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">readonly </span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">"cameraDirectionUpdate"</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"cameraUpdate"</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"cameraPositionUpdate"</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"panoSelected"</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"moveToPano"</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"moveToPanoCanceled"</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"panoWillArrive"</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"movingToPano"</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"panoArrived"</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"panoWillLoad"</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"panoLoaded"</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"panoLoadError"</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"initAnimationEnded"</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"initAnimationWillStart"</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"wantsGesture"</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"gesture"</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"wantsTapGesture"</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"tapGesture"</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"wantsPressGesture"</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"pressGesture"</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"wantsPanGesture"</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"wantsInteriaPan"</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"panGesture"</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"interiaPan"</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"wantsPinchGesture"</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"pinchGesture"</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"wantsMouseWheel"</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"mouseWheel"</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"wantsShowIntersectionOnModel"</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"intersectionOnModelUpdate"</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"intersectionHidden"</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"textureStartLoad"</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"textureLoading"</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"textureAbort"</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"textureLoaded"</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"textureError"</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in lib/five/application/events.ts:10</li></ul></aside></section></section><section class="tsd-panel-group tsd-member-group "><h2>Functions</h2><section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-module"><a id="defaultImageURLTransform" class="tsd-anchor"></a><h3>default<wbr/>ImageURLTransform</h3><ul class="tsd-signatures tsd-kind-function tsd-parent-kind-module"><li class="tsd-signature tsd-kind-icon">default<wbr/>ImageURLTransform<span class="tsd-signature-symbol">(</span>url<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, options<span class="tsd-signature-symbol">: </span><a href="../interfaces/five.ImageURLOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">ImageURLOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/utils/imageURL.ts:125</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
464
|
+
<p>URL 地址的转换</p>
|
|
465
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>url: <span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
466
|
+
<p>url 原地址</p>
|
|
467
|
+
</div></div></li><li><h5>options: <a href="../interfaces/five.ImageURLOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">ImageURLOptions</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
468
|
+
<p>url 转换参数</p>
|
|
469
|
+
</div></div></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><div><p>url 转换结果</p>
|
|
470
|
+
</div></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-module"><a id="getViewportScale" class="tsd-anchor"></a><h3>get<wbr/>Viewport<wbr/>Scale</h3><ul class="tsd-signatures tsd-kind-function tsd-parent-kind-module"><li class="tsd-signature tsd-kind-icon">get<wbr/>Viewport<wbr/>Scale<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/application/getViewportScale.ts:15</li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-module"><a id="parseWork" class="tsd-anchor"></a><h3>parse<wbr/>Work</h3><ul class="tsd-signatures tsd-kind-function tsd-parent-kind-module"><li class="tsd-signature tsd-kind-icon">parse<wbr/>Work<span class="tsd-signature-symbol">(</span>obj<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, options<span class="tsd-signature-symbol">?: </span><a href="five.html#ParseWorkOptions" class="tsd-signature-type" data-tsd-kind="Type alias">ParseWorkOptions</a>, urlTransform<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">(</span>origin<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, absolute<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, relative<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"panorama"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"texture"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"model"</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../classes/five.Work.html" class="tsd-signature-type" data-tsd-kind="Class">Work</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/work/work.ts:670</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
471
|
+
<p>解析 Work 数据</p>
|
|
472
|
+
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>obj: <span class="tsd-signature-type">any</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
473
|
+
<p>work 数据,从如数开发者平台获取</p>
|
|
474
|
+
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> options: <a href="five.html#ParseWorkOptions" class="tsd-signature-type" data-tsd-kind="Type alias">ParseWorkOptions</a></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
475
|
+
<p>配置参数, 可以在此二次设置 baseURL 等参数</p>
|
|
476
|
+
</div></div></li><li><h5><span class="tsd-flag ts-flagOptional">Optional</span> urlTransform: <span class="tsd-signature-symbol">(</span>origin<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, absolute<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, relative<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"panorama"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"texture"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"model"</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span></h5><div class="tsd-comment tsd-typography"><div class="lead">
|
|
477
|
+
<p>配置参数, URL 解析规则</p>
|
|
478
|
+
</div></div><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures tsd-kind-type-literal"><li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span>origin<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, absolute<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, relative<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">"panorama"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"texture"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"model"</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>origin: <span class="tsd-signature-type">string</span></h5></li><li><h5>absolute: <span class="tsd-signature-type">string</span></h5></li><li><h5>relative: <span class="tsd-signature-type">string</span></h5></li><li><h5>type: <span class="tsd-signature-type">"panorama"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"texture"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"model"</span></h5></li></ul><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></li></ul></li></ul><h4 class="tsd-returns-title">Returns <a href="../classes/five.Work.html" class="tsd-signature-type" data-tsd-kind="Class">Work</a></h4><div><ul>
|
|
479
|
+
<li>签署过的 Work 数据结构</li>
|
|
480
|
+
</ul>
|
|
481
|
+
</div></li></ul></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class=""><a href="../modules.html">Modules</a></li><li class="current tsd-kind-module"><a href="five.html">five</a><ul><li class=" tsd-kind-namespace tsd-parent-kind-module"><a href="five.SubscribeMixinType.html">Subscribe<wbr/>Mixin<wbr/>Type</a></li></ul></li><li class=" tsd-kind-module"><a href="gltf_loader.html">gltf-<wbr/>loader</a></li><li class=" tsd-kind-module"><a href="line.html">line</a></li><li class=" tsd-kind-module"><a href="react.html">react</a></li><li class=" tsd-kind-module"><a href="server.html">server</a></li><li class=" tsd-kind-module"><a href="sticker.html">sticker</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/five.AnimationFrameLoop.html" class="tsd-kind-icon">Animation<wbr/>Frame<wbr/>Loop</a></li><li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/five.BVH.html" class="tsd-kind-icon">BVH</a></li><li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/five.BVHIntersect.html" class="tsd-kind-icon">BVHIntersect</a></li><li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/five.BVHNode.html" class="tsd-kind-icon">BVHNode</a></li><li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/five.BVHVector3.html" class="tsd-kind-icon">BVHVector3</a></li><li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/five.Camera.html" class="tsd-kind-icon">Camera</a></li><li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/five.Five.html" class="tsd-kind-icon">Five</a></li><li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/five.InternalWebGLRenderer.html" class="tsd-kind-icon">Internal<wbr/>WebGLRenderer</a></li><li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/five.IntersectMesh.html" class="tsd-kind-icon">Intersect<wbr/>Mesh</a></li><li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/five.LegacyPanoCircleMesh.html" class="tsd-kind-icon">Legacy<wbr/>Pano<wbr/>Circle<wbr/>Mesh</a></li><li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/five.Model.html" class="tsd-kind-icon">Model</a></li><li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/five.NetworkSubscribe.html" class="tsd-kind-icon">Network<wbr/>Subscribe</a></li><li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/five.PBMContainer.html" class="tsd-kind-icon">PBMContainer</a></li><li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/five.PBMGroup.html" class="tsd-kind-icon">PBMGroup</a></li><li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/five.PBMMaterial.html" class="tsd-kind-icon">PBMMaterial</a></li><li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/five.PBMMesh.html" class="tsd-kind-icon">PBMMesh</a></li><li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/five.PanoCircleMesh.html" class="tsd-kind-icon">Pano<wbr/>Circle<wbr/>Mesh</a></li><li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/five.Scene.html" class="tsd-kind-icon">Scene</a></li><li class="tsd-kind-class tsd-parent-kind-module tsd-has-type-parameter"><a href="../classes/five.Subscribe.html" class="tsd-kind-icon">Subscribe</a></li><li class="tsd-kind-class tsd-parent-kind-module"><a href="../classes/five.Work.html" class="tsd-kind-icon">Work</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.AddableObject.html" class="tsd-kind-icon">Addable<wbr/>Object</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.AnimationFrame.html" class="tsd-kind-icon">Animation<wbr/>Frame</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.CameraPose.html" class="tsd-kind-icon">Camera<wbr/>Pose</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.DepthPanoramaControllerCustomInitArgs.html" class="tsd-kind-icon">Depth<wbr/>Panorama<wbr/>Controller<wbr/>Custom<wbr/>Init<wbr/>Args</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.EventCallback.html" class="tsd-kind-icon">Event<wbr/>Callback</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.FiveInitArgs.html" class="tsd-kind-icon">Five<wbr/>Init<wbr/>Args</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.FloorplanControllerCustomInitArgs.html" class="tsd-kind-icon">Floorplan<wbr/>Controller<wbr/>Custom<wbr/>Init<wbr/>Args</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.ImageOptions.html" class="tsd-kind-icon">Image<wbr/>Options</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.ImageURLOptions.html" class="tsd-kind-icon">ImageURLOptions</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.IntersectMeshInterface.html" class="tsd-kind-icon">Intersect<wbr/>Mesh<wbr/>Interface</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.Intersection.html" class="tsd-kind-icon">Intersection</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.ModelControllerCustomInitArgs.html" class="tsd-kind-icon">Model<wbr/>Controller<wbr/>Custom<wbr/>Init<wbr/>Args</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.ModelEventCallback.html" class="tsd-kind-icon">Model<wbr/>Event<wbr/>Callback</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.MovePanoOptions.html" class="tsd-kind-icon">Move<wbr/>Pano<wbr/>Options</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.PBMPanoPicture.html" class="tsd-kind-icon">PBMPano<wbr/>Picture</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.PBMParameters.html" class="tsd-kind-icon">PBMParameters</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.PanoCircleMeshInterface.html" class="tsd-kind-icon">Pano<wbr/>Circle<wbr/>Mesh<wbr/>Interface</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.PanoramaControllerCustomInitArgs.html" class="tsd-kind-icon">Panorama<wbr/>Controller<wbr/>Custom<wbr/>Init<wbr/>Args</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.PanoramaLikeControllerCustomInitArgs.html" class="tsd-kind-icon">Panorama<wbr/>Like<wbr/>Controller<wbr/>Custom<wbr/>Init<wbr/>Args</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.Pose.html" class="tsd-kind-icon">Pose</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.Scissor.html" class="tsd-kind-icon">Scissor</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.State.html" class="tsd-kind-icon">State</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.TextureOptions.html" class="tsd-kind-icon">Texture<wbr/>Options</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.TopviewControllerCustomInitArgs.html" class="tsd-kind-icon">Topview<wbr/>Controller<wbr/>Custom<wbr/>Init<wbr/>Args</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.VRPanoramaControllerCustomInitArgs.html" class="tsd-kind-icon">VRPanorama<wbr/>Controller<wbr/>Custom<wbr/>Init<wbr/>Args</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.WorkCubeImage.html" class="tsd-kind-icon">Work<wbr/>Cube<wbr/>Image</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.WorkImage.html" class="tsd-kind-icon">Work<wbr/>Image</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.WorkInitial.html" class="tsd-kind-icon">Work<wbr/>Initial</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.WorkModel.html" class="tsd-kind-icon">Work<wbr/>Model</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.WorkObserver.html" class="tsd-kind-icon">Work<wbr/>Observer</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.WorkTile.html" class="tsd-kind-icon">Work<wbr/>Tile</a></li><li class="tsd-kind-interface tsd-parent-kind-module"><a href="../interfaces/five.WorkVideo.html" class="tsd-kind-icon">Work<wbr/>Video</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="five.html#ControllerCustomInitTypes" class="tsd-kind-icon">Controller<wbr/>Custom<wbr/>Init<wbr/>Types</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="five.html#ControllerEventTypes" class="tsd-kind-icon">Controller<wbr/>Event<wbr/>Types</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="five.html#EventTypes" class="tsd-kind-icon">Event<wbr/>Types</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module tsd-has-type-parameter"><a href="five.html#FivePlugin" class="tsd-kind-icon">Five<wbr/>Plugin</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module tsd-has-type-parameter"><a href="five.html#FivePluginInit" class="tsd-kind-icon">Five<wbr/>Plugin<wbr/>Init</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module tsd-has-type-parameter"><a href="five.html#FivePluginInstance" class="tsd-kind-icon">Five<wbr/>Plugin<wbr/>Instance</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="five.html#GestureTypes" class="tsd-kind-icon">Gesture<wbr/>Types</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="five.html#LooseWork" class="tsd-kind-icon">Loose<wbr/>Work</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="five.html#LooseWorkInitial" class="tsd-kind-icon">Loose<wbr/>Work<wbr/>Initial</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="five.html#LooseWorkModel" class="tsd-kind-icon">Loose<wbr/>Work<wbr/>Model</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="five.html#LooseWorkObserver" class="tsd-kind-icon">Loose<wbr/>Work<wbr/>Observer</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="five.html#LooseWorkPanorama" class="tsd-kind-icon">Loose<wbr/>Work<wbr/>Panorama</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="five.html#LooseWorkVideo" class="tsd-kind-icon">Loose<wbr/>Work<wbr/>Video</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module tsd-has-type-parameter"><a href="five.html#Mirror" class="tsd-kind-icon">Mirror</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="five.html#Mode" class="tsd-kind-icon">Mode</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="five.html#ModelEventType" class="tsd-kind-icon">Model<wbr/>Event<wbr/>Type</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="five.html#NetWorkMeta" class="tsd-kind-icon">Net<wbr/>Work<wbr/>Meta</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="five.html#NetworkState" class="tsd-kind-icon">Network<wbr/>State</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="five.html#NetworkType" class="tsd-kind-icon">Network<wbr/>Type</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="five.html#ParseWorkOptions" class="tsd-kind-icon">Parse<wbr/>Work<wbr/>Options</a></li><li class="tsd-kind-type-alias tsd-parent-kind-module"><a href="five.html#SubscribeEventMap" class="tsd-kind-icon">Subscribe<wbr/>Event<wbr/>Map</a></li><li class="tsd-kind-variable tsd-parent-kind-module"><a href="five.html#PROXY_CONTROLLER_EVENT_NAMES" class="tsd-kind-icon">PROXY_<wbr/>CONTROLLER_<wbr/>EVENT_<wbr/>NAMES</a></li><li class="tsd-kind-function tsd-parent-kind-module"><a href="five.html#defaultImageURLTransform" class="tsd-kind-icon">default<wbr/>ImageURLTransform</a></li><li class="tsd-kind-function tsd-parent-kind-module"><a href="five.html#getViewportScale" class="tsd-kind-icon">get<wbr/>Viewport<wbr/>Scale</a></li><li class="tsd-kind-function tsd-parent-kind-module"><a href="five.html#parseWork" class="tsd-kind-icon">parse<wbr/>Work</a></li></ul></nav></div></div></div><footer class=""><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-namespace"><span class="tsd-kind-icon">Namespace</span></li><li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li><li class="tsd-kind-function"><span class="tsd-kind-icon">Function</span></li><li class="tsd-kind-function tsd-has-type-parameter"><span class="tsd-kind-icon">Function with type parameter</span></li><li class="tsd-kind-type-alias"><span class="tsd-kind-icon">Type alias</span></li><li class="tsd-kind-type-alias tsd-has-type-parameter"><span class="tsd-kind-icon">Type alias with type parameter</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li><li class="tsd-kind-interface tsd-has-type-parameter"><span class="tsd-kind-icon">Interface with type parameter</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li><li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="overlay"></div><script src="../assets/main.js"></script></body></html>
|