@realsee/five 6.8.0-alpha.2 → 6.8.0-alpha.21
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/AGENTS_READ_ME.md +4 -0
- package/AI_CONTEXT.md +4 -0
- package/README.md +9 -6
- package/{guides → ai_guides}/README.md +12 -2
- package/ai_guides/ai-doc-guidelines.md +102 -0
- package/{guides → ai_guides}/api.md +24 -1
- package/ai_guides/features/3dtile.md +172 -0
- package/{guides → ai_guides}/features/camera-animation.md +24 -3
- package/{guides → ai_guides}/features/clipper.md +2 -0
- package/{guides/features/coordnate-system.md → ai_guides/features/coordinate-system.md} +2 -0
- package/{guides → ai_guides}/features/event.md +2 -0
- package/{guides → ai_guides}/features/five.md +4 -0
- package/ai_guides/features/flowing-light-2d-pass.md +438 -0
- package/ai_guides/features/flowing-light-3d-pass.md +420 -0
- package/ai_guides/features/gaussian-blur-pass.md +202 -0
- package/{guides → ai_guides}/features/gesture.md +3 -0
- package/{guides → ai_guides}/features/get-screen-pixels.md +2 -0
- package/{guides → ai_guides}/features/image-options.md +3 -0
- package/{guides → ai_guides}/features/load-external-model.md +21 -0
- package/ai_guides/features/load-progress.md +140 -0
- package/ai_guides/features/material.md +153 -0
- package/{guides → ai_guides}/features/mode.md +4 -0
- package/{guides → ai_guides}/features/model.md +4 -1
- package/{guides → ai_guides}/features/move-pano-effect.md +2 -0
- package/{guides → ai_guides}/features/multi-work.md +2 -0
- package/ai_guides/features/pano-filter.md +148 -0
- package/{guides → ai_guides}/features/pano-tile.md +7 -14
- package/ai_guides/features/pano-uv.md +131 -0
- package/ai_guides/features/parameter.md +153 -0
- package/ai_guides/features/plugin.md +210 -0
- package/{guides → ai_guides}/features/postprocessing.md +39 -4
- package/{guides → ai_guides}/features/raycast.md +11 -0
- package/{guides → ai_guides}/features/request-proxy.md +2 -0
- package/{guides → ai_guides}/features/screen-project.md +2 -0
- package/{guides → ai_guides}/features/state.md +2 -0
- package/ai_guides/features/view-layer.md +187 -0
- package/{guides → ai_guides}/features/work.md +63 -2
- package/{guides → ai_guides}/glossary.md +26 -5
- package/{guides → ai_guides}/intro.md +1 -1
- package/{guides → ai_guides}/quick-start.md +1 -0
- package/ai_guides/release_notes/6.8.md +208 -0
- package/{guides → ai_guides}/template.md +17 -3
- package/docs/00_FOR_AI_AGENTS.md +11 -0
- package/docs/README.md +4 -7
- package/docs/assets/hierarchy.js +1 -1
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/five.AdaptiveLuminancePass.html +7 -6
- package/docs/classes/five.BoundingMesh.html +2 -2
- package/docs/classes/five.Camera.html +1 -1
- package/docs/classes/five.EyeDomeLightingPass.html +1 -1
- package/docs/classes/five.Five.html +73 -72
- package/docs/classes/five.FivePass.html +1 -1
- package/docs/classes/five.Histogram.html +19 -0
- package/docs/classes/five.InternalWebGLRenderer.html +1 -1
- package/docs/classes/five.Model.html +31 -31
- package/docs/classes/five.ModelScene.html +1 -1
- package/docs/classes/five.NetworkSubscribe.html +1 -1
- package/docs/classes/five.PBMContainer.html +1 -1
- package/docs/classes/five.PBMCustomShader.html +42 -3
- package/docs/classes/five.PBMGSObject.html +5 -3
- package/docs/classes/five.PBMGroup.html +1 -1
- package/docs/classes/five.PBMMesh.html +1 -1
- package/docs/classes/five.PBMMeshMaterial.html +16 -7
- package/docs/classes/five.PBMPanoFilter.html +61 -0
- package/docs/classes/five.PBMPointCloud.html +1 -1
- package/docs/classes/five.PBMPointCloudMaterial.html +5 -6
- package/docs/classes/five.PBMSkinnedMesh.html +1 -1
- package/docs/classes/five.PBMUpdateable.html +41 -0
- package/docs/classes/five.PanoCircleMesh.html +1 -1
- package/docs/classes/five.PanoCircleMeshCustom.html +1 -1
- package/docs/classes/five.PanoCircleMeshSolid.html +1 -1
- package/docs/classes/five.Parameter.html +57 -53
- package/docs/classes/five.Scene.html +1 -1
- package/docs/classes/five.Subscribe.html +1 -1
- package/docs/classes/five.Tile.html +1 -1
- package/docs/classes/five.Tile3D.html +30 -26
- package/docs/classes/five.TileNode.html +1 -1
- package/docs/classes/five.Trajectory.html +1 -1
- package/docs/classes/five.TrajectoryNode.html +1 -1
- package/docs/classes/five.Work.html +16 -16
- package/docs/classes/five.WorkResolvedObserver.html +27 -2
- package/docs/classes/gltf-loader.DDSLoader.html +1 -1
- package/docs/classes/gltf-loader.DRACOLoader.html +1 -1
- package/docs/classes/gltf-loader.GLTFLoader.html +1 -1
- package/docs/classes/gltf-loader.GLTFObject.html +1 -1
- package/docs/classes/gltf-loader.GLTFParser.html +1 -1
- package/docs/classes/gltf-loader.THREEGLTFLoader.html +1 -1
- package/docs/classes/line.Line.html +1 -1
- package/docs/classes/line.LineGeometry.html +1 -1
- package/docs/classes/line.LineMaterial.html +1 -1
- package/docs/classes/line.LineSegmentsGeometry.html +1 -1
- package/docs/classes/line.THREE_Line2.html +1 -1
- package/docs/classes/line.THREE_LineSegments2.html +1 -1
- package/docs/classes/plugins.BasePlugin.Controller.html +1 -1
- package/docs/classes/plugins.RoundedBoxGeometry.html +1 -1
- package/docs/classes/sticker.Sticker.html +1 -1
- package/docs/classes/vfx.Airflow.html +1 -1
- package/docs/classes/vfx.Flame.html +1 -1
- package/docs/classes/vfx.Particle.html +1 -1
- package/docs/classes/vfx.ParticleGPU.html +1 -1
- package/docs/classes/vfx.SpotLight.html +1 -1
- package/docs/documents/README.html +11 -2
- package/docs/documents/ai-doc-guidelines.html +60 -15
- package/docs/documents/api.html +40 -15
- package/docs/documents/features_3dtile.html +142 -45
- package/docs/documents/features_camera-animation.html +62 -5
- package/docs/documents/features_clipper.html +3 -0
- package/docs/documents/{features_coordnate-system.html → features_coordinate-system.html} +4 -1
- package/docs/documents/features_event.html +3 -0
- package/docs/documents/features_five.html +4 -0
- package/docs/documents/features_flowing-light-2d-pass.html +356 -0
- package/docs/documents/features_flowing-light-3d-pass.html +351 -0
- package/docs/documents/features_gaussian-blur-pass.html +182 -0
- package/docs/documents/features_gesture.html +4 -0
- package/docs/documents/features_get-screen-pixels.html +3 -0
- package/docs/documents/features_image-options.html +3 -0
- package/docs/documents/features_load-external-model.html +25 -2
- package/docs/documents/features_load-progress.html +110 -0
- package/docs/documents/features_material.html +341 -0
- package/docs/documents/features_mode.html +5 -0
- package/docs/documents/features_model.html +5 -1
- package/docs/documents/features_move-pano-effect.html +3 -0
- package/docs/documents/features_multi-work.html +3 -0
- package/docs/documents/features_pano-filter.html +122 -0
- package/docs/documents/features_pano-tile.html +34 -19
- package/docs/documents/features_pano-uv.html +82 -0
- package/docs/documents/features_parameter.html +76 -56
- package/docs/documents/features_plugin.html +105 -0
- package/docs/documents/features_postprocessing.html +22 -5
- package/docs/documents/features_raycast.html +4 -1
- package/docs/documents/features_request-proxy.html +3 -0
- package/docs/documents/features_screen-project.html +3 -0
- package/docs/documents/features_state.html +3 -0
- package/docs/documents/features_view-layer.html +158 -0
- package/docs/documents/features_work.html +63 -2
- package/docs/documents/glossary.html +31 -6
- package/docs/documents/intro.html +1 -1
- package/docs/documents/quick-start.html +1 -0
- package/docs/documents/release_notes_6.8.html +189 -0
- package/docs/documents/template.html +45 -4
- 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.loadSplat.html +1 -1
- package/docs/functions/five.loadSpz.html +1 -1
- package/docs/functions/five.loadX3p.html +1 -1
- package/docs/functions/five.parseWork.html +1 -1
- package/docs/functions/vue.useFiveWorks.html +2 -2
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +11 -2
- package/docs/interfaces/five.AddableObject.html +1 -1
- package/docs/interfaces/five.AjaxOptions.html +1 -1
- package/docs/interfaces/five.BaseEvent.html +2 -2
- package/docs/interfaces/five.EventCallback.html +53 -47
- package/docs/interfaces/five.FloorplanControllerCustomInitArgs.html +9 -9
- package/docs/interfaces/five.GestureEvent.html +2 -2
- package/docs/interfaces/five.ImageOptions.html +1 -1
- package/docs/interfaces/five.IntersectEvent.html +2 -2
- package/docs/interfaces/five.IntersectMesh.html +1 -1
- package/docs/interfaces/five.IntersectMeshInterface.html +1 -1
- package/docs/interfaces/five.Intersection.html +4 -3
- package/docs/interfaces/five.LooseWorkWithExtrinsics.html +6 -6
- package/docs/interfaces/five.MapviewControllerCustomInitArgs.html +9 -9
- package/docs/interfaces/five.ModeChangeEvent.html +2 -2
- package/docs/interfaces/five.ModelControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.ModelEvent.html +2 -2
- package/docs/interfaces/five.ModelSceneEvent.html +2 -2
- package/docs/interfaces/five.ModelTileEvent.html +8 -0
- package/docs/interfaces/five.MovePanoOptions.html +7 -7
- package/docs/interfaces/five.NetworkAbortError.html +1 -1
- package/docs/interfaces/five.NetworkFirbiddenError.html +1 -1
- package/docs/interfaces/five.NetworkOptions.html +1 -1
- package/docs/interfaces/five.NetworkProxyError.html +1 -1
- package/docs/interfaces/five.NetworkResourceEvent.html +2 -2
- package/docs/interfaces/five.NetworkResponseError.html +1 -1
- package/docs/interfaces/five.NetworkTimeoutError.html +1 -1
- package/docs/interfaces/five.ObjectEvent.html +2 -2
- package/docs/interfaces/five.PBMClipperParameter.html +2 -2
- package/docs/interfaces/five.PBMCustomShaderInitArgs.html +2 -2
- package/docs/interfaces/five.PBMCustomShaderSlots.html +2 -2
- package/docs/interfaces/five.PBMMaterial.html +1 -1
- package/docs/interfaces/five.PBMMeshMaterialParameters.html +5 -3
- package/docs/interfaces/five.PBMPanoDepth.html +5 -5
- package/docs/interfaces/five.PBMPanoFilterValue.html +6 -0
- package/docs/interfaces/five.PBMPanoPicture.html +8 -6
- package/docs/interfaces/five.PBMPointCloudMaterialParameters.html +2 -3
- package/docs/interfaces/five.PBMRefinedScreen.html +2 -2
- package/docs/interfaces/five.PanoCircleMeshInterface.html +1 -1
- package/docs/interfaces/five.PanoEvent.html +2 -2
- package/docs/interfaces/five.PanoTextureEvent.html +2 -2
- package/docs/interfaces/five.PanoramaControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.PanoramaLikeControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.ParameterMaterialValue.html +42 -38
- package/docs/interfaces/five.ParameterTilesetValue.html +15 -15
- package/docs/interfaces/five.ParameterValue.html +56 -52
- package/docs/interfaces/five.Pose.html +1 -1
- package/docs/interfaces/five.RenderEvent.html +2 -2
- package/docs/interfaces/five.ResolvedParameterValue.html +56 -52
- package/docs/interfaces/five.RgbaData.html +7 -0
- package/docs/interfaces/five.SplatData.html +2 -2
- package/docs/interfaces/five.State.html +1 -1
- package/docs/interfaces/five.StateEvent.html +2 -2
- package/docs/interfaces/five.TextureOptions.html +1 -1
- package/docs/interfaces/five.Tile3DOptions.html +2 -2
- package/docs/interfaces/five.TopviewControllerCustomInitArgs.html +7 -7
- package/docs/interfaces/five.VRPanoramaControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.ViewLayer.html +30 -26
- package/docs/interfaces/five.WorkCubeImage.html +1 -1
- package/docs/interfaces/five.WorkImage.html +1 -1
- package/docs/interfaces/five.WorkModel.html +8 -8
- package/docs/interfaces/five.WorkModelLayer.html +6 -6
- package/docs/interfaces/five.WorkObserver.html +27 -2
- package/docs/interfaces/five.WorkTile.html +1 -1
- 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 +1 -1
- package/docs/interfaces/five.XRSessionEvent.html +2 -2
- package/docs/interfaces/plugins.BackgroundPluginController.html +1 -1
- package/docs/interfaces/plugins.BackgroundPluginType.EventMap.html +1 -1
- package/docs/interfaces/plugins.BasePlugin.State.html +1 -1
- package/docs/interfaces/plugins.DynamicPathLinePluginController.html +1 -1
- package/docs/interfaces/plugins.DynamicPathLinePluginType.EventMap.html +1 -1
- package/docs/interfaces/plugins.DynamicPathLinePluginType.State.html +1 -1
- package/docs/interfaces/plugins.ItemMaskController.html +1 -1
- package/docs/interfaces/plugins.ItemMaskPluginType.EventMap.html +1 -1
- package/docs/interfaces/plugins.ItemMaskPluginType.State.html +1 -1
- package/docs/interfaces/plugins.OrientationPluginController.html +1 -1
- package/docs/interfaces/plugins.OrientationPluginType.EventMap.html +1 -1
- package/docs/interfaces/plugins.OrientationPluginType.State.html +1 -1
- package/docs/interfaces/plugins.PanoAnimeController.html +1 -1
- package/docs/interfaces/plugins.PanoAnimePluginType.EventMap.html +1 -1
- package/docs/interfaces/plugins.PanoAnimePluginType.State.html +1 -1
- package/docs/interfaces/plugins.PluginTemplateType.EventMap.html +1 -1
- package/docs/interfaces/plugins.PluginTemplateType.State.html +1 -1
- package/docs/interfaces/plugins.TrajectoryController.html +1 -1
- package/docs/interfaces/react.FiveInjectionTypes.html +13 -13
- package/docs/modules/five.html +1 -1
- package/docs/modules.html +1 -1
- package/docs/types/five.ControllerEventTypes.html +27 -25
- package/docs/types/five.EasingFunction.html +1 -0
- package/docs/types/five.EventTypes.html +27 -25
- package/docs/types/five.FivePlugin.html +1 -1
- package/docs/types/five.FivePluginInit.html +1 -1
- package/docs/types/five.FivePluginInstance.html +1 -1
- package/docs/types/five.NetworkProgressCallback.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.ParseOptions.html +6 -6
- package/docs/types/plugins.BasePlugin.EventMap.html +1 -1
- package/docs/variables/five.PROXY_CONTROLLER_EVENT_NAMES.html +1 -1
- package/five/application/analysis.d.ts +40 -0
- package/five/application/controllers.d.ts +41 -0
- package/five/application/events-legacy.d.ts +454 -0
- package/five/application/events.d.ts +69 -0
- package/five/application/five.d.ts +519 -0
- package/five/application/fiveInitArgs.d.ts +176 -0
- package/five/application/fiveLoadOptions.d.ts +21 -0
- package/five/application/generateDefaultVideoElement.d.ts +2 -0
- package/five/application/getViewportScale.d.ts +2 -0
- package/five/application/initLights.d.ts +3 -0
- package/five/application/mode.d.ts +28 -0
- package/five/application/renderPoweredByRealsee.d.ts +3 -0
- package/five/assets/cardboard-png-data-url.d.ts +2 -0
- package/five/assets/gradient-png-data-url.d.ts +2 -0
- package/five/assets/loading-png-data-url.d.ts +2 -0
- package/five/assets/phone-png-data-url.d.ts +2 -0
- package/five/assets/realsee-png-data-url.d.ts +2 -0
- package/five/bvh/bvhMath.d.ts +33 -0
- package/five/bvh/bvhMesh.d.ts +7 -0
- package/five/bvh/bvhNode.d.ts +29 -0
- package/five/bvh/bvhObject.d.ts +18 -0
- package/five/bvh/bvhPoints.d.ts +6 -0
- package/five/bvh/index.d.ts +10 -0
- package/five/bvh/worker.d.ts +35 -0
- package/five/cardboard/helper.d.ts +2 -0
- package/five/cardboard/index.d.ts +13 -0
- package/five/cardboard/sensor.d.ts +158 -0
- package/five/certificates/hardware.d.ts +1 -0
- package/five/controllers/base.d.ts +167 -0
- package/five/controllers/events.d.ts +71 -0
- package/five/controllers/floorplan.d.ts +119 -0
- package/five/controllers/mapview.d.ts +139 -0
- package/five/controllers/model.d.ts +57 -0
- package/five/controllers/panorama.d.ts +143 -0
- package/five/controllers/panoramaLike.d.ts +87 -0
- package/five/controllers/topview.d.ts +42 -0
- package/five/controllers/vrPanorama.d.ts +56 -0
- package/five/controllers/xrPanorama.d.ts +81 -0
- package/five/core/camera.d.ts +65 -0
- package/five/core/internalWebGLRenderer.d.ts +14 -0
- package/five/core/panoVideo.d.ts +18 -0
- package/five/core/scene.d.ts +10 -0
- package/five/core/tiling.d.ts +43 -0
- package/five/declare.d.ts +2 -1
- package/five/gaussian-splatting/util/renderData.d.ts +52 -0
- package/five/gaussian-splatting/wasm/data.d.ts +20 -0
- package/five/gaussian-splatting/wasm/sort.d.ts +18 -0
- package/five/gaussian-splatting/worker/dataWorker.d.ts +1 -0
- package/five/gaussian-splatting/worker/sortWorker.d.ts +1 -0
- package/five/index.d.ts +60 -4637
- package/five/index.js +193 -341
- package/five/index.mjs +26455 -31011
- package/five/meshes/boundingMesh.d.ts +12 -0
- package/five/meshes/intersectMesh.d.ts +8 -0
- package/five/meshes/panoCircleMesh.d.ts +35 -0
- package/five/meshes/panoCircleMeshCustom.d.ts +40 -0
- package/five/meshes/panoCircleMeshSolid.d.ts +34 -0
- package/five/meshes/panoSphereMesh.d.ts +27 -0
- package/five/model/helpers/coordinate-transform.d.ts +3 -0
- package/five/model/helpers/ellipsoid-coordinates.d.ts +14 -0
- package/five/model/helpers/get-edges-by-sphere.d.ts +8 -0
- package/five/model/helpers/get-recommend-tile3d-parameters.d.ts +8 -0
- package/five/model/index.d.ts +70 -0
- package/five/model/intersection.d.ts +18 -0
- package/five/model/loaders/at3d.d.ts +12 -0
- package/five/model/loaders/b3dm.d.ts +9 -0
- package/five/model/loaders/dome.d.ts +22 -0
- package/five/model/loaders/domez.d.ts +11 -0
- package/five/model/loaders/fbx.d.ts +8 -0
- package/five/model/loaders/glTF-helpers/extensions/CESIUM_RTC.d.ts +9 -0
- package/five/model/loaders/glTF-helpers/extensions/EXT_meshopt_compression.d.ts +8 -0
- package/five/model/loaders/glTF-helpers/extensions/EXT_texture_webp.d.ts +11 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_animation_pointer.d.ts +6 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_binary_glTF.d.ts +25 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_draco_mesh_compression.d.ts +11 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_gaussian_splatting_compression_spz.d.ts +9 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_materials_clearcoat.d.ts +10 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_materials_emissive_strength.d.ts +10 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_materials_sheen.d.ts +10 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_materials_transmission.d.ts +10 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_materials_unlit.d.ts +10 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_mesh_quantization.d.ts +6 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_node_visibility.d.ts +10 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_texture_basisu.d.ts +9 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_texture_transform.d.ts +10 -0
- package/five/model/loaders/glTF-helpers/extensions/REALSEE_materials_lightmap.d.ts +7 -0
- package/five/model/loaders/glTF-helpers/extensions/base.d.ts +24 -0
- package/five/model/loaders/glTF-helpers/glTF.d.ts +713 -0
- package/five/model/loaders/glTF-helpers/index.d.ts +47 -0
- package/five/model/loaders/glTF-helpers/parser.d.ts +114 -0
- package/five/model/loaders/glTF-helpers/type.d.ts +14 -0
- package/five/model/loaders/gltf.d.ts +10 -0
- package/five/model/loaders/obj.d.ts +9 -0
- package/five/model/loaders/pbm.d.ts +26 -0
- package/five/model/loaders/ply.d.ts +24 -0
- package/five/model/loaders/pnts.d.ts +8 -0
- package/five/model/loaders/protobuf/dome.d.ts +540 -0
- package/five/model/loaders/protobuf/pbm.d.ts +203 -0
- package/five/model/loaders/shared.d.ts +16 -0
- package/five/model/loaders/splat.d.ts +8 -0
- package/five/model/loaders/spz.d.ts +14 -0
- package/five/model/loaders/tile3d-helpers/feature-table.d.ts +15 -0
- package/five/model/loaders/tile3d-helpers/gl-type.d.ts +20 -0
- package/five/model/loaders/tile3d-helpers/parse-gltf-array-buffer.d.ts +2 -0
- package/five/model/loaders/tile3d-helpers/parse-header.d.ts +2 -0
- package/five/model/loaders/tile3d-helpers/parse-point-cloud-attributes.d.ts +2 -0
- package/five/model/loaders/tile3d-helpers/parse-point-cloud-attributes.worker.d.ts +6 -0
- package/five/model/loaders/tile3d-helpers/parse-table.d.ts +3 -0
- package/five/model/loaders/tile3d-helpers/tile3d-type.d.ts +35 -0
- package/five/model/loaders/x3p.d.ts +22 -0
- package/five/model/materials/pbmMaterial.d.ts +137 -0
- package/five/model/materials/pbmMeshMaterial.d.ts +126 -0
- package/five/model/materials/pbmPointCloudMaterial.d.ts +70 -0
- package/five/model/model-scene.d.ts +172 -0
- package/five/model/model.d.ts +209 -0
- package/five/model/objects/pbmContainer.d.ts +28 -0
- package/five/model/objects/pbmGaussianSplattingObject.d.ts +43 -0
- package/five/model/objects/pbmGaussianSplattingRenderMesh.d.ts +55 -0
- package/five/model/objects/pbmGaussianSplattingTestMesh.d.ts +7 -0
- package/five/model/objects/pbmGroup.d.ts +8 -0
- package/five/model/objects/pbmMesh.d.ts +10 -0
- package/five/model/objects/pbmPointCloud.d.ts +7 -0
- package/five/model/parameter.d.ts +140 -0
- package/five/model/shaders/pbm_gaussian_splatting/fragment.d.ts +2 -0
- package/five/model/shaders/pbm_gaussian_splatting/vertex.d.ts +2 -0
- package/five/model/shaders/pbm_mesh_basic/fragment.d.ts +2 -0
- package/five/model/shaders/pbm_mesh_basic/vertex.d.ts +2 -0
- package/five/model/shaders/pbm_mesh_none/fragment.d.ts +2 -0
- package/five/model/shaders/pbm_mesh_none/vertex.d.ts +2 -0
- package/five/model/shaders/pbm_mesh_phong/fragment.d.ts +2 -0
- package/five/model/shaders/pbm_mesh_phong/vertex.d.ts +2 -0
- package/five/model/shaders/pbm_mesh_standard/fragment.d.ts +2 -0
- package/five/model/shaders/pbm_mesh_standard/vertex.d.ts +2 -0
- package/five/model/shaders/pbm_pointcloud/fragment.d.ts +2 -0
- package/five/model/shaders/pbm_pointcloud/vertex.d.ts +2 -0
- package/five/model/tile3d/header.d.ts +88 -0
- package/five/model/tile3d/index.d.ts +214 -0
- package/five/model/tile3d/tile-cache.d.ts +18 -0
- package/five/model/tile3d/tile-content.d.ts +10 -0
- package/five/model/tile3d/tile-node.d.ts +24 -0
- package/five/model/tile3d/tile-request-scheduler.d.ts +17 -0
- package/five/model/tile3d/tile.d.ts +79 -0
- package/five/model/tile3d/tileset-base-traverser.d.ts +59 -0
- package/five/model/tile3d/tileset-most-detail-traverser.d.ts +14 -0
- package/five/model/tile3d/tileset-normal-traverser.d.ts +15 -0
- package/five/model/tile3d/tileset-skip-traverser.d.ts +60 -0
- package/five/model/tile3d/tileset.d.ts +69 -0
- package/five/model/tile3d/trajectory-content.d.ts +9 -0
- package/five/model/tile3d/trajectory-node.d.ts +15 -0
- package/five/model/tile3d/trajectory.d.ts +30 -0
- package/five/model/tile3d/types.d.ts +33 -0
- package/five/model/view-layer.d.ts +20 -0
- package/five/renderer/five-renderer.d.ts +17 -0
- package/five/renderer/index.d.ts +3 -0
- package/five/renderer/postprocessing/composer.d.ts +37 -0
- package/five/renderer/postprocessing/index.d.ts +7 -0
- package/five/renderer/postprocessing/passes/adaptive-luminance-pass.d.ts +17 -0
- package/five/renderer/postprocessing/passes/eye-dome-lighting-pass.d.ts +14 -0
- package/five/renderer/postprocessing/passes/flowing-light-2d-pass.d.ts +36 -0
- package/five/renderer/postprocessing/passes/flowing-light-3d-pass.d.ts +36 -0
- package/five/renderer/postprocessing/passes/gaussian-blur-pass.d.ts +12 -0
- package/five/renderer/postprocessing/passes/pass.d.ts +38 -0
- package/five/renderer/scene-renderers/point-cloud-high-quality-scene-renderer.d.ts +11 -0
- package/five/renderer/scene-renderers/scene-renderer.d.ts +9 -0
- package/five/renderer/scene-renderers/ssaa-scene-renderer.d.ts +15 -0
- package/five/renderer/tools/full-screen-quad.d.ts +15 -0
- package/five/renderer/tools/render-cube-to-equirectangular.d.ts +7 -0
- package/five/renderer/tools/render-full-screen-depth.d.ts +2 -0
- package/five/renderer/tools/render-full-screen.d.ts +2 -0
- package/five/texture/histogram.d.ts +54 -0
- package/five/texture/imageBitmap.d.ts +13 -0
- package/five/texture/initTexture.d.ts +3 -0
- package/five/texture/loader.d.ts +39 -0
- package/five/texture/textureData.d.ts +11 -0
- package/five/thirdparty/fflate.d.ts +1407 -0
- package/five/thirdparty/hammer.d.ts +375 -0
- package/five/thirdparty/jsrsasign.d.ts +753 -0
- package/five/thirdparty/meshopt_decoder.d.ts +15 -0
- package/five/three-version-check.d.ts +1 -0
- package/five/types/addableObject.d.ts +12 -0
- package/five/types/cube.d.ts +1 -0
- package/five/types/gestureInput.d.ts +24 -0
- package/five/types/imageOptions.d.ts +20 -0
- package/five/types/intersectMeshInterface.d.ts +8 -0
- package/five/types/movePanoEffect.d.ts +13 -0
- package/five/types/movePanoOptions.d.ts +36 -0
- package/five/types/panoCircleMeshInterface.d.ts +34 -0
- package/five/types/plugin.d.ts +25 -0
- package/five/types/pose.d.ts +17 -0
- package/five/types/state.d.ts +20 -0
- package/five/types/viewport.d.ts +22 -0
- package/five/utils/ajax.d.ts +66 -0
- package/five/utils/animationFrameLoop.d.ts +45 -0
- package/five/utils/array.d.ts +31 -0
- package/five/utils/asyncTaskQueue.d.ts +8 -0
- package/five/utils/bufferGeometry.d.ts +33 -0
- package/five/utils/calculateProgress.d.ts +39 -0
- package/five/utils/calculateThreeMouse.d.ts +13 -0
- package/five/utils/canplayVideo.d.ts +2 -0
- package/five/utils/clamp.d.ts +2 -0
- package/five/utils/clock.d.ts +17 -0
- package/five/utils/createSymbol.d.ts +5 -0
- package/five/utils/decodeText.d.ts +2 -0
- package/five/utils/deepEqual.d.ts +2 -0
- package/five/utils/deepFreeze.d.ts +2 -0
- package/five/utils/defineProperty.d.ts +9 -0
- package/five/utils/detector.d.ts +14 -0
- package/five/utils/distance.d.ts +10 -0
- package/five/utils/draco.d.ts +26 -0
- package/five/utils/easing.d.ts +63 -0
- package/five/utils/event.d.ts +159 -0
- package/five/utils/formatRad.d.ts +7 -0
- package/five/utils/imageSupport.d.ts +6 -0
- package/five/utils/imageURL.d.ts +42 -0
- package/five/utils/isEmptyObject.d.ts +2 -0
- package/five/utils/isNil.d.ts +6 -0
- package/five/utils/isNumber.d.ts +2 -0
- package/five/utils/isPowerOfTwo.d.ts +2 -0
- package/five/utils/isPromise.d.ts +2 -0
- package/five/utils/isSimilar.d.ts +6 -0
- package/five/utils/json.d.ts +7 -0
- package/five/utils/ktx2.d.ts +30 -0
- package/five/utils/lzma/index.d.ts +2 -0
- package/five/utils/lzma/lzma.d.ts +3 -0
- package/five/utils/lzma/lzmaWASM.d.ts +2 -0
- package/five/utils/lzma/lzmaWorker.d.ts +14 -0
- package/five/utils/memoryUsage.d.ts +29 -0
- package/five/utils/motion.d.ts +38 -0
- package/five/utils/noop.d.ts +6 -0
- package/five/utils/now.d.ts +7 -0
- package/five/utils/pano.d.ts +9 -0
- package/five/utils/pick.d.ts +3 -0
- package/five/utils/poseUtils.d.ts +5 -0
- package/five/utils/renderCubeTextureToCubeRenderTarget.d.ts +3 -0
- package/five/utils/renderDepth.d.ts +2 -0
- package/five/utils/renderTexturesToCubeRenderTarget.d.ts +10 -0
- package/five/utils/requestPermission.d.ts +3 -0
- package/five/utils/shaderContentFix.d.ts +7 -0
- package/five/utils/shaderMaterial.d.ts +20 -0
- package/five/utils/stateUtils.d.ts +5 -0
- package/five/utils/string-pattern.d.ts +8 -0
- package/five/utils/subscribe.d.ts +67 -0
- package/five/utils/tileCube.d.ts +19 -0
- package/five/utils/toFastProperties.d.ts +1 -0
- package/five/utils/typedCache.d.ts +10 -0
- package/five/utils/uniform.d.ts +15 -0
- package/five/utils/url.d.ts +35 -0
- package/five/utils/uuid.d.ts +5 -0
- package/five/utils/values.d.ts +2 -0
- package/five/utils/vectorCoordinates.d.ts +29 -0
- package/five/utils/volume.d.ts +111 -0
- package/five/utils/webglError.d.ts +7 -0
- package/five/utils/worker.d.ts +26 -0
- package/five/webxr/XRControllerModelFactory.d.ts +28 -0
- package/five/webxr/motionHelper.d.ts +68 -0
- package/five/webxr/xrButton.d.ts +4 -0
- package/five/webxr/xrController.d.ts +24 -0
- package/five/webxr/xrManager.d.ts +84 -0
- package/five/work/_ALLOW_HOST.d.ts +2 -0
- package/five/work/index.d.ts +6 -0
- package/five/work/keychain.d.ts +5 -0
- package/five/work/looseWorkType.d.ts +121 -0
- package/five/work/verify.d.ts +7 -0
- package/five/work/work.d.ts +236 -0
- package/five/work/workFetcher.d.ts +4 -0
- package/five/work/workJson.d.ts +3 -0
- package/five/work/workJsonType.d.ts +73 -0
- package/five/work/workObserverUtils.d.ts +36 -0
- package/five/work/workParser.d.ts +6 -0
- package/five/work/workResolvedObserver.d.ts +12 -0
- package/five/work/workVerify.d.ts +2 -0
- package/five/work/works.d.ts +10 -0
- package/gltf-loader/gltf-object.d.ts +17 -0
- package/gltf-loader/index.d.ts +60 -160
- package/gltf-loader/index.js +9 -9
- package/gltf-loader/index.mjs +1351 -1451
- package/gltf-loader/thirdparty/DDSLoader.d.ts +23 -0
- package/gltf-loader/thirdparty/DRACOLoader.d.ts +18 -0
- package/gltf-loader/thirdparty/GLTFLoader.d.ts +59 -0
- package/line/circle_png.d.ts +1 -0
- package/line/index.d.ts +19 -69
- package/line/index.js +4 -4
- package/line/index.mjs +334 -513
- package/line/utils/Line2.d.ts +7 -0
- package/line/utils/LineGeometry.d.ts +10 -0
- package/line/utils/LineMaterial.d.ts +20 -0
- package/line/utils/LineSegments2.d.ts +11 -0
- package/line/utils/LineSegmentsGeometry.d.ts +15 -0
- package/llms.txt +43 -31
- package/package.json +11 -2
- package/plugins/BackgroundPlugin/Controller.d.ts +20 -0
- package/plugins/BackgroundPlugin/index.d.ts +5 -0
- package/plugins/BackgroundPlugin/typings.d.ts +44 -0
- package/plugins/BasePlugin/index.d.ts +119 -0
- package/plugins/DynamicPathLinePlugin/Controller.d.ts +167 -0
- package/plugins/DynamicPathLinePlugin/index.d.ts +5 -0
- package/plugins/DynamicPathLinePlugin/line2/Line2.d.ts +7 -0
- package/plugins/DynamicPathLinePlugin/line2/LineGeometry.d.ts +10 -0
- package/plugins/DynamicPathLinePlugin/line2/LineMaterial.d.ts +17 -0
- package/plugins/DynamicPathLinePlugin/line2/LineSegments2.d.ts +11 -0
- package/plugins/DynamicPathLinePlugin/line2/LineSegmentsGeometry.d.ts +15 -0
- package/plugins/DynamicPathLinePlugin/typing.d.ts +129 -0
- package/plugins/DynamicPathLinePlugin/typings.d.ts +72 -0
- package/plugins/ItemMaskPlugin/Controller.d.ts +48 -0
- package/plugins/ItemMaskPlugin/index.d.ts +5 -0
- package/plugins/ItemMaskPlugin/typing.d.ts +58 -0
- package/plugins/OrientationPlugin/Controller.d.ts +82 -0
- package/plugins/OrientationPlugin/RoundedBoxGeometry.d.ts +11 -0
- package/plugins/OrientationPlugin/index.d.ts +6 -0
- package/plugins/OrientationPlugin/typing.d.ts +25 -0
- package/plugins/PanoAnimePlugin/Controller.d.ts +46 -0
- package/plugins/PanoAnimePlugin/index.d.ts +5 -0
- package/plugins/PanoAnimePlugin/typing.d.ts +37 -0
- package/plugins/PluginTemplate/Controller.d.ts +27 -0
- package/plugins/PluginTemplate/index.d.ts +5 -0
- package/plugins/PluginTemplate/typing.d.ts +21 -0
- package/plugins/TrajectoryPlugin/Controller.d.ts +85 -0
- package/plugins/TrajectoryPlugin/index.d.ts +6 -0
- package/plugins/TrajectoryPlugin/typing.d.ts +25 -0
- package/plugins/index.d.ts +9 -1102
- package/plugins/index.js +17 -21
- package/plugins/index.mjs +3342 -4245
- package/plugins/thirdParty/CSS3DRenderer.d.ts +32 -0
- package/plugins/thirdParty/OrbitControls.d.ts +78 -0
- package/plugins/utils/absoluteUrl.d.ts +5 -0
- package/plugins/utils/clamp.d.ts +2 -0
- package/plugins/utils/loadImage.d.ts +1 -0
- package/plugins/utils/motion.d.ts +38 -0
- package/plugins/utils/now.d.ts +6 -0
- package/plugins/utils/uuid.d.ts +5 -0
- package/react/canvas.d.ts +19 -0
- package/react/context.d.ts +11 -0
- package/react/createProvider.d.ts +95 -0
- package/react/createStore.d.ts +144 -0
- package/react/hooks/unsafe__useFiveInstance.d.ts +9 -0
- package/react/hooks/useFiveAction.d.ts +147 -0
- package/react/hooks/useFiveCameraDirection.d.ts +7 -0
- package/react/hooks/useFiveCameraRaycaster.d.ts +7 -0
- package/react/hooks/useFiveCurrentObserver.d.ts +11 -0
- package/react/hooks/useFiveCurrentState.d.ts +15 -0
- package/react/hooks/useFiveEventCallback.d.ts +12 -0
- package/react/hooks/useFiveFloor.d.ts +15 -0
- package/react/hooks/useFiveHelper.d.ts +14 -0
- package/react/hooks/useFiveModelBounding.d.ts +5 -0
- package/react/hooks/useFiveModelEffect.d.ts +14 -0
- package/react/hooks/useFiveModelIntersectRaycaster.d.ts +22 -0
- package/react/hooks/useFiveModelReadyState.d.ts +8 -0
- package/react/hooks/useFiveProject2d.d.ts +20 -0
- package/react/hooks/useFiveSceneEffect.d.ts +21 -0
- package/react/hooks/useFiveState.d.ts +6 -0
- package/react/hooks/useFiveWork.d.ts +29 -0
- package/react/index.d.ts +24 -830
- package/react/index.js +3 -3
- package/react/index.mjs +572 -783
- package/react/rendererPool.d.ts +7 -0
- package/react/withFive.d.ts +213 -0
- package/shader-lib/EvenessPlane/index.d.ts +10 -0
- package/shader-lib/PointCloudExpand/index.d.ts +59 -0
- package/shader-lib/PolygonCuter/index.d.ts +52 -0
- package/shader-lib/PolygonCuter/worker.d.ts +14 -0
- package/shader-lib/ShineModel/index.d.ts +7 -0
- package/shader-lib/SweepModel/index.d.ts +7 -0
- package/shader-lib/index.d.ts +5 -86
- package/shader-lib/index.js +13 -14
- package/shader-lib/index.mjs +424 -824
- package/sticker/geometry.d.ts +3 -0
- package/sticker/index.d.ts +68 -71
- package/sticker/index.js +3 -3
- package/sticker/index.mjs +102 -142
- package/umd/five-gltf-loader.js +9 -9
- package/umd/five-line.js +4 -4
- package/umd/five-plugins.js +17 -21
- package/umd/five-react.js +3 -3
- package/umd/five-shader-lib.js +13 -14
- package/umd/five-sticker.js +3 -3
- package/umd/five-vfx.js +21 -21
- package/umd/five-vue.js +3 -3
- package/umd/five.js +188 -336
- package/vfx/airflow/airflow.d.ts +18 -0
- package/vfx/airflow/fragment-shader.d.ts +2 -0
- package/vfx/airflow/vertex-shader.d.ts +2 -0
- package/vfx/common/scale-shader.d.ts +2 -0
- package/vfx/common/simplex-noise-shader.d.ts +2 -0
- package/vfx/frame/fragment-shader.d.ts +2 -0
- package/vfx/frame/frame.d.ts +22 -0
- package/vfx/frame/vertex-shader.d.ts +2 -0
- package/vfx/index.d.ts +7 -363
- package/vfx/index.js +21 -21
- package/vfx/index.mjs +454 -910
- package/vfx/particle/fragment-shader.d.ts +2 -0
- package/vfx/particle/instance.d.ts +36 -0
- package/vfx/particle/particle.d.ts +205 -0
- package/vfx/particle/utils.d.ts +11 -0
- package/vfx/particle/vertex-shader.d.ts +2 -0
- package/vfx/particle-gpu/fragment-shader.d.ts +2 -0
- package/vfx/particle-gpu/instance.d.ts +36 -0
- package/vfx/particle-gpu/particle.d.ts +95 -0
- package/vfx/particle-gpu/utils.d.ts +11 -0
- package/vfx/particle-gpu/vertex-shader.d.ts +2 -0
- package/vfx/spotLight/fragment-shader.d.ts +2 -0
- package/vfx/spotLight/spotLight.d.ts +15 -0
- package/vfx/spotLight/vertex-shader.d.ts +2 -0
- package/vue/context.d.ts +7 -0
- package/vue/hooks/FiveCanvas.d.ts +36 -0
- package/vue/hooks/FiveProvider.d.ts +35 -0
- package/vue/hooks/unsafe__useFiveInject.d.ts +9 -0
- package/vue/hooks/useFiveAction.d.ts +178 -0
- package/vue/hooks/useFiveCameraDirection.d.ts +8 -0
- package/vue/hooks/useFiveCameraRaycaster.d.ts +8 -0
- package/vue/hooks/useFiveCurrentObserver.d.ts +12 -0
- package/vue/hooks/useFiveCurrentState.d.ts +16 -0
- package/vue/hooks/useFiveEventCallback.d.ts +11 -0
- package/vue/hooks/useFiveFloor.d.ts +16 -0
- package/vue/hooks/useFiveHelper.d.ts +15 -0
- package/vue/hooks/useFiveModel.d.ts +7 -0
- package/vue/hooks/useFiveModelBounding.d.ts +7 -0
- package/vue/hooks/useFiveModelIntersectRaycaster.d.ts +23 -0
- package/vue/hooks/useFiveModelReadyState.d.ts +9 -0
- package/vue/hooks/useFiveProject2d.d.ts +26 -0
- package/vue/hooks/useFiveScene.d.ts +6 -0
- package/vue/hooks/useFiveState.d.ts +16 -0
- package/vue/hooks/useFiveWork.d.ts +30 -0
- package/vue/index.d.ts +23 -467
- package/vue/index.js +3 -3
- package/vue/index.mjs +309 -301
- package/vue/rendererPool.d.ts +10 -0
- package/work-downloader/components/model-3d-tile.d.ts +2 -0
- package/work-downloader/components/model.d.ts +3 -0
- package/work-downloader/components/observer.d.ts +7 -0
- package/work-downloader/download.d.ts +16 -0
- package/work-downloader/index.d.ts +2 -33
- package/work-downloader/index.js +3 -3
- package/work-downloader/index.mjs +317 -556
- package/work-downloader/type.d.ts +28 -0
- package/work-downloader/utils/download-to-file.d.ts +1 -0
- package/work-downloader/utils/image-processing.d.ts +7 -0
- package/work-downloader/utils/join-url.d.ts +2 -0
- package/work-downloader/utils/log.d.ts +1 -0
- package/work-downloader/utils/relative-url.d.ts +1 -0
- package/docs/documents/five.FivePlugin.plugin.html +0 -60
- package/docs/documents/plugin.html +0 -60
- package/docs/media/five.ts +0 -2881
- package/docs/media/pass.ts +0 -64
- package/guides/ai-doc-guidelines.md +0 -72
- package/guides/features/3dtile.md +0 -264
- package/guides/features/parameter.md +0 -178
- package/guides/plugin.md +0 -206
- /package/{guides → ai_guides}/release_notes/6.6.md +0 -0
- /package/{guides → ai_guides}/release_notes/6.7.md +0 -0
- /package/{guides → ai_guides}/support.md +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* @realsee/five
|
|
4
|
-
* Generated:
|
|
5
|
-
* Version: 6.8.0-alpha.
|
|
4
|
+
* Generated: 3/19/2026
|
|
5
|
+
* Version: 6.8.0-alpha.21
|
|
6
6
|
* Terms:
|
|
7
7
|
* Realsee SDK License Agreement
|
|
8
8
|
* Update: July 28, 2021
|
|
@@ -252,574 +252,335 @@
|
|
|
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 { createWriteStream as
|
|
256
|
-
import {
|
|
257
|
-
import { dirname as
|
|
258
|
-
import { Readable as
|
|
259
|
-
import
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
255
|
+
*/import { createWriteStream as e, existsSync as t } from "node:fs";
|
|
256
|
+
import { mkdir as n, readFile as r, writeFile as i } from "node:fs/promises";
|
|
257
|
+
import { dirname as a, extname as o, join as s, resolve as c } from "node:path";
|
|
258
|
+
import { Readable as l } from "node:stream";
|
|
259
|
+
import u from "sharp";
|
|
260
|
+
//#region node_modules/tslib/tslib.es6.mjs
|
|
261
|
+
function d(e, t, n, r) {
|
|
262
|
+
function i(e) {
|
|
263
|
+
return e instanceof n ? e : new n(function(t) {
|
|
264
|
+
t(e);
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
return new (n || (n = Promise))(function(n, a) {
|
|
268
|
+
function o(e) {
|
|
269
|
+
try {
|
|
270
|
+
c(r.next(e));
|
|
271
|
+
} catch (e) {
|
|
272
|
+
a(e);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
function s(e) {
|
|
276
|
+
try {
|
|
277
|
+
c(r.throw(e));
|
|
278
|
+
} catch (e) {
|
|
279
|
+
a(e);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
function c(e) {
|
|
283
|
+
e.done ? n(e.value) : i(e.value).then(o, s);
|
|
284
|
+
}
|
|
285
|
+
c((r = r.apply(e, t || [])).next());
|
|
286
|
+
});
|
|
286
287
|
}
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
return u.next = o(0), u.throw = o(1), u.return = o(2), typeof Symbol == "function" && (u[Symbol.iterator] = function() {
|
|
293
|
-
return this;
|
|
294
|
-
}), u;
|
|
295
|
-
function o(s) {
|
|
296
|
-
return function(c) {
|
|
297
|
-
return l([s, c]);
|
|
298
|
-
};
|
|
299
|
-
}
|
|
300
|
-
function l(s) {
|
|
301
|
-
if (a) throw new TypeError("Generator is already executing.");
|
|
302
|
-
for (; u && (u = 0, s[0] && (e = 0)), e; ) try {
|
|
303
|
-
if (a = 1, i && (t = s[0] & 2 ? i.return : s[0] ? i.throw || ((t = i.return) && t.call(i), 0) : i.next) && !(t = t.call(i, s[1])).done) return t;
|
|
304
|
-
switch (i = 0, t && (s = [s[0] & 2, t.value]), s[0]) {
|
|
305
|
-
case 0:
|
|
306
|
-
case 1:
|
|
307
|
-
t = s;
|
|
308
|
-
break;
|
|
309
|
-
case 4:
|
|
310
|
-
return e.label++, { value: s[1], done: !1 };
|
|
311
|
-
case 5:
|
|
312
|
-
e.label++, i = s[1], s = [0];
|
|
313
|
-
continue;
|
|
314
|
-
case 7:
|
|
315
|
-
s = e.ops.pop(), e.trys.pop();
|
|
316
|
-
continue;
|
|
317
|
-
default:
|
|
318
|
-
if (t = e.trys, !(t = t.length > 0 && t[t.length - 1]) && (s[0] === 6 || s[0] === 2)) {
|
|
319
|
-
e = 0;
|
|
320
|
-
continue;
|
|
321
|
-
}
|
|
322
|
-
if (s[0] === 3 && (!t || s[1] > t[0] && s[1] < t[3])) {
|
|
323
|
-
e.label = s[1];
|
|
324
|
-
break;
|
|
325
|
-
}
|
|
326
|
-
if (s[0] === 6 && e.label < t[1]) {
|
|
327
|
-
e.label = t[1], t = s;
|
|
328
|
-
break;
|
|
329
|
-
}
|
|
330
|
-
if (t && e.label < t[2]) {
|
|
331
|
-
e.label = t[2], e.ops.push(s);
|
|
332
|
-
break;
|
|
333
|
-
}
|
|
334
|
-
t[2] && e.ops.pop(), e.trys.pop();
|
|
335
|
-
continue;
|
|
336
|
-
}
|
|
337
|
-
s = r.call(n, e);
|
|
338
|
-
} catch (c) {
|
|
339
|
-
s = [6, c], i = 0;
|
|
340
|
-
} finally {
|
|
341
|
-
a = t = 0;
|
|
342
|
-
}
|
|
343
|
-
if (s[0] & 5) throw s[1];
|
|
344
|
-
return { value: s[0] ? s[1] : void 0, done: !0 };
|
|
345
|
-
}
|
|
288
|
+
//#endregion
|
|
289
|
+
//#region build/work-downloader/utils/relative-url.js
|
|
290
|
+
function f(e, t) {
|
|
291
|
+
if (t && t[t.length - 1] !== "/" && (t += "/"), e.length > t.length && e.startsWith(t)) return e.slice(t.length);
|
|
292
|
+
throw Error(`${e} is not starting with ${t}`);
|
|
346
293
|
}
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
294
|
+
//#endregion
|
|
295
|
+
//#region build/work-downloader/utils/join-url.js
|
|
296
|
+
function p(...e) {
|
|
297
|
+
let t = [];
|
|
298
|
+
e = e.map((e) => (e == null ? "" : e).trim()).filter((e) => e.length > 0 && !/^\/+$/.test(e));
|
|
299
|
+
for (let n = 0; n < e.length; n++) {
|
|
300
|
+
let r = n === 0, i = n === e.length - 1, a = e[n];
|
|
301
|
+
r || (a = a.replace(/^\.\//, "").replace(/^\/+/, "")), i || (a = a.replace(/\/+$/, "")), t.push(a);
|
|
302
|
+
}
|
|
303
|
+
return t.join("/");
|
|
351
304
|
}
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
305
|
+
//#endregion
|
|
306
|
+
//#region build/work-downloader/utils/download-to-file.js
|
|
307
|
+
var m = 1024 * 1024 * 5;
|
|
308
|
+
function h(r, o, s) {
|
|
309
|
+
return d(this, void 0, void 0, function* () {
|
|
310
|
+
var c;
|
|
311
|
+
if (t(o)) return o;
|
|
312
|
+
let u = yield s(r);
|
|
313
|
+
if (u.ok && u.body) {
|
|
314
|
+
if (yield n(a(o), { recursive: !0 }), Number((c = u.headers.get("content-length")) == null ? "Infinity" : c) > m) return new Promise((t, n) => {
|
|
315
|
+
let r = l.fromWeb(u.body), i = e(o);
|
|
316
|
+
r.pipe(i), r.on("error", n), i.on("finish", () => t(o));
|
|
317
|
+
});
|
|
318
|
+
{
|
|
319
|
+
let e = yield u.arrayBuffer();
|
|
320
|
+
return yield i(o, Buffer.from(e)), o;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
throw Error(`url: ${r}(${u.statusText})`);
|
|
324
|
+
});
|
|
366
325
|
}
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
return t = o.sent(), [4, X(r, Buffer.from(t))];
|
|
388
|
-
case 5:
|
|
389
|
-
return o.sent(), [2, r];
|
|
390
|
-
case 6:
|
|
391
|
-
throw new Error("url: ".concat(n, "(").concat(a.statusText, ")"));
|
|
392
|
-
}
|
|
393
|
-
});
|
|
394
|
-
});
|
|
326
|
+
//#endregion
|
|
327
|
+
//#region build/work-downloader/utils/image-processing.js
|
|
328
|
+
var g = ["jpg", "png"], _ = 95;
|
|
329
|
+
function v(e, t) {
|
|
330
|
+
let n = o(e).slice(1) || "jpg", { cut: r, size: i, format: a = n } = t, s = "";
|
|
331
|
+
if (t.toFilename) s = t.toFilename(e, {
|
|
332
|
+
cut: t.cut,
|
|
333
|
+
size: t.size,
|
|
334
|
+
format: t.format
|
|
335
|
+
});
|
|
336
|
+
else {
|
|
337
|
+
let t = "", o = "", c = a;
|
|
338
|
+
r && (t = r.join("x")), i && (o = `${i}x`), c === n && !o && !t && (c = ""), s = [
|
|
339
|
+
e,
|
|
340
|
+
t,
|
|
341
|
+
o,
|
|
342
|
+
c
|
|
343
|
+
].filter((e) => e.length > 0).join(".");
|
|
344
|
+
}
|
|
345
|
+
return s;
|
|
395
346
|
}
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
347
|
+
function y(e, n) {
|
|
348
|
+
return d(this, void 0, void 0, function* () {
|
|
349
|
+
let r = o(e).slice(1) || "jpg", { cut: i, size: a, format: s = r } = n, c = e;
|
|
350
|
+
if ((i || a) && s !== r && g.includes(s)) {
|
|
351
|
+
let r = v(e, {
|
|
352
|
+
format: s,
|
|
353
|
+
toFilename: n.toFilename
|
|
354
|
+
});
|
|
355
|
+
r !== c && t(r) && (c = r);
|
|
356
|
+
}
|
|
357
|
+
let l = u(c);
|
|
358
|
+
i && (l = l.extract({
|
|
359
|
+
left: i[0],
|
|
360
|
+
top: i[1],
|
|
361
|
+
width: i[2],
|
|
362
|
+
height: i[3]
|
|
363
|
+
})), a && (l = l.resize(a)), l = l.toFormat(s, { quality: _ });
|
|
364
|
+
let d = v(e, n);
|
|
365
|
+
return d !== e && !t(d) ? l.toFile(d).then(() => d) : d;
|
|
366
|
+
});
|
|
408
367
|
}
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
top: a[1],
|
|
419
|
-
width: a[2],
|
|
420
|
-
height: a[3]
|
|
421
|
-
})), i && (s = s.resize(i)), s = s.toFormat(u, { quality: ie }), c = G(n, r), c !== n && !J(c) ? [2, s.toFile(c).then(function() {
|
|
422
|
-
return c;
|
|
423
|
-
})] : [2, c];
|
|
424
|
-
});
|
|
425
|
-
});
|
|
368
|
+
//#endregion
|
|
369
|
+
//#region build/work-downloader/components/model-3d-tile.js
|
|
370
|
+
function b(e) {
|
|
371
|
+
let t = [];
|
|
372
|
+
if (e.content && (e.content.uri ? t.push(e.content.uri) : e.content.url && t.push(e.content.url)), e.children) for (let n of e.children) {
|
|
373
|
+
let e = b(n);
|
|
374
|
+
if (e.length > 0) for (let n = 0; n < e.length; n++) t.push(e[n]);
|
|
375
|
+
}
|
|
376
|
+
return t;
|
|
426
377
|
}
|
|
427
|
-
function
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
if (t.length > 0)
|
|
433
|
-
for (var u = 0; u < t.length; u++)
|
|
434
|
-
r.push(t[u]);
|
|
435
|
-
}
|
|
436
|
-
return r;
|
|
378
|
+
function x(e, t, n) {
|
|
379
|
+
return d(this, void 0, void 0, function* () {
|
|
380
|
+
let r = new URL(e, t).href, i = h(r, s(n.distPath, f(r, n.baseURL)), n.fetch);
|
|
381
|
+
n.log((e) => `download: ${r} -> ${e}`, i), yield i, /\.json$/.test(e) && (yield S(r, n));
|
|
382
|
+
});
|
|
437
383
|
}
|
|
438
|
-
function
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
384
|
+
function S(e, t) {
|
|
385
|
+
return d(this, void 0, void 0, function* () {
|
|
386
|
+
let n = s(t.distPath, f(e, t.baseURL)), i = h(e, n, t.fetch);
|
|
387
|
+
t.log((t) => `download: ${e} -> ${t}`, i), yield i;
|
|
388
|
+
let a = JSON.parse(yield r(n, "utf8"));
|
|
389
|
+
if (a.asset.overview) {
|
|
390
|
+
let n = new URL(a.asset.overview.imageFile, e).href, r = h(n, s(t.distPath, f(n, t.baseURL)), t.fetch);
|
|
391
|
+
t.log((e) => `download: ${n} -> ${e}`, r), yield r;
|
|
392
|
+
}
|
|
393
|
+
if (a.asset.trajectories) for (let n of a.asset.trajectories.list) {
|
|
394
|
+
let r = new URL(n.file, e).href, i = h(r, s(t.distPath, f(r, t.baseURL)), t.fetch);
|
|
395
|
+
t.log((e) => `download: ${r} -> ${e}`, i), yield i;
|
|
396
|
+
}
|
|
397
|
+
let o = b(a.root);
|
|
398
|
+
for (let n = 0; n < o.length; n += 6) {
|
|
399
|
+
let r = [];
|
|
400
|
+
for (let i = 0; i < 6; i++) {
|
|
401
|
+
let a = o[n + i];
|
|
402
|
+
if (a) {
|
|
403
|
+
let n = x(a, e, t);
|
|
404
|
+
r.push(n);
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
yield Promise.all(r);
|
|
408
|
+
}
|
|
409
|
+
});
|
|
459
410
|
}
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
}, f = 0, m = i.asset.trajectories.list, g.label = 5;
|
|
495
|
-
case 5:
|
|
496
|
-
return f < m.length ? (v = m[f], [5, c(v)]) : [3, 8];
|
|
497
|
-
case 6:
|
|
498
|
-
g.sent(), g.label = 7;
|
|
499
|
-
case 7:
|
|
500
|
-
return f++, [3, 5];
|
|
501
|
-
case 8:
|
|
502
|
-
p = Q(i.root), b = 6, w = 0, g.label = 9;
|
|
503
|
-
case 9:
|
|
504
|
-
if (!(w < p.length)) return [3, 12];
|
|
505
|
-
for (d = [], h = 0; h < b; h++)
|
|
506
|
-
y = p[w + h], y && (k = se(y, n, r), d.push(k));
|
|
507
|
-
return [4, Promise.all(d)];
|
|
508
|
-
case 10:
|
|
509
|
-
g.sent(), g.label = 11;
|
|
510
|
-
case 11:
|
|
511
|
-
return w += b, [3, 9];
|
|
512
|
-
case 12:
|
|
513
|
-
return [
|
|
514
|
-
2
|
|
515
|
-
/*return*/
|
|
516
|
-
];
|
|
517
|
-
}
|
|
518
|
-
});
|
|
519
|
-
});
|
|
411
|
+
//#endregion
|
|
412
|
+
//#region build/work-downloader/components/model.js
|
|
413
|
+
function C(e, t) {
|
|
414
|
+
return d(this, void 0, void 0, function* () {
|
|
415
|
+
if (t.log("process model"), e.model) {
|
|
416
|
+
let { textures: n, layers: r, file: i, textureBase: a } = e.model;
|
|
417
|
+
if (i) {
|
|
418
|
+
t.log("process model file");
|
|
419
|
+
let r = e.getURL(i), o = h(r, s(t.distPath, f(r, t.baseURL)), t.fetch);
|
|
420
|
+
if (t.log((e) => `download: ${i} -> ${e}`, o), yield o, n) for (let r of n) {
|
|
421
|
+
let n = p(e.getURL(a == null ? "" : a), r), i = s(t.distPath, f(n, t.baseURL)), o = h(n, i, t.fetch);
|
|
422
|
+
t.log((e) => `download: ${n} -> ${e}`, o), yield o;
|
|
423
|
+
let c = t.imageOptions.format;
|
|
424
|
+
c.length === 0 && c.push(void 0);
|
|
425
|
+
let l = t.imageOptions.size;
|
|
426
|
+
l.length === 0 && l.push(void 0);
|
|
427
|
+
let u = [];
|
|
428
|
+
for (let e of c) for (let n of l) {
|
|
429
|
+
let r = y(i, {
|
|
430
|
+
format: e,
|
|
431
|
+
size: n,
|
|
432
|
+
toFilename: t.imageProcessingFilename
|
|
433
|
+
});
|
|
434
|
+
t.log((e) => `imageProcessing: ${i} -> ${e}`, r), u.push(r);
|
|
435
|
+
}
|
|
436
|
+
yield Promise.all(u);
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
if (r) for (let n of r) {
|
|
440
|
+
let { tileset: r } = n;
|
|
441
|
+
t.log("process model layer"), yield S(e.getURL(r), t);
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
});
|
|
520
445
|
}
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
/*return*/
|
|
555
|
-
];
|
|
556
|
-
}
|
|
557
|
-
});
|
|
558
|
-
}, c = 0, f = a, h.label = 2;
|
|
559
|
-
case 2:
|
|
560
|
-
return c < f.length ? (m = f[c], [5, s(m)]) : [3, 5];
|
|
561
|
-
case 3:
|
|
562
|
-
h.sent(), h.label = 4;
|
|
563
|
-
case 4:
|
|
564
|
-
return c++, [3, 2];
|
|
565
|
-
case 5:
|
|
566
|
-
if (!i) return [3, 9];
|
|
567
|
-
v = 0, p = i, h.label = 6;
|
|
568
|
-
case 6:
|
|
569
|
-
return v < p.length ? (b = p[v], w = b.tileset, r.log("process model layer"), d = n.getURL(w), [4, V(d, r)]) : [3, 9];
|
|
570
|
-
case 7:
|
|
571
|
-
h.sent(), h.label = 8;
|
|
572
|
-
case 8:
|
|
573
|
-
return v++, [3, 6];
|
|
574
|
-
case 9:
|
|
575
|
-
return [
|
|
576
|
-
2
|
|
577
|
-
/*return*/
|
|
578
|
-
];
|
|
579
|
-
}
|
|
580
|
-
});
|
|
581
|
-
});
|
|
446
|
+
//#endregion
|
|
447
|
+
//#region build/work-downloader/components/observer.js
|
|
448
|
+
function w(e, t, n) {
|
|
449
|
+
return d(this, void 0, void 0, function* () {
|
|
450
|
+
let r = s(n.distPath, f(e, n.baseURL)), i = h(e, r, n.fetch);
|
|
451
|
+
n.log((t) => `download: ${e} -> ${t}`, i), yield i;
|
|
452
|
+
let a = Math.pow(2, t.level), o = n.imageOptions.format;
|
|
453
|
+
o.length === 0 && o.push(void 0);
|
|
454
|
+
let c = [];
|
|
455
|
+
if (a > 1) for (let e = 0; e < a; e++) for (let i = 0; i < a; i++) for (let s of o) {
|
|
456
|
+
let o = [
|
|
457
|
+
t.size / a * i,
|
|
458
|
+
t.size / a * e,
|
|
459
|
+
t.size / a,
|
|
460
|
+
t.size / a
|
|
461
|
+
], l = y(r, {
|
|
462
|
+
format: s,
|
|
463
|
+
size: t.scale >= 1 ? void 0 : t.scale * t.size / a,
|
|
464
|
+
cut: o,
|
|
465
|
+
toFilename: n.imageProcessingFilename
|
|
466
|
+
});
|
|
467
|
+
if (n.log((e) => `imageProcessing: ${r} -> ${e}`, l), c.push(l), t.level === 1 && t.scale >= .5 && (s === "jpg" || /\.jpg$/.test(r))) {
|
|
468
|
+
let e = y(r, {
|
|
469
|
+
format: s,
|
|
470
|
+
size: void 0,
|
|
471
|
+
cut: o,
|
|
472
|
+
toFilename: n.imageProcessingFilename
|
|
473
|
+
});
|
|
474
|
+
n.log((e) => `imageProcessing: ${r} -> ${e}`, e), c.push(e);
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
yield Promise.all(c);
|
|
478
|
+
});
|
|
582
479
|
}
|
|
583
|
-
function
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
for (l = 0; l < t; l++)
|
|
595
|
-
for (s = 0; s < t; s++)
|
|
596
|
-
for (c = 0, f = u; c < f.length; c++)
|
|
597
|
-
m = f[c], v = [
|
|
598
|
-
r.size / t * s,
|
|
599
|
-
r.size / t * l,
|
|
600
|
-
r.size / t,
|
|
601
|
-
r.size / t
|
|
602
|
-
], p = r.scale >= 1 ? void 0 : r.scale * r.size / t, b = B(a, {
|
|
603
|
-
format: m,
|
|
604
|
-
size: p,
|
|
605
|
-
cut: v,
|
|
606
|
-
toFilename: e.imageProcessingFilename
|
|
607
|
-
}), e.log(function(h) {
|
|
608
|
-
return "imageProcessing: ".concat(a, " -> ").concat(h);
|
|
609
|
-
}, b), o.push(b), r.level === 1 && r.scale >= 0.5 && (m === "jpg" || /\.jpg$/.test(a)) && (w = B(a, {
|
|
610
|
-
format: m,
|
|
611
|
-
size: void 0,
|
|
612
|
-
cut: v,
|
|
613
|
-
toFilename: e.imageProcessingFilename
|
|
614
|
-
}), e.log(function(h) {
|
|
615
|
-
return "imageProcessing: ".concat(a, " -> ").concat(h);
|
|
616
|
-
}, w), o.push(w));
|
|
617
|
-
return [4, Promise.all(o)];
|
|
618
|
-
case 2:
|
|
619
|
-
return d.sent(), [
|
|
620
|
-
2
|
|
621
|
-
/*return*/
|
|
622
|
-
];
|
|
623
|
-
}
|
|
624
|
-
});
|
|
625
|
-
});
|
|
480
|
+
function T(e, t) {
|
|
481
|
+
return d(this, void 0, void 0, function* () {
|
|
482
|
+
yield Promise.all([
|
|
483
|
+
w(e.work.getURL(e.front), e, t),
|
|
484
|
+
w(e.work.getURL(e.back), e, t),
|
|
485
|
+
w(e.work.getURL(e.left), e, t),
|
|
486
|
+
w(e.work.getURL(e.right), e, t),
|
|
487
|
+
w(e.work.getURL(e.up), e, t),
|
|
488
|
+
w(e.work.getURL(e.down), e, t)
|
|
489
|
+
]);
|
|
490
|
+
});
|
|
626
491
|
}
|
|
627
|
-
function
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
492
|
+
function E(e, t, n) {
|
|
493
|
+
return d(this, void 0, void 0, function* () {
|
|
494
|
+
let r = s(n.distPath, f(e, n.baseURL)), i = h(e, r, n.fetch);
|
|
495
|
+
n.log((t) => `download: ${e} -> ${t}`, i), yield i;
|
|
496
|
+
let a = n.imageOptions.format;
|
|
497
|
+
a.length === 0 && a.push(void 0);
|
|
498
|
+
let o = n.imageOptions.size;
|
|
499
|
+
o.length === 0 && o.push(void 0);
|
|
500
|
+
for (let r of t) {
|
|
501
|
+
let t = e.replace(/cube\_\d+/, `cube_${r}`), i = s(n.distPath, f(t, n.baseURL)), o = h(t, i, n.fetch);
|
|
502
|
+
n.log((e) => `download ${t} -> ${i}`, o), yield o;
|
|
503
|
+
for (let e of a) {
|
|
504
|
+
let t = y(i, {
|
|
505
|
+
format: e,
|
|
506
|
+
toFilename: n.imageProcessingFilename
|
|
507
|
+
});
|
|
508
|
+
n.log((e) => `imageProcessing: ${i} -> ${e}`, t), yield t;
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
let c = [];
|
|
512
|
+
for (let e of a) for (let t of o) {
|
|
513
|
+
let i = y(r, {
|
|
514
|
+
format: e,
|
|
515
|
+
size: t,
|
|
516
|
+
toFilename: n.imageProcessingFilename
|
|
517
|
+
});
|
|
518
|
+
n.log((e) => `imageProcessing: ${r} -> ${e}`, i), c.push(i);
|
|
519
|
+
}
|
|
520
|
+
yield Promise.all(c);
|
|
521
|
+
});
|
|
648
522
|
}
|
|
649
|
-
function
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
return L(this, function(T) {
|
|
662
|
-
switch (T.label) {
|
|
663
|
-
case 0:
|
|
664
|
-
return g = n.replace(/cube\_\d+/, "cube_".concat(k)), z = _(e.distPath, S(g, e.baseURL)), F = E(g, z, e.fetch), e.log(function($) {
|
|
665
|
-
return "download ".concat(g, " -> ").concat(z);
|
|
666
|
-
}, F), [4, F];
|
|
667
|
-
case 1:
|
|
668
|
-
T.sent(), P = 0, R = t, T.label = 2;
|
|
669
|
-
case 2:
|
|
670
|
-
return P < R.length ? (j = R[P], O = B(z, {
|
|
671
|
-
format: j,
|
|
672
|
-
toFilename: e.imageProcessingFilename
|
|
673
|
-
}), e.log(function($) {
|
|
674
|
-
return "imageProcessing: ".concat(z, " -> ").concat($);
|
|
675
|
-
}, O), [4, O]) : [3, 5];
|
|
676
|
-
case 3:
|
|
677
|
-
T.sent(), T.label = 4;
|
|
678
|
-
case 4:
|
|
679
|
-
return P++, [3, 2];
|
|
680
|
-
case 5:
|
|
681
|
-
return [
|
|
682
|
-
2
|
|
683
|
-
/*return*/
|
|
684
|
-
];
|
|
685
|
-
}
|
|
686
|
-
});
|
|
687
|
-
}, l = 0, s = r, y.label = 2;
|
|
688
|
-
case 2:
|
|
689
|
-
return l < s.length ? (c = s[l], [5, o(c)]) : [3, 5];
|
|
690
|
-
case 3:
|
|
691
|
-
y.sent(), y.label = 4;
|
|
692
|
-
case 4:
|
|
693
|
-
return l++, [3, 2];
|
|
694
|
-
case 5:
|
|
695
|
-
for (f = [], m = 0, v = t; m < v.length; m++)
|
|
696
|
-
for (p = v[m], b = 0, w = u; b < w.length; b++)
|
|
697
|
-
d = w[b], h = B(a, {
|
|
698
|
-
format: p,
|
|
699
|
-
size: d,
|
|
700
|
-
toFilename: e.imageProcessingFilename
|
|
701
|
-
}), e.log(function(k) {
|
|
702
|
-
return "imageProcessing: ".concat(a, " -> ").concat(k);
|
|
703
|
-
}, h), f.push(h);
|
|
704
|
-
return [4, Promise.all(f)];
|
|
705
|
-
case 6:
|
|
706
|
-
return y.sent(), [
|
|
707
|
-
2
|
|
708
|
-
/*return*/
|
|
709
|
-
];
|
|
710
|
-
}
|
|
711
|
-
});
|
|
712
|
-
});
|
|
523
|
+
function D(e, t) {
|
|
524
|
+
return d(this, void 0, void 0, function* () {
|
|
525
|
+
let { images: n } = e;
|
|
526
|
+
yield Promise.all([
|
|
527
|
+
E(n.work.getURL(n.front), n.sizeList, t),
|
|
528
|
+
E(n.work.getURL(n.back), n.sizeList, t),
|
|
529
|
+
E(n.work.getURL(n.left), n.sizeList, t),
|
|
530
|
+
E(n.work.getURL(n.right), n.sizeList, t),
|
|
531
|
+
E(n.work.getURL(n.up), n.sizeList, t),
|
|
532
|
+
E(n.work.getURL(n.down), n.sizeList, t)
|
|
533
|
+
]), n.tiles && (yield Promise.all(n.tiles.map((e) => T(e, t))));
|
|
534
|
+
});
|
|
713
535
|
}
|
|
714
|
-
function
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
I(e.work.getURL(e.back), e.sizeList, r),
|
|
723
|
-
I(e.work.getURL(e.left), e.sizeList, r),
|
|
724
|
-
I(e.work.getURL(e.right), e.sizeList, r),
|
|
725
|
-
I(e.work.getURL(e.up), e.sizeList, r),
|
|
726
|
-
I(e.work.getURL(e.down), e.sizeList, r)
|
|
727
|
-
])];
|
|
728
|
-
case 1:
|
|
729
|
-
return a.sent(), e.tiles ? [4, Promise.all(e.tiles.map(function(i) {
|
|
730
|
-
return oe(i, r);
|
|
731
|
-
}))] : [3, 3];
|
|
732
|
-
case 2:
|
|
733
|
-
a.sent(), a.label = 3;
|
|
734
|
-
case 3:
|
|
735
|
-
return [
|
|
736
|
-
2
|
|
737
|
-
/*return*/
|
|
738
|
-
];
|
|
739
|
-
}
|
|
740
|
-
});
|
|
741
|
-
});
|
|
536
|
+
function O(e, t) {
|
|
537
|
+
return d(this, void 0, void 0, function* () {
|
|
538
|
+
let { observers: n } = e;
|
|
539
|
+
for (let e of n) {
|
|
540
|
+
let n = D(e, t);
|
|
541
|
+
t.log(`process observer #${e.index} derived: ${e.derivedIdStr}`, n), yield n;
|
|
542
|
+
}
|
|
543
|
+
});
|
|
742
544
|
}
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
case 4:
|
|
757
|
-
return [
|
|
758
|
-
2
|
|
759
|
-
/*return*/
|
|
760
|
-
];
|
|
761
|
-
}
|
|
762
|
-
});
|
|
763
|
-
});
|
|
545
|
+
//#endregion
|
|
546
|
+
//#region build/work-downloader/utils/log.js
|
|
547
|
+
function k(e, t) {
|
|
548
|
+
if (t) {
|
|
549
|
+
let n = Date.now();
|
|
550
|
+
t.then((t) => {
|
|
551
|
+
let r = Date.now() - n, i = typeof e == "function" ? e(t) : e;
|
|
552
|
+
console.log(i + `(${r}ms)`);
|
|
553
|
+
}).catch(() => {});
|
|
554
|
+
} else {
|
|
555
|
+
let t = typeof e == "function" ? e(null) : e;
|
|
556
|
+
console.log(t);
|
|
557
|
+
}
|
|
764
558
|
}
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
559
|
+
//#endregion
|
|
560
|
+
//#region build/work-downloader/download.js
|
|
561
|
+
function A(e) {
|
|
562
|
+
return d(this, arguments, void 0, function* (e, r = {}) {
|
|
563
|
+
var a, o, s, l, u, d, f, p, m, h;
|
|
564
|
+
let g = e.baseURL, _ = "";
|
|
565
|
+
if (r.distPath) _ = c(process.cwd(), r.distPath);
|
|
566
|
+
else for (_ = c(process.cwd(), (a = e.workCode) == null ? `work-${Date.now()}` : a); t(_);) /.-(\d+)$/.test(_) ? _ = _.replace(/.-(\d+)$/, (e, t) => "-" + (Number(t) + 1)) : _ += "-1";
|
|
567
|
+
let v = {
|
|
568
|
+
baseURL: g,
|
|
569
|
+
distPath: _,
|
|
570
|
+
fetch: (o = r.fetch) == null ? fetch : o,
|
|
571
|
+
imageOptions: {
|
|
572
|
+
size: (l = (s = r.imageOptions) == null ? void 0 : s.size) == null ? [] : l,
|
|
573
|
+
format: (d = (u = r.imageOptions) == null ? void 0 : u.format) == null ? [] : d
|
|
574
|
+
},
|
|
575
|
+
textureOptions: {
|
|
576
|
+
size: (p = (f = r.textureOptions) == null ? void 0 : f.size) == null ? [] : p,
|
|
577
|
+
format: (h = (m = r.textureOptions) == null ? void 0 : m.format) == null ? [] : h
|
|
578
|
+
},
|
|
579
|
+
log: r.log ? k : (() => Promise.resolve()),
|
|
580
|
+
imageProcessingFilename: r.imageProcessingFilename
|
|
581
|
+
};
|
|
582
|
+
v.log(JSON.stringify(v, null, " ")), yield n(_, { recursive: !0 }), yield i(c(_, "work.json"), JSON.stringify(e.toJSON(), null, " ")), yield O(e, v), yield C(e, v);
|
|
583
|
+
});
|
|
777
584
|
}
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
var a, i, t, u, o, l, s, c, f, m, v, p, b, w, d;
|
|
781
|
-
return e === void 0 && (e = {}), L(this, function(h) {
|
|
782
|
-
switch (h.label) {
|
|
783
|
-
case 0:
|
|
784
|
-
if (a = r.baseURL, i = "", e.distPath)
|
|
785
|
-
i = M(process.cwd(), e.distPath);
|
|
786
|
-
else
|
|
787
|
-
for (i = M(process.cwd(), (l = r.workCode) !== null && l !== void 0 ? l : "work-".concat(Date.now())); J(i); )
|
|
788
|
-
/.-(\d+)$/.test(i) ? i = i.replace(/.-(\d+)$/, function(y, k) {
|
|
789
|
-
return "-" + (Number(k) + 1);
|
|
790
|
-
}) : i = i + "-1";
|
|
791
|
-
return t = {
|
|
792
|
-
baseURL: a,
|
|
793
|
-
distPath: i,
|
|
794
|
-
fetch: (s = e.fetch) !== null && s !== void 0 ? s : fetch,
|
|
795
|
-
imageOptions: {
|
|
796
|
-
size: (f = (c = e.imageOptions) === null || c === void 0 ? void 0 : c.size) !== null && f !== void 0 ? f : [],
|
|
797
|
-
format: (v = (m = e.imageOptions) === null || m === void 0 ? void 0 : m.format) !== null && v !== void 0 ? v : []
|
|
798
|
-
},
|
|
799
|
-
textureOptions: {
|
|
800
|
-
size: (b = (p = e.textureOptions) === null || p === void 0 ? void 0 : p.size) !== null && b !== void 0 ? b : [],
|
|
801
|
-
format: (d = (w = e.textureOptions) === null || w === void 0 ? void 0 : w.format) !== null && d !== void 0 ? d : []
|
|
802
|
-
},
|
|
803
|
-
log: e.log ? fe : (function() {
|
|
804
|
-
return Promise.resolve();
|
|
805
|
-
}),
|
|
806
|
-
imageProcessingFilename: e.imageProcessingFilename
|
|
807
|
-
}, t.log(JSON.stringify(t, null, " ")), [4, H(i, { recursive: !0 })];
|
|
808
|
-
case 1:
|
|
809
|
-
return h.sent(), u = "work.json", o = M(i, u), [4, X(o, JSON.stringify(r.toJSON(), null, " "))];
|
|
810
|
-
case 2:
|
|
811
|
-
return h.sent(), [4, le(r, t)];
|
|
812
|
-
case 3:
|
|
813
|
-
return h.sent(), [4, ue(r, t)];
|
|
814
|
-
case 4:
|
|
815
|
-
return h.sent(), [
|
|
816
|
-
2
|
|
817
|
-
/*return*/
|
|
818
|
-
];
|
|
819
|
-
}
|
|
820
|
-
});
|
|
821
|
-
});
|
|
822
|
-
}
|
|
823
|
-
export {
|
|
824
|
-
be as download
|
|
825
|
-
};
|
|
585
|
+
//#endregion
|
|
586
|
+
export { A as download };
|