@realsee/five 6.6.0-alpha.1 → 6.6.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/hierarchy.js +1 -0
- package/docs/assets/icons.js +1 -1
- package/docs/assets/icons.svg +1 -1
- package/docs/assets/main.js +5 -5
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/assets/style.css +1440 -1255
- package/docs/classes/five.AnimationFrameLoop.html +16 -16
- package/docs/classes/five.Camera.html +41 -41
- package/docs/classes/five.Fetcher.html +5 -5
- package/docs/classes/five.Five.html +211 -211
- package/docs/classes/five.InternalWebGLRenderer.html +2 -2
- package/docs/classes/five.Model.html +72 -72
- package/docs/classes/five.ModelScene.html +34 -34
- package/docs/classes/five.Motion.html +17 -17
- package/docs/classes/five.NetworkSubscribe.html +35 -35
- package/docs/classes/five.PBMContainer.html +17 -17
- package/docs/classes/five.PBMCustomShader.html +11 -11
- package/docs/classes/five.PBMGroup.html +4 -4
- package/docs/classes/five.PBMMesh.html +2 -2
- package/docs/classes/five.PBMMeshMaterial.html +84 -84
- package/docs/classes/five.PBMPointCloud.html +3 -3
- package/docs/classes/five.PBMPointCloudMaterial.html +40 -40
- package/docs/classes/five.PBMSkinnedMesh.html +4 -4
- package/docs/classes/five.PanoCircleMesh.html +20 -20
- package/docs/classes/five.PanoCircleMeshCustom.html +20 -20
- package/docs/classes/five.PanoCircleMeshSolid.html +20 -20
- package/docs/classes/five.Parameter.html +114 -114
- package/docs/classes/five.Scene.html +9 -9
- package/docs/classes/five.Subscribe.html +37 -37
- package/docs/classes/five.TextureLoader.html +4 -4
- package/docs/classes/five.Tile.html +34 -34
- package/docs/classes/five.Tile3DModel.html +91 -91
- package/docs/classes/five.TileCache.html +8 -8
- package/docs/classes/five.TileNode.html +9 -9
- package/docs/classes/five.TileRequestScheduler.html +4 -4
- package/docs/classes/five.Tileset.html +37 -37
- package/docs/classes/five.Trajectory.html +8 -8
- package/docs/classes/five.TrajectoryNode.html +7 -7
- package/docs/classes/five.Work.html +42 -42
- package/docs/classes/five.WorkResolvedObserver.html +40 -40
- package/docs/classes/five.XRButton.html +3 -3
- package/docs/classes/gltf-loader.DDSLoader.html +3 -0
- package/docs/classes/gltf-loader.DRACOLoader.html +8 -0
- package/docs/classes/gltf-loader.GLTFLoader.html +19 -0
- package/docs/classes/gltf-loader.GLTFObject.html +9 -0
- package/docs/classes/gltf-loader.GLTFParser.html +6 -0
- package/docs/classes/gltf-loader.THREEGLTFLoader.html +8 -0
- package/docs/classes/line.Line.html +10 -10
- package/docs/classes/line.LineGeometry.html +17 -17
- package/docs/classes/line.LineMaterial.html +8 -8
- package/docs/classes/line.LineSegmentsGeometry.html +15 -15
- package/docs/classes/line.THREE_Line2.html +4 -4
- package/docs/classes/line.THREE_LineSegments2.html +4 -4
- package/docs/classes/plugins.BasePlugin.Controller.html +39 -0
- package/docs/classes/plugins.CSS3DRenderer.html +6 -0
- package/docs/classes/plugins.OrbitControls.html +41 -0
- package/docs/classes/plugins.RoundedBoxGeometry.html +3 -0
- package/docs/classes/react.Store.html +20 -20
- package/docs/classes/sticker.Sticker.html +17 -17
- package/docs/classes/vfx.Airflow.html +8 -8
- package/docs/classes/vfx.Flame.html +10 -10
- package/docs/classes/vfx.Particle.html +78 -78
- package/docs/classes/vfx.SpotLight.html +7 -7
- package/docs/documents/coordinate.html +4 -4
- package/docs/documents/five.FivePlugin.plugins.html +15 -15
- package/docs/documents/five.Pose.coordinate.html +4 -4
- package/docs/documents/plugins.html +15 -15
- package/docs/documents/react-component.html +32 -0
- package/docs/enums/five.VolumePlaneIntersect.html +4 -4
- package/docs/enums/plugins.BackgroundPluginType.WarningCodeType.html +2 -0
- package/docs/functions/five.coordinatesToVector.html +2 -0
- package/docs/functions/five.createDebugBoundingMesh.html +1 -1
- package/docs/functions/five.createWorks.html +1 -1
- package/docs/functions/five.defaultImageURLTransform.html +2 -2
- package/docs/functions/five.getViewportScale.html +1 -1
- package/docs/functions/five.headingToLongitude.html +4 -0
- package/docs/functions/five.imageSupport.html +1 -1
- package/docs/functions/five.isBoundingVolume.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.loadFbx.html +1 -1
- package/docs/functions/five.loadGltf.html +1 -1
- package/docs/functions/five.loadPbm.html +1 -1
- package/docs/functions/five.loadPly.html +1 -1
- package/docs/functions/five.loadPnts.html +1 -1
- package/docs/functions/five.loadX3p.html +1 -1
- package/docs/functions/five.longitudeToHeading.html +4 -0
- package/docs/functions/five.makeBoundingVolume.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 +2 -2
- package/docs/functions/five.vectorToCoordinates.html +2 -0
- package/docs/functions/five.workToJson.html +1 -1
- package/docs/functions/plugins.BackgroundPlugin.html +1 -0
- package/docs/functions/plugins.ItemMaskPlugin.html +1 -0
- package/docs/functions/plugins.OrientationPlugin.html +1 -0
- package/docs/functions/plugins.PanoAnimePlugin.html +1 -0
- package/docs/functions/plugins.TrajectoryPlugin.html +1 -0
- package/docs/functions/react.createFiveFeature.html +1 -1
- package/docs/functions/react.createFiveProvider.html +5 -5
- package/docs/functions/react.createStore.html +12 -12
- package/docs/functions/react.unsafe__useFiveInstance.html +4 -4
- package/docs/functions/react.useFiveAction.html +8 -8
- package/docs/functions/react.useFiveCameraDirection.html +3 -3
- package/docs/functions/react.useFiveCameraRaycaster.html +3 -3
- package/docs/functions/react.useFiveCurrentObserver.html +4 -4
- package/docs/functions/react.useFiveCurrentState.html +4 -4
- package/docs/functions/react.useFiveEventCallback.html +3 -3
- package/docs/functions/react.useFiveFloor.html +4 -4
- package/docs/functions/react.useFiveHelper.html +4 -4
- package/docs/functions/react.useFiveModelIntersectRaycaster.html +4 -4
- package/docs/functions/react.useFiveModelReadyState.html +3 -3
- package/docs/functions/react.useFiveProject2d.html +4 -4
- package/docs/functions/react.useFiveSceneEffect.html +4 -4
- package/docs/functions/react.useFiveState.html +1 -1
- package/docs/functions/react.useFiveWork.html +5 -5
- package/docs/functions/react.withFive.html +1 -1
- package/docs/functions/vue.unsafe__useFiveInject.html +4 -4
- package/docs/functions/vue.useFiveAction.html +10 -10
- package/docs/functions/vue.useFiveCameraDirection.html +3 -3
- package/docs/functions/vue.useFiveCameraRaycaster.html +3 -3
- package/docs/functions/vue.useFiveCurrentObserver.html +4 -4
- package/docs/functions/vue.useFiveCurrentState.html +4 -4
- package/docs/functions/vue.useFiveEventCallback.html +3 -3
- package/docs/functions/vue.useFiveFloor.html +4 -4
- package/docs/functions/vue.useFiveHelper.html +4 -4
- package/docs/functions/vue.useFiveModel.html +2 -2
- package/docs/functions/vue.useFiveModelBounding.html +2 -2
- package/docs/functions/vue.useFiveModelIntersectRaycaster.html +4 -4
- package/docs/functions/vue.useFiveModelReadyState.html +3 -3
- package/docs/functions/vue.useFiveProject2d.html +4 -4
- package/docs/functions/vue.useFiveScene.html +2 -2
- package/docs/functions/vue.useFiveState.html +4 -4
- package/docs/functions/vue.useFiveWorks.html +5 -5
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +17 -17
- package/docs/interfaces/five.AddableObject.html +9 -9
- package/docs/interfaces/five.AjaxOptions.html +9 -9
- package/docs/interfaces/five.AnimationFrame.html +5 -5
- package/docs/interfaces/five.AnimationFrameContext.html +3 -3
- package/docs/interfaces/five.BaseEvent.html +5 -5
- package/docs/interfaces/five.BoundingVolume.html +15 -15
- package/docs/interfaces/five.BoxBoundingVolume.html +18 -0
- package/docs/interfaces/five.CameraPose.html +6 -6
- package/docs/interfaces/five.CullingVolume.html +9 -0
- package/docs/interfaces/five.Draco.html +12 -0
- package/docs/interfaces/five.EventCallback.html +255 -255
- package/docs/interfaces/five.FiveInitArgs.html +85 -85
- package/docs/interfaces/five.FiveLoadOptions.html +13 -13
- package/docs/interfaces/five.FloorplanControllerCustomInitArgs.html +17 -17
- package/docs/interfaces/five.GestureEvent.html +19 -19
- package/docs/interfaces/five.ImageOptions.html +14 -14
- package/docs/interfaces/five.ImageURLMappings.html +1 -1
- package/docs/interfaces/five.ImageURLOptions.html +15 -15
- package/docs/interfaces/five.IntersectEvent.html +8 -8
- package/docs/interfaces/five.IntersectMesh.html +2 -0
- package/docs/interfaces/five.IntersectMeshInterface.html +3 -3
- package/docs/interfaces/five.Intersection.html +5 -5
- package/docs/interfaces/five.KTX2.html +9 -0
- package/docs/interfaces/five.LoosePanoWork.html +10 -10
- package/docs/interfaces/five.LooseWork.html +15 -15
- package/docs/interfaces/five.LooseWorkInitial.html +11 -11
- package/docs/interfaces/five.LooseWorkModel.html +6 -6
- package/docs/interfaces/five.LooseWorkObserver.html +16 -16
- package/docs/interfaces/five.LooseWorkPanorama.html +13 -13
- package/docs/interfaces/five.LooseWorkVideo.html +4 -4
- package/docs/interfaces/five.LooseWorkWithExtrinsics.html +13 -13
- package/docs/interfaces/five.MapviewControllerCustomInitArgs.html +17 -17
- package/docs/interfaces/five.ModeChangeEvent.html +9 -9
- package/docs/interfaces/five.ModelControllerCustomInitArgs.html +18 -18
- package/docs/interfaces/five.ModelEvent.html +8 -8
- package/docs/interfaces/five.ModelLike.html +3 -3
- package/docs/interfaces/five.ModelSceneEvent.html +6 -6
- package/docs/interfaces/five.MotionKeyframe.html +4 -4
- package/docs/interfaces/five.MovePanoOptions.html +24 -24
- package/docs/interfaces/five.NetworkAbortError.html +1 -0
- package/docs/interfaces/five.NetworkFirbiddenError.html +1 -0
- package/docs/interfaces/five.NetworkOptions.html +7 -7
- package/docs/interfaces/five.NetworkProxyError.html +1 -0
- package/docs/interfaces/five.NetworkResourceEvent.html +9 -9
- package/docs/interfaces/five.NetworkResponseError.html +2 -0
- package/docs/interfaces/five.NetworkTimeoutError.html +1 -0
- package/docs/interfaces/five.ObjectEvent.html +6 -6
- package/docs/interfaces/five.PBMClipperParameter.html +3 -3
- package/docs/interfaces/five.PBMCustomShaderInitArgs.html +6 -6
- package/docs/interfaces/five.PBMCustomShaderSlots.html +3 -3
- package/docs/interfaces/five.PBMMaterial.html +1 -0
- package/docs/interfaces/five.PBMMeshMaterialParameters.html +28 -28
- package/docs/interfaces/five.PBMPanoDepth.html +9 -9
- package/docs/interfaces/five.PBMPanoPicture.html +11 -11
- package/docs/interfaces/five.PBMPointCloudMaterialParameters.html +28 -28
- package/docs/interfaces/five.PBMRefinedScreen.html +6 -6
- package/docs/interfaces/five.PanoCircleMeshCustomOptions.html +9 -9
- package/docs/interfaces/five.PanoCircleMeshInterface.html +20 -20
- package/docs/interfaces/five.PanoCircleMeshOptions.html +3 -3
- package/docs/interfaces/five.PanoCircleMeshSolidOptions.html +3 -3
- package/docs/interfaces/five.PanoEvent.html +11 -11
- package/docs/interfaces/five.PanoTextureEvent.html +9 -9
- package/docs/interfaces/five.PanoramaControllerCustomInitArgs.html +38 -38
- package/docs/interfaces/five.PanoramaLikeControllerCustomInitArgs.html +18 -18
- package/docs/interfaces/five.ParameterMaterialValue.html +73 -73
- package/docs/interfaces/five.ParameterTilesetValue.html +31 -31
- package/docs/interfaces/five.ParameterValue.html +103 -103
- package/docs/interfaces/five.Pose.html +13 -13
- package/docs/interfaces/five.RegionBoundingVolume.html +21 -0
- package/docs/interfaces/five.RenderEvent.html +6 -6
- package/docs/interfaces/five.ResolvedParameterValue.html +105 -105
- package/docs/interfaces/five.SphereBoundingVolume.html +17 -0
- package/docs/interfaces/five.State.html +19 -19
- package/docs/interfaces/five.StateEvent.html +7 -7
- package/docs/interfaces/five.TextureOptions.html +16 -16
- package/docs/interfaces/five.Tile3DModelLoaderOptions.html +12 -12
- package/docs/interfaces/five.TileHeader.html +9 -9
- package/docs/interfaces/five.TilesetHeader.html +20 -20
- package/docs/interfaces/five.TilesetOptions.html +12 -12
- package/docs/interfaces/five.TopviewControllerCustomInitArgs.html +9 -9
- package/docs/interfaces/five.TrajectoryHeader.html +5 -5
- package/docs/interfaces/five.VRPanoramaControllerCustomInitArgs.html +34 -34
- package/docs/interfaces/five.ViewLayer.html +90 -90
- package/docs/interfaces/five.Viewport.html +11 -11
- package/docs/interfaces/five.WebXRAxesParams.html +4 -4
- package/docs/interfaces/five.WebXRControllerParams.html +2 -2
- package/docs/interfaces/five.WorkCubeImage.html +8 -8
- package/docs/interfaces/five.WorkImage.html +13 -13
- package/docs/interfaces/five.WorkInitial.html +17 -17
- package/docs/interfaces/five.WorkInitialJson.html +8 -8
- package/docs/interfaces/five.WorkJson.html +12 -12
- package/docs/interfaces/five.WorkModel.html +12 -12
- package/docs/interfaces/five.WorkModelJson.html +5 -5
- package/docs/interfaces/five.WorkModelLayer.html +6 -6
- package/docs/interfaces/five.WorkModelLayerJson.html +5 -5
- package/docs/interfaces/five.WorkObserver.html +34 -34
- package/docs/interfaces/five.WorkObserverJson.html +8 -8
- package/docs/interfaces/five.WorkPanoramaJson.html +14 -14
- package/docs/interfaces/five.WorkPanoramasJson.html +3 -3
- package/docs/interfaces/five.WorkTile.html +14 -14
- package/docs/interfaces/five.WorkVideo.html +9 -9
- package/docs/interfaces/five.WorksEvent.html +9 -9
- package/docs/interfaces/five.XRControllerEvent.html +8 -8
- package/docs/interfaces/five.XRGestureEvent.html +11 -11
- package/docs/interfaces/five.XRPanoramaControllerCustomInitArgs.html +34 -34
- package/docs/interfaces/five.XRSessionEvent.html +7 -7
- package/docs/interfaces/gltf-loader.DDS.html +7 -0
- package/docs/interfaces/gltf-loader.GLTF.html +13 -0
- package/docs/interfaces/gltf-loader.GLTFReference.html +3 -0
- package/docs/interfaces/gltf-loader.THREEGLTF.html +8 -0
- package/docs/interfaces/plugins.BackgroundPluginController.html +37 -0
- package/docs/interfaces/plugins.BackgroundPluginType.Config.html +1 -0
- package/docs/interfaces/plugins.BackgroundPluginType.EventMap.html +20 -0
- package/docs/interfaces/plugins.BackgroundPluginType.Params.html +3 -0
- package/docs/interfaces/plugins.BackgroundPluginType.PluginDataItem.html +1 -0
- package/docs/interfaces/plugins.BasePlugin.BaseOptions.html +3 -0
- package/docs/interfaces/plugins.BasePlugin.Config.html +5 -0
- package/docs/interfaces/plugins.BasePlugin.State.html +8 -0
- package/docs/interfaces/plugins.BasePlugin.StateChangeParams.html +7 -0
- package/docs/interfaces/plugins.ItemMaskController.html +35 -0
- package/docs/interfaces/plugins.ItemMaskPluginType.Config.html +2 -0
- package/docs/interfaces/plugins.ItemMaskPluginType.EventMap.html +10 -0
- package/docs/interfaces/plugins.ItemMaskPluginType.ItemType.html +13 -0
- package/docs/interfaces/plugins.ItemMaskPluginType.MaskType.html +4 -0
- package/docs/interfaces/plugins.ItemMaskPluginType.Params.html +4 -0
- package/docs/interfaces/plugins.ItemMaskPluginType.State.html +14 -0
- package/docs/interfaces/plugins.Keyframe.html +3 -0
- package/docs/interfaces/plugins.OrientationPluginController.html +46 -0
- package/docs/interfaces/plugins.OrientationPluginType.Config.html +4 -0
- package/docs/interfaces/plugins.OrientationPluginType.EventMap.html +10 -0
- package/docs/interfaces/plugins.OrientationPluginType.Params.html +4 -0
- package/docs/interfaces/plugins.OrientationPluginType.State.html +10 -0
- package/docs/interfaces/plugins.PanoAnimeController.html +32 -0
- package/docs/interfaces/plugins.PanoAnimePluginType.Config.html +2 -0
- package/docs/interfaces/plugins.PanoAnimePluginType.EventMap.html +11 -0
- package/docs/interfaces/plugins.PanoAnimePluginType.Params.html +4 -0
- package/docs/interfaces/plugins.PanoAnimePluginType.State.html +8 -0
- package/docs/interfaces/plugins.PlayingState.html +3 -0
- package/docs/interfaces/plugins.PluginTemplateType.Config.html +3 -0
- package/docs/interfaces/plugins.PluginTemplateType.EventMap.html +10 -0
- package/docs/interfaces/plugins.PluginTemplateType.Params.html +4 -0
- package/docs/interfaces/plugins.PluginTemplateType.State.html +8 -0
- package/docs/interfaces/plugins.TrajectoryController.html +50 -0
- package/docs/interfaces/react.FiveActionReactCallbacks.html +27 -27
- package/docs/interfaces/react.FiveCanvasProps.html +5 -5
- package/docs/interfaces/react.FiveInjectionTypes.html +152 -144
- package/docs/interfaces/react.PropTypeOfFiveFeatures.html +2 -2
- package/docs/interfaces/sticker.IntersectionLike.html +7 -7
- package/docs/interfaces/vfx.ParticleArgs.html +67 -67
- package/docs/interfaces/vfx.ParticleTweenKeyframe.html +3 -3
- package/docs/interfaces/vue.FiveActionVueCallbacks.html +30 -30
- package/docs/modules/five.html +1 -232
- package/docs/modules/gltf-loader.html +1 -0
- package/docs/modules/line.html +1 -8
- package/docs/modules/plugins.BackgroundPluginType.html +1 -0
- package/docs/modules/plugins.BasePlugin.html +1 -0
- package/docs/modules/plugins.ItemMaskPluginType.html +1 -0
- package/docs/modules/plugins.OrientationPluginType.html +1 -0
- package/docs/modules/plugins.PanoAnimePluginType.html +1 -0
- package/docs/modules/plugins.PluginTemplateType.html +1 -0
- package/docs/modules/plugins.html +1 -0
- package/docs/modules/react.html +1 -37
- package/docs/modules/sticker.html +1 -3
- package/docs/modules/vfx.html +1 -8
- package/docs/modules/vue.html +1 -24
- package/docs/modules.html +1 -0
- package/docs/types/five.AjaxResponseType.html +1 -1
- package/docs/types/five.AjaxResponseTypeMapping.html +1 -1
- package/docs/types/five.AnimationFrameLoopType.html +1 -1
- package/docs/types/five.BoundingVolumeJson.html +1 -1
- package/docs/types/five.BoxBoundingVolumeJson.html +2 -1
- package/docs/types/five.ControllerCustomInitTypes.html +8 -1
- package/docs/types/five.ControllerEventTypes.html +66 -33
- package/docs/types/five.CubeFace.html +1 -1
- package/docs/types/five.EventTypes.html +26 -26
- package/docs/types/five.FivePlugin.html +4 -4
- package/docs/types/five.FivePluginInit.html +3 -3
- package/docs/types/five.FivePluginInstance.html +3 -3
- package/docs/types/five.GestureTypes.html +1 -1
- package/docs/types/five.LegacyEventType.html +149 -86
- package/docs/types/five.LoadResultType.html +12 -1
- package/docs/types/five.Mode.html +9 -9
- package/docs/types/five.Models.html +11 -11
- package/docs/types/five.MotionCircle.html +2 -2
- package/docs/types/five.MotionConfig.html +1 -1
- package/docs/types/five.MotionInitalValue.html +1 -1
- package/docs/types/five.MotionValue.html +1 -1
- package/docs/types/five.MovePanoEffect.html +3 -3
- package/docs/types/five.NetWorkMeta.html +8 -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 +3 -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.PBMAlphaMode.html +1 -1
- package/docs/types/five.PBMColorStyle.html +1 -1
- package/docs/types/five.PBMFloorStyle.html +1 -1
- package/docs/types/five.PBMMeshShaderType.html +1 -1
- package/docs/types/five.PBMPointBack.html +1 -1
- package/docs/types/five.PBMPointCloudShaderType.html +1 -1
- package/docs/types/five.PBMPointShape.html +1 -1
- package/docs/types/five.PBMPointSize.html +1 -1
- package/docs/types/five.PBMTransition.html +1 -1
- package/docs/types/five.Pano.html +3 -1
- package/docs/types/five.PanoId.html +1 -1
- package/docs/types/five.ParseOptions.html +11 -6
- package/docs/types/five.PostProcessingType.html +1 -1
- package/docs/types/five.RegionBoundingVolumeJson.html +2 -1
- package/docs/types/five.Scissor.html +2 -2
- package/docs/types/five.SphereBoundingVolumeJson.html +2 -1
- package/docs/types/five.SubscribeEventMap.html +1 -1
- package/docs/types/five.Tile3dOptions.html +1 -1
- package/docs/types/five.TileCacheOptions.html +3 -1
- package/docs/types/five.TileContentData.html +6 -1
- package/docs/types/five.TileRequestOrder.html +1 -1
- package/docs/types/five.TileRequestSchedulerOptions.html +4 -1
- package/docs/types/five.TilesetFrameState.html +22 -1
- package/docs/types/five.TrajectoryContentData.html +7 -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 +8 -1
- package/docs/types/plugins.BackgroundPluginType.Mirror.html +1 -0
- package/docs/types/plugins.BackgroundPluginType.Mode.html +1 -0
- package/docs/types/plugins.BackgroundPluginType.PluginData.html +1 -0
- package/docs/types/plugins.BackgroundPluginType.State.html +2 -0
- package/docs/types/plugins.BasePlugin.EventMap.html +10 -0
- package/docs/types/plugins.ItemMaskPluginType.PluginData.html +3 -0
- package/docs/types/plugins.ItemMaskPluginType.ServerData.html +3 -0
- package/docs/types/plugins.OrientationPluginType.PluginData.html +1 -0
- package/docs/types/plugins.OrientationPluginType.ServerData.html +1 -0
- package/docs/types/plugins.PanoAnimePluginType.PluginData.html +1 -0
- package/docs/types/plugins.PanoAnimePluginType.ServerData.html +1 -0
- package/docs/types/plugins.PluginTemplateType.PluginData.html +1 -0
- package/docs/types/plugins.PluginTemplateType.ServerData.html +2 -0
- 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 +11 -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.controllersDefaultInitArgs.html +1 -1
- package/docs/variables/five.draco.html +1 -0
- package/docs/variables/five.ktx2.html +1 -0
- package/docs/variables/react.FiveCanvas.html +6 -0
- package/docs/variables/react.INJECTION_PROPNAME.html +1 -1
- package/docs/variables/react.useFiveScene.html +7 -0
- package/docs/variables/vue.FiveCanvas.html +7 -7
- package/docs/variables/vue.FiveProvider.html +5 -5
- package/five/index.d.ts +33 -1
- package/five/index.js +93 -91
- package/five/index.mjs +4247 -4193
- package/gltf-loader/index.js +5 -5
- package/gltf-loader/index.mjs +160 -172
- package/line/index.js +4 -4
- package/line/index.mjs +15 -15
- package/package.json +4 -7
- package/plugins/index.js +10 -10
- package/plugins/index.mjs +42 -42
- package/react/index.d.ts +46 -37
- package/react/index.js +3 -3
- package/react/index.mjs +8 -8
- package/shader-lib/index.js +7 -7
- package/shader-lib/index.mjs +14 -14
- package/sticker/index.js +3 -3
- package/sticker/index.mjs +9 -9
- package/umd/five-gltf-loader.js +5 -5
- package/umd/five-line.js +4 -4
- package/umd/five-plugins.js +10 -10
- package/umd/five-react.js +3 -3
- package/umd/five-shader-lib.js +8 -8
- package/umd/five-sticker.js +3 -3
- package/umd/five-vfx.js +7 -7
- package/umd/five-vue.js +3 -3
- package/umd/five.js +94 -92
- package/vfx/index.js +6 -6
- package/vfx/index.mjs +12 -12
- package/vue/index.js +2 -2
- package/vue/index.mjs +2 -2
- package/work-downloader/index.js +3 -3
- package/work-downloader/index.mjs +4 -4
- package/docs/classes/five.BoxBoundingVolume.html +0 -19
- package/docs/classes/five.CullingVolume.html +0 -13
- package/docs/classes/five.Draco.html +0 -13
- package/docs/classes/five.IntersectMesh.html +0 -4
- package/docs/classes/five.KTX2.html +0 -10
- package/docs/classes/five.NetworkAbortError.html +0 -2
- package/docs/classes/five.NetworkFirbiddenError.html +0 -2
- package/docs/classes/five.NetworkProxyError.html +0 -2
- package/docs/classes/five.NetworkResponseError.html +0 -3
- package/docs/classes/five.NetworkTimeoutError.html +0 -2
- package/docs/classes/five.PBMMaterial.html +0 -2
- package/docs/classes/five.RegionBoundingVolume.html +0 -22
- package/docs/classes/five.SphereBoundingVolume.html +0 -18
- package/docs/classes/gltf_loader.DDSLoader.html +0 -3
- package/docs/classes/gltf_loader.DRACOLoader.html +0 -8
- package/docs/classes/gltf_loader.GLTFLoader.html +0 -19
- package/docs/classes/gltf_loader.GLTFObject.html +0 -9
- package/docs/classes/gltf_loader.GLTFParser.html +0 -6
- package/docs/classes/gltf_loader.THREEGLTFLoader.html +0 -8
- package/docs/classes/plugins-1.BackgroundPluginController.html +0 -38
- package/docs/classes/plugins-1.BasePlugin.Controller.html +0 -39
- package/docs/classes/plugins-1.CSS3DRenderer.html +0 -6
- package/docs/classes/plugins-1.ItemMaskController.html +0 -36
- package/docs/classes/plugins-1.OrbitControls.html +0 -41
- package/docs/classes/plugins-1.OrientationPluginController.html +0 -47
- package/docs/classes/plugins-1.PanoAnimeController.html +0 -33
- package/docs/classes/plugins-1.RoundedBoxGeometry.html +0 -3
- package/docs/classes/plugins-1.TrajectoryController.html +0 -51
- package/docs/documents/react_component.html +0 -32
- package/docs/enums/plugins-1.BackgroundPluginType.WarningCodeType.html +0 -2
- package/docs/functions/plugins-1.BackgroundPlugin.html +0 -1
- package/docs/functions/plugins-1.ItemMaskPlugin.html +0 -1
- package/docs/functions/plugins-1.OrientationPlugin.html +0 -1
- package/docs/functions/plugins-1.PanoAnimePlugin.html +0 -1
- package/docs/functions/plugins-1.TrajectoryPlugin.html +0 -1
- package/docs/functions/react.FiveCanvas.html +0 -6
- package/docs/functions/react.useFiveScene.html +0 -7
- package/docs/interfaces/gltf_loader.DDS.html +0 -7
- package/docs/interfaces/gltf_loader.GLTF.html +0 -13
- package/docs/interfaces/gltf_loader.GLTFReference.html +0 -3
- package/docs/interfaces/gltf_loader.THREEGLTF.html +0 -8
- package/docs/interfaces/plugins-1.BackgroundPluginType.Config.html +0 -1
- package/docs/interfaces/plugins-1.BackgroundPluginType.EventMap.html +0 -20
- package/docs/interfaces/plugins-1.BackgroundPluginType.Params.html +0 -3
- package/docs/interfaces/plugins-1.BackgroundPluginType.PluginDataItem.html +0 -1
- package/docs/interfaces/plugins-1.BasePlugin.BaseOptions.html +0 -3
- package/docs/interfaces/plugins-1.BasePlugin.Config.html +0 -5
- package/docs/interfaces/plugins-1.BasePlugin.State.html +0 -8
- package/docs/interfaces/plugins-1.BasePlugin.StateChangeParams.html +0 -7
- package/docs/interfaces/plugins-1.ItemMaskPluginType.Config.html +0 -2
- package/docs/interfaces/plugins-1.ItemMaskPluginType.EventMap.html +0 -10
- package/docs/interfaces/plugins-1.ItemMaskPluginType.ItemType.html +0 -13
- package/docs/interfaces/plugins-1.ItemMaskPluginType.MaskType.html +0 -4
- package/docs/interfaces/plugins-1.ItemMaskPluginType.Params.html +0 -4
- package/docs/interfaces/plugins-1.ItemMaskPluginType.State.html +0 -14
- package/docs/interfaces/plugins-1.Keyframe.html +0 -3
- package/docs/interfaces/plugins-1.OrientationPluginType.Config.html +0 -4
- package/docs/interfaces/plugins-1.OrientationPluginType.EventMap.html +0 -10
- package/docs/interfaces/plugins-1.OrientationPluginType.Params.html +0 -4
- package/docs/interfaces/plugins-1.OrientationPluginType.State.html +0 -10
- package/docs/interfaces/plugins-1.PanoAnimePluginType.Config.html +0 -2
- package/docs/interfaces/plugins-1.PanoAnimePluginType.EventMap.html +0 -11
- package/docs/interfaces/plugins-1.PanoAnimePluginType.Params.html +0 -4
- package/docs/interfaces/plugins-1.PanoAnimePluginType.State.html +0 -8
- package/docs/interfaces/plugins-1.PlayingState.html +0 -3
- package/docs/interfaces/plugins-1.PluginTemplateType.Config.html +0 -3
- package/docs/interfaces/plugins-1.PluginTemplateType.EventMap.html +0 -10
- package/docs/interfaces/plugins-1.PluginTemplateType.Params.html +0 -4
- package/docs/interfaces/plugins-1.PluginTemplateType.State.html +0 -8
- package/docs/modules/gltf_loader.html +0 -11
- package/docs/modules/plugins-1.BackgroundPluginType.html +0 -10
- package/docs/modules/plugins-1.BasePlugin.html +0 -7
- package/docs/modules/plugins-1.ItemMaskPluginType.html +0 -9
- package/docs/modules/plugins-1.OrientationPluginType.html +0 -7
- package/docs/modules/plugins-1.PanoAnimePluginType.html +0 -7
- package/docs/modules/plugins-1.PluginTemplateType.html +0 -7
- package/docs/modules/plugins-1.html +0 -22
- package/docs/types/plugins-1.BackgroundPluginType.Mirror.html +0 -1
- package/docs/types/plugins-1.BackgroundPluginType.Mode.html +0 -1
- package/docs/types/plugins-1.BackgroundPluginType.PluginData.html +0 -1
- package/docs/types/plugins-1.BackgroundPluginType.State.html +0 -1
- package/docs/types/plugins-1.BasePlugin.EventMap.html +0 -6
- package/docs/types/plugins-1.ItemMaskPluginType.PluginData.html +0 -1
- package/docs/types/plugins-1.ItemMaskPluginType.ServerData.html +0 -1
- package/docs/types/plugins-1.OrientationPluginType.PluginData.html +0 -1
- package/docs/types/plugins-1.OrientationPluginType.ServerData.html +0 -1
- package/docs/types/plugins-1.PanoAnimePluginType.PluginData.html +0 -1
- package/docs/types/plugins-1.PanoAnimePluginType.ServerData.html +0 -1
- package/docs/types/plugins-1.PluginTemplateType.PluginData.html +0 -1
- package/docs/types/plugins-1.PluginTemplateType.ServerData.html +0 -1
- package/docs/variables/five.draco-1.html +0 -1
- package/docs/variables/five.ktx2-1.html +0 -1
package/gltf-loader/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* @realsee/five
|
|
4
|
-
* Generated: 8/
|
|
5
|
-
* Version: 6.6.0-alpha.
|
|
4
|
+
* Generated: 2025/8/15
|
|
5
|
+
* Version: 6.6.0-alpha.2
|
|
6
6
|
* Terms:
|
|
7
7
|
* Realsee SDK License Agreement
|
|
8
8
|
* Update: July 28, 2021
|
|
@@ -253,7 +253,7 @@
|
|
|
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
255
|
*/import * as De from "three";
|
|
256
|
-
import { Loader as
|
|
256
|
+
import { Loader as Ee, LoaderUtils as pe, FileLoader as _e, Color as re, SpotLight as or, PointLight as ir, DirectionalLight as ur, MeshBasicMaterial as he, MeshPhysicalMaterial as ke, Vector2 as Be, MeshStandardMaterial as ve, TangentSpaceNormalMap as lr, Interpolant as Ke, MeshPhongMaterial as fr, TextureLoader as cr, InterleavedBuffer as dr, InterleavedBufferAttribute as pr, BufferAttribute as Re, RGBFormat as je, RGBAFormat as Ze, LinearMipmapLinearFilter as Ve, NearestMipmapLinearFilter as hr, LinearMipmapNearestFilter as vr, NearestMipmapNearestFilter as Tr, LinearFilter as Xe, NearestFilter as gr, RepeatWrapping as Fe, MirroredRepeatWrapping as mr, ClampToEdgeWrapping as Ar, PointsMaterial as Sr, Material as ze, LineBasicMaterial as yr, DoubleSide as Er, sRGBEncoding as We, BufferGeometry as $e, SkinnedMesh as _r, Mesh as Rr, LineSegments as Lr, Line as Mr, LineLoop as wr, Points as Ir, Group as Ue, PerspectiveCamera as br, MathUtils as xr, OrthographicCamera as Cr, InterpolateDiscrete as Or, InterpolateLinear as Ye, AnimationClip as Pr, Bone as Dr, Object3D as Fr, PropertyBinding as Ur, Matrix4 as qe, FrontSide as Gr, TriangleFanDrawMode as Je, Skeleton as Hr, Box3 as Nr, Vector3 as ye, Sphere as kr, TriangleStripDrawMode as Br, VectorKeyframeTrack as Kr, QuaternionKeyframeTrack as jr, NumberKeyframeTrack as Vr, CompressedTextureLoader as er, RGB_ETC1_Format as Xr, RGBA_S3TC_DXT5_Format as zr, RGBA_S3TC_DXT3_Format as Wr, RGB_S3TC_DXT1_Format as Yr } from "three";
|
|
257
257
|
var Ge = function(p, T) {
|
|
258
258
|
return Ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(u, m) {
|
|
259
259
|
u.__proto__ = m;
|
|
@@ -270,11 +270,11 @@ function rr(p, T) {
|
|
|
270
270
|
}
|
|
271
271
|
p.prototype = T === null ? Object.create(T) : (u.prototype = T.prototype, new u());
|
|
272
272
|
}
|
|
273
|
-
var qr = function() {
|
|
273
|
+
var qr = (function() {
|
|
274
274
|
function p(e) {
|
|
275
|
-
|
|
275
|
+
Ee.call(this, e), this.dracoLoader = null, this.ddsLoader = null;
|
|
276
276
|
}
|
|
277
|
-
p.prototype = Object.assign(Object.create(
|
|
277
|
+
p.prototype = Object.assign(Object.create(Ee.prototype), {
|
|
278
278
|
constructor: p,
|
|
279
279
|
load: function(e, r, t, n) {
|
|
280
280
|
var a = this, i;
|
|
@@ -304,9 +304,9 @@ var qr = function() {
|
|
|
304
304
|
a = e;
|
|
305
305
|
else {
|
|
306
306
|
var s = pe.decodeText(new Uint8Array(e, 0, 4));
|
|
307
|
-
if (s ===
|
|
307
|
+
if (s === P) {
|
|
308
308
|
try {
|
|
309
|
-
i[u.KHR_BINARY_GLTF] = new
|
|
309
|
+
i[u.KHR_BINARY_GLTF] = new F(e);
|
|
310
310
|
} catch (d) {
|
|
311
311
|
n && n(d);
|
|
312
312
|
return;
|
|
@@ -465,15 +465,15 @@ var qr = function() {
|
|
|
465
465
|
var n = [], a = r.extensions[this.name];
|
|
466
466
|
return a.transmissionFactor !== void 0 && (e.premultipliedAlpha = !0, e.transparent = !0, e.opacity = e.opacity !== void 0 ? e.opacity : 0.5), Promise.all(n);
|
|
467
467
|
};
|
|
468
|
-
var
|
|
469
|
-
function
|
|
468
|
+
var P = "glTF", R = 12, I = { JSON: 1313821514, BIN: 5130562 };
|
|
469
|
+
function F(e) {
|
|
470
470
|
this.name = u.KHR_BINARY_GLTF, this.content = null, this.body = null;
|
|
471
471
|
var r = new DataView(e, 0, R);
|
|
472
472
|
if (this.header = {
|
|
473
473
|
magic: pe.decodeText(new Uint8Array(e.slice(0, 4))),
|
|
474
474
|
version: r.getUint32(4, !0),
|
|
475
475
|
length: r.getUint32(8, !0)
|
|
476
|
-
}, this.header.magic !==
|
|
476
|
+
}, this.header.magic !== P)
|
|
477
477
|
throw new Error("THREE.GLTFLoader: Unsupported glTF-Binary header.");
|
|
478
478
|
if (this.header.version < 2)
|
|
479
479
|
throw new Error("THREE.GLTFLoader: Legacy binary file detected.");
|
|
@@ -512,13 +512,13 @@ var qr = function() {
|
|
|
512
512
|
}
|
|
513
513
|
}
|
|
514
514
|
return r.getDependency("bufferView", a).then(function(A) {
|
|
515
|
-
return new Promise(function(
|
|
516
|
-
n.decodeDracoFile(A, function(
|
|
517
|
-
for (var S in
|
|
518
|
-
var L =
|
|
515
|
+
return new Promise(function(E) {
|
|
516
|
+
n.decodeDracoFile(A, function(y) {
|
|
517
|
+
for (var S in y.attributes) {
|
|
518
|
+
var L = y.attributes[S], O = o[S];
|
|
519
519
|
O !== void 0 && (L.normalized = O);
|
|
520
520
|
}
|
|
521
|
-
y
|
|
521
|
+
E(y);
|
|
522
522
|
}, s, l);
|
|
523
523
|
});
|
|
524
524
|
});
|
|
@@ -682,9 +682,9 @@ var qr = function() {
|
|
|
682
682
|
r[i] = t[a + i];
|
|
683
683
|
return r;
|
|
684
684
|
}, D.prototype.beforeStart_ = D.prototype.copySampleValue_, D.prototype.afterEnd_ = D.prototype.copySampleValue_, D.prototype.interpolate_ = function(e, r, t, n) {
|
|
685
|
-
for (var a = this.resultBuffer, i = this.sampleValues, s = this.valueSize, o = s * 2, l = s * 3, f = n - r, h = (t - r) / f, c = h * h, d = c * h, A = e * l,
|
|
686
|
-
var te = i[
|
|
687
|
-
a[G] = L * te + O * ae +
|
|
685
|
+
for (var a = this.resultBuffer, i = this.sampleValues, s = this.valueSize, o = s * 2, l = s * 3, f = n - r, h = (t - r) / f, c = h * h, d = c * h, A = e * l, E = A - l, y = -2 * d + 3 * c, S = d - c, L = 1 - y, O = S - c + h, G = 0; G !== s; G++) {
|
|
686
|
+
var te = i[E + G + s], ae = i[E + G + o] * f, $ = i[A + G + s], B = i[A + G] * f;
|
|
687
|
+
a[G] = L * te + O * ae + y * $ + S * B;
|
|
688
688
|
}
|
|
689
689
|
return a;
|
|
690
690
|
};
|
|
@@ -699,26 +699,14 @@ var qr = function() {
|
|
|
699
699
|
var n = [], a = r.extensions[this.name];
|
|
700
700
|
return a.lightMapTexture !== void 0 && n.push(t.assignTexture(e, "lightMap", a.lightMapTexture)), a.lightMapIntensity !== void 0 && (e.lightMapIntensity = a.lightMapIntensity), Promise.all(n);
|
|
701
701
|
};
|
|
702
|
-
var
|
|
703
|
-
FLOAT: 5126,
|
|
704
|
-
//FLOAT_MAT2: 35674,
|
|
705
|
-
FLOAT_MAT3: 35675,
|
|
706
|
-
FLOAT_MAT4: 35676,
|
|
707
|
-
FLOAT_VEC2: 35664,
|
|
708
|
-
FLOAT_VEC3: 35665,
|
|
709
|
-
FLOAT_VEC4: 35666,
|
|
710
|
-
LINEAR: 9729,
|
|
711
|
-
REPEAT: 10497,
|
|
712
|
-
SAMPLER_2D: 35678,
|
|
702
|
+
var N = {
|
|
713
703
|
POINTS: 0,
|
|
714
704
|
LINES: 1,
|
|
715
705
|
LINE_LOOP: 2,
|
|
716
706
|
LINE_STRIP: 3,
|
|
717
707
|
TRIANGLES: 4,
|
|
718
708
|
TRIANGLE_STRIP: 5,
|
|
719
|
-
TRIANGLE_FAN: 6
|
|
720
|
-
UNSIGNED_BYTE: 5121,
|
|
721
|
-
UNSIGNED_SHORT: 5123
|
|
709
|
+
TRIANGLE_FAN: 6
|
|
722
710
|
}, Q = {
|
|
723
711
|
5120: Int8Array,
|
|
724
712
|
5121: Uint8Array,
|
|
@@ -727,16 +715,16 @@ var qr = function() {
|
|
|
727
715
|
5125: Uint32Array,
|
|
728
716
|
5126: Float32Array
|
|
729
717
|
}, Z = {
|
|
730
|
-
9728:
|
|
731
|
-
9729:
|
|
732
|
-
9984:
|
|
733
|
-
9985:
|
|
734
|
-
9986:
|
|
735
|
-
9987:
|
|
718
|
+
9728: gr,
|
|
719
|
+
9729: Xe,
|
|
720
|
+
9984: Tr,
|
|
721
|
+
9985: vr,
|
|
722
|
+
9986: hr,
|
|
723
|
+
9987: Ve
|
|
736
724
|
}, X = {
|
|
737
|
-
33071:
|
|
738
|
-
33648:
|
|
739
|
-
10497:
|
|
725
|
+
33071: Ar,
|
|
726
|
+
33648: mr,
|
|
727
|
+
10497: Fe
|
|
740
728
|
}, z = {
|
|
741
729
|
SCALAR: 1,
|
|
742
730
|
VEC2: 2,
|
|
@@ -754,7 +742,7 @@ var qr = function() {
|
|
|
754
742
|
COLOR_0: "color",
|
|
755
743
|
WEIGHTS_0: "skinWeight",
|
|
756
744
|
JOINTS_0: "skinIndex"
|
|
757
|
-
},
|
|
745
|
+
}, j = {
|
|
758
746
|
scale: "scale",
|
|
759
747
|
translation: "position",
|
|
760
748
|
rotation: "quaternion",
|
|
@@ -764,14 +752,14 @@ var qr = function() {
|
|
|
764
752
|
// We use a custom interpolant (GLTFCubicSplineInterpolation) for CUBICSPLINE tracks. Each
|
|
765
753
|
// keyframe track will be initialized with a default interpolation type, then modified.
|
|
766
754
|
LINEAR: Ye,
|
|
767
|
-
STEP:
|
|
755
|
+
STEP: Or
|
|
768
756
|
}, fe = {
|
|
769
757
|
OPAQUE: "OPAQUE",
|
|
770
758
|
MASK: "MASK",
|
|
771
759
|
BLEND: "BLEND"
|
|
772
760
|
}, Te = {
|
|
773
|
-
"image/png":
|
|
774
|
-
"image/jpeg":
|
|
761
|
+
"image/png": Ze,
|
|
762
|
+
"image/jpeg": je
|
|
775
763
|
};
|
|
776
764
|
function ge(e, r) {
|
|
777
765
|
return typeof e != "string" || e === "" ? "" : (/^https?:\/\//i.test(r) && /^\//.test(e) && (r = r.replace(/(^https?:\/\/[^\/]+).*/i, "$1")), /^(https?:)?\/\//i.test(e) || /^data:.*,.*$/i.test(e) || /^blob:.*$/i.test(e) ? e : r + e);
|
|
@@ -951,21 +939,21 @@ var qr = function() {
|
|
|
951
939
|
return Promise.resolve(null);
|
|
952
940
|
var a = [];
|
|
953
941
|
return n.bufferView !== void 0 ? a.push(this.getDependency("bufferView", n.bufferView)) : a.push(null), n.sparse !== void 0 && (a.push(this.getDependency("bufferView", n.sparse.indices.bufferView)), a.push(this.getDependency("bufferView", n.sparse.values.bufferView))), Promise.all(a).then(function(i) {
|
|
954
|
-
var s = i[0], o = z[n.type], l = Q[n.componentType], f = l.BYTES_PER_ELEMENT, h = f * o, c = n.byteOffset || 0, d = n.bufferView !== void 0 ? t.bufferViews[n.bufferView].byteStride : void 0, A = n.normalized === !0,
|
|
942
|
+
var s = i[0], o = z[n.type], l = Q[n.componentType], f = l.BYTES_PER_ELEMENT, h = f * o, c = n.byteOffset || 0, d = n.bufferView !== void 0 ? t.bufferViews[n.bufferView].byteStride : void 0, A = n.normalized === !0, E, y;
|
|
955
943
|
if (d && d !== h) {
|
|
956
944
|
var S = Math.floor(c / d), L = "InterleavedBuffer:" + n.bufferView + ":" + n.componentType + ":" + S + ":" + n.count, O = r.cache.get(L);
|
|
957
|
-
O || (
|
|
945
|
+
O || (E = new l(s, S * d, n.count * d / f), O = new dr(E, d / f), r.cache.add(L, O)), y = new pr(O, o, c % d / f, A);
|
|
958
946
|
} else
|
|
959
|
-
s === null ?
|
|
947
|
+
s === null ? E = new l(n.count * o) : E = new l(s, c, n.count * o), y = new Re(E, o, A);
|
|
960
948
|
if (n.sparse !== void 0) {
|
|
961
949
|
var G = z.SCALAR, te = Q[n.sparse.indices.componentType], ae = n.sparse.indices.byteOffset || 0, $ = n.sparse.values.byteOffset || 0, B = new te(i[1], ae, n.sparse.count * G), ue = new l(i[2], $, n.sparse.count * o);
|
|
962
|
-
s !== null && (
|
|
963
|
-
for (var
|
|
964
|
-
var se = B[
|
|
965
|
-
if (
|
|
950
|
+
s !== null && (y = new Re(y.array.slice(), y.itemSize, y.normalized));
|
|
951
|
+
for (var H = 0, be = B.length; H < be; H++) {
|
|
952
|
+
var se = B[H];
|
|
953
|
+
if (y.setX(se, ue[H * o]), o >= 2 && y.setY(se, ue[H * o + 1]), o >= 3 && y.setZ(se, ue[H * o + 2]), o >= 4 && y.setW(se, ue[H * o + 3]), o >= 5) throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.");
|
|
966
954
|
}
|
|
967
955
|
}
|
|
968
|
-
return
|
|
956
|
+
return y;
|
|
969
957
|
});
|
|
970
958
|
}, C.prototype.loadTexture = function(e) {
|
|
971
959
|
var r = this, t = this.json, n = this.options, a = this.textureLoader, i = self.URL || self.webkitURL, s = t.textures[e], o = s.extensions || {}, l;
|
|
@@ -977,13 +965,13 @@ var qr = function() {
|
|
|
977
965
|
return f = i.createObjectURL(d), f;
|
|
978
966
|
})), Promise.resolve(f).then(function(c) {
|
|
979
967
|
var d = n.manager.getHandler(c);
|
|
980
|
-
return d || (d = o[u.MSFT_TEXTURE_DDS] ? r.extensions[u.MSFT_TEXTURE_DDS].ddsLoader : a), new Promise(function(A,
|
|
981
|
-
d.load(ge(c, n.path), A, void 0,
|
|
968
|
+
return d || (d = o[u.MSFT_TEXTURE_DDS] ? r.extensions[u.MSFT_TEXTURE_DDS].ddsLoader : a), new Promise(function(A, E) {
|
|
969
|
+
d.load(ge(c, n.path), A, void 0, E);
|
|
982
970
|
});
|
|
983
971
|
}).then(function(c) {
|
|
984
972
|
h === !0 && i.revokeObjectURL(f), c.flipY = !1, s.name && (c.name = s.name), l.mimeType in Te && (c.format = Te[l.mimeType]);
|
|
985
973
|
var d = t.samplers || {}, A = d[s.sampler] || {};
|
|
986
|
-
return c.magFilter = Z[A.magFilter] ||
|
|
974
|
+
return c.magFilter = Z[A.magFilter] || Xe, c.minFilter = Z[A.minFilter] || Ve, c.wrapS = X[A.wrapS] || Fe, c.wrapT = X[A.wrapT] || Fe, r.associations.set(c, {
|
|
987
975
|
type: "textures",
|
|
988
976
|
index: e
|
|
989
977
|
}), c;
|
|
@@ -998,7 +986,7 @@ var qr = function() {
|
|
|
998
986
|
case "metalnessMap":
|
|
999
987
|
case "normalMap":
|
|
1000
988
|
case "roughnessMap":
|
|
1001
|
-
a.format =
|
|
989
|
+
a.format = je;
|
|
1002
990
|
break;
|
|
1003
991
|
}
|
|
1004
992
|
if (t.texCoord !== void 0 && t.texCoord != 0 && !(r === "aoMap" && t.texCoord == 1) && console.warn("THREE.GLTFLoader: Custom UV set " + t.texCoord + " for texture " + r + " not yet supported."), n.extensions[u.KHR_TEXTURE_TRANSFORM]) {
|
|
@@ -1014,10 +1002,10 @@ var qr = function() {
|
|
|
1014
1002
|
var r = e.geometry, t = e.material, n = r.attributes.tangent !== void 0, a = r.attributes.color !== void 0, i = r.attributes.normal === void 0, s = e.isSkinnedMesh === !0, o = Object.keys(r.morphAttributes).length > 0, l = o && r.morphAttributes.normal !== void 0;
|
|
1015
1003
|
if (e.isPoints) {
|
|
1016
1004
|
var f = "PointsMaterial:" + t.uuid, h = this.cache.get(f);
|
|
1017
|
-
h || (h = new
|
|
1005
|
+
h || (h = new Sr(), ze.prototype.copy.call(h, t), h.color.copy(t.color), h.map = t.map, h.sizeAttenuation = !1, this.cache.add(f, h)), t = h;
|
|
1018
1006
|
} else if (e.isLine) {
|
|
1019
1007
|
var f = "LineBasicMaterial:" + t.uuid, c = this.cache.get(f);
|
|
1020
|
-
c || (c = new
|
|
1008
|
+
c || (c = new yr(), ze.prototype.copy.call(c, t), c.color.copy(t.color), this.cache.add(f, c)), t = c;
|
|
1021
1009
|
}
|
|
1022
1010
|
if (n || a || i || s || o) {
|
|
1023
1011
|
var f = "ClonedMaterial:" + t.uuid + ":";
|
|
@@ -1043,19 +1031,19 @@ var qr = function() {
|
|
|
1043
1031
|
}
|
|
1044
1032
|
c.baseColorTexture !== void 0 && l.push(r.assignTexture(s, "map", c.baseColorTexture)), s.metalness = c.metallicFactor !== void 0 ? c.metallicFactor : 1, s.roughness = c.roughnessFactor !== void 0 ? c.roughnessFactor : 1, c.metallicRoughnessTexture !== void 0 && (l.push(r.assignTexture(s, "metalnessMap", c.metallicRoughnessTexture)), l.push(r.assignTexture(s, "roughnessMap", c.metallicRoughnessTexture)));
|
|
1045
1033
|
}
|
|
1046
|
-
a.doubleSided === !0 && (s.side =
|
|
1034
|
+
a.doubleSided === !0 && (s.side = Er);
|
|
1047
1035
|
var A = a.alphaMode || fe.OPAQUE;
|
|
1048
1036
|
if (A === fe.BLEND ? (s.transparent = !0, s.depthWrite = !1) : (s.transparent = !1, A === fe.MASK && (s.alphaTest = a.alphaCutoff !== void 0 ? a.alphaCutoff : 0.5)), a.normalTexture !== void 0 && i !== he && (l.push(r.assignTexture(s, "normalMap", a.normalTexture)), s.normalScale = new Be(1, 1), a.normalTexture.scale !== void 0 && s.normalScale.set(a.normalTexture.scale, a.normalTexture.scale)), a.occlusionTexture !== void 0 && i !== he && (l.push(r.assignTexture(s, "aoMap", a.occlusionTexture)), a.occlusionTexture.strength !== void 0 && (s.aoMapIntensity = a.occlusionTexture.strength)), a.emissiveFactor !== void 0 && i !== he && (s.emissive = new re().fromArray(a.emissiveFactor)), a.emissiveTexture !== void 0 && i !== he && l.push(r.assignTexture(s, "emissiveMap", a.emissiveTexture)), o[u.KHR_MATERIALS_CLEARCOAT]) {
|
|
1049
|
-
var
|
|
1050
|
-
i =
|
|
1037
|
+
var E = n[u.KHR_MATERIALS_CLEARCOAT];
|
|
1038
|
+
i = E.getMaterialType(), l.push(E.extendParams(s, { extensions: o }, r));
|
|
1051
1039
|
}
|
|
1052
1040
|
if (o[u.KHR_MATERIALS_TRANSMISSION]) {
|
|
1053
|
-
var
|
|
1054
|
-
i =
|
|
1041
|
+
var E = n[u.KHR_MATERIALS_TRANSMISSION];
|
|
1042
|
+
i = E.getMaterialType(), l.push(E.extendParams(s, { extensions: o }, r));
|
|
1055
1043
|
}
|
|
1056
1044
|
if (o[u.REALSEE_MATERIALS_LIGHTMAP]) {
|
|
1057
|
-
var
|
|
1058
|
-
i =
|
|
1045
|
+
var y = n[u.REALSEE_MATERIALS_LIGHTMAP];
|
|
1046
|
+
i = y.getMaterialType(), l.push(y.extendParams(s, { extensions: o }, r));
|
|
1059
1047
|
}
|
|
1060
1048
|
return Promise.all(l).then(function() {
|
|
1061
1049
|
var S;
|
|
@@ -1063,13 +1051,13 @@ var qr = function() {
|
|
|
1063
1051
|
});
|
|
1064
1052
|
};
|
|
1065
1053
|
function me(e, r, t) {
|
|
1066
|
-
var n = r.attributes, a = new
|
|
1054
|
+
var n = r.attributes, a = new Nr();
|
|
1067
1055
|
if (n.POSITION !== void 0) {
|
|
1068
1056
|
var i = t.json.accessors[n.POSITION], s = i.min, o = i.max;
|
|
1069
1057
|
if (s !== void 0 && o !== void 0)
|
|
1070
1058
|
a.set(
|
|
1071
|
-
new
|
|
1072
|
-
new
|
|
1059
|
+
new ye(s[0], s[1], s[2]),
|
|
1060
|
+
new ye(o[0], o[1], o[2])
|
|
1073
1061
|
);
|
|
1074
1062
|
else {
|
|
1075
1063
|
console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.");
|
|
@@ -1079,7 +1067,7 @@ var qr = function() {
|
|
|
1079
1067
|
return;
|
|
1080
1068
|
var l = r.targets;
|
|
1081
1069
|
if (l !== void 0) {
|
|
1082
|
-
for (var f = new
|
|
1070
|
+
for (var f = new ye(), h = new ye(), c = 0, d = l.length; c < d; c++) {
|
|
1083
1071
|
var A = l[c];
|
|
1084
1072
|
if (A.POSITION !== void 0) {
|
|
1085
1073
|
var i = t.json.accessors[A.POSITION], s = i.min, o = i.max;
|
|
@@ -1089,10 +1077,10 @@ var qr = function() {
|
|
|
1089
1077
|
a.expandByVector(f);
|
|
1090
1078
|
}
|
|
1091
1079
|
e.boundingBox = a;
|
|
1092
|
-
var
|
|
1093
|
-
a.getCenter(
|
|
1080
|
+
var E = new kr();
|
|
1081
|
+
a.getCenter(E.center), E.radius = a.min.distanceTo(a.max) / 2, e.boundingSphere = E;
|
|
1094
1082
|
}
|
|
1095
|
-
function
|
|
1083
|
+
function V(e, r, t) {
|
|
1096
1084
|
var n = r.attributes, a = [];
|
|
1097
1085
|
function i(f, h) {
|
|
1098
1086
|
return t.getDependency("accessor", f).then(function(c) {
|
|
@@ -1139,7 +1127,7 @@ var qr = function() {
|
|
|
1139
1127
|
var r = this, t = this.extensions, n = this.primitiveCache;
|
|
1140
1128
|
function a(d) {
|
|
1141
1129
|
return t[u.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(d, r).then(function(A) {
|
|
1142
|
-
return
|
|
1130
|
+
return V(A, d, r);
|
|
1143
1131
|
});
|
|
1144
1132
|
}
|
|
1145
1133
|
for (var i = [], s = 0, o = e.length; s < o; s++) {
|
|
@@ -1148,7 +1136,7 @@ var qr = function() {
|
|
|
1148
1136
|
i.push(h.promise);
|
|
1149
1137
|
else {
|
|
1150
1138
|
var c;
|
|
1151
|
-
l.extensions && l.extensions[u.KHR_DRACO_MESH_COMPRESSION] ? c = a(l) : c =
|
|
1139
|
+
l.extensions && l.extensions[u.KHR_DRACO_MESH_COMPRESSION] ? c = a(l) : c = V(new $e(), l, r), n[f] = { primitive: l, promise: c }, i.push(c);
|
|
1152
1140
|
}
|
|
1153
1141
|
}
|
|
1154
1142
|
return Promise.all(i);
|
|
@@ -1158,25 +1146,25 @@ var qr = function() {
|
|
|
1158
1146
|
i.push(l);
|
|
1159
1147
|
}
|
|
1160
1148
|
return i.push(r.loadGeometries(a)), Promise.all(i).then(function(f) {
|
|
1161
|
-
for (var h = f.slice(0, f.length - 1), c = f[f.length - 1], d = [], A = 0,
|
|
1162
|
-
var
|
|
1163
|
-
if (S.mode ===
|
|
1164
|
-
L = n.isSkinnedMesh === !0 ? new
|
|
1165
|
-
else if (S.mode ===
|
|
1166
|
-
L = new
|
|
1167
|
-
else if (S.mode ===
|
|
1168
|
-
L = new
|
|
1169
|
-
else if (S.mode ===
|
|
1170
|
-
L = new
|
|
1171
|
-
else if (S.mode ===
|
|
1172
|
-
L = new
|
|
1149
|
+
for (var h = f.slice(0, f.length - 1), c = f[f.length - 1], d = [], A = 0, E = c.length; A < E; A++) {
|
|
1150
|
+
var y = c[A], S = a[A], L, O = h[A];
|
|
1151
|
+
if (S.mode === N.TRIANGLES || S.mode === N.TRIANGLE_STRIP || S.mode === N.TRIANGLE_FAN || S.mode === void 0)
|
|
1152
|
+
L = n.isSkinnedMesh === !0 ? new _r(y, O) : new Rr(y, O), L.isSkinnedMesh === !0 && !L.geometry.attributes.skinWeight.normalized && L.normalizeSkinWeights(), S.mode === N.TRIANGLE_STRIP ? L.geometry = ie(L.geometry, Br) : S.mode === N.TRIANGLE_FAN && (L.geometry = ie(L.geometry, Je));
|
|
1153
|
+
else if (S.mode === N.LINES)
|
|
1154
|
+
L = new Lr(y, O);
|
|
1155
|
+
else if (S.mode === N.LINE_STRIP)
|
|
1156
|
+
L = new Mr(y, O);
|
|
1157
|
+
else if (S.mode === N.LINE_LOOP)
|
|
1158
|
+
L = new wr(y, O);
|
|
1159
|
+
else if (S.mode === N.POINTS)
|
|
1160
|
+
L = new Ir(y, O);
|
|
1173
1161
|
else
|
|
1174
1162
|
throw new Error("THREE.GLTFLoader: Primitive mode unsupported: " + S.mode);
|
|
1175
1163
|
Object.keys(L.geometry.morphAttributes).length > 0 && Ie(L, n), L.name = n.name || "mesh_" + e, c.length > 1 && (L.name += "_" + A), W(L, n), r.assignFinalMaterial(L), d.push(L);
|
|
1176
1164
|
}
|
|
1177
1165
|
if (d.length === 1)
|
|
1178
1166
|
return d[0];
|
|
1179
|
-
for (var G = new Ue(), A = 0,
|
|
1167
|
+
for (var G = new Ue(), A = 0, E = d.length; A < E; A++)
|
|
1180
1168
|
G.add(d[A]);
|
|
1181
1169
|
return G;
|
|
1182
1170
|
});
|
|
@@ -1186,7 +1174,7 @@ var qr = function() {
|
|
|
1186
1174
|
console.warn("THREE.GLTFLoader: Missing camera parameters.");
|
|
1187
1175
|
return;
|
|
1188
1176
|
}
|
|
1189
|
-
return t.type === "perspective" ? r = new
|
|
1177
|
+
return t.type === "perspective" ? r = new br(xr.radToDeg(n.yfov), n.aspectRatio || 1, n.znear || 1, n.zfar || 2e6) : t.type === "orthographic" && (r = new Cr(-n.xmag, n.xmag, n.ymag, -n.ymag, n.znear, n.zfar)), t.name && (r.name = t.name), W(r, t), Promise.resolve(r);
|
|
1190
1178
|
}, C.prototype.loadSkin = function(e) {
|
|
1191
1179
|
var r = this.json.skins[e], t = { joints: r.joints };
|
|
1192
1180
|
return r.inverseBindMatrices === void 0 ? Promise.resolve(t) : this.getDependency("accessor", r.inverseBindMatrices).then(function(n) {
|
|
@@ -1194,8 +1182,8 @@ var qr = function() {
|
|
|
1194
1182
|
});
|
|
1195
1183
|
}, C.prototype.loadAnimation = function(e) {
|
|
1196
1184
|
for (var r = this.json, t = r.animations[e], n = [], a = [], i = [], s = [], o = [], l = 0, f = t.channels.length; l < f; l++) {
|
|
1197
|
-
var h = t.channels[l], c = t.samplers[h.sampler], d = h.target, A = d.node !== void 0 ? d.node : d.id,
|
|
1198
|
-
n.push(this.getDependency("node", A)), a.push(this.getDependency("accessor",
|
|
1185
|
+
var h = t.channels[l], c = t.samplers[h.sampler], d = h.target, A = d.node !== void 0 ? d.node : d.id, E = t.parameters !== void 0 ? t.parameters[c.input] : c.input, y = t.parameters !== void 0 ? t.parameters[c.output] : c.output;
|
|
1186
|
+
n.push(this.getDependency("node", A)), a.push(this.getDependency("accessor", E)), i.push(this.getDependency("accessor", y)), s.push(c), o.push(d);
|
|
1199
1187
|
}
|
|
1200
1188
|
return Promise.all([
|
|
1201
1189
|
Promise.all(n),
|
|
@@ -1205,25 +1193,25 @@ var qr = function() {
|
|
|
1205
1193
|
Promise.all(o)
|
|
1206
1194
|
]).then(function(S) {
|
|
1207
1195
|
for (var L = S[0], O = S[1], G = S[2], te = S[3], ae = S[4], $ = [], B = 0, ue = L.length; B < ue; B++) {
|
|
1208
|
-
var
|
|
1209
|
-
if (
|
|
1210
|
-
|
|
1196
|
+
var H = L[B], be = O[B], se = G[B], xe = te[B], Ce = ae[B];
|
|
1197
|
+
if (H !== void 0) {
|
|
1198
|
+
H.updateMatrix(), H.matrixAutoUpdate = !0;
|
|
1211
1199
|
var Ae;
|
|
1212
|
-
switch (
|
|
1213
|
-
case
|
|
1214
|
-
Ae =
|
|
1200
|
+
switch (j[Ce.path]) {
|
|
1201
|
+
case j.weights:
|
|
1202
|
+
Ae = Vr;
|
|
1215
1203
|
break;
|
|
1216
|
-
case
|
|
1217
|
-
Ae =
|
|
1204
|
+
case j.rotation:
|
|
1205
|
+
Ae = jr;
|
|
1218
1206
|
break;
|
|
1219
|
-
case
|
|
1220
|
-
case
|
|
1207
|
+
case j.position:
|
|
1208
|
+
case j.scale:
|
|
1221
1209
|
default:
|
|
1222
|
-
Ae =
|
|
1210
|
+
Ae = Kr;
|
|
1223
1211
|
break;
|
|
1224
1212
|
}
|
|
1225
|
-
var nr =
|
|
1226
|
-
|
|
1213
|
+
var nr = H.name ? H.name : H.uuid, tr = xe.interpolation !== void 0 ? Le[xe.interpolation] : Ye, Se = [];
|
|
1214
|
+
j[Ce.path] === j.weights ? H.traverse(function(de) {
|
|
1227
1215
|
de.isMesh === !0 && de.morphTargetInfluences && Se.push(de.name ? de.name : de.uuid);
|
|
1228
1216
|
}) : Se.push(nr);
|
|
1229
1217
|
var q = se.array;
|
|
@@ -1239,29 +1227,29 @@ var qr = function() {
|
|
|
1239
1227
|
ce = 1 / 65535;
|
|
1240
1228
|
else
|
|
1241
1229
|
throw new Error("THREE.GLTFLoader: Unsupported output accessor component type.");
|
|
1242
|
-
for (var
|
|
1243
|
-
|
|
1244
|
-
q =
|
|
1230
|
+
for (var Ne = new Float32Array(q.length), ee = 0, Oe = q.length; ee < Oe; ee++)
|
|
1231
|
+
Ne[ee] = q[ee] * ce;
|
|
1232
|
+
q = Ne;
|
|
1245
1233
|
}
|
|
1246
1234
|
for (var ee = 0, Oe = Se.length; ee < Oe; ee++) {
|
|
1247
|
-
var
|
|
1248
|
-
Se[ee] + "." +
|
|
1235
|
+
var Pe = new Ae(
|
|
1236
|
+
Se[ee] + "." + j[Ce.path],
|
|
1249
1237
|
be.array,
|
|
1250
1238
|
q,
|
|
1251
1239
|
tr
|
|
1252
1240
|
);
|
|
1253
|
-
xe.interpolation === "CUBICSPLINE" && (
|
|
1241
|
+
xe.interpolation === "CUBICSPLINE" && (Pe.createInterpolant = function(sr) {
|
|
1254
1242
|
return new D(this.times, this.values, this.getValueSize() / 3, sr);
|
|
1255
|
-
},
|
|
1243
|
+
}, Pe.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline = !0), $.push(Pe);
|
|
1256
1244
|
}
|
|
1257
1245
|
}
|
|
1258
1246
|
}
|
|
1259
1247
|
var ar = t.name ? t.name : "animation_" + e;
|
|
1260
|
-
return new
|
|
1248
|
+
return new Pr(ar, void 0, $);
|
|
1261
1249
|
});
|
|
1262
1250
|
}, C.prototype.loadNode = function(e) {
|
|
1263
1251
|
var r = this.json, t = this.extensions, n = this, a = r.meshReferences, i = r.meshUses, s = r.nodes[e];
|
|
1264
|
-
return function() {
|
|
1252
|
+
return (function() {
|
|
1265
1253
|
var o = [];
|
|
1266
1254
|
return s.mesh !== void 0 && o.push(n.getDependency("mesh", s.mesh).then(function(l) {
|
|
1267
1255
|
var f;
|
|
@@ -1276,19 +1264,19 @@ var qr = function() {
|
|
|
1276
1264
|
c.morphTargetInfluences[d] = s.weights[d];
|
|
1277
1265
|
}), f;
|
|
1278
1266
|
})), s.camera !== void 0 && o.push(n.getDependency("camera", s.camera)), s.extensions && s.extensions[u.KHR_LIGHTS_PUNCTUAL] && s.extensions[u.KHR_LIGHTS_PUNCTUAL].light !== void 0 && o.push(n.getDependency("light", s.extensions[u.KHR_LIGHTS_PUNCTUAL].light)), Promise.all(o);
|
|
1279
|
-
}().then(function(o) {
|
|
1267
|
+
})().then(function(o) {
|
|
1280
1268
|
var l;
|
|
1281
|
-
if (s.isBone === !0 ? l = new
|
|
1269
|
+
if (s.isBone === !0 ? l = new Dr() : o.length > 1 ? l = new Ue() : o.length === 1 ? l = o[0] : l = new Fr(), l !== o[0])
|
|
1282
1270
|
for (var f = 0, h = o.length; f < h; f++)
|
|
1283
1271
|
l.add(o[f]);
|
|
1284
|
-
if (s.name && (l.userData.name = s.name, l.name =
|
|
1272
|
+
if (s.name && (l.userData.name = s.name, l.name = Ur.sanitizeNodeName(s.name)), W(l, s), s.extensions && oe(t, l, s), s.matrix !== void 0) {
|
|
1285
1273
|
var c = new qe();
|
|
1286
1274
|
c.fromArray(s.matrix), l.applyMatrix4(c);
|
|
1287
1275
|
} else
|
|
1288
1276
|
s.translation !== void 0 && l.position.fromArray(s.translation), s.rotation !== void 0 && l.quaternion.fromArray(s.rotation), s.scale !== void 0 && l.scale.fromArray(s.scale);
|
|
1289
1277
|
return n.associations.set(l, { type: "nodes", index: e }), l;
|
|
1290
1278
|
});
|
|
1291
|
-
}, C.prototype.loadScene = /* @__PURE__ */ function() {
|
|
1279
|
+
}, C.prototype.loadScene = /* @__PURE__ */ (function() {
|
|
1292
1280
|
function e(r, t, n, a) {
|
|
1293
1281
|
var i = n.nodes[r];
|
|
1294
1282
|
return a.getDependency("node", r).then(function(s) {
|
|
@@ -1303,15 +1291,15 @@ var qr = function() {
|
|
|
1303
1291
|
return s.traverse(function(f) {
|
|
1304
1292
|
if (f.isMesh) {
|
|
1305
1293
|
for (var h = [], c = [], d = 0, A = l.length; d < A; d++) {
|
|
1306
|
-
var
|
|
1307
|
-
if (
|
|
1308
|
-
h.push(
|
|
1309
|
-
var
|
|
1310
|
-
o.inverseBindMatrices !== void 0 &&
|
|
1294
|
+
var E = l[d];
|
|
1295
|
+
if (E) {
|
|
1296
|
+
h.push(E);
|
|
1297
|
+
var y = new qe();
|
|
1298
|
+
o.inverseBindMatrices !== void 0 && y.fromArray(o.inverseBindMatrices.array, d * 16), c.push(y);
|
|
1311
1299
|
} else
|
|
1312
1300
|
console.warn('THREE.GLTFLoader: Joint "%s" could not be found.', o.joints[d]);
|
|
1313
1301
|
}
|
|
1314
|
-
f.bind(new
|
|
1302
|
+
f.bind(new Hr(h, c), f.matrixWorld);
|
|
1315
1303
|
}
|
|
1316
1304
|
}), s;
|
|
1317
1305
|
});
|
|
@@ -1335,9 +1323,9 @@ var qr = function() {
|
|
|
1335
1323
|
return o;
|
|
1336
1324
|
});
|
|
1337
1325
|
};
|
|
1338
|
-
}(), p;
|
|
1339
|
-
}(), k = function(p) {
|
|
1340
|
-
|
|
1326
|
+
})(), p;
|
|
1327
|
+
})(), k = function(p) {
|
|
1328
|
+
Ee.call(this, p), this.decoderPath = "", this.decoderConfig = {}, this.decoderBinary = null, this.decoderPending = null, this.workerLimit = 4, this.workerPool = [], this.workerNextTaskID = 1, this.workerSourceURL = "", this.defaultAttributeIDs = {
|
|
1341
1329
|
position: "POSITION",
|
|
1342
1330
|
normal: "NORMAL",
|
|
1343
1331
|
color: "COLOR",
|
|
@@ -1349,7 +1337,7 @@ var qr = function() {
|
|
|
1349
1337
|
uv: "Float32Array"
|
|
1350
1338
|
};
|
|
1351
1339
|
};
|
|
1352
|
-
k.prototype = Object.assign(Object.create(
|
|
1340
|
+
k.prototype = Object.assign(Object.create(Ee.prototype), {
|
|
1353
1341
|
constructor: k,
|
|
1354
1342
|
setDecoderPath: function(p) {
|
|
1355
1343
|
return this.decoderPath = p, this;
|
|
@@ -1407,8 +1395,8 @@ k.prototype = Object.assign(Object.create(ye.prototype), {
|
|
|
1407
1395
|
"THREE.DRACOLoader: Unable to re-decode a buffer with different settings. Buffer has already been transferred."
|
|
1408
1396
|
);
|
|
1409
1397
|
}
|
|
1410
|
-
var _, x = this.workerNextTaskID++,
|
|
1411
|
-
_._callbacks[x] = { resolve:
|
|
1398
|
+
var _, x = this.workerNextTaskID++, P = p.byteLength, R = this._getWorker(x, P).then((I) => (_ = I, new Promise((F, b) => {
|
|
1399
|
+
_._callbacks[x] = { resolve: F, reject: b }, _.postMessage({ type: "decode", id: x, taskConfig: T, buffer: p }, [p]);
|
|
1412
1400
|
}))).then((I) => this._createGeometry(I.geometry));
|
|
1413
1401
|
return R.catch(() => !0).then(() => {
|
|
1414
1402
|
_ && x && this._releaseTask(_, x);
|
|
@@ -1418,7 +1406,7 @@ k.prototype = Object.assign(Object.create(ye.prototype), {
|
|
|
1418
1406
|
}), R;
|
|
1419
1407
|
},
|
|
1420
1408
|
_createGeometry: function(p) {
|
|
1421
|
-
var T = new
|
|
1409
|
+
var T = new $e();
|
|
1422
1410
|
p.index && T.setIndex(new Re(p.index.array, 1));
|
|
1423
1411
|
for (var u = 0; u < p.attributes.length; u++) {
|
|
1424
1412
|
var m = p.attributes[u], v = m.name, g = m.array, _ = m.itemSize;
|
|
@@ -1495,52 +1483,52 @@ k.DRACOWorker = function() {
|
|
|
1495
1483
|
var g = v.data;
|
|
1496
1484
|
switch (g.type) {
|
|
1497
1485
|
case "init":
|
|
1498
|
-
p = g.decoderConfig, T = new Promise(function(
|
|
1486
|
+
p = g.decoderConfig, T = new Promise(function(P) {
|
|
1499
1487
|
p.onModuleLoaded = function(R) {
|
|
1500
|
-
|
|
1488
|
+
P({ draco: R });
|
|
1501
1489
|
}, DracoDecoderModule(p);
|
|
1502
1490
|
});
|
|
1503
1491
|
break;
|
|
1504
1492
|
case "decode":
|
|
1505
1493
|
var _ = g.buffer, x = g.taskConfig;
|
|
1506
|
-
T.then((
|
|
1507
|
-
var R =
|
|
1508
|
-
|
|
1494
|
+
T.then((P) => {
|
|
1495
|
+
var R = P.draco, I = new R.Decoder(), F = new R.DecoderBuffer();
|
|
1496
|
+
F.Init(new Int8Array(_), _.byteLength);
|
|
1509
1497
|
try {
|
|
1510
|
-
var b = u(R, I,
|
|
1498
|
+
var b = u(R, I, F, x), M = b.attributes.map((w) => w.array.buffer);
|
|
1511
1499
|
b.index && M.push(b.index.array.buffer), self.postMessage({ type: "decode", id: g.id, geometry: b }, M);
|
|
1512
1500
|
} catch (w) {
|
|
1513
1501
|
console.error(w), self.postMessage({ type: "error", id: g.id, error: w.message });
|
|
1514
1502
|
} finally {
|
|
1515
|
-
R.destroy(
|
|
1503
|
+
R.destroy(F), R.destroy(I);
|
|
1516
1504
|
}
|
|
1517
1505
|
});
|
|
1518
1506
|
break;
|
|
1519
1507
|
}
|
|
1520
1508
|
};
|
|
1521
1509
|
function u(v, g, _, x) {
|
|
1522
|
-
var
|
|
1510
|
+
var P = x.attributeIDs, R = x.attributeTypes, I, F, b = g.GetEncodedGeometryType(_);
|
|
1523
1511
|
if (b === v.TRIANGULAR_MESH)
|
|
1524
|
-
I = new v.Mesh(),
|
|
1512
|
+
I = new v.Mesh(), F = g.DecodeBufferToMesh(_, I);
|
|
1525
1513
|
else if (b === v.POINT_CLOUD)
|
|
1526
|
-
I = new v.PointCloud(),
|
|
1514
|
+
I = new v.PointCloud(), F = g.DecodeBufferToPointCloud(_, I);
|
|
1527
1515
|
else
|
|
1528
1516
|
throw new Error("THREE.DRACOLoader: Unexpected geometry type.");
|
|
1529
|
-
if (!
|
|
1530
|
-
throw new Error("THREE.DRACOLoader: Decoding failed: " +
|
|
1517
|
+
if (!F.ok() || I.ptr === 0)
|
|
1518
|
+
throw new Error("THREE.DRACOLoader: Decoding failed: " + F.error_msg());
|
|
1531
1519
|
var M = { index: null, attributes: [] };
|
|
1532
|
-
for (var w in
|
|
1520
|
+
for (var w in P) {
|
|
1533
1521
|
var K = self[R[w]], ne, D;
|
|
1534
1522
|
if (x.useUniqueIDs)
|
|
1535
|
-
D =
|
|
1523
|
+
D = P[w], ne = g.GetAttributeByUniqueId(I, D);
|
|
1536
1524
|
else {
|
|
1537
|
-
if (D = g.GetAttributeId(I, v[
|
|
1525
|
+
if (D = g.GetAttributeId(I, v[P[w]]), D === -1) continue;
|
|
1538
1526
|
ne = g.GetAttribute(I, D);
|
|
1539
1527
|
}
|
|
1540
1528
|
M.attributes.push(m(v, g, I, w, K, ne));
|
|
1541
1529
|
}
|
|
1542
1530
|
if (b === v.TRIANGULAR_MESH) {
|
|
1543
|
-
for (var J = I.num_faces(),
|
|
1531
|
+
for (var J = I.num_faces(), N = J * 3, Q = new Uint32Array(N), Z = new v.DracoInt32Array(), X = 0; X < J; ++X) {
|
|
1544
1532
|
g.GetFaceFromMesh(I, X, Z);
|
|
1545
1533
|
for (var z = 0; z < 3; ++z)
|
|
1546
1534
|
Q[X * 3 + z] = Z.GetValue(z);
|
|
@@ -1549,9 +1537,9 @@ k.DRACOWorker = function() {
|
|
|
1549
1537
|
}
|
|
1550
1538
|
return v.destroy(I), M;
|
|
1551
1539
|
}
|
|
1552
|
-
function m(v, g, _, x,
|
|
1553
|
-
var I = R.num_components(),
|
|
1554
|
-
switch (
|
|
1540
|
+
function m(v, g, _, x, P, R) {
|
|
1541
|
+
var I = R.num_components(), F = _.num_points(), b = F * I, M, w;
|
|
1542
|
+
switch (P) {
|
|
1555
1543
|
case Float32Array:
|
|
1556
1544
|
M = new v.DracoFloat32Array(), g.GetAttributeFloatForAllPoints(_, R, M), w = new Float32Array(b);
|
|
1557
1545
|
break;
|
|
@@ -1598,13 +1586,13 @@ k.releaseDecoderModule = function() {
|
|
|
1598
1586
|
k.getDecoderModule = function() {
|
|
1599
1587
|
console.warn("THREE.DRACOLoader: The .getDecoderModule() method has been removed. Use instance methods.");
|
|
1600
1588
|
};
|
|
1601
|
-
var
|
|
1589
|
+
var He = function(p) {
|
|
1602
1590
|
er.call(this, p);
|
|
1603
1591
|
};
|
|
1604
|
-
|
|
1605
|
-
constructor:
|
|
1592
|
+
He.prototype = Object.assign(Object.create(er.prototype), {
|
|
1593
|
+
constructor: He,
|
|
1606
1594
|
parse: function(p, T) {
|
|
1607
|
-
var u = { mipmaps: [], width: 0, height: 0, format: null, mipmapCount: 1 }, m = 542327876, v = 131072, g = 512, _ = 1024, x = 2048,
|
|
1595
|
+
var u = { mipmaps: [], width: 0, height: 0, format: null, mipmapCount: 1 }, m = 542327876, v = 131072, g = 512, _ = 1024, x = 2048, P = 4096, R = 8192, I = 16384, F = 32768, b = 4;
|
|
1608
1596
|
function M(l) {
|
|
1609
1597
|
return l.charCodeAt(0) + (l.charCodeAt(1) << 8) + (l.charCodeAt(2) << 16) + (l.charCodeAt(3) << 24);
|
|
1610
1598
|
}
|
|
@@ -1617,7 +1605,7 @@ Ne.prototype = Object.assign(Object.create(er.prototype), {
|
|
|
1617
1605
|
);
|
|
1618
1606
|
}
|
|
1619
1607
|
function K(l, f, h, c) {
|
|
1620
|
-
for (var d = h * c * 4, A = new Uint8Array(l, f, d),
|
|
1608
|
+
for (var d = h * c * 4, A = new Uint8Array(l, f, d), E = new Uint8Array(d), y = 0, S = 0, L = 0; L < c; L++)
|
|
1621
1609
|
for (var O = 0; O < h; O++) {
|
|
1622
1610
|
var G = A[S];
|
|
1623
1611
|
S++;
|
|
@@ -1626,11 +1614,11 @@ Ne.prototype = Object.assign(Object.create(er.prototype), {
|
|
|
1626
1614
|
var ae = A[S];
|
|
1627
1615
|
S++;
|
|
1628
1616
|
var $ = A[S];
|
|
1629
|
-
S++, y
|
|
1617
|
+
S++, E[y] = ae, y++, E[y] = te, y++, E[y] = G, y++, E[y] = $, y++;
|
|
1630
1618
|
}
|
|
1631
|
-
return
|
|
1619
|
+
return E;
|
|
1632
1620
|
}
|
|
1633
|
-
var ne = M("DXT1"), D = M("DXT3"), J = M("DXT5"),
|
|
1621
|
+
var ne = M("DXT1"), D = M("DXT3"), J = M("DXT5"), N = M("ETC1"), Q = 31, Z = 0, X = 1, z = 2, le = 3, j = 4, Le = 7, fe = 20, Te = 21, ge = 22, Me = 23, oe = 24, W = 25, we = 26, Ie = 28, U = new Int32Array(p, 0, Q);
|
|
1634
1622
|
if (U[Z] !== m)
|
|
1635
1623
|
return console.error("THREE.DDSLoader.parse: Invalid magic number in DDS header."), u;
|
|
1636
1624
|
if (!U[fe] & b)
|
|
@@ -1646,20 +1634,20 @@ Ne.prototype = Object.assign(Object.create(er.prototype), {
|
|
|
1646
1634
|
case J:
|
|
1647
1635
|
Y = 16, u.format = zr;
|
|
1648
1636
|
break;
|
|
1649
|
-
case
|
|
1637
|
+
case N:
|
|
1650
1638
|
Y = 8, u.format = Xr;
|
|
1651
1639
|
break;
|
|
1652
1640
|
default:
|
|
1653
1641
|
if (U[ge] === 32 && U[Me] & 16711680 && U[oe] & 65280 && U[W] & 255 && U[we] & 4278190080)
|
|
1654
|
-
me = !0, Y = 64, u.format =
|
|
1642
|
+
me = !0, Y = 64, u.format = Ze;
|
|
1655
1643
|
else
|
|
1656
1644
|
return console.error("THREE.DDSLoader.parse: Unsupported FourCC code ", w(C)), u;
|
|
1657
1645
|
}
|
|
1658
1646
|
u.mipmapCount = 1, U[z] & v && T !== !1 && (u.mipmapCount = Math.max(1, U[Le]));
|
|
1659
|
-
var
|
|
1660
|
-
if (u.isCubemap = !!(
|
|
1647
|
+
var V = U[Ie];
|
|
1648
|
+
if (u.isCubemap = !!(V & g), u.isCubemap && (!(V & _) || !(V & x) || !(V & P) || !(V & R) || !(V & I) || !(V & F)))
|
|
1661
1649
|
return console.error("THREE.DDSLoader.parse: Incomplete cubemap faces"), u;
|
|
1662
|
-
u.width = U[
|
|
1650
|
+
u.width = U[j], u.height = U[le];
|
|
1663
1651
|
for (var ie = U[X] + 4, e = u.isCubemap ? 6 : 1, r = 0; r < e; r++)
|
|
1664
1652
|
for (var t = u.width, n = u.height, a = 0; a < u.mipmapCount; a++) {
|
|
1665
1653
|
if (me)
|
|
@@ -1674,7 +1662,7 @@ Ne.prototype = Object.assign(Object.create(er.prototype), {
|
|
|
1674
1662
|
});
|
|
1675
1663
|
var Qe = (
|
|
1676
1664
|
/** @class */
|
|
1677
|
-
function(p) {
|
|
1665
|
+
(function(p) {
|
|
1678
1666
|
rr(T, p);
|
|
1679
1667
|
function T(u) {
|
|
1680
1668
|
var m = p.call(this) || this;
|
|
@@ -1684,18 +1672,18 @@ var Qe = (
|
|
|
1684
1672
|
var u = p.prototype.clone.call(this, !0), m = new De.AnimationMixer(u);
|
|
1685
1673
|
return u.mixer = m, u.needsRender = !0, u;
|
|
1686
1674
|
}, T;
|
|
1687
|
-
}(De.Group)
|
|
1675
|
+
})(De.Group)
|
|
1688
1676
|
), Jr = "https://vr-public.realsee-cdn.cn/release/static/image/release/five/resource/draco/1.5.6/", $r = (
|
|
1689
1677
|
/** @class */
|
|
1690
|
-
function(p) {
|
|
1678
|
+
(function(p) {
|
|
1691
1679
|
rr(T, p);
|
|
1692
1680
|
function T(u) {
|
|
1693
1681
|
var m = p.call(this, u) || this;
|
|
1694
|
-
return m.ddsLoader = new
|
|
1682
|
+
return m.ddsLoader = new He(u), m.dracoLoader = new k(u), m.dracoLoader.setDecoderPath(Jr), m;
|
|
1695
1683
|
}
|
|
1696
1684
|
return Object.defineProperty(T, "version", {
|
|
1697
1685
|
get: function() {
|
|
1698
|
-
return "6.6.0-alpha.
|
|
1686
|
+
return "6.6.0-alpha.2";
|
|
1699
1687
|
},
|
|
1700
1688
|
enumerable: !1,
|
|
1701
1689
|
configurable: !0
|
|
@@ -1703,16 +1691,16 @@ var Qe = (
|
|
|
1703
1691
|
return p.prototype.load.call(this, u, m, v, g);
|
|
1704
1692
|
}, T.prototype.parse = function(u, m, v, g) {
|
|
1705
1693
|
return p.prototype.parse.call(this, u, m, function(_) {
|
|
1706
|
-
var x = new Qe(_.scene),
|
|
1694
|
+
var x = new Qe(_.scene), P = _.scenes.map(function(R) {
|
|
1707
1695
|
return R === _.scene ? x : new Qe(R);
|
|
1708
1696
|
});
|
|
1709
|
-
v(Object.assign(_, { scene: x, scenes:
|
|
1697
|
+
v(Object.assign(_, { scene: x, scenes: P }));
|
|
1710
1698
|
}, g);
|
|
1711
1699
|
}, T;
|
|
1712
|
-
}(qr)
|
|
1700
|
+
})(qr)
|
|
1713
1701
|
);
|
|
1714
1702
|
export {
|
|
1715
|
-
|
|
1703
|
+
He as DDSLoader,
|
|
1716
1704
|
k as DRACOLoader,
|
|
1717
1705
|
$r as GLTFLoader,
|
|
1718
1706
|
Qe as GLTFObject,
|