@realsee/five-webgpu 1.0.0-alpha.12 → 1.0.0-alpha.14
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/_virtual/_rolldown/runtime.js +3 -3
- package/docs/assets/hierarchy.js +1 -1
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/index.AdaptiveLuminancePass.html +1 -1
- package/docs/classes/index.BoundingMesh.html +1 -1
- package/docs/classes/index.Camera.html +1 -1
- package/docs/classes/index.EyeDomeLightingPass.html +1 -1
- package/docs/classes/index.Five.html +41 -32
- package/docs/classes/index.FivePass.html +1 -1
- package/docs/classes/index.FiveRenderer.html +7 -2
- package/docs/classes/index.FlowingFireworks3DPass.html +1 -1
- package/docs/classes/index.FlowingLight2DPass.html +1 -1
- package/docs/classes/index.FlowingLight3DPass.html +1 -1
- package/docs/classes/index.GaussianBlurPass.html +1 -1
- package/docs/classes/index.InternalWebGPURenderer.html +4 -5
- package/docs/classes/index.Model.html +1 -1
- package/docs/classes/index.ModelScene.html +1 -1
- package/docs/classes/index.NetworkSubscribe.html +1 -1
- package/docs/classes/index.PBMCustomNode.html +1 -1
- package/docs/classes/index.PBMGaussianSplattingNodeMaterial.html +9 -9
- package/docs/classes/index.PBMGaussianSplattingObject.html +49 -11
- package/docs/classes/index.PBMGaussianSplattingRenderMesh.html +71 -16
- package/docs/classes/index.PBMGroup.html +1 -1
- package/docs/classes/index.PBMMesh.html +1 -1
- package/docs/classes/index.PBMMeshBasicMaterial.html +1 -1
- package/docs/classes/index.PBMMeshBasicNodeMaterial.html +1 -1
- package/docs/classes/index.PBMMeshPanoOnlyMaterial.html +1 -1
- package/docs/classes/index.PBMMeshPanoOnlyNodeMaterial.html +1 -1
- package/docs/classes/index.PBMMeshPhongMaterial.html +1 -1
- package/docs/classes/index.PBMMeshPhongNodeMaterial.html +1 -1
- package/docs/classes/index.PBMMeshPhysicalMaterial.html +1 -1
- package/docs/classes/index.PBMMeshPhysicalNodeMaterial.html +1 -1
- package/docs/classes/index.PBMPanoFilter.html +1 -1
- package/docs/classes/index.PBMPointCloud.html +1 -1
- package/docs/classes/index.PBMPointCloudMaterial.html +1 -1
- package/docs/classes/index.PBMSkinnedMesh.html +1 -1
- package/docs/classes/index.PBMUpdateable.html +1 -1
- package/docs/classes/index.PanoCircleMesh.html +1 -1
- package/docs/classes/index.PanoCircleMeshCustom.html +1 -1
- package/docs/classes/index.PanoCircleMeshSolid.html +1 -1
- package/docs/classes/index.Parameter.html +24 -22
- package/docs/classes/index.Scene.html +1 -1
- package/docs/classes/index.Subscribe.html +1 -1
- package/docs/classes/index.Tile3D.html +22 -22
- package/docs/classes/index.TileNode.html +2 -2
- package/docs/classes/index.TrajectoryNode.html +1 -1
- package/docs/classes/index.Work.html +15 -22
- package/docs/classes/index.WorkResolvedObserver.html +22 -22
- package/docs/functions/index.createWorks.html +1 -1
- package/docs/functions/index.parseWork.html +1 -1
- package/docs/hierarchy.html +1 -1
- package/docs/interfaces/index.AddableObject.html +1 -1
- package/docs/interfaces/index.AjaxOptions.html +1 -1
- package/docs/interfaces/index.BaseEvent.html +1 -1
- package/docs/interfaces/index.Clock.html +1 -1
- package/docs/interfaces/index.DeviceProfile.html +2 -2
- package/docs/interfaces/index.EventCallback.html +3 -3
- package/docs/interfaces/index.GestureEvent.html +1 -1
- package/docs/interfaces/index.IPBMMaterial.html +1 -1
- package/docs/interfaces/index.ImageOptions.html +1 -1
- package/docs/interfaces/index.IntersectEvent.html +1 -1
- package/docs/interfaces/index.IntersectMesh.html +1 -1
- package/docs/interfaces/index.IntersectMeshInterface.html +1 -1
- package/docs/interfaces/index.Intersection.html +1 -1
- package/docs/interfaces/index.LooseWorkWithExtrinsics.html +8 -8
- package/docs/interfaces/index.ModeChangeEvent.html +1 -1
- package/docs/interfaces/index.ModelControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/index.ModelEvent.html +1 -1
- package/docs/interfaces/index.ModelSceneEvent.html +1 -1
- package/docs/interfaces/index.ModelTileEvent.html +1 -1
- package/docs/interfaces/index.MovePanoOptions.html +1 -1
- package/docs/interfaces/index.NetworkAbortError.html +1 -1
- package/docs/interfaces/index.NetworkFirbiddenError.html +1 -1
- package/docs/interfaces/index.NetworkOptions.html +1 -1
- package/docs/interfaces/index.NetworkProxyError.html +1 -1
- package/docs/interfaces/index.NetworkResourceEvent.html +1 -1
- package/docs/interfaces/index.NetworkResponseError.html +1 -1
- package/docs/interfaces/index.NetworkTimeoutError.html +1 -1
- package/docs/interfaces/index.ObjectEvent.html +1 -1
- package/docs/interfaces/index.PBMGaussianSplattingNodeMaterialOptions.html +3 -3
- package/docs/interfaces/index.PanoCircleMeshInterface.html +1 -1
- package/docs/interfaces/index.PanoEvent.html +1 -1
- package/docs/interfaces/index.PanoPrepareEvent.html +1 -1
- package/docs/interfaces/index.PanoTextureEvent.html +1 -1
- package/docs/interfaces/index.PanoramaControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/index.PanoramaLikeControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/index.ParameterMaterialValue.html +8 -6
- package/docs/interfaces/index.ParameterTilesetValue.html +15 -15
- package/docs/interfaces/index.ParameterValue.html +21 -19
- package/docs/interfaces/index.Pose.html +1 -1
- package/docs/interfaces/index.RenderEvent.html +1 -1
- package/docs/interfaces/index.ResolvedParameterValue.html +22 -20
- package/docs/interfaces/index.SplatData.html +10 -6
- package/docs/interfaces/index.State.html +1 -1
- package/docs/interfaces/index.StateEvent.html +1 -1
- package/docs/interfaces/index.TextureOptions.html +1 -1
- package/docs/interfaces/index.Tile3DOptions.html +2 -2
- package/docs/interfaces/index.TopviewControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/index.VRPanoramaControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/index.ViewLayer.html +22 -22
- package/docs/interfaces/index.WorkCubeHdrGainmapImage.html +2 -2
- package/docs/interfaces/index.WorkCubeImage.html +2 -2
- package/docs/interfaces/index.WorkImage.html +5 -5
- package/docs/interfaces/index.WorkInitial.html +8 -8
- package/docs/interfaces/index.WorkInitialJson.html +2 -2
- package/docs/interfaces/index.WorkJson.html +2 -4
- package/docs/interfaces/index.WorkModel.html +8 -8
- package/docs/interfaces/index.WorkModelJson.html +2 -2
- package/docs/interfaces/index.WorkModelLayer.html +6 -6
- package/docs/interfaces/index.WorkModelLayerJson.html +2 -2
- package/docs/interfaces/index.WorkObserver.html +23 -23
- package/docs/interfaces/index.WorkObserverJson.html +2 -2
- package/docs/interfaces/index.WorkPanoramaJson.html +2 -2
- package/docs/interfaces/index.WorkPanoramasJson.html +2 -2
- package/docs/interfaces/index.WorkTile.html +5 -5
- package/docs/interfaces/index.WorkVideo.html +4 -4
- package/docs/interfaces/index.WorksEvent.html +1 -1
- package/docs/interfaces/index.XRControllerEvent.html +1 -1
- package/docs/interfaces/index.XRGestureEvent.html +2 -2
- package/docs/interfaces/index.XRPanoramaControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/index.XRSessionEvent.html +1 -1
- package/docs/modules/index.html +1 -1
- package/docs/types/index.LegacyEventType.html +3 -3
- package/docs/types/index.OutputTextureDataType.html +1 -1
- package/docs/types/index.ParseOptions.html +8 -8
- package/docs/types/index.PointCloudTransparencyMode.html +2 -0
- package/docs/types/index.Works.html +1 -1
- package/docs/variables/index.loadAt3d.html +2 -0
- package/docs/variables/index.loadDome.html +2 -0
- package/docs/variables/index.loadDomez.html +2 -0
- package/docs/variables/index.loadGltf.html +2 -0
- package/docs/variables/index.loadPbm.html +2 -0
- package/docs/variables/index.loadPly.html +2 -0
- package/five/application/five.d.ts +13 -0
- package/five/chunks/at3d.js +338 -0
- package/five/chunks/at3d.mjs +338 -0
- package/five/chunks/dome.js +338 -0
- package/five/chunks/dome.mjs +338 -0
- package/five/chunks/domez.js +338 -0
- package/five/chunks/domez.mjs +338 -0
- package/five/chunks/fbx.js +338 -0
- package/five/chunks/fbx.mjs +338 -0
- package/five/chunks/fflate.js +338 -0
- package/five/chunks/fflate.mjs +338 -0
- package/five/chunks/glTF-helpers.js +804 -0
- package/five/chunks/glTF-helpers.mjs +804 -0
- package/five/chunks/gltf.js +338 -0
- package/five/chunks/gltf.mjs +338 -0
- package/five/chunks/imageBitmap.js +338 -0
- package/five/chunks/imageBitmap.mjs +338 -0
- package/five/chunks/imageSupport.js +338 -0
- package/five/chunks/imageSupport.mjs +338 -0
- package/five/chunks/lzma.js +383 -0
- package/five/chunks/lzma.mjs +383 -0
- package/five/chunks/memoryUsage.js +339 -0
- package/five/chunks/memoryUsage.mjs +339 -0
- package/five/chunks/minimal.js +338 -0
- package/five/chunks/minimal.mjs +338 -0
- package/five/chunks/pbm.js +338 -0
- package/five/chunks/pbm.mjs +338 -0
- package/five/chunks/pbmGaussianSplattingObject.js +338 -0
- package/five/chunks/pbmGaussianSplattingObject.mjs +338 -0
- package/five/chunks/pbmMeshMaterial.js +338 -0
- package/five/chunks/pbmMeshMaterial.mjs +338 -0
- package/five/chunks/pick.js +338 -0
- package/five/chunks/pick.mjs +338 -0
- package/five/chunks/ply.js +339 -0
- package/five/chunks/ply.mjs +339 -0
- package/five/chunks/spz.js +364 -0
- package/five/chunks/spz.mjs +364 -0
- package/five/controllers/xrPanorama.d.ts +13 -0
- package/five/core/internalWebGPURenderer.d.ts +0 -3
- package/five/core/panoVideo.d.ts +2 -0
- package/five/core/webglBlendEquationFix.d.ts +41 -0
- package/five/gaussian-splatting/arena/splatArena.d.ts +227 -0
- package/five/gaussian-splatting/cullConstants.d.ts +68 -0
- package/five/gaussian-splatting/hybridConstants.d.ts +60 -0
- package/five/gaussian-splatting/instancePacking.d.ts +46 -0
- package/five/gaussian-splatting/mirrors/layoutMirror.d.ts +44 -0
- package/five/gaussian-splatting/mirrors/mirrorBuffer.d.ts +72 -0
- package/five/gaussian-splatting/mirrors/mirrorSet.d.ts +17 -0
- package/five/gaussian-splatting/mirrors/objectParamsMirror.d.ts +35 -0
- package/five/gaussian-splatting/mirrors/transformMirror.d.ts +26 -0
- package/five/gaussian-splatting/pipelines/gpuSortPipeline.d.ts +5 -31
- package/five/gaussian-splatting/pipelines/pipelineMode.d.ts +1 -2
- package/five/gaussian-splatting/sh-core/codec.d.ts +13 -0
- package/five/gaussian-splatting/sh-core/constants.d.ts +29 -0
- package/five/gaussian-splatting/sh-core/index.d.ts +4 -0
- package/five/gaussian-splatting/sh-core/rebakePolicy.d.ts +20 -0
- package/five/gaussian-splatting/sh-core/texelRange.d.ts +18 -0
- package/five/gaussian-splatting/shAssembler.d.ts +14 -0
- package/five/gaussian-splatting/shBakeScheduler.d.ts +26 -0
- package/five/gaussian-splatting/shBaker.d.ts +44 -0
- package/five/gaussian-splatting/shTileResource.d.ts +22 -0
- package/five/gaussian-splatting/splatAssembler.d.ts +1 -1
- package/five/gaussian-splatting/transformStore.d.ts +2 -2
- package/five/gaussian-splatting/worker/decodeWorker.d.ts +72 -0
- package/five/index.d.ts +0 -1
- package/five/index.js +138 -640
- package/five/index.mjs +229 -29261
- package/five/model/index.d.ts +18 -6
- package/five/model/loaders/glTF-helpers/extensions/KHR_gaussian_splatting_compression_spz.d.ts +1 -1
- package/five/model/loaders/glTF-helpers/extensions/KHR_gaussian_splatting_compression_spz_2.d.ts +1 -1
- package/five/model/loaders/ply.d.ts +22 -6
- package/five/model/loaders/spz.d.ts +9 -49
- package/five/model/loaders/spz.worker.d.ts +37 -0
- package/five/model/materials/pbmGaussianSplattingNodeMaterial.d.ts +6 -12
- package/five/model/objects/pbmGaussianSplattingObject.d.ts +91 -6
- package/five/model/objects/pbmGaussianSplattingRenderMesh.d.ts +357 -15
- package/five/model/parameter.d.ts +4 -0
- package/five/renderer/compute-renderers/binned/binned-core.d.ts +45 -2
- package/five/renderer/compute-renderers/binned/binned-pipelines.d.ts +82 -1
- package/five/renderer/compute-renderers/color-space.d.ts +13 -0
- package/five/renderer/compute-renderers/composite-pipelines.d.ts +36 -0
- package/five/renderer/compute-renderers/frame-plan.d.ts +166 -0
- package/five/renderer/compute-renderers/gsplat-hybrid-renderer.d.ts +386 -0
- package/five/renderer/compute-renderers/pointcloud-compute-renderer.d.ts +101 -16
- package/five/renderer/compute-renderers/shaders/composite-blend.d.ts +2 -0
- package/five/renderer/compute-renderers/shaders/gsplatHybridIndirect.d.ts +2 -0
- package/five/renderer/compute-renderers/shaders/gsplatProjector.d.ts +2 -0
- package/five/renderer/compute-renderers/shaders/gsplatQuad.d.ts +2 -0
- package/five/renderer/compute-renderers/shaders/lib/write-additive.d.ts +2 -0
- package/five/renderer/compute-renderers/shaders/lib/write-blend.d.ts +2 -0
- package/five/renderer/compute-renderers/shaders/lib/write-opaque.d.ts +2 -0
- package/five/renderer/compute-renderers/tile-uniform-writer.d.ts +70 -0
- package/five/renderer/compute-renderers/transparency-buffers.d.ts +59 -0
- package/five/renderer/compute-renderers/transparency-math.d.ts +70 -0
- package/five/renderer/compute-renderers/transparency-settings.d.ts +24 -0
- package/five/renderer/compute-renderers/uniform-layout.d.ts +11 -2
- package/five/renderer/five-renderer.d.ts +28 -3
- package/five/renderer/index.d.ts +1 -1
- package/five/renderer/postprocessing/passes/pass.js +3 -3
- package/five/renderer/postprocessing/passes/pass.mjs +3 -3
- package/five/renderer/tools/full-screen-quad.js +3 -3
- package/five/renderer/tools/full-screen-quad.mjs +3 -3
- package/five/texture/videoTextureBridge.d.ts +152 -0
- package/five/thirdparty/sha256.d.ts +149 -0
- package/five/utils/calculateThreeMouse.js +3 -3
- package/five/utils/calculateThreeMouse.mjs +3 -3
- package/five/utils/distance.js +3 -3
- package/five/utils/distance.mjs +3 -3
- package/five/utils/isNil.js +3 -3
- package/five/utils/isNil.mjs +3 -3
- package/five/utils/memoryUsage.d.ts +1 -1
- package/five/utils/uuid.js +3 -3
- package/five/utils/uuid.mjs +3 -3
- package/five/work/work.d.ts +0 -7
- package/five/work/workJsonType.d.ts +0 -2
- package/gltf-loader/index.js +3 -3
- package/gltf-loader/index.mjs +3 -50
- package/line/index.js +3 -3
- package/line/index.mjs +3 -88
- package/package.json +1 -1
- package/plugins/BackgroundPlugin/Controller.js +4 -4
- package/plugins/BackgroundPlugin/Controller.mjs +4 -4
- package/plugins/BackgroundPlugin/index.js +3 -3
- package/plugins/BackgroundPlugin/index.mjs +3 -3
- package/plugins/BasePlugin/index.js +3 -3
- package/plugins/BasePlugin/index.mjs +3 -3
- package/plugins/CSS2DPlugin/Controller.js +3 -3
- package/plugins/CSS2DPlugin/Controller.mjs +3 -3
- package/plugins/CSS2DPlugin/index.js +3 -3
- package/plugins/CSS2DPlugin/index.mjs +3 -3
- package/plugins/CSS2DPlugin/style.css_raw.js +4 -4
- package/plugins/CSS2DPlugin/style.css_raw.mjs +4 -4
- package/plugins/CSS3DPlugin/Controller.js +3 -3
- package/plugins/CSS3DPlugin/Controller.mjs +3 -3
- package/plugins/CSS3DPlugin/index.js +3 -3
- package/plugins/CSS3DPlugin/index.mjs +3 -3
- package/plugins/CSS3DPlugin/style.css_raw.js +4 -4
- package/plugins/CSS3DPlugin/style.css_raw.mjs +4 -4
- package/plugins/FloorplanPlugin/Controller.js +3 -3
- package/plugins/FloorplanPlugin/Controller.mjs +3 -3
- package/plugins/FloorplanPlugin/index.js +3 -3
- package/plugins/FloorplanPlugin/index.mjs +3 -3
- package/plugins/FloorplanPlugin/render/assets.js +3 -3
- package/plugins/FloorplanPlugin/render/assets.mjs +3 -3
- package/plugins/FloorplanPlugin/render/index.js +3 -3
- package/plugins/FloorplanPlugin/render/index.mjs +3 -3
- package/plugins/FloorplanPlugin/render/isPointInPolygon.js +3 -3
- package/plugins/FloorplanPlugin/render/isPointInPolygon.mjs +3 -3
- package/plugins/FloorplanPlugin/render/renderFloor.js +3 -3
- package/plugins/FloorplanPlugin/render/renderFloor.mjs +3 -3
- package/plugins/FloorplanPlugin/render/roomLabelVisibility.js +3 -3
- package/plugins/FloorplanPlugin/render/roomLabelVisibility.mjs +3 -3
- package/plugins/FloorplanPlugin/render/style.css_raw.js +4 -4
- package/plugins/FloorplanPlugin/render/style.css_raw.mjs +4 -4
- package/plugins/FloorplanPlugin/utils/changeMode.js +3 -3
- package/plugins/FloorplanPlugin/utils/changeMode.mjs +3 -3
- package/plugins/FloorplanPlugin/utils/changeModelCanvasOpacity.js +3 -3
- package/plugins/FloorplanPlugin/utils/changeModelCanvasOpacity.mjs +3 -3
- package/plugins/FloorplanPlugin/utils/correctFiveState.js +3 -3
- package/plugins/FloorplanPlugin/utils/correctFiveState.mjs +3 -3
- package/plugins/FloorplanPlugin/utils/equal.js +3 -3
- package/plugins/FloorplanPlugin/utils/equal.mjs +3 -3
- package/plugins/FloorplanPlugin/utils/filter.js +3 -3
- package/plugins/FloorplanPlugin/utils/filter.mjs +3 -3
- package/plugins/FloorplanPlugin/utils/fiveModelLoad.js +3 -3
- package/plugins/FloorplanPlugin/utils/fiveModelLoad.mjs +3 -3
- package/plugins/FloorplanPlugin/utils/formatData.js +3 -3
- package/plugins/FloorplanPlugin/utils/formatData.mjs +3 -3
- package/plugins/FloorplanPlugin/utils/formatFloorplanJson.js +3 -3
- package/plugins/FloorplanPlugin/utils/formatFloorplanJson.mjs +3 -3
- package/plugins/FloorplanPlugin/utils/formatPosition.js +3 -3
- package/plugins/FloorplanPlugin/utils/formatPosition.mjs +3 -3
- package/plugins/FloorplanPlugin/utils/getDistanceFromModel.js +3 -3
- package/plugins/FloorplanPlugin/utils/getDistanceFromModel.mjs +3 -3
- package/plugins/FloorplanPlugin/utils/getPxmm.js +3 -3
- package/plugins/FloorplanPlugin/utils/getPxmm.mjs +3 -3
- package/plugins/FloorplanPlugin/utils/isTruelyObject.js +3 -3
- package/plugins/FloorplanPlugin/utils/isTruelyObject.mjs +3 -3
- package/plugins/FloorplanPlugin/utils/nearlyEqual.js +3 -3
- package/plugins/FloorplanPlugin/utils/nearlyEqual.mjs +3 -3
- package/plugins/FloorplanPlugin/utils/polylabel.js +3 -3
- package/plugins/FloorplanPlugin/utils/polylabel.mjs +3 -3
- package/plugins/FloorplanPlugin/utils/to.js +3 -3
- package/plugins/FloorplanPlugin/utils/to.mjs +3 -3
- package/plugins/GaussianSplattingEntranceAnimationPlugin/Controller.d.ts +6 -0
- package/plugins/GaussianSplattingEntranceAnimationPlugin/Controller.js +3 -3
- package/plugins/GaussianSplattingEntranceAnimationPlugin/Controller.mjs +3 -3
- package/plugins/GaussianSplattingEntranceAnimationPlugin/index.js +3 -3
- package/plugins/GaussianSplattingEntranceAnimationPlugin/index.mjs +3 -3
- package/plugins/Object3DHelperPlugin/Controller.js +3 -3
- package/plugins/Object3DHelperPlugin/Controller.mjs +3 -3
- package/plugins/Object3DHelperPlugin/Controllers/BaseController.js +3 -3
- package/plugins/Object3DHelperPlugin/Controllers/BaseController.mjs +3 -3
- package/plugins/Object3DHelperPlugin/Controllers/BoundingBoxController.js +3 -3
- package/plugins/Object3DHelperPlugin/Controllers/BoundingBoxController.mjs +3 -3
- package/plugins/Object3DHelperPlugin/Controllers/MoveController.js +3 -3
- package/plugins/Object3DHelperPlugin/Controllers/MoveController.mjs +3 -3
- package/plugins/Object3DHelperPlugin/Controllers/RotateController.js +3 -3
- package/plugins/Object3DHelperPlugin/Controllers/RotateController.mjs +3 -3
- package/plugins/Object3DHelperPlugin/FiveControllerWrapper.js +3 -3
- package/plugins/Object3DHelperPlugin/FiveControllerWrapper.mjs +3 -3
- package/plugins/Object3DHelperPlugin/Helper/BaseHelper.js +3 -3
- package/plugins/Object3DHelperPlugin/Helper/BaseHelper.mjs +3 -3
- package/plugins/Object3DHelperPlugin/Helper/BoundingBoxHelper.js +3 -3
- package/plugins/Object3DHelperPlugin/Helper/BoundingBoxHelper.mjs +3 -3
- package/plugins/Object3DHelperPlugin/Helper/MoveHelper.js +3 -3
- package/plugins/Object3DHelperPlugin/Helper/MoveHelper.mjs +3 -3
- package/plugins/Object3DHelperPlugin/Helper/RotateHelper.js +3 -3
- package/plugins/Object3DHelperPlugin/Helper/RotateHelper.mjs +3 -3
- package/plugins/Object3DHelperPlugin/constant.js +3 -3
- package/plugins/Object3DHelperPlugin/constant.mjs +3 -3
- package/plugins/Object3DHelperPlugin/index.js +3 -3
- package/plugins/Object3DHelperPlugin/index.mjs +3 -3
- package/plugins/Object3DHelperPlugin/utils/ArrowGroup.js +3 -3
- package/plugins/Object3DHelperPlugin/utils/ArrowGroup.mjs +3 -3
- package/plugins/Object3DHelperPlugin/utils/CenterHandle.js +3 -3
- package/plugins/Object3DHelperPlugin/utils/CenterHandle.mjs +3 -3
- package/plugins/Object3DHelperPlugin/utils/PlaneHandle.js +3 -3
- package/plugins/Object3DHelperPlugin/utils/PlaneHandle.mjs +3 -3
- package/plugins/Object3DHelperPlugin/utils/calculateScaleByCamera.js +3 -3
- package/plugins/Object3DHelperPlugin/utils/calculateScaleByCamera.mjs +3 -3
- package/plugins/Object3DHelperPlugin/utils/cameraHooks.js +3 -3
- package/plugins/Object3DHelperPlugin/utils/cameraHooks.mjs +3 -3
- package/plugins/Object3DHelperPlugin/utils/direction.js +3 -3
- package/plugins/Object3DHelperPlugin/utils/direction.mjs +3 -3
- package/plugins/Object3DHelperPlugin/utils/getMouseRaycaster.js +3 -3
- package/plugins/Object3DHelperPlugin/utils/getMouseRaycaster.mjs +3 -3
- package/plugins/Object3DHelperPlugin/utils/getOrthographicCameraDirection.js +3 -3
- package/plugins/Object3DHelperPlugin/utils/getOrthographicCameraDirection.mjs +3 -3
- package/plugins/Object3DHelperPlugin/utils/setObjectQuaternion.js +3 -3
- package/plugins/Object3DHelperPlugin/utils/setObjectQuaternion.mjs +3 -3
- package/plugins/Object3DHelperPlugin/utils/solidGuide.js +3 -3
- package/plugins/Object3DHelperPlugin/utils/solidGuide.mjs +3 -3
- package/plugins/Object3DHelperPlugin/utils/tipsDom.js +3 -3
- package/plugins/Object3DHelperPlugin/utils/tipsDom.mjs +3 -3
- package/plugins/PanoAnimePlugin/Controller.js +3 -3
- package/plugins/PanoAnimePlugin/Controller.mjs +3 -3
- package/plugins/PanoAnimePlugin/index.js +3 -3
- package/plugins/PanoAnimePlugin/index.mjs +3 -3
- package/plugins/WordPassPlugin/Controller.js +3 -3
- package/plugins/WordPassPlugin/Controller.mjs +3 -3
- package/plugins/WordPassPlugin/hersheyFont.js +3 -3
- package/plugins/WordPassPlugin/hersheyFont.mjs +3 -3
- package/plugins/WordPassPlugin/index.js +3 -3
- package/plugins/WordPassPlugin/index.mjs +3 -3
- package/plugins/WordPassPlugin/textToStrokeOrderStrokes.js +4 -4
- package/plugins/WordPassPlugin/textToStrokeOrderStrokes.mjs +4 -4
- package/plugins/WordPassPlugin/word-pass.js +3 -3
- package/plugins/WordPassPlugin/word-pass.mjs +3 -3
- package/plugins/index.js +3 -3
- package/plugins/index.mjs +3 -3
- package/plugins/thirdParty/CSS2DRenderer.js +3 -3
- package/plugins/thirdParty/CSS2DRenderer.mjs +3 -3
- package/plugins/thirdParty/CSS3DRenderer.js +3 -3
- package/plugins/thirdParty/CSS3DRenderer.mjs +3 -3
- package/plugins/thirdParty/doctorstrange-model.js +75 -75
- package/plugins/thirdParty/doctorstrange-model.mjs +75 -75
- package/plugins/thirdParty/domevents.js +3 -3
- package/plugins/thirdParty/domevents.mjs +3 -3
- package/plugins/utils/absoluteUrl.js +3 -3
- package/plugins/utils/absoluteUrl.mjs +3 -3
- package/plugins/utils/calculatePath.js +3 -3
- package/plugins/utils/calculatePath.mjs +3 -3
- package/plugins/utils/clamp.js +3 -3
- package/plugins/utils/clamp.mjs +3 -3
- package/plugins/utils/uuid.js +3 -3
- package/plugins/utils/uuid.mjs +3 -3
- package/react/hooks/useFiveModelReadyState.d.ts +1 -1
- package/react/index.js +3 -3
- package/react/index.mjs +3 -644
- package/sticker/index.d.ts +7 -0
- package/sticker/index.js +46 -3
- package/sticker/index.mjs +43 -103
- package/umd/five-gltf-loader.js +3 -3
- package/umd/five-line.js +3 -3
- package/umd/five-plugins.js +3 -3
- package/umd/five-react.js +2 -2
- package/umd/five-sticker.js +46 -3
- package/umd/five-vfx.js +2 -2
- package/umd/five.js +216 -179
- package/vfx/index.js +3 -3
- package/vfx/index.mjs +3 -486
- package/work-downloader/index.js +3 -3
- package/work-downloader/index.mjs +3 -315
- package/docs/functions/index.loadAt3d.html +0 -1
- package/docs/functions/index.loadDome.html +0 -1
- package/docs/functions/index.loadDomez.html +0 -1
- package/docs/functions/index.loadGltf.html +0 -1
- package/docs/functions/index.loadPbm.html +0 -1
- package/docs/functions/index.loadPly.html +0 -1
- package/five/certificates/hardware.d.ts +0 -1
- package/five/gaussian-splatting/shStore.d.ts +0 -22
- package/five/thirdparty/jsrsasign.d.ts +0 -753
- package/five/work/keychain.d.ts +0 -5
- package/five/work/verify.d.ts +0 -7
- package/five/work/workVerify.d.ts +0 -2
- /package/five/{work/_ALLOW_HOST.d.ts → renderer/compute-renderers/shaders/composite-additive.d.ts} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* @realsee/five-webgpu
|
|
4
|
-
* Generated: 2026/
|
|
5
|
-
* Version: 1.0.0-alpha.
|
|
4
|
+
* Generated: 2026/11/3
|
|
5
|
+
* Version: 1.0.0-alpha.14
|
|
6
6
|
* License:
|
|
7
7
|
* Realsee SDK License Agreement
|
|
8
8
|
|
|
@@ -335,316 +335,4 @@
|
|
|
335
335
|
* writing and signed by Realsee. You and Realsee hereto confirm that this
|
|
336
336
|
* Agreement and all related documents shall be drafted in English.
|
|
337
337
|
|
|
338
|
-
*/import { __awaiter as e } from "tslib";
|
|
339
|
-
import { createWriteStream as t, existsSync as n } from "node:fs";
|
|
340
|
-
import { mkdir as r, readFile as i, writeFile as a } from "node:fs/promises";
|
|
341
|
-
import { dirname as o, extname as s, join as c, resolve as l } from "node:path";
|
|
342
|
-
import { Readable as u } from "node:stream";
|
|
343
|
-
import d from "sharp";
|
|
344
|
-
//#region build/work-downloader/utils/relative-url.js
|
|
345
|
-
function f(e, t) {
|
|
346
|
-
if (t && t[t.length - 1] !== "/" && (t += "/"), e.length > t.length && e.startsWith(t)) return e.slice(t.length);
|
|
347
|
-
throw Error(`${e} is not starting with ${t}`);
|
|
348
|
-
}
|
|
349
|
-
//#endregion
|
|
350
|
-
//#region build/work-downloader/utils/join-url.js
|
|
351
|
-
function p(...e) {
|
|
352
|
-
let t = [];
|
|
353
|
-
e = e.map((e) => (e == null ? "" : e).trim()).filter((e) => e.length > 0 && !/^\/+$/.test(e));
|
|
354
|
-
for (let n = 0; n < e.length; n++) {
|
|
355
|
-
let r = n === 0, i = n === e.length - 1, a = e[n];
|
|
356
|
-
r || (a = a.replace(/^\.\//, "").replace(/^\/+/, "")), i || (a = a.replace(/\/+$/, "")), t.push(a);
|
|
357
|
-
}
|
|
358
|
-
return t.join("/");
|
|
359
|
-
}
|
|
360
|
-
//#endregion
|
|
361
|
-
//#region build/work-downloader/utils/download-to-file.js
|
|
362
|
-
var m = 1024 * 1024 * 5;
|
|
363
|
-
function h(i, s, c) {
|
|
364
|
-
return e(this, void 0, void 0, function* () {
|
|
365
|
-
var e;
|
|
366
|
-
if (n(s)) return s;
|
|
367
|
-
let l = yield c(i);
|
|
368
|
-
if (l.ok && l.body) {
|
|
369
|
-
if (yield r(o(s), { recursive: !0 }), Number((e = l.headers.get("content-length")) == null ? "Infinity" : e) > m) return new Promise((e, n) => {
|
|
370
|
-
let r = u.fromWeb(l.body), i = t(s);
|
|
371
|
-
r.pipe(i), r.on("error", n), i.on("finish", () => e(s));
|
|
372
|
-
});
|
|
373
|
-
{
|
|
374
|
-
let e = yield l.arrayBuffer();
|
|
375
|
-
return yield a(s, Buffer.from(e)), s;
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
throw Error(`url: ${i}(${l.statusText})`);
|
|
379
|
-
});
|
|
380
|
-
}
|
|
381
|
-
//#endregion
|
|
382
|
-
//#region build/work-downloader/utils/image-processing.js
|
|
383
|
-
var g = ["jpg", "png"], _ = 95;
|
|
384
|
-
function v(e, t) {
|
|
385
|
-
let n = s(e).slice(1) || "jpg", { cut: r, size: i, format: a = n } = t, o = "";
|
|
386
|
-
if (t.toFilename) o = t.toFilename(e, {
|
|
387
|
-
cut: t.cut,
|
|
388
|
-
size: t.size,
|
|
389
|
-
format: t.format
|
|
390
|
-
});
|
|
391
|
-
else {
|
|
392
|
-
let t = "", s = "", c = a;
|
|
393
|
-
r && (t = r.join("x")), i && (s = `${i}x`), c === n && !s && !t && (c = ""), o = [
|
|
394
|
-
e,
|
|
395
|
-
t,
|
|
396
|
-
s,
|
|
397
|
-
c
|
|
398
|
-
].filter((e) => e.length > 0).join(".");
|
|
399
|
-
}
|
|
400
|
-
return o;
|
|
401
|
-
}
|
|
402
|
-
function y(t, r) {
|
|
403
|
-
return e(this, void 0, void 0, function* () {
|
|
404
|
-
let e = s(t).slice(1) || "jpg", { cut: i, size: a, format: o = e } = r, c = t;
|
|
405
|
-
if ((i || a) && o !== e && g.includes(o)) {
|
|
406
|
-
let e = v(t, {
|
|
407
|
-
format: o,
|
|
408
|
-
toFilename: r.toFilename
|
|
409
|
-
});
|
|
410
|
-
e !== c && n(e) && (c = e);
|
|
411
|
-
}
|
|
412
|
-
let l = d(c);
|
|
413
|
-
i && (l = l.extract({
|
|
414
|
-
left: i[0],
|
|
415
|
-
top: i[1],
|
|
416
|
-
width: i[2],
|
|
417
|
-
height: i[3]
|
|
418
|
-
})), a && (l = l.resize(a)), l = l.toFormat(o, { quality: _ });
|
|
419
|
-
let u = v(t, r);
|
|
420
|
-
return u !== t && !n(u) ? l.toFile(u).then(() => u) : u;
|
|
421
|
-
});
|
|
422
|
-
}
|
|
423
|
-
//#endregion
|
|
424
|
-
//#region build/work-downloader/components/model-3d-tile.js
|
|
425
|
-
function b(e) {
|
|
426
|
-
let t = [];
|
|
427
|
-
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) {
|
|
428
|
-
let e = b(n);
|
|
429
|
-
if (e.length > 0) for (let n = 0; n < e.length; n++) t.push(e[n]);
|
|
430
|
-
}
|
|
431
|
-
return t;
|
|
432
|
-
}
|
|
433
|
-
function x(t, n, r) {
|
|
434
|
-
return e(this, void 0, void 0, function* () {
|
|
435
|
-
let e = new URL(t, n).href, i = h(e, c(r.distPath, f(e, r.baseURL)), r.fetch);
|
|
436
|
-
r.log((t) => `download: ${e} -> ${t}`, i), yield i, /\.json$/.test(t) && (yield S(e, r));
|
|
437
|
-
});
|
|
438
|
-
}
|
|
439
|
-
function S(t, n) {
|
|
440
|
-
return e(this, void 0, void 0, function* () {
|
|
441
|
-
let e = c(n.distPath, f(t, n.baseURL)), r = h(t, e, n.fetch);
|
|
442
|
-
n.log((e) => `download: ${t} -> ${e}`, r), yield r;
|
|
443
|
-
let a = JSON.parse(yield i(e, "utf8"));
|
|
444
|
-
if (a.asset.overview) {
|
|
445
|
-
let e = new URL(a.asset.overview.imageFile, t).href, r = h(e, c(n.distPath, f(e, n.baseURL)), n.fetch);
|
|
446
|
-
n.log((t) => `download: ${e} -> ${t}`, r), yield r;
|
|
447
|
-
}
|
|
448
|
-
if (a.asset.trajectories) for (let e of a.asset.trajectories.list) {
|
|
449
|
-
let r = new URL(e.file, t).href, i = h(r, c(n.distPath, f(r, n.baseURL)), n.fetch);
|
|
450
|
-
n.log((e) => `download: ${r} -> ${e}`, i), yield i;
|
|
451
|
-
}
|
|
452
|
-
let o = b(a.root);
|
|
453
|
-
for (let e = 0; e < o.length; e += 6) {
|
|
454
|
-
let r = [];
|
|
455
|
-
for (let i = 0; i < 6; i++) {
|
|
456
|
-
let a = o[e + i];
|
|
457
|
-
if (a) {
|
|
458
|
-
let e = x(a, t, n);
|
|
459
|
-
r.push(e);
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
yield Promise.all(r);
|
|
463
|
-
}
|
|
464
|
-
});
|
|
465
|
-
}
|
|
466
|
-
//#endregion
|
|
467
|
-
//#region build/work-downloader/components/model.js
|
|
468
|
-
function C(t, n) {
|
|
469
|
-
return e(this, void 0, void 0, function* () {
|
|
470
|
-
if (n.log("process model"), t.model) {
|
|
471
|
-
let { textures: e, layers: r, file: i, textureBase: a } = t.model;
|
|
472
|
-
if (i) {
|
|
473
|
-
n.log("process model file");
|
|
474
|
-
let r = t.getURL(i), o = h(r, c(n.distPath, f(r, n.baseURL)), n.fetch);
|
|
475
|
-
if (n.log((e) => `download: ${i} -> ${e}`, o), yield o, e) for (let r of e) {
|
|
476
|
-
let e = p(t.getURL(a == null ? "" : a), r), i = c(n.distPath, f(e, n.baseURL)), o = h(e, i, n.fetch);
|
|
477
|
-
n.log((t) => `download: ${e} -> ${t}`, o), yield o;
|
|
478
|
-
let s = n.imageOptions.format;
|
|
479
|
-
s.length === 0 && s.push(void 0);
|
|
480
|
-
let l = n.imageOptions.size;
|
|
481
|
-
l.length === 0 && l.push(void 0);
|
|
482
|
-
let u = [];
|
|
483
|
-
for (let e of s) for (let t of l) {
|
|
484
|
-
let r = y(i, {
|
|
485
|
-
format: e,
|
|
486
|
-
size: t,
|
|
487
|
-
toFilename: n.imageProcessingFilename
|
|
488
|
-
});
|
|
489
|
-
n.log((e) => `imageProcessing: ${i} -> ${e}`, r), u.push(r);
|
|
490
|
-
}
|
|
491
|
-
yield Promise.all(u);
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
if (r) for (let e of r) {
|
|
495
|
-
let { tileset: r } = e;
|
|
496
|
-
n.log("process model layer"), yield S(t.getURL(r), n);
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
});
|
|
500
|
-
}
|
|
501
|
-
//#endregion
|
|
502
|
-
//#region build/work-downloader/components/observer.js
|
|
503
|
-
var w = [
|
|
504
|
-
"front",
|
|
505
|
-
"back",
|
|
506
|
-
"left",
|
|
507
|
-
"right",
|
|
508
|
-
"up",
|
|
509
|
-
"down"
|
|
510
|
-
];
|
|
511
|
-
function T(t, n, r) {
|
|
512
|
-
return e(this, void 0, void 0, function* () {
|
|
513
|
-
let e = c(r.distPath, f(t, r.baseURL)), i = h(t, e, r.fetch);
|
|
514
|
-
r.log((e) => `download: ${t} -> ${e}`, i), yield i;
|
|
515
|
-
let a = Math.pow(2, n.level), o = r.imageOptions.format;
|
|
516
|
-
o.length === 0 && o.push(void 0);
|
|
517
|
-
let s = [];
|
|
518
|
-
if (a > 1) for (let t = 0; t < a; t++) for (let i = 0; i < a; i++) for (let c of o) {
|
|
519
|
-
let o = [
|
|
520
|
-
n.size / a * i,
|
|
521
|
-
n.size / a * t,
|
|
522
|
-
n.size / a,
|
|
523
|
-
n.size / a
|
|
524
|
-
], l = y(e, {
|
|
525
|
-
format: c,
|
|
526
|
-
size: n.scale >= 1 ? void 0 : n.scale * n.size / a,
|
|
527
|
-
cut: o,
|
|
528
|
-
toFilename: r.imageProcessingFilename
|
|
529
|
-
});
|
|
530
|
-
if (r.log((t) => `imageProcessing: ${e} -> ${t}`, l), s.push(l), n.level === 1 && n.scale >= .5 && (c === "jpg" || /\.jpg$/.test(e))) {
|
|
531
|
-
let t = y(e, {
|
|
532
|
-
format: c,
|
|
533
|
-
size: void 0,
|
|
534
|
-
cut: o,
|
|
535
|
-
toFilename: r.imageProcessingFilename
|
|
536
|
-
});
|
|
537
|
-
r.log((t) => `imageProcessing: ${e} -> ${t}`, t), s.push(t);
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
yield Promise.all(s);
|
|
541
|
-
});
|
|
542
|
-
}
|
|
543
|
-
function E(t, n) {
|
|
544
|
-
return e(this, void 0, void 0, function* () {
|
|
545
|
-
let e = w.map((e) => T(t.work.getURL(t[e]), t, n));
|
|
546
|
-
if (t.gainmap) {
|
|
547
|
-
let r = t.gainmap;
|
|
548
|
-
e.push(...w.map((e) => T(t.work.getURL(r[e]), t, n)));
|
|
549
|
-
}
|
|
550
|
-
yield Promise.all(e);
|
|
551
|
-
});
|
|
552
|
-
}
|
|
553
|
-
function D(t, n, r) {
|
|
554
|
-
return e(this, void 0, void 0, function* () {
|
|
555
|
-
let e = c(r.distPath, f(t, r.baseURL)), i = h(t, e, r.fetch);
|
|
556
|
-
r.log((e) => `download: ${t} -> ${e}`, i), yield i;
|
|
557
|
-
let a = r.imageOptions.format;
|
|
558
|
-
a.length === 0 && a.push(void 0);
|
|
559
|
-
let o = r.imageOptions.size;
|
|
560
|
-
o.length === 0 && o.push(void 0);
|
|
561
|
-
for (let e of n) {
|
|
562
|
-
let n = t.replace(/cube\_\d+/, `cube_${e}`), i = c(r.distPath, f(n, r.baseURL)), o = h(n, i, r.fetch);
|
|
563
|
-
r.log((e) => `download ${n} -> ${i}`, o), yield o;
|
|
564
|
-
for (let e of a) {
|
|
565
|
-
let t = y(i, {
|
|
566
|
-
format: e,
|
|
567
|
-
toFilename: r.imageProcessingFilename
|
|
568
|
-
});
|
|
569
|
-
r.log((e) => `imageProcessing: ${i} -> ${e}`, t), yield t;
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
let s = [];
|
|
573
|
-
for (let t of a) for (let n of o) {
|
|
574
|
-
let i = y(e, {
|
|
575
|
-
format: t,
|
|
576
|
-
size: n,
|
|
577
|
-
toFilename: r.imageProcessingFilename
|
|
578
|
-
});
|
|
579
|
-
r.log((t) => `imageProcessing: ${e} -> ${t}`, i), s.push(i);
|
|
580
|
-
}
|
|
581
|
-
yield Promise.all(s);
|
|
582
|
-
});
|
|
583
|
-
}
|
|
584
|
-
function O(t, n) {
|
|
585
|
-
return e(this, void 0, void 0, function* () {
|
|
586
|
-
let e = h(t, c(n.distPath, f(t, n.baseURL)), n.fetch);
|
|
587
|
-
n.log((e) => `download: ${t} -> ${e}`, e), yield e;
|
|
588
|
-
});
|
|
589
|
-
}
|
|
590
|
-
function k(t, n) {
|
|
591
|
-
return e(this, void 0, void 0, function* () {
|
|
592
|
-
let { images: e } = t, r = w.map((t) => D(e.work.getURL(e[t]), e.sizeList, n));
|
|
593
|
-
if (e.gainmap) {
|
|
594
|
-
let t = e.gainmap;
|
|
595
|
-
r.push(...w.map((r) => D(e.work.getURL(t[r]), e.sizeList, n))), r.push(O(e.work.getURL(t.cfg), n));
|
|
596
|
-
}
|
|
597
|
-
yield Promise.all(r), e.tiles && (yield Promise.all(e.tiles.map((e) => E(e, n))));
|
|
598
|
-
});
|
|
599
|
-
}
|
|
600
|
-
function A(t, n) {
|
|
601
|
-
return e(this, void 0, void 0, function* () {
|
|
602
|
-
let { observers: e } = t;
|
|
603
|
-
for (let t of e) {
|
|
604
|
-
let e = k(t, n);
|
|
605
|
-
n.log(`process observer #${t.index} derived: ${t.derivedIdStr}`, e), yield e;
|
|
606
|
-
}
|
|
607
|
-
});
|
|
608
|
-
}
|
|
609
|
-
//#endregion
|
|
610
|
-
//#region build/work-downloader/utils/log.js
|
|
611
|
-
function j(e, t) {
|
|
612
|
-
if (t) {
|
|
613
|
-
let n = Date.now();
|
|
614
|
-
t.then((t) => {
|
|
615
|
-
let r = Date.now() - n, i = typeof e == "function" ? e(t) : e;
|
|
616
|
-
console.log(i + `(${r}ms)`);
|
|
617
|
-
}).catch(() => {});
|
|
618
|
-
} else {
|
|
619
|
-
let t = typeof e == "function" ? e(null) : e;
|
|
620
|
-
console.log(t);
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
//#endregion
|
|
624
|
-
//#region build/work-downloader/download.js
|
|
625
|
-
function M(t) {
|
|
626
|
-
return e(this, arguments, void 0, function* (e, t = {}) {
|
|
627
|
-
var i, o, s, c, u, d, f, p, m, h;
|
|
628
|
-
let g = e.baseURL, _ = "";
|
|
629
|
-
if (t.distPath) _ = l(process.cwd(), t.distPath);
|
|
630
|
-
else for (_ = l(process.cwd(), (i = e.workCode) == null ? `work-${Date.now()}` : i); n(_);) /.-(\d+)$/.test(_) ? _ = _.replace(/.-(\d+)$/, (e, t) => "-" + (Number(t) + 1)) : _ += "-1";
|
|
631
|
-
let v = {
|
|
632
|
-
baseURL: g,
|
|
633
|
-
distPath: _,
|
|
634
|
-
fetch: (o = t.fetch) == null ? fetch : o,
|
|
635
|
-
imageOptions: {
|
|
636
|
-
size: (c = (s = t.imageOptions) == null ? void 0 : s.size) == null ? [] : c,
|
|
637
|
-
format: (d = (u = t.imageOptions) == null ? void 0 : u.format) == null ? [] : d
|
|
638
|
-
},
|
|
639
|
-
textureOptions: {
|
|
640
|
-
size: (p = (f = t.textureOptions) == null ? void 0 : f.size) == null ? [] : p,
|
|
641
|
-
format: (h = (m = t.textureOptions) == null ? void 0 : m.format) == null ? [] : h
|
|
642
|
-
},
|
|
643
|
-
log: t.log ? j : (() => Promise.resolve()),
|
|
644
|
-
imageProcessingFilename: t.imageProcessingFilename
|
|
645
|
-
};
|
|
646
|
-
v.log(JSON.stringify(v, null, " ")), yield r(_, { recursive: !0 }), yield a(l(_, "work.json"), JSON.stringify(e.toJSON(), null, " ")), yield A(e, v), yield C(e, v);
|
|
647
|
-
});
|
|
648
|
-
}
|
|
649
|
-
//#endregion
|
|
650
|
-
export { M as download };
|
|
338
|
+
*/import{__awaiter}from"tslib";import{createWriteStream,existsSync}from"node:fs";import{mkdir,readFile,writeFile}from"node:fs/promises";import{dirname,extname,join,resolve}from"node:path";import{Readable}from"node:stream";import sharp from"sharp";function relativeUrl(url,baseURL){if(baseURL&&baseURL[baseURL.length-1]!==`/`&&(baseURL+=`/`),url.length>baseURL.length&&url.startsWith(baseURL))return url.slice(baseURL.length);throw Error(`${url} is not starting with ${baseURL}`)}function joinUrl(...segments){let array=[];segments=segments.map(segment=>(segment==null?``:segment).trim()).filter(segment=>segment.length>0&&!/^\/+$/.test(segment));for(let i=0;i<segments.length;i++){let first=i===0,last=i===segments.length-1,segment=segments[i];first||(segment=segment.replace(/^\.\//,``).replace(/^\/+/,``)),last||(segment=segment.replace(/\/+$/,``)),array.push(segment)}return array.join(`/`)}var MAX_BUFFER=1024*1024*5;function downloadToFile(url,filename,aFetch){return __awaiter(this,void 0,void 0,function*(){var _a;if(existsSync(filename))return filename;let res=yield aFetch(url);if(res.ok&&res.body){if(yield mkdir(dirname(filename),{recursive:!0}),Number((_a=res.headers.get(`content-length`))==null?`Infinity`:_a)>MAX_BUFFER)return new Promise((resolve,reject)=>{let readableNodeStream=Readable.fromWeb(res.body),fileStream=createWriteStream(filename);readableNodeStream.pipe(fileStream),readableNodeStream.on(`error`,reject),fileStream.on(`finish`,()=>resolve(filename))});{let buffer=yield res.arrayBuffer();return yield writeFile(filename,Buffer.from(buffer)),filename}}throw Error(`url: ${url}(${res.statusText})`)})}var fastFormat=[`jpg`,`png`],quality=95;function getFilename(src,options){let defaultFormat=extname(src).slice(1)||`jpg`,{cut:c,size:s,format:f=defaultFormat}=options,filename=``;if(options.toFilename)filename=options.toFilename(src,{cut:options.cut,size:options.size,format:options.format});else{let cPath=``,sPath=``,fPath=f;c&&(cPath=c.join(`x`)),s&&(sPath=`${s}x`),fPath===defaultFormat&&!sPath&&!cPath&&(fPath=``),filename=[src,cPath,sPath,fPath].filter(s=>s.length>0).join(`.`)}return filename}function imageProcessing(src,options){return __awaiter(this,void 0,void 0,function*(){let defaultFormat=extname(src).slice(1)||`jpg`,{cut:c,size:s,format:f=defaultFormat}=options,inputSrc=src;if((c||s)&&f!==defaultFormat&&fastFormat.includes(f)){let filename=getFilename(src,{format:f,toFilename:options.toFilename});filename!==inputSrc&&existsSync(filename)&&(inputSrc=filename)}let instance=sharp(inputSrc);c&&(instance=instance.extract({left:c[0],top:c[1],width:c[2],height:c[3]})),s&&(instance=instance.resize(s)),instance=instance.toFormat(f,{quality});let filename=getFilename(src,options);return filename!==src&&!existsSync(filename)?instance.toFile(filename).then(()=>filename):filename})}function scanTileContent(tile){let contents=[];if(tile.content&&(tile.content.uri?contents.push(tile.content.uri):tile.content.url&&contents.push(tile.content.url)),tile.children)for(let child of tile.children){let childContents=scanTileContent(child);if(childContents.length>0)for(let i=0;i<childContents.length;i++)contents.push(childContents[i])}return contents}function processTileContent(content,tilesetUrl,context){return __awaiter(this,void 0,void 0,function*(){let url=new URL(content,tilesetUrl).href,task=downloadToFile(url,join(context.distPath,relativeUrl(url,context.baseURL)),context.fetch);context.log(result=>`download: ${url} -> ${result}`,task),yield task,/\.json$/.test(content)&&(yield processTileset(url,context))})}function processTileset(tilesetUrl,context){return __awaiter(this,void 0,void 0,function*(){let filename=join(context.distPath,relativeUrl(tilesetUrl,context.baseURL)),task=downloadToFile(tilesetUrl,filename,context.fetch);context.log(result=>`download: ${tilesetUrl} -> ${result}`,task),yield task;let tileset=JSON.parse(yield readFile(filename,`utf8`));if(tileset.asset.overview){let url=new URL(tileset.asset.overview.imageFile,tilesetUrl).href,task=downloadToFile(url,join(context.distPath,relativeUrl(url,context.baseURL)),context.fetch);context.log(result=>`download: ${url} -> ${result}`,task),yield task}if(tileset.asset.trajectories)for(let trajectory of tileset.asset.trajectories.list){let url=new URL(trajectory.file,tilesetUrl).href,task=downloadToFile(url,join(context.distPath,relativeUrl(url,context.baseURL)),context.fetch);context.log(result=>`download: ${url} -> ${result}`,task),yield task}let contents=scanTileContent(tileset.root);for(let i=0;i<contents.length;i+=6){let tasks=[];for(let j=0;j<6;j++){let content=contents[i+j];if(content){let task=processTileContent(content,tilesetUrl,context);tasks.push(task)}}yield Promise.all(tasks)}})}function process$2(work,context){return __awaiter(this,void 0,void 0,function*(){if(context.log(`process model`),work.model){let{textures,layers,file,textureBase}=work.model;if(file){context.log(`process model file`);let url=work.getURL(file),task=downloadToFile(url,join(context.distPath,relativeUrl(url,context.baseURL)),context.fetch);if(context.log(result=>`download: ${file} -> ${result}`,task),yield task,textures)for(let texture of textures){let url=joinUrl(work.getURL(textureBase==null?``:textureBase),texture),filename=join(context.distPath,relativeUrl(url,context.baseURL)),task=downloadToFile(url,filename,context.fetch);context.log(result=>`download: ${url} -> ${result}`,task),yield task;let format=context.imageOptions.format;format.length===0&&format.push(void 0);let size=context.imageOptions.size;size.length===0&&size.push(void 0);let tasks=[];for(let f of format)for(let s of size){let task=imageProcessing(filename,{format:f,size:s,toFilename:context.imageProcessingFilename});context.log(result=>`imageProcessing: ${filename} -> ${result}`,task),tasks.push(task)}yield Promise.all(tasks)}}if(layers)for(let layer of layers){let{tileset}=layer;context.log(`process model layer`),yield processTileset(work.getURL(tileset),context)}}})}var CUBE_FACES=[`front`,`back`,`left`,`right`,`up`,`down`];function processTileImage(src,tile,context){return __awaiter(this,void 0,void 0,function*(){let filename=join(context.distPath,relativeUrl(src,context.baseURL)),task=downloadToFile(src,filename,context.fetch);context.log(result=>`download: ${src} -> ${result}`,task),yield task;let count=Math.pow(2,tile.level),format=context.imageOptions.format;format.length===0&&format.push(void 0);let tasks=[];if(count>1)for(let row=0;row<count;row++)for(let col=0;col<count;col++)for(let f of format){let cut=[tile.size/count*col,tile.size/count*row,tile.size/count,tile.size/count],task=imageProcessing(filename,{format:f,size:tile.scale>=1?void 0:tile.scale*tile.size/count,cut,toFilename:context.imageProcessingFilename});if(context.log(result=>`imageProcessing: ${filename} -> ${result}`,task),tasks.push(task),tile.level===1&&tile.scale>=.5&&(f===`jpg`||/\.jpg$/.test(filename))){let task=imageProcessing(filename,{format:f,size:void 0,cut,toFilename:context.imageProcessingFilename});context.log(result=>`imageProcessing: ${filename} -> ${result}`,task),tasks.push(task)}}yield Promise.all(tasks)})}function processTile(tile,context){return __awaiter(this,void 0,void 0,function*(){let tasks=CUBE_FACES.map(face=>processTileImage(tile.work.getURL(tile[face]),tile,context));if(tile.gainmap){let gainmap=tile.gainmap;tasks.push(...CUBE_FACES.map(face=>processTileImage(tile.work.getURL(gainmap[face]),tile,context)))}yield Promise.all(tasks)})}function processCubeImage(src,sizeList,context){return __awaiter(this,void 0,void 0,function*(){let filename=join(context.distPath,relativeUrl(src,context.baseURL)),task=downloadToFile(src,filename,context.fetch);context.log(result=>`download: ${src} -> ${result}`,task),yield task;let format=context.imageOptions.format;format.length===0&&format.push(void 0);let size=context.imageOptions.size;size.length===0&&size.push(void 0);for(let size of sizeList){let sizedSrc=src.replace(/cube\_\d+/,`cube_${size}`),sizedFilename=join(context.distPath,relativeUrl(sizedSrc,context.baseURL)),task=downloadToFile(sizedSrc,sizedFilename,context.fetch);context.log(result=>`download ${sizedSrc} -> ${sizedFilename}`,task),yield task;for(let f of format){let task=imageProcessing(sizedFilename,{format:f,toFilename:context.imageProcessingFilename});context.log(result=>`imageProcessing: ${sizedFilename} -> ${result}`,task),yield task}}let tasks=[];for(let f of format)for(let s of size){let task=imageProcessing(filename,{format:f,size:s,toFilename:context.imageProcessingFilename});context.log(result=>`imageProcessing: ${filename} -> ${result}`,task),tasks.push(task)}yield Promise.all(tasks)})}function processRawFile(src,context){return __awaiter(this,void 0,void 0,function*(){let task=downloadToFile(src,join(context.distPath,relativeUrl(src,context.baseURL)),context.fetch);context.log(result=>`download: ${src} -> ${result}`,task),yield task})}function processObserver(observer,context){return __awaiter(this,void 0,void 0,function*(){let{images}=observer,tasks=CUBE_FACES.map(face=>processCubeImage(images.work.getURL(images[face]),images.sizeList,context));if(images.gainmap){let gainmap=images.gainmap;tasks.push(...CUBE_FACES.map(face=>processCubeImage(images.work.getURL(gainmap[face]),images.sizeList,context))),tasks.push(processRawFile(images.work.getURL(gainmap.cfg),context))}yield Promise.all(tasks),images.tiles&&(yield Promise.all(images.tiles.map(tile=>processTile(tile,context))))})}function process$1(work,context){return __awaiter(this,void 0,void 0,function*(){let{observers}=work;for(let observer of observers){let promise=processObserver(observer,context);context.log(`process observer #${observer.index} derived: ${observer.derivedIdStr}`,promise),yield promise}})}function log(msg,promise){if(promise){let startTime=Date.now();promise.then(data=>{let cost=Date.now()-startTime,text=typeof msg==`function`?msg(data):msg;console.log(text+`(${cost}ms)`)}).catch(()=>{})}else{let text=typeof msg==`function`?msg(null):msg;console.log(text)}}function download(work_1){return __awaiter(this,arguments,void 0,function*(work,options={}){var _a,_b,_c,_d,_e,_f,_g,_h,_j,_k;let baseURL=work.baseURL,distPath=``;if(options.distPath)distPath=resolve(process.cwd(),options.distPath);else for(distPath=resolve(process.cwd(),(_a=work.workCode)==null?`work-${Date.now()}`:_a);existsSync(distPath);)/.-(\d+)$/.test(distPath)?distPath=distPath.replace(/.-(\d+)$/,(_,d)=>`-`+(Number(d)+1)):distPath+=`-1`;let context={baseURL,distPath,fetch:(_b=options.fetch)==null?fetch:_b,imageOptions:{size:(_d=(_c=options.imageOptions)==null?void 0:_c.size)==null?[]:_d,format:(_f=(_e=options.imageOptions)==null?void 0:_e.format)==null?[]:_f},textureOptions:{size:(_h=(_g=options.textureOptions)==null?void 0:_g.size)==null?[]:_h,format:(_k=(_j=options.textureOptions)==null?void 0:_j.format)==null?[]:_k},log:options.log?log:(()=>Promise.resolve()),imageProcessingFilename:options.imageProcessingFilename};context.log(JSON.stringify(context,null,` `)),yield mkdir(distPath,{recursive:!0}),yield writeFile(resolve(distPath,`work.json`),JSON.stringify(work.toJSON(),null,` `)),yield process$1(work,context),yield process$2(work,context)})}export{download};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>loadAt3d | 如视 Five SDK</title><meta name="description" content="Documentation for 如视 Five SDK"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">如视 Five SDK</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="../modules/index.html">index</a></li><li><a href="" aria-current="page">loadAt3d</a></li></ul><h1>Function loadAt3d</h1></div><section class="tsd-panel"><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="loadat3d"><span class="tsd-kind-call-signature">loadAt3d</span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">url</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-symbol">{</span><br/> <span class="tsd-kind-property">fetcher</span><span class="tsd-signature-symbol">?:</span> <a href="../classes/index.Fetcher.html" class="tsd-signature-type tsd-kind-class">Fetcher</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">light</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">onDownloadProgress</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">percent</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">loaded</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">total</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">textureArray</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">textureBaseUri</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">textureOptions</span><span class="tsd-signature-symbol">?:</span> <a href="../interfaces/index.TextureOptions.html" class="tsd-signature-type tsd-kind-interface">TextureOptions</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">upAxis</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">"Y"</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"Z"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../types/index.LoadResultType.html" class="tsd-signature-type tsd-kind-type-alias">LoadResultType</a><span class="tsd-signature-symbol">></span><a href="#loadat3d" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">url</span>: <span class="tsd-signature-type">string</span></span></li><li><span><span class="tsd-kind-parameter">options</span>: <span class="tsd-signature-symbol">{</span><br/> <span class="tsd-kind-property">fetcher</span><span class="tsd-signature-symbol">?:</span> <a href="../classes/index.Fetcher.html" class="tsd-signature-type tsd-kind-class">Fetcher</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">light</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">onDownloadProgress</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">percent</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">loaded</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">total</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">textureArray</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">textureBaseUri</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">textureOptions</span><span class="tsd-signature-symbol">?:</span> <a href="../interfaces/index.TextureOptions.html" class="tsd-signature-type tsd-kind-interface">TextureOptions</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">upAxis</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">"Y"</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"Z"</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol"> = {}</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../types/index.LoadResultType.html" class="tsd-signature-type tsd-kind-type-alias">LoadResultType</a><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources"><ul><li>Defined in lib/five/model/loaders/at3d.ts:12</li></ul></aside></div></li></ul></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">如视 Five SDK</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>loadDome | 如视 Five SDK</title><meta name="description" content="Documentation for 如视 Five SDK"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">如视 Five SDK</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="../modules/index.html">index</a></li><li><a href="" aria-current="page">loadDome</a></li></ul><h1>Function loadDome</h1></div><section class="tsd-panel"><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="loaddome"><span class="tsd-kind-call-signature">loadDome</span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">url</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-symbol">{</span><br/> <span class="tsd-kind-property">fetcher</span><span class="tsd-signature-symbol">?:</span> <a href="../classes/index.Fetcher.html" class="tsd-signature-type tsd-kind-class">Fetcher</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">light</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">onDownloadProgress</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">percent</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">loaded</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">total</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">textureBaseUri</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">textureOptions</span><span class="tsd-signature-symbol">?:</span> <a href="../interfaces/index.TextureOptions.html" class="tsd-signature-type tsd-kind-interface">TextureOptions</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">upAxis</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">"Y"</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"Z"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../types/index.LoadResultType.html" class="tsd-signature-type tsd-kind-type-alias">LoadResultType</a><span class="tsd-signature-symbol">></span><a href="#loaddome" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">url</span>: <span class="tsd-signature-type">string</span></span></li><li><span><span class="tsd-kind-parameter">options</span>: <span class="tsd-signature-symbol">{</span><br/> <span class="tsd-kind-property">fetcher</span><span class="tsd-signature-symbol">?:</span> <a href="../classes/index.Fetcher.html" class="tsd-signature-type tsd-kind-class">Fetcher</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">light</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">onDownloadProgress</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">percent</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">loaded</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">total</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">textureBaseUri</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">textureOptions</span><span class="tsd-signature-symbol">?:</span> <a href="../interfaces/index.TextureOptions.html" class="tsd-signature-type tsd-kind-interface">TextureOptions</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">upAxis</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">"Y"</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"Z"</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol"> = {}</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../types/index.LoadResultType.html" class="tsd-signature-type tsd-kind-type-alias">LoadResultType</a><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources"><ul><li>Defined in lib/five/model/loaders/dome.ts:16</li></ul></aside></div></li></ul></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">如视 Five SDK</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>loadDomez | 如视 Five SDK</title><meta name="description" content="Documentation for 如视 Five SDK"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">如视 Five SDK</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="../modules/index.html">index</a></li><li><a href="" aria-current="page">loadDomez</a></li></ul><h1>Function loadDomez</h1></div><section class="tsd-panel"><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="loaddomez"><span class="tsd-kind-call-signature">loadDomez</span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">url</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-symbol">{</span><br/> <span class="tsd-kind-property">fetcher</span><span class="tsd-signature-symbol">?:</span> <a href="../classes/index.Fetcher.html" class="tsd-signature-type tsd-kind-class">Fetcher</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">light</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">onDownloadProgress</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">percent</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">loaded</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">total</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">textureBaseUri</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">textureOptions</span><span class="tsd-signature-symbol">?:</span> <a href="../interfaces/index.TextureOptions.html" class="tsd-signature-type tsd-kind-interface">TextureOptions</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">upAxis</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">"Y"</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"Z"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../types/index.LoadResultType.html" class="tsd-signature-type tsd-kind-type-alias">LoadResultType</a><span class="tsd-signature-symbol">></span><a href="#loaddomez" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">url</span>: <span class="tsd-signature-type">string</span></span></li><li><span><span class="tsd-kind-parameter">options</span>: <span class="tsd-signature-symbol">{</span><br/> <span class="tsd-kind-property">fetcher</span><span class="tsd-signature-symbol">?:</span> <a href="../classes/index.Fetcher.html" class="tsd-signature-type tsd-kind-class">Fetcher</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">light</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">onDownloadProgress</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">percent</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">loaded</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">total</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">textureBaseUri</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">textureOptions</span><span class="tsd-signature-symbol">?:</span> <a href="../interfaces/index.TextureOptions.html" class="tsd-signature-type tsd-kind-interface">TextureOptions</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">upAxis</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">"Y"</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"Z"</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol"> = {}</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../types/index.LoadResultType.html" class="tsd-signature-type tsd-kind-type-alias">LoadResultType</a><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources"><ul><li>Defined in lib/five/model/loaders/domez.ts:10</li></ul></aside></div></li></ul></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">如视 Five SDK</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>loadGltf | 如视 Five SDK</title><meta name="description" content="Documentation for 如视 Five SDK"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">如视 Five SDK</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="../modules/index.html">index</a></li><li><a href="" aria-current="page">loadGltf</a></li></ul><h1>Function loadGltf</h1></div><section class="tsd-panel"><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="loadgltf"><span class="tsd-kind-call-signature">loadGltf</span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">url</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-symbol">{</span><br/> <span class="tsd-kind-property">fetcher</span><span class="tsd-signature-symbol">?:</span> <a href="../classes/index.Fetcher.html" class="tsd-signature-type tsd-kind-class">Fetcher</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">jsonModify</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">json</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">light</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">modelUpAxis</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">"Y"</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"Z"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">onDownloadProgress</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">percent</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">loaded</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">total</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">upAxis</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">"Y"</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"Z"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../types/index.LoadResultType.html" class="tsd-signature-type tsd-kind-type-alias">LoadResultType</a><span class="tsd-signature-symbol">></span><a href="#loadgltf" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">url</span>: <span class="tsd-signature-type">string</span></span></li><li><span><span class="tsd-kind-parameter">options</span>: <span class="tsd-signature-symbol">{</span><br/> <span class="tsd-kind-property">fetcher</span><span class="tsd-signature-symbol">?:</span> <a href="../classes/index.Fetcher.html" class="tsd-signature-type tsd-kind-class">Fetcher</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">jsonModify</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">json</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">light</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">modelUpAxis</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">"Y"</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"Z"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">onDownloadProgress</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">percent</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">loaded</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">total</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">upAxis</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">"Y"</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"Z"</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol"> = {}</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../types/index.LoadResultType.html" class="tsd-signature-type tsd-kind-type-alias">LoadResultType</a><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources"><ul><li>Defined in lib/five/model/loaders/gltf.ts:8</li></ul></aside></div></li></ul></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">如视 Five SDK</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>loadPbm | 如视 Five SDK</title><meta name="description" content="Documentation for 如视 Five SDK"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">如视 Five SDK</a><div id="tsd-toolbar-links"></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="../modules/index.html">index</a></li><li><a href="" aria-current="page">loadPbm</a></li></ul><h1>Function loadPbm</h1></div><section class="tsd-panel"><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="loadpbm"><span class="tsd-kind-call-signature">loadPbm</span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">url</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-symbol">{</span><br/> <span class="tsd-kind-property">fetcher</span><span class="tsd-signature-symbol">?:</span> <a href="../classes/index.Fetcher.html" class="tsd-signature-type tsd-kind-class">Fetcher</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">light</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">onDownloadProgress</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">percent</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">loaded</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">total</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">textureArray</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">textureBaseUri</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">textureOptions</span><span class="tsd-signature-symbol">?:</span> <a href="../interfaces/index.TextureOptions.html" class="tsd-signature-type tsd-kind-interface">TextureOptions</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">upAxis</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">"Y"</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"Z"</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../types/index.LoadResultType.html" class="tsd-signature-type tsd-kind-type-alias">LoadResultType</a><span class="tsd-signature-symbol">></span><a href="#loadpbm" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">url</span>: <span class="tsd-signature-type">string</span></span></li><li><span><span class="tsd-kind-parameter">options</span>: <span class="tsd-signature-symbol">{</span><br/> <span class="tsd-kind-property">fetcher</span><span class="tsd-signature-symbol">?:</span> <a href="../classes/index.Fetcher.html" class="tsd-signature-type tsd-kind-class">Fetcher</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">light</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">onDownloadProgress</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">percent</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">loaded</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">total</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-signature-symbol">)</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">textureArray</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">textureBaseUri</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">textureOptions</span><span class="tsd-signature-symbol">?:</span> <a href="../interfaces/index.TextureOptions.html" class="tsd-signature-type tsd-kind-interface">TextureOptions</a><span class="tsd-signature-symbol">;</span><br/> <span class="tsd-kind-property">upAxis</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">"Y"</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">"Z"</span><span class="tsd-signature-symbol">;</span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol"> = {}</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../types/index.LoadResultType.html" class="tsd-signature-type tsd-kind-type-alias">LoadResultType</a><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources"><ul><li>Defined in lib/five/model/loaders/pbm.ts:25</li></ul></aside></div></li></ul></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">如视 Five SDK</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
|