@realsee/five 6.0.0-alpha.9 → 6.0.0-alpha.91
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 +1 -1
- package/TERMS.txt +0 -2
- package/docs/assets/highlight.css +20 -20
- package/docs/assets/main.js +59 -52
- package/docs/assets/navigation.js +1 -0
- package/docs/assets/search.js +1 -1
- package/docs/assets/style.css +805 -825
- package/docs/classes/five.AnimationFrameLoop.html +16 -15
- package/docs/classes/five.BoxBoundingVolume.html +19 -1
- package/docs/classes/five.Camera.html +38 -11
- package/docs/classes/five.CullingVolume.html +13 -1
- package/docs/classes/five.Fetcher.html +5 -0
- package/docs/classes/five.Five.html +237 -290
- package/docs/classes/five.InternalWebGLRenderer.html +2 -1
- package/docs/classes/five.IntersectMesh.html +4 -1
- package/docs/classes/five.Model.html +70 -55
- package/docs/classes/five.ModelViewLayer.html +13 -0
- package/docs/classes/five.NetworkAbortError.html +2 -0
- package/docs/classes/five.NetworkFirbiddenError.html +2 -0
- package/docs/classes/five.NetworkResponseError.html +3 -0
- package/docs/classes/five.NetworkSubscribe.html +42 -56
- package/docs/classes/five.NetworkTimeoutError.html +2 -0
- package/docs/classes/five.PBMContainer.html +12 -13
- package/docs/classes/five.PBMGroup.html +3 -3
- package/docs/classes/five.PBMMesh.html +4 -5
- package/docs/classes/five.PBMMeshMaterial.html +50 -45
- package/docs/classes/five.PanoCircleMesh.html +30 -7
- package/docs/classes/five.PanoCircleMeshCustom.html +30 -7
- package/docs/classes/five.PanoCircleMeshSolid.html +30 -7
- package/docs/classes/five.RegionBoundingVolume.html +22 -1
- package/docs/classes/five.RequestScheduler.html +13 -12
- package/docs/classes/five.Scene.html +5 -3
- package/docs/classes/five.SphereBoundingVolume.html +18 -1
- package/docs/classes/five.Subscribe.html +43 -62
- package/docs/classes/five.TextureLoader.html +5 -1
- package/docs/classes/five.Tile.html +30 -1
- package/docs/classes/five.Tile3DModel.html +28 -1
- package/docs/classes/five.TileCubeTextureTarget.html +9 -1
- package/docs/classes/five.TileNode.html +5 -1
- package/docs/classes/five.Tileset.html +31 -5
- package/docs/classes/five.TilesetCache.html +8 -1
- package/docs/classes/five.TilesetTraverser.html +19 -1
- package/docs/classes/five.Work.html +33 -28
- package/docs/classes/five.XRButton.html +3 -1
- package/docs/classes/gltf_loader.DDSLoader.html +3 -1
- package/docs/classes/gltf_loader.DRACOLoader.html +8 -1
- package/docs/classes/gltf_loader.GLTFLoader.html +18 -17
- package/docs/classes/gltf_loader.GLTFObject.html +8 -6
- package/docs/classes/gltf_loader.GLTFParser.html +6 -1
- package/docs/classes/gltf_loader.THREEGLTFLoader.html +8 -1
- package/docs/classes/line.Line.html +10 -1
- package/docs/classes/line.LineGeometry.html +14 -1
- package/docs/classes/line.LineMaterial.html +8 -1
- package/docs/classes/line.LineSegmentsGeometry.html +12 -1
- package/docs/classes/line.THREE_Line2.html +4 -1
- package/docs/classes/line.THREE_LineSegments2.html +4 -1
- package/docs/classes/plugins.BasePlugin.Controller.html +38 -0
- package/docs/classes/plugins.ItemMaskController.html +37 -0
- package/docs/classes/react.Store.html +23 -29
- package/docs/classes/sticker.Sticker.html +25 -32
- package/docs/classes/vfx.Airflow.html +8 -1
- package/docs/classes/vfx.Flame.html +10 -1
- package/docs/classes/vfx.Particle.html +79 -82
- package/docs/classes/vfx.SpotLight.html +7 -1
- package/docs/enums/five.VolumePlaneIntersect.html +4 -1
- package/docs/functions/five.defaultImageURLTransform.html +5 -0
- package/docs/functions/five.getViewportScale.html +1 -0
- package/docs/functions/five.imageSupport.html +1 -0
- package/docs/functions/five.isPanoId.html +1 -0
- package/docs/functions/five.loadAt3d.html +1 -0
- package/docs/functions/five.loadB3dm.html +1 -0
- package/docs/functions/five.loadDome.html +1 -0
- package/docs/functions/five.loadDomez.html +1 -0
- package/docs/functions/five.loadPbm.html +1 -0
- package/docs/functions/five.loadPnts.html +1 -0
- package/docs/functions/five.panoEqual.html +1 -0
- package/docs/functions/five.panoParse.html +1 -0
- package/docs/functions/five.panoStringify.html +1 -0
- package/docs/functions/five.parseWork.html +7 -0
- package/docs/functions/plugins.ItemMaskPlugin.html +1 -0
- package/docs/functions/react.FiveCanvas-1.html +6 -0
- package/docs/functions/react.createFiveFeature.html +1 -0
- package/docs/functions/react.createFiveProvider.html +9 -0
- package/docs/functions/react.createStore.html +15 -0
- package/docs/functions/react.unsafe__useFiveInstance.html +5 -0
- package/docs/functions/react.useFiveAction.html +19 -0
- package/docs/functions/react.useFiveCameraDirection.html +3 -0
- package/docs/functions/react.useFiveCameraRaycaster.html +3 -0
- package/docs/functions/react.useFiveCurrentObserver.html +5 -0
- package/docs/functions/react.useFiveCurrentState.html +5 -0
- package/docs/functions/react.useFiveEventCallback.html +5 -0
- package/docs/functions/react.useFiveFloor.html +5 -0
- package/docs/functions/react.useFiveHelper.html +5 -0
- package/docs/functions/react.useFiveModelIntersectRaycaster.html +7 -0
- package/docs/functions/react.useFiveModelReadyState.html +4 -0
- package/docs/functions/react.useFiveProject2d.html +7 -0
- package/docs/functions/react.useFiveScene.html +2 -0
- package/docs/functions/react.useFiveSceneEffect.html +5 -0
- package/docs/functions/react.useFiveState.html +1 -0
- package/docs/functions/react.useFiveWork.html +8 -0
- package/docs/functions/react.withFive.html +1 -0
- package/docs/functions/vue.unsafe__useFiveInject.html +5 -0
- package/docs/functions/vue.useFiveAction.html +25 -0
- package/docs/functions/vue.useFiveCameraDirection.html +3 -0
- package/docs/functions/vue.useFiveCameraRaycaster.html +3 -0
- package/docs/functions/vue.useFiveCurrentObserver.html +5 -0
- package/docs/functions/vue.useFiveCurrentState.html +5 -0
- package/docs/functions/vue.useFiveEventCallback.html +5 -0
- package/docs/functions/vue.useFiveFloor.html +5 -0
- package/docs/functions/vue.useFiveHelper.html +5 -0
- package/docs/functions/vue.useFiveModel.html +2 -0
- package/docs/functions/vue.useFiveModelBounding.html +2 -0
- package/docs/functions/vue.useFiveModelIntersectRaycaster.html +7 -0
- package/docs/functions/vue.useFiveModelReadyState.html +4 -0
- package/docs/functions/vue.useFiveProject2d.html +7 -0
- package/docs/functions/vue.useFiveScene.html +2 -0
- package/docs/functions/vue.useFiveState.html +5 -0
- package/docs/functions/vue.useFiveWorks.html +8 -0
- package/docs/index.html +35 -79
- package/docs/interfaces/five.AddableObject.html +9 -9
- package/docs/interfaces/five.AjaxOptions.html +11 -0
- package/docs/interfaces/five.AnimationFrame.html +5 -1
- package/docs/interfaces/five.BaseEvent.html +5 -1
- package/docs/interfaces/five.BoundingVolume.html +15 -1
- package/docs/interfaces/five.CameraPose.html +6 -1
- package/docs/interfaces/five.ClipperParameter.html +3 -1
- package/docs/interfaces/five.EventCallback.html +355 -462
- package/docs/interfaces/five.FiveInitArgs.html +82 -86
- package/docs/interfaces/five.FiveLoadOptions.html +36 -0
- package/docs/interfaces/five.FloorplanControllerCustomInitArgs.html +17 -15
- package/docs/interfaces/five.GestureEvent.html +19 -1
- package/docs/interfaces/five.ImageOptions.html +16 -18
- package/docs/interfaces/five.ImageURLMappings.html +1 -1
- package/docs/interfaces/five.ImageURLOptions.html +15 -15
- package/docs/interfaces/five.IntersectEvent.html +8 -1
- package/docs/interfaces/five.IntersectMeshInterface.html +3 -3
- package/docs/interfaces/five.Intersection.html +3 -7
- package/docs/interfaces/five.MapviewControllerCustomInitArgs.html +15 -11
- package/docs/interfaces/five.ModeChangeEvent.html +9 -1
- package/docs/interfaces/five.ModelControllerCustomInitArgs.html +18 -18
- package/docs/interfaces/five.ModelEvent.html +8 -1
- package/docs/interfaces/five.ModelsEvent.html +6 -1
- package/docs/interfaces/five.MotionKeyframe.html +4 -1
- package/docs/interfaces/five.MovePanoOptions.html +24 -35
- package/docs/interfaces/five.NetworkOptions.html +9 -9
- package/docs/interfaces/five.NetworkResourceEvent.html +9 -1
- package/docs/interfaces/five.ObjectEvent.html +6 -1
- package/docs/interfaces/five.PBMPanoPicture.html +7 -7
- package/docs/interfaces/five.PBMParameters.html +42 -43
- package/docs/interfaces/five.PanoCircleMeshCustomOptions.html +9 -1
- package/docs/interfaces/five.PanoCircleMeshInterface.html +21 -10
- package/docs/interfaces/five.PanoCircleMeshOptions.html +3 -1
- package/docs/interfaces/five.PanoCircleMeshSolidOptions.html +3 -1
- package/docs/interfaces/five.PanoEvent.html +11 -1
- package/docs/interfaces/five.PanoTextureEvent.html +9 -1
- package/docs/interfaces/five.PanoramaControllerCustomInitArgs.html +32 -32
- package/docs/interfaces/five.PanoramaLikeControllerCustomInitArgs.html +18 -18
- package/docs/interfaces/five.Pose.html +15 -32
- package/docs/interfaces/five.RenderEvent.html +7 -1
- package/docs/interfaces/five.Scissor.html +11 -12
- package/docs/interfaces/five.State.html +20 -21
- package/docs/interfaces/five.StateEvent.html +7 -1
- package/docs/interfaces/five.SubscribeMixinType.emit.html +1 -1
- package/docs/interfaces/five.SubscribeMixinType.hasListener.html +1 -1
- package/docs/interfaces/five.SubscribeMixinType.off.html +1 -1
- package/docs/interfaces/five.SubscribeMixinType.on.html +1 -1
- package/docs/interfaces/five.SubscribeMixinType.once.html +1 -1
- package/docs/interfaces/five.SubscribeMixinType.waitUnitl.html +1 -1
- package/docs/interfaces/five.TextureOptions.html +18 -20
- package/docs/interfaces/five.Tile3DModelLoaderOptions.html +6 -3
- package/docs/interfaces/five.TileCubeNode.html +7 -1
- package/docs/interfaces/five.TileCubeTree.html +2 -1
- package/docs/interfaces/five.TileHeader.html +9 -1
- package/docs/interfaces/five.TilesetHeader.html +5 -1
- package/docs/interfaces/five.TilesetOptions.html +5 -1
- package/docs/interfaces/five.TopviewControllerCustomInitArgs.html +9 -9
- package/docs/interfaces/five.VRPanoramaControllerCustomInitArgs.html +28 -28
- package/docs/interfaces/five.WebXRAxesParams.html +4 -1
- package/docs/interfaces/five.WebXRControllerParams.html +2 -1
- package/docs/interfaces/five.WorkCubeImage.html +15 -13
- package/docs/interfaces/five.WorkImage.html +20 -21
- package/docs/interfaces/five.WorkInitial.html +17 -17
- package/docs/interfaces/five.WorkModel.html +12 -13
- package/docs/interfaces/five.WorkObserver.html +40 -39
- package/docs/interfaces/five.WorkResolvedObserver.html +41 -37
- package/docs/interfaces/five.WorkTile.html +10 -1
- package/docs/interfaces/five.WorkVideo.html +8 -9
- package/docs/interfaces/five.WorksEvent.html +9 -1
- package/docs/interfaces/five.XRControllerEvent.html +8 -1
- package/docs/interfaces/five.XRGestureEvent.html +11 -1
- package/docs/interfaces/five.XRPanoramaControllerCustomInitArgs.html +28 -28
- package/docs/interfaces/five.XRSessionEvent.html +7 -1
- package/docs/interfaces/gltf_loader.DDS.html +7 -1
- package/docs/interfaces/gltf_loader.GLTF.html +10 -4
- package/docs/interfaces/gltf_loader.GLTFReference.html +3 -1
- package/docs/interfaces/gltf_loader.THREEGLTF.html +8 -1
- package/docs/interfaces/plugins.BasePlugin.BaseOptions.html +3 -0
- package/docs/interfaces/plugins.BasePlugin.Config.html +5 -0
- package/docs/interfaces/plugins.BasePlugin.State.html +8 -0
- package/docs/interfaces/plugins.ItemMaskPluginType.Config.html +2 -0
- package/docs/interfaces/plugins.ItemMaskPluginType.EventMap.html +10 -0
- package/docs/interfaces/plugins.ItemMaskPluginType.ItemType.html +13 -0
- package/docs/interfaces/plugins.ItemMaskPluginType.MaskType.html +4 -0
- package/docs/interfaces/plugins.ItemMaskPluginType.Params.html +4 -0
- package/docs/interfaces/plugins.ItemMaskPluginType.State.html +14 -0
- package/docs/interfaces/react.FiveActionReactCallbacks.html +27 -37
- package/docs/interfaces/react.FiveInjectionTypes.html +112 -138
- package/docs/interfaces/react.PropTypeOfFiveFeatures.html +2 -1
- package/docs/interfaces/sticker.IntersectionLike.html +7 -8
- package/docs/interfaces/vfx.ParticleArgs.html +67 -68
- package/docs/interfaces/vfx.ParticleTweenKeyframe.html +3 -1
- package/docs/interfaces/vue.FiveActionVueCallbacks.html +31 -42
- package/docs/modules/five.SubscribeMixinType.html +7 -1
- package/docs/modules/five.html +171 -643
- package/docs/modules/gltf_loader.html +11 -1
- package/docs/modules/line.html +8 -1
- package/docs/modules/plugins.BasePlugin.html +6 -0
- package/docs/modules/plugins.ItemMaskPluginType.html +9 -0
- package/docs/modules/plugins.html +5 -0
- package/docs/modules/react.FiveCanvas.html +8 -0
- package/docs/modules/react.html +37 -130
- package/docs/modules/sticker.html +3 -1
- package/docs/modules/vfx.html +8 -1
- package/docs/modules/vue.html +24 -115
- package/docs/types/five.AjaxResponseType.html +1 -0
- package/docs/types/five.AjaxResponseTypeMapping.html +1 -0
- package/docs/types/five.BoundingVolumeJson.html +1 -0
- package/docs/types/five.BoxBoundingVolumeJson.html +1 -0
- package/docs/types/five.ControllerCustomInitTypes.html +1 -0
- package/docs/types/five.ControllerEventTypes.html +32 -0
- package/docs/types/five.CoordinatesSystemTransformer.html +1 -0
- package/docs/types/five.EventTypes.html +26 -0
- package/docs/types/five.FivePlugin.html +71 -0
- package/docs/types/five.FivePluginInit.html +3 -0
- package/docs/types/five.FivePluginInstance.html +3 -0
- package/docs/types/five.GestureTypes.html +1 -0
- package/docs/types/five.LegacyEventType.html +203 -0
- package/docs/types/five.LooseWork.html +1 -0
- package/docs/types/five.LooseWorkInitial.html +1 -0
- package/docs/types/five.LooseWorkModel.html +1 -0
- package/docs/types/five.LooseWorkObserver.html +1 -0
- package/docs/types/five.LooseWorkPanorama.html +1 -0
- package/docs/types/five.LooseWorkVideo.html +1 -0
- package/docs/types/five.LooseWorkWithExtrinsics.html +2 -0
- package/docs/types/five.Mirror.html +1 -0
- package/docs/types/five.Mode.html +10 -0
- package/docs/types/five.ModelMaterialValues.html +1 -0
- package/docs/types/five.Models.html +13 -0
- package/docs/types/five.MotionValue.html +1 -0
- package/docs/types/five.MovePanoEffect.html +9 -0
- package/docs/types/five.NetWorkMeta.html +1 -0
- package/docs/types/five.NetworkError.html +1 -0
- package/docs/types/five.NetworkErrorCallback.html +1 -0
- package/docs/types/five.NetworkProgressCallback.html +1 -0
- package/docs/types/five.NetworkResponse.html +1 -0
- package/docs/types/five.NetworkState.html +1 -0
- package/docs/types/five.NetworkSuccessCallback.html +1 -0
- package/docs/types/five.NetworkType.html +1 -0
- package/docs/types/five.Pano.html +1 -0
- package/docs/types/five.PanoId.html +1 -0
- package/docs/types/five.ParseWorkOptions.html +6 -0
- package/docs/types/five.ParsedResultType.html +1 -0
- package/docs/types/five.PostProcessingType.html +1 -0
- package/docs/types/five.RegionBoundingVolumeJson.html +1 -0
- package/docs/types/five.RequestResult.html +1 -0
- package/docs/types/five.SphereBoundingVolumeJson.html +1 -0
- package/docs/types/five.SubscribeEventMap.html +1 -0
- package/docs/types/five.TileContentData.html +1 -0
- package/docs/types/five.TilesetFrameState.html +1 -0
- package/docs/types/five.WebXRControllerKey.html +1 -0
- package/docs/types/five.WebXRControllerType.html +1 -0
- package/docs/types/five.Works.html +1 -0
- package/docs/types/line.LineMaterialParameters.html +1 -0
- package/docs/types/plugins.BasePlugin.EventMap.html +6 -0
- package/docs/types/plugins.ItemMaskPluginType.PluginData.html +1 -0
- package/docs/types/plugins.ItemMaskPluginType.ServerData.html +1 -0
- package/docs/types/react.FiveInjectionActionFeature.html +1 -0
- package/docs/types/react.FiveInjectionDataFeature.html +1 -0
- package/docs/types/react.FiveInjectionFeature.html +1 -0
- package/docs/types/react.FiveProviderPropTypes.html +1 -0
- package/docs/types/react.FiveProviderType.html +1 -0
- package/docs/types/react.StoreActionMapHanlder.html +1 -0
- package/docs/types/react.StoreActionMapType.html +1 -0
- package/docs/types/react.StoreProviderType.html +1 -0
- package/docs/types/react.StoreValueMapType.html +1 -0
- package/docs/types/vfx.ParticleType.html +1 -0
- package/docs/types/vue.FiveModelIntersectRaycaster.html +1 -0
- package/docs/types/vue.FiveProviderComponent.html +1 -0
- package/docs/types/vue.Project2d.html +1 -0
- package/docs/variables/five.PROXY_CONTROLLER_EVENT_NAMES.html +1 -0
- package/docs/variables/five.defaultPbmParameters.html +1 -0
- package/docs/variables/react.INJECTION_PROPNAME.html +1 -0
- package/docs/variables/vue.FiveCanvas.html +8 -0
- package/docs/variables/vue.FiveProvider.html +8 -0
- package/five/index.d.ts +481 -351
- package/five/index.js +1879 -218
- package/five/index.mjs +23126 -0
- package/gltf-loader/index.js +204 -203
- package/gltf-loader/index.mjs +1708 -0
- package/line/index.js +396 -202
- package/line/index.mjs +776 -0
- package/package.json +48 -12
- package/plugins/index.d.ts +253 -0
- package/plugins/index.js +350 -0
- package/plugins/index.mjs +796 -0
- package/react/index.d.ts +35 -44
- package/react/index.js +198 -203
- package/react/index.mjs +1072 -0
- package/scripts/five-staticify.js +183 -2
- package/sticker/index.js +198 -203
- package/sticker/index.mjs +399 -0
- package/umd/five-gltf-loader.js +261 -1
- package/umd/five-line.js +454 -1
- package/umd/five-plugins.js +350 -0
- package/umd/five-react.js +255 -1
- package/umd/five-sticker.js +255 -1
- package/umd/five-vfx.js +539 -1
- package/umd/five-vue.js +255 -1
- package/umd/five.js +2023 -2
- package/vfx/index.js +481 -202
- package/vfx/index.mjs +1032 -0
- package/vue/index.d.ts +1 -1
- package/vue/index.js +198 -203
- package/vue/index.mjs +574 -0
- package/docs/assets/icons.css +0 -1043
- package/docs/assets/icons.png +0 -0
- package/docs/assets/icons@2x.png +0 -0
- package/docs/assets/widgets.png +0 -0
- package/docs/assets/widgets@2x.png +0 -0
- package/docs/classes/five.BVH.html +0 -10
- package/docs/classes/five.BVHIntersect.html +0 -1
- package/docs/classes/five.BVHNode.html +0 -7
- package/docs/classes/five.BVHVector3.html +0 -1
- package/docs/classes/five.Clipper.html +0 -1
- package/docs/classes/five.PBMMaterialReferenceCache.html +0 -1
- package/docs/enums/five.PBMPointColorType.html +0 -1
- package/docs/enums/five.PBMPointShapeType.html +0 -1
- package/docs/enums/five.PBMPointSizeType.html +0 -1
- package/docs/interfaces/five.DepthPanoramaControllerCustomInitArgs.html +0 -26
- package/docs/interfaces/five.ModelLodOptions.html +0 -1
- package/docs/interfaces/five.WorkOptions.html +0 -15
- package/docs/modules.html +0 -1
- package/exporters/staticify.js +0 -210
- package/scripts/five-plugin-init.js +0 -83
- package/scripts/five-quick-start-init.js +0 -80
- package/scripts/five-react-component-init.js +0 -83
- package/templates/plugin/README.md +0 -38
- package/templates/plugin/devtools/external-five.js +0 -5
- package/templates/plugin/devtools/external-three.js +0 -5
- package/templates/plugin/devtools/tsconfig.build.json +0 -18
- package/templates/plugin/devtools/webpack.bundle.js +0 -44
- package/templates/plugin/devtools/webpack.example.js +0 -39
- package/templates/plugin/docs/.gitkeep +0 -0
- package/templates/plugin/examples/data.json +0 -507
- package/templates/plugin/examples/index.html +0 -28
- package/templates/plugin/examples/index.ts +0 -12
- package/templates/plugin/lib/index.ts +0 -30
- package/templates/plugin/package.json +0 -32
- package/templates/plugin/tsconfig.json +0 -26
- package/templates/quick-start/README.md +0 -47
- package/templates/quick-start/assets/work.json +0 -507
- package/templates/quick-start/index.html +0 -54
- package/templates/quick-start/index.tsx +0 -123
- package/templates/quick-start/package.json +0 -25
- package/templates/quick-start/tsconfig.json +0 -27
- package/templates/quick-start/webpack.config.js +0 -45
- package/templates/quick-start/webpack.production.js +0 -42
- package/templates/react-component/README.md +0 -32
- package/templates/react-component/devtools/external-five.js +0 -5
- package/templates/react-component/devtools/external-react.js +0 -5
- package/templates/react-component/devtools/external-three.js +0 -5
- package/templates/react-component/devtools/tsconfig.build.json +0 -19
- package/templates/react-component/devtools/webpack.bundle.js +0 -44
- package/templates/react-component/devtools/webpack.example.js +0 -39
- package/templates/react-component/docs/.gitkeep +0 -0
- package/templates/react-component/examples/data.json +0 -507
- package/templates/react-component/examples/index.html +0 -17
- package/templates/react-component/examples/index.tsx +0 -62
- package/templates/react-component/lib/index.tsx +0 -157
- package/templates/react-component/package.json +0 -38
- package/templates/react-component/tsconfig.json +0 -27
- package/umd/five-gltf-loader.js.LICENSE.txt +0 -14
- package/umd/five-line.js.LICENSE.txt +0 -14
- package/umd/five-react.js.LICENSE.txt +0 -14
- package/umd/five-sticker.js.LICENSE.txt +0 -14
- package/umd/five.js.LICENSE.txt +0 -100
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>DepthPanoramaControllerCustomInitArgs | 如视 Five SDK - v6.0.0-alpha.9</title><meta name="description" content="Documentation for 如视 Five SDK - v6.0.0-alpha.9"/><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 - v6.0.0-alpha.9</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 - v6.0.0-alpha.9</a></li><li><a href="../modules/five.html">five</a></li><li><a href="five.DepthPanoramaControllerCustomInitArgs.html">DepthPanoramaControllerCustomInitArgs</a></li></ul><h1>Interface DepthPanoramaControllerCustomInitArgs </h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><a href="five.PanoramaLikeControllerCustomInitArgs.html" class="tsd-signature-type" data-tsd-kind="Interface">PanoramaLikeControllerCustomInitArgs</a><ul class="tsd-hierarchy"><li><span class="target">DepthPanoramaControllerCustomInitArgs</span></li></ul></li></ul></section><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>Properties</h3><ul class="tsd-index-list"><li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="five.DepthPanoramaControllerCustomInitArgs.html#defaultFov" class="tsd-kind-icon">default<wbr/>Fov</a></li><li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="five.DepthPanoramaControllerCustomInitArgs.html#defaultLatitude" class="tsd-kind-icon">default<wbr/>Latitude</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="five.DepthPanoramaControllerCustomInitArgs.html#maxAccessibleDistance" class="tsd-kind-icon">max<wbr/>Accessible<wbr/>Distance</a></li><li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="five.DepthPanoramaControllerCustomInitArgs.html#maxFov" class="tsd-kind-icon">max<wbr/>Fov</a></li><li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="five.DepthPanoramaControllerCustomInitArgs.html#maxLatitude" class="tsd-kind-icon">max<wbr/>Latitude</a></li><li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="five.DepthPanoramaControllerCustomInitArgs.html#minFov" class="tsd-kind-icon">min<wbr/>Fov</a></li><li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="five.DepthPanoramaControllerCustomInitArgs.html#minLatitude" class="tsd-kind-icon">min<wbr/>Latitude</a></li><li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="five.DepthPanoramaControllerCustomInitArgs.html#moveSpeed" class="tsd-kind-icon">move<wbr/>Speed</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="five.DepthPanoramaControllerCustomInitArgs.html#panoTapTriggerRadius" class="tsd-kind-icon">pano<wbr/>Tap<wbr/>Trigger<wbr/>Radius</a></li></ul></section><section class="tsd-index-section "><h3>Methods</h3><ul class="tsd-index-list"><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="five.DepthPanoramaControllerCustomInitArgs.html#intersectMeshCreator" class="tsd-kind-icon">intersect<wbr/>Mesh<wbr/>Creator</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="five.DepthPanoramaControllerCustomInitArgs.html#panoCircleMeshCreator" class="tsd-kind-icon">pano<wbr/>Circle<wbr/>Mesh<wbr/>Creator</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Properties</h2><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a id="defaultFov" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagOptional">Optional</span> default<wbr/>Fov<a href="#defaultFov" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">default<wbr/>Fov<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><p>Inherited from <a href="five.PanoramaLikeControllerCustomInitArgs.html">PanoramaLikeControllerCustomInitArgs</a>.<a href="five.PanoramaLikeControllerCustomInitArgs.html#defaultFov">defaultFov</a></p><ul><li>Defined in lib/five/controllers/panoramaLike.ts:25</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
2
|
-
<p>默认相机可视角度(垂直),可作为 <code>zoom</code></p>
|
|
3
|
-
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a id="defaultLatitude" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagOptional">Optional</span> default<wbr/>Latitude<a href="#defaultLatitude" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">default<wbr/>Latitude<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><p>Inherited from <a href="five.PanoramaLikeControllerCustomInitArgs.html">PanoramaLikeControllerCustomInitArgs</a>.<a href="five.PanoramaLikeControllerCustomInitArgs.html#defaultLatitude">defaultLatitude</a></p><ul><li>Defined in lib/five/controllers/panoramaLike.ts:19</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
4
|
-
<p>默认相机俯仰角</p>
|
|
5
|
-
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="maxAccessibleDistance" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagOptional">Optional</span> max<wbr/>Accessible<wbr/>Distance<a href="#maxAccessibleDistance" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">max<wbr/>Accessible<wbr/>Distance<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/depthPanorama.ts:43</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
6
|
-
<p>最远可移动观察点距离</p>
|
|
7
|
-
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a id="maxFov" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagOptional">Optional</span> max<wbr/>Fov<a href="#maxFov" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">max<wbr/>Fov<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><p>Inherited from <a href="five.PanoramaLikeControllerCustomInitArgs.html">PanoramaLikeControllerCustomInitArgs</a>.<a href="five.PanoramaLikeControllerCustomInitArgs.html#maxFov">maxFov</a></p><ul><li>Defined in lib/five/controllers/panoramaLike.ts:27</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
8
|
-
<p>最大默认相机可视角度(垂直)</p>
|
|
9
|
-
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a id="maxLatitude" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagOptional">Optional</span> max<wbr/>Latitude<a href="#maxLatitude" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">max<wbr/>Latitude<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><p>Inherited from <a href="five.PanoramaLikeControllerCustomInitArgs.html">PanoramaLikeControllerCustomInitArgs</a>.<a href="five.PanoramaLikeControllerCustomInitArgs.html#maxLatitude">maxLatitude</a></p><ul><li>Defined in lib/five/controllers/panoramaLike.ts:21</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
10
|
-
<p>最大相机俯仰角</p>
|
|
11
|
-
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a id="minFov" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagOptional">Optional</span> min<wbr/>Fov<a href="#minFov" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">min<wbr/>Fov<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><p>Inherited from <a href="five.PanoramaLikeControllerCustomInitArgs.html">PanoramaLikeControllerCustomInitArgs</a>.<a href="five.PanoramaLikeControllerCustomInitArgs.html#minFov">minFov</a></p><ul><li>Defined in lib/five/controllers/panoramaLike.ts:29</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
12
|
-
<p>最小默认相机可视角度(垂直)</p>
|
|
13
|
-
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a id="minLatitude" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagOptional">Optional</span> min<wbr/>Latitude<a href="#minLatitude" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">min<wbr/>Latitude<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><p>Inherited from <a href="five.PanoramaLikeControllerCustomInitArgs.html">PanoramaLikeControllerCustomInitArgs</a>.<a href="five.PanoramaLikeControllerCustomInitArgs.html#minLatitude">minLatitude</a></p><ul><li>Defined in lib/five/controllers/panoramaLike.ts:23</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
14
|
-
<p>最小相机俯仰角</p>
|
|
15
|
-
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a id="moveSpeed" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagOptional">Optional</span> move<wbr/>Speed<a href="#moveSpeed" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">move<wbr/>Speed<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><p>Inherited from <a href="five.PanoramaLikeControllerCustomInitArgs.html">PanoramaLikeControllerCustomInitArgs</a>.<a href="five.PanoramaLikeControllerCustomInitArgs.html#moveSpeed">moveSpeed</a></p><ul><li>Defined in lib/five/controllers/panoramaLike.ts:35</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
16
|
-
<p>点位间移动动画速度 单位 m/s</p>
|
|
17
|
-
</div><dl class="tsd-comment-tags"><dt>description</dt><dd><p>这边设置的是速度,整体耗时会通过距离除速度计算得到</p>
|
|
18
|
-
</dd></dl></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="panoTapTriggerRadius" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagOptional">Optional</span> pano<wbr/>Tap<wbr/>Trigger<wbr/>Radius<a href="#panoTapTriggerRadius" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">pano<wbr/>Tap<wbr/>Trigger<wbr/>Radius<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/depthPanorama.ts:51</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
19
|
-
<p>点击地面观察点标识的判定范围</p>
|
|
20
|
-
</div><dl class="tsd-comment-tags"><dt>description</dt><dd><p>如果在判定范围内则确定去到目标点,
|
|
21
|
-
否则寻找点击位置方向最适合的点(可能会走到一个离相机更近的点)。</p>
|
|
22
|
-
</dd></dl></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Methods</h2><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a id="intersectMeshCreator" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagOptional">Optional</span> intersect<wbr/>Mesh<wbr/>Creator<a href="#intersectMeshCreator" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><li class="tsd-signature tsd-kind-icon">intersect<wbr/>Mesh<wbr/>Creator<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="five.IntersectMeshInterface.html" class="tsd-signature-type" data-tsd-kind="Interface">IntersectMeshInterface</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><p>Inherited from <a href="five.PanoramaLikeControllerCustomInitArgs.html">PanoramaLikeControllerCustomInitArgs</a>.<a href="five.PanoramaLikeControllerCustomInitArgs.html#intersectMeshCreator">intersectMeshCreator</a></p><ul><li>Defined in lib/five/controllers/panoramaLike.ts:37</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
23
|
-
<p>鼠标焦点环自定义创建器</p>
|
|
24
|
-
</div></div><h4 class="tsd-returns-title">Returns <a href="five.IntersectMeshInterface.html" class="tsd-signature-type" data-tsd-kind="Interface">IntersectMeshInterface</a></h4></li></ul></section><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="panoCircleMeshCreator" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagOptional">Optional</span> pano<wbr/>Circle<wbr/>Mesh<wbr/>Creator<a href="#panoCircleMeshCreator" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface"><li class="tsd-signature tsd-kind-icon">pano<wbr/>Circle<wbr/>Mesh<wbr/>Creator<span class="tsd-signature-symbol">(</span>pano<span class="tsd-signature-symbol">: </span><a href="../modules/five.html#Pano" class="tsd-signature-type" data-tsd-kind="Type alias">Pano</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="five.PanoCircleMeshInterface.html" class="tsd-signature-type" data-tsd-kind="Interface">PanoCircleMeshInterface</a></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in lib/five/controllers/depthPanorama.ts:54</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
25
|
-
<p>地面观察点标识自定义创建器</p>
|
|
26
|
-
</div></div><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameters"><li><h5>pano: <a href="../modules/five.html#Pano" class="tsd-signature-type" data-tsd-kind="Type alias">Pano</a></h5></li></ul><h4 class="tsd-returns-title">Returns <a href="five.PanoCircleMeshInterface.html" class="tsd-signature-type" data-tsd-kind="Interface">PanoCircleMeshInterface</a></h4></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="../modules/five.html">five</a><ul><li class=" tsd-kind-namespace tsd-parent-kind-module"><a href="../modules/five.SubscribeMixinType.html">Subscribe<wbr/>Mixin<wbr/>Type</a></li></ul></li><li class=" tsd-kind-module"><a href="../modules/gltf_loader.html">gltf-<wbr/>loader</a></li><li class=" tsd-kind-module"><a href="../modules/line.html">line</a></li><li class=" tsd-kind-module"><a href="../modules/react.html">react</a></li><li class=" tsd-kind-module"><a href="../modules/sticker.html">sticker</a></li><li class=" tsd-kind-module"><a href="../modules/vfx.html">vfx</a></li><li class=" tsd-kind-module"><a href="../modules/vue.html">vue</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="current tsd-kind-interface tsd-parent-kind-module"><a href="five.DepthPanoramaControllerCustomInitArgs.html" class="tsd-kind-icon">Depth<wbr/>Panorama<wbr/>Controller<wbr/>Custom<wbr/>Init<wbr/>Args</a><ul><li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="five.DepthPanoramaControllerCustomInitArgs.html#defaultFov" class="tsd-kind-icon">default<wbr/>Fov</a></li><li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="five.DepthPanoramaControllerCustomInitArgs.html#defaultLatitude" class="tsd-kind-icon">default<wbr/>Latitude</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="five.DepthPanoramaControllerCustomInitArgs.html#maxAccessibleDistance" class="tsd-kind-icon">max<wbr/>Accessible<wbr/>Distance</a></li><li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="five.DepthPanoramaControllerCustomInitArgs.html#maxFov" class="tsd-kind-icon">max<wbr/>Fov</a></li><li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="five.DepthPanoramaControllerCustomInitArgs.html#maxLatitude" class="tsd-kind-icon">max<wbr/>Latitude</a></li><li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="five.DepthPanoramaControllerCustomInitArgs.html#minFov" class="tsd-kind-icon">min<wbr/>Fov</a></li><li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="five.DepthPanoramaControllerCustomInitArgs.html#minLatitude" class="tsd-kind-icon">min<wbr/>Latitude</a></li><li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="five.DepthPanoramaControllerCustomInitArgs.html#moveSpeed" class="tsd-kind-icon">move<wbr/>Speed</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="five.DepthPanoramaControllerCustomInitArgs.html#panoTapTriggerRadius" class="tsd-kind-icon">pano<wbr/>Tap<wbr/>Trigger<wbr/>Radius</a></li><li class="tsd-kind-method tsd-parent-kind-interface tsd-is-inherited"><a href="five.DepthPanoramaControllerCustomInitArgs.html#intersectMeshCreator" class="tsd-kind-icon">intersect<wbr/>Mesh<wbr/>Creator</a></li><li class="tsd-kind-method tsd-parent-kind-interface"><a href="five.DepthPanoramaControllerCustomInitArgs.html#panoCircleMeshCreator" class="tsd-kind-icon">pano<wbr/>Circle<wbr/>Mesh<wbr/>Creator</a></li></ul></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><li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li><li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</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><ul class="tsd-legend"><li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</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>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>ModelLodOptions | 如视 Five SDK - v6.0.0-alpha.9</title><meta name="description" content="Documentation for 如视 Five SDK - v6.0.0-alpha.9"/><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 - v6.0.0-alpha.9</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 - v6.0.0-alpha.9</a></li><li><a href="../modules/five.html">five</a></li><li><a href="five.ModelLodOptions.html">ModelLodOptions</a></li></ul><h1>Interface ModelLodOptions </h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><span class="target">ModelLodOptions</span></li></ul></section><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>Properties</h3><ul class="tsd-index-list"><li class="tsd-kind-property tsd-parent-kind-interface"><a href="five.ModelLodOptions.html#maxDepth" class="tsd-kind-icon">max<wbr/>Depth</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Properties</h2><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="maxDepth" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagOptional">Optional</span> max<wbr/>Depth<a href="#maxDepth" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">max<wbr/>Depth<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in lib/five/types/modelLodOptions.ts:2</li></ul></aside></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="../modules/five.html">five</a><ul><li class=" tsd-kind-namespace tsd-parent-kind-module"><a href="../modules/five.SubscribeMixinType.html">Subscribe<wbr/>Mixin<wbr/>Type</a></li></ul></li><li class=" tsd-kind-module"><a href="../modules/gltf_loader.html">gltf-<wbr/>loader</a></li><li class=" tsd-kind-module"><a href="../modules/line.html">line</a></li><li class=" tsd-kind-module"><a href="../modules/react.html">react</a></li><li class=" tsd-kind-module"><a href="../modules/sticker.html">sticker</a></li><li class=" tsd-kind-module"><a href="../modules/vfx.html">vfx</a></li><li class=" tsd-kind-module"><a href="../modules/vue.html">vue</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="current tsd-kind-interface tsd-parent-kind-module"><a href="five.ModelLodOptions.html" class="tsd-kind-icon">Model<wbr/>Lod<wbr/>Options</a><ul><li class="tsd-kind-property tsd-parent-kind-interface"><a href="five.ModelLodOptions.html#maxDepth" class="tsd-kind-icon">max<wbr/>Depth</a></li></ul></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><li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</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><ul class="tsd-legend"><li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</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>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>WorkOptions | 如视 Five SDK - v6.0.0-alpha.9</title><meta name="description" content="Documentation for 如视 Five SDK - v6.0.0-alpha.9"/><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 - v6.0.0-alpha.9</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 - v6.0.0-alpha.9</a></li><li><a href="../modules/five.html">five</a></li><li><a href="five.WorkOptions.html">WorkOptions</a></li></ul><h1>Interface WorkOptions </h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><span class="target">WorkOptions</span></li></ul></section><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>Properties</h3><ul class="tsd-index-list"><li class="tsd-kind-property tsd-parent-kind-interface"><a href="five.WorkOptions.html#debug" class="tsd-kind-icon">debug</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="five.WorkOptions.html#modelMaxLevelOfDetail" class="tsd-kind-icon">model<wbr/>Max<wbr/>Level<wbr/>Of<wbr/>Detail</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="five.WorkOptions.html#modelMaxMemoryUsage" class="tsd-kind-icon">model<wbr/>Max<wbr/>Memory<wbr/>Usage</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="five.WorkOptions.html#modelMaxRequests" class="tsd-kind-icon">model<wbr/>Max<wbr/>Requests</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="five.WorkOptions.html#modelMaxScreenSpaceError" class="tsd-kind-icon">model<wbr/>Max<wbr/>Screen<wbr/>Space<wbr/>Error</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="five.WorkOptions.html#transform" class="tsd-kind-icon">transform</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="five.WorkOptions.html#viewerRequestVolume" class="tsd-kind-icon">viewer<wbr/>Request<wbr/>Volume</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Properties</h2><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="debug" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagOptional">Optional</span> debug<a href="#debug" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">debug<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span></div><aside class="tsd-sources"><ul><li>Defined in lib/five/work/work.ts:149</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
2
|
-
<p>调试</p>
|
|
3
|
-
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="modelMaxLevelOfDetail" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagOptional">Optional</span> model<wbr/>Max<wbr/>Level<wbr/>Of<wbr/>Detail<a href="#modelMaxLevelOfDetail" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">model<wbr/>Max<wbr/>Level<wbr/>Of<wbr/>Detail<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in lib/five/work/work.ts:158</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
4
|
-
<p>模型显示最大细化层级</p>
|
|
5
|
-
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="modelMaxMemoryUsage" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagOptional">Optional</span> model<wbr/>Max<wbr/>Memory<wbr/>Usage<a href="#modelMaxMemoryUsage" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">model<wbr/>Max<wbr/>Memory<wbr/>Usage<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in lib/five/work/work.ts:161</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
6
|
-
<p>模型最大内存缓存</p>
|
|
7
|
-
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="modelMaxRequests" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagOptional">Optional</span> model<wbr/>Max<wbr/>Requests<a href="#modelMaxRequests" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">model<wbr/>Max<wbr/>Requests<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in lib/five/work/work.ts:164</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
8
|
-
<p>模型网络最大请求并发数</p>
|
|
9
|
-
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="modelMaxScreenSpaceError" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagOptional">Optional</span> model<wbr/>Max<wbr/>Screen<wbr/>Space<wbr/>Error<a href="#modelMaxScreenSpaceError" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">model<wbr/>Max<wbr/>Screen<wbr/>Space<wbr/>Error<span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span></div><aside class="tsd-sources"><ul><li>Defined in lib/five/work/work.ts:167</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
10
|
-
<p>模型屏幕空间误差计算最大值</p>
|
|
11
|
-
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="transform" class="tsd-anchor"></a><h3 class="tsd-anchor-link">transform<a href="#transform" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">transform<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Matrix4</span></div><aside class="tsd-sources"><ul><li>Defined in lib/five/work/work.ts:152</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
12
|
-
<p>位姿修正</p>
|
|
13
|
-
</div></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="viewerRequestVolume" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span class="tsd-flag ts-flagOptional">Optional</span> viewer<wbr/>Request<wbr/>Volume<a href="#viewerRequestVolume" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">viewer<wbr/>Request<wbr/>Volume<span class="tsd-signature-symbol">?:</span> <a href="five.BoundingVolume.html" class="tsd-signature-type" data-tsd-kind="Interface">BoundingVolume</a></div><aside class="tsd-sources"><ul><li>Defined in lib/five/work/work.ts:155</li></ul></aside><div class="tsd-comment tsd-typography"><div class="lead">
|
|
14
|
-
<p>可观测区域</p>
|
|
15
|
-
</div></div></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="../modules/five.html">five</a><ul><li class=" tsd-kind-namespace tsd-parent-kind-module"><a href="../modules/five.SubscribeMixinType.html">Subscribe<wbr/>Mixin<wbr/>Type</a></li></ul></li><li class=" tsd-kind-module"><a href="../modules/gltf_loader.html">gltf-<wbr/>loader</a></li><li class=" tsd-kind-module"><a href="../modules/line.html">line</a></li><li class=" tsd-kind-module"><a href="../modules/react.html">react</a></li><li class=" tsd-kind-module"><a href="../modules/sticker.html">sticker</a></li><li class=" tsd-kind-module"><a href="../modules/vfx.html">vfx</a></li><li class=" tsd-kind-module"><a href="../modules/vue.html">vue</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="current tsd-kind-interface tsd-parent-kind-module"><a href="five.WorkOptions.html" class="tsd-kind-icon">Work<wbr/>Options</a><ul><li class="tsd-kind-property tsd-parent-kind-interface"><a href="five.WorkOptions.html#debug" class="tsd-kind-icon">debug</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="five.WorkOptions.html#modelMaxLevelOfDetail" class="tsd-kind-icon">model<wbr/>Max<wbr/>Level<wbr/>Of<wbr/>Detail</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="five.WorkOptions.html#modelMaxMemoryUsage" class="tsd-kind-icon">model<wbr/>Max<wbr/>Memory<wbr/>Usage</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="five.WorkOptions.html#modelMaxRequests" class="tsd-kind-icon">model<wbr/>Max<wbr/>Requests</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="five.WorkOptions.html#modelMaxScreenSpaceError" class="tsd-kind-icon">model<wbr/>Max<wbr/>Screen<wbr/>Space<wbr/>Error</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="five.WorkOptions.html#transform" class="tsd-kind-icon">transform</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="five.WorkOptions.html#viewerRequestVolume" class="tsd-kind-icon">viewer<wbr/>Request<wbr/>Volume</a></li></ul></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><li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</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><ul class="tsd-legend"><li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</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>
|
package/docs/modules.html
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>如视 Five SDK - v6.0.0-alpha.9</title><meta name="description" content="Documentation for 如视 Five SDK - v6.0.0-alpha.9"/><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 - v6.0.0-alpha.9</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"><h1> 如视 Five SDK - v6.0.0-alpha.9 </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>Modules</h3><ul class="tsd-index-list"><li class="tsd-kind-module"><a href="modules/five.html" class="tsd-kind-icon">five</a></li><li class="tsd-kind-module"><a href="modules/gltf_loader.html" class="tsd-kind-icon">gltf-<wbr/>loader</a></li><li class="tsd-kind-module"><a href="modules/line.html" class="tsd-kind-icon">line</a></li><li class="tsd-kind-module"><a href="modules/react.html" class="tsd-kind-icon">react</a></li><li class="tsd-kind-module"><a href="modules/sticker.html" class="tsd-kind-icon">sticker</a></li><li class="tsd-kind-module"><a href="modules/vfx.html" class="tsd-kind-icon">vfx</a></li><li class="tsd-kind-module"><a href="modules/vue.html" class="tsd-kind-icon">vue</a></li></ul></section></div></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class="current"><a href="modules.html">Modules</a></li><li class=" tsd-kind-module"><a href="modules/five.html">five</a></li><li class=" tsd-kind-module"><a href="modules/gltf_loader.html">gltf-<wbr/>loader</a></li><li class=" tsd-kind-module"><a href="modules/line.html">line</a></li><li class=" tsd-kind-module"><a href="modules/react.html">react</a></li><li class=" tsd-kind-module"><a href="modules/sticker.html">sticker</a></li><li class=" tsd-kind-module"><a href="modules/vfx.html">vfx</a></li><li class=" tsd-kind-module"><a href="modules/vue.html">vue</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><ul class="tsd-legend"><li class="tsd-kind-enum"><span class="tsd-kind-icon">Enumeration</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>
|
package/exporters/staticify.js
DELETED
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
const fs = require("fs");
|
|
2
|
-
const path = require("path");
|
|
3
|
-
const archiver = require("archiver");
|
|
4
|
-
const ejs = require("ejs");
|
|
5
|
-
const { parseWork } = require("@realsee/five/server");
|
|
6
|
-
|
|
7
|
-
function matchJsonpFunctionName(url) {
|
|
8
|
-
const regExps = [
|
|
9
|
-
/\.([0-9a-z]+)\.jsonp([\?\#].*)?$/i,
|
|
10
|
-
/jsonp_([0-9a-z]+)([\?\#].*)?$/i
|
|
11
|
-
];
|
|
12
|
-
for (const regExp of regExps) {
|
|
13
|
-
const matched = url.match(regExp);
|
|
14
|
-
if (matched) {
|
|
15
|
-
return "jsonp_" + matched[1];
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
return null;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
const CDN_PUBLIC_BASE = "//vrlab-public.ljcdn.com";
|
|
22
|
-
const CDN_IMAGE_BASE = "//vrlab-image4.ljcdn.com";
|
|
23
|
-
const CDN_TEST_PUBLIC_BASE = "//test-vr-public.realsee-cdn.com";
|
|
24
|
-
const CDN_TEST_IMAGE_BASE = "//test-vr-image.realsee-cdn.com";
|
|
25
|
-
function imageURL(url, size) {
|
|
26
|
-
if (url.indexOf(CDN_PUBLIC_BASE) >= 0) {
|
|
27
|
-
if (/\.(jpg|png)$/.test(url)) {
|
|
28
|
-
// 默认使用数据万象
|
|
29
|
-
// https://cloud.tencent.com/document/product/460/36544
|
|
30
|
-
if (size) {
|
|
31
|
-
let suffix = "?imageMogr2";
|
|
32
|
-
if (size) suffix += "/thumbnail/" + size + "x";
|
|
33
|
-
url = url.replace(CDN_PUBLIC_BASE, CDN_IMAGE_BASE) + suffix;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
if (url.indexOf(CDN_TEST_PUBLIC_BASE) >= 0) {
|
|
38
|
-
if (/\.(jpg|png)$/.test(url)) {
|
|
39
|
-
// 默认使用数据万象
|
|
40
|
-
// https://cloud.tencent.com/document/product/460/36544
|
|
41
|
-
if (size) {
|
|
42
|
-
let suffix = "?imageMogr2";
|
|
43
|
-
if (size) suffix += "/thumbnail/" + size + "x";
|
|
44
|
-
url = url.replace(CDN_TEST_PUBLIC_BASE, CDN_TEST_IMAGE_BASE) + suffix;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
return url;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
async function download(url, jsonpHandleKey) {
|
|
52
|
-
const request = /^https\:/.test(url) ? require("https") : require("http");
|
|
53
|
-
return new Promise((resolve, reject) => {
|
|
54
|
-
const req = request.get(url, res => {
|
|
55
|
-
const mime = res.headers['content-type'];
|
|
56
|
-
const buffers = [];
|
|
57
|
-
|
|
58
|
-
res.on('data', chunk => buffers.push(chunk));
|
|
59
|
-
res.on('end', () => {
|
|
60
|
-
const contents = Buffer.concat(buffers);
|
|
61
|
-
if (jsonpHandleKey) {
|
|
62
|
-
const dataURL = `data:${mime};base64,${contents.toString('base64')}`;
|
|
63
|
-
const jsopContents = `window[${JSON.stringify(jsonpHandleKey)}] && window[${JSON.stringify(jsonpHandleKey)}](${JSON.stringify(dataURL)})`;
|
|
64
|
-
resolve(Buffer.from(jsopContents));
|
|
65
|
-
} else {
|
|
66
|
-
resolve(Buffer.from(contents));
|
|
67
|
-
}
|
|
68
|
-
})
|
|
69
|
-
res.on("error", () => reject(new Error(`fetch ${url} got error`)));
|
|
70
|
-
});
|
|
71
|
-
req.on("error", () => reject(new Error(`fetch ${url} got error`)));
|
|
72
|
-
})
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
const template = `
|
|
76
|
-
<!DOCTYPE html>
|
|
77
|
-
<html lang="en">
|
|
78
|
-
<head>
|
|
79
|
-
<meta charset="UTF-8">
|
|
80
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
81
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
82
|
-
<title>REALSEE PREVIEW</title>
|
|
83
|
-
<style>
|
|
84
|
-
* { margin: 0; padding: 0; }
|
|
85
|
-
html, body { height: 100%; width: 100%; overflow: hidden; }
|
|
86
|
-
#app { position: fixed; top: 0; left: 0; right: 0; bottom: 0; overflow: hidden; }
|
|
87
|
-
.buttons { position: fixed; top: 10px; left: 10px; pointer-events: none; }
|
|
88
|
-
.buttons h3 { margin-top: 10px; text-shadow: 0 0 2px rgba(255, 255, 255, 0.5); }
|
|
89
|
-
.buttons button { pointer-events: auto; display: block; font-size: 14px; color: #FFF; background: #5a6268; padding: 3px 10px; border: 1px solid #333; margin-right: 2px; border-radius: 2px; cursor: pointer; margin-top: 10px; }
|
|
90
|
-
.buttons button:active { background: #333; }
|
|
91
|
-
</style>
|
|
92
|
-
<script src="./three.min.js"></script>
|
|
93
|
-
<script src="./five.js"></script>
|
|
94
|
-
<script>const workJSON = <%- JSON.stringify(work_json) %></script>
|
|
95
|
-
</head>
|
|
96
|
-
<body>
|
|
97
|
-
<!-- 试图渲染容器 -->
|
|
98
|
-
<div id="app"></div>
|
|
99
|
-
<script>
|
|
100
|
-
const five = new FiveSDK.Five();
|
|
101
|
-
five.appendTo(document.getElementById("app"));
|
|
102
|
-
const work = FiveSDK.parseWork(workJSON, { baseURL: "./", shortPath: <%- JSON.stringify(short_path) %>, jsonp: <%- JSON.stringify(jsonp) %> });
|
|
103
|
-
five.load(work);
|
|
104
|
-
|
|
105
|
-
const modeButtons = [
|
|
106
|
-
{ mode: "Panorama", label: "全景模式" },
|
|
107
|
-
{ mode: "Floorplan", label: "模型纵览模式" },
|
|
108
|
-
{ mode: "Topview", label: "模型俯视模式" },
|
|
109
|
-
{ mode: "Model", label: "模型漫游模式" },
|
|
110
|
-
];
|
|
111
|
-
|
|
112
|
-
const buttons = document.createElement("div");
|
|
113
|
-
buttons.className = "buttons";
|
|
114
|
-
document.body.appendChild(buttons);
|
|
115
|
-
buttons.appendChild(document.createElement("h3")).innerHTML = "模式控制";
|
|
116
|
-
|
|
117
|
-
// 模态按钮
|
|
118
|
-
for (let i = 0; i < modeButtons.length; i++) {
|
|
119
|
-
const button = document.createElement("button");
|
|
120
|
-
button.innerHTML = modeButtons[i].label;
|
|
121
|
-
button.addEventListener('click', () => {
|
|
122
|
-
// 通过 changeMode 方法可以切换模态
|
|
123
|
-
five.changeMode(FiveSDK.Five.Mode[modeButtons[i].mode]);
|
|
124
|
-
});
|
|
125
|
-
buttons.appendChild(button);
|
|
126
|
-
}
|
|
127
|
-
window.addEventListener("resize", () => five.refresh(), false);
|
|
128
|
-
</script>
|
|
129
|
-
</body>
|
|
130
|
-
</html>
|
|
131
|
-
`;
|
|
132
|
-
|
|
133
|
-
function getThreeJsBuffer() {
|
|
134
|
-
let tempPath = path.resolve(__dirname);
|
|
135
|
-
while (!(tempPath === '/' || tempPath === ".")) {
|
|
136
|
-
const threeFilePath = path.join(tempPath, "node_modules/three/build/three.min.js");
|
|
137
|
-
if (fs.existsSync(threeFilePath)) {
|
|
138
|
-
return fs.readFileSync(threeFilePath);
|
|
139
|
-
}
|
|
140
|
-
tempPath = path.dirname(tempPath);
|
|
141
|
-
}
|
|
142
|
-
throw new Error("three.js is not found");
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
function getFiveJsBuffer() {
|
|
146
|
-
return fs.readFileSync(path.join(__dirname, "../umd/five.js"));
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
async function staticify(work, output, shortPath = false, jsonp = false, preview = true) {
|
|
150
|
-
const zipFilename = /\.zip$/.test(output) ? output : output + ".zip";
|
|
151
|
-
const outputStream = fs.createWriteStream(zipFilename);
|
|
152
|
-
const archive = archiver("zip", { zlib: { level: 9 } });
|
|
153
|
-
archive.on("error", (err) => { throw err; });
|
|
154
|
-
outputStream.on("close", function() {
|
|
155
|
-
console.log(`zip ${archive.pointer()} total bytes`);
|
|
156
|
-
console.log(`dist ${zipFilename}`);
|
|
157
|
-
});
|
|
158
|
-
archive.pipe(outputStream);
|
|
159
|
-
|
|
160
|
-
const resources = [];
|
|
161
|
-
const workJSONObject = JSON.parse(fs.readFileSync(work, "utf8"));
|
|
162
|
-
parseWork(workJSONObject, { shortPath, jsonp }, (origin, _, relative, type) => {
|
|
163
|
-
resources.push({ origin, relative, type });
|
|
164
|
-
});
|
|
165
|
-
|
|
166
|
-
const textureCount = resources.filter(({ type }) => type === "texture").length;
|
|
167
|
-
let textureSize;
|
|
168
|
-
if (textureCount > 50) {
|
|
169
|
-
textureSize = 64;
|
|
170
|
-
} else if (textureCount > 40) {
|
|
171
|
-
textureSize = 128;
|
|
172
|
-
} else if (textureCount > 30) {
|
|
173
|
-
textureSize = 256;
|
|
174
|
-
} else if (textureCount > 15) {
|
|
175
|
-
textureSize = 512;
|
|
176
|
-
} else if (textureCount > 10) {
|
|
177
|
-
textureSize = 1024;
|
|
178
|
-
}
|
|
179
|
-
if (textureSize) {
|
|
180
|
-
for (const resource of resources) {
|
|
181
|
-
if (resource.type === "texture") {
|
|
182
|
-
resource.origin = imageURL(resource.origin, textureSize);
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
for (const { origin, relative } of resources) {
|
|
187
|
-
const buffer = await download(origin, matchJsonpFunctionName(relative));
|
|
188
|
-
console.log(`${origin} -> ${relative}`);
|
|
189
|
-
archive.append(buffer, { name: relative });
|
|
190
|
-
}
|
|
191
|
-
archive.append(fs.readFileSync(work), { name: "work.json" });
|
|
192
|
-
|
|
193
|
-
if (preview) {
|
|
194
|
-
archive.append(getFiveJsBuffer(), { name: "five.js" });
|
|
195
|
-
archive.append(getThreeJsBuffer(), { name: "three.min.js" });
|
|
196
|
-
|
|
197
|
-
const data = {
|
|
198
|
-
work_json: workJSONObject,
|
|
199
|
-
short_path: Boolean(shortPath),
|
|
200
|
-
jsonp: Boolean(jsonp),
|
|
201
|
-
};
|
|
202
|
-
|
|
203
|
-
const html = typeof preview === 'string' ? ejs.render(fs.readFileSync(preview, "utf8"), data) : ejs.render(template, data);
|
|
204
|
-
archive.append(html, { name: "index.html" });
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
archive.finalize();
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
module.exports = staticify;
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
const fs = require("fs");
|
|
4
|
-
const path = require("path");
|
|
5
|
-
const child_process = require('child_process');
|
|
6
|
-
const copyfiles = require("copyfiles");
|
|
7
|
-
const glob = require("glob");
|
|
8
|
-
|
|
9
|
-
function isObject(object) {
|
|
10
|
-
return object !== null && typeof object === "object" && !Array.isArray(object);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
function deepMerge(object, anotherOject) {
|
|
14
|
-
if (!isObject(object) || !isObject(anotherOject)) {
|
|
15
|
-
return object;
|
|
16
|
-
}
|
|
17
|
-
for (let name in anotherOject) {
|
|
18
|
-
if (!anotherOject.hasOwnProperty(name)) {
|
|
19
|
-
continue;
|
|
20
|
-
}
|
|
21
|
-
let subObject = object[name];
|
|
22
|
-
let anotherSubObject = anotherOject[name];
|
|
23
|
-
|
|
24
|
-
if (isObject(anotherSubObject)) {
|
|
25
|
-
anotherSubObject = Object.assign({}, anotherSubObject);
|
|
26
|
-
}
|
|
27
|
-
if (
|
|
28
|
-
!object.hasOwnProperty(name) ||
|
|
29
|
-
!isObject(subObject) ||
|
|
30
|
-
!isObject(anotherSubObject)
|
|
31
|
-
) {
|
|
32
|
-
object[name] = anotherSubObject;
|
|
33
|
-
continue;
|
|
34
|
-
}
|
|
35
|
-
deepMerge(subObject, anotherSubObject);
|
|
36
|
-
}
|
|
37
|
-
return object;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
function deleteTsNocheck(filename) {
|
|
41
|
-
let content = fs.readFileSync(filename, "utf8");
|
|
42
|
-
content = content.replace(/\/\/\s*\@ts\-nocheck/g, "");
|
|
43
|
-
fs.writeFileSync(filename, content, "utf8");
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
const distDir = process.cwd();
|
|
47
|
-
const templateDir = path.join(__dirname, "../templates/plugin");
|
|
48
|
-
process.chdir(templateDir);
|
|
49
|
-
|
|
50
|
-
let existsPackageJSONContent;
|
|
51
|
-
try {
|
|
52
|
-
existsPackageJSONContent = fs.readFileSync(path.join(distDir, "package.json"));
|
|
53
|
-
} catch (error) {}
|
|
54
|
-
|
|
55
|
-
const packageJSON = deepMerge(
|
|
56
|
-
JSON.parse(fs.readFileSync("package.json", "utf8")),
|
|
57
|
-
JSON.parse(existsPackageJSONContent || "{}"),
|
|
58
|
-
);
|
|
59
|
-
|
|
60
|
-
const title = "FivePluginInit";
|
|
61
|
-
console.log(`${title}: Modify package.json`);
|
|
62
|
-
fs.writeFileSync(path.join(distDir, "package.json"), JSON.stringify(packageJSON, null, " "), "utf8");
|
|
63
|
-
|
|
64
|
-
console.log(`${title}: Generate files`);
|
|
65
|
-
copyfiles(["**/*.*", distDir], {
|
|
66
|
-
soft: true,
|
|
67
|
-
all: true,
|
|
68
|
-
exclude: ["package.json"],
|
|
69
|
-
}, () => {
|
|
70
|
-
const tsFiles = glob.sync(`**/*.ts?(x)`, { cwd: distDir });
|
|
71
|
-
for (const filename of tsFiles) {
|
|
72
|
-
deleteTsNocheck(path.join(distDir, filename));
|
|
73
|
-
}
|
|
74
|
-
console.log(`${title}: Run npm install`);
|
|
75
|
-
child_process.execSync(`npm install`, { stdio: 'inherit', cwd: distDir });
|
|
76
|
-
console.log(`${title}: Initialization complete`);
|
|
77
|
-
console.log(`${title}: Hint: npm run doc 生成使用文档`);
|
|
78
|
-
console.log(`${title}: Hint: npm run example 开发环境,运行样例`);
|
|
79
|
-
console.log(`${title}: Hint: npm run build:typescript 打包 npm 包`);
|
|
80
|
-
console.log(`${title}: Hint: npm run build:bundle 打包 bundle 包`);
|
|
81
|
-
console.log(`${title}: Hint: npm run build:all 生成使用文档并打包所有包`);
|
|
82
|
-
console.log(`${title}: Have a good day (^_^)v`);
|
|
83
|
-
});
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
const fs = require("fs");
|
|
4
|
-
const path = require("path");
|
|
5
|
-
const child_process = require('child_process');
|
|
6
|
-
const copyfiles = require("copyfiles");
|
|
7
|
-
const glob = require("glob");
|
|
8
|
-
|
|
9
|
-
function isObject(object) {
|
|
10
|
-
return object !== null && typeof object === "object" && !Array.isArray(object);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
function deepMerge(object, anotherOject) {
|
|
14
|
-
if (!isObject(object) || !isObject(anotherOject)) {
|
|
15
|
-
return object;
|
|
16
|
-
}
|
|
17
|
-
for (let name in anotherOject) {
|
|
18
|
-
if (!anotherOject.hasOwnProperty(name)) {
|
|
19
|
-
continue;
|
|
20
|
-
}
|
|
21
|
-
let subObject = object[name];
|
|
22
|
-
let anotherSubObject = anotherOject[name];
|
|
23
|
-
|
|
24
|
-
if (isObject(anotherSubObject)) {
|
|
25
|
-
anotherSubObject = Object.assign({}, anotherSubObject);
|
|
26
|
-
}
|
|
27
|
-
if (
|
|
28
|
-
!object.hasOwnProperty(name) ||
|
|
29
|
-
!isObject(subObject) ||
|
|
30
|
-
!isObject(anotherSubObject)
|
|
31
|
-
) {
|
|
32
|
-
object[name] = anotherSubObject;
|
|
33
|
-
continue;
|
|
34
|
-
}
|
|
35
|
-
deepMerge(subObject, anotherSubObject);
|
|
36
|
-
}
|
|
37
|
-
return object;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
function deleteTsNocheck(filename) {
|
|
41
|
-
let content = fs.readFileSync(filename, "utf8");
|
|
42
|
-
content = content.replace(/\/\/\s*\@ts\-nocheck/g, "");
|
|
43
|
-
fs.writeFileSync(filename, content, "utf8");
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
const distDir = process.cwd();
|
|
47
|
-
const templateDir = path.join(__dirname, "../templates/quick-start");
|
|
48
|
-
process.chdir(templateDir);
|
|
49
|
-
|
|
50
|
-
let existsPackageJSONContent;
|
|
51
|
-
try {
|
|
52
|
-
existsPackageJSONContent = fs.readFileSync(path.join(distDir, "package.json"));
|
|
53
|
-
} catch (error) {}
|
|
54
|
-
|
|
55
|
-
const packageJSON = deepMerge(
|
|
56
|
-
JSON.parse(fs.readFileSync("package.json", "utf8")),
|
|
57
|
-
JSON.parse(existsPackageJSONContent || "{}"),
|
|
58
|
-
);
|
|
59
|
-
|
|
60
|
-
const title = "FiveQuickStart";
|
|
61
|
-
console.log(`${title}: Modify package.json`);
|
|
62
|
-
fs.writeFileSync(path.join(distDir, "package.json"), JSON.stringify(packageJSON, null, " "), "utf8");
|
|
63
|
-
|
|
64
|
-
console.log(`${title}: Generate files`);
|
|
65
|
-
copyfiles(["**/*.*", distDir], {
|
|
66
|
-
soft: true,
|
|
67
|
-
all: true,
|
|
68
|
-
exclude: ["package.json"],
|
|
69
|
-
}, () => {
|
|
70
|
-
const tsFiles = glob.sync(`**/*.ts?(x)`, { cwd: distDir });
|
|
71
|
-
for (const filename of tsFiles) {
|
|
72
|
-
deleteTsNocheck(path.join(distDir, filename));
|
|
73
|
-
}
|
|
74
|
-
console.log(`${title}: Run npm install`);
|
|
75
|
-
child_process.execSync(`npm install`, { stdio: 'inherit', cwd: distDir });
|
|
76
|
-
console.log(`${title}: Initialization complete`);
|
|
77
|
-
console.log(`${title}: Hint: npm run dev 开发环境,运行样例`);
|
|
78
|
-
console.log(`${title}: Hint: npm run build 打包 bundle 包`);
|
|
79
|
-
console.log(`${title}: Have a good day (^_^)v`);
|
|
80
|
-
});
|