@realsee/five 6.2.0-alpha.0 → 6.2.0-alpha.10
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 +107 -96
- 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 +31 -27
- 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 +5 -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 +5 -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 +4 -4
- 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 +3 -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 +148 -57
- 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 +73 -28
- package/five/index.js +91 -91
- package/five/index.mjs +6177 -5970
- 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 +3 -3
- package/react/index.mjs +29 -31
- 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 +3 -3
- package/umd/five-sticker.js +3 -3
- package/umd/five-vfx.js +2 -2
- package/umd/five-vue.js +3 -3
- package/umd/five.js +49 -49
- package/vfx/index.js +2 -2
- package/vfx/index.mjs +2 -2
- package/vue/index.js +3 -3
- package/vue/index.mjs +142 -131
- 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
package/vfx/index.js
CHANGED
package/vfx/index.mjs
CHANGED
package/vue/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* @realsee/five
|
|
4
|
-
* Generated:
|
|
5
|
-
* Version: 6.2.0-alpha.
|
|
4
|
+
* Generated: 9/12/2024
|
|
5
|
+
* Version: 6.2.0-alpha.10
|
|
6
6
|
* Terms:
|
|
7
7
|
* Realsee SDK License Agreement
|
|
8
8
|
* Update: July 28, 2021
|
|
@@ -252,4 +252,4 @@
|
|
|
252
252
|
* No amendment to or modification of this Agreement will be binding unless in
|
|
253
253
|
* writing and signed by Realsee. You and Realsee hereto confirm that this
|
|
254
254
|
* Agreement and all related documents shall be drafted in English.
|
|
255
|
-
*/"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),
|
|
255
|
+
*/"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),F=require("@realsee/five"),B=require("three");function O(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return r.default=e,Object.freeze(r)}const d=O(B);var g=function(){return g=Object.assign||function(r){for(var n,o=1,a=arguments.length;o<a;o++){n=arguments[o];for(var u in n)Object.prototype.hasOwnProperty.call(n,u)&&(r[u]=n[u])}return r},g.apply(this,arguments)};var j=!1;function P(e){j=e}var E=Symbol();function l(){var e=t.inject(E);if(!e)throw new Error("Inject five error!");return e}var x={display:"inline-block",overflow:"hidden"},U=t.defineComponent({props:{width:{type:Number,required:!0},height:{type:Number,required:!0}},setup:function(e){var r=t.toRef(e,"width"),n=t.toRef(e,"height"),o=l(),a=t.ref(null);return t.watch([r,n,a],function(){if(o.renderer&&a.value){if(o.renderer.domElement.parentNode!==null&&o.renderer.domElement.parentNode!==a.value)throw new Error("There are more than 2 fiveCanvas in this context.");o.renderer.domElement.parentNode!==a.value&&a.value.appendChild(o.renderer.domElement),o.camera.aspect=r.value/n.value,o.camera.updateProjectionMatrix(),o.renderer.setSize(r.value,n.value),o.refresh({width:r.value,height:n.value}),o.needsRender=!0}}),function(){return t.h("div",{id:"five",style:g({width:"".concat(r.value,"px"),height:"".concat(n.value,"px")},x),ref:a})}}}),m=[],p=[];function W(e){var r=e===void 0?{}:e,n=r.backgroundColor,o=n===void 0?1579548:n,a=r.backgroundAlpha,u=a===void 0?1:a,i=r.preserveDrawingBuffer,v=i===void 0?!0:i,f=r.pixelRatio,c=f===void 0?1:f,h=r.webgl2,w=h===void 0?!1:h;if(typeof window!="undefined"){var s=null;if(w?s=m.shift():s=p.shift(),!s){if(w){var b=document.createElement("canvas"),C=b.getContext("webgl2");C?s=new d.WebGLRenderer({preserveDrawingBuffer:v,antialias:!0,alpha:!0,stencil:!0,canvas:b,context:C}):(console.error("error occurred when getting webgl2 canvas context, mybe webgl2 not support, fallback to webgl."),s=new d.WebGLRenderer({preserveDrawingBuffer:v,antialias:!1,alpha:!0,stencil:!0}))}else s=new d.WebGLRenderer({preserveDrawingBuffer:v,antialias:!1,alpha:!0,stencil:!0});s.outputEncoding=d.sRGBEncoding}return s.setPixelRatio(c),s.setClearColor(o,u),s.autoClear=!0,s}}function _(e){if(e){var r=e.capabilities.isWebGL2;r?p.indexOf(e)===-1&&p.push(e):m.indexOf(e)===-1&&m.push(e)}}function A(e,r){var n=Array.isArray(e)?e:[e],o=Array.isArray(r)?r:[r];if(n.length!==o.length)return!1;for(var a=0;a<n.length;a++)if(n[a]!==o[a])return!1;return!0}var D=t.defineComponent({props:{works:Object,initialWorks:Object,initialState:Object,initialUserAction:Boolean,onWorksChange:Function,onStateChange:Function,onCurrentStateChange:Function,onError:Function,fiveInitArgs:{type:Object,default:function(){return{}}},style:Object},setup:function(e){var r,n=t.toRefs(e).works,o=F.getViewportScale(),a=o===1?window.devicePixelRatio:1,u=W({pixelRatio:a}),i=new F.Five(g({renderer:u},e.fiveInitArgs)),v=e.works||e.initialWorks;return v&&i.load(v,e.initialState,void 0,(r=e.initialUserAction)!==null&&r!==void 0?r:!0),P(!!e.works),n&&t.watch(n,function(f,c){f&&!A(f,i.works)&&i.load(f,e.initialState)}),t.onBeforeUnmount(function(){i&&(i.dispose(),_(i.renderer))}),i.on("load",function(){e.onWorksChange&&i.works&&e.onWorksChange(i==null?void 0:i.works)}),i.on("stateChange",function(f,c){e.onStateChange&&e.onStateChange(f,c)}),i.on("currentStateChange",function(f,c){e.onCurrentStateChange&&e.onCurrentStateChange(f,c)}),i.on("error",function(f){e.onError?e.onError(f):console.warn(f.message)}),t.provide(E,i),{five:t.shallowReadonly(i)}},render:function(){return t.h("div",{style:this.$props.style},this.$slots)}});function L(){var e=l(),r=t.ref(e.works),n=t.readonly(r),o=function(u,i,v,f){if(j)throw new Error("props 'work' is set in fiveProvider, if you need modify work internal, use 'initialWork' instead.");return e.load(u,i,v,f)},a=e.on("load",function(){r.value=e.works});return t.onBeforeUnmount(function(){a()}),[n,o]}function I(){var e=l(),r=t.ref(g({},e.state)),n=e.on("stateChange",function(a){Object.assign(r.value,g({},a))});t.onBeforeUnmount(function(){n()});var o=function(a,u,i){u===void 0&&(u=!1),i===void 0&&(i=!0);var v=typeof a=="function"?a(e.getCurrentState()):a;e.setState(v,u,i)};return[r,o]}function V(){var e=l(),r=t.ref(e.getCurrentState()),n=e.on("currentStateChange",function(){Object.assign(r.value,e.getCurrentState())});t.onBeforeUnmount(function(){n()});var o=function(a,u,i){var v=typeof a=="function"?a(e.getCurrentState()):a;e.setState(v,u,i)};return[r,o]}function H(){var e=l(),r=t.reactive(e.getCurrentState()),n=t.ref(e.works.getResolvedObserver(e.pano)),o=e.on("currentStateChange",function(){Object.assign(r,e.getCurrentState()),n.value=e.works.getResolvedObserver({workCode:r.workCode,panoIndex:r.panoIndex})});return t.onBeforeUnmount(function(){o()}),n}function M(e,r){var n=l(),o=n.on(e,r);t.onBeforeUnmount(function(){o()})}function q(){var e=l(),r=function(v,f){return e.updateCamera(v,f)},n=function(v,f,c,h,w){return e.getPixels(v,f,c,h,w)},o=function(v){return e.render(v)},a=function(){return e.needsRender=!0},u=function(v,f){return e.preloadPano(v,f)},i=function(v,f){return f===void 0&&(f=!1),e.project2d(v,f)};return{updateCamera:r,getPixels:n,render:o,needsRender:a,preloadPano:u,project2d:i}}function N(e,r){r===void 0&&(r=!1);var n=l(),o=t.ref(Symbol()),a=t.shallowRef(e?n.project2d(t.isRef(e)?e.value:e,r):null),u=n.on("cameraUpdate",function(){o.value=Symbol()});return t.onBeforeUnmount(function(){u()}),t.watch([o,e],function(){a.value=n.project2d(t.isRef(e)?e.value:e,r)}),a}function G(){return N}function y(e){var r=e.camera.getWorldDirection(new d.Vector3),n=new d.Raycaster(e.camera.position,r);return n}function T(){var e=l(),r=t.shallowRef(y(e)),n=e.on("cameraUpdate",function(){r.value=y(e)});return t.onBeforeUnmount(function(){n()}),r}function S(e){return e.camera.getWorldDirection(new d.Vector3)}function $(){var e=l(),r=t.shallowRef(S(e)),n=e.on("cameraUpdate",function(){r.value=S(e)});return t.onBeforeUnmount(function(){n()}),r}function z(e){var r=l(),n=t.shallowRef([]);return t.watch(e,function(){n.value=r.model.intersectRaycaster(t.isRef(e)?e.value:e)}),n}function K(){return z}function R(e){return e.model.empty?"Empty":"Loaded"}function J(){var e=l(),r=t.ref(R(e)),n=e.on("modelLoaded",function(){r.value=R(e)});return t.onBeforeUnmount(function(){n()}),r}function Q(){var e=l(),r=t.ref(e.model.shownFloor),n=t.ref(e.model.floorLength),o=function(u){typeof u=="number"?e.model.show(u):e.model.show()},a=[];return a.push(e.on("modelShownFloorChange",function(){r.value=e.model.shownFloor})),a.push(e.on("modelLoaded",function(){n.value=e.model.floorLength})),t.onBeforeUnmount(function(){for(var u;u=a.shift();)u()}),[r,n,o]}function X(){var e=l(),r=t.ref(e.helperVisible),n=function(a){e.helperVisible=a},o=e.on("helpersVisibleChange",function(a){r.value=a});return t.onBeforeUnmount(function(){o()}),[r,n]}function Y(){return l()}function k(e){return e.model.bounding.clone()}function Z(){var e=l(),r=t.shallowRef(k(e)),n=e.on("modelLoaded",function(){r.value=k(e)});return t.onBeforeUnmount(function(){n()}),r}function ee(){var e=l();return e.scene}function re(){var e=l(),r=t.shallowRef(e.model),n=e.on("modelLoaded",function(){r.value=e.model});return t.onBeforeUnmount(function(){n()}),r}exports.FiveCanvas=U;exports.FiveProvider=D;exports.unsafe__useFiveInject=Y;exports.useFiveAction=q;exports.useFiveCameraDirection=$;exports.useFiveCameraRaycaster=T;exports.useFiveCurrentObserver=H;exports.useFiveCurrentState=V;exports.useFiveEventCallback=M;exports.useFiveFloor=Q;exports.useFiveHelper=X;exports.useFiveModel=re;exports.useFiveModelBounding=Z;exports.useFiveModelIntersectRaycaster=K;exports.useFiveModelReadyState=J;exports.useFiveProject2d=G;exports.useFiveScene=ee;exports.useFiveState=I;exports.useFiveWorks=L;
|
package/vue/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* @realsee/five
|
|
4
|
-
* Generated:
|
|
5
|
-
* Version: 6.2.0-alpha.
|
|
4
|
+
* Generated: 9/12/2024
|
|
5
|
+
* Version: 6.2.0-alpha.10
|
|
6
6
|
* Terms:
|
|
7
7
|
* Realsee SDK License Agreement
|
|
8
8
|
* Update: July 28, 2021
|
|
@@ -252,33 +252,33 @@
|
|
|
252
252
|
* No amendment to or modification of this Agreement will be binding unless in
|
|
253
253
|
* writing and signed by Realsee. You and Realsee hereto confirm that this
|
|
254
254
|
* Agreement and all related documents shall be drafted in English.
|
|
255
|
-
*/import { inject as
|
|
256
|
-
import { getViewportScale as
|
|
255
|
+
*/import { inject as _, defineComponent as P, toRef as R, ref as s, watch as b, h as O, toRefs as B, onBeforeUnmount as l, provide as D, shallowReadonly as I, readonly as V, reactive as U, shallowRef as p, isRef as C } from "vue";
|
|
256
|
+
import { getViewportScale as G, Five as H } from "@realsee/five";
|
|
257
257
|
import * as g from "three";
|
|
258
|
-
var
|
|
259
|
-
return
|
|
258
|
+
var h = function() {
|
|
259
|
+
return h = Object.assign || function(r) {
|
|
260
260
|
for (var n, o = 1, t = arguments.length; o < t; o++) {
|
|
261
261
|
n = arguments[o];
|
|
262
|
-
for (var
|
|
262
|
+
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
263
263
|
}
|
|
264
264
|
return r;
|
|
265
|
-
},
|
|
265
|
+
}, h.apply(this, arguments);
|
|
266
266
|
};
|
|
267
|
-
var
|
|
268
|
-
function
|
|
269
|
-
|
|
267
|
+
var A = !1;
|
|
268
|
+
function N(e) {
|
|
269
|
+
A = e;
|
|
270
270
|
}
|
|
271
|
-
var
|
|
271
|
+
var L = Symbol();
|
|
272
272
|
function v() {
|
|
273
|
-
var e =
|
|
273
|
+
var e = _(L);
|
|
274
274
|
if (!e)
|
|
275
275
|
throw new Error("Inject five error!");
|
|
276
276
|
return e;
|
|
277
277
|
}
|
|
278
|
-
var
|
|
278
|
+
var q = {
|
|
279
279
|
display: "inline-block",
|
|
280
280
|
overflow: "hidden"
|
|
281
|
-
},
|
|
281
|
+
}, X = P({
|
|
282
282
|
props: {
|
|
283
283
|
width: {
|
|
284
284
|
type: Number,
|
|
@@ -290,33 +290,44 @@ var H = {
|
|
|
290
290
|
}
|
|
291
291
|
},
|
|
292
292
|
setup: function(e) {
|
|
293
|
-
var r =
|
|
294
|
-
return
|
|
293
|
+
var r = R(e, "width"), n = R(e, "height"), o = v(), t = s(null);
|
|
294
|
+
return b([r, n, t], function() {
|
|
295
295
|
if (o.renderer && t.value) {
|
|
296
296
|
if (o.renderer.domElement.parentNode !== null && o.renderer.domElement.parentNode !== t.value)
|
|
297
297
|
throw new Error("There are more than 2 fiveCanvas in this context.");
|
|
298
|
-
o.renderer.domElement.parentNode !== t.value && t.value.appendChild(o.renderer.domElement), o.camera.aspect = r.value / n.value, o.camera.updateProjectionMatrix(), o.renderer.setSize(r.value, n.value), o.needsRender = !0;
|
|
298
|
+
o.renderer.domElement.parentNode !== t.value && t.value.appendChild(o.renderer.domElement), o.camera.aspect = r.value / n.value, o.camera.updateProjectionMatrix(), o.renderer.setSize(r.value, n.value), o.refresh({ width: r.value, height: n.value }), o.needsRender = !0;
|
|
299
299
|
}
|
|
300
300
|
}), function() {
|
|
301
|
-
return
|
|
301
|
+
return O("div", {
|
|
302
302
|
id: "five",
|
|
303
|
-
style:
|
|
303
|
+
style: h({ width: "".concat(r.value, "px"), height: "".concat(n.value, "px") }, q),
|
|
304
304
|
ref: t
|
|
305
305
|
});
|
|
306
306
|
};
|
|
307
307
|
}
|
|
308
|
-
}),
|
|
309
|
-
function
|
|
310
|
-
var r = e === void 0 ? {} : e, n = r.backgroundColor, o = n === void 0 ? 1579548 : n, t = r.backgroundAlpha,
|
|
308
|
+
}), y = [], S = [];
|
|
309
|
+
function T(e) {
|
|
310
|
+
var r = e === void 0 ? {} : e, n = r.backgroundColor, o = n === void 0 ? 1579548 : n, t = r.backgroundAlpha, i = t === void 0 ? 1 : t, a = r.preserveDrawingBuffer, f = a === void 0 ? !0 : a, u = r.pixelRatio, d = u === void 0 ? 1 : u, w = r.webgl2, m = w === void 0 ? !1 : w;
|
|
311
311
|
if (typeof window != "undefined") {
|
|
312
|
-
var
|
|
313
|
-
|
|
312
|
+
var c = null;
|
|
313
|
+
if (m ? c = y.shift() : c = S.shift(), !c) {
|
|
314
|
+
if (m) {
|
|
315
|
+
var k = document.createElement("canvas"), F = k.getContext("webgl2");
|
|
316
|
+
F ? c = new g.WebGLRenderer({ preserveDrawingBuffer: f, antialias: !0, alpha: !0, stencil: !0, canvas: k, context: F }) : (console.error("error occurred when getting webgl2 canvas context, mybe webgl2 not support, fallback to webgl."), c = new g.WebGLRenderer({ preserveDrawingBuffer: f, antialias: !1, alpha: !0, stencil: !0 }));
|
|
317
|
+
} else
|
|
318
|
+
c = new g.WebGLRenderer({ preserveDrawingBuffer: f, antialias: !1, alpha: !0, stencil: !0 });
|
|
319
|
+
c.outputEncoding = g.sRGBEncoding;
|
|
320
|
+
}
|
|
321
|
+
return c.setPixelRatio(d), c.setClearColor(o, i), c.autoClear = !0, c;
|
|
314
322
|
}
|
|
315
323
|
}
|
|
316
|
-
function
|
|
317
|
-
|
|
324
|
+
function $(e) {
|
|
325
|
+
if (e) {
|
|
326
|
+
var r = e.capabilities.isWebGL2;
|
|
327
|
+
r ? S.indexOf(e) === -1 && S.push(e) : y.indexOf(e) === -1 && y.push(e);
|
|
328
|
+
}
|
|
318
329
|
}
|
|
319
|
-
function
|
|
330
|
+
function z(e, r) {
|
|
320
331
|
var n = Array.isArray(e) ? e : [e], o = Array.isArray(r) ? r : [r];
|
|
321
332
|
if (n.length !== o.length)
|
|
322
333
|
return !1;
|
|
@@ -325,7 +336,7 @@ function q(e, r) {
|
|
|
325
336
|
return !1;
|
|
326
337
|
return !0;
|
|
327
338
|
}
|
|
328
|
-
var
|
|
339
|
+
var Y = P({
|
|
329
340
|
props: {
|
|
330
341
|
works: Object,
|
|
331
342
|
initialWorks: Object,
|
|
@@ -344,32 +355,32 @@ var M = F({
|
|
|
344
355
|
style: Object
|
|
345
356
|
},
|
|
346
357
|
setup: function(e) {
|
|
347
|
-
var r, n =
|
|
348
|
-
return f &&
|
|
349
|
-
|
|
358
|
+
var r, n = B(e).works, o = G(), t = o === 1 ? window.devicePixelRatio : 1, i = T({ pixelRatio: t }), a = new H(h({ renderer: i }, e.fiveInitArgs)), f = e.works || e.initialWorks;
|
|
359
|
+
return f && a.load(f, e.initialState, void 0, (r = e.initialUserAction) !== null && r !== void 0 ? r : !0), N(!!e.works), n && b(n, function(u, d) {
|
|
360
|
+
u && !z(u, a.works) && a.load(u, e.initialState);
|
|
350
361
|
}), l(function() {
|
|
351
|
-
|
|
352
|
-
}),
|
|
353
|
-
e.onWorksChange &&
|
|
354
|
-
}),
|
|
355
|
-
e.onStateChange && e.onStateChange(
|
|
356
|
-
}),
|
|
357
|
-
e.onCurrentStateChange && e.onCurrentStateChange(
|
|
358
|
-
}),
|
|
359
|
-
e.onError ? e.onError(
|
|
360
|
-
}),
|
|
361
|
-
five:
|
|
362
|
+
a && (a.dispose(), $(a.renderer));
|
|
363
|
+
}), a.on("load", function() {
|
|
364
|
+
e.onWorksChange && a.works && e.onWorksChange(a == null ? void 0 : a.works);
|
|
365
|
+
}), a.on("stateChange", function(u, d) {
|
|
366
|
+
e.onStateChange && e.onStateChange(u, d);
|
|
367
|
+
}), a.on("currentStateChange", function(u, d) {
|
|
368
|
+
e.onCurrentStateChange && e.onCurrentStateChange(u, d);
|
|
369
|
+
}), a.on("error", function(u) {
|
|
370
|
+
e.onError ? e.onError(u) : console.warn(u.message);
|
|
371
|
+
}), D(L, a), {
|
|
372
|
+
five: I(a)
|
|
362
373
|
};
|
|
363
374
|
},
|
|
364
375
|
render: function() {
|
|
365
|
-
return
|
|
376
|
+
return O("div", { style: this.$props.style }, this.$slots);
|
|
366
377
|
}
|
|
367
378
|
});
|
|
368
|
-
function
|
|
369
|
-
var e = v(), r =
|
|
370
|
-
if (
|
|
379
|
+
function Z() {
|
|
380
|
+
var e = v(), r = s(e.works), n = V(r), o = function(i, a, f, u) {
|
|
381
|
+
if (A)
|
|
371
382
|
throw new Error("props 'work' is set in fiveProvider, if you need modify work internal, use 'initialWork' instead.");
|
|
372
|
-
return e.load(
|
|
383
|
+
return e.load(i, a, f, u);
|
|
373
384
|
}, t = e.on("load", function() {
|
|
374
385
|
r.value = e.works;
|
|
375
386
|
});
|
|
@@ -377,35 +388,35 @@ function J() {
|
|
|
377
388
|
t();
|
|
378
389
|
}), [n, o];
|
|
379
390
|
}
|
|
380
|
-
function
|
|
381
|
-
var e = v(), r =
|
|
382
|
-
Object.assign(r.value,
|
|
391
|
+
function ee() {
|
|
392
|
+
var e = v(), r = s(h({}, e.state)), n = e.on("stateChange", function(t) {
|
|
393
|
+
Object.assign(r.value, h({}, t));
|
|
383
394
|
});
|
|
384
395
|
l(function() {
|
|
385
396
|
n();
|
|
386
397
|
});
|
|
387
|
-
var o = function(t,
|
|
388
|
-
|
|
398
|
+
var o = function(t, i, a) {
|
|
399
|
+
i === void 0 && (i = !1), a === void 0 && (a = !0);
|
|
389
400
|
var f = typeof t == "function" ? t(e.getCurrentState()) : t;
|
|
390
|
-
e.setState(f,
|
|
401
|
+
e.setState(f, i, a);
|
|
391
402
|
};
|
|
392
403
|
return [r, o];
|
|
393
404
|
}
|
|
394
|
-
function
|
|
395
|
-
var e = v(), r =
|
|
405
|
+
function re() {
|
|
406
|
+
var e = v(), r = s(e.getCurrentState()), n = e.on("currentStateChange", function() {
|
|
396
407
|
Object.assign(r.value, e.getCurrentState());
|
|
397
408
|
});
|
|
398
409
|
l(function() {
|
|
399
410
|
n();
|
|
400
411
|
});
|
|
401
|
-
var o = function(t,
|
|
412
|
+
var o = function(t, i, a) {
|
|
402
413
|
var f = typeof t == "function" ? t(e.getCurrentState()) : t;
|
|
403
|
-
e.setState(f,
|
|
414
|
+
e.setState(f, i, a);
|
|
404
415
|
};
|
|
405
416
|
return [r, o];
|
|
406
417
|
}
|
|
407
|
-
function
|
|
408
|
-
var e = v(), r =
|
|
418
|
+
function ne() {
|
|
419
|
+
var e = v(), r = U(e.getCurrentState()), n = s(e.works.getResolvedObserver(e.pano)), o = e.on("currentStateChange", function() {
|
|
409
420
|
Object.assign(r, e.getCurrentState()), n.value = e.works.getResolvedObserver({
|
|
410
421
|
workCode: r.workCode,
|
|
411
422
|
panoIndex: r.panoIndex
|
|
@@ -415,107 +426,107 @@ function Y() {
|
|
|
415
426
|
o();
|
|
416
427
|
}), n;
|
|
417
428
|
}
|
|
418
|
-
function
|
|
429
|
+
function te(e, r) {
|
|
419
430
|
var n = v(), o = n.on(e, r);
|
|
420
431
|
l(function() {
|
|
421
432
|
o();
|
|
422
433
|
});
|
|
423
434
|
}
|
|
424
|
-
function
|
|
425
|
-
var e = v(), r = function(f,
|
|
426
|
-
return e.updateCamera(f,
|
|
427
|
-
}, n = function(f,
|
|
428
|
-
return e.getPixels(f,
|
|
435
|
+
function oe() {
|
|
436
|
+
var e = v(), r = function(f, u) {
|
|
437
|
+
return e.updateCamera(f, u);
|
|
438
|
+
}, n = function(f, u, d, w, m) {
|
|
439
|
+
return e.getPixels(f, u, d, w, m);
|
|
429
440
|
}, o = function(f) {
|
|
430
441
|
return e.render(f);
|
|
431
442
|
}, t = function() {
|
|
432
443
|
return e.needsRender = !0;
|
|
433
|
-
},
|
|
434
|
-
return e.preloadPano(f,
|
|
435
|
-
},
|
|
436
|
-
return
|
|
444
|
+
}, i = function(f, u) {
|
|
445
|
+
return e.preloadPano(f, u);
|
|
446
|
+
}, a = function(f, u) {
|
|
447
|
+
return u === void 0 && (u = !1), e.project2d(f, u);
|
|
437
448
|
};
|
|
438
449
|
return {
|
|
439
450
|
updateCamera: r,
|
|
440
451
|
getPixels: n,
|
|
441
452
|
render: o,
|
|
442
453
|
needsRender: t,
|
|
443
|
-
preloadPano:
|
|
444
|
-
project2d:
|
|
454
|
+
preloadPano: i,
|
|
455
|
+
project2d: a
|
|
445
456
|
};
|
|
446
457
|
}
|
|
447
|
-
function
|
|
458
|
+
function K(e, r) {
|
|
448
459
|
r === void 0 && (r = !1);
|
|
449
|
-
var n = v(), o =
|
|
460
|
+
var n = v(), o = s(Symbol()), t = p(e ? n.project2d(C(e) ? e.value : e, r) : null), i = n.on("cameraUpdate", function() {
|
|
450
461
|
o.value = Symbol();
|
|
451
462
|
});
|
|
452
463
|
return l(function() {
|
|
453
|
-
|
|
454
|
-
}),
|
|
455
|
-
t.value = n.project2d(
|
|
464
|
+
i();
|
|
465
|
+
}), b([o, e], function() {
|
|
466
|
+
t.value = n.project2d(C(e) ? e.value : e, r);
|
|
456
467
|
}), t;
|
|
457
468
|
}
|
|
458
|
-
function
|
|
459
|
-
return
|
|
469
|
+
function ae() {
|
|
470
|
+
return K;
|
|
460
471
|
}
|
|
461
|
-
function
|
|
472
|
+
function j(e) {
|
|
462
473
|
var r = e.camera.getWorldDirection(new g.Vector3()), n = new g.Raycaster(e.camera.position, r);
|
|
463
474
|
return n;
|
|
464
475
|
}
|
|
465
|
-
function
|
|
466
|
-
var e = v(), r =
|
|
467
|
-
r.value =
|
|
476
|
+
function ie() {
|
|
477
|
+
var e = v(), r = p(j(e)), n = e.on("cameraUpdate", function() {
|
|
478
|
+
r.value = j(e);
|
|
468
479
|
});
|
|
469
480
|
return l(function() {
|
|
470
481
|
n();
|
|
471
482
|
}), r;
|
|
472
483
|
}
|
|
473
|
-
function
|
|
484
|
+
function E(e) {
|
|
474
485
|
return e.camera.getWorldDirection(new g.Vector3());
|
|
475
486
|
}
|
|
476
|
-
function
|
|
477
|
-
var e = v(), r =
|
|
478
|
-
r.value =
|
|
487
|
+
function ue() {
|
|
488
|
+
var e = v(), r = p(E(e)), n = e.on("cameraUpdate", function() {
|
|
489
|
+
r.value = E(e);
|
|
479
490
|
});
|
|
480
491
|
return l(function() {
|
|
481
492
|
n();
|
|
482
493
|
}), r;
|
|
483
494
|
}
|
|
484
|
-
function
|
|
485
|
-
var r = v(), n =
|
|
486
|
-
return
|
|
487
|
-
n.value = r.model.intersectRaycaster(
|
|
495
|
+
function M(e) {
|
|
496
|
+
var r = v(), n = p([]);
|
|
497
|
+
return b(e, function() {
|
|
498
|
+
n.value = r.model.intersectRaycaster(C(e) ? e.value : e);
|
|
488
499
|
}), n;
|
|
489
500
|
}
|
|
490
|
-
function
|
|
491
|
-
return
|
|
501
|
+
function fe() {
|
|
502
|
+
return M;
|
|
492
503
|
}
|
|
493
|
-
function
|
|
504
|
+
function x(e) {
|
|
494
505
|
return e.model.empty ? "Empty" : "Loaded";
|
|
495
506
|
}
|
|
496
|
-
function
|
|
497
|
-
var e = v(), r =
|
|
498
|
-
r.value =
|
|
507
|
+
function ve() {
|
|
508
|
+
var e = v(), r = s(x(e)), n = e.on("modelLoaded", function() {
|
|
509
|
+
r.value = x(e);
|
|
499
510
|
});
|
|
500
511
|
return l(function() {
|
|
501
512
|
n();
|
|
502
513
|
}), r;
|
|
503
514
|
}
|
|
504
|
-
function
|
|
505
|
-
var e = v(), r =
|
|
506
|
-
typeof
|
|
515
|
+
function le() {
|
|
516
|
+
var e = v(), r = s(e.model.shownFloor), n = s(e.model.floorLength), o = function(i) {
|
|
517
|
+
typeof i == "number" ? e.model.show(i) : e.model.show();
|
|
507
518
|
}, t = [];
|
|
508
519
|
return t.push(e.on("modelShownFloorChange", function() {
|
|
509
520
|
r.value = e.model.shownFloor;
|
|
510
521
|
})), t.push(e.on("modelLoaded", function() {
|
|
511
522
|
n.value = e.model.floorLength;
|
|
512
523
|
})), l(function() {
|
|
513
|
-
for (var
|
|
514
|
-
|
|
524
|
+
for (var i; i = t.shift(); )
|
|
525
|
+
i();
|
|
515
526
|
}), [r, n, o];
|
|
516
527
|
}
|
|
517
|
-
function
|
|
518
|
-
var e = v(), r =
|
|
528
|
+
function ce() {
|
|
529
|
+
var e = v(), r = s(e.helperVisible), n = function(t) {
|
|
519
530
|
e.helperVisible = t;
|
|
520
531
|
}, o = e.on("helpersVisibleChange", function(t) {
|
|
521
532
|
r.value = t;
|
|
@@ -524,26 +535,26 @@ function ue() {
|
|
|
524
535
|
o();
|
|
525
536
|
}), [r, n];
|
|
526
537
|
}
|
|
527
|
-
function
|
|
538
|
+
function se() {
|
|
528
539
|
return v();
|
|
529
540
|
}
|
|
530
|
-
function
|
|
541
|
+
function W(e) {
|
|
531
542
|
return e.model.bounding.clone();
|
|
532
543
|
}
|
|
533
|
-
function
|
|
534
|
-
var e = v(), r =
|
|
535
|
-
r.value =
|
|
544
|
+
function de() {
|
|
545
|
+
var e = v(), r = p(W(e)), n = e.on("modelLoaded", function() {
|
|
546
|
+
r.value = W(e);
|
|
536
547
|
});
|
|
537
548
|
return l(function() {
|
|
538
549
|
n();
|
|
539
550
|
}), r;
|
|
540
551
|
}
|
|
541
|
-
function
|
|
552
|
+
function ge() {
|
|
542
553
|
var e = v();
|
|
543
554
|
return e.scene;
|
|
544
555
|
}
|
|
545
|
-
function
|
|
546
|
-
var e = v(), r =
|
|
556
|
+
function he() {
|
|
557
|
+
var e = v(), r = p(e.model), n = e.on("modelLoaded", function() {
|
|
547
558
|
r.value = e.model;
|
|
548
559
|
});
|
|
549
560
|
return l(function() {
|
|
@@ -551,23 +562,23 @@ function ce() {
|
|
|
551
562
|
}), r;
|
|
552
563
|
}
|
|
553
564
|
export {
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
565
|
+
X as FiveCanvas,
|
|
566
|
+
Y as FiveProvider,
|
|
567
|
+
se as unsafe__useFiveInject,
|
|
568
|
+
oe as useFiveAction,
|
|
569
|
+
ue as useFiveCameraDirection,
|
|
570
|
+
ie as useFiveCameraRaycaster,
|
|
571
|
+
ne as useFiveCurrentObserver,
|
|
572
|
+
re as useFiveCurrentState,
|
|
573
|
+
te as useFiveEventCallback,
|
|
574
|
+
le as useFiveFloor,
|
|
575
|
+
ce as useFiveHelper,
|
|
576
|
+
he as useFiveModel,
|
|
577
|
+
de as useFiveModelBounding,
|
|
578
|
+
fe as useFiveModelIntersectRaycaster,
|
|
579
|
+
ve as useFiveModelReadyState,
|
|
580
|
+
ae as useFiveProject2d,
|
|
581
|
+
ge as useFiveScene,
|
|
582
|
+
ee as useFiveState,
|
|
583
|
+
Z as useFiveWorks
|
|
573
584
|
};
|