@realsee/five 6.8.0-alpha.2 → 6.8.0-alpha.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS_READ_ME.md +4 -0
- package/AI_CONTEXT.md +4 -0
- package/README.md +9 -6
- package/{guides → ai_guides}/README.md +12 -2
- package/ai_guides/ai-doc-guidelines.md +102 -0
- package/{guides → ai_guides}/api.md +24 -1
- package/ai_guides/features/3dtile.md +172 -0
- package/{guides → ai_guides}/features/camera-animation.md +24 -3
- package/{guides → ai_guides}/features/clipper.md +2 -0
- package/{guides/features/coordnate-system.md → ai_guides/features/coordinate-system.md} +2 -0
- package/{guides → ai_guides}/features/event.md +2 -0
- package/{guides → ai_guides}/features/five.md +4 -0
- package/ai_guides/features/flowing-light-2d-pass.md +438 -0
- package/ai_guides/features/flowing-light-3d-pass.md +420 -0
- package/ai_guides/features/gaussian-blur-pass.md +202 -0
- package/{guides → ai_guides}/features/gesture.md +3 -0
- package/{guides → ai_guides}/features/get-screen-pixels.md +2 -0
- package/{guides → ai_guides}/features/image-options.md +3 -0
- package/{guides → ai_guides}/features/load-external-model.md +21 -0
- package/ai_guides/features/load-progress.md +140 -0
- package/ai_guides/features/material.md +153 -0
- package/{guides → ai_guides}/features/mode.md +4 -0
- package/{guides → ai_guides}/features/model.md +4 -1
- package/{guides → ai_guides}/features/move-pano-effect.md +2 -0
- package/{guides → ai_guides}/features/multi-work.md +2 -0
- package/ai_guides/features/pano-filter.md +148 -0
- package/{guides → ai_guides}/features/pano-tile.md +7 -14
- package/ai_guides/features/pano-uv.md +131 -0
- package/ai_guides/features/parameter.md +153 -0
- package/ai_guides/features/plugin.md +210 -0
- package/{guides → ai_guides}/features/postprocessing.md +39 -4
- package/{guides → ai_guides}/features/raycast.md +11 -0
- package/{guides → ai_guides}/features/request-proxy.md +2 -0
- package/{guides → ai_guides}/features/screen-project.md +2 -0
- package/{guides → ai_guides}/features/state.md +2 -0
- package/ai_guides/features/view-layer.md +187 -0
- package/{guides → ai_guides}/features/work.md +63 -2
- package/{guides → ai_guides}/glossary.md +26 -5
- package/{guides → ai_guides}/intro.md +1 -1
- package/{guides → ai_guides}/quick-start.md +1 -0
- package/ai_guides/release_notes/6.8.md +208 -0
- package/{guides → ai_guides}/template.md +17 -3
- package/docs/00_FOR_AI_AGENTS.md +11 -0
- package/docs/README.md +4 -7
- package/docs/assets/hierarchy.js +1 -1
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/five.AdaptiveLuminancePass.html +7 -6
- package/docs/classes/five.BoundingMesh.html +2 -2
- package/docs/classes/five.Camera.html +1 -1
- package/docs/classes/five.EyeDomeLightingPass.html +1 -1
- package/docs/classes/five.Five.html +73 -72
- package/docs/classes/five.FivePass.html +1 -1
- package/docs/classes/five.Histogram.html +19 -0
- package/docs/classes/five.InternalWebGLRenderer.html +1 -1
- package/docs/classes/five.Model.html +31 -31
- package/docs/classes/five.ModelScene.html +1 -1
- package/docs/classes/five.NetworkSubscribe.html +1 -1
- package/docs/classes/five.PBMContainer.html +1 -1
- package/docs/classes/five.PBMCustomShader.html +42 -3
- package/docs/classes/five.PBMGSObject.html +5 -3
- package/docs/classes/five.PBMGroup.html +1 -1
- package/docs/classes/five.PBMMesh.html +1 -1
- package/docs/classes/five.PBMMeshMaterial.html +16 -7
- package/docs/classes/five.PBMPanoFilter.html +61 -0
- package/docs/classes/five.PBMPointCloud.html +1 -1
- package/docs/classes/five.PBMPointCloudMaterial.html +5 -6
- package/docs/classes/five.PBMSkinnedMesh.html +1 -1
- package/docs/classes/five.PBMUpdateable.html +41 -0
- package/docs/classes/five.PanoCircleMesh.html +1 -1
- package/docs/classes/five.PanoCircleMeshCustom.html +1 -1
- package/docs/classes/five.PanoCircleMeshSolid.html +1 -1
- package/docs/classes/five.Parameter.html +57 -53
- package/docs/classes/five.Scene.html +1 -1
- package/docs/classes/five.Subscribe.html +1 -1
- package/docs/classes/five.Tile.html +1 -1
- package/docs/classes/five.Tile3D.html +30 -26
- package/docs/classes/five.TileNode.html +1 -1
- package/docs/classes/five.Trajectory.html +1 -1
- package/docs/classes/five.TrajectoryNode.html +1 -1
- package/docs/classes/five.Work.html +16 -16
- package/docs/classes/five.WorkResolvedObserver.html +27 -2
- package/docs/classes/gltf-loader.DDSLoader.html +1 -1
- package/docs/classes/gltf-loader.DRACOLoader.html +1 -1
- package/docs/classes/gltf-loader.GLTFLoader.html +1 -1
- package/docs/classes/gltf-loader.GLTFObject.html +1 -1
- package/docs/classes/gltf-loader.GLTFParser.html +1 -1
- package/docs/classes/gltf-loader.THREEGLTFLoader.html +1 -1
- package/docs/classes/line.Line.html +1 -1
- package/docs/classes/line.LineGeometry.html +1 -1
- package/docs/classes/line.LineMaterial.html +1 -1
- package/docs/classes/line.LineSegmentsGeometry.html +1 -1
- package/docs/classes/line.THREE_Line2.html +1 -1
- package/docs/classes/line.THREE_LineSegments2.html +1 -1
- package/docs/classes/plugins.BasePlugin.Controller.html +1 -1
- package/docs/classes/plugins.RoundedBoxGeometry.html +1 -1
- package/docs/classes/sticker.Sticker.html +1 -1
- package/docs/classes/vfx.Airflow.html +1 -1
- package/docs/classes/vfx.Flame.html +1 -1
- package/docs/classes/vfx.Particle.html +1 -1
- package/docs/classes/vfx.ParticleGPU.html +1 -1
- package/docs/classes/vfx.SpotLight.html +1 -1
- package/docs/documents/README.html +11 -2
- package/docs/documents/ai-doc-guidelines.html +60 -15
- package/docs/documents/api.html +40 -15
- package/docs/documents/features_3dtile.html +142 -45
- package/docs/documents/features_camera-animation.html +62 -5
- package/docs/documents/features_clipper.html +3 -0
- package/docs/documents/{features_coordnate-system.html → features_coordinate-system.html} +4 -1
- package/docs/documents/features_event.html +3 -0
- package/docs/documents/features_five.html +4 -0
- package/docs/documents/features_flowing-light-2d-pass.html +356 -0
- package/docs/documents/features_flowing-light-3d-pass.html +351 -0
- package/docs/documents/features_gaussian-blur-pass.html +182 -0
- package/docs/documents/features_gesture.html +4 -0
- package/docs/documents/features_get-screen-pixels.html +3 -0
- package/docs/documents/features_image-options.html +3 -0
- package/docs/documents/features_load-external-model.html +25 -2
- package/docs/documents/features_load-progress.html +110 -0
- package/docs/documents/features_material.html +341 -0
- package/docs/documents/features_mode.html +5 -0
- package/docs/documents/features_model.html +5 -1
- package/docs/documents/features_move-pano-effect.html +3 -0
- package/docs/documents/features_multi-work.html +3 -0
- package/docs/documents/features_pano-filter.html +122 -0
- package/docs/documents/features_pano-tile.html +34 -19
- package/docs/documents/features_pano-uv.html +82 -0
- package/docs/documents/features_parameter.html +76 -56
- package/docs/documents/features_plugin.html +105 -0
- package/docs/documents/features_postprocessing.html +22 -5
- package/docs/documents/features_raycast.html +4 -1
- package/docs/documents/features_request-proxy.html +3 -0
- package/docs/documents/features_screen-project.html +3 -0
- package/docs/documents/features_state.html +3 -0
- package/docs/documents/features_view-layer.html +158 -0
- package/docs/documents/features_work.html +63 -2
- package/docs/documents/glossary.html +31 -6
- package/docs/documents/intro.html +1 -1
- package/docs/documents/quick-start.html +1 -0
- package/docs/documents/release_notes_6.8.html +189 -0
- package/docs/documents/template.html +45 -4
- package/docs/functions/five.loadAt3d.html +1 -1
- package/docs/functions/five.loadB3dm.html +1 -1
- package/docs/functions/five.loadDome.html +1 -1
- package/docs/functions/five.loadDomez.html +1 -1
- package/docs/functions/five.loadFbx.html +1 -1
- package/docs/functions/five.loadGltf.html +1 -1
- package/docs/functions/five.loadPbm.html +1 -1
- package/docs/functions/five.loadPly.html +1 -1
- package/docs/functions/five.loadPnts.html +1 -1
- package/docs/functions/five.loadSplat.html +1 -1
- package/docs/functions/five.loadSpz.html +1 -1
- package/docs/functions/five.loadX3p.html +1 -1
- package/docs/functions/five.parseWork.html +1 -1
- package/docs/functions/vue.useFiveWorks.html +2 -2
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +11 -2
- package/docs/interfaces/five.AddableObject.html +1 -1
- package/docs/interfaces/five.AjaxOptions.html +1 -1
- package/docs/interfaces/five.BaseEvent.html +2 -2
- package/docs/interfaces/five.EventCallback.html +53 -47
- package/docs/interfaces/five.FloorplanControllerCustomInitArgs.html +9 -9
- package/docs/interfaces/five.GestureEvent.html +2 -2
- package/docs/interfaces/five.ImageOptions.html +1 -1
- package/docs/interfaces/five.IntersectEvent.html +2 -2
- package/docs/interfaces/five.IntersectMesh.html +1 -1
- package/docs/interfaces/five.IntersectMeshInterface.html +1 -1
- package/docs/interfaces/five.Intersection.html +4 -3
- package/docs/interfaces/five.LooseWorkWithExtrinsics.html +6 -6
- package/docs/interfaces/five.MapviewControllerCustomInitArgs.html +9 -9
- package/docs/interfaces/five.ModeChangeEvent.html +2 -2
- package/docs/interfaces/five.ModelControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.ModelEvent.html +2 -2
- package/docs/interfaces/five.ModelSceneEvent.html +2 -2
- package/docs/interfaces/five.ModelTileEvent.html +8 -0
- package/docs/interfaces/five.MovePanoOptions.html +7 -7
- package/docs/interfaces/five.NetworkAbortError.html +1 -1
- package/docs/interfaces/five.NetworkFirbiddenError.html +1 -1
- package/docs/interfaces/five.NetworkOptions.html +1 -1
- package/docs/interfaces/five.NetworkProxyError.html +1 -1
- package/docs/interfaces/five.NetworkResourceEvent.html +2 -2
- package/docs/interfaces/five.NetworkResponseError.html +1 -1
- package/docs/interfaces/five.NetworkTimeoutError.html +1 -1
- package/docs/interfaces/five.ObjectEvent.html +2 -2
- package/docs/interfaces/five.PBMClipperParameter.html +2 -2
- package/docs/interfaces/five.PBMCustomShaderInitArgs.html +2 -2
- package/docs/interfaces/five.PBMCustomShaderSlots.html +2 -2
- package/docs/interfaces/five.PBMMaterial.html +1 -1
- package/docs/interfaces/five.PBMMeshMaterialParameters.html +5 -3
- package/docs/interfaces/five.PBMPanoDepth.html +5 -5
- package/docs/interfaces/five.PBMPanoFilterValue.html +6 -0
- package/docs/interfaces/five.PBMPanoPicture.html +8 -6
- package/docs/interfaces/five.PBMPointCloudMaterialParameters.html +2 -3
- package/docs/interfaces/five.PBMRefinedScreen.html +2 -2
- package/docs/interfaces/five.PanoCircleMeshInterface.html +1 -1
- package/docs/interfaces/five.PanoEvent.html +2 -2
- package/docs/interfaces/five.PanoTextureEvent.html +2 -2
- package/docs/interfaces/five.PanoramaControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.PanoramaLikeControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.ParameterMaterialValue.html +42 -38
- package/docs/interfaces/five.ParameterTilesetValue.html +15 -15
- package/docs/interfaces/five.ParameterValue.html +56 -52
- package/docs/interfaces/five.Pose.html +1 -1
- package/docs/interfaces/five.RenderEvent.html +2 -2
- package/docs/interfaces/five.ResolvedParameterValue.html +56 -52
- package/docs/interfaces/five.RgbaData.html +7 -0
- package/docs/interfaces/five.SplatData.html +2 -2
- package/docs/interfaces/five.State.html +1 -1
- package/docs/interfaces/five.StateEvent.html +2 -2
- package/docs/interfaces/five.TextureOptions.html +1 -1
- package/docs/interfaces/five.Tile3DOptions.html +2 -2
- package/docs/interfaces/five.TopviewControllerCustomInitArgs.html +7 -7
- package/docs/interfaces/five.VRPanoramaControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.ViewLayer.html +30 -26
- package/docs/interfaces/five.WorkCubeImage.html +1 -1
- package/docs/interfaces/five.WorkImage.html +1 -1
- package/docs/interfaces/five.WorkModel.html +8 -8
- package/docs/interfaces/five.WorkModelLayer.html +6 -6
- package/docs/interfaces/five.WorkObserver.html +27 -2
- package/docs/interfaces/five.WorkTile.html +1 -1
- package/docs/interfaces/five.WorksEvent.html +2 -2
- package/docs/interfaces/five.XRControllerEvent.html +2 -2
- package/docs/interfaces/five.XRGestureEvent.html +2 -2
- package/docs/interfaces/five.XRPanoramaControllerCustomInitArgs.html +1 -1
- package/docs/interfaces/five.XRSessionEvent.html +2 -2
- package/docs/interfaces/plugins.BackgroundPluginController.html +1 -1
- package/docs/interfaces/plugins.BackgroundPluginType.EventMap.html +1 -1
- package/docs/interfaces/plugins.BasePlugin.State.html +1 -1
- package/docs/interfaces/plugins.DynamicPathLinePluginController.html +1 -1
- package/docs/interfaces/plugins.DynamicPathLinePluginType.EventMap.html +1 -1
- package/docs/interfaces/plugins.DynamicPathLinePluginType.State.html +1 -1
- package/docs/interfaces/plugins.ItemMaskController.html +1 -1
- package/docs/interfaces/plugins.ItemMaskPluginType.EventMap.html +1 -1
- package/docs/interfaces/plugins.ItemMaskPluginType.State.html +1 -1
- package/docs/interfaces/plugins.OrientationPluginController.html +1 -1
- package/docs/interfaces/plugins.OrientationPluginType.EventMap.html +1 -1
- package/docs/interfaces/plugins.OrientationPluginType.State.html +1 -1
- package/docs/interfaces/plugins.PanoAnimeController.html +1 -1
- package/docs/interfaces/plugins.PanoAnimePluginType.EventMap.html +1 -1
- package/docs/interfaces/plugins.PanoAnimePluginType.State.html +1 -1
- package/docs/interfaces/plugins.PluginTemplateType.EventMap.html +1 -1
- package/docs/interfaces/plugins.PluginTemplateType.State.html +1 -1
- package/docs/interfaces/plugins.TrajectoryController.html +1 -1
- package/docs/interfaces/react.FiveInjectionTypes.html +13 -13
- package/docs/modules/five.html +1 -1
- package/docs/modules.html +1 -1
- package/docs/types/five.ControllerEventTypes.html +27 -25
- package/docs/types/five.EasingFunction.html +1 -0
- package/docs/types/five.EventTypes.html +27 -25
- package/docs/types/five.FivePlugin.html +1 -1
- package/docs/types/five.FivePluginInit.html +1 -1
- package/docs/types/five.FivePluginInstance.html +1 -1
- package/docs/types/five.NetworkProgressCallback.html +1 -1
- package/docs/types/five.PBMAlphaMode.html +1 -1
- package/docs/types/five.PBMColorStyle.html +1 -1
- package/docs/types/five.PBMFloorStyle.html +1 -1
- package/docs/types/five.PBMMeshShaderType.html +1 -1
- package/docs/types/five.PBMPointBack.html +1 -1
- package/docs/types/five.PBMPointCloudShaderType.html +1 -1
- package/docs/types/five.PBMPointShape.html +1 -1
- package/docs/types/five.PBMPointSize.html +1 -1
- package/docs/types/five.PBMTransition.html +1 -1
- package/docs/types/five.ParseOptions.html +6 -6
- package/docs/types/plugins.BasePlugin.EventMap.html +1 -1
- package/docs/variables/five.PROXY_CONTROLLER_EVENT_NAMES.html +1 -1
- package/five/application/analysis.d.ts +40 -0
- package/five/application/controllers.d.ts +41 -0
- package/five/application/events-legacy.d.ts +454 -0
- package/five/application/events.d.ts +69 -0
- package/five/application/five.d.ts +519 -0
- package/five/application/fiveInitArgs.d.ts +176 -0
- package/five/application/fiveLoadOptions.d.ts +21 -0
- package/five/application/generateDefaultVideoElement.d.ts +2 -0
- package/five/application/getViewportScale.d.ts +2 -0
- package/five/application/initLights.d.ts +3 -0
- package/five/application/mode.d.ts +28 -0
- package/five/application/renderPoweredByRealsee.d.ts +3 -0
- package/five/assets/cardboard-png-data-url.d.ts +2 -0
- package/five/assets/gradient-png-data-url.d.ts +2 -0
- package/five/assets/loading-png-data-url.d.ts +2 -0
- package/five/assets/phone-png-data-url.d.ts +2 -0
- package/five/assets/realsee-png-data-url.d.ts +2 -0
- package/five/bvh/bvhMath.d.ts +33 -0
- package/five/bvh/bvhMesh.d.ts +7 -0
- package/five/bvh/bvhNode.d.ts +29 -0
- package/five/bvh/bvhObject.d.ts +18 -0
- package/five/bvh/bvhPoints.d.ts +6 -0
- package/five/bvh/index.d.ts +10 -0
- package/five/bvh/worker.d.ts +35 -0
- package/five/cardboard/helper.d.ts +2 -0
- package/five/cardboard/index.d.ts +13 -0
- package/five/cardboard/sensor.d.ts +158 -0
- package/five/certificates/hardware.d.ts +1 -0
- package/five/controllers/base.d.ts +167 -0
- package/five/controllers/events.d.ts +71 -0
- package/five/controllers/floorplan.d.ts +119 -0
- package/five/controllers/mapview.d.ts +139 -0
- package/five/controllers/model.d.ts +57 -0
- package/five/controllers/panorama.d.ts +143 -0
- package/five/controllers/panoramaLike.d.ts +87 -0
- package/five/controllers/topview.d.ts +42 -0
- package/five/controllers/vrPanorama.d.ts +56 -0
- package/five/controllers/xrPanorama.d.ts +81 -0
- package/five/core/camera.d.ts +65 -0
- package/five/core/internalWebGLRenderer.d.ts +14 -0
- package/five/core/panoVideo.d.ts +18 -0
- package/five/core/scene.d.ts +10 -0
- package/five/core/tiling.d.ts +43 -0
- package/five/declare.d.ts +2 -1
- package/five/gaussian-splatting/util/renderData.d.ts +52 -0
- package/five/gaussian-splatting/wasm/data.d.ts +20 -0
- package/five/gaussian-splatting/wasm/sort.d.ts +18 -0
- package/five/gaussian-splatting/worker/dataWorker.d.ts +1 -0
- package/five/gaussian-splatting/worker/sortWorker.d.ts +1 -0
- package/five/index.d.ts +60 -4637
- package/five/index.js +193 -341
- package/five/index.mjs +26455 -31011
- package/five/meshes/boundingMesh.d.ts +12 -0
- package/five/meshes/intersectMesh.d.ts +8 -0
- package/five/meshes/panoCircleMesh.d.ts +35 -0
- package/five/meshes/panoCircleMeshCustom.d.ts +40 -0
- package/five/meshes/panoCircleMeshSolid.d.ts +34 -0
- package/five/meshes/panoSphereMesh.d.ts +27 -0
- package/five/model/helpers/coordinate-transform.d.ts +3 -0
- package/five/model/helpers/ellipsoid-coordinates.d.ts +14 -0
- package/five/model/helpers/get-edges-by-sphere.d.ts +8 -0
- package/five/model/helpers/get-recommend-tile3d-parameters.d.ts +8 -0
- package/five/model/index.d.ts +70 -0
- package/five/model/intersection.d.ts +18 -0
- package/five/model/loaders/at3d.d.ts +12 -0
- package/five/model/loaders/b3dm.d.ts +9 -0
- package/five/model/loaders/dome.d.ts +22 -0
- package/five/model/loaders/domez.d.ts +11 -0
- package/five/model/loaders/fbx.d.ts +8 -0
- package/five/model/loaders/glTF-helpers/extensions/CESIUM_RTC.d.ts +9 -0
- package/five/model/loaders/glTF-helpers/extensions/EXT_meshopt_compression.d.ts +8 -0
- package/five/model/loaders/glTF-helpers/extensions/EXT_texture_webp.d.ts +11 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_animation_pointer.d.ts +6 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_binary_glTF.d.ts +25 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_draco_mesh_compression.d.ts +11 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_gaussian_splatting_compression_spz.d.ts +9 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_materials_clearcoat.d.ts +10 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_materials_emissive_strength.d.ts +10 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_materials_sheen.d.ts +10 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_materials_transmission.d.ts +10 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_materials_unlit.d.ts +10 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_mesh_quantization.d.ts +6 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_node_visibility.d.ts +10 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_texture_basisu.d.ts +9 -0
- package/five/model/loaders/glTF-helpers/extensions/KHR_texture_transform.d.ts +10 -0
- package/five/model/loaders/glTF-helpers/extensions/REALSEE_materials_lightmap.d.ts +7 -0
- package/five/model/loaders/glTF-helpers/extensions/base.d.ts +24 -0
- package/five/model/loaders/glTF-helpers/glTF.d.ts +713 -0
- package/five/model/loaders/glTF-helpers/index.d.ts +47 -0
- package/five/model/loaders/glTF-helpers/parser.d.ts +114 -0
- package/five/model/loaders/glTF-helpers/type.d.ts +14 -0
- package/five/model/loaders/gltf.d.ts +10 -0
- package/five/model/loaders/obj.d.ts +9 -0
- package/five/model/loaders/pbm.d.ts +26 -0
- package/five/model/loaders/ply.d.ts +24 -0
- package/five/model/loaders/pnts.d.ts +8 -0
- package/five/model/loaders/protobuf/dome.d.ts +540 -0
- package/five/model/loaders/protobuf/pbm.d.ts +203 -0
- package/five/model/loaders/shared.d.ts +16 -0
- package/five/model/loaders/splat.d.ts +8 -0
- package/five/model/loaders/spz.d.ts +14 -0
- package/five/model/loaders/tile3d-helpers/feature-table.d.ts +15 -0
- package/five/model/loaders/tile3d-helpers/gl-type.d.ts +20 -0
- package/five/model/loaders/tile3d-helpers/parse-gltf-array-buffer.d.ts +2 -0
- package/five/model/loaders/tile3d-helpers/parse-header.d.ts +2 -0
- package/five/model/loaders/tile3d-helpers/parse-point-cloud-attributes.d.ts +2 -0
- package/five/model/loaders/tile3d-helpers/parse-point-cloud-attributes.worker.d.ts +6 -0
- package/five/model/loaders/tile3d-helpers/parse-table.d.ts +3 -0
- package/five/model/loaders/tile3d-helpers/tile3d-type.d.ts +35 -0
- package/five/model/loaders/x3p.d.ts +22 -0
- package/five/model/materials/pbmMaterial.d.ts +137 -0
- package/five/model/materials/pbmMeshMaterial.d.ts +126 -0
- package/five/model/materials/pbmPointCloudMaterial.d.ts +70 -0
- package/five/model/model-scene.d.ts +172 -0
- package/five/model/model.d.ts +209 -0
- package/five/model/objects/pbmContainer.d.ts +28 -0
- package/five/model/objects/pbmGaussianSplattingObject.d.ts +43 -0
- package/five/model/objects/pbmGaussianSplattingRenderMesh.d.ts +55 -0
- package/five/model/objects/pbmGaussianSplattingTestMesh.d.ts +7 -0
- package/five/model/objects/pbmGroup.d.ts +8 -0
- package/five/model/objects/pbmMesh.d.ts +10 -0
- package/five/model/objects/pbmPointCloud.d.ts +7 -0
- package/five/model/parameter.d.ts +140 -0
- package/five/model/shaders/pbm_gaussian_splatting/fragment.d.ts +2 -0
- package/five/model/shaders/pbm_gaussian_splatting/vertex.d.ts +2 -0
- package/five/model/shaders/pbm_mesh_basic/fragment.d.ts +2 -0
- package/five/model/shaders/pbm_mesh_basic/vertex.d.ts +2 -0
- package/five/model/shaders/pbm_mesh_none/fragment.d.ts +2 -0
- package/five/model/shaders/pbm_mesh_none/vertex.d.ts +2 -0
- package/five/model/shaders/pbm_mesh_phong/fragment.d.ts +2 -0
- package/five/model/shaders/pbm_mesh_phong/vertex.d.ts +2 -0
- package/five/model/shaders/pbm_mesh_standard/fragment.d.ts +2 -0
- package/five/model/shaders/pbm_mesh_standard/vertex.d.ts +2 -0
- package/five/model/shaders/pbm_pointcloud/fragment.d.ts +2 -0
- package/five/model/shaders/pbm_pointcloud/vertex.d.ts +2 -0
- package/five/model/tile3d/header.d.ts +88 -0
- package/five/model/tile3d/index.d.ts +214 -0
- package/five/model/tile3d/tile-cache.d.ts +18 -0
- package/five/model/tile3d/tile-content.d.ts +10 -0
- package/five/model/tile3d/tile-node.d.ts +24 -0
- package/five/model/tile3d/tile-request-scheduler.d.ts +17 -0
- package/five/model/tile3d/tile.d.ts +79 -0
- package/five/model/tile3d/tileset-base-traverser.d.ts +59 -0
- package/five/model/tile3d/tileset-most-detail-traverser.d.ts +14 -0
- package/five/model/tile3d/tileset-normal-traverser.d.ts +15 -0
- package/five/model/tile3d/tileset-skip-traverser.d.ts +60 -0
- package/five/model/tile3d/tileset.d.ts +69 -0
- package/five/model/tile3d/trajectory-content.d.ts +9 -0
- package/five/model/tile3d/trajectory-node.d.ts +15 -0
- package/five/model/tile3d/trajectory.d.ts +30 -0
- package/five/model/tile3d/types.d.ts +33 -0
- package/five/model/view-layer.d.ts +20 -0
- package/five/renderer/five-renderer.d.ts +17 -0
- package/five/renderer/index.d.ts +3 -0
- package/five/renderer/postprocessing/composer.d.ts +37 -0
- package/five/renderer/postprocessing/index.d.ts +7 -0
- package/five/renderer/postprocessing/passes/adaptive-luminance-pass.d.ts +17 -0
- package/five/renderer/postprocessing/passes/eye-dome-lighting-pass.d.ts +14 -0
- package/five/renderer/postprocessing/passes/flowing-light-2d-pass.d.ts +36 -0
- package/five/renderer/postprocessing/passes/flowing-light-3d-pass.d.ts +36 -0
- package/five/renderer/postprocessing/passes/gaussian-blur-pass.d.ts +12 -0
- package/five/renderer/postprocessing/passes/pass.d.ts +38 -0
- package/five/renderer/scene-renderers/point-cloud-high-quality-scene-renderer.d.ts +11 -0
- package/five/renderer/scene-renderers/scene-renderer.d.ts +9 -0
- package/five/renderer/scene-renderers/ssaa-scene-renderer.d.ts +15 -0
- package/five/renderer/tools/full-screen-quad.d.ts +15 -0
- package/five/renderer/tools/render-cube-to-equirectangular.d.ts +7 -0
- package/five/renderer/tools/render-full-screen-depth.d.ts +2 -0
- package/five/renderer/tools/render-full-screen.d.ts +2 -0
- package/five/texture/histogram.d.ts +54 -0
- package/five/texture/imageBitmap.d.ts +13 -0
- package/five/texture/initTexture.d.ts +3 -0
- package/five/texture/loader.d.ts +39 -0
- package/five/texture/textureData.d.ts +11 -0
- package/five/thirdparty/fflate.d.ts +1407 -0
- package/five/thirdparty/hammer.d.ts +375 -0
- package/five/thirdparty/jsrsasign.d.ts +753 -0
- package/five/thirdparty/meshopt_decoder.d.ts +15 -0
- package/five/three-version-check.d.ts +1 -0
- package/five/types/addableObject.d.ts +12 -0
- package/five/types/cube.d.ts +1 -0
- package/five/types/gestureInput.d.ts +24 -0
- package/five/types/imageOptions.d.ts +20 -0
- package/five/types/intersectMeshInterface.d.ts +8 -0
- package/five/types/movePanoEffect.d.ts +13 -0
- package/five/types/movePanoOptions.d.ts +36 -0
- package/five/types/panoCircleMeshInterface.d.ts +34 -0
- package/five/types/plugin.d.ts +25 -0
- package/five/types/pose.d.ts +17 -0
- package/five/types/state.d.ts +20 -0
- package/five/types/viewport.d.ts +22 -0
- package/five/utils/ajax.d.ts +66 -0
- package/five/utils/animationFrameLoop.d.ts +45 -0
- package/five/utils/array.d.ts +31 -0
- package/five/utils/asyncTaskQueue.d.ts +8 -0
- package/five/utils/bufferGeometry.d.ts +33 -0
- package/five/utils/calculateProgress.d.ts +39 -0
- package/five/utils/calculateThreeMouse.d.ts +13 -0
- package/five/utils/canplayVideo.d.ts +2 -0
- package/five/utils/clamp.d.ts +2 -0
- package/five/utils/clock.d.ts +17 -0
- package/five/utils/createSymbol.d.ts +5 -0
- package/five/utils/decodeText.d.ts +2 -0
- package/five/utils/deepEqual.d.ts +2 -0
- package/five/utils/deepFreeze.d.ts +2 -0
- package/five/utils/defineProperty.d.ts +9 -0
- package/five/utils/detector.d.ts +14 -0
- package/five/utils/distance.d.ts +10 -0
- package/five/utils/draco.d.ts +26 -0
- package/five/utils/easing.d.ts +63 -0
- package/five/utils/event.d.ts +159 -0
- package/five/utils/formatRad.d.ts +7 -0
- package/five/utils/imageSupport.d.ts +6 -0
- package/five/utils/imageURL.d.ts +42 -0
- package/five/utils/isEmptyObject.d.ts +2 -0
- package/five/utils/isNil.d.ts +6 -0
- package/five/utils/isNumber.d.ts +2 -0
- package/five/utils/isPowerOfTwo.d.ts +2 -0
- package/five/utils/isPromise.d.ts +2 -0
- package/five/utils/isSimilar.d.ts +6 -0
- package/five/utils/json.d.ts +7 -0
- package/five/utils/ktx2.d.ts +30 -0
- package/five/utils/lzma/index.d.ts +2 -0
- package/five/utils/lzma/lzma.d.ts +3 -0
- package/five/utils/lzma/lzmaWASM.d.ts +2 -0
- package/five/utils/lzma/lzmaWorker.d.ts +14 -0
- package/five/utils/memoryUsage.d.ts +29 -0
- package/five/utils/motion.d.ts +38 -0
- package/five/utils/noop.d.ts +6 -0
- package/five/utils/now.d.ts +7 -0
- package/five/utils/pano.d.ts +9 -0
- package/five/utils/pick.d.ts +3 -0
- package/five/utils/poseUtils.d.ts +5 -0
- package/five/utils/renderCubeTextureToCubeRenderTarget.d.ts +3 -0
- package/five/utils/renderDepth.d.ts +2 -0
- package/five/utils/renderTexturesToCubeRenderTarget.d.ts +10 -0
- package/five/utils/requestPermission.d.ts +3 -0
- package/five/utils/shaderContentFix.d.ts +7 -0
- package/five/utils/shaderMaterial.d.ts +20 -0
- package/five/utils/stateUtils.d.ts +5 -0
- package/five/utils/string-pattern.d.ts +8 -0
- package/five/utils/subscribe.d.ts +67 -0
- package/five/utils/tileCube.d.ts +19 -0
- package/five/utils/toFastProperties.d.ts +1 -0
- package/five/utils/typedCache.d.ts +10 -0
- package/five/utils/uniform.d.ts +15 -0
- package/five/utils/url.d.ts +35 -0
- package/five/utils/uuid.d.ts +5 -0
- package/five/utils/values.d.ts +2 -0
- package/five/utils/vectorCoordinates.d.ts +29 -0
- package/five/utils/volume.d.ts +111 -0
- package/five/utils/webglError.d.ts +7 -0
- package/five/utils/worker.d.ts +26 -0
- package/five/webxr/XRControllerModelFactory.d.ts +28 -0
- package/five/webxr/motionHelper.d.ts +68 -0
- package/five/webxr/xrButton.d.ts +4 -0
- package/five/webxr/xrController.d.ts +24 -0
- package/five/webxr/xrManager.d.ts +84 -0
- package/five/work/_ALLOW_HOST.d.ts +2 -0
- package/five/work/index.d.ts +6 -0
- package/five/work/keychain.d.ts +5 -0
- package/five/work/looseWorkType.d.ts +121 -0
- package/five/work/verify.d.ts +7 -0
- package/five/work/work.d.ts +236 -0
- package/five/work/workFetcher.d.ts +4 -0
- package/five/work/workJson.d.ts +3 -0
- package/five/work/workJsonType.d.ts +73 -0
- package/five/work/workObserverUtils.d.ts +36 -0
- package/five/work/workParser.d.ts +6 -0
- package/five/work/workResolvedObserver.d.ts +12 -0
- package/five/work/workVerify.d.ts +2 -0
- package/five/work/works.d.ts +10 -0
- package/gltf-loader/gltf-object.d.ts +17 -0
- package/gltf-loader/index.d.ts +60 -160
- package/gltf-loader/index.js +9 -9
- package/gltf-loader/index.mjs +1351 -1451
- package/gltf-loader/thirdparty/DDSLoader.d.ts +23 -0
- package/gltf-loader/thirdparty/DRACOLoader.d.ts +18 -0
- package/gltf-loader/thirdparty/GLTFLoader.d.ts +59 -0
- package/line/circle_png.d.ts +1 -0
- package/line/index.d.ts +19 -69
- package/line/index.js +4 -4
- package/line/index.mjs +334 -513
- package/line/utils/Line2.d.ts +7 -0
- package/line/utils/LineGeometry.d.ts +10 -0
- package/line/utils/LineMaterial.d.ts +20 -0
- package/line/utils/LineSegments2.d.ts +11 -0
- package/line/utils/LineSegmentsGeometry.d.ts +15 -0
- package/llms.txt +43 -31
- package/package.json +11 -2
- package/plugins/BackgroundPlugin/Controller.d.ts +20 -0
- package/plugins/BackgroundPlugin/index.d.ts +5 -0
- package/plugins/BackgroundPlugin/typings.d.ts +44 -0
- package/plugins/BasePlugin/index.d.ts +119 -0
- package/plugins/DynamicPathLinePlugin/Controller.d.ts +167 -0
- package/plugins/DynamicPathLinePlugin/index.d.ts +5 -0
- package/plugins/DynamicPathLinePlugin/line2/Line2.d.ts +7 -0
- package/plugins/DynamicPathLinePlugin/line2/LineGeometry.d.ts +10 -0
- package/plugins/DynamicPathLinePlugin/line2/LineMaterial.d.ts +17 -0
- package/plugins/DynamicPathLinePlugin/line2/LineSegments2.d.ts +11 -0
- package/plugins/DynamicPathLinePlugin/line2/LineSegmentsGeometry.d.ts +15 -0
- package/plugins/DynamicPathLinePlugin/typing.d.ts +129 -0
- package/plugins/DynamicPathLinePlugin/typings.d.ts +72 -0
- package/plugins/ItemMaskPlugin/Controller.d.ts +48 -0
- package/plugins/ItemMaskPlugin/index.d.ts +5 -0
- package/plugins/ItemMaskPlugin/typing.d.ts +58 -0
- package/plugins/OrientationPlugin/Controller.d.ts +82 -0
- package/plugins/OrientationPlugin/RoundedBoxGeometry.d.ts +11 -0
- package/plugins/OrientationPlugin/index.d.ts +6 -0
- package/plugins/OrientationPlugin/typing.d.ts +25 -0
- package/plugins/PanoAnimePlugin/Controller.d.ts +46 -0
- package/plugins/PanoAnimePlugin/index.d.ts +5 -0
- package/plugins/PanoAnimePlugin/typing.d.ts +37 -0
- package/plugins/PluginTemplate/Controller.d.ts +27 -0
- package/plugins/PluginTemplate/index.d.ts +5 -0
- package/plugins/PluginTemplate/typing.d.ts +21 -0
- package/plugins/TrajectoryPlugin/Controller.d.ts +85 -0
- package/plugins/TrajectoryPlugin/index.d.ts +6 -0
- package/plugins/TrajectoryPlugin/typing.d.ts +25 -0
- package/plugins/index.d.ts +9 -1102
- package/plugins/index.js +17 -21
- package/plugins/index.mjs +3342 -4245
- package/plugins/thirdParty/CSS3DRenderer.d.ts +32 -0
- package/plugins/thirdParty/OrbitControls.d.ts +78 -0
- package/plugins/utils/absoluteUrl.d.ts +5 -0
- package/plugins/utils/clamp.d.ts +2 -0
- package/plugins/utils/loadImage.d.ts +1 -0
- package/plugins/utils/motion.d.ts +38 -0
- package/plugins/utils/now.d.ts +6 -0
- package/plugins/utils/uuid.d.ts +5 -0
- package/react/canvas.d.ts +19 -0
- package/react/context.d.ts +11 -0
- package/react/createProvider.d.ts +95 -0
- package/react/createStore.d.ts +144 -0
- package/react/hooks/unsafe__useFiveInstance.d.ts +9 -0
- package/react/hooks/useFiveAction.d.ts +147 -0
- package/react/hooks/useFiveCameraDirection.d.ts +7 -0
- package/react/hooks/useFiveCameraRaycaster.d.ts +7 -0
- package/react/hooks/useFiveCurrentObserver.d.ts +11 -0
- package/react/hooks/useFiveCurrentState.d.ts +15 -0
- package/react/hooks/useFiveEventCallback.d.ts +12 -0
- package/react/hooks/useFiveFloor.d.ts +15 -0
- package/react/hooks/useFiveHelper.d.ts +14 -0
- package/react/hooks/useFiveModelBounding.d.ts +5 -0
- package/react/hooks/useFiveModelEffect.d.ts +14 -0
- package/react/hooks/useFiveModelIntersectRaycaster.d.ts +22 -0
- package/react/hooks/useFiveModelReadyState.d.ts +8 -0
- package/react/hooks/useFiveProject2d.d.ts +20 -0
- package/react/hooks/useFiveSceneEffect.d.ts +21 -0
- package/react/hooks/useFiveState.d.ts +6 -0
- package/react/hooks/useFiveWork.d.ts +29 -0
- package/react/index.d.ts +24 -830
- package/react/index.js +3 -3
- package/react/index.mjs +572 -783
- package/react/rendererPool.d.ts +7 -0
- package/react/withFive.d.ts +213 -0
- package/shader-lib/EvenessPlane/index.d.ts +10 -0
- package/shader-lib/PointCloudExpand/index.d.ts +59 -0
- package/shader-lib/PolygonCuter/index.d.ts +52 -0
- package/shader-lib/PolygonCuter/worker.d.ts +14 -0
- package/shader-lib/ShineModel/index.d.ts +7 -0
- package/shader-lib/SweepModel/index.d.ts +7 -0
- package/shader-lib/index.d.ts +5 -86
- package/shader-lib/index.js +13 -14
- package/shader-lib/index.mjs +424 -824
- package/sticker/geometry.d.ts +3 -0
- package/sticker/index.d.ts +68 -71
- package/sticker/index.js +3 -3
- package/sticker/index.mjs +102 -142
- package/umd/five-gltf-loader.js +9 -9
- package/umd/five-line.js +4 -4
- package/umd/five-plugins.js +17 -21
- package/umd/five-react.js +3 -3
- package/umd/five-shader-lib.js +13 -14
- package/umd/five-sticker.js +3 -3
- package/umd/five-vfx.js +21 -21
- package/umd/five-vue.js +3 -3
- package/umd/five.js +188 -336
- package/vfx/airflow/airflow.d.ts +18 -0
- package/vfx/airflow/fragment-shader.d.ts +2 -0
- package/vfx/airflow/vertex-shader.d.ts +2 -0
- package/vfx/common/scale-shader.d.ts +2 -0
- package/vfx/common/simplex-noise-shader.d.ts +2 -0
- package/vfx/frame/fragment-shader.d.ts +2 -0
- package/vfx/frame/frame.d.ts +22 -0
- package/vfx/frame/vertex-shader.d.ts +2 -0
- package/vfx/index.d.ts +7 -363
- package/vfx/index.js +21 -21
- package/vfx/index.mjs +454 -910
- package/vfx/particle/fragment-shader.d.ts +2 -0
- package/vfx/particle/instance.d.ts +36 -0
- package/vfx/particle/particle.d.ts +205 -0
- package/vfx/particle/utils.d.ts +11 -0
- package/vfx/particle/vertex-shader.d.ts +2 -0
- package/vfx/particle-gpu/fragment-shader.d.ts +2 -0
- package/vfx/particle-gpu/instance.d.ts +36 -0
- package/vfx/particle-gpu/particle.d.ts +95 -0
- package/vfx/particle-gpu/utils.d.ts +11 -0
- package/vfx/particle-gpu/vertex-shader.d.ts +2 -0
- package/vfx/spotLight/fragment-shader.d.ts +2 -0
- package/vfx/spotLight/spotLight.d.ts +15 -0
- package/vfx/spotLight/vertex-shader.d.ts +2 -0
- package/vue/context.d.ts +7 -0
- package/vue/hooks/FiveCanvas.d.ts +36 -0
- package/vue/hooks/FiveProvider.d.ts +35 -0
- package/vue/hooks/unsafe__useFiveInject.d.ts +9 -0
- package/vue/hooks/useFiveAction.d.ts +178 -0
- package/vue/hooks/useFiveCameraDirection.d.ts +8 -0
- package/vue/hooks/useFiveCameraRaycaster.d.ts +8 -0
- package/vue/hooks/useFiveCurrentObserver.d.ts +12 -0
- package/vue/hooks/useFiveCurrentState.d.ts +16 -0
- package/vue/hooks/useFiveEventCallback.d.ts +11 -0
- package/vue/hooks/useFiveFloor.d.ts +16 -0
- package/vue/hooks/useFiveHelper.d.ts +15 -0
- package/vue/hooks/useFiveModel.d.ts +7 -0
- package/vue/hooks/useFiveModelBounding.d.ts +7 -0
- package/vue/hooks/useFiveModelIntersectRaycaster.d.ts +23 -0
- package/vue/hooks/useFiveModelReadyState.d.ts +9 -0
- package/vue/hooks/useFiveProject2d.d.ts +26 -0
- package/vue/hooks/useFiveScene.d.ts +6 -0
- package/vue/hooks/useFiveState.d.ts +16 -0
- package/vue/hooks/useFiveWork.d.ts +30 -0
- package/vue/index.d.ts +23 -467
- package/vue/index.js +3 -3
- package/vue/index.mjs +309 -301
- package/vue/rendererPool.d.ts +10 -0
- package/work-downloader/components/model-3d-tile.d.ts +2 -0
- package/work-downloader/components/model.d.ts +3 -0
- package/work-downloader/components/observer.d.ts +7 -0
- package/work-downloader/download.d.ts +16 -0
- package/work-downloader/index.d.ts +2 -33
- package/work-downloader/index.js +3 -3
- package/work-downloader/index.mjs +317 -556
- package/work-downloader/type.d.ts +28 -0
- package/work-downloader/utils/download-to-file.d.ts +1 -0
- package/work-downloader/utils/image-processing.d.ts +7 -0
- package/work-downloader/utils/join-url.d.ts +2 -0
- package/work-downloader/utils/log.d.ts +1 -0
- package/work-downloader/utils/relative-url.d.ts +1 -0
- package/docs/documents/five.FivePlugin.plugin.html +0 -60
- package/docs/documents/plugin.html +0 -60
- package/docs/media/five.ts +0 -2881
- package/docs/media/pass.ts +0 -64
- package/guides/ai-doc-guidelines.md +0 -72
- package/guides/features/3dtile.md +0 -264
- package/guides/features/parameter.md +0 -178
- package/guides/plugin.md +0 -206
- /package/{guides → ai_guides}/release_notes/6.6.md +0 -0
- /package/{guides → ai_guides}/release_notes/6.7.md +0 -0
- /package/{guides → ai_guides}/support.md +0 -0
package/line/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* @realsee/five
|
|
4
|
-
* Generated:
|
|
5
|
-
* Version: 6.8.0-alpha.
|
|
4
|
+
* Generated: 3/19/2026
|
|
5
|
+
* Version: 6.8.0-alpha.21
|
|
6
6
|
* Terms:
|
|
7
7
|
* Realsee SDK License Agreement
|
|
8
8
|
* Update: July 28, 2021
|
|
@@ -252,522 +252,343 @@
|
|
|
252
252
|
* No amendment to or modification of this Agreement will be binding unless in
|
|
253
253
|
* writing and signed by Realsee. You and Realsee hereto confirm that this
|
|
254
254
|
* Agreement and all related documents shall be drafted in English.
|
|
255
|
-
*/import * as
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
255
|
+
*/import * as e from "three";
|
|
256
|
+
//#region build/line/utils/LineSegmentsGeometry.js
|
|
257
|
+
var t = class extends e.InstancedBufferGeometry {
|
|
258
|
+
constructor() {
|
|
259
|
+
super(), this.type = "LineSegmentsGeometry", this.setIndex([
|
|
260
|
+
0,
|
|
261
|
+
2,
|
|
262
|
+
1,
|
|
263
|
+
2,
|
|
264
|
+
3,
|
|
265
|
+
1,
|
|
266
|
+
2,
|
|
267
|
+
4,
|
|
268
|
+
3,
|
|
269
|
+
4,
|
|
270
|
+
5,
|
|
271
|
+
3,
|
|
272
|
+
4,
|
|
273
|
+
6,
|
|
274
|
+
5,
|
|
275
|
+
6,
|
|
276
|
+
7,
|
|
277
|
+
5
|
|
278
|
+
]), this.setAttribute("position", new e.Float32BufferAttribute([
|
|
279
|
+
-1,
|
|
280
|
+
2,
|
|
281
|
+
0,
|
|
282
|
+
1,
|
|
283
|
+
2,
|
|
284
|
+
0,
|
|
285
|
+
-1,
|
|
286
|
+
1,
|
|
287
|
+
0,
|
|
288
|
+
1,
|
|
289
|
+
1,
|
|
290
|
+
0,
|
|
291
|
+
-1,
|
|
292
|
+
0,
|
|
293
|
+
0,
|
|
294
|
+
1,
|
|
295
|
+
0,
|
|
296
|
+
0,
|
|
297
|
+
-1,
|
|
298
|
+
-1,
|
|
299
|
+
0,
|
|
300
|
+
1,
|
|
301
|
+
-1,
|
|
302
|
+
0
|
|
303
|
+
], 3)), this.setAttribute("uv", new e.Float32BufferAttribute([
|
|
304
|
+
-1,
|
|
305
|
+
2,
|
|
306
|
+
1,
|
|
307
|
+
2,
|
|
308
|
+
-1,
|
|
309
|
+
1,
|
|
310
|
+
1,
|
|
311
|
+
1,
|
|
312
|
+
-1,
|
|
313
|
+
-1,
|
|
314
|
+
1,
|
|
315
|
+
-1,
|
|
316
|
+
-1,
|
|
317
|
+
-2,
|
|
318
|
+
1,
|
|
319
|
+
-2
|
|
320
|
+
], 2));
|
|
321
|
+
}
|
|
322
|
+
applyMatrix4(e) {
|
|
323
|
+
let t = this.attributes.instanceStart, n = this.attributes.instanceEnd;
|
|
324
|
+
return t !== void 0 && (t.applyMatrix4(e), n.applyMatrix4(e), t.needsUpdate = !0), this.boundingBox !== null && this.computeBoundingBox(), this.boundingSphere !== null && this.computeBoundingSphere(), this;
|
|
325
|
+
}
|
|
326
|
+
setPositions(t) {
|
|
327
|
+
let n;
|
|
328
|
+
n = t instanceof Float32Array ? t : Array.isArray(t) ? new Float32Array(t) : new Float32Array();
|
|
329
|
+
let r = new e.InstancedInterleavedBuffer(n, 6, 1);
|
|
330
|
+
return this.setAttribute("instanceStart", new e.InterleavedBufferAttribute(r, 3, 0)), this.setAttribute("instanceEnd", new e.InterleavedBufferAttribute(r, 3, 3)), this.computeBoundingBox(), this.computeBoundingSphere(), this;
|
|
331
|
+
}
|
|
332
|
+
setColors(t) {
|
|
333
|
+
let n;
|
|
334
|
+
n = t instanceof Float32Array ? t : Array.isArray(t) ? new Float32Array(t) : new Float32Array();
|
|
335
|
+
let r = new e.InstancedInterleavedBuffer(n, 6, 1);
|
|
336
|
+
return this.setAttribute("instanceColorStart", new e.InterleavedBufferAttribute(r, 3, 0)), this.setAttribute("instanceColorEnd", new e.InterleavedBufferAttribute(r, 3, 3)), this;
|
|
337
|
+
}
|
|
338
|
+
fromWireframeGeometry(e) {
|
|
339
|
+
return this.setPositions(e.attributes.position.array), this;
|
|
340
|
+
}
|
|
341
|
+
fromEdgesGeometry(e) {
|
|
342
|
+
return this.setPositions(e.attributes.position.array), this;
|
|
343
|
+
}
|
|
344
|
+
fromMesh(t) {
|
|
345
|
+
return this.fromWireframeGeometry(new e.WireframeGeometry(t.geometry)), this;
|
|
346
|
+
}
|
|
347
|
+
fromLineSegments(t) {
|
|
348
|
+
var n = t.geometry;
|
|
349
|
+
if (n instanceof e.Geometry) {
|
|
350
|
+
let t = new e.BufferGeometry().fromGeometry(n);
|
|
351
|
+
this.setPositions(t.attributes.position.array);
|
|
352
|
+
} else n instanceof e.BufferGeometry && this.setPositions(n.attributes.position.array);
|
|
353
|
+
return this;
|
|
354
|
+
}
|
|
355
|
+
computeBoundingBox() {
|
|
356
|
+
this.boundingBox === null && (this.boundingBox = new e.Box3());
|
|
357
|
+
let t = this.attributes.instanceStart, n = this.attributes.instanceEnd;
|
|
358
|
+
if (t !== void 0 && n !== void 0) {
|
|
359
|
+
let r = new e.Box3();
|
|
360
|
+
this.boundingBox.setFromBufferAttribute(t), r.setFromBufferAttribute(n), this.boundingBox.union(r);
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
computeBoundingSphere() {
|
|
364
|
+
this.boundingSphere === null && (this.boundingSphere = new e.Sphere()), this.boundingBox === null && this.computeBoundingBox();
|
|
365
|
+
let t = this.attributes.instanceStart, n = this.attributes.instanceEnd;
|
|
366
|
+
if (t !== void 0 && n !== void 0) {
|
|
367
|
+
let r = this.boundingSphere.center;
|
|
368
|
+
this.boundingBox.getCenter(r);
|
|
369
|
+
let i = 0, a = new e.Vector3();
|
|
370
|
+
for (let e = 0, o = t.count; e < o; e++) a.fromBufferAttribute(t, e), i = Math.max(i, r.distanceToSquared(a)), a.fromBufferAttribute(n, e), i = Math.max(i, r.distanceToSquared(a));
|
|
371
|
+
this.boundingSphere.radius = Math.sqrt(i), isNaN(this.boundingSphere.radius) && console.error("THREE.LineSegmentsGeometry.computeBoundingSphere(): Computed radius is NaN. The instanced position data is likely to have NaN values.", this);
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
toJSON() {}
|
|
262
375
|
};
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
var t = a.call(this) || this;
|
|
278
|
-
t.type = "LineSegmentsGeometry";
|
|
279
|
-
var n = [-1, 2, 0, 1, 2, 0, -1, 1, 0, 1, 1, 0, -1, 0, 0, 1, 0, 0, -1, -1, 0, 1, -1, 0], e = [-1, 2, 1, 2, -1, 1, 1, 1, -1, -1, 1, -1, -1, -2, 1, -2], r = [0, 2, 1, 2, 3, 1, 2, 4, 3, 4, 5, 3, 4, 6, 5, 6, 7, 5];
|
|
280
|
-
return t.setIndex(r), t.setAttribute("position", new i.Float32BufferAttribute(n, 3)), t.setAttribute("uv", new i.Float32BufferAttribute(e, 2)), t;
|
|
281
|
-
}
|
|
282
|
-
return o.prototype.applyMatrix4 = function(t) {
|
|
283
|
-
var n = this.attributes.instanceStart, e = this.attributes.instanceEnd;
|
|
284
|
-
return n !== void 0 && (n.applyMatrix4(t), e.applyMatrix4(t), n.needsUpdate = !0), this.boundingBox !== null && this.computeBoundingBox(), this.boundingSphere !== null && this.computeBoundingSphere(), this;
|
|
285
|
-
}, o.prototype.setPositions = function(t) {
|
|
286
|
-
var n;
|
|
287
|
-
t instanceof Float32Array ? n = t : Array.isArray(t) ? n = new Float32Array(t) : n = new Float32Array();
|
|
288
|
-
var e = new i.InstancedInterleavedBuffer(n, 6, 1);
|
|
289
|
-
return this.setAttribute("instanceStart", new i.InterleavedBufferAttribute(e, 3, 0)), this.setAttribute("instanceEnd", new i.InterleavedBufferAttribute(e, 3, 3)), this.computeBoundingBox(), this.computeBoundingSphere(), this;
|
|
290
|
-
}, o.prototype.setColors = function(t) {
|
|
291
|
-
var n;
|
|
292
|
-
t instanceof Float32Array ? n = t : Array.isArray(t) ? n = new Float32Array(t) : n = new Float32Array();
|
|
293
|
-
var e = new i.InstancedInterleavedBuffer(n, 6, 1);
|
|
294
|
-
return this.setAttribute("instanceColorStart", new i.InterleavedBufferAttribute(e, 3, 0)), this.setAttribute("instanceColorEnd", new i.InterleavedBufferAttribute(e, 3, 3)), this;
|
|
295
|
-
}, o.prototype.fromWireframeGeometry = function(t) {
|
|
296
|
-
return this.setPositions(t.attributes.position.array), this;
|
|
297
|
-
}, o.prototype.fromEdgesGeometry = function(t) {
|
|
298
|
-
return this.setPositions(t.attributes.position.array), this;
|
|
299
|
-
}, o.prototype.fromMesh = function(t) {
|
|
300
|
-
return this.fromWireframeGeometry(new i.WireframeGeometry(t.geometry)), this;
|
|
301
|
-
}, o.prototype.fromLineSegments = function(t) {
|
|
302
|
-
var n = t.geometry;
|
|
303
|
-
if (n instanceof i.Geometry) {
|
|
304
|
-
var e = new i.BufferGeometry().fromGeometry(n);
|
|
305
|
-
this.setPositions(e.attributes.position.array);
|
|
306
|
-
} else n instanceof i.BufferGeometry && this.setPositions(n.attributes.position.array);
|
|
307
|
-
return this;
|
|
308
|
-
}, o.prototype.computeBoundingBox = function() {
|
|
309
|
-
this.boundingBox === null && (this.boundingBox = new i.Box3());
|
|
310
|
-
var t = this.attributes.instanceStart, n = this.attributes.instanceEnd;
|
|
311
|
-
if (t !== void 0 && n !== void 0) {
|
|
312
|
-
var e = new i.Box3();
|
|
313
|
-
this.boundingBox.setFromBufferAttribute(t), e.setFromBufferAttribute(n), this.boundingBox.union(e);
|
|
314
|
-
}
|
|
315
|
-
}, o.prototype.computeBoundingSphere = function() {
|
|
316
|
-
this.boundingSphere === null && (this.boundingSphere = new i.Sphere()), this.boundingBox === null && this.computeBoundingBox();
|
|
317
|
-
var t = this.attributes.instanceStart, n = this.attributes.instanceEnd;
|
|
318
|
-
if (t !== void 0 && n !== void 0) {
|
|
319
|
-
var e = this.boundingSphere.center;
|
|
320
|
-
this.boundingBox.getCenter(e);
|
|
321
|
-
for (var r = 0, s = new i.Vector3(), c = 0, p = t.count; c < p; c++)
|
|
322
|
-
s.fromBufferAttribute(t, c), r = Math.max(r, e.distanceToSquared(s)), s.fromBufferAttribute(n, c), r = Math.max(r, e.distanceToSquared(s));
|
|
323
|
-
this.boundingSphere.radius = Math.sqrt(r), isNaN(this.boundingSphere.radius) && console.error("THREE.LineSegmentsGeometry.computeBoundingSphere(): Computed radius is NaN. The instanced position data is likely to have NaN values.", this);
|
|
324
|
-
}
|
|
325
|
-
}, o.prototype.toJSON = function() {
|
|
326
|
-
}, o;
|
|
327
|
-
})(i.InstancedBufferGeometry)
|
|
328
|
-
);
|
|
329
|
-
Object.assign(B.prototype, { isLineSegmentsGeometry: !0 });
|
|
330
|
-
var x = {
|
|
331
|
-
uniforms: i.UniformsUtils.merge([
|
|
332
|
-
i.UniformsLib.common,
|
|
333
|
-
i.UniformsLib.fog,
|
|
334
|
-
{
|
|
335
|
-
linewidth: { value: 1 },
|
|
336
|
-
resolution: { value: new i.Vector2(1, 1) },
|
|
337
|
-
dashScale: { value: 1 },
|
|
338
|
-
dashSize: { value: 1 },
|
|
339
|
-
gapSize: { value: 1 },
|
|
340
|
-
// todo FIX - maybe change to totalSize
|
|
341
|
-
opacity: { value: 1 }
|
|
342
|
-
}
|
|
343
|
-
]),
|
|
344
|
-
vertexShader: `
|
|
345
|
-
#include <common>
|
|
346
|
-
#include <color_pars_vertex>
|
|
347
|
-
#include <fog_pars_vertex>
|
|
348
|
-
#include <logdepthbuf_pars_vertex>
|
|
349
|
-
#include <clipping_planes_pars_vertex>
|
|
350
|
-
|
|
351
|
-
uniform float linewidth;
|
|
352
|
-
uniform vec2 resolution;
|
|
353
|
-
|
|
354
|
-
attribute vec3 instanceStart;
|
|
355
|
-
attribute vec3 instanceEnd;
|
|
356
|
-
|
|
357
|
-
attribute vec3 instanceColorStart;
|
|
358
|
-
attribute vec3 instanceColorEnd;
|
|
359
|
-
|
|
360
|
-
varying vec2 vUv;
|
|
361
|
-
|
|
362
|
-
#ifdef USE_DASH
|
|
363
|
-
|
|
364
|
-
uniform float dashScale;
|
|
365
|
-
attribute float instanceDistanceStart;
|
|
366
|
-
attribute float instanceDistanceEnd;
|
|
367
|
-
varying float vLineDistance;
|
|
368
|
-
|
|
369
|
-
#endif
|
|
370
|
-
|
|
371
|
-
void trimSegment( const in vec4 start, inout vec4 end ) {
|
|
372
|
-
|
|
373
|
-
// trim end segment so it terminates between the camera plane and the near plane
|
|
374
|
-
|
|
375
|
-
// conservative estimate of the near plane
|
|
376
|
-
float a = projectionMatrix[ 2 ][ 2 ]; // 3nd entry in 3th column
|
|
377
|
-
float b = projectionMatrix[ 3 ][ 2 ]; // 3nd entry in 4th column
|
|
378
|
-
float nearEstimate = - 0.5 * b / a;
|
|
379
|
-
|
|
380
|
-
float alpha = ( nearEstimate - start.z ) / ( end.z - start.z );
|
|
381
|
-
|
|
382
|
-
end.xyz = mix( start.xyz, end.xyz, alpha );
|
|
383
|
-
|
|
376
|
+
Object.assign(t.prototype, { isLineSegmentsGeometry: !0 });
|
|
377
|
+
//#endregion
|
|
378
|
+
//#region build/line/utils/LineMaterial.js
|
|
379
|
+
var n = {
|
|
380
|
+
uniforms: e.UniformsUtils.merge([
|
|
381
|
+
e.UniformsLib.common,
|
|
382
|
+
e.UniformsLib.fog,
|
|
383
|
+
{
|
|
384
|
+
linewidth: { value: 1 },
|
|
385
|
+
resolution: { value: new e.Vector2(1, 1) },
|
|
386
|
+
dashScale: { value: 1 },
|
|
387
|
+
dashSize: { value: 1 },
|
|
388
|
+
gapSize: { value: 1 },
|
|
389
|
+
opacity: { value: 1 }
|
|
384
390
|
}
|
|
385
|
-
|
|
386
|
-
void main() {
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
391
|
+
]),
|
|
392
|
+
vertexShader: "\n #include <common>\n #include <color_pars_vertex>\n #include <fog_pars_vertex>\n #include <logdepthbuf_pars_vertex>\n #include <clipping_planes_pars_vertex>\n\n uniform float linewidth;\n uniform vec2 resolution;\n\n attribute vec3 instanceStart;\n attribute vec3 instanceEnd;\n\n attribute vec3 instanceColorStart;\n attribute vec3 instanceColorEnd;\n\n varying vec2 vUv;\n\n #ifdef USE_DASH\n\n uniform float dashScale;\n attribute float instanceDistanceStart;\n attribute float instanceDistanceEnd;\n varying float vLineDistance;\n\n #endif\n\n void trimSegment( const in vec4 start, inout vec4 end ) {\n\n // trim end segment so it terminates between the camera plane and the near plane\n\n // conservative estimate of the near plane\n float a = projectionMatrix[ 2 ][ 2 ]; // 3nd entry in 3th column\n float b = projectionMatrix[ 3 ][ 2 ]; // 3nd entry in 4th column\n float nearEstimate = - 0.5 * b / a;\n\n float alpha = ( nearEstimate - start.z ) / ( end.z - start.z );\n\n end.xyz = mix( start.xyz, end.xyz, alpha );\n\n }\n\n void main() {\n\n #ifdef USE_COLOR\n\n vColor.xyz = ( position.y < 0.5 ) ? instanceColorStart : instanceColorEnd;\n\n #endif\n\n #ifdef USE_DASH\n\n vLineDistance = ( position.y < 0.5 ) ? dashScale * instanceDistanceStart : dashScale * instanceDistanceEnd;\n\n #endif\n\n float aspect = resolution.x / resolution.y;\n\n vUv = uv;\n\n // camera space\n vec4 start = modelViewMatrix * vec4( instanceStart, 1.0 );\n vec4 end = modelViewMatrix * vec4( instanceEnd, 1.0 );\n\n // special case for perspective projection, and segments that terminate either in, or behind, the camera plane\n // clearly the gpu firmware has a way of addressing this issue when projecting into ndc space\n // but we need to perform ndc-space calculations in the shader, so we must address this issue directly\n // perhaps there is a more elegant solution -- WestLangley\n\n bool perspective = ( projectionMatrix[ 2 ][ 3 ] == - 1.0 ); // 4th entry in the 3rd column\n\n if ( perspective ) {\n\n if ( start.z < 0.0 && end.z >= 0.0 ) {\n\n trimSegment( start, end );\n\n } else if ( end.z < 0.0 && start.z >= 0.0 ) {\n\n trimSegment( end, start );\n\n }\n\n }\n\n // clip space\n vec4 clipStart = projectionMatrix * start;\n vec4 clipEnd = projectionMatrix * end;\n\n // ndc space\n vec2 ndcStart = clipStart.xy / clipStart.w;\n vec2 ndcEnd = clipEnd.xy / clipEnd.w;\n\n // direction\n vec2 dir = ndcEnd - ndcStart;\n\n // account for clip-space aspect ratio\n dir.x *= aspect;\n dir = normalize( dir );\n\n // perpendicular to dir\n vec2 offset = vec2( dir.y, - dir.x );\n\n // undo aspect ratio adjustment\n dir.x /= aspect;\n offset.x /= aspect;\n\n // sign flip\n if ( position.x < 0.0 ) offset *= - 1.0;\n\n // endcaps\n if ( position.y < 0.0 ) {\n\n offset += - dir;\n\n } else if ( position.y > 1.0 ) {\n\n offset += dir;\n\n }\n\n // adjust for linewidth\n offset *= linewidth;\n\n // adjust for clip-space to screen-space conversion // maybe resolution should be based on viewport ...\n offset /= resolution.y;\n\n // select end\n vec4 clip = ( position.y < 0.5 ) ? clipStart : clipEnd;\n\n // back to clip space\n offset *= clip.w;\n\n clip.xy += offset;\n\n gl_Position = clip;\n\n vec4 mvPosition = ( position.y < 0.5 ) ? start : end; // this is an approximation\n\n #include <logdepthbuf_vertex>\n #include <clipping_planes_vertex>\n #include <fog_vertex>\n\n }\n ",
|
|
393
|
+
fragmentShader: "\n uniform vec3 diffuse;\n uniform float opacity;\n\n #ifdef USE_DASH\n\n uniform float dashSize;\n uniform float gapSize;\n\n #endif\n\n varying float vLineDistance;\n\n #include <common>\n #include <color_pars_fragment>\n #include <fog_pars_fragment>\n #include <logdepthbuf_pars_fragment>\n #include <clipping_planes_pars_fragment>\n\n varying vec2 vUv;\n\n void main() {\n\n #include <clipping_planes_fragment>\n\n #ifdef USE_DASH\n\n if ( vUv.y < - 1.0 || vUv.y > 1.0 ) discard; // discard endcaps\n\n if ( mod( vLineDistance, dashSize + gapSize ) > dashSize ) discard; // todo - FIX\n\n #endif\n\n if ( abs( vUv.y ) > 1.0 ) {\n\n float a = vUv.x;\n float b = ( vUv.y > 0.0 ) ? vUv.y - 1.0 : vUv.y + 1.0;\n float len2 = a * a + b * b;\n\n if ( len2 > 1.0 ) discard;\n\n }\n\n vec4 diffuseColor = vec4( diffuse, opacity );\n\n #include <logdepthbuf_fragment>\n #include <color_fragment>\n\n gl_FragColor = vec4( diffuseColor.rgb, diffuseColor.a );\n\n #include <tonemapping_fragment>\n #include <fog_fragment>\n #include <premultiplied_alpha_fragment>\n\n }\n "
|
|
394
|
+
}, r = class extends e.ShaderMaterial {
|
|
395
|
+
constructor(t) {
|
|
396
|
+
super({
|
|
397
|
+
uniforms: e.UniformsUtils.clone(n.uniforms),
|
|
398
|
+
vertexShader: n.vertexShader,
|
|
399
|
+
fragmentShader: n.fragmentShader,
|
|
400
|
+
clipping: !0
|
|
401
|
+
}), this.type = "LineMaterial", this.dashed = !1, Object.defineProperties(this, {
|
|
402
|
+
color: {
|
|
403
|
+
enumerable: !0,
|
|
404
|
+
get() {
|
|
405
|
+
return this.uniforms.diffuse.value;
|
|
406
|
+
},
|
|
407
|
+
set(e) {
|
|
408
|
+
this.uniforms.diffuse.value = e;
|
|
409
|
+
}
|
|
410
|
+
},
|
|
411
|
+
linewidth: {
|
|
412
|
+
enumerable: !0,
|
|
413
|
+
get() {
|
|
414
|
+
return this.uniforms.linewidth.value;
|
|
415
|
+
},
|
|
416
|
+
set(e) {
|
|
417
|
+
this.uniforms.linewidth.value = e;
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
dashScale: {
|
|
421
|
+
enumerable: !0,
|
|
422
|
+
get() {
|
|
423
|
+
return this.uniforms.dashScale.value;
|
|
424
|
+
},
|
|
425
|
+
set(e) {
|
|
426
|
+
this.uniforms.dashScale.value = e;
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
dashSize: {
|
|
430
|
+
enumerable: !0,
|
|
431
|
+
get() {
|
|
432
|
+
return this.uniforms.dashSize.value;
|
|
433
|
+
},
|
|
434
|
+
set(e) {
|
|
435
|
+
this.uniforms.dashSize.value = e;
|
|
436
|
+
}
|
|
437
|
+
},
|
|
438
|
+
gapSize: {
|
|
439
|
+
enumerable: !0,
|
|
440
|
+
get() {
|
|
441
|
+
return this.uniforms.gapSize.value;
|
|
442
|
+
},
|
|
443
|
+
set(e) {
|
|
444
|
+
this.uniforms.gapSize.value = e;
|
|
445
|
+
}
|
|
446
|
+
},
|
|
447
|
+
opacity: {
|
|
448
|
+
enumerable: !0,
|
|
449
|
+
get() {
|
|
450
|
+
return this.uniforms.opacity.value;
|
|
451
|
+
},
|
|
452
|
+
set(e) {
|
|
453
|
+
this.uniforms.opacity.value = e;
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
resolution: {
|
|
457
|
+
enumerable: !0,
|
|
458
|
+
get() {
|
|
459
|
+
return this.uniforms.resolution.value;
|
|
460
|
+
},
|
|
461
|
+
set(e) {
|
|
462
|
+
this.uniforms.resolution.value.copy(e);
|
|
425
463
|
}
|
|
426
|
-
|
|
427
464
|
}
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
465
|
+
}), this.setValues(t);
|
|
466
|
+
}
|
|
467
|
+
};
|
|
468
|
+
Object.assign(r.prototype, { isLineMaterial: !0 });
|
|
469
|
+
//#endregion
|
|
470
|
+
//#region build/line/utils/LineSegments2.js
|
|
471
|
+
var i = class extends e.Mesh {
|
|
472
|
+
constructor(e, n) {
|
|
473
|
+
super(), this.type = "LineSegments2", this.geometry = e === void 0 ? new t() : e, this.material = n === void 0 ? new r({ color: Math.random() * 16777215 }) : n;
|
|
474
|
+
}
|
|
475
|
+
computeLineDistances() {
|
|
476
|
+
let t = this.geometry, n = t.attributes.instanceStart, r = t.attributes.instanceEnd, i = new Float32Array(2 * n.count), a = new e.Vector3(), o = new e.Vector3();
|
|
477
|
+
for (var s = 0, c = 0, l = n.count; s < l; s++, c += 2) a.fromBufferAttribute(n, s), o.fromBufferAttribute(r, s), i[c] = c === 0 ? 0 : i[c - 1], i[c + 1] = i[c] + a.distanceTo(o);
|
|
478
|
+
let u = new e.InstancedInterleavedBuffer(i, 2, 1);
|
|
479
|
+
return t.setAttribute("instanceDistanceStart", new e.InterleavedBufferAttribute(u, 1, 0)), t.setAttribute("instanceDistanceEnd", new e.InterleavedBufferAttribute(u, 1, 1)), this;
|
|
480
|
+
}
|
|
481
|
+
raycast(t, n) {
|
|
482
|
+
t.camera === null && console.error("LineSegments2: \"Raycaster.camera\" needs to be set in order to raycast against LineSegments2.");
|
|
483
|
+
let r = t.ray, i = t.camera, a = i.projectionMatrix, o = this.geometry, s = this.material, c = s.resolution, l = s.linewidth, u = o.attributes.instanceStart, d = o.attributes.instanceEnd, f = new e.Vector4(), p = new e.Vector4(), m = new e.Vector4(), h = new e.Vector3(), g = new e.Matrix4(), _ = new e.Line3(), v = new e.Vector3();
|
|
484
|
+
r.at(1, m), m.w = 1, m.applyMatrix4(i.matrixWorldInverse), m.applyMatrix4(a), m.multiplyScalar(1 / m.w), m.x *= c.x / 2, m.y *= c.y / 2, m.z = 0, h.copy(m);
|
|
485
|
+
let y = this.matrixWorld;
|
|
486
|
+
g.multiplyMatrices(i.matrixWorldInverse, y);
|
|
487
|
+
for (var b = 0, x = u.count; b < x; b++) {
|
|
488
|
+
f.fromBufferAttribute(u, b), p.fromBufferAttribute(d, b), f.w = 1, p.w = 1, f.applyMatrix4(g), p.applyMatrix4(g), f.applyMatrix4(a), p.applyMatrix4(a), f.multiplyScalar(1 / f.w), p.multiplyScalar(1 / p.w);
|
|
489
|
+
var S = f.z < -1 && p.z < -1, C = f.z > 1 && p.z > 1;
|
|
490
|
+
if (S || C) continue;
|
|
491
|
+
f.x *= c.x / 2, f.y *= c.y / 2, p.x *= c.x / 2, p.y *= c.y / 2, _.start.copy(f), _.start.z = 0, _.end.copy(p), _.end.z = 0;
|
|
492
|
+
let t = _.closestPointToPointParameter(h, !0);
|
|
493
|
+
_.at(t, v);
|
|
494
|
+
let i = e.MathUtils.lerp(f.z, p.z, t), o = i >= -1 && i <= 1;
|
|
495
|
+
var w = h.distanceTo(v) < l * .5;
|
|
496
|
+
if (o && w) {
|
|
497
|
+
_.start.fromBufferAttribute(u, b), _.end.fromBufferAttribute(d, b), _.start.applyMatrix4(y), _.end.applyMatrix4(y);
|
|
498
|
+
var T = new e.Vector3(), E = new e.Vector3();
|
|
499
|
+
r.distanceSqToSegment(_.start, _.end, E, T), n.push({
|
|
500
|
+
point: E,
|
|
501
|
+
pointOnLine: T,
|
|
502
|
+
distance: r.origin.distanceTo(E),
|
|
503
|
+
object: this,
|
|
504
|
+
faceIndex: b
|
|
505
|
+
});
|
|
463
506
|
}
|
|
464
|
-
|
|
465
|
-
// adjust for linewidth
|
|
466
|
-
offset *= linewidth;
|
|
467
|
-
|
|
468
|
-
// adjust for clip-space to screen-space conversion // maybe resolution should be based on viewport ...
|
|
469
|
-
offset /= resolution.y;
|
|
470
|
-
|
|
471
|
-
// select end
|
|
472
|
-
vec4 clip = ( position.y < 0.5 ) ? clipStart : clipEnd;
|
|
473
|
-
|
|
474
|
-
// back to clip space
|
|
475
|
-
offset *= clip.w;
|
|
476
|
-
|
|
477
|
-
clip.xy += offset;
|
|
478
|
-
|
|
479
|
-
gl_Position = clip;
|
|
480
|
-
|
|
481
|
-
vec4 mvPosition = ( position.y < 0.5 ) ? start : end; // this is an approximation
|
|
482
|
-
|
|
483
|
-
#include <logdepthbuf_vertex>
|
|
484
|
-
#include <clipping_planes_vertex>
|
|
485
|
-
#include <fog_vertex>
|
|
486
|
-
|
|
487
507
|
}
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
508
|
+
}
|
|
509
|
+
};
|
|
510
|
+
Object.assign(i.prototype, { isLineSegments2: !0 });
|
|
511
|
+
//#endregion
|
|
512
|
+
//#region build/line/utils/Line2.js
|
|
513
|
+
var a = class extends i {
|
|
514
|
+
constructor(e, t) {
|
|
515
|
+
super(e, t), this.type = "Line2";
|
|
516
|
+
}
|
|
517
|
+
};
|
|
518
|
+
Object.assign(a.prototype, { isLine2: !0 });
|
|
519
|
+
//#endregion
|
|
520
|
+
//#region build/line/utils/LineGeometry.js
|
|
521
|
+
var o = class extends t {
|
|
522
|
+
constructor() {
|
|
523
|
+
super(), this.type = "LineGeometry";
|
|
524
|
+
}
|
|
525
|
+
setPositions(e) {
|
|
526
|
+
let t = e.length - 3, n = new Float32Array(2 * t);
|
|
527
|
+
for (let r = 0; r < t; r += 3) n[2 * r] = e[r], n[2 * r + 1] = e[r + 1], n[2 * r + 2] = e[r + 2], n[2 * r + 3] = e[r + 3], n[2 * r + 4] = e[r + 4], n[2 * r + 5] = e[r + 5];
|
|
528
|
+
return super.setPositions(n), this;
|
|
529
|
+
}
|
|
530
|
+
setColors(e) {
|
|
531
|
+
let t = e.length - 3, n = new Float32Array(2 * t);
|
|
532
|
+
for (let r = 0; r < t; r += 3) n[2 * r] = e[r], n[2 * r + 1] = e[r + 1], n[2 * r + 2] = e[r + 2], n[2 * r + 3] = e[r + 3], n[2 * r + 4] = e[r + 4], n[2 * r + 5] = e[r + 5];
|
|
533
|
+
return super.setColors(n), this;
|
|
534
|
+
}
|
|
535
|
+
fromLine(t) {
|
|
536
|
+
let n = t.geometry;
|
|
537
|
+
if (n instanceof e.Geometry) {
|
|
538
|
+
let t = new e.BufferGeometry().fromGeometry(n);
|
|
539
|
+
this.setPositions(t.attributes.position.array);
|
|
540
|
+
} else n instanceof e.BufferGeometry && this.setPositions(n.attributes.position.array);
|
|
541
|
+
return this;
|
|
542
|
+
}
|
|
543
|
+
copy() {
|
|
544
|
+
return this;
|
|
545
|
+
}
|
|
546
|
+
};
|
|
547
|
+
Object.assign(o.prototype, { isLineGeometry: !0 });
|
|
548
|
+
//#endregion
|
|
549
|
+
//#region build/line/index.js
|
|
550
|
+
var s = 14467195, c = 8, l = 2, u = 20, d = null, f = class extends e.Object3D {
|
|
551
|
+
static get version() {
|
|
552
|
+
return "6.8.0-alpha.21";
|
|
553
|
+
}
|
|
554
|
+
constructor(t = new e.Vector3(), n = new e.Vector3()) {
|
|
555
|
+
super(), this.type = "FiveLine", this.needsRender = !0, this.line = new a(new o(), new r({
|
|
556
|
+
color: s,
|
|
557
|
+
linewidth: l,
|
|
558
|
+
dashScale: u,
|
|
559
|
+
dashed: !1
|
|
560
|
+
}));
|
|
561
|
+
let i = new e.BufferGeometry(), f = new e.PointsMaterial({
|
|
562
|
+
color: s,
|
|
563
|
+
size: c,
|
|
564
|
+
map: d || (d = new e.TextureLoader().load("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sHDgwCEMBJZu0AAAAdaVRYdENvbW1lbnQAAAAAAENyZWF0ZWQgd2l0aCBHSU1QZC5lBwAABM5JREFUWMO1V0tPG2cUPZ4Hxh6DazIOrjFNqJs0FIMqWFgWQkatsmvVbtggKlSVRVf5AWz4AWz4AUSKEChll19QJYSXkECuhFxsHjEhxCYm+DWGMZ5HF72DJq4bAzFXurI0M/I5997v3u9cC65vTJVn2lX/xHINQOYSBLTLEuIuCWw4Z3IGAEvf6ASmVHjNzHCXBG4A0AjACsAOwEbO0nsFQBnAGYASAIl+ZRMR7SolMEdsByD09fV5R0ZGgg8ePPjW5/N1iqLYpuu6RZblciKR2I9Go69evnwZnZ+fjwI4IS8AKBIRzeQfJWCANwKwh0KhtrGxsYehUOin1tbW+zzP23ietzY2NnIAoGmaLsuyUiqVyvl8XtrY2NiamZn589mzZxsAUgCOAeQAnFI2tI+VxIjaAeDzoaGh7xYWFuZOTk6OZVk+12uYqqq6JEnn0Wg0OT4+/geAXwGEAdwDIFJQXC1wO4DWR48e/RCPxxclSSroVzRFUbSDg4P848ePFwH8DuAhkWih83TRQWxFOXgAwvDwcOfo6OhvXV1d39tsNtuVBwTDWBwOh1UUxVsMw1hXVlbSdCgNV43uYSvrHg6H24aHh38eHBz85TrgF9FYLHA4HLzH43FvbW2d7u/vG+dANp8FpqIlbd3d3V8Fg8EfBUFw4BONZVmL3+9vHhkZCQL4AoAHgJPK8G+yzC0XDofdoVAo5PP5vkadTBAEtr+/39ff3x8gAp/RPOEqx2qjx+NpvXv3bk9DQ0NDvQgwDIOWlhZrMBj8kgi0UJdxRgYMArzL5XJ7vd57qLPZ7Xamp6fnNgBXtQxcjFuHw+Hyer3t9SYgCAITCAScAJoBNNEY/08GOFVVrfVMv7kMNDntFD1vjIAPrlRN0xjckOm6biFQ3jwNPwDMZrOnqVTqfb3Bi8Wivru7W/VCYkwPlKOjo0IikXh7EwQikYgE4Nw0CfXKDCipVCoTj8df3QABbW1tLUc6oUgkFPMkVACUNjc337148eKvw8PDbJ2jP1taWkoCyNDVXDSECmNSK4qiKNLq6urW8+fPI/UicHx8rD59+jSVy+WOAKSJhKENwFItLtoxk8mwsixzHR0dHe3t7c5PAU+n09rs7OzJkydPYqVSaQfANoDXALIk31S2smU1TWMPDg7K5XKZ7+3t9TudTut1U7+wsFCcmJiIpdPpbQBxADsAknQWymYCOukBHYCuKApisdhpMpnURFEU79y503TVyKenpzOTk5M7e3t7MQKPV0Zv1gNm+awB0MvlshqLxfLb29uyJElWURSbXC4XXyvqxcXFs6mpqeTc3Nzu3t7e3wQcA7BPZ8Cov1pNlJplmQtAG8MwHV6v95tAINA5MDBwPxAIuLu6upr8fr/VAN3c3JQjkcjZ+vp6fnl5+d2bN29SuVzuNYAEpf01CdRChUL+X1VskHACuA3Ay3Fcu9vt7nA6nZ7m5uYWQRCaNE3jVVW15PP580KhIGUymWw2m00DOAJwSP4WwPtq4LX2Ao6USxNlQyS/RcQcdLGwlNIz6vEMAaZpNzCk2Pll94LK/cDYimxERiBwG10sxjgvEZBE0UpE6vxj+0Ct5bTaXthgEhRmja8QWNkkPGsuIpfdjpkK+cZUWTC0KredVmtD/gdlSl6EG4AMvQAAAABJRU5ErkJggg==")),
|
|
565
|
+
sizeAttenuation: !1,
|
|
566
|
+
transparent: !0
|
|
567
|
+
});
|
|
568
|
+
this.points = new e.Points(i, f), this.points.renderOrder = 11, this.points.frustumCulled = !1, this.setPoints(t, n), this.add(this.line, this.points);
|
|
569
|
+
}
|
|
570
|
+
setPoints(t, n) {
|
|
571
|
+
let r = [].concat(t.toArray(), n.toArray());
|
|
572
|
+
this.points.geometry.setAttribute("position", new e.BufferAttribute(new Float32Array(r), 3)), this.line.geometry.setPositions(r), this.line.computeLineDistances(), this.needsRender = !0;
|
|
573
|
+
}
|
|
574
|
+
getPoints() {
|
|
575
|
+
let t = this.points.geometry.attributes.position.array;
|
|
576
|
+
return [new e.Vector3(t[0], t[1], t[2]), new e.Vector3(t[3], t[4], t[5])];
|
|
577
|
+
}
|
|
578
|
+
setMaterial(e) {
|
|
579
|
+
let t = this.line.material;
|
|
580
|
+
for (let n in e) {
|
|
581
|
+
if (!e.hasOwnProperty(n)) continue;
|
|
582
|
+
let r = e[n];
|
|
583
|
+
n === "dashed" ? (t.dashed = r, r ? t.defines.USE_DASH = "" : delete t.defines.USE_DASH, t.needsUpdate = !0) : t[n] = e[n];
|
|
543
584
|
}
|
|
544
|
-
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
var n = a.call(this, {
|
|
551
|
-
uniforms: i.UniformsUtils.clone(x.uniforms),
|
|
552
|
-
vertexShader: x.vertexShader,
|
|
553
|
-
fragmentShader: x.fragmentShader,
|
|
554
|
-
clipping: !0
|
|
555
|
-
// required for clipping support
|
|
556
|
-
}) || this;
|
|
557
|
-
return n.type = "LineMaterial", n.dashed = !1, Object.defineProperties(n, {
|
|
558
|
-
color: {
|
|
559
|
-
enumerable: !0,
|
|
560
|
-
get: function() {
|
|
561
|
-
return this.uniforms.diffuse.value;
|
|
562
|
-
},
|
|
563
|
-
set: function(e) {
|
|
564
|
-
this.uniforms.diffuse.value = e;
|
|
565
|
-
}
|
|
566
|
-
},
|
|
567
|
-
linewidth: {
|
|
568
|
-
enumerable: !0,
|
|
569
|
-
get: function() {
|
|
570
|
-
return this.uniforms.linewidth.value;
|
|
571
|
-
},
|
|
572
|
-
set: function(e) {
|
|
573
|
-
this.uniforms.linewidth.value = e;
|
|
574
|
-
}
|
|
575
|
-
},
|
|
576
|
-
dashScale: {
|
|
577
|
-
enumerable: !0,
|
|
578
|
-
get: function() {
|
|
579
|
-
return this.uniforms.dashScale.value;
|
|
580
|
-
},
|
|
581
|
-
set: function(e) {
|
|
582
|
-
this.uniforms.dashScale.value = e;
|
|
583
|
-
}
|
|
584
|
-
},
|
|
585
|
-
dashSize: {
|
|
586
|
-
enumerable: !0,
|
|
587
|
-
get: function() {
|
|
588
|
-
return this.uniforms.dashSize.value;
|
|
589
|
-
},
|
|
590
|
-
set: function(e) {
|
|
591
|
-
this.uniforms.dashSize.value = e;
|
|
592
|
-
}
|
|
593
|
-
},
|
|
594
|
-
gapSize: {
|
|
595
|
-
enumerable: !0,
|
|
596
|
-
get: function() {
|
|
597
|
-
return this.uniforms.gapSize.value;
|
|
598
|
-
},
|
|
599
|
-
set: function(e) {
|
|
600
|
-
this.uniforms.gapSize.value = e;
|
|
601
|
-
}
|
|
602
|
-
},
|
|
603
|
-
opacity: {
|
|
604
|
-
enumerable: !0,
|
|
605
|
-
get: function() {
|
|
606
|
-
return this.uniforms.opacity.value;
|
|
607
|
-
},
|
|
608
|
-
set: function(e) {
|
|
609
|
-
this.uniforms.opacity.value = e;
|
|
610
|
-
}
|
|
611
|
-
},
|
|
612
|
-
resolution: {
|
|
613
|
-
enumerable: !0,
|
|
614
|
-
get: function() {
|
|
615
|
-
return this.uniforms.resolution.value;
|
|
616
|
-
},
|
|
617
|
-
set: function(e) {
|
|
618
|
-
this.uniforms.resolution.value.copy(e);
|
|
619
|
-
}
|
|
620
|
-
}
|
|
621
|
-
}), n.setValues(t), n;
|
|
622
|
-
}
|
|
623
|
-
return o;
|
|
624
|
-
})(i.ShaderMaterial)
|
|
625
|
-
);
|
|
626
|
-
Object.assign(L.prototype, { isLineMaterial: !0 });
|
|
627
|
-
var F = (
|
|
628
|
-
/** @class */
|
|
629
|
-
(function(a) {
|
|
630
|
-
A(o, a);
|
|
631
|
-
function o(t, n) {
|
|
632
|
-
var e = a.call(this) || this;
|
|
633
|
-
return e.type = "LineSegments2", e.geometry = t !== void 0 ? t : new B(), e.material = n !== void 0 ? n : new L({ color: Math.random() * 16777215 }), e;
|
|
634
|
-
}
|
|
635
|
-
return o.prototype.computeLineDistances = function() {
|
|
636
|
-
for (var t = this.geometry, n = t.attributes.instanceStart, e = t.attributes.instanceEnd, r = new Float32Array(2 * n.count), s = new i.Vector3(), c = new i.Vector3(), p = 0, u = 0, y = n.count; p < y; p++, u += 2)
|
|
637
|
-
s.fromBufferAttribute(n, p), c.fromBufferAttribute(e, p), r[u] = u === 0 ? 0 : r[u - 1], r[u + 1] = r[u] + s.distanceTo(c);
|
|
638
|
-
var m = new i.InstancedInterleavedBuffer(r, 2, 1);
|
|
639
|
-
return t.setAttribute("instanceDistanceStart", new i.InterleavedBufferAttribute(m, 1, 0)), t.setAttribute("instanceDistanceEnd", new i.InterleavedBufferAttribute(m, 1, 1)), this;
|
|
640
|
-
}, o.prototype.raycast = function(t, n) {
|
|
641
|
-
t.camera === null && console.error('LineSegments2: "Raycaster.camera" needs to be set in order to raycast against LineSegments2.');
|
|
642
|
-
var e = t.ray, r = t.camera, s = r.projectionMatrix, c = this.geometry, p = this.material, u = p.resolution, y = p.linewidth, m = c.attributes.instanceStart, M = c.attributes.instanceEnd, l = new i.Vector4(), f = new i.Vector4(), v = new i.Vector4(), g = new i.Vector3(), S = new i.Matrix4(), d = new i.Line3(), C = new i.Vector3();
|
|
643
|
-
e.at(1, v), v.w = 1, v.applyMatrix4(r.matrixWorldInverse), v.applyMatrix4(s), v.multiplyScalar(1 / v.w), v.x *= u.x / 2, v.y *= u.y / 2, v.z = 0, g.copy(v);
|
|
644
|
-
var w = this.matrixWorld;
|
|
645
|
-
S.multiplyMatrices(r.matrixWorldInverse, w);
|
|
646
|
-
for (var h = 0, N = m.count; h < N; h++) {
|
|
647
|
-
l.fromBufferAttribute(m, h), f.fromBufferAttribute(M, h), l.w = 1, f.w = 1, l.applyMatrix4(S), f.applyMatrix4(S), l.applyMatrix4(s), f.applyMatrix4(s), l.multiplyScalar(1 / l.w), f.multiplyScalar(1 / f.w);
|
|
648
|
-
var _ = l.z < -1 && f.z < -1, G = l.z > 1 && f.z > 1;
|
|
649
|
-
if (!(_ || G)) {
|
|
650
|
-
l.x *= u.x / 2, l.y *= u.y / 2, f.x *= u.x / 2, f.y *= u.y / 2, d.start.copy(l), d.start.z = 0, d.end.copy(f), d.end.z = 0;
|
|
651
|
-
var U = d.closestPointToPointParameter(g, !0);
|
|
652
|
-
d.at(U, C);
|
|
653
|
-
var z = i.MathUtils.lerp(l.z, f.z, U), W = z >= -1 && z <= 1, j = g.distanceTo(C) < y * 0.5;
|
|
654
|
-
if (W && j) {
|
|
655
|
-
d.start.fromBufferAttribute(m, h), d.end.fromBufferAttribute(M, h), d.start.applyMatrix4(w), d.end.applyMatrix4(w);
|
|
656
|
-
var P = new i.Vector3(), b = new i.Vector3();
|
|
657
|
-
e.distanceSqToSegment(d.start, d.end, b, P), n.push({
|
|
658
|
-
point: b,
|
|
659
|
-
pointOnLine: P,
|
|
660
|
-
distance: e.origin.distanceTo(b),
|
|
661
|
-
object: this,
|
|
662
|
-
faceIndex: h
|
|
663
|
-
});
|
|
664
|
-
}
|
|
665
|
-
}
|
|
666
|
-
}
|
|
667
|
-
}, o;
|
|
668
|
-
})(i.Mesh)
|
|
669
|
-
);
|
|
670
|
-
Object.assign(F.prototype, { isLineSegments2: !0 });
|
|
671
|
-
var I = (
|
|
672
|
-
/** @class */
|
|
673
|
-
(function(a) {
|
|
674
|
-
A(o, a);
|
|
675
|
-
function o(t, n) {
|
|
676
|
-
var e = a.call(this, t, n) || this;
|
|
677
|
-
return e.type = "Line2", e;
|
|
678
|
-
}
|
|
679
|
-
return o;
|
|
680
|
-
})(F)
|
|
681
|
-
);
|
|
682
|
-
Object.assign(I.prototype, { isLine2: !0 });
|
|
683
|
-
var O = (
|
|
684
|
-
/** @class */
|
|
685
|
-
(function(a) {
|
|
686
|
-
A(o, a);
|
|
687
|
-
function o() {
|
|
688
|
-
var t = a.call(this) || this;
|
|
689
|
-
return t.type = "LineGeometry", t;
|
|
690
|
-
}
|
|
691
|
-
return o.prototype.setPositions = function(t) {
|
|
692
|
-
for (var n = t.length - 3, e = new Float32Array(2 * n), r = 0; r < n; r += 3)
|
|
693
|
-
e[2 * r] = t[r], e[2 * r + 1] = t[r + 1], e[2 * r + 2] = t[r + 2], e[2 * r + 3] = t[r + 3], e[2 * r + 4] = t[r + 4], e[2 * r + 5] = t[r + 5];
|
|
694
|
-
return a.prototype.setPositions.call(this, e), this;
|
|
695
|
-
}, o.prototype.setColors = function(t) {
|
|
696
|
-
for (var n = t.length - 3, e = new Float32Array(2 * n), r = 0; r < n; r += 3)
|
|
697
|
-
e[2 * r] = t[r], e[2 * r + 1] = t[r + 1], e[2 * r + 2] = t[r + 2], e[2 * r + 3] = t[r + 3], e[2 * r + 4] = t[r + 4], e[2 * r + 5] = t[r + 5];
|
|
698
|
-
return a.prototype.setColors.call(this, e), this;
|
|
699
|
-
}, o.prototype.fromLine = function(t) {
|
|
700
|
-
var n = t.geometry;
|
|
701
|
-
if (n instanceof i.Geometry) {
|
|
702
|
-
var e = new i.BufferGeometry().fromGeometry(n);
|
|
703
|
-
this.setPositions(e.attributes.position.array);
|
|
704
|
-
} else n instanceof i.BufferGeometry && this.setPositions(n.attributes.position.array);
|
|
705
|
-
return this;
|
|
706
|
-
}, o.prototype.copy = function() {
|
|
707
|
-
return this;
|
|
708
|
-
}, o;
|
|
709
|
-
})(B)
|
|
710
|
-
);
|
|
711
|
-
Object.assign(O.prototype, { isLineGeometry: !0 });
|
|
712
|
-
var T = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sHDgwCEMBJZu0AAAAdaVRYdENvbW1lbnQAAAAAAENyZWF0ZWQgd2l0aCBHSU1QZC5lBwAABM5JREFUWMO1V0tPG2cUPZ4Hxh6DazIOrjFNqJs0FIMqWFgWQkatsmvVbtggKlSVRVf5AWz4AWz4AUSKEChll19QJYSXkECuhFxsHjEhxCYm+DWGMZ5HF72DJq4bAzFXurI0M/I5997v3u9cC65vTJVn2lX/xHINQOYSBLTLEuIuCWw4Z3IGAEvf6ASmVHjNzHCXBG4A0AjACsAOwEbO0nsFQBnAGYASAIl+ZRMR7SolMEdsByD09fV5R0ZGgg8ePPjW5/N1iqLYpuu6RZblciKR2I9Go69evnwZnZ+fjwI4IS8AKBIRzeQfJWCANwKwh0KhtrGxsYehUOin1tbW+zzP23ietzY2NnIAoGmaLsuyUiqVyvl8XtrY2NiamZn589mzZxsAUgCOAeQAnFI2tI+VxIjaAeDzoaGh7xYWFuZOTk6OZVk+12uYqqq6JEnn0Wg0OT4+/geAXwGEAdwDIFJQXC1wO4DWR48e/RCPxxclSSroVzRFUbSDg4P848ePFwH8DuAhkWih83TRQWxFOXgAwvDwcOfo6OhvXV1d39tsNtuVBwTDWBwOh1UUxVsMw1hXVlbSdCgNV43uYSvrHg6H24aHh38eHBz85TrgF9FYLHA4HLzH43FvbW2d7u/vG+dANp8FpqIlbd3d3V8Fg8EfBUFw4BONZVmL3+9vHhkZCQL4AoAHgJPK8G+yzC0XDofdoVAo5PP5vkadTBAEtr+/39ff3x8gAp/RPOEqx2qjx+NpvXv3bk9DQ0NDvQgwDIOWlhZrMBj8kgi0UJdxRgYMArzL5XJ7vd57qLPZ7Xamp6fnNgBXtQxcjFuHw+Hyer3t9SYgCAITCAScAJoBNNEY/08GOFVVrfVMv7kMNDntFD1vjIAPrlRN0xjckOm6biFQ3jwNPwDMZrOnqVTqfb3Bi8Wivru7W/VCYkwPlKOjo0IikXh7EwQikYgE4Nw0CfXKDCipVCoTj8df3QABbW1tLUc6oUgkFPMkVACUNjc337148eKvw8PDbJ2jP1taWkoCyNDVXDSECmNSK4qiKNLq6urW8+fPI/UicHx8rD59+jSVy+WOAKSJhKENwFItLtoxk8mwsixzHR0dHe3t7c5PAU+n09rs7OzJkydPYqVSaQfANoDXALIk31S2smU1TWMPDg7K5XKZ7+3t9TudTut1U7+wsFCcmJiIpdPpbQBxADsAknQWymYCOukBHYCuKApisdhpMpnURFEU79y503TVyKenpzOTk5M7e3t7MQKPV0Zv1gNm+awB0MvlshqLxfLb29uyJElWURSbXC4XXyvqxcXFs6mpqeTc3Nzu3t7e3wQcA7BPZ8Cov1pNlJplmQtAG8MwHV6v95tAINA5MDBwPxAIuLu6upr8fr/VAN3c3JQjkcjZ+vp6fnl5+d2bN29SuVzuNYAEpf01CdRChUL+X1VskHACuA3Ay3Fcu9vt7nA6nZ7m5uYWQRCaNE3jVVW15PP580KhIGUymWw2m00DOAJwSP4WwPtq4LX2Ao6USxNlQyS/RcQcdLGwlNIz6vEMAaZpNzCk2Pll94LK/cDYimxERiBwG10sxjgvEZBE0UpE6vxj+0Ct5bTaXthgEhRmja8QWNkkPGsuIpfdjpkK+cZUWTC0KredVmtD/gdlSl6EG4AMvQAAAABJRU5ErkJggg==", V = 14467195, H = 8, R = 2, k = 20, D = null, Q = (
|
|
713
|
-
/** @class */
|
|
714
|
-
(function(a) {
|
|
715
|
-
A(o, a);
|
|
716
|
-
function o(t, n) {
|
|
717
|
-
t === void 0 && (t = new i.Vector3()), n === void 0 && (n = new i.Vector3());
|
|
718
|
-
var e = a.call(this) || this;
|
|
719
|
-
e.type = "FiveLine", e.needsRender = !0;
|
|
720
|
-
var r = new O(), s = new L({
|
|
721
|
-
color: V,
|
|
722
|
-
linewidth: R,
|
|
723
|
-
dashScale: k,
|
|
724
|
-
dashed: !1
|
|
725
|
-
});
|
|
726
|
-
e.line = new I(r, s);
|
|
727
|
-
var c = new i.BufferGeometry(), p = new i.PointsMaterial({
|
|
728
|
-
color: V,
|
|
729
|
-
size: H,
|
|
730
|
-
map: D || (D = new i.TextureLoader().load(T)),
|
|
731
|
-
sizeAttenuation: !1,
|
|
732
|
-
transparent: !0
|
|
733
|
-
});
|
|
734
|
-
return e.points = new i.Points(c, p), e.points.renderOrder = 11, e.points.frustumCulled = !1, e.setPoints(t, n), e.add(e.line, e.points), e;
|
|
735
|
-
}
|
|
736
|
-
return Object.defineProperty(o, "version", {
|
|
737
|
-
get: function() {
|
|
738
|
-
return "6.8.0-alpha.2";
|
|
739
|
-
},
|
|
740
|
-
enumerable: !1,
|
|
741
|
-
configurable: !0
|
|
742
|
-
}), o.prototype.setPoints = function(t, n) {
|
|
743
|
-
var e = [].concat(t.toArray(), n.toArray());
|
|
744
|
-
this.points.geometry.setAttribute("position", new i.BufferAttribute(new Float32Array(e), 3)), this.line.geometry.setPositions(e), this.line.computeLineDistances(), this.needsRender = !0;
|
|
745
|
-
}, o.prototype.getPoints = function() {
|
|
746
|
-
var t = this.points.geometry.attributes.position.array;
|
|
747
|
-
return [
|
|
748
|
-
new i.Vector3(t[0], t[1], t[2]),
|
|
749
|
-
new i.Vector3(t[3], t[4], t[5])
|
|
750
|
-
];
|
|
751
|
-
}, o.prototype.setMaterial = function(t) {
|
|
752
|
-
var n = this.line.material;
|
|
753
|
-
for (var e in t)
|
|
754
|
-
if (t.hasOwnProperty(e)) {
|
|
755
|
-
var r = t[e];
|
|
756
|
-
e === "dashed" ? (n.dashed = r, r ? n.defines.USE_DASH = "" : delete n.defines.USE_DASH, n.needsUpdate = !0) : n[e] = t[e];
|
|
757
|
-
}
|
|
758
|
-
this.needsRender = !0;
|
|
759
|
-
}, o.prototype.setResolution = function(t, n) {
|
|
760
|
-
var e = this.line.material.resolution;
|
|
761
|
-
(e.x !== t || e.y !== n) && (e.set(t, n), this.needsRender = !0);
|
|
762
|
-
}, o;
|
|
763
|
-
})(i.Object3D)
|
|
764
|
-
);
|
|
765
|
-
Object.assign(Q.prototype, { isFiveLine: !0 });
|
|
766
|
-
export {
|
|
767
|
-
Q as Line,
|
|
768
|
-
O as LineGeometry,
|
|
769
|
-
L as LineMaterial,
|
|
770
|
-
B as LineSegmentsGeometry,
|
|
771
|
-
I as THREE_Line2,
|
|
772
|
-
F as THREE_LineSegments2
|
|
585
|
+
this.needsRender = !0;
|
|
586
|
+
}
|
|
587
|
+
setResolution(e, t) {
|
|
588
|
+
let n = this.line.material.resolution;
|
|
589
|
+
(n.x !== e || n.y !== t) && (n.set(e, t), this.needsRender = !0);
|
|
590
|
+
}
|
|
773
591
|
};
|
|
592
|
+
Object.assign(f.prototype, { isFiveLine: !0 });
|
|
593
|
+
//#endregion
|
|
594
|
+
export { f as Line, o as LineGeometry, r as LineMaterial, t as LineSegmentsGeometry, a as THREE_Line2, i as THREE_LineSegments2 };
|