@realsee/five 6.2.0-alpha.1 → 6.2.0-alpha.2
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/docs/assets/icons.js +17 -14
- package/docs/assets/icons.svg +1 -1
- package/docs/assets/main.js +5 -4
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/assets/style.css +67 -31
- package/docs/classes/five.AnimationFrameLoop.html +5 -5
- package/docs/classes/five.BoxBoundingVolume.html +2 -2
- package/docs/classes/five.Camera.html +6 -6
- package/docs/classes/five.CullingVolume.html +2 -2
- package/docs/classes/five.Fetcher.html +2 -2
- package/docs/classes/five.Five.html +100 -93
- package/docs/classes/five.InternalWebGLRenderer.html +2 -2
- package/docs/classes/five.IntersectMesh.html +3 -3
- package/docs/classes/five.Model.html +25 -22
- package/docs/classes/five.ModelViewLayer.html +6 -6
- package/docs/classes/five.NetworkAbortError.html +2 -2
- package/docs/classes/five.NetworkFirbiddenError.html +2 -2
- package/docs/classes/five.NetworkResponseError.html +2 -2
- package/docs/classes/five.NetworkSubscribe.html +16 -15
- package/docs/classes/five.NetworkTimeoutError.html +2 -2
- package/docs/classes/five.PBMContainer.html +5 -5
- package/docs/classes/five.PBMGroup.html +3 -3
- package/docs/classes/five.PBMMesh.html +3 -3
- package/docs/classes/five.PBMMeshMaterial.html +9 -5
- package/docs/classes/five.PanoCircleMesh.html +5 -5
- package/docs/classes/five.PanoCircleMeshCustom.html +5 -5
- package/docs/classes/five.PanoCircleMeshSolid.html +5 -5
- package/docs/classes/five.RegionBoundingVolume.html +2 -2
- package/docs/classes/five.Scene.html +5 -3
- package/docs/classes/five.SphereBoundingVolume.html +2 -2
- package/docs/classes/five.Subscribe.html +14 -13
- package/docs/classes/five.TextureLoader.html +2 -2
- package/docs/classes/five.Tile.html +3 -2
- package/docs/classes/five.Tile3DModel.html +4 -2
- package/docs/classes/five.TileCache.html +2 -2
- package/docs/classes/five.TileCubeTextureTarget.html +5 -3
- package/docs/classes/five.TileNode.html +2 -2
- package/docs/classes/five.TileRequestScheduler.html +6 -9
- package/docs/classes/five.Tileset.html +4 -4
- package/docs/classes/five.Work.html +17 -11
- package/docs/classes/five.XRButton.html +2 -2
- package/docs/classes/gltf_loader.DDSLoader.html +2 -2
- package/docs/classes/gltf_loader.DRACOLoader.html +2 -2
- package/docs/classes/gltf_loader.GLTFLoader.html +10 -9
- package/docs/classes/gltf_loader.GLTFObject.html +5 -5
- package/docs/classes/gltf_loader.GLTFParser.html +2 -2
- package/docs/classes/gltf_loader.THREEGLTFLoader.html +2 -2
- package/docs/classes/line.Line.html +2 -2
- package/docs/classes/line.LineGeometry.html +7 -2
- package/docs/classes/line.LineMaterial.html +2 -2
- package/docs/classes/line.LineSegmentsGeometry.html +7 -2
- package/docs/classes/line.THREE_Line2.html +2 -2
- package/docs/classes/line.THREE_LineSegments2.html +2 -2
- package/docs/classes/plugins-1.BackgroundPluginController.html +38 -0
- package/docs/classes/plugins-1.BasePlugin.Controller.html +39 -0
- package/docs/classes/plugins-1.ItemMaskController.html +36 -0
- package/docs/classes/plugins-1.OrientationPluginController.html +47 -0
- package/docs/classes/plugins-1.RoundedBoxGeometry.html +3 -0
- package/docs/classes/react.Store.html +9 -8
- package/docs/classes/sticker.Sticker.html +9 -8
- package/docs/classes/vfx.Airflow.html +2 -2
- package/docs/classes/vfx.Flame.html +2 -2
- package/docs/classes/vfx.Particle.html +10 -10
- package/docs/classes/vfx.SpotLight.html +2 -2
- package/docs/documents/coordinate.html +9 -0
- package/docs/documents/five.FivePlugin.plugins.html +77 -0
- package/docs/documents/five.Pose.coordinate.html +9 -0
- package/docs/documents/plugins.html +77 -0
- package/docs/documents/react_component.html +32 -0
- package/docs/enums/five.VolumePlaneIntersect.html +2 -2
- package/docs/enums/plugins-1.BackgroundPluginType.WarningCodeType.html +2 -0
- package/docs/functions/five.defaultImageURLTransform.html +2 -2
- package/docs/functions/five.getViewportScale.html +1 -1
- package/docs/functions/five.imageSupport.html +1 -1
- package/docs/functions/five.isPanoId.html +1 -1
- package/docs/functions/five.loadAt3d.html +1 -1
- package/docs/functions/five.loadB3dm.html +1 -1
- package/docs/functions/five.loadDome.html +1 -1
- package/docs/functions/five.loadDomez.html +1 -1
- package/docs/functions/five.loadGlb.html +1 -1
- package/docs/functions/five.loadPbm.html +1 -1
- package/docs/functions/five.loadPnts.html +1 -1
- package/docs/functions/five.panoEqual.html +1 -1
- package/docs/functions/five.panoParse.html +1 -1
- package/docs/functions/five.panoStringify.html +1 -1
- package/docs/functions/five.parseWork.html +3 -3
- package/docs/functions/plugins-1.BackgroundPlugin.html +1 -0
- package/docs/functions/plugins-1.ItemMaskPlugin.html +1 -0
- package/docs/functions/plugins-1.OrientationPlugin.html +1 -0
- package/docs/functions/react.FiveCanvas.html +6 -6
- package/docs/functions/react.createFiveFeature.html +1 -1
- package/docs/functions/react.createFiveProvider.html +4 -3
- package/docs/functions/react.createStore.html +8 -8
- package/docs/functions/react.unsafe__useFiveInstance.html +4 -4
- package/docs/functions/react.useFiveAction.html +14 -8
- package/docs/functions/react.useFiveCameraDirection.html +2 -2
- package/docs/functions/react.useFiveCameraRaycaster.html +2 -2
- package/docs/functions/react.useFiveCurrentObserver.html +4 -3
- package/docs/functions/react.useFiveCurrentState.html +5 -4
- package/docs/functions/react.useFiveEventCallback.html +4 -3
- package/docs/functions/react.useFiveFloor.html +5 -4
- package/docs/functions/react.useFiveHelper.html +5 -4
- package/docs/functions/react.useFiveModelIntersectRaycaster.html +6 -4
- package/docs/functions/react.useFiveModelReadyState.html +2 -2
- package/docs/functions/react.useFiveProject2d.html +6 -4
- package/docs/functions/react.useFiveScene.html +7 -2
- package/docs/functions/react.useFiveSceneEffect.html +5 -4
- package/docs/functions/react.useFiveState.html +1 -1
- package/docs/functions/react.useFiveWork.html +7 -5
- package/docs/functions/react.withFive.html +1 -1
- package/docs/functions/vue.unsafe__useFiveInject.html +4 -4
- package/docs/functions/vue.useFiveAction.html +18 -10
- package/docs/functions/vue.useFiveCameraDirection.html +2 -2
- package/docs/functions/vue.useFiveCameraRaycaster.html +2 -2
- package/docs/functions/vue.useFiveCurrentObserver.html +4 -3
- package/docs/functions/vue.useFiveCurrentState.html +5 -4
- package/docs/functions/vue.useFiveEventCallback.html +4 -3
- package/docs/functions/vue.useFiveFloor.html +5 -4
- package/docs/functions/vue.useFiveHelper.html +5 -4
- package/docs/functions/vue.useFiveModel.html +2 -2
- package/docs/functions/vue.useFiveModelBounding.html +2 -2
- package/docs/functions/vue.useFiveModelIntersectRaycaster.html +6 -4
- package/docs/functions/vue.useFiveModelReadyState.html +2 -2
- package/docs/functions/vue.useFiveProject2d.html +6 -4
- package/docs/functions/vue.useFiveScene.html +2 -2
- package/docs/functions/vue.useFiveState.html +5 -4
- package/docs/functions/vue.useFiveWorks.html +7 -5
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +91 -65
- package/docs/interfaces/five.AddableObject.html +6 -6
- package/docs/interfaces/five.AjaxOptions.html +7 -7
- package/docs/interfaces/five.AnimationFrame.html +2 -2
- package/docs/interfaces/five.BaseEvent.html +2 -2
- package/docs/interfaces/five.BoundingVolume.html +2 -2
- package/docs/interfaces/five.CameraPose.html +2 -2
- package/docs/interfaces/five.ClipperParameter.html +2 -2
- package/docs/interfaces/five.EventCallback.html +70 -63
- package/docs/interfaces/five.FiveInitArgs.html +58 -52
- package/docs/interfaces/five.FiveLoadOptions.html +25 -25
- package/docs/interfaces/five.FloorplanControllerCustomInitArgs.html +14 -10
- package/docs/interfaces/five.GestureEvent.html +2 -2
- package/docs/interfaces/five.ImageOptions.html +9 -9
- package/docs/interfaces/five.ImageURLMappings.html +1 -1
- package/docs/interfaces/five.ImageURLOptions.html +8 -8
- package/docs/interfaces/five.IntersectEvent.html +2 -2
- package/docs/interfaces/five.IntersectMeshInterface.html +3 -3
- package/docs/interfaces/five.Intersection.html +3 -3
- package/docs/interfaces/five.MapviewControllerCustomInitArgs.html +16 -9
- package/docs/interfaces/five.ModeChangeEvent.html +2 -2
- package/docs/interfaces/five.ModelControllerCustomInitArgs.html +11 -11
- package/docs/interfaces/five.ModelEvent.html +2 -2
- package/docs/interfaces/five.ModelsEvent.html +2 -2
- package/docs/interfaces/five.MotionKeyframe.html +2 -2
- package/docs/interfaces/five.MovePanoOptions.html +15 -15
- package/docs/interfaces/five.NetworkOptions.html +6 -6
- package/docs/interfaces/five.NetworkResourceEvent.html +2 -2
- package/docs/interfaces/five.ObjectEvent.html +2 -2
- package/docs/interfaces/five.PBMPanoPicture.html +3 -3
- package/docs/interfaces/five.PBMParameters.html +4 -4
- package/docs/interfaces/five.PanoCircleMeshCustomOptions.html +2 -2
- package/docs/interfaces/five.PanoCircleMeshInterface.html +6 -6
- package/docs/interfaces/five.PanoCircleMeshOptions.html +2 -2
- package/docs/interfaces/five.PanoCircleMeshSolidOptions.html +2 -2
- package/docs/interfaces/five.PanoEvent.html +2 -2
- package/docs/interfaces/five.PanoTextureEvent.html +2 -2
- package/docs/interfaces/five.PanoramaControllerCustomInitArgs.html +22 -20
- package/docs/interfaces/five.PanoramaLikeControllerCustomInitArgs.html +11 -11
- package/docs/interfaces/five.Pose.html +5 -12
- package/docs/interfaces/five.RenderEvent.html +2 -2
- package/docs/interfaces/five.Scissor.html +5 -5
- package/docs/interfaces/five.State.html +7 -6
- package/docs/interfaces/five.StateEvent.html +2 -2
- 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 +10 -10
- package/docs/interfaces/five.Tile3DModelLoaderOptions.html +3 -3
- package/docs/interfaces/five.TileCubeNode.html +2 -2
- package/docs/interfaces/five.TileCubeTree.html +2 -2
- package/docs/interfaces/five.TileHeader.html +2 -2
- package/docs/interfaces/five.TilesetHeader.html +2 -2
- package/docs/interfaces/five.TilesetOptions.html +2 -2
- package/docs/interfaces/five.TopviewControllerCustomInitArgs.html +10 -6
- package/docs/interfaces/five.VRPanoramaControllerCustomInitArgs.html +20 -18
- package/docs/interfaces/five.WebXRAxesParams.html +2 -2
- package/docs/interfaces/five.WebXRControllerParams.html +2 -2
- package/docs/interfaces/five.WorkCubeImage.html +4 -4
- package/docs/interfaces/five.WorkImage.html +8 -8
- package/docs/interfaces/five.WorkInitial.html +10 -10
- package/docs/interfaces/five.WorkModel.html +6 -6
- package/docs/interfaces/five.WorkObserver.html +7 -7
- package/docs/interfaces/five.WorkResolvedObserver.html +7 -7
- package/docs/interfaces/five.WorkTile.html +2 -2
- package/docs/interfaces/five.WorkVideo.html +4 -4
- package/docs/interfaces/five.WorksEvent.html +2 -2
- package/docs/interfaces/five.XRControllerEvent.html +2 -2
- package/docs/interfaces/five.XRGestureEvent.html +2 -2
- package/docs/interfaces/five.XRPanoramaControllerCustomInitArgs.html +20 -18
- package/docs/interfaces/five.XRSessionEvent.html +2 -2
- package/docs/interfaces/gltf_loader.DDS.html +2 -2
- package/docs/interfaces/gltf_loader.GLTF.html +4 -4
- package/docs/interfaces/gltf_loader.GLTFReference.html +2 -2
- package/docs/interfaces/gltf_loader.THREEGLTF.html +2 -2
- package/docs/interfaces/plugins-1.BackgroundPluginType.Config.html +1 -0
- package/docs/interfaces/plugins-1.BackgroundPluginType.EventMap.html +20 -0
- package/docs/interfaces/plugins-1.BackgroundPluginType.Params.html +3 -0
- package/docs/interfaces/plugins-1.BackgroundPluginType.PluginDataItem.html +1 -0
- package/docs/interfaces/plugins-1.BasePlugin.BaseOptions.html +3 -0
- package/docs/interfaces/plugins-1.BasePlugin.Config.html +5 -0
- package/docs/interfaces/plugins-1.BasePlugin.State.html +8 -0
- package/docs/interfaces/plugins-1.BasePlugin.StateChangeParams.html +7 -0
- package/docs/interfaces/plugins-1.ItemMaskPluginType.Config.html +2 -0
- package/docs/interfaces/plugins-1.ItemMaskPluginType.EventMap.html +10 -0
- package/docs/interfaces/plugins-1.ItemMaskPluginType.ItemType.html +13 -0
- package/docs/interfaces/plugins-1.ItemMaskPluginType.MaskType.html +4 -0
- package/docs/interfaces/plugins-1.ItemMaskPluginType.Params.html +4 -0
- package/docs/interfaces/plugins-1.ItemMaskPluginType.State.html +14 -0
- package/docs/interfaces/plugins-1.OrientationPluginType.Config.html +4 -0
- package/docs/interfaces/plugins-1.OrientationPluginType.EventMap.html +10 -0
- package/docs/interfaces/plugins-1.OrientationPluginType.Params.html +4 -0
- package/docs/interfaces/plugins-1.OrientationPluginType.State.html +10 -0
- package/docs/interfaces/react.FiveActionReactCallbacks.html +11 -10
- package/docs/interfaces/react.FiveCanvasProps.html +5 -0
- package/docs/interfaces/react.FiveInjectionTypes.html +145 -56
- package/docs/interfaces/react.PropTypeOfFiveFeatures.html +2 -2
- package/docs/interfaces/sticker.IntersectionLike.html +6 -6
- package/docs/interfaces/vfx.ParticleArgs.html +9 -9
- package/docs/interfaces/vfx.ParticleTweenKeyframe.html +2 -2
- package/docs/interfaces/vue.FiveActionVueCallbacks.html +11 -11
- package/docs/modules/five.SubscribeMixinType.html +2 -2
- package/docs/modules/five.html +2 -2
- package/docs/modules/gltf_loader.html +2 -2
- package/docs/modules/line.html +2 -2
- package/docs/modules/plugins-1.BackgroundPluginType.html +10 -0
- package/docs/modules/plugins-1.BasePlugin.html +7 -0
- package/docs/modules/plugins-1.ItemMaskPluginType.html +9 -0
- package/docs/modules/plugins-1.OrientationPluginType.html +7 -0
- package/docs/modules/plugins-1.html +12 -0
- package/docs/modules/react.html +3 -2
- package/docs/modules/sticker.html +2 -2
- package/docs/modules/vfx.html +2 -2
- package/docs/modules/vue.html +2 -2
- package/docs/types/five.AjaxResponseType.html +1 -1
- package/docs/types/five.AjaxResponseTypeMapping.html +1 -1
- package/docs/types/five.BoundingVolumeJson.html +1 -1
- package/docs/types/five.BoxBoundingVolumeJson.html +1 -1
- package/docs/types/five.ControllerCustomInitTypes.html +1 -1
- package/docs/types/five.ControllerEventTypes.html +2 -2
- package/docs/types/five.EventTypes.html +3 -3
- package/docs/types/five.FivePlugin.html +2 -69
- package/docs/types/five.FivePluginInit.html +2 -2
- package/docs/types/five.FivePluginInstance.html +2 -2
- package/docs/types/five.GestureTypes.html +1 -1
- package/docs/types/five.LegacyEventType.html +66 -59
- package/docs/types/five.LooseWork.html +1 -1
- package/docs/types/five.LooseWorkInitial.html +1 -1
- package/docs/types/five.LooseWorkModel.html +1 -1
- package/docs/types/five.LooseWorkObserver.html +1 -1
- package/docs/types/five.LooseWorkPanorama.html +1 -1
- package/docs/types/five.LooseWorkVideo.html +1 -1
- package/docs/types/five.LooseWorkWithExtrinsics.html +2 -2
- package/docs/types/five.Mirror.html +1 -1
- package/docs/types/five.Mode.html +9 -2
- package/docs/types/five.ModelMaterialValues.html +1 -1
- package/docs/types/five.Models.html +6 -6
- package/docs/types/five.MotionValue.html +1 -1
- package/docs/types/five.MovePanoEffect.html +3 -3
- package/docs/types/five.NetWorkMeta.html +1 -1
- package/docs/types/five.NetworkError.html +1 -1
- package/docs/types/five.NetworkErrorCallback.html +1 -1
- package/docs/types/five.NetworkProgressCallback.html +1 -1
- package/docs/types/five.NetworkResponse.html +1 -1
- package/docs/types/five.NetworkState.html +1 -1
- package/docs/types/five.NetworkSuccessCallback.html +1 -1
- package/docs/types/five.NetworkType.html +1 -1
- package/docs/types/five.Pano.html +1 -1
- package/docs/types/five.PanoId.html +1 -1
- package/docs/types/five.ParseWorkOptions.html +6 -6
- package/docs/types/five.ParsedResultType.html +1 -1
- package/docs/types/five.PostProcessingType.html +1 -1
- package/docs/types/five.RegionBoundingVolumeJson.html +1 -1
- package/docs/types/five.SphereBoundingVolumeJson.html +1 -1
- package/docs/types/five.SubscribeEventMap.html +1 -1
- package/docs/types/five.TileContentData.html +1 -1
- package/docs/types/five.TileRequest.html +2 -2
- package/docs/types/five.TileRequestResult.html +1 -1
- package/docs/types/five.TilesetFrameState.html +1 -1
- package/docs/types/five.WebXRControllerKey.html +1 -1
- package/docs/types/five.WebXRControllerType.html +1 -1
- package/docs/types/five.Works.html +1 -1
- package/docs/types/line.LineMaterialParameters.html +1 -1
- package/docs/types/plugins-1.BackgroundPluginType.Mirror.html +1 -0
- package/docs/types/plugins-1.BackgroundPluginType.Mode.html +1 -0
- package/docs/types/plugins-1.BackgroundPluginType.PluginData.html +1 -0
- package/docs/types/plugins-1.BackgroundPluginType.State.html +1 -0
- package/docs/types/plugins-1.BasePlugin.EventMap.html +6 -0
- package/docs/types/plugins-1.ItemMaskPluginType.PluginData.html +1 -0
- package/docs/types/plugins-1.ItemMaskPluginType.ServerData.html +1 -0
- package/docs/types/{plugins.OrientationPluginType.PluginData.html → plugins-1.OrientationPluginType.PluginData.html} +1 -1
- package/docs/types/{plugins.OrientationPluginType.ServerData.html → plugins-1.OrientationPluginType.ServerData.html} +1 -1
- package/docs/types/react.FiveInjectionActionFeature.html +1 -1
- package/docs/types/react.FiveInjectionDataFeature.html +1 -1
- package/docs/types/react.FiveInjectionFeature.html +1 -1
- package/docs/types/react.FiveProviderPropTypes.html +1 -1
- package/docs/types/react.FiveProviderType.html +1 -1
- package/docs/types/react.StoreActionMapHanlder.html +1 -1
- package/docs/types/react.StoreActionMapType.html +1 -1
- package/docs/types/react.StoreProviderType.html +1 -1
- package/docs/types/react.StoreValueMapType.html +1 -1
- package/docs/types/vfx.ParticleType.html +1 -1
- package/docs/types/vue.FiveModelIntersectRaycaster.html +1 -1
- package/docs/types/vue.FiveProviderComponent.html +1 -1
- package/docs/types/vue.Project2d.html +1 -1
- package/docs/variables/five.PROXY_CONTROLLER_EVENT_NAMES.html +1 -1
- package/docs/variables/five.defaultPbmParameters.html +1 -1
- package/docs/variables/react.INJECTION_PROPNAME.html +1 -1
- package/docs/variables/vue.FiveCanvas.html +9 -8
- package/docs/variables/vue.FiveProvider.html +7 -6
- package/five/index.d.ts +51 -21
- package/five/index.js +81 -81
- package/five/index.mjs +5731 -5664
- package/gltf-loader/index.js +3 -3
- package/gltf-loader/index.mjs +3 -3
- package/line/index.js +3 -3
- package/line/index.mjs +3 -3
- package/package.json +2 -2
- package/plugins/index.d.ts +14 -17
- package/plugins/index.js +3 -3
- package/plugins/index.mjs +4 -4
- package/react/index.d.ts +9 -8
- package/react/index.js +2 -2
- package/react/index.mjs +2 -2
- package/sticker/index.js +3 -3
- package/sticker/index.mjs +3 -3
- package/umd/five-gltf-loader.js +3 -3
- package/umd/five-line.js +3 -3
- package/umd/five-plugins.js +3 -3
- package/umd/five-react.js +2 -2
- package/umd/five-sticker.js +3 -3
- package/umd/five-vfx.js +2 -2
- package/umd/five-vue.js +2 -2
- package/umd/five.js +52 -52
- package/vfx/index.js +2 -2
- package/vfx/index.mjs +2 -2
- package/vue/index.js +2 -2
- package/vue/index.mjs +2 -2
- package/docs/classes/plugins.BackgroundPluginController.html +0 -37
- package/docs/classes/plugins.BasePlugin.Controller.html +0 -38
- package/docs/classes/plugins.ItemMaskController.html +0 -37
- package/docs/classes/plugins.OrientationPluginController.html +0 -49
- package/docs/classes/plugins.RoundedBoxGeometry.html +0 -3
- package/docs/enums/plugins.BackgroundPluginType.WarningCodeType.html +0 -2
- package/docs/functions/plugins.BackgroundPlugin.html +0 -1
- package/docs/functions/plugins.ItemMaskPlugin.html +0 -1
- package/docs/functions/plugins.OrientationPlugin.html +0 -1
- package/docs/interfaces/plugins.BackgroundPluginType.Config.html +0 -1
- package/docs/interfaces/plugins.BackgroundPluginType.EventMap.html +0 -20
- package/docs/interfaces/plugins.BackgroundPluginType.Params.html +0 -3
- package/docs/interfaces/plugins.BackgroundPluginType.PluginDataItem.html +0 -1
- package/docs/interfaces/plugins.BasePlugin.BaseOptions.html +0 -3
- package/docs/interfaces/plugins.BasePlugin.Config.html +0 -5
- package/docs/interfaces/plugins.BasePlugin.State.html +0 -8
- package/docs/interfaces/plugins.ItemMaskPluginType.Config.html +0 -2
- package/docs/interfaces/plugins.ItemMaskPluginType.EventMap.html +0 -10
- package/docs/interfaces/plugins.ItemMaskPluginType.ItemType.html +0 -13
- package/docs/interfaces/plugins.ItemMaskPluginType.MaskType.html +0 -4
- package/docs/interfaces/plugins.ItemMaskPluginType.Params.html +0 -4
- package/docs/interfaces/plugins.ItemMaskPluginType.State.html +0 -14
- package/docs/interfaces/plugins.OrientationPluginType.Config.html +0 -4
- package/docs/interfaces/plugins.OrientationPluginType.EventMap.html +0 -10
- package/docs/interfaces/plugins.OrientationPluginType.Params.html +0 -4
- package/docs/interfaces/plugins.OrientationPluginType.State.html +0 -10
- package/docs/media/topview.jpg +0 -0
- package/docs/media/typescript.jpg +0 -0
- package/docs/modules/plugins.BackgroundPluginType.html +0 -10
- package/docs/modules/plugins.BasePlugin.html +0 -6
- package/docs/modules/plugins.ItemMaskPluginType.html +0 -9
- package/docs/modules/plugins.OrientationPluginType.html +0 -7
- package/docs/modules/plugins.html +0 -12
- package/docs/types/plugins.BackgroundPluginType.Mirror.html +0 -1
- package/docs/types/plugins.BackgroundPluginType.Mode.html +0 -1
- package/docs/types/plugins.BackgroundPluginType.PluginData.html +0 -1
- package/docs/types/plugins.BackgroundPluginType.State.html +0 -1
- package/docs/types/plugins.BasePlugin.EventMap.html +0 -6
- package/docs/types/plugins.ItemMaskPluginType.PluginData.html +0 -1
- package/docs/types/plugins.ItemMaskPluginType.ServerData.html +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta
|
|
2
|
-
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">callback</span>: <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">scene</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><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-symbol">)</span></span><div class="tsd-comment tsd-typography"><p>获取 Five 的 Scene 的回调函数</p>
|
|
3
|
-
</div><div class="tsd-comment tsd-typography"></div><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">scene</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><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></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">scene</span>: <a href="../classes/five.Scene.html" class="tsd-signature-type tsd-kind-class">Scene</a></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</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><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span></h4></li></ul></li></ul></li><li><span><code class="tsd-tag
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>useFiveSceneEffect | 如视 Five SDK</title><meta name="description" content="Documentation for 如视 Five SDK"/><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 defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></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</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../index.html">如视 Five SDK</a></li><li><a href="../modules/react.html">react</a></li><li><a href="react.useFiveSceneEffect.html">useFiveSceneEffect</a></li></ul><h1>Function useFiveSceneEffect</h1></div><section class="tsd-panel"><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="useFiveSceneEffect" class="tsd-anchor"></a><span class="tsd-kind-call-signature">use<wbr/>Five<wbr/>Scene<wbr/>Effect</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callback</span>, <span class="tsd-kind-parameter">deps</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><a href="#useFiveSceneEffect" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Five React Hooks: 操作 Five 的 Scene</p>
|
|
2
|
+
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">callback</span>: <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">scene</span><span class="tsd-signature-symbol">: </span><a href="../classes/five.Scene.html" class="tsd-signature-type tsd-kind-class">Scene</a><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><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-symbol">)</span></span><div class="tsd-comment tsd-typography"><p>获取 Five 的 Scene 的回调函数</p>
|
|
3
|
+
</div><div class="tsd-comment tsd-typography"></div><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature"><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">scene</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><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></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">scene</span>: <a href="../classes/five.Scene.html" class="tsd-signature-type tsd-kind-class">Scene</a></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</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><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span></h4></li></ul></li></ul></li><li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">deps</span>: <span class="tsd-signature-type">DependencyList</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"><h4 class="tsd-anchor-link"><a id="Example" class="tsd-anchor"></a>Example<a href="#Example" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code><span class="hl-0">useFiveSceneEffect</span><span class="hl-1">(</span><span class="hl-4">scene</span><span class="hl-1"> </span><span class="hl-6">=></span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-5">// object is a THREE.Object3D</span><br/><span class="hl-1"> </span><span class="hl-4">scene</span><span class="hl-1">.</span><span class="hl-0">add</span><span class="hl-1">(</span><span class="hl-4">object</span><span class="hl-1">);</span><br/><span class="hl-1"> </span><span class="hl-3">return</span><span class="hl-1"> () </span><span class="hl-6">=></span><span class="hl-1"> </span><span class="hl-4">scene</span><span class="hl-1">.</span><span class="hl-0">remove</span><span class="hl-1">(</span><span class="hl-4">object</span><span class="hl-1">); </span><span class="hl-5">// 析构函数</span><br/><span class="hl-1">});</span>
|
|
4
4
|
</code><button>Copy</button></pre>
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
</div><aside class="tsd-sources"><ul><li>Defined in lib/react/hooks/useFiveSceneEffect.ts:17</li></ul></aside></li></ul></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../index.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>如视 Five SDK</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>useFiveState | 如视 Five SDK</title><meta name="description" content="Documentation for 如视 Five SDK"/><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 defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></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</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../index.html">如视 Five SDK</a></li><li><a href="../modules/react.html">react</a></li><li><a href="react.useFiveState.html">useFiveState</a></li></ul><h1>Function useFiveState</h1></div><section class="tsd-panel"><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="useFiveState" class="tsd-anchor"></a><span class="tsd-kind-call-signature">use<wbr/>Five<wbr/>State</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>state<span class="tsd-signature-symbol">: </span><a href="../interfaces/five.State.html" class="tsd-signature-type tsd-kind-interface">State</a><span class="tsd-signature-symbol">, </span>setState<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">state</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Partial</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/five.State.html" class="tsd-signature-type tsd-kind-interface">State</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">prevState</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/five.State.html" class="tsd-signature-type tsd-kind-interface">State</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">Partial</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/five.State.html" class="tsd-signature-type tsd-kind-interface">State</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">)</span>, <span class="tsd-kind-parameter">immediately</span><span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span>, <span class="tsd-kind-parameter">userAction</span><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><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">]</span><a href="#useFiveState" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><h4 class="tsd-returns-title">Returns <span class="tsd-signature-symbol">[</span>state<span class="tsd-signature-symbol">: </span><a href="../interfaces/five.State.html" class="tsd-signature-type tsd-kind-interface">State</a><span class="tsd-signature-symbol">, </span>setState<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">state</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Partial</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/five.State.html" class="tsd-signature-type tsd-kind-interface">State</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">prevState</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/five.State.html" class="tsd-signature-type tsd-kind-interface">State</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">Partial</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/five.State.html" class="tsd-signature-type tsd-kind-interface">State</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">)</span>, <span class="tsd-kind-parameter">immediately</span><span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span>, <span class="tsd-kind-parameter">userAction</span><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><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">]</span></h4><aside class="tsd-sources"><ul><li>Defined in lib/react/hooks/useFiveState.ts:19</li></ul></aside></li></ul></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../index.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>如视 Five SDK</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta
|
|
2
|
-
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-symbol">[</span>works<span class="tsd-signature-symbol">: </span><a href="../types/five.Works.html" class="tsd-signature-type tsd-kind-type-alias">Works</a><span class="tsd-signature-symbol">, </span>loadWork<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">work</span>, <span class="tsd-kind-parameter">state</span><span class="tsd-signature-symbol"
|
|
3
|
-
<div class="tsd-comment tsd-typography"><h4>Function
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>useFiveWork | 如视 Five SDK</title><meta name="description" content="Documentation for 如视 Five SDK"/><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 defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></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</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../index.html">如视 Five SDK</a></li><li><a href="../modules/react.html">react</a></li><li><a href="react.useFiveWork.html">useFiveWork</a></li></ul><h1>Function useFiveWork</h1></div><section class="tsd-panel"><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="useFiveWork" class="tsd-anchor"></a><span class="tsd-kind-call-signature">use<wbr/>Five<wbr/>Work</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>works<span class="tsd-signature-symbol">: </span><a href="../types/five.Works.html" class="tsd-signature-type tsd-kind-type-alias">Works</a><span class="tsd-signature-symbol">, </span>loadWork<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">work</span><span class="tsd-signature-symbol">: </span><a href="../classes/five.Work.html" class="tsd-signature-type tsd-kind-class">Work</a><span class="tsd-signature-symbol"> | </span><a href="../classes/five.Work.html" class="tsd-signature-type tsd-kind-class">Work</a><span class="tsd-signature-symbol">[]</span>, <span class="tsd-kind-parameter">state</span><span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">"inherit"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"initial"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Partial</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Omit</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/five.State.html" class="tsd-signature-type tsd-kind-interface">State</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"offset"</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span>, <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><a href="../interfaces/five.FiveLoadOptions.html" class="tsd-signature-type tsd-kind-interface">FiveLoadOptions</a>, <span class="tsd-kind-parameter">userAction</span><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">Promise</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><span class="tsd-signature-symbol">]</span><a href="#useFiveWork" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Five React Hooks: 获取/设置当前的 Work</p>
|
|
2
|
+
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-symbol">[</span>works<span class="tsd-signature-symbol">: </span><a href="../types/five.Works.html" class="tsd-signature-type tsd-kind-type-alias">Works</a><span class="tsd-signature-symbol">, </span>loadWork<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">work</span><span class="tsd-signature-symbol">: </span><a href="../classes/five.Work.html" class="tsd-signature-type tsd-kind-class">Work</a><span class="tsd-signature-symbol"> | </span><a href="../classes/five.Work.html" class="tsd-signature-type tsd-kind-class">Work</a><span class="tsd-signature-symbol">[]</span>, <span class="tsd-kind-parameter">state</span><span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">"inherit"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"initial"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Partial</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Omit</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/five.State.html" class="tsd-signature-type tsd-kind-interface">State</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"offset"</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span>, <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> | </span><a href="../interfaces/five.FiveLoadOptions.html" class="tsd-signature-type tsd-kind-interface">FiveLoadOptions</a>, <span class="tsd-kind-parameter">userAction</span><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">Promise</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><span class="tsd-signature-symbol">]</span></h4><p>[ work: 获取当前的 Work, loadWork: 设置 Work ]</p>
|
|
3
|
+
<div class="tsd-comment tsd-typography"><h4 class="tsd-anchor-link"><a id="Function" class="tsd-anchor"></a>Function<a href="#Function" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>loadWork</p>
|
|
4
4
|
<pre><code><span class="hl-4">加载</span><span class="hl-1"> </span><span class="hl-4">Work</span><span class="hl-1"> </span><span class="hl-4">数据</span><br/><span class="hl-5">// param work Work 数据</span><br/><span class="hl-5">// param state 初始化姿态</span><br/><span class="hl-5">// - "inherit" 使用当前姿态</span><br/><span class="hl-5">// - "initial" 使用 Work 数据中的 initial 姿态</span><br/><span class="hl-5">// - State 自定义姿态</span><br/><span class="hl-5">// param duration 切换时间</span><br/><span class="hl-1">(</span><span class="hl-4">work</span><span class="hl-1">: </span><span class="hl-8">Work</span><span class="hl-1">, </span><span class="hl-4">state</span><span class="hl-1">?: </span><span class="hl-2">"inherit"</span><span class="hl-1"> | </span><span class="hl-2">"initial"</span><span class="hl-1"> | </span><span class="hl-8">Partial</span><span class="hl-1"><</span><span class="hl-8">Omit</span><span class="hl-1"><</span><span class="hl-8">State</span><span class="hl-1">, </span><span class="hl-2">"offset"</span><span class="hl-1">>>, </span><span class="hl-4">duration</span><span class="hl-1">?: </span><span class="hl-8">number</span><span class="hl-1">) </span><span class="hl-6">=></span><span class="hl-1"> </span><span class="hl-6">void</span>
|
|
5
5
|
</code><button>Copy</button></pre>
|
|
6
|
-
|
|
6
|
+
|
|
7
|
+
<h4 class="tsd-anchor-link"><a id="Example" class="tsd-anchor"></a>Example<a href="#Example" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code><span class="hl-6">const</span><span class="hl-1"> [ </span><span class="hl-7">work</span><span class="hl-1">, </span><span class="hl-7">loadWork</span><span class="hl-1"> ] = </span><span class="hl-4">useFiveWork</span><span class="hl-1">;</span>
|
|
7
8
|
</code><button>Copy</button></pre>
|
|
8
|
-
|
|
9
|
+
|
|
10
|
+
</div><aside class="tsd-sources"><ul><li>Defined in lib/react/hooks/useFiveWork.ts:28</li></ul></aside></li></ul></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../index.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>如视 Five SDK</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>withFive | 如视 Five SDK</title><meta name="description" content="Documentation for 如视 Five SDK"/><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 defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></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</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../index.html">如视 Five SDK</a></li><li><a href="../modules/react.html">react</a></li><li><a href="react.withFive.html">withFive</a></li></ul><h1>Function withFive</h1></div><section class="tsd-panel"><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="withFive" class="tsd-anchor"></a><span class="tsd-kind-call-signature">with<wbr/>Five</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.F">F</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">features</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><a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.__type.__type-1.P">P</a><span class="tsd-signature-symbol">, </span><a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.__type.__type-1.C">C</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">Component</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">ForwardRefExoticComponent</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">PropsWithoutRef</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Omit</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.__type.__type-1.P">P</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"$five"</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol"> & </span><span class="tsd-signature-type">RefAttributes</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Omit</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">InstanceType</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.__type.__type-1.C">C</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"state"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"setState"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"render"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"componentDidMount"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"shouldComponentUpdate"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"componentWillUnmount"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"componentDidCatch"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"getSnapshotBeforeUpdate"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"componentDidUpdate"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"componentWillMount"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"UNSAFE_componentWillMount"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"componentWillReceiveProps"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"UNSAFE_componentWillReceiveProps"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"componentWillUpdate"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"UNSAFE_componentWillUpdate"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"context"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"forceUpdate"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"props"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"refs"</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><a href="#withFive" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><section class="tsd-panel"><h4>Type Parameters</h4><ul class="tsd-type-parameter-list"><li><span><a id="withFive.F" class="tsd-anchor"></a><span class="tsd-kind-type-parameter">F</span><span class="tsd-signature-keyword"> extends </span><a href="../types/react.FiveInjectionFeature.html" class="tsd-signature-type tsd-kind-type-alias">FiveInjectionFeature</a><span class="tsd-signature-symbol">[]</span></span></li></ul></section><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">features</span>: <a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.F">F</a></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.__type.__type-1.P">P</a><span class="tsd-signature-symbol">, </span><a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.__type.__type-1.C">C</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">Component</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">ForwardRefExoticComponent</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">PropsWithoutRef</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Omit</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.__type.__type-1.P">P</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"$five"</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol"> & </span><span class="tsd-signature-type">RefAttributes</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Omit</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">InstanceType</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.__type.__type-1.C">C</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"state"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"setState"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"render"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"componentDidMount"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"shouldComponentUpdate"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"componentWillUnmount"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"componentDidCatch"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"getSnapshotBeforeUpdate"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"componentDidUpdate"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"componentWillMount"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"UNSAFE_componentWillMount"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"componentWillReceiveProps"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"UNSAFE_componentWillReceiveProps"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"componentWillUpdate"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"UNSAFE_componentWillUpdate"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"context"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"forceUpdate"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"props"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"refs"</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></h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature" id="withFive.__type.__type-1"><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.__type.__type-1.P">P</a><span class="tsd-signature-symbol">, </span><a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.__type.__type-1.C">C</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">Component</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ForwardRefExoticComponent</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">PropsWithoutRef</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Omit</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.__type.__type-1.P">P</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"$five"</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol"> & </span><span class="tsd-signature-type">RefAttributes</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Omit</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">InstanceType</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.__type.__type-1.C">C</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"state"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"setState"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"render"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"componentDidMount"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"shouldComponentUpdate"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"componentWillUnmount"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"componentDidCatch"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"getSnapshotBeforeUpdate"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"componentDidUpdate"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"componentWillMount"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"UNSAFE_componentWillMount"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"componentWillReceiveProps"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"UNSAFE_componentWillReceiveProps"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"componentWillUpdate"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"UNSAFE_componentWillUpdate"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"context"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"forceUpdate"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"props"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"refs"</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span></li><li class="tsd-description"><section class="tsd-panel"><h4>Type Parameters</h4><ul class="tsd-type-parameter-list"><li><span><a id="withFive.__type.__type-1.P" class="tsd-anchor"></a><span class="tsd-kind-type-parameter">P</span><span class="tsd-signature-keyword"> extends </span><a href="../interfaces/react.PropTypeOfFiveFeatures.html" class="tsd-signature-type tsd-kind-interface">PropTypeOfFiveFeatures</a><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.F">F</a><span class="tsd-signature-symbol">></span></span></li><li><span><a id="withFive.__type.__type-1.C" class="tsd-anchor"></a><span class="tsd-kind-type-parameter">C</span><span class="tsd-signature-keyword"> extends </span><span class="tsd-signature-type">ComponentClass</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.__type.__type-1.P">P</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span></span></li></ul></section><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">Component</span>: <a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.__type.__type-1.C">C</a><span class="tsd-signature-symbol"> & </span><span class="tsd-signature-type">ComponentClass</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.__type.__type-1.P">P</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">ForwardRefExoticComponent</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">PropsWithoutRef</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Omit</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.__type.__type-1.P">P</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"$five"</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol"> & </span><span class="tsd-signature-type">RefAttributes</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Omit</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">InstanceType</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.__type.__type-1.C">C</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"state"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"setState"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"render"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"componentDidMount"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"shouldComponentUpdate"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"componentWillUnmount"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"componentDidCatch"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"getSnapshotBeforeUpdate"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"componentDidUpdate"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"componentWillMount"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"UNSAFE_componentWillMount"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"componentWillReceiveProps"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"UNSAFE_componentWillReceiveProps"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"componentWillUpdate"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"UNSAFE_componentWillUpdate"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"context"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"forceUpdate"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"props"</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">"refs"</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span></h4></li></ul></li></ul><aside class="tsd-sources"><ul><li>Defined in lib/react/withFive.ts:545</li></ul></aside></li></ul></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-index-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><h4 class="uppercase">Member Visibility</h4><form><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></form></div><div class="tsd-theme-toggle"><h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../index.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>如视 Five SDK</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>withFive | 如视 Five SDK</title><meta name="description" content="Documentation for 如视 Five SDK"/><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 defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></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</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../index.html">如视 Five SDK</a></li><li><a href="../modules/react.html">react</a></li><li><a href="react.withFive.html">withFive</a></li></ul><h1>Function withFive</h1></div><section class="tsd-panel"><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="withFive" class="tsd-anchor"></a><span class="tsd-kind-call-signature">with<wbr/>Five</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.F">F</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">features</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><a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.__type.__type-1.P">P</a><span class="tsd-signature-symbol">, </span><a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.__type.__type-1.C">C</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">Component</span><span class="tsd-signature-symbol">: </span><a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.__type.__type-1.C">C</a><span class="tsd-signature-symbol"> & </span><span class="tsd-signature-type">ComponentClass</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.__type.__type-1.P">P</a><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">ForwardRefExoticComponent</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">PropsWithoutRef</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Omit</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.__type.__type-1.P">P</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"$five"</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol"> & </span><span class="tsd-signature-type">RefAttributes</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Omit</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">InstanceType</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.__type.__type-1.C">C</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">, </span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"context"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"state"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"setState"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"render"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"componentDidMount"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"shouldComponentUpdate"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"componentWillUnmount"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"componentDidCatch"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"getSnapshotBeforeUpdate"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"componentDidUpdate"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"componentWillMount"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"UNSAFE_componentWillMount"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"componentWillReceiveProps"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"UNSAFE_componentWillReceiveProps"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"componentWillUpdate"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"UNSAFE_componentWillUpdate"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"forceUpdate"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"props"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"refs"</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><a href="#withFive" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><section class="tsd-panel"><h4>Type Parameters</h4><ul class="tsd-type-parameter-list"><li><span><a id="withFive.F" class="tsd-anchor"></a><span class="tsd-kind-type-parameter">F</span><span class="tsd-signature-keyword"> extends </span><a href="../types/react.FiveInjectionFeature.html" class="tsd-signature-type tsd-kind-type-alias">FiveInjectionFeature</a><span class="tsd-signature-symbol">[]</span></span></li></ul></section><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">features</span>: <a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.F">F</a></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.__type.__type-1.P">P</a><span class="tsd-signature-symbol">, </span><a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.__type.__type-1.C">C</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">Component</span><span class="tsd-signature-symbol">: </span><a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.__type.__type-1.C">C</a><span class="tsd-signature-symbol"> & </span><span class="tsd-signature-type">ComponentClass</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.__type.__type-1.P">P</a><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">ForwardRefExoticComponent</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">PropsWithoutRef</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Omit</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.__type.__type-1.P">P</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"$five"</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol"> & </span><span class="tsd-signature-type">RefAttributes</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Omit</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">InstanceType</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.__type.__type-1.C">C</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">, </span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"context"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"state"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"setState"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"render"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"componentDidMount"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"shouldComponentUpdate"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"componentWillUnmount"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"componentDidCatch"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"getSnapshotBeforeUpdate"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"componentDidUpdate"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"componentWillMount"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"UNSAFE_componentWillMount"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"componentWillReceiveProps"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"UNSAFE_componentWillReceiveProps"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"componentWillUpdate"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"UNSAFE_componentWillUpdate"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"forceUpdate"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"props"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"refs"</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></h4><ul class="tsd-parameters"><li class="tsd-parameter-signature"><ul class="tsd-signatures"><li class="tsd-signature" id="withFive.__type.__type-1"><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.__type.__type-1.P">P</a><span class="tsd-signature-symbol">, </span><a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.__type.__type-1.C">C</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">Component</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ForwardRefExoticComponent</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">PropsWithoutRef</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Omit</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.__type.__type-1.P">P</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"$five"</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol"> & </span><span class="tsd-signature-type">RefAttributes</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Omit</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">InstanceType</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.__type.__type-1.C">C</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">, </span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"context"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"state"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"setState"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"render"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"componentDidMount"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"shouldComponentUpdate"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"componentWillUnmount"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"componentDidCatch"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"getSnapshotBeforeUpdate"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"componentDidUpdate"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"componentWillMount"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"UNSAFE_componentWillMount"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"componentWillReceiveProps"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"UNSAFE_componentWillReceiveProps"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"componentWillUpdate"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"UNSAFE_componentWillUpdate"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"forceUpdate"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"props"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"refs"</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span></li><li class="tsd-description"><section class="tsd-panel"><h4>Type Parameters</h4><ul class="tsd-type-parameter-list"><li><span><a id="withFive.__type.__type-1.P" class="tsd-anchor"></a><span class="tsd-kind-type-parameter">P</span><span class="tsd-signature-keyword"> extends </span><a href="../interfaces/react.PropTypeOfFiveFeatures.html" class="tsd-signature-type tsd-kind-interface">PropTypeOfFiveFeatures</a><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.F">F</a><span class="tsd-signature-symbol">></span></span></li><li><span><a id="withFive.__type.__type-1.C" class="tsd-anchor"></a><span class="tsd-kind-type-parameter">C</span><span class="tsd-signature-keyword"> extends </span><span class="tsd-signature-type">ComponentClass</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.__type.__type-1.P">P</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span></span></li></ul></section><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">Component</span>: <a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.__type.__type-1.C">C</a><span class="tsd-signature-symbol"> & </span><span class="tsd-signature-type">ComponentClass</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.__type.__type-1.P">P</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">></span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">ForwardRefExoticComponent</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">PropsWithoutRef</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Omit</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.__type.__type-1.P">P</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">"$five"</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol"> & </span><span class="tsd-signature-type">RefAttributes</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Omit</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">InstanceType</span><span class="tsd-signature-symbol"><</span><a class="tsd-signature-type tsd-kind-type-parameter" href="react.withFive.html#withFive.__type.__type-1.C">C</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">, </span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"context"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"state"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"setState"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"render"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"componentDidMount"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"shouldComponentUpdate"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"componentWillUnmount"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"componentDidCatch"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"getSnapshotBeforeUpdate"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"componentDidUpdate"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"componentWillMount"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"UNSAFE_componentWillMount"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"componentWillReceiveProps"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"UNSAFE_componentWillReceiveProps"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"componentWillUpdate"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"UNSAFE_componentWillUpdate"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"forceUpdate"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"props"</span><br/><span> </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">"refs"</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span></h4></li></ul></li></ul><aside class="tsd-sources"><ul><li>Defined in lib/react/withFive.ts:545</li></ul></aside></li></ul></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../index.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>如视 Five SDK</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>unsafe__useFiveInject | 如视 Five SDK</title><meta name="description" content="Documentation for 如视 Five SDK"/><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 defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></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</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../index.html">如视 Five SDK</a></li><li><a href="../modules/vue.html">vue</a></li><li><a href="vue.unsafe__useFiveInject.html">unsafe__useFiveInject</a></li></ul><h1 class="deprecated">Function unsafe__useFiveInject</h1></div><section class="tsd-panel"><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="unsafe__useFiveInject" class="tsd-anchor"></a><span class="tsd-kind-call-signature">unsafe__use<wbr/>Five<wbr/>Inject</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../classes/five.Five.html" class="tsd-signature-type tsd-kind-class">Five</a><a href="#unsafe__useFiveInject" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Five Vue Hooks: 获取 five 实例</p>
|
|
2
2
|
</div><h4 class="tsd-returns-title">Returns <a href="../classes/five.Five.html" class="tsd-signature-type tsd-kind-class">Five</a></h4><p>five 实例</p>
|
|
3
|
-
<div class="tsd-comment tsd-typography"><h4>Description
|
|
4
|
-
<h4>Deprecated
|
|
5
|
-
</div><aside class="tsd-sources"><ul><li>Defined in lib/vue/hooks/unsafe__useFiveInject.ts:10</li></ul></aside></li></ul></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-
|
|
3
|
+
<div class="tsd-comment tsd-typography"><h4 class="tsd-anchor-link"><a id="Description" class="tsd-anchor"></a>Description<a href="#Description" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>不到万不得已,并不推荐直接使用。</p>
|
|
4
|
+
<h4 class="tsd-anchor-link"><a id="Deprecated" class="tsd-anchor"></a>Deprecated<a href="#Deprecated" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>不到万不得已,并不推荐直接使用。</p>
|
|
5
|
+
</div><aside class="tsd-sources"><ul><li>Defined in lib/vue/hooks/unsafe__useFiveInject.ts:10</li></ul></aside></li></ul></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../index.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>如视 Five SDK</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
@@ -1,25 +1,33 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta
|
|
2
|
-
</div><h4 class="tsd-returns-title">Returns <a href="../interfaces/vue.FiveActionVueCallbacks.html" class="tsd-signature-type tsd-kind-interface">FiveActionVueCallbacks</a></h4><div class="tsd-comment tsd-typography"><h4>Function
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>useFiveAction | 如视 Five SDK</title><meta name="description" content="Documentation for 如视 Five SDK"/><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 defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></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</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../index.html">如视 Five SDK</a></li><li><a href="../modules/vue.html">vue</a></li><li><a href="vue.useFiveAction.html">useFiveAction</a></li></ul><h1>Function useFiveAction</h1></div><section class="tsd-panel"><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="useFiveAction" class="tsd-anchor"></a><span class="tsd-kind-call-signature">use<wbr/>Five<wbr/>Action</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../interfaces/vue.FiveActionVueCallbacks.html" class="tsd-signature-type tsd-kind-interface">FiveActionVueCallbacks</a><a href="#useFiveAction" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Five Vue Hooks: 使用 Five 的命令</p>
|
|
2
|
+
</div><h4 class="tsd-returns-title">Returns <a href="../interfaces/vue.FiveActionVueCallbacks.html" class="tsd-signature-type tsd-kind-interface">FiveActionVueCallbacks</a></h4><div class="tsd-comment tsd-typography"><h4 class="tsd-anchor-link"><a id="Function" class="tsd-anchor"></a>Function<a href="#Function" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>updateCamera</p>
|
|
3
3
|
<pre><code><span class="hl-4">移动相机</span><span class="hl-1">。(</span><span class="hl-4">不触发点位移动</span><span class="hl-1">)</span><br/><span class="hl-4">如果动画中途被打断</span><span class="hl-1">(</span><span class="hl-4">用户触发行为</span><span class="hl-1">,</span><span class="hl-4">或者调用</span><span class="hl-1"> </span><span class="hl-4">setState</span><span class="hl-1">, </span><span class="hl-4">load</span><span class="hl-1">, </span><span class="hl-4">changeMode</span><span class="hl-1">)</span><span class="hl-4">的等</span><br/><span class="hl-4">会</span><span class="hl-1"> </span><span class="hl-8">Promise</span><span class="hl-1">.</span><span class="hl-4">reject</span><span class="hl-1">。</span><span class="hl-4">运动完成则</span><span class="hl-1"> </span><span class="hl-8">Promise</span><span class="hl-1">.</span><span class="hl-4">resolve</span><br/><br/><span class="hl-5">// params pose - 相机目标位置</span><br/><span class="hl-5">// params duration - 动画触发的时常</span><br/><span class="hl-5">// params Promise - 是否移动成功</span><br/><span class="hl-0">updateCamera</span><span class="hl-1">(</span><span class="hl-4">pose</span><span class="hl-1">: </span><span class="hl-4">Pose</span><span class="hl-1">, </span><span class="hl-4">duration</span><span class="hl-1">: </span><span class="hl-4">number</span><span class="hl-1">): </span><span class="hl-8">Promise</span><span class="hl-1"><</span><span class="hl-6">void</span><span class="hl-1">></span>
|
|
4
4
|
</code><button>Copy</button></pre>
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
<h4 class="tsd-anchor-link"><a id="Function-1" class="tsd-anchor"></a>Function<a href="#Function-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>initBasisLoader</p>
|
|
6
7
|
<pre><code><span class="hl-4">初始化</span><span class="hl-1"> </span><span class="hl-4">initBasisLoader</span><br/><span class="hl-4">同初始化的</span><span class="hl-1"> </span><span class="hl-4">initBasisLoader</span><span class="hl-1"> </span><span class="hl-4">参数</span><span class="hl-1">。</span><span class="hl-4">用于初始化</span><span class="hl-1"> </span><span class="hl-4">basisLoader</span><span class="hl-1">。</span><br/><span class="hl-4">basisLoader</span><span class="hl-1"> </span><span class="hl-4">只会初始化一次</span><span class="hl-1">,</span><span class="hl-4">一旦初始化则不会再修改</span><span class="hl-1">。</span><br/><br/><span class="hl-5">// param transcoderResourcePath</span><br/><span class="hl-5">// 如果不设置,使用默认解析器 basis 解析器。</span><br/><span class="hl-5">// 可以传入解析器的 `resourcePath`, 则使用指定的解析器</span><br/><span class="hl-0">initBasisLoader</span><span class="hl-1">(</span><span class="hl-4">transcoderResourcePath</span><span class="hl-1">?: </span><span class="hl-4">string</span><span class="hl-1">): </span><span class="hl-6">void</span><span class="hl-1">,</span>
|
|
7
8
|
</code><button>Copy</button></pre>
|
|
8
|
-
|
|
9
|
+
|
|
10
|
+
<h4 class="tsd-anchor-link"><a id="Function-2" class="tsd-anchor"></a>Function<a href="#Function-2" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>getPixels</p>
|
|
9
11
|
<pre><code><span class="hl-4">获取画面中的像素颜色</span><br/><span class="hl-5">// param x - 获取像素区域的起始坐标 x</span><br/><span class="hl-5">// param y - 获取像素区域的起始坐标 y</span><br/><span class="hl-5">// param width - 获取像素区域的宽度</span><br/><span class="hl-5">// param height - 获取像素区域的高度</span><br/><span class="hl-5">// param pixelRatio - 获取区域的像素比</span><br/><span class="hl-5">// returns rgba颜色平铺的 Uint8Array</span><br/><span class="hl-0">getPixels</span><span class="hl-1">(</span><span class="hl-4">x</span><span class="hl-1">: </span><span class="hl-4">number</span><span class="hl-1">, </span><span class="hl-4">y</span><span class="hl-1">: </span><span class="hl-4">number</span><span class="hl-1">, </span><span class="hl-4">width</span><span class="hl-1">: </span><span class="hl-4">number</span><span class="hl-1">, </span><span class="hl-4">height</span><span class="hl-1">: </span><span class="hl-4">number</span><span class="hl-1">, </span><span class="hl-4">pixelRatio</span><span class="hl-1">?: </span><span class="hl-4">number</span><span class="hl-1">): </span><span class="hl-4">Uint8Array</span><span class="hl-1">,</span>
|
|
10
12
|
</code><button>Copy</button></pre>
|
|
11
|
-
|
|
13
|
+
|
|
14
|
+
<h4 class="tsd-anchor-link"><a id="Function-3" class="tsd-anchor"></a>Function<a href="#Function-3" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>render</p>
|
|
12
15
|
<pre><code><span class="hl-4">强制渲染</span><br/><span class="hl-4">调用</span><span class="hl-1"> </span><span class="hl-0">render</span><span class="hl-1">() </span><span class="hl-4">和</span><span class="hl-1"> </span><span class="hl-0">needsRender</span><span class="hl-1">() </span><span class="hl-4">均可在按需渲染时</span><span class="hl-1">,</span><span class="hl-4">使得画面渲染一次</span><br/><span class="hl-4">区别在于</span><span class="hl-1">:</span><br/><span class="hl-1">- </span><span class="hl-0">needsRender</span><span class="hl-1">() </span><span class="hl-4">为在下帧渲染画面</span><br/><span class="hl-1">- </span><span class="hl-0">render</span><span class="hl-1">() </span><span class="hl-4">在当前帧渲染画面</span><br/><span class="hl-4">推荐使用</span><span class="hl-1"> </span><span class="hl-0">needsRender</span><span class="hl-1">(), </span><span class="hl-4">可以更加流畅</span><span class="hl-1">。</span><span class="hl-4">但是如果需要截图等同步操作</span><span class="hl-1">,</span><span class="hl-4">可以使用</span><span class="hl-1"> </span><span class="hl-0">render</span><span class="hl-1">()</span><br/><br/><span class="hl-5">// param callback 渲染完成回调</span><br/><span class="hl-0">render</span><span class="hl-1">(</span><span class="hl-4">callback</span><span class="hl-1">?: () </span><span class="hl-6">=></span><span class="hl-1"> </span><span class="hl-6">void</span><span class="hl-1">): </span><span class="hl-6">void</span><span class="hl-1">,</span>
|
|
13
16
|
</code><button>Copy</button></pre>
|
|
14
|
-
|
|
17
|
+
|
|
18
|
+
<h4 class="tsd-anchor-link"><a id="Function-4" class="tsd-anchor"></a>Function<a href="#Function-4" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>needsRender</p>
|
|
15
19
|
<pre><code><span class="hl-4">下一帧渲染</span><br/><span class="hl-4">调用</span><span class="hl-1"> </span><span class="hl-0">render</span><span class="hl-1">() </span><span class="hl-4">和</span><span class="hl-1"> </span><span class="hl-0">needsRender</span><span class="hl-1">() </span><span class="hl-4">均可在按需渲染时</span><span class="hl-1">,</span><span class="hl-4">使得画面渲染一次</span><br/><span class="hl-4">区别在于</span><span class="hl-1">:</span><br/><span class="hl-1">- </span><span class="hl-0">needsRender</span><span class="hl-1">() </span><span class="hl-4">为在下帧渲染画面</span><br/><span class="hl-1">- </span><span class="hl-0">render</span><span class="hl-1">() </span><span class="hl-4">在当前帧渲染画面</span><br/><span class="hl-4">推荐使用</span><span class="hl-1"> </span><span class="hl-0">needsRender</span><span class="hl-1">(), </span><span class="hl-4">可以更加流畅</span><span class="hl-1">。</span><span class="hl-4">但是如果需要截图等同步操作</span><span class="hl-1">,</span><span class="hl-4">可以使用</span><span class="hl-1"> </span><span class="hl-0">render</span><span class="hl-1">()</span><br/><span class="hl-0">needsRender</span><span class="hl-1">(): </span><span class="hl-6">void</span><span class="hl-1">,</span>
|
|
16
20
|
</code><button>Copy</button></pre>
|
|
17
|
-
|
|
21
|
+
|
|
22
|
+
<h4 class="tsd-anchor-link"><a id="Function-5" class="tsd-anchor"></a>Function<a href="#Function-5" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>preloadPano</p>
|
|
18
23
|
<pre><code><span class="hl-4">预加载点位图片资源</span><br/><span class="hl-5">// param panoId - 观察点</span><br/><span class="hl-5">// param callback - 加载完成回调, 并传递加载用时。</span><br/><span class="hl-5">// returns 加载完成的 Promise 参数同 callback</span><br/><span class="hl-0">preloadPano</span><span class="hl-1">(</span><span class="hl-4">panoId</span><span class="hl-1">: </span><span class="hl-4">WorkPanoId</span><span class="hl-1">, </span><span class="hl-4">callback</span><span class="hl-1">?: (</span><span class="hl-4">costs</span><span class="hl-1">: </span><span class="hl-8">number</span><span class="hl-1">) </span><span class="hl-6">=></span><span class="hl-1"> </span><span class="hl-6">void</span><span class="hl-1">): </span><span class="hl-8">Promise</span><span class="hl-1"><</span><span class="hl-4">number</span><span class="hl-1">></span>
|
|
19
24
|
</code><button>Copy</button></pre>
|
|
20
|
-
|
|
25
|
+
|
|
26
|
+
<h4 class="tsd-anchor-link"><a id="Function-6" class="tsd-anchor"></a>Function<a href="#Function-6" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>project2d</p>
|
|
21
27
|
<pre><code><span class="hl-4">计算三维空间的点对应到屏幕的二维坐标</span><br/><span class="hl-4">调用</span><span class="hl-1"> </span><span class="hl-2">`project2d()`</span><span class="hl-1"> </span><span class="hl-4">和</span><span class="hl-1"> </span><span class="hl-2">`useFiveProject2d()`</span><span class="hl-1"> </span><span class="hl-4">均可用于计算三维空间的点对应到屏幕的二维坐标</span><br/><span class="hl-4">区别在于</span><span class="hl-1">:</span><br/><span class="hl-1">- </span><span class="hl-2">`project2d()`</span><span class="hl-1"> </span><span class="hl-4">只计算一次</span><span class="hl-1">,</span><span class="hl-4">入参改变或</span><span class="hl-1"> </span><span class="hl-4">cameraUpdate</span><span class="hl-1"> </span><span class="hl-4">时</span><span class="hl-1"> </span><span class="hl-4">不会更新值</span><br/><span class="hl-1">- </span><span class="hl-2">`useFiveProject2d()`</span><span class="hl-1"> </span><span class="hl-4">通过</span><span class="hl-1"> </span><span class="hl-4">watch</span><span class="hl-1"> </span><span class="hl-4">监听入参和</span><span class="hl-1"> </span><span class="hl-4">cameraUpdate</span><span class="hl-1"> </span><span class="hl-4">变化</span><span class="hl-1">,</span><span class="hl-4">自动更新返回值</span><br/><span class="hl-0">project2d</span><span class="hl-1">(</span><span class="hl-4">vector3</span><span class="hl-1">: </span><span class="hl-7">THREE</span><span class="hl-1">.</span><span class="hl-4">Vector3</span><span class="hl-1">, </span><span class="hl-4">testModel</span><span class="hl-1">?: </span><span class="hl-4">boolean</span><span class="hl-1"> ): </span><span class="hl-7">THREE</span><span class="hl-1">.</span><span class="hl-4">Vector2</span>
|
|
22
28
|
</code><button>Copy</button></pre>
|
|
23
|
-
|
|
29
|
+
|
|
30
|
+
<h4 class="tsd-anchor-link"><a id="Example" class="tsd-anchor"></a>Example<a href="#Example" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><pre><code><span class="hl-6">const</span><span class="hl-1"> { </span><span class="hl-7">updateCamera</span><span class="hl-1">, </span><span class="hl-7">initBasisLoader</span><span class="hl-1">, </span><span class="hl-7">getPixels</span><span class="hl-1">, </span><span class="hl-7">render</span><span class="hl-1">, </span><span class="hl-7">needsRender</span><span class="hl-1">, </span><span class="hl-7">preloadPano</span><span class="hl-1">, </span><span class="hl-7">project2d</span><span class="hl-1"> } = </span><span class="hl-0">useFiveAction</span><span class="hl-1">();</span>
|
|
24
31
|
</code><button>Copy</button></pre>
|
|
25
|
-
|
|
32
|
+
|
|
33
|
+
</div><aside class="tsd-sources"><ul><li>Defined in lib/vue/hooks/useFiveAction.ts:172</li></ul></aside></li></ul></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../index.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>如视 Five SDK</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|