x_ite 8.0.0 → 8.3.0
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/.github/workflows/pages-deploy.yml +64 -0
- package/.gitmodules +3 -0
- package/.vscode/settings.json +3 -2
- package/Makefile +9 -4
- package/README.md +6 -6
- package/build/bin/version.pl +3 -11
- package/dist/LICENSE.md +0 -2
- package/dist/assets/components/Annotation.js +55 -28
- package/dist/assets/components/Annotation.min.js +1 -1
- package/dist/assets/components/CADGeometry.js +55 -28
- package/dist/assets/components/CADGeometry.min.js +1 -1
- package/dist/assets/components/CubeMapTexturing.js +197 -38
- package/dist/assets/components/CubeMapTexturing.min.js +1 -1
- package/dist/assets/components/DIS.js +50 -26
- package/dist/assets/components/DIS.min.js +1 -1
- package/dist/assets/components/EventUtilities.js +61 -28
- package/dist/assets/components/EventUtilities.min.js +1 -1
- package/dist/assets/components/Geometry2D.js +96 -48
- package/dist/assets/components/Geometry2D.min.js +1 -1
- package/dist/assets/components/Geospatial.js +186 -193
- package/dist/assets/components/Geospatial.min.js +1 -1
- package/dist/assets/components/HAnim.js +92 -53
- package/dist/assets/components/HAnim.min.js +1 -1
- package/dist/assets/components/KeyDeviceSensor.js +35 -17
- package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
- package/dist/assets/components/Layout.js +77 -45
- package/dist/assets/components/Layout.min.js +1 -1
- package/dist/assets/components/NURBS.js +209 -96
- package/dist/assets/components/NURBS.min.js +1 -1
- package/dist/assets/components/ParticleSystems.js +125 -62
- package/dist/assets/components/ParticleSystems.min.js +1 -1
- package/dist/assets/components/Picking.js +105 -70
- package/dist/assets/components/Picking.min.js +1 -1
- package/dist/assets/components/ProjectiveTextureMapping.js +69 -46
- package/dist/assets/components/ProjectiveTextureMapping.min.js +1 -1
- package/dist/assets/components/RigidBodyPhysics.js +125 -63
- package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
- package/dist/assets/components/Scripting.js +56 -38
- package/dist/assets/components/Scripting.min.js +1 -1
- package/dist/assets/components/Text.js +16857 -0
- package/dist/assets/components/Text.min.js +1 -0
- package/dist/assets/components/Texturing3D.js +114 -77
- package/dist/assets/components/Texturing3D.min.js +1 -1
- package/dist/assets/components/VolumeRendering.js +126 -60
- package/dist/assets/components/VolumeRendering.min.js +1 -1
- package/dist/assets/components/X_ITE.js +21 -12
- package/dist/assets/components/X_ITE.min.js +1 -1
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.js +17800 -31195
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.zip +0 -0
- package/docs/Gemfile +11 -33
- package/docs/Gemfile.lock +53 -59
- package/docs/LICENSE +21 -0
- package/docs/README.md +46 -0
- package/docs/_config.yml +320 -127
- package/docs/_data/assets/cross_origin.yml +62 -0
- package/docs/_data/assets/self_host.yml +51 -0
- package/docs/_data/contact.yml +30 -0
- package/docs/_data/locales/bg-BG.yml +83 -0
- package/docs/_data/locales/de-DE.yml +82 -0
- package/docs/_data/locales/en.yml +93 -0
- package/docs/_data/locales/es-ES.yml +79 -0
- package/docs/_data/locales/fr-FR.yml +79 -0
- package/docs/_data/locales/hu-HU.yml +81 -0
- package/docs/_data/locales/id-ID.yml +79 -0
- package/docs/_data/locales/ko-KR.yml +86 -0
- package/docs/_data/locales/my-MM.yml +79 -0
- package/docs/_data/locales/pt-BR.yml +79 -0
- package/docs/_data/locales/ru-RU.yml +79 -0
- package/docs/_data/locales/tr-TR.yml +79 -0
- package/docs/_data/locales/uk-UA.yml +79 -0
- package/docs/_data/locales/vi-VN.yml +77 -0
- package/docs/_data/locales/zh-CN.yml +85 -0
- package/docs/_data/share.yml +27 -0
- package/docs/_includes/nav.html +19 -0
- package/docs/_includes/scripts.html +15 -0
- package/docs/_layouts/compress.html +11 -0
- package/docs/_layouts/redirect-page.html +6 -0
- package/docs/_layouts/wide.html +52 -0
- package/docs/_layouts/wrap.html +4 -0
- package/docs/_layouts/x_ite.html +8 -0
- package/docs/_plugins/no_date.rb +11 -0
- package/docs/_plugins/posts-lastmod-hook.rb +14 -0
- package/docs/{Accessing-the-External-Browser.md → _posts/accessing-the-external-browser.md} +26 -25
- package/docs/_posts/browser-support.md +53 -0
- package/docs/{Custom-Shaders.md → _posts/custom-shaders.md} +18 -14
- package/docs/{DOM-Integration.md → _posts/dom-integration.md} +29 -22
- package/docs/{Features.md → _posts/features.md} +11 -12
- package/docs/{index.md → _posts/getting-started.md} +203 -245
- package/docs/{Glossary.md → _posts/glossary.md} +5 -6
- package/docs/{How-To-Configure-Your-Web-Server.md → _posts/how-to-configure-your-web-server.md} +5 -6
- package/docs/{reference/Browser-Services.md → _posts/reference/browser-services.md} +8 -9
- package/docs/{reference/Constants-Services.md → _posts/reference/constants-services.md} +14 -15
- package/docs/{reference/ECMAScript-Object-and-Function-Definitions.md → _posts/reference/ecmascript-object-and-function-definitions.md} +14 -15
- package/docs/_posts/reference/field-services-and-objects.md +1127 -0
- package/docs/{reference/Prototype-Services.md → _posts/reference/prototype-services.md} +8 -14
- package/docs/{reference/Route-Services.md → _posts/reference/route-services.md} +6 -10
- package/docs/{reference/Scene-Services.md → _posts/reference/scene-services.md} +11 -21
- package/docs/{reference/Script-Node-Authoring-Interface.md → _posts/reference/script-node-authoring-interface.md} +10 -11
- package/docs/_posts/report-a-bug.md +15 -0
- package/docs/_posts/setup-a-localhost-server.md +42 -0
- package/docs/_posts/supported-nodes.md +377 -0
- package/docs/{tutorials/Adding-backgrounds.md → _posts/tutorials/adding-backgrounds.md} +13 -14
- package/docs/{tutorials/Adding-fog.md → _posts/tutorials/adding-fog.md} +6 -7
- package/docs/{tutorials/Adding-sound.md → _posts/tutorials/adding-sound.md} +27 -26
- package/docs/{tutorials/Animating-transforms.md → _posts/tutorials/animating-transforms.md} +36 -37
- package/docs/{tutorials/Basic-Nodes.md → _posts/tutorials/basic-nodes.md} +38 -49
- package/docs/{tutorials/Building-a-X3D-world.md → _posts/tutorials/building-a-x3d-world.md} +16 -16
- package/docs/{tutorials/Building-elevation-grids.md → _posts/tutorials/building-elevation-grids.md} +15 -14
- package/docs/{tutorials/Building-extruded-shapes.md → _posts/tutorials/building-extruded-shapes.md} +11 -12
- package/docs/{tutorials/Building-primitive-shapes.md → _posts/tutorials/building-primitive-shapes.md} +29 -28
- package/docs/{tutorials/Building-shapes-out-of-points,-lines,-and-faces.md → _posts/tutorials/building-shapes-out-of-points-lines-and-faces.md} +25 -27
- package/docs/{tutorials/Controlling-appearance-with-materials.md → _posts/tutorials/controlling-appearance-with-materials.md} +20 -19
- package/docs/{tutorials/Controlling-color-on-coordinate-based-geometry.md → _posts/tutorials/controlling-color-on-coordinate-based-geometry.md} +15 -16
- package/docs/{tutorials/Controlling-detail.md → _posts/tutorials/controlling-detail.md} +12 -11
- package/docs/{tutorials/Controlling-how-textures-are-mapped.md → _posts/tutorials/controlling-how-textures-are-mapped.md} +11 -12
- package/docs/{tutorials/Controlling-navigation.md → _posts/tutorials/controlling-navigation.md} +7 -8
- package/docs/{tutorials/Controlling-shading-on-coordinate-based-geometry.md → _posts/tutorials/controlling-shading-on-coordinate-based-geometry.md} +19 -20
- package/docs/{tutorials/Controlling-the-viewpoint.md → _posts/tutorials/controlling-the-viewpoint.md} +7 -8
- package/docs/{tutorials/Creating-new-node-types.md → _posts/tutorials/creating-new-node-types.md} +8 -9
- package/docs/{tutorials/Grouping-nodes.md → _posts/tutorials/grouping-nodes.md} +17 -18
- package/docs/{tutorials/Hello,-World!.md → _posts/tutorials/hello-world.md} +16 -28
- package/docs/{tutorials/Improving-Performance.md → _posts/tutorials/improving-performance.md} +7 -11
- package/docs/{tutorials/Increasing-Rendering-Speed.md → _posts/tutorials/increasing-rendering-speed.md} +5 -6
- package/docs/{tutorials/Introducing-animation.md → _posts/tutorials/introducing-animation.md} +14 -15
- package/docs/{tutorials/Introducing-script-use.md → _posts/tutorials/introducing-script-use.md} +7 -8
- package/docs/{tutorials/Introducing-X3D.md → _posts/tutorials/introducing-x3d.md} +7 -7
- package/docs/{tutorials/Lighting-your-world.md → _posts/tutorials/lighting-your-world.md} +8 -9
- package/docs/{tutorials/Mapping-textures.md → _posts/tutorials/mapping-textures.md} +11 -12
- package/docs/{tutorials/Naming-nodes.md → _posts/tutorials/naming-nodes.md} +9 -8
- package/docs/_posts/tutorials/overview.md +83 -0
- package/docs/{tutorials/Providing-information-about-your-world.md → _posts/tutorials/providing-information-about-your-world.md} +6 -7
- package/docs/{tutorials/Sensing-the-viewer.md → _posts/tutorials/sensing-the-viewer.md} +19 -20
- package/docs/{tutorials/Sensing-viewer-actions.md → _posts/tutorials/sensing-viewer-actions.md} +14 -15
- package/docs/{tutorials/Transforming-Shapes.md → _posts/tutorials/transforming-shapes.md} +8 -9
- package/docs/{tutorials/Writing-program-scripts-with-ECMAScript.md → _posts/tutorials/writing-program-scripts-with-ecmascript.md} +15 -15
- package/docs/{What's-New.md → _posts/what's-new.md} +152 -530
- package/docs/_tabs/imprint.md +52 -0
- package/docs/_tabs/laboratory.md +14 -0
- package/docs/_tabs/playground.html +246 -0
- package/docs/_tabs/reference.md +7 -0
- package/docs/_tabs/tags.md +5 -0
- package/docs/_tabs/tutorials.md +7 -0
- package/docs/assets/css/style.scss +194 -0
- package/docs/assets/img/favicons/android-chrome-192x192.png +0 -0
- package/docs/assets/img/favicons/android-chrome-512x512.png +0 -0
- package/docs/assets/img/favicons/apple-touch-icon.png +0 -0
- package/docs/assets/img/favicons/favicon-16x16.png +0 -0
- package/docs/assets/img/favicons/favicon-32x32.png +0 -0
- package/docs/assets/img/favicons/favicon.ico +0 -0
- package/docs/assets/img/favicons/mstile-150x150.png +0 -0
- package/docs/assets/img/favicons/safari-pinned-tab.svg +71 -0
- package/docs/assets/{images → img}/logo.png +0 -0
- package/docs/assets/js/example.js +34 -0
- package/docs/laboratory/3d-l-system-generator.html +169 -0
- package/docs/laboratory/online-dicom-and-nrrd-file-viewer.html +72 -0
- package/docs/laboratory/real-time-earth-quake-information.html +50 -0
- package/docs/laboratory/x3d-visual-blend-mode-editor.html +227 -0
- package/package.json +4 -4
- package/src/LICENSE.txt +1 -1
- package/src/assets/components/Annotation.js +1 -1
- package/src/assets/components/CADGeometry.js +1 -1
- package/src/assets/components/CubeMapTexturing.js +1 -1
- package/src/assets/components/DIS.js +1 -1
- package/src/assets/components/EventUtilities.js +1 -1
- package/src/assets/components/Geometry2D.js +1 -1
- package/src/assets/components/Geospatial.js +1 -1
- package/src/assets/components/HAnim.js +1 -1
- package/src/assets/components/KeyDeviceSensor.js +1 -1
- package/src/assets/components/Layout.js +1 -1
- package/src/assets/components/NURBS.js +1 -1
- package/src/assets/components/ParticleSystems.js +1 -1
- package/src/assets/components/Picking.js +1 -1
- package/src/assets/components/ProjectiveTextureMapping.js +6 -6
- package/src/assets/components/RigidBodyPhysics.js +1 -6
- package/src/assets/components/Scripting.js +1 -1
- package/src/{x_ite/Components → assets/components}/Text.js +19 -21
- package/src/assets/components/Texturing3D.js +1 -1
- package/src/assets/components/VolumeRendering.js +1 -1
- package/src/assets/components/X_ITE.js +1 -1
- package/src/assets/shaders/Types.glsl.js +1 -1
- package/src/assets/shaders/webgl1/include/Fragment.glsl.js +1 -1
- package/src/assets/shaders/webgl1/include/PointSize.glsl.js +6 -6
- package/src/assets/shaders/webgl1/include/Vertex.glsl.js +4 -4
- package/src/assets/shaders/webgl2/LineTransform.vs.js +11 -11
- package/src/assets/shaders/webgl2/include/Fragment.glsl.js +1 -1
- package/src/assets/shaders/webgl2/include/PointSize.glsl.js +6 -6
- package/src/assets/shaders/webgl2/include/Vertex.glsl.js +4 -4
- package/src/bookmarks.js +1 -1
- package/src/examples.js +3 -3
- package/src/lib/ammojs/AmmoClass.js +1 -1
- package/src/lib/jquery.js +1 -1
- package/src/locale/gettext.js +1 -1
- package/src/shim.js +1 -2
- package/src/standard/Geospatial/Geodetic.js +1 -1
- package/src/standard/Geospatial/ReferenceEllipsoids.js +3 -3
- package/src/standard/Geospatial/UniversalTransverseMercator.js +1 -1
- package/src/standard/Math/Algorithm.js +55 -45
- package/src/standard/Math/Algorithms/Bezier.js +1 -1
- package/src/standard/Math/Algorithms/MergeSort.js +1 -1
- package/src/standard/Math/Algorithms/PartialSort.js +1 -1
- package/src/standard/Math/Algorithms/QuickSort.js +1 -1
- package/src/standard/Math/Algorithms/SAT.js +2 -2
- package/src/standard/Math/Algorithms/eigen_decomposition.js +5 -3
- package/src/standard/Math/Geometry/Box2.js +1 -1
- package/src/standard/Math/Geometry/Box3.js +1 -1
- package/src/standard/Math/Geometry/Camera.js +4 -2
- package/src/standard/Math/Geometry/Cylinder3.js +1 -1
- package/src/standard/Math/Geometry/Line2.js +1 -1
- package/src/standard/Math/Geometry/Line3.js +1 -1
- package/src/standard/Math/Geometry/Plane3.js +1 -1
- package/src/standard/Math/Geometry/Sphere3.js +1 -1
- package/src/standard/Math/Geometry/Spheroid3.js +1 -1
- package/src/standard/Math/Geometry/Triangle2.js +4 -2
- package/src/standard/Math/Geometry/Triangle3.js +4 -2
- package/src/standard/Math/Geometry/ViewVolume.js +1 -1
- package/src/standard/Math/Numbers/Color3.js +3 -1
- package/src/standard/Math/Numbers/Color4.js +4 -1
- package/src/standard/Math/Numbers/Complex.js +1 -1
- package/src/standard/Math/Numbers/Matrix2.js +1 -1
- package/src/standard/Math/Numbers/Matrix3.js +1 -1
- package/src/standard/Math/Numbers/Matrix4.js +1 -1
- package/src/standard/Math/Numbers/Quaternion.js +1 -1
- package/src/standard/Math/Numbers/Rotation4.js +1 -1
- package/src/standard/Math/Numbers/Vector2.js +1 -1
- package/src/standard/Math/Numbers/Vector3.js +1 -1
- package/src/standard/Math/Numbers/Vector4.js +1 -1
- package/src/standard/Math/Utility/BVH.js +1 -1
- package/src/standard/Math/Utility/MatrixStack.js +1 -1
- package/src/standard/Networking/BinaryTransport.js +5 -3
- package/src/standard/Time/MicroTime.js +1 -1
- package/src/standard/Utility/BitSet.js +1 -1
- package/src/standard/Utility/DataStorage.js +1 -1
- package/src/standard/Utility/MapUtilities.js +1 -1
- package/src/standard/Utility/ObjectCache.js +5 -3
- package/src/standard/Utility/Shuffle.js +5 -3
- package/src/tests.js +3 -0
- package/src/x_ite/Base/Events.js +4 -2
- package/src/x_ite/Base/FieldArray.js +1 -1
- package/src/x_ite/Base/FieldDefinitionArray.js +1 -1
- package/src/x_ite/Base/X3DArrayField.js +8 -4
- package/src/x_ite/Base/X3DBaseNode.js +1 -1
- package/src/x_ite/Base/X3DCast.js +5 -3
- package/src/x_ite/Base/X3DChildObject.js +1 -1
- package/src/x_ite/Base/X3DConstants.js +1 -1
- package/src/x_ite/Base/X3DEventObject.js +1 -1
- package/src/x_ite/Base/X3DField.js +2 -13
- package/src/x_ite/Base/X3DFieldDefinition.js +1 -1
- package/src/x_ite/Base/X3DInfoArray.js +1 -1
- package/src/x_ite/Base/X3DObject.js +1 -1
- package/src/x_ite/Base/X3DObjectArrayField.js +1 -1
- package/src/x_ite/Base/X3DTypedArrayField.js +59 -33
- package/src/x_ite/Browser/Core/BrowserOptions.js +22 -30
- package/src/x_ite/Browser/Core/BrowserProperties.js +1 -1
- package/src/x_ite/Browser/Core/BrowserTimings.js +1 -1
- package/src/x_ite/Browser/Core/Context.js +1 -1
- package/src/x_ite/Browser/Core/ContextMenu.js +1 -1
- package/src/x_ite/Browser/Core/Notification.js +1 -1
- package/src/x_ite/Browser/Core/PrimitiveQuality.js +1 -1
- package/src/x_ite/Browser/Core/RenderingProperties.js +1 -1
- package/src/x_ite/Browser/Core/Shading.js +1 -1
- package/src/x_ite/Browser/Core/TextureQuality.js +1 -1
- package/src/x_ite/Browser/Core/X3DCoreContext.js +11 -8
- package/src/x_ite/Browser/DOMIntegration.js +25 -26
- package/src/x_ite/Browser/EnvironmentalEffects/X3DEnvironmentalEffectsContext.js +1 -1
- package/src/x_ite/Browser/Followers/X3DArrayChaserTemplate.js +5 -3
- package/src/x_ite/Browser/Followers/X3DArrayFollowerTemplate.js +5 -3
- package/src/x_ite/Browser/Geometry2D/Arc2DOptions.js +1 -1
- package/src/x_ite/Browser/Geometry2D/ArcClose2DOptions.js +1 -1
- package/src/x_ite/Browser/Geometry2D/Circle2DOptions.js +1 -1
- package/src/x_ite/Browser/Geometry2D/Disk2DOptions.js +1 -1
- package/src/x_ite/Browser/Geometry2D/Rectangle2DOptions.js +1 -1
- package/src/x_ite/Browser/Geometry2D/X3DGeometry2DContext.js +1 -1
- package/src/x_ite/Browser/Geometry3D/BoxOptions.js +1 -1
- package/src/x_ite/Browser/Geometry3D/ConeOptions.js +1 -1
- package/src/x_ite/Browser/Geometry3D/CylinderOptions.js +1 -1
- package/src/x_ite/Browser/Geometry3D/IcoSphere.js +1 -1
- package/src/x_ite/Browser/Geometry3D/IcoSphereOptions.js +1 -1
- package/src/x_ite/Browser/Geometry3D/QuadSphereOptions.js +1 -1
- package/src/x_ite/Browser/Geometry3D/X3DGeometry3DContext.js +1 -1
- package/src/x_ite/Browser/Geospatial/Geocentric.js +1 -2
- package/src/x_ite/Browser/Geospatial/Geospatial.js +1 -1
- package/src/x_ite/Browser/Grouping/X3DGroupingContext.js +1 -1
- package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolator.js +1 -1
- package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolator1.js +1 -1
- package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolator2.js +4 -2
- package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolator3.js +4 -2
- package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolatorTemplate.js +5 -3
- package/src/x_ite/Browser/Interpolation/SquatInterpolator.js +1 -1
- package/src/x_ite/Browser/KeyDeviceSensor/X3DKeyDeviceSensorContext.js +1 -1
- package/src/x_ite/Browser/Layering/X3DLayeringContext.js +1 -1
- package/src/x_ite/Browser/Layout/ScreenText.js +1 -1
- package/src/x_ite/Browser/Layout/X3DLayoutContext.js +1 -1
- package/src/x_ite/Browser/Legacy.js +64 -0
- package/src/x_ite/Browser/Lighting/X3DLightingContext.js +1 -1
- package/src/x_ite/Browser/NURBS/NURBS.js +1 -1
- package/src/x_ite/Browser/Navigation/ExamineViewer.js +6 -39
- package/src/x_ite/Browser/Navigation/FlyViewer.js +1 -1
- package/src/x_ite/Browser/Navigation/LookAtViewer.js +1 -1
- package/src/x_ite/Browser/Navigation/NoneViewer.js +1 -1
- package/src/x_ite/Browser/Navigation/PlaneViewer.js +1 -4
- package/src/x_ite/Browser/Navigation/WalkViewer.js +1 -1
- package/src/x_ite/Browser/Navigation/X3DFlyViewer.js +1 -1
- package/src/x_ite/Browser/Navigation/X3DNavigationContext.js +3 -2
- package/src/x_ite/Browser/Navigation/X3DViewer.js +3 -3
- package/src/x_ite/Browser/Networking/Features.js +52 -0
- package/src/x_ite/Browser/Networking/URLs.js +11 -12
- package/src/x_ite/Browser/Networking/X3DNetworkingContext.js +9 -22
- package/src/x_ite/Browser/ParticleSystems/GeometryTypes.js +1 -1
- package/src/x_ite/Browser/ParticleSystems/X3DParticleSystemsContext.js +1 -1
- package/src/x_ite/Browser/Picking/IntersectionType.js +1 -1
- package/src/x_ite/Browser/Picking/MatchCriterion.js +1 -1
- package/src/x_ite/Browser/Picking/SortOrder.js +1 -1
- package/src/x_ite/Browser/Picking/VolumePicker.js +2 -4
- package/src/x_ite/Browser/Picking/X3DPickingContext.js +1 -1
- package/src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js +1 -1
- package/src/x_ite/Browser/PointingDeviceSensor/PointingDeviceSensorContainer.js +1 -1
- package/src/x_ite/Browser/PointingDeviceSensor/X3DPointingDeviceSensorContext.js +1 -1
- package/src/x_ite/Browser/Rendering/GeometryContext.js +1 -1
- package/src/x_ite/Browser/Rendering/X3DRenderingContext.js +1 -1
- package/src/x_ite/Browser/RigidBodyPhysics/AppliedParametersType.js +1 -1
- package/src/x_ite/Browser/Scripting/X3DScriptingContext.js +1 -1
- package/src/x_ite/Browser/Scripting/evaluate.js +5 -3
- package/src/x_ite/Browser/Shaders/ShaderCompiler.js +1 -1
- package/src/x_ite/Browser/Shaders/ShaderSource.js +5 -5
- package/src/x_ite/Browser/Shaders/Shaders.js +1 -1
- package/src/x_ite/Browser/Shaders/X3DShadersContext.js +1 -1
- package/src/x_ite/Browser/Shape/AlphaMode.js +1 -1
- package/src/x_ite/Browser/Shape/X3DShapeContext.js +4 -4
- package/src/x_ite/Browser/Sound/X3DSoundContext.js +1 -1
- package/src/x_ite/Browser/Text/PolygonText.js +1 -1
- package/src/x_ite/Browser/Text/TextAlignment.js +1 -1
- package/src/x_ite/Browser/Text/X3DTextContext.js +1 -1
- package/src/x_ite/Browser/Text/X3DTextGeometry.js +1 -1
- package/src/x_ite/Browser/Texturing/FunctionType.js +1 -1
- package/src/x_ite/Browser/Texturing/ModeType.js +1 -1
- package/src/x_ite/Browser/Texturing/SourceType.js +1 -1
- package/src/x_ite/Browser/Texturing/TextureCoordinateGeneratorModeType.js +1 -1
- package/src/x_ite/Browser/Texturing/X3DTexturingContext.js +1 -1
- package/src/x_ite/Browser/Texturing3D/DICOMParser.js +3 -3
- package/src/x_ite/Browser/Texturing3D/NRRDParser.js +2 -2
- package/src/x_ite/Browser/Time/X3DTimeContext.js +1 -1
- package/src/x_ite/Browser/VERSION.js +2 -2
- package/src/x_ite/Browser/VolumeRendering/VolumeMaterial.js +1 -1
- package/src/x_ite/Browser/VolumeRendering/X3DVolumeRenderingContext.js +1 -1
- package/src/x_ite/Browser/X3DBrowser.js +43 -52
- package/src/x_ite/Browser/X3DBrowserContext.js +1 -5
- package/src/x_ite/Components/Annotation/AnnotationLayer.js +1 -1
- package/src/x_ite/Components/Annotation/AnnotationTarget.js +1 -1
- package/src/x_ite/Components/Annotation/GroupAnnotation.js +1 -1
- package/src/x_ite/Components/Annotation/IconAnnotation.js +1 -1
- package/src/x_ite/Components/Annotation/TextAnnotation.js +1 -1
- package/src/x_ite/Components/Annotation/URLAnnotation.js +1 -1
- package/src/x_ite/Components/Annotation/X3DAnnotationNode.js +1 -1
- package/src/x_ite/Components/CADGeometry/CADAssembly.js +1 -1
- package/src/x_ite/Components/CADGeometry/CADFace.js +1 -1
- package/src/x_ite/Components/CADGeometry/CADLayer.js +1 -1
- package/src/x_ite/Components/CADGeometry/CADPart.js +1 -1
- package/src/x_ite/Components/CADGeometry/IndexedQuadSet.js +1 -1
- package/src/x_ite/Components/CADGeometry/QuadSet.js +1 -1
- package/src/x_ite/Components/CADGeometry/X3DProductStructureChildNode.js +1 -1
- package/src/x_ite/Components/Core/MetadataBoolean.js +1 -1
- package/src/x_ite/Components/Core/MetadataDouble.js +1 -1
- package/src/x_ite/Components/Core/MetadataFloat.js +1 -1
- package/src/x_ite/Components/Core/MetadataInteger.js +1 -1
- package/src/x_ite/Components/Core/MetadataSet.js +1 -1
- package/src/x_ite/Components/Core/MetadataString.js +1 -1
- package/src/x_ite/Components/Core/WorldInfo.js +1 -1
- package/src/x_ite/Components/Core/X3DBindableNode.js +1 -1
- package/src/x_ite/Components/Core/X3DChildNode.js +1 -1
- package/src/x_ite/Components/Core/X3DInfoNode.js +1 -1
- package/src/x_ite/Components/Core/X3DMetadataObject.js +1 -1
- package/src/x_ite/Components/Core/X3DNode.js +5 -5
- package/src/x_ite/Components/Core/X3DPrototypeInstance.js +2 -2
- package/src/x_ite/Components/Core/X3DSensorNode.js +1 -1
- package/src/x_ite/Components/Core.js +1 -1
- package/src/x_ite/Components/CubeMapTexturing/ComposedCubeMapTexture.js +1 -1
- package/src/x_ite/Components/CubeMapTexturing/GeneratedCubeMapTexture.js +1 -1
- package/src/x_ite/Components/CubeMapTexturing/ImageCubeMapTexture.js +1 -1
- package/src/x_ite/Components/CubeMapTexturing/X3DEnvironmentTextureNode.js +1 -1
- package/src/x_ite/Components/DIS/DISEntityManager.js +1 -1
- package/src/x_ite/Components/DIS/DISEntityTypeMapping.js +1 -1
- package/src/x_ite/Components/DIS/EspduTransform.js +1 -1
- package/src/x_ite/Components/DIS/ReceiverPdu.js +1 -1
- package/src/x_ite/Components/DIS/SignalPdu.js +1 -1
- package/src/x_ite/Components/DIS/TransmitterPdu.js +1 -1
- package/src/x_ite/Components/EnvironmentalEffects/Background.js +1 -1
- package/src/x_ite/Components/EnvironmentalEffects/Fog.js +1 -1
- package/src/x_ite/Components/EnvironmentalEffects/FogCoordinate.js +1 -1
- package/src/x_ite/Components/EnvironmentalEffects/LocalFog.js +1 -1
- package/src/x_ite/Components/EnvironmentalEffects/TextureBackground.js +1 -1
- package/src/x_ite/Components/EnvironmentalEffects/X3DBackgroundNode.js +6 -12
- package/src/x_ite/Components/EnvironmentalEffects/X3DFogObject.js +1 -1
- package/src/x_ite/Components/EnvironmentalEffects.js +1 -1
- package/src/x_ite/Components/EnvironmentalSensor/ProximitySensor.js +1 -1
- package/src/x_ite/Components/EnvironmentalSensor/TransformSensor.js +1 -1
- package/src/x_ite/Components/EnvironmentalSensor/VisibilitySensor.js +1 -1
- package/src/x_ite/Components/EnvironmentalSensor/X3DEnvironmentalSensorNode.js +1 -1
- package/src/x_ite/Components/EnvironmentalSensor.js +1 -1
- package/src/x_ite/Components/EventUtilities/BooleanFilter.js +1 -1
- package/src/x_ite/Components/EventUtilities/BooleanSequencer.js +1 -1
- package/src/x_ite/Components/EventUtilities/BooleanToggle.js +1 -1
- package/src/x_ite/Components/EventUtilities/BooleanTrigger.js +1 -1
- package/src/x_ite/Components/EventUtilities/IntegerSequencer.js +1 -1
- package/src/x_ite/Components/EventUtilities/IntegerTrigger.js +1 -1
- package/src/x_ite/Components/EventUtilities/TimeTrigger.js +1 -1
- package/src/x_ite/Components/EventUtilities/X3DSequencerNode.js +1 -1
- package/src/x_ite/Components/EventUtilities/X3DTriggerNode.js +1 -1
- package/src/x_ite/Components/Followers/ColorChaser.js +1 -1
- package/src/x_ite/Components/Followers/ColorDamper.js +1 -1
- package/src/x_ite/Components/Followers/CoordinateChaser.js +1 -1
- package/src/x_ite/Components/Followers/CoordinateDamper.js +1 -1
- package/src/x_ite/Components/Followers/OrientationChaser.js +1 -1
- package/src/x_ite/Components/Followers/OrientationDamper.js +1 -1
- package/src/x_ite/Components/Followers/PositionChaser.js +1 -1
- package/src/x_ite/Components/Followers/PositionChaser2D.js +1 -1
- package/src/x_ite/Components/Followers/PositionDamper.js +1 -1
- package/src/x_ite/Components/Followers/PositionDamper2D.js +1 -1
- package/src/x_ite/Components/Followers/ScalarChaser.js +1 -1
- package/src/x_ite/Components/Followers/ScalarDamper.js +1 -1
- package/src/x_ite/Components/Followers/TexCoordChaser2D.js +1 -1
- package/src/x_ite/Components/Followers/TexCoordDamper2D.js +1 -1
- package/src/x_ite/Components/Followers/X3DChaserNode.js +1 -1
- package/src/x_ite/Components/Followers/X3DDamperNode.js +1 -1
- package/src/x_ite/Components/Followers/X3DFollowerNode.js +1 -1
- package/src/x_ite/Components/Followers.js +1 -1
- package/src/x_ite/Components/Geometry2D/Arc2D.js +1 -1
- package/src/x_ite/Components/Geometry2D/ArcClose2D.js +1 -1
- package/src/x_ite/Components/Geometry2D/Circle2D.js +1 -1
- package/src/x_ite/Components/Geometry2D/Disk2D.js +1 -1
- package/src/x_ite/Components/Geometry2D/Polyline2D.js +1 -1
- package/src/x_ite/Components/Geometry2D/Polypoint2D.js +1 -1
- package/src/x_ite/Components/Geometry2D/Rectangle2D.js +1 -1
- package/src/x_ite/Components/Geometry2D/TriangleSet2D.js +1 -1
- package/src/x_ite/Components/Geometry3D/Box.js +1 -1
- package/src/x_ite/Components/Geometry3D/Cone.js +3 -3
- package/src/x_ite/Components/Geometry3D/Cylinder.js +4 -4
- package/src/x_ite/Components/Geometry3D/ElevationGrid.js +1 -1
- package/src/x_ite/Components/Geometry3D/Extrusion.js +1 -1
- package/src/x_ite/Components/Geometry3D/IndexedFaceSet.js +1 -1
- package/src/x_ite/Components/Geometry3D/Sphere.js +1 -1
- package/src/x_ite/Components/Geometry3D.js +1 -1
- package/src/x_ite/Components/Geospatial/GeoCoordinate.js +1 -1
- package/src/x_ite/Components/Geospatial/GeoElevationGrid.js +1 -1
- package/src/x_ite/Components/Geospatial/GeoLOD.js +1 -1
- package/src/x_ite/Components/Geospatial/GeoLocation.js +1 -1
- package/src/x_ite/Components/Geospatial/GeoMetadata.js +1 -1
- package/src/x_ite/Components/Geospatial/GeoOrigin.js +1 -1
- package/src/x_ite/Components/Geospatial/GeoPositionInterpolator.js +17 -13
- package/src/x_ite/Components/Geospatial/GeoProximitySensor.js +1 -1
- package/src/x_ite/Components/Geospatial/GeoTouchSensor.js +1 -1
- package/src/x_ite/Components/Geospatial/GeoTransform.js +1 -1
- package/src/x_ite/Components/Geospatial/GeoViewpoint.js +39 -106
- package/src/x_ite/Components/Geospatial/X3DGeospatialObject.js +1 -1
- package/src/x_ite/Components/Grouping/Group.js +1 -1
- package/src/x_ite/Components/Grouping/StaticGroup.js +1 -1
- package/src/x_ite/Components/Grouping/Switch.js +1 -1
- package/src/x_ite/Components/Grouping/Transform.js +1 -1
- package/src/x_ite/Components/Grouping/X3DBoundedObject.js +1 -1
- package/src/x_ite/Components/Grouping/X3DGroupingNode.js +1 -1
- package/src/x_ite/Components/Grouping/X3DTransformMatrix3DNode.js +1 -1
- package/src/x_ite/Components/Grouping/X3DTransformNode.js +1 -1
- package/src/x_ite/Components/Grouping.js +1 -1
- package/src/x_ite/Components/HAnim/HAnimDisplacer.js +2 -1
- package/src/x_ite/Components/HAnim/HAnimHumanoid.js +32 -23
- package/src/x_ite/Components/HAnim/HAnimJoint.js +2 -1
- package/src/x_ite/Components/HAnim/HAnimMotion.js +3 -1
- package/src/x_ite/Components/HAnim/HAnimSegment.js +2 -1
- package/src/x_ite/Components/HAnim/HAnimSite.js +2 -1
- package/src/x_ite/Components/Interpolation/ColorInterpolator.js +2 -2
- package/src/x_ite/Components/Interpolation/CoordinateInterpolator.js +1 -1
- package/src/x_ite/Components/Interpolation/CoordinateInterpolator2D.js +1 -1
- package/src/x_ite/Components/Interpolation/EaseInEaseOut.js +1 -1
- package/src/x_ite/Components/Interpolation/NormalInterpolator.js +1 -1
- package/src/x_ite/Components/Interpolation/OrientationInterpolator.js +1 -1
- package/src/x_ite/Components/Interpolation/PositionInterpolator.js +1 -1
- package/src/x_ite/Components/Interpolation/PositionInterpolator2D.js +1 -1
- package/src/x_ite/Components/Interpolation/ScalarInterpolator.js +1 -1
- package/src/x_ite/Components/Interpolation/SplinePositionInterpolator.js +1 -1
- package/src/x_ite/Components/Interpolation/SplinePositionInterpolator2D.js +1 -1
- package/src/x_ite/Components/Interpolation/SplineScalarInterpolator.js +1 -1
- package/src/x_ite/Components/Interpolation/SquadOrientationInterpolator.js +1 -1
- package/src/x_ite/Components/Interpolation/X3DInterpolatorNode.js +1 -1
- package/src/x_ite/Components/Interpolation.js +1 -1
- package/src/x_ite/Components/KeyDeviceSensor/KeySensor.js +1 -1
- package/src/x_ite/Components/KeyDeviceSensor/StringSensor.js +1 -1
- package/src/x_ite/Components/KeyDeviceSensor/X3DKeyDeviceSensorNode.js +1 -1
- package/src/x_ite/Components/Layering/Layer.js +4 -2
- package/src/x_ite/Components/Layering/LayerSet.js +1 -1
- package/src/x_ite/Components/Layering/Viewport.js +4 -4
- package/src/x_ite/Components/Layering/X3DLayerNode.js +66 -49
- package/src/x_ite/Components/Layering/X3DViewportNode.js +1 -1
- package/src/x_ite/Components/Layering.js +1 -1
- package/src/x_ite/Components/Layout/Layout.js +1 -1
- package/src/x_ite/Components/Layout/LayoutGroup.js +1 -1
- package/src/x_ite/Components/Layout/LayoutLayer.js +4 -2
- package/src/x_ite/Components/Layout/ScreenFontStyle.js +1 -1
- package/src/x_ite/Components/Layout/ScreenGroup.js +1 -1
- package/src/x_ite/Components/Layout/X3DLayoutNode.js +1 -1
- package/src/x_ite/Components/Lighting/DirectionalLight.js +9 -5
- package/src/x_ite/Components/Lighting/EnvironmentLight.js +143 -0
- package/src/x_ite/Components/Lighting/PointLight.js +9 -5
- package/src/x_ite/Components/Lighting/SpotLight.js +9 -5
- package/src/x_ite/Components/Lighting/X3DLightNode.js +1 -1
- package/src/x_ite/Components/Lighting.js +3 -1
- package/src/x_ite/Components/NURBS/Contour2D.js +1 -1
- package/src/x_ite/Components/NURBS/ContourPolyline2D.js +1 -1
- package/src/x_ite/Components/NURBS/CoordinateDouble.js +1 -1
- package/src/x_ite/Components/NURBS/NurbsCurve.js +1 -1
- package/src/x_ite/Components/NURBS/NurbsCurve2D.js +1 -1
- package/src/x_ite/Components/NURBS/NurbsOrientationInterpolator.js +1 -1
- package/src/x_ite/Components/NURBS/NurbsPatchSurface.js +1 -1
- package/src/x_ite/Components/NURBS/NurbsPositionInterpolator.js +1 -1
- package/src/x_ite/Components/NURBS/NurbsSet.js +1 -1
- package/src/x_ite/Components/NURBS/NurbsSurfaceInterpolator.js +1 -1
- package/src/x_ite/Components/NURBS/NurbsSweptSurface.js +1 -1
- package/src/x_ite/Components/NURBS/NurbsSwungSurface.js +1 -1
- package/src/x_ite/Components/NURBS/NurbsTextureCoordinate.js +1 -1
- package/src/x_ite/Components/NURBS/NurbsTrimmedSurface.js +1 -1
- package/src/x_ite/Components/NURBS/X3DNurbsControlCurveNode.js +1 -1
- package/src/x_ite/Components/NURBS/X3DNurbsSurfaceGeometryNode.js +1 -1
- package/src/x_ite/Components/NURBS/X3DParametricGeometryNode.js +1 -1
- package/src/x_ite/Components/Navigation/Billboard.js +1 -1
- package/src/x_ite/Components/Navigation/Collision.js +1 -1
- package/src/x_ite/Components/Navigation/LOD.js +1 -1
- package/src/x_ite/Components/Navigation/NavigationInfo.js +2 -1
- package/src/x_ite/Components/Navigation/OrthoViewpoint.js +100 -68
- package/src/x_ite/Components/Navigation/Viewpoint.js +16 -16
- package/src/x_ite/Components/Navigation/ViewpointGroup.js +1 -1
- package/src/x_ite/Components/Navigation/X3DViewpointNode.js +219 -111
- package/src/x_ite/Components/Navigation.js +1 -1
- package/src/x_ite/Components/Networking/Anchor.js +1 -1
- package/src/x_ite/Components/Networking/Inline.js +99 -14
- package/src/x_ite/Components/Networking/LoadSensor.js +9 -9
- package/src/x_ite/Components/Networking/X3DNetworkSensorNode.js +1 -1
- package/src/x_ite/Components/Networking/X3DUrlObject.js +3 -3
- package/src/x_ite/Components/Networking.js +1 -1
- package/src/x_ite/Components/ParticleSystems/BoundedPhysicsModel.js +1 -1
- package/src/x_ite/Components/ParticleSystems/ConeEmitter.js +1 -1
- package/src/x_ite/Components/ParticleSystems/ExplosionEmitter.js +1 -1
- package/src/x_ite/Components/ParticleSystems/ForcePhysicsModel.js +1 -1
- package/src/x_ite/Components/ParticleSystems/ParticleSystem.js +1 -1
- package/src/x_ite/Components/ParticleSystems/PointEmitter.js +1 -1
- package/src/x_ite/Components/ParticleSystems/PolylineEmitter.js +1 -1
- package/src/x_ite/Components/ParticleSystems/SurfaceEmitter.js +1 -1
- package/src/x_ite/Components/ParticleSystems/VolumeEmitter.js +1 -1
- package/src/x_ite/Components/ParticleSystems/WindPhysicsModel.js +1 -1
- package/src/x_ite/Components/ParticleSystems/X3DParticleEmitterNode.js +1 -1
- package/src/x_ite/Components/ParticleSystems/X3DParticlePhysicsModelNode.js +1 -1
- package/src/x_ite/Components/Picking/LinePickSensor.js +1 -1
- package/src/x_ite/Components/Picking/PickableGroup.js +1 -1
- package/src/x_ite/Components/Picking/PointPickSensor.js +2 -4
- package/src/x_ite/Components/Picking/PrimitivePickSensor.js +1 -1
- package/src/x_ite/Components/Picking/VolumePickSensor.js +1 -1
- package/src/x_ite/Components/Picking/X3DPickSensorNode.js +1 -1
- package/src/x_ite/Components/Picking/X3DPickableObject.js +1 -1
- package/src/x_ite/Components/PointingDeviceSensor/CylinderSensor.js +1 -1
- package/src/x_ite/Components/PointingDeviceSensor/PlaneSensor.js +1 -1
- package/src/x_ite/Components/PointingDeviceSensor/SphereSensor.js +1 -1
- package/src/x_ite/Components/PointingDeviceSensor/TouchSensor.js +1 -1
- package/src/x_ite/Components/PointingDeviceSensor/X3DDragSensorNode.js +1 -1
- package/src/x_ite/Components/PointingDeviceSensor/X3DPointingDeviceSensorNode.js +1 -1
- package/src/x_ite/Components/PointingDeviceSensor/X3DTouchSensorNode.js +1 -1
- package/src/x_ite/Components/PointingDeviceSensor.js +1 -1
- package/src/x_ite/Components/ProjectiveTextureMapping/{TextureProjectorPerspective.js → TextureProjector.js} +17 -13
- package/src/x_ite/Components/ProjectiveTextureMapping/TextureProjectorParallel.js +17 -13
- package/src/x_ite/Components/ProjectiveTextureMapping/X3DTextureProjectorNode.js +1 -1
- package/src/x_ite/Components/Rendering/ClipPlane.js +1 -1
- package/src/x_ite/Components/Rendering/Color.js +1 -1
- package/src/x_ite/Components/Rendering/ColorRGBA.js +1 -1
- package/src/x_ite/Components/Rendering/Coordinate.js +1 -1
- package/src/x_ite/Components/Rendering/IndexedLineSet.js +6 -1
- package/src/x_ite/Components/Rendering/IndexedTriangleFanSet.js +1 -1
- package/src/x_ite/Components/Rendering/IndexedTriangleSet.js +1 -1
- package/src/x_ite/Components/Rendering/IndexedTriangleStripSet.js +1 -1
- package/src/x_ite/Components/Rendering/LineSet.js +6 -1
- package/src/x_ite/Components/Rendering/Normal.js +31 -1
- package/src/x_ite/Components/Rendering/PointSet.js +6 -1
- package/src/x_ite/Components/Rendering/TriangleFanSet.js +1 -1
- package/src/x_ite/Components/Rendering/TriangleSet.js +1 -1
- package/src/x_ite/Components/Rendering/TriangleStripSet.js +1 -1
- package/src/x_ite/Components/Rendering/X3DColorNode.js +1 -1
- package/src/x_ite/Components/Rendering/X3DComposedGeometryNode.js +1 -1
- package/src/x_ite/Components/Rendering/X3DCoordinateNode.js +1 -1
- package/src/x_ite/Components/Rendering/X3DGeometricPropertyNode.js +1 -1
- package/src/x_ite/Components/Rendering/X3DGeometryNode.js +40 -35
- package/src/x_ite/Components/Rendering/X3DLineGeometryNode.js +24 -6
- package/src/x_ite/Components/Rendering/X3DNormalNode.js +1 -1
- package/src/x_ite/Components/Rendering/X3DPointGeometryNode.js +7 -1
- package/src/x_ite/Components/Rendering.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/BallJoint.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/CollidableOffset.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/CollidableShape.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/CollisionCollection.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/CollisionSensor.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/CollisionSpace.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/Contact.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/DoubleAxisHingeJoint.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/MotorJoint.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/RigidBody.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/RigidBodyCollection.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/SingleAxisHingeJoint.js +3 -2
- package/src/x_ite/Components/RigidBodyPhysics/SliderJoint.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/UniversalJoint.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/X3DNBodyCollidableNode.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/X3DNBodyCollisionSpaceNode.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/X3DRigidJointNode.js +1 -1
- package/src/x_ite/Components/Scripting/Script.js +2 -1
- package/src/x_ite/Components/Scripting/X3DScriptNode.js +1 -1
- package/src/x_ite/Components/Shaders/ComposedShader.js +1 -1
- package/src/x_ite/Components/Shaders/FloatVertexAttribute.js +1 -1
- package/src/x_ite/Components/Shaders/Matrix3VertexAttribute.js +1 -1
- package/src/x_ite/Components/Shaders/Matrix4VertexAttribute.js +1 -1
- package/src/x_ite/Components/Shaders/PackagedShader.js +2 -1
- package/src/x_ite/Components/Shaders/ProgramShader.js +1 -1
- package/src/x_ite/Components/Shaders/ShaderPart.js +2 -1
- package/src/x_ite/Components/Shaders/ShaderProgram.js +2 -1
- package/src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js +13 -10
- package/src/x_ite/Components/Shaders/X3DShaderNode.js +1 -1
- package/src/x_ite/Components/Shaders/X3DVertexAttributeNode.js +1 -1
- package/src/x_ite/Components/Shaders.js +1 -1
- package/src/x_ite/Components/Shape/AcousticProperties.js +1 -1
- package/src/x_ite/Components/Shape/Appearance.js +2 -2
- package/src/x_ite/Components/Shape/FillProperties.js +4 -1
- package/src/x_ite/Components/Shape/LineProperties.js +4 -1
- package/src/x_ite/Components/Shape/Material.js +24 -16
- package/src/x_ite/Components/Shape/PhysicalMaterial.js +1 -1
- package/src/x_ite/Components/Shape/PointProperties.js +14 -20
- package/src/x_ite/Components/Shape/Shape.js +1 -1
- package/src/x_ite/Components/Shape/TwoSidedMaterial.js +1 -1
- package/src/x_ite/Components/Shape/UnlitMaterial.js +1 -1
- package/src/x_ite/Components/Shape/X3DAppearanceChildNode.js +1 -1
- package/src/x_ite/Components/Shape/X3DAppearanceNode.js +1 -1
- package/src/x_ite/Components/Shape/X3DMaterialNode.js +1 -1
- package/src/x_ite/Components/Shape/X3DOneSidedMaterialNode.js +2 -2
- package/src/x_ite/Components/Shape/X3DShapeNode.js +1 -1
- package/src/x_ite/Components/Shape.js +1 -1
- package/src/x_ite/Components/Sound/Analyser.js +105 -0
- package/src/x_ite/Components/Sound/AudioClip.js +1 -1
- package/src/x_ite/Components/Sound/AudioDestination.js +94 -0
- package/src/x_ite/Components/Sound/BiquadFilter.js +104 -0
- package/src/x_ite/Components/Sound/BufferAudioSource.js +127 -0
- package/src/x_ite/Components/Sound/ChannelMerger.js +91 -0
- package/src/x_ite/Components/Sound/ChannelSelector.js +92 -0
- package/src/x_ite/Components/Sound/ChannelSplitter.js +92 -0
- package/src/x_ite/Components/Sound/Convolver.js +102 -0
- package/src/x_ite/Components/Sound/Delay.js +102 -0
- package/src/x_ite/Components/Sound/DynamicsCompressor.js +106 -0
- package/src/x_ite/Components/Sound/Gain.js +100 -0
- package/src/x_ite/Components/Sound/ListenerPointSource.js +102 -0
- package/src/x_ite/Components/Sound/MicrophoneSource.js +96 -0
- package/src/x_ite/Components/Sound/OscillatorSource.js +98 -0
- package/src/x_ite/Components/Sound/PeriodicWave.js +86 -0
- package/src/x_ite/Components/Sound/Sound.js +16 -13
- package/src/x_ite/Components/Sound/SpatialSound.js +103 -0
- package/src/x_ite/Components/Sound/StreamAudioDestination.js +94 -0
- package/src/x_ite/Components/Sound/StreamAudioSource.js +96 -0
- package/src/x_ite/Components/Sound/WaveShaper.js +102 -0
- package/src/x_ite/Components/Sound/X3DSoundChannelNode.js +63 -0
- package/src/x_ite/Components/Sound/X3DSoundDestinationNode.js +63 -0
- package/src/x_ite/Components/Sound/X3DSoundNode.js +1 -1
- package/src/x_ite/Components/Sound/X3DSoundProcessingNode.js +63 -0
- package/src/x_ite/Components/Sound/X3DSoundSourceNode.js +1 -1
- package/src/x_ite/Components/Sound.js +54 -10
- package/src/x_ite/Components/Text/FontStyle.js +1 -1
- package/src/x_ite/Components/Text/Text.js +1 -1
- package/src/x_ite/Components/Text/X3DFontStyleNode.js +1 -1
- package/src/x_ite/Components/Texturing/ImageTexture.js +1 -1
- package/src/x_ite/Components/Texturing/MovieTexture.js +1 -1
- package/src/x_ite/Components/Texturing/MultiTexture.js +1 -1
- package/src/x_ite/Components/Texturing/MultiTextureCoordinate.js +1 -1
- package/src/x_ite/Components/Texturing/MultiTextureTransform.js +1 -1
- package/src/x_ite/Components/Texturing/PixelTexture.js +1 -1
- package/src/x_ite/Components/Texturing/TextureCoordinate.js +1 -1
- package/src/x_ite/Components/Texturing/TextureCoordinateGenerator.js +1 -1
- package/src/x_ite/Components/Texturing/TextureProperties.js +8 -1
- package/src/x_ite/Components/Texturing/TextureTransform.js +1 -1
- package/src/x_ite/Components/Texturing/X3DSingleTextureCoordinateNode.js +1 -1
- package/src/x_ite/Components/Texturing/X3DSingleTextureNode.js +1 -1
- package/src/x_ite/Components/Texturing/X3DSingleTextureTransformNode.js +1 -1
- package/src/x_ite/Components/Texturing/X3DTexture2DNode.js +1 -1
- package/src/x_ite/Components/Texturing/X3DTextureCoordinateNode.js +1 -1
- package/src/x_ite/Components/Texturing/X3DTextureNode.js +1 -1
- package/src/x_ite/Components/Texturing/X3DTextureTransformNode.js +1 -1
- package/src/x_ite/Components/Texturing.js +1 -1
- package/src/x_ite/Components/Texturing3D/ComposedTexture3D.js +1 -1
- package/src/x_ite/Components/Texturing3D/ImageTexture3D.js +1 -1
- package/src/x_ite/Components/Texturing3D/PixelTexture3D.js +1 -1
- package/src/x_ite/Components/Texturing3D/TextureCoordinate3D.js +1 -1
- package/src/x_ite/Components/Texturing3D/TextureCoordinate4D.js +1 -1
- package/src/x_ite/Components/Texturing3D/TextureTransform3D.js +1 -1
- package/src/x_ite/Components/Texturing3D/TextureTransformMatrix3D.js +1 -1
- package/src/x_ite/Components/Texturing3D/X3DTexture3DNode.js +1 -1
- package/src/x_ite/Components/Time/TimeSensor.js +2 -1
- package/src/x_ite/Components/Time/X3DTimeDependentNode.js +1 -1
- package/src/x_ite/Components/Time.js +1 -1
- package/src/x_ite/Components/VolumeRendering/BlendedVolumeStyle.js +1 -1
- package/src/x_ite/Components/VolumeRendering/BoundaryEnhancementVolumeStyle.js +1 -1
- package/src/x_ite/Components/VolumeRendering/CartoonVolumeStyle.js +1 -1
- package/src/x_ite/Components/VolumeRendering/ComposedVolumeStyle.js +1 -1
- package/src/x_ite/Components/VolumeRendering/EdgeEnhancementVolumeStyle.js +1 -1
- package/src/x_ite/Components/VolumeRendering/IsoSurfaceVolumeData.js +1 -1
- package/src/x_ite/Components/VolumeRendering/OpacityMapVolumeStyle.js +1 -1
- package/src/x_ite/Components/VolumeRendering/ProjectionVolumeStyle.js +1 -1
- package/src/x_ite/Components/VolumeRendering/SegmentedVolumeData.js +1 -1
- package/src/x_ite/Components/VolumeRendering/ShadedVolumeStyle.js +1 -1
- package/src/x_ite/Components/VolumeRendering/SilhouetteEnhancementVolumeStyle.js +1 -1
- package/src/x_ite/Components/VolumeRendering/ToneMappedVolumeStyle.js +1 -1
- package/src/x_ite/Components/VolumeRendering/VolumeData.js +1 -1
- package/src/x_ite/Components/VolumeRendering/X3DComposableVolumeRenderStyleNode.js +1 -1
- package/src/x_ite/Components/VolumeRendering/X3DVolumeDataNode.js +1 -1
- package/src/x_ite/Components/VolumeRendering/X3DVolumeRenderStyleNode.js +1 -1
- package/src/x_ite/Components/X_ITE/BlendMode.js +1 -1
- package/src/x_ite/Components.js +6 -28
- package/src/x_ite/Configuration/ComponentInfo.js +10 -7
- package/src/x_ite/Configuration/ComponentInfoArray.js +2 -6
- package/src/x_ite/Configuration/ProfileInfo.js +1 -1
- package/src/x_ite/Configuration/ProfileInfoArray.js +1 -1
- package/src/x_ite/Configuration/SupportedComponents.js +136 -154
- package/src/x_ite/Configuration/SupportedNodes.js +7 -10
- package/src/x_ite/Configuration/SupportedProfiles.js +1 -1
- package/src/x_ite/Configuration/UnitInfo.js +1 -1
- package/src/x_ite/Configuration/UnitInfoArray.js +1 -1
- package/src/x_ite/DEBUG.js +1 -1
- package/src/x_ite/Execution/BindableList.js +1 -1
- package/src/x_ite/Execution/BindableStack.js +12 -12
- package/src/x_ite/Execution/ExportedNodesArray.js +1 -1
- package/src/x_ite/Execution/ImportedNodesArray.js +1 -1
- package/src/x_ite/Execution/NamedNodesArray.js +1 -1
- package/src/x_ite/Execution/Scene.js +13 -13
- package/src/x_ite/Execution/X3DExecutionContext.js +882 -882
- package/src/x_ite/Execution/X3DExportedNode.js +1 -1
- package/src/x_ite/Execution/X3DImportedNode.js +1 -1
- package/src/x_ite/Execution/X3DScene.js +14 -22
- package/src/x_ite/Execution/X3DWorld.js +1 -1
- package/src/x_ite/Fallback.js +1 -6
- package/src/x_ite/Fields/ArrayFields.js +1 -1
- package/src/x_ite/Fields/SFBool.js +1 -1
- package/src/x_ite/Fields/SFColor.js +2 -5
- package/src/x_ite/Fields/SFColorRGBA.js +2 -6
- package/src/x_ite/Fields/SFDouble.js +1 -1
- package/src/x_ite/Fields/SFFloat.js +1 -1
- package/src/x_ite/Fields/SFImage.js +1 -1
- package/src/x_ite/Fields/SFInt32.js +1 -1
- package/src/x_ite/Fields/SFMatrix3.js +16 -11
- package/src/x_ite/Fields/SFMatrix4.js +18 -11
- package/src/x_ite/Fields/SFMatrixPrototypeTemplate.js +15 -4
- package/src/x_ite/Fields/SFNode.js +1 -1
- package/src/x_ite/Fields/SFNodeCache.js +3 -5
- package/src/x_ite/Fields/SFRotation.js +27 -6
- package/src/x_ite/Fields/SFString.js +1 -1
- package/src/x_ite/Fields/SFTime.js +1 -1
- package/src/x_ite/Fields/SFVec2.js +5 -11
- package/src/x_ite/Fields/SFVec3.js +5 -11
- package/src/x_ite/Fields/SFVec4.js +5 -11
- package/src/x_ite/Fields/SFVecPrototypeTemplate.js +27 -17
- package/src/x_ite/Fields.js +1 -1
- package/src/x_ite/InputOutput/FileLoader.js +3 -3
- package/src/x_ite/InputOutput/Generator.js +1 -1
- package/src/x_ite/Namespace.js +2 -758
- package/src/x_ite/Parser/GoldenGate.js +1 -1
- package/src/x_ite/Parser/HTMLSupport.js +1 -1
- package/src/x_ite/Parser/JSONParser.js +4 -4
- package/src/x_ite/Parser/VRMLParser.js +15 -1
- package/src/x_ite/Parser/X3DParser.js +1 -1
- package/src/x_ite/Parser/XMLParser.js +1 -1
- package/src/x_ite/Prototype/ExternProtoDeclarationArray.js +1 -1
- package/src/x_ite/Prototype/ProtoDeclarationArray.js +1 -1
- package/src/x_ite/Prototype/X3DExternProtoDeclaration.js +1 -1
- package/src/x_ite/Prototype/X3DProtoDeclaration.js +1 -1
- package/src/x_ite/Prototype/X3DProtoDeclarationNode.js +1 -1
- package/src/x_ite/Rendering/DependentRenderer.js +1 -1
- package/src/x_ite/Rendering/TextureBuffer.js +1 -1
- package/src/x_ite/Rendering/TraverseType.js +1 -1
- package/src/x_ite/Rendering/VertexArray.js +2 -2
- package/src/x_ite/Rendering/X3DRenderObject.js +10 -7
- package/src/x_ite/Routing/RouteArray.js +1 -1
- package/src/x_ite/Routing/X3DRoute.js +1 -1
- package/src/x_ite/Routing/X3DRoutingContext.js +1 -1
- package/src/x_ite/X3D.js +25 -37
- package/src/x_ite/X3DCanvas.js +10 -12
- package/src/x_ite.css +20 -0
- package/src/x_ite.html +80 -77
- package/src/x_ite.js +1 -1
- package/webpack.config.js +79 -8
- package/x_ite.min.html +78 -76
- package/build/bin/namespace.mjs +0 -86
- package/docs/404.md +0 -11
- package/docs/Browser-Support.md +0 -53
- package/docs/Supported-Nodes.md +0 -378
- package/docs/_data/navigation.yml +0 -137
- package/docs/assets/css/main.scss +0 -126
- package/docs/reference/Field-Services-and-Objects.md +0 -1110
- package/docs/tutorials/index.md +0 -84
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* X_ITE v8.
|
|
1
|
+
/* X_ITE v8.3.0 */(() => { // webpackBootstrap
|
|
2
2
|
/******/ "use strict";
|
|
3
3
|
/******/ // The require scope
|
|
4
4
|
/******/ var __webpack_require__ = {};
|
|
@@ -39,26 +39,29 @@ var __webpack_exports__ = {};
|
|
|
39
39
|
// UNUSED EXPORTS: default
|
|
40
40
|
|
|
41
41
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components\")"
|
|
42
|
-
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
42
|
+
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.0")] .require ("x_ite/Components");
|
|
43
43
|
var Components_default = /*#__PURE__*/__webpack_require__.n(Components_namespaceObject);
|
|
44
44
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
|
|
45
|
-
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
45
|
+
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.0")] .require ("x_ite/Fields");
|
|
46
46
|
var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
|
|
47
47
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
|
|
48
|
-
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
48
|
+
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.0")] .require ("x_ite/Base/X3DFieldDefinition");
|
|
49
49
|
var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
|
|
50
50
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
|
|
51
|
-
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
51
|
+
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.0")] .require ("x_ite/Base/FieldDefinitionArray");
|
|
52
52
|
var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
|
|
53
53
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DSensorNode\")"
|
|
54
|
-
const X3DSensorNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
54
|
+
const X3DSensorNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.0")] .require ("x_ite/Components/Core/X3DSensorNode");
|
|
55
55
|
var X3DSensorNode_default = /*#__PURE__*/__webpack_require__.n(X3DSensorNode_namespaceObject);
|
|
56
56
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Rendering/TraverseType\")"
|
|
57
|
-
const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
57
|
+
const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.0")] .require ("x_ite/Rendering/TraverseType");
|
|
58
58
|
var TraverseType_default = /*#__PURE__*/__webpack_require__.n(TraverseType_namespaceObject);
|
|
59
59
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
|
|
60
|
-
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
60
|
+
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.0")] .require ("x_ite/Base/X3DConstants");
|
|
61
61
|
var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
|
|
62
|
+
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
|
|
63
|
+
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.0")] .require ("x_ite/Namespace");
|
|
64
|
+
var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
|
|
62
65
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Picking/MatchCriterion.js
|
|
63
66
|
/*******************************************************************************
|
|
64
67
|
*
|
|
@@ -100,7 +103,7 @@ var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_names
|
|
|
100
103
|
* details (a copy is included in the LICENSE file that accompanied this code).
|
|
101
104
|
*
|
|
102
105
|
* You should have received a copy of the GNU General Public License version 3
|
|
103
|
-
* along with X_ITE. If not, see <
|
|
106
|
+
* along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
|
|
104
107
|
* copy of the GPLv3 License.
|
|
105
108
|
*
|
|
106
109
|
* For Silvio, Joy and Adi.
|
|
@@ -116,8 +119,11 @@ const MatchCriterion =
|
|
|
116
119
|
MATCH_ONLY_ONE: i ++,
|
|
117
120
|
};
|
|
118
121
|
|
|
119
|
-
|
|
122
|
+
const __default__ = MatchCriterion;
|
|
123
|
+
;
|
|
120
124
|
|
|
125
|
+
Namespace_default().set ("x_ite/Browser/Picking/MatchCriterion", __default__);
|
|
126
|
+
/* harmony default export */ const Picking_MatchCriterion = (__default__);
|
|
121
127
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Picking/IntersectionType.js
|
|
122
128
|
/*******************************************************************************
|
|
123
129
|
*
|
|
@@ -159,7 +165,7 @@ const MatchCriterion =
|
|
|
159
165
|
* details (a copy is included in the LICENSE file that accompanied this code).
|
|
160
166
|
*
|
|
161
167
|
* You should have received a copy of the GNU General Public License version 3
|
|
162
|
-
* along with X_ITE. If not, see <
|
|
168
|
+
* along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
|
|
163
169
|
* copy of the GPLv3 License.
|
|
164
170
|
*
|
|
165
171
|
* For Silvio, Joy and Adi.
|
|
@@ -174,8 +180,11 @@ const IntersectionType =
|
|
|
174
180
|
GEOMETRY: IntersectionType_i ++,
|
|
175
181
|
};
|
|
176
182
|
|
|
177
|
-
|
|
183
|
+
const IntersectionType_default_ = IntersectionType;
|
|
184
|
+
;
|
|
178
185
|
|
|
186
|
+
Namespace_default().set ("x_ite/Browser/Picking/IntersectionType", IntersectionType_default_);
|
|
187
|
+
/* harmony default export */ const Picking_IntersectionType = (IntersectionType_default_);
|
|
179
188
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Picking/SortOrder.js
|
|
180
189
|
/*******************************************************************************
|
|
181
190
|
*
|
|
@@ -217,7 +226,7 @@ const IntersectionType =
|
|
|
217
226
|
* details (a copy is included in the LICENSE file that accompanied this code).
|
|
218
227
|
*
|
|
219
228
|
* You should have received a copy of the GNU General Public License version 3
|
|
220
|
-
* along with X_ITE. If not, see <
|
|
229
|
+
* along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
|
|
221
230
|
* copy of the GPLv3 License.
|
|
222
231
|
*
|
|
223
232
|
* For Silvio, Joy and Adi.
|
|
@@ -234,16 +243,19 @@ const SortOrder =
|
|
|
234
243
|
ALL_SORTED: SortOrder_i ++,
|
|
235
244
|
};
|
|
236
245
|
|
|
237
|
-
|
|
246
|
+
const SortOrder_default_ = SortOrder;
|
|
247
|
+
;
|
|
238
248
|
|
|
249
|
+
Namespace_default().set ("x_ite/Browser/Picking/SortOrder", SortOrder_default_);
|
|
250
|
+
/* harmony default export */ const Picking_SortOrder = (SortOrder_default_);
|
|
239
251
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Matrix4\")"
|
|
240
|
-
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
252
|
+
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.0")] .require ("standard/Math/Numbers/Matrix4");
|
|
241
253
|
var Matrix4_default = /*#__PURE__*/__webpack_require__.n(Matrix4_namespaceObject);
|
|
242
254
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Algorithms/QuickSort\")"
|
|
243
|
-
const QuickSort_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
255
|
+
const QuickSort_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.0")] .require ("standard/Math/Algorithms/QuickSort");
|
|
244
256
|
var QuickSort_default = /*#__PURE__*/__webpack_require__.n(QuickSort_namespaceObject);
|
|
245
257
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Utility/ObjectCache\")"
|
|
246
|
-
const ObjectCache_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
258
|
+
const ObjectCache_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.0")] .require ("standard/Utility/ObjectCache");
|
|
247
259
|
var ObjectCache_default = /*#__PURE__*/__webpack_require__.n(ObjectCache_namespaceObject);
|
|
248
260
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Picking/X3DPickSensorNode.js
|
|
249
261
|
/*******************************************************************************
|
|
@@ -286,7 +298,7 @@ var ObjectCache_default = /*#__PURE__*/__webpack_require__.n(ObjectCache_namespa
|
|
|
286
298
|
* details (a copy is included in the LICENSE file that accompanied this code).
|
|
287
299
|
*
|
|
288
300
|
* You should have received a copy of the GNU General Public License version 3
|
|
289
|
-
* along with X_ITE. If not, see <
|
|
301
|
+
* along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
|
|
290
302
|
* copy of the GPLv3 License.
|
|
291
303
|
*
|
|
292
304
|
* For Silvio, Joy and Adi.
|
|
@@ -675,16 +687,19 @@ X3DPickSensorNode .prototype = Object .assign (Object .create ((X3DSensorNode_de
|
|
|
675
687
|
},
|
|
676
688
|
});
|
|
677
689
|
|
|
678
|
-
|
|
690
|
+
const X3DPickSensorNode_default_ = X3DPickSensorNode;
|
|
691
|
+
;
|
|
679
692
|
|
|
693
|
+
Namespace_default().set ("x_ite/Components/Picking/X3DPickSensorNode", X3DPickSensorNode_default_);
|
|
694
|
+
/* harmony default export */ const Picking_X3DPickSensorNode = (X3DPickSensorNode_default_);
|
|
680
695
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector3\")"
|
|
681
|
-
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
696
|
+
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.0")] .require ("standard/Math/Numbers/Vector3");
|
|
682
697
|
var Vector3_default = /*#__PURE__*/__webpack_require__.n(Vector3_namespaceObject);
|
|
683
698
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Geometry/Box3\")"
|
|
684
|
-
const Box3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
699
|
+
const Box3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.0")] .require ("standard/Math/Geometry/Box3");
|
|
685
700
|
var Box3_default = /*#__PURE__*/__webpack_require__.n(Box3_namespaceObject);
|
|
686
701
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Geometry/Line3\")"
|
|
687
|
-
const Line3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
702
|
+
const Line3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.0")] .require ("standard/Math/Geometry/Line3");
|
|
688
703
|
var Line3_default = /*#__PURE__*/__webpack_require__.n(Line3_namespaceObject);
|
|
689
704
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Picking/LinePickSensor.js
|
|
690
705
|
/*******************************************************************************
|
|
@@ -727,7 +742,7 @@ var Line3_default = /*#__PURE__*/__webpack_require__.n(Line3_namespaceObject);
|
|
|
727
742
|
* details (a copy is included in the LICENSE file that accompanied this code).
|
|
728
743
|
*
|
|
729
744
|
* You should have received a copy of the GNU General Public License version 3
|
|
730
|
-
* along with X_ITE. If not, see <
|
|
745
|
+
* along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
|
|
731
746
|
* copy of the GPLv3 License.
|
|
732
747
|
*
|
|
733
748
|
* For Silvio, Joy and Adi.
|
|
@@ -1010,10 +1025,13 @@ LinePickSensor .prototype = Object .assign (Object .create (Picking_X3DPickSenso
|
|
|
1010
1025
|
})(),
|
|
1011
1026
|
});
|
|
1012
1027
|
|
|
1013
|
-
|
|
1028
|
+
const LinePickSensor_default_ = LinePickSensor;
|
|
1029
|
+
;
|
|
1014
1030
|
|
|
1031
|
+
Namespace_default().set ("x_ite/Components/Picking/LinePickSensor", LinePickSensor_default_);
|
|
1032
|
+
/* harmony default export */ const Picking_LinePickSensor = (LinePickSensor_default_);
|
|
1015
1033
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DGroupingNode\")"
|
|
1016
|
-
const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
1034
|
+
const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.0")] .require ("x_ite/Components/Grouping/X3DGroupingNode");
|
|
1017
1035
|
var X3DGroupingNode_default = /*#__PURE__*/__webpack_require__.n(X3DGroupingNode_namespaceObject);
|
|
1018
1036
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Picking/X3DPickableObject.js
|
|
1019
1037
|
/*******************************************************************************
|
|
@@ -1056,7 +1074,7 @@ var X3DGroupingNode_default = /*#__PURE__*/__webpack_require__.n(X3DGroupingNode
|
|
|
1056
1074
|
* details (a copy is included in the LICENSE file that accompanied this code).
|
|
1057
1075
|
*
|
|
1058
1076
|
* You should have received a copy of the GNU General Public License version 3
|
|
1059
|
-
* along with X_ITE. If not, see <
|
|
1077
|
+
* along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
|
|
1060
1078
|
* copy of the GPLv3 License.
|
|
1061
1079
|
*
|
|
1062
1080
|
* For Silvio, Joy and Adi.
|
|
@@ -1097,8 +1115,11 @@ X3DPickableObject .prototype =
|
|
|
1097
1115
|
dispose: function () { },
|
|
1098
1116
|
};
|
|
1099
1117
|
|
|
1100
|
-
|
|
1118
|
+
const X3DPickableObject_default_ = X3DPickableObject;
|
|
1119
|
+
;
|
|
1101
1120
|
|
|
1121
|
+
Namespace_default().set ("x_ite/Components/Picking/X3DPickableObject", X3DPickableObject_default_);
|
|
1122
|
+
/* harmony default export */ const Picking_X3DPickableObject = (X3DPickableObject_default_);
|
|
1102
1123
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Picking/PickableGroup.js
|
|
1103
1124
|
/*******************************************************************************
|
|
1104
1125
|
*
|
|
@@ -1140,7 +1161,7 @@ X3DPickableObject .prototype =
|
|
|
1140
1161
|
* details (a copy is included in the LICENSE file that accompanied this code).
|
|
1141
1162
|
*
|
|
1142
1163
|
* You should have received a copy of the GNU General Public License version 3
|
|
1143
|
-
* along with X_ITE. If not, see <
|
|
1164
|
+
* along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
|
|
1144
1165
|
* copy of the GPLv3 License.
|
|
1145
1166
|
*
|
|
1146
1167
|
* For Silvio, Joy and Adi.
|
|
@@ -1307,17 +1328,20 @@ PickableGroup .prototype = Object .assign (Object .create ((X3DGroupingNode_defa
|
|
|
1307
1328
|
},
|
|
1308
1329
|
});
|
|
1309
1330
|
|
|
1310
|
-
|
|
1331
|
+
const PickableGroup_default_ = PickableGroup;
|
|
1332
|
+
;
|
|
1311
1333
|
|
|
1334
|
+
Namespace_default().set ("x_ite/Components/Picking/PickableGroup", PickableGroup_default_);
|
|
1335
|
+
/* harmony default export */ const Picking_PickableGroup = (PickableGroup_default_);
|
|
1312
1336
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DCast\")"
|
|
1313
|
-
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
1337
|
+
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.0")] .require ("x_ite/Base/X3DCast");
|
|
1314
1338
|
var X3DCast_default = /*#__PURE__*/__webpack_require__.n(X3DCast_namespaceObject);
|
|
1315
1339
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Rotation4\")"
|
|
1316
|
-
const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
1340
|
+
const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.0")] .require ("standard/Math/Numbers/Rotation4");
|
|
1317
1341
|
var Rotation4_default = /*#__PURE__*/__webpack_require__.n(Rotation4_namespaceObject);
|
|
1318
|
-
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"
|
|
1319
|
-
const
|
|
1320
|
-
var
|
|
1342
|
+
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"lib/ammojs/AmmoClass\")"
|
|
1343
|
+
const AmmoClass_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.0")] .require ("lib/ammojs/AmmoClass");
|
|
1344
|
+
var AmmoClass_default = /*#__PURE__*/__webpack_require__.n(AmmoClass_namespaceObject);
|
|
1321
1345
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Picking/VolumePicker.js
|
|
1322
1346
|
/*******************************************************************************
|
|
1323
1347
|
*
|
|
@@ -1359,7 +1383,7 @@ var X3D_default = /*#__PURE__*/__webpack_require__.n(X3D_namespaceObject);
|
|
|
1359
1383
|
* details (a copy is included in the LICENSE file that accompanied this code).
|
|
1360
1384
|
*
|
|
1361
1385
|
* You should have received a copy of the GNU General Public License version 3
|
|
1362
|
-
* along with X_ITE. If not, see <
|
|
1386
|
+
* along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
|
|
1363
1387
|
* copy of the GPLv3 License.
|
|
1364
1388
|
*
|
|
1365
1389
|
* For Silvio, Joy and Adi.
|
|
@@ -1371,24 +1395,22 @@ var X3D_default = /*#__PURE__*/__webpack_require__.n(X3D_namespaceObject);
|
|
|
1371
1395
|
|
|
1372
1396
|
|
|
1373
1397
|
|
|
1374
|
-
const Ammo = X3D_default().require ("Ammo");
|
|
1375
|
-
|
|
1376
1398
|
function VolumePicker ()
|
|
1377
1399
|
{
|
|
1378
|
-
this .broadphase = new
|
|
1379
|
-
this .collisionConfiguration = new
|
|
1380
|
-
this .dispatcher = new
|
|
1381
|
-
this .collisionWorld = new
|
|
1400
|
+
this .broadphase = new (AmmoClass_default()).btDbvtBroadphase ();
|
|
1401
|
+
this .collisionConfiguration = new (AmmoClass_default()).btDefaultCollisionConfiguration ();
|
|
1402
|
+
this .dispatcher = new (AmmoClass_default()).btCollisionDispatcher (this .collisionConfiguration);
|
|
1403
|
+
this .collisionWorld = new (AmmoClass_default()).btCollisionWorld (this .dispatcher, this .broadphase, this .collisionConfiguration);
|
|
1382
1404
|
|
|
1383
|
-
this .compoundShape1 = new
|
|
1384
|
-
this .motionState1 = new
|
|
1385
|
-
this .constructionInfo1 = new
|
|
1386
|
-
this .rigidBody1 = new
|
|
1405
|
+
this .compoundShape1 = new (AmmoClass_default()).btCompoundShape ();
|
|
1406
|
+
this .motionState1 = new (AmmoClass_default()).btDefaultMotionState ();
|
|
1407
|
+
this .constructionInfo1 = new (AmmoClass_default()).btRigidBodyConstructionInfo (0, this .motionState1, this .compoundShape1);
|
|
1408
|
+
this .rigidBody1 = new (AmmoClass_default()).btRigidBody (this .constructionInfo1);
|
|
1387
1409
|
|
|
1388
|
-
this .compoundShape2 = new
|
|
1389
|
-
this .motionState2 = new
|
|
1390
|
-
this .constructionInfo2 = new
|
|
1391
|
-
this .rigidBody2 = new
|
|
1410
|
+
this .compoundShape2 = new (AmmoClass_default()).btCompoundShape ();
|
|
1411
|
+
this .motionState2 = new (AmmoClass_default()).btDefaultMotionState ();
|
|
1412
|
+
this .constructionInfo2 = new (AmmoClass_default()).btRigidBodyConstructionInfo (0, this .motionState2, this .compoundShape2);
|
|
1413
|
+
this .rigidBody2 = new (AmmoClass_default()).btRigidBody (this .constructionInfo2);
|
|
1392
1414
|
|
|
1393
1415
|
this .collisionWorld .addCollisionObject (this .rigidBody1);
|
|
1394
1416
|
this .collisionWorld .addCollisionObject (this .rigidBody2);
|
|
@@ -1419,7 +1441,7 @@ VolumePicker .prototype =
|
|
|
1419
1441
|
translation = new (Vector3_default()) (0, 0, 0),
|
|
1420
1442
|
rotation = new (Rotation4_default()) (0, 0, 1, 0),
|
|
1421
1443
|
scale = new (Vector3_default()) (1, 1, 1),
|
|
1422
|
-
s = new
|
|
1444
|
+
s = new (AmmoClass_default()).btVector3 (0, 0, 0);
|
|
1423
1445
|
|
|
1424
1446
|
return function (compoundShape, matrix, childShape)
|
|
1425
1447
|
{
|
|
@@ -1474,8 +1496,8 @@ VolumePicker .prototype =
|
|
|
1474
1496
|
getTransform: (function ()
|
|
1475
1497
|
{
|
|
1476
1498
|
const
|
|
1477
|
-
T = new
|
|
1478
|
-
o = new
|
|
1499
|
+
T = new (AmmoClass_default()).btTransform (),
|
|
1500
|
+
o = new (AmmoClass_default()).btVector3 (0, 0, 0),
|
|
1479
1501
|
m = new (Matrix4_default()) ();
|
|
1480
1502
|
|
|
1481
1503
|
return function (translation, rotation, transform)
|
|
@@ -1497,8 +1519,11 @@ VolumePicker .prototype =
|
|
|
1497
1519
|
})(),
|
|
1498
1520
|
};
|
|
1499
1521
|
|
|
1500
|
-
|
|
1522
|
+
const VolumePicker_default_ = VolumePicker;
|
|
1523
|
+
;
|
|
1501
1524
|
|
|
1525
|
+
Namespace_default().set ("x_ite/Browser/Picking/VolumePicker", VolumePicker_default_);
|
|
1526
|
+
/* harmony default export */ const Picking_VolumePicker = (VolumePicker_default_);
|
|
1502
1527
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Picking/PointPickSensor.js
|
|
1503
1528
|
/*******************************************************************************
|
|
1504
1529
|
*
|
|
@@ -1540,7 +1565,7 @@ VolumePicker .prototype =
|
|
|
1540
1565
|
* details (a copy is included in the LICENSE file that accompanied this code).
|
|
1541
1566
|
*
|
|
1542
1567
|
* You should have received a copy of the GNU General Public License version 3
|
|
1543
|
-
* along with X_ITE. If not, see <
|
|
1568
|
+
* along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
|
|
1544
1569
|
* copy of the GPLv3 License.
|
|
1545
1570
|
*
|
|
1546
1571
|
* For Silvio, Joy and Adi.
|
|
@@ -1560,8 +1585,6 @@ VolumePicker .prototype =
|
|
|
1560
1585
|
|
|
1561
1586
|
|
|
1562
1587
|
|
|
1563
|
-
const PointPickSensor_Ammo = X3D_default().require ("Ammo");
|
|
1564
|
-
|
|
1565
1588
|
function PointPickSensor (executionContext)
|
|
1566
1589
|
{
|
|
1567
1590
|
Picking_X3DPickSensorNode.call (this, executionContext);
|
|
@@ -1624,9 +1647,9 @@ PointPickSensor .prototype = Object .assign (Object .create (Picking_X3DPickSens
|
|
|
1624
1647
|
set_geometry__: (function ()
|
|
1625
1648
|
{
|
|
1626
1649
|
var
|
|
1627
|
-
defaultScale = new
|
|
1628
|
-
o = new
|
|
1629
|
-
t = new
|
|
1650
|
+
defaultScale = new (AmmoClass_default()).btVector3 (1, 1, 1),
|
|
1651
|
+
o = new (AmmoClass_default()).btVector3 (),
|
|
1652
|
+
t = new (AmmoClass_default()).btTransform ();
|
|
1630
1653
|
|
|
1631
1654
|
return function ()
|
|
1632
1655
|
{
|
|
@@ -1655,8 +1678,8 @@ PointPickSensor .prototype = Object .assign (Object .create (Picking_X3DPickSens
|
|
|
1655
1678
|
else
|
|
1656
1679
|
{
|
|
1657
1680
|
var
|
|
1658
|
-
compoundShape = new
|
|
1659
|
-
sphereShape = new
|
|
1681
|
+
compoundShape = new (AmmoClass_default()).btCompoundShape (),
|
|
1682
|
+
sphereShape = new (AmmoClass_default()).btSphereShape (0),
|
|
1660
1683
|
point = coord .get1Point (i, new (Vector3_default()) (0, 0, 0));
|
|
1661
1684
|
|
|
1662
1685
|
compoundShape .point = point;
|
|
@@ -1689,8 +1712,8 @@ PointPickSensor .prototype = Object .assign (Object .create (Picking_X3DPickSens
|
|
|
1689
1712
|
targetBBox = new (Box3_default()) (),
|
|
1690
1713
|
pickingCenter = new (Vector3_default()) (0, 0, 0),
|
|
1691
1714
|
targetCenter = new (Vector3_default()) (0, 0, 0),
|
|
1692
|
-
transform = new
|
|
1693
|
-
localScaling = new
|
|
1715
|
+
transform = new (AmmoClass_default()).btTransform (),
|
|
1716
|
+
localScaling = new (AmmoClass_default()).btVector3 (),
|
|
1694
1717
|
translation = new (Vector3_default()) (0, 0, 0),
|
|
1695
1718
|
rotation = new (Rotation4_default()) (0, 0, 1, 0),
|
|
1696
1719
|
scale = new (Vector3_default()) (1, 1, 1),
|
|
@@ -1836,8 +1859,11 @@ PointPickSensor .prototype = Object .assign (Object .create (Picking_X3DPickSens
|
|
|
1836
1859
|
})(),
|
|
1837
1860
|
});
|
|
1838
1861
|
|
|
1839
|
-
|
|
1862
|
+
const PointPickSensor_default_ = PointPickSensor;
|
|
1863
|
+
;
|
|
1840
1864
|
|
|
1865
|
+
Namespace_default().set ("x_ite/Components/Picking/PointPickSensor", PointPickSensor_default_);
|
|
1866
|
+
/* harmony default export */ const Picking_PointPickSensor = (PointPickSensor_default_);
|
|
1841
1867
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Picking/PrimitivePickSensor.js
|
|
1842
1868
|
/*******************************************************************************
|
|
1843
1869
|
*
|
|
@@ -1879,7 +1905,7 @@ PointPickSensor .prototype = Object .assign (Object .create (Picking_X3DPickSens
|
|
|
1879
1905
|
* details (a copy is included in the LICENSE file that accompanied this code).
|
|
1880
1906
|
*
|
|
1881
1907
|
* You should have received a copy of the GNU General Public License version 3
|
|
1882
|
-
* along with X_ITE. If not, see <
|
|
1908
|
+
* along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
|
|
1883
1909
|
* copy of the GPLv3 License.
|
|
1884
1910
|
*
|
|
1885
1911
|
* For Silvio, Joy and Adi.
|
|
@@ -2093,8 +2119,11 @@ PrimitivePickSensor .prototype = Object .assign (Object .create (Picking_X3DPick
|
|
|
2093
2119
|
})(),
|
|
2094
2120
|
});
|
|
2095
2121
|
|
|
2096
|
-
|
|
2122
|
+
const PrimitivePickSensor_default_ = PrimitivePickSensor;
|
|
2123
|
+
;
|
|
2097
2124
|
|
|
2125
|
+
Namespace_default().set ("x_ite/Components/Picking/PrimitivePickSensor", PrimitivePickSensor_default_);
|
|
2126
|
+
/* harmony default export */ const Picking_PrimitivePickSensor = (PrimitivePickSensor_default_);
|
|
2098
2127
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Picking/VolumePickSensor.js
|
|
2099
2128
|
/*******************************************************************************
|
|
2100
2129
|
*
|
|
@@ -2136,7 +2165,7 @@ PrimitivePickSensor .prototype = Object .assign (Object .create (Picking_X3DPick
|
|
|
2136
2165
|
* details (a copy is included in the LICENSE file that accompanied this code).
|
|
2137
2166
|
*
|
|
2138
2167
|
* You should have received a copy of the GNU General Public License version 3
|
|
2139
|
-
* along with X_ITE. If not, see <
|
|
2168
|
+
* along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
|
|
2140
2169
|
* copy of the GPLv3 License.
|
|
2141
2170
|
*
|
|
2142
2171
|
* For Silvio, Joy and Adi.
|
|
@@ -2325,8 +2354,11 @@ VolumePickSensor .prototype = Object .assign (Object .create (Picking_X3DPickSen
|
|
|
2325
2354
|
})(),
|
|
2326
2355
|
});
|
|
2327
2356
|
|
|
2328
|
-
|
|
2357
|
+
const VolumePickSensor_default_ = VolumePickSensor;
|
|
2358
|
+
;
|
|
2329
2359
|
|
|
2360
|
+
Namespace_default().set ("x_ite/Components/Picking/VolumePickSensor", VolumePickSensor_default_);
|
|
2361
|
+
/* harmony default export */ const Picking_VolumePickSensor = (VolumePickSensor_default_);
|
|
2330
2362
|
;// CONCATENATED MODULE: ./src/assets/components/Picking.js
|
|
2331
2363
|
/*******************************************************************************
|
|
2332
2364
|
*
|
|
@@ -2368,7 +2400,7 @@ VolumePickSensor .prototype = Object .assign (Object .create (Picking_X3DPickSen
|
|
|
2368
2400
|
* details (a copy is included in the LICENSE file that accompanied this code).
|
|
2369
2401
|
*
|
|
2370
2402
|
* You should have received a copy of the GNU General Public License version 3
|
|
2371
|
-
* along with X_ITE. If not, see <
|
|
2403
|
+
* along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
|
|
2372
2404
|
* copy of the GPLv3 License.
|
|
2373
2405
|
*
|
|
2374
2406
|
* For Silvio, Joy and Adi.
|
|
@@ -2401,7 +2433,10 @@ Components_default().addComponent ({
|
|
|
2401
2433
|
},
|
|
2402
2434
|
});
|
|
2403
2435
|
|
|
2404
|
-
|
|
2436
|
+
const Picking_default_ = undefined;
|
|
2437
|
+
;
|
|
2405
2438
|
|
|
2439
|
+
Namespace_default().set ("assets/components/Picking", Picking_default_);
|
|
2440
|
+
/* harmony default export */ const Picking = ((/* unused pure expression or super */ null && (Picking_default_)));
|
|
2406
2441
|
/******/ })()
|
|
2407
2442
|
;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/* X_ITE v8.0.0 */(()=>{"use strict";var e={n:t=>{var i=t&&t.__esModule?()=>t.default:()=>t;return e.d(i,{a:i}),i},d:(t,i)=>{for(var n in i)e.o(i,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:i[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window[Symbol.for("X_ITE.X3D-8.0.0")].require("x_ite/Components");var i=e.n(t);const n=window[Symbol.for("X_ITE.X3D-8.0.0")].require("x_ite/Fields");var o=e.n(n);const s=window[Symbol.for("X_ITE.X3D-8.0.0")].require("x_ite/Base/X3DFieldDefinition");var r=e.n(s);const c=window[Symbol.for("X_ITE.X3D-8.0.0")].require("x_ite/Base/FieldDefinitionArray");var a=e.n(c);const h=window[Symbol.for("X_ITE.X3D-8.0.0")].require("x_ite/Components/Core/X3DSensorNode");var p=e.n(h);const l=window[Symbol.for("X_ITE.X3D-8.0.0")].require("x_ite/Rendering/TraverseType");var d=e.n(l);const g=window[Symbol.for("X_ITE.X3D-8.0.0")].require("x_ite/Base/X3DConstants");var u=e.n(g);let m=0;const y={MATCH_ANY:m++,MATCH_EVERY:m++,MATCH_ONLY_ONE:m++};let _=0;const w={BOUNDS:_++,GEOMETRY:_++};let f=0;const S={ANY:f++,CLOSEST:f++,ALL:f++,ALL_SORTED:f++},k=window[Symbol.for("X_ITE.X3D-8.0.0")].require("standard/Math/Numbers/Matrix4");var T=e.n(k);const b=window[Symbol.for("X_ITE.X3D-8.0.0")].require("standard/Math/Algorithms/QuickSort");var O=e.n(b);const v=window[Symbol.for("X_ITE.X3D-8.0.0")].require("standard/Utility/ObjectCache");var N,C,G,M,B=e.n(v)()(T());function x(e,t){return e.distance<t.distance}function P(e){p().call(this,e),this.addType(u().X3DPickSensorNode),this.objectType=new Set,this.intersectionType=w.BOUNDS,this.sortOrder=S.CLOSEST,this.pickTargetNodes=new Set,this.modelMatrices=[],this.targets=[],this.targets.size=0,this.pickedTargets=[],this.pickedTargetsSorter=new(O())(this.pickedTargets,x),this.pickedGeometries=new(o().MFNode)}P.prototype=Object.assign(Object.create(p().prototype),{constructor:P,initialize:function(){this.isLive().addInterest("set_live__",this),this._enabled.addInterest("set_live__",this),this._objectType.addInterest("set_objectType__",this),this._matchCriterion.addInterest("set_matchCriterion__",this),this._intersectionType.addInterest("set_intersectionType__",this),this._sortOrder.addInterest("set_sortOrder__",this),this._pickTarget.addInterest("set_pickTarget__",this),this.set_objectType__(),this.set_matchCriterion__(),this.set_intersectionType__(),this.set_sortOrder__(),this.set_pickTarget__()},getObjectType:function(){return this.objectType},getMatchCriterion:function(){return this.matchCriterion},getIntersectionType:function(){return this.intersectionType},getSortOrder:function(){return this.sortOrder},getModelMatrices:function(){return this.modelMatrices},getTargets:function(){return this.targets},getPickShape:(M=new WeakMap,function(e){var t=M.get(e);if(void 0!==t)return t;var i=this.getExecutionContext().createNode("Shape",!1),n=this.getExecutionContext().createNode("CollidableShape",!1);return i.setPrivate(!0),n.setPrivate(!0),n.setConvex(!0),i._geometry=e,n._shape=i,i.setup(),n.setup(),M.set(e,n),n}),getPickedGeometries:function(){var e=this.targets,t=e.size,i=this.pickedTargets,n=this.pickedGeometries;i.length=0;for(var o=0;o<t;++o){var s=e[o];s.intersected&&i.push(s)}if(0===i.length)return n.length=0,n;switch(this.sortOrder){case S.ANY:i.length=1,n[0]=this.getPickedGeometry(i[0]),n.length=1;break;case S.CLOSEST:this.pickedTargetsSorter.sort(0,i.length),i.length=1,n[0]=this.getPickedGeometry(i[0]),n.length=1;break;case S.ALL:o=0;for(var r=i.length;o<r;++o)n[o]=this.getPickedGeometry(i[o]);n.length=r;break;case S.ALL_SORTED:for(this.pickedTargetsSorter.sort(0,i.length),o=0,r=i.length;o<r;++o)n[o]=this.getPickedGeometry(i[o]);n.length=r}return n},getPickedGeometry:function(e){var t=this.getExecutionContext(),i=e.geometryNode;if(i.getExecutionContext()===t)return i;if(-1!==(s=i.getExecutionContext()).getType().indexOf(u().X3DPrototypeInstance)&&s.getExecutionContext()===t)return s;for(var n=e.pickingHierarchy,o=n.length-1;o>=0;--o){var s,r=n[o];if(r.getExecutionContext()===t)return r;if(-1!==(s=r.getExecutionContext()).getType().indexOf(u().X3DPrototypeInstance)&&s.getExecutionContext()===t)return s}return null},getPickedTargets:function(){return this.pickedTargets},set_live__:function(){this.isLive().getValue()&&this._enabled.getValue()&&!this.objectType.has("NONE")?(this.getBrowser().addPickSensor(this),this.setPickableObject(!0)):(this.getBrowser().removePickSensor(this),this.setPickableObject(!1))},set_objectType__:function(){this.objectType.clear();for(var e=0,t=this._objectType.length;e<t;++e)this.objectType.add(this._objectType[e]);this.set_live__()},set_matchCriterion__:(G=new Map([["MATCH_ANY",y.MATCH_ANY],["MATCH_EVERY",y.MATCH_EVERY],["MATCH_ONLY_ONE",y.MATCH_ONLY_ONE]]),function(){this.matchCriterion=G.get(this._matchCriterion.getValue()),void 0===this.matchCriterion&&(this.matchCriterion=MatchCriterionType.MATCH_ANY)}),set_intersectionType__:(C=new Map([["BOUNDS",w.BOUNDS],["GEOMETRY",w.GEOMETRY]]),function(){this.intersectionType=C.get(this._intersectionType.getValue()),void 0===this.intersectionType&&(this.intersectionType=w.BOUNDS)}),set_sortOrder__:(N=new Map([["ANY",S.ANY],["CLOSEST",S.CLOSEST],["ALL",S.ALL],["ALL_SORTED",S.ALL_SORTED]]),function(){this.sortOrder=N.get(this._sortOrder.getValue()),void 0===this.sortOrder&&(this.sortOrder=S.CLOSEST)}),set_pickTarget__:function(){this.pickTargetNodes.clear();for(var e=0,t=this._pickTarget.length;e<t;++e)try{for(var i=this._pickTarget[e].getValue().getInnerNode(),n=i.getType(),o=n.length-1;o>=0;--o)switch(n[o]){case u().Inline:case u().Shape:case u().X3DGroupingNode:this.pickTargetNodes.add(i);break;default:continue}}catch(e){}},traverse:function(e,t){e===d().PICKING&&this.getPickableObject()&&this.modelMatrices.push(B.pop().assign(t.getModelViewMatrix().get()))},collect:function(e,t,i){var n=this.pickTargetNodes;if(i.some((function(e){return n.has(e)}))){var o=this.targets;if(o.size<o.length)var s=o[o.size];else{s={modelMatrix:new(T()),pickingHierarchy:[],pickedPoint:[],intersections:[]};o.push(s)}++o.size,s.intersected=!1,s.geometryNode=e,s.pickedPoint.length=0,s.intersections.length=0,s.modelMatrix.assign(t);for(var r=s.pickingHierarchy,c=0,a=i.length;c<a;++c)r[c]=i[c];r.length=a}},process:function(){for(var e=this.modelMatrices,t=0,i=e.length;t<i;++t)B.push(e[t]);this.modelMatrices.length=0,this.targets.size=0}});const E=P,A=window[Symbol.for("X_ITE.X3D-8.0.0")].require("standard/Math/Numbers/Vector3");var D=e.n(A);const F=window[Symbol.for("X_ITE.X3D-8.0.0")].require("standard/Math/Geometry/Box3");var I=e.n(F);const j=window[Symbol.for("X_ITE.X3D-8.0.0")].require("standard/Math/Geometry/Line3");var X,L,V,z,R,q,Y,H,U,W,K,Q,Z,J,$,ee,te=e.n(j);function ie(e){E.call(this,e),this.addType(u().LinePickSensor),this.pickingGeometryNode=null}ie.prototype=Object.assign(Object.create(E.prototype),{constructor:ie,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(u().inputOutput,"objectType",new(o().MFString)("ALL")),new(r())(u().inputOutput,"matchCriterion",new(o().SFString)("MATCH_ANY")),new(r())(u().initializeOnly,"intersectionType",new(o().SFString)("BOUNDS")),new(r())(u().initializeOnly,"sortOrder",new(o().SFString)("CLOSEST")),new(r())(u().outputOnly,"isActive",new(o().SFBool)),new(r())(u().outputOnly,"pickedTextureCoordinate",new(o().MFVec3f)),new(r())(u().outputOnly,"pickedNormal",new(o().MFVec3f)),new(r())(u().outputOnly,"pickedPoint",new(o().MFVec3f)),new(r())(u().inputOutput,"pickingGeometry",new(o().SFNode)),new(r())(u().inputOutput,"pickTarget",new(o().MFNode)),new(r())(u().outputOnly,"pickedGeometry",new(o().MFNode))]),getTypeName:function(){return"LinePickSensor"},getComponentName:function(){return"Picking"},getContainerField:function(){return"children"},initialize:function(){E.prototype.initialize.call(this),this._pickingGeometry.addInterest("set_pickingGeometry__",this),this.set_pickingGeometry__()},set_pickingGeometry__:function(){this.pickingGeometryNode=null;try{for(var e=this._pickingGeometry.getValue().getInnerNode(),t=e.getType(),i=t.length-1;i>=0;--i)switch(t[i]){case u().IndexedLineSet:case u().LineSet:this.pickingGeometryNode=e;break;default:continue}}catch(e){}},process:(X=new(I()),L=new(I()),V=new(D())(0,0,0),z=new(D())(0,0,0),R=new(T()),q=new(D())(0,0,0),Y=new(D())(0,0,0),H=new(te())(D().Zero,D().zAxis),U=new(D())(0,0,0),W=new(D())(0,0,0),K=[],Q=[],Z=new(D())(0,0,0),J=new(o().MFVec3f),$=new(o().MFVec3f),ee=new(o().MFVec3f),function(){if(this.pickingGeometryNode){var e=this.getModelMatrices(),t=this.getTargets();switch(this.getIntersectionType()){case w.BOUNDS:for(var i=0,n=e.length;i<n;++i){var o=e[i];X.assign(this.pickingGeometryNode.getBBox()).multRight(o);for(var s=0,r=t.size;s<r;++s){var c=t[s];L.assign(c.geometryNode.getBBox()).multRight(c.modelMatrix),X.intersectsBox(L)&&(V.assign(X.center),z.assign(L.center),c.intersected=!0,c.distance=V.distance(z))}}var a=this.getPickedGeometries(),h=Boolean(a.length);a.remove(0,a.length,null),h!==this._isActive.getValue()&&(this._isActive=h),this._pickedGeometry.equals(a)||(this._pickedGeometry=a);break;case w.GEOMETRY:for(i=0,n=e.length;i<n;++i)for(o=e[i],X.assign(this.pickingGeometryNode.getBBox()).multRight(o),s=0,r=t.size;s<r;++s){var p=(c=t[s]).geometryNode,l=this.pickingGeometryNode.getVertices();L.assign(p.getBBox()).multRight(c.modelMatrix),R.assign(c.modelMatrix).inverse().multLeft(o);for(var d=0,g=l.length;d<g;d+=8)if(R.multVecMatrix(q.set(l[d+0],l[d+1],l[d+2])),R.multVecMatrix(Y.set(l[d+4],l[d+5],l[d+6])),H.setPoints(q,Y),Q.length=0,p.intersectsLineWithGeometry(H,c.modelMatrix,K,Q))for(var u=0,m=Q.length;u<m;++u){var y=Q[u];U.assign(y.point).subtract(q),W.assign(y.point).subtract(Y),U.add(W).magnitude()<=q.distance(Y)&&c.intersections.push(y)}c.intersections.length&&(V.assign(X.center),z.assign(L.center),c.intersected=!0,c.distance=V.distance(z))}a=this.getPickedGeometries(),h=Boolean(a.length),a.remove(0,a.length,null),h!==this._isActive.getValue()&&(this._isActive=h),this._pickedGeometry.equals(a)||(this._pickedGeometry=a);var _=this.getPickedTargets();for(J.length=0,$.length=0,ee.length=0,s=0,r=_.length;s<r;++s){var f=_[s].intersections;for(u=0,m=f.length;u<m;++u)s=(y=f[u]).texCoord,Z.set(s.x,s.y,s.z),J.push(Z),$.push(y.normal),ee.push(y.point)}this._pickedTextureCoordinate.equals(J)||(this._pickedTextureCoordinate=J),this._pickedNormal.equals($)||(this._pickedNormal=$),this._pickedPoint.equals(ee)||(this._pickedPoint=ee)}}E.prototype.process.call(this)})});const ne=ie,oe=window[Symbol.for("X_ITE.X3D-8.0.0")].require("x_ite/Components/Grouping/X3DGroupingNode");var se=e.n(oe);function re(e){this.addType(u().X3DPickableObject),this.objectType=new Set}re.prototype={constructor:re,initialize:function(){this._objectType.addInterest("set_objectType__",this),this.set_objectType__()},getObjectType:function(){return this.objectType},set_objectType__:function(){this.objectType.clear();for(var e=0,t=this._objectType.length;e<t;++e)this.objectType.add(this._objectType[e])},dispose:function(){}};const ce=re;function ae(e){se().call(this,e),ce.call(this,e),this.addType(u().PickableGroup)}ae.prototype=Object.assign(Object.create(se().prototype),ce.prototype,{constructor:ae,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"pickable",new(o().SFBool)(!0)),new(r())(u().inputOutput,"objectType",new(o().MFString)("ALL")),new(r())(u().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(u().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(u().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(u().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(u().inputOnly,"addChildren",new(o().MFNode)),new(r())(u().inputOnly,"removeChildren",new(o().MFNode)),new(r())(u().inputOutput,"children",new(o().MFNode))]),getTypeName:function(){return"PickableGroup"},getComponentName:function(){return"Picking"},getContainerField:function(){return"children"},initialize:function(){se().prototype.initialize.call(this),ce.prototype.initialize.call(this),this._pickable.addInterest("set_pickable__",this),this.set_pickable__()},set_pickableObjects__:function(){this.set_pickable__()},set_pickable__:function(){this.setPickableObject(Boolean(this._pickable.getValue()||this.getTransformSensors().size))},traverse:function(){const e=new Set;return function(t,i){if(t===d().PICKING){if(this._pickable.getValue()){if(this.getObjectType().has("NONE"))return;const n=this.getBrowser(),o=n.getPickable();if(this.getObjectType().has("ALL"))o.push(!0),se().prototype.traverse.call(this,t,i),o.pop();else{const s=n.getPickSensors();for(const t of s.at(-1)){if(!t.getObjectType().has("ALL")){let e=0;for(const i of this.getObjectType())if(t.getObjectType().has(i)){++e;break}switch(t.getMatchCriterion()){case y.MATCH_ANY:if(0===e)continue;break;case y.MATCH_EVERY:if(e!==pickSensor.getObjectType().size)continue;break;case y.MATCH_ONLY_ONE:if(1!==e)continue}}e.add(t)}o.push(!0),s.push(e),se().prototype.traverse.call(this,t,i),s.pop(),o.pop(),e.clear()}}}else se().prototype.traverse.call(this,t,i)}}(),dispose:function(){ce.prototype.dispose.call(this),se().prototype.dispose.call(this)}});const he=ae,pe=window[Symbol.for("X_ITE.X3D-8.0.0")].require("x_ite/Base/X3DCast");var le=e.n(pe);const de=window[Symbol.for("X_ITE.X3D-8.0.0")].require("standard/Math/Numbers/Rotation4");var ge=e.n(de);const ue=window[Symbol.for("X_ITE.X3D-8.0.0")].require("x_ite/X3D");var me=e.n(ue);const ye=me().require("Ammo");function _e(){this.broadphase=new ye.btDbvtBroadphase,this.collisionConfiguration=new ye.btDefaultCollisionConfiguration,this.dispatcher=new ye.btCollisionDispatcher(this.collisionConfiguration),this.collisionWorld=new ye.btCollisionWorld(this.dispatcher,this.broadphase,this.collisionConfiguration),this.compoundShape1=new ye.btCompoundShape,this.motionState1=new ye.btDefaultMotionState,this.constructionInfo1=new ye.btRigidBodyConstructionInfo(0,this.motionState1,this.compoundShape1),this.rigidBody1=new ye.btRigidBody(this.constructionInfo1),this.compoundShape2=new ye.btCompoundShape,this.motionState2=new ye.btDefaultMotionState,this.constructionInfo2=new ye.btRigidBodyConstructionInfo(0,this.motionState2,this.compoundShape2),this.rigidBody2=new ye.btRigidBody(this.constructionInfo2),this.collisionWorld.addCollisionObject(this.rigidBody1),this.collisionWorld.addCollisionObject(this.rigidBody2)}_e.prototype={constuctor:_e,setChildShape1:function(e,t){this.setChildShape(this.compoundShape1,e,t)},setChildShape2:function(e,t){this.setChildShape(this.compoundShape2,e,t)},setChildShape1Components:function(e,t,i){this.setChildShapeComponents(this.compoundShape1,e,t,i)},setChildShape2Components:function(e,t,i){this.setChildShapeComponents(this.compoundShape2,e,t,i)},setChildShape:function(){const e=new(D())(0,0,0),t=new(ge())(0,0,1,0),i=new(D())(1,1,1),n=new ye.btVector3(0,0,0);return function(o,s,r){o.getNumChildShapes()&&o.removeChildShapeByIndex(0),r.getNumChildShapes()&&(s.get(e,t,i),n.setValue(i.x,i.y,i.z),r.setLocalScaling(n),o.addChildShape(this.getTransform(e,t),r))}}(),setChildShapeComponents:function(e,t,i,n){e.getNumChildShapes()&&e.removeChildShapeByIndex(0),n.getNumChildShapes()&&(n.setLocalScaling(i),e.addChildShape(t,n))},contactTest:function(){this.collisionWorld.performDiscreteCollisionDetection();const e=this.dispatcher.getNumManifolds();for(let t=0;t<e;++t){const e=this.dispatcher.getManifoldByIndexInternal(t),i=e.getNumContacts();for(let t=0;t<i;++t){if(e.getContactPoint(t).getDistance()<=0)return!0}}return!1},getTransform:function(){const e=new ye.btTransform,t=new ye.btVector3(0,0,0),i=new(T());return function(n,o,s){const r=s||e;return i.set(n,o),t.setValue(i[12],i[13],i[14]),r.getBasis().setValue(i[0],i[4],i[8],i[1],i[5],i[9],i[2],i[6],i[10]),r.setOrigin(t),r}}()};const we=_e,fe=me().require("Ammo");function Se(e){E.call(this,e),this.addType(u().PointPickSensor),this.pickingGeometryNode=null,this.picker=new we,this.compoundShapes=[]}var ke,Te,be;Se.prototype=Object.assign(Object.create(E.prototype),{constructor:Se,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(u().inputOutput,"objectType",new(o().MFString)("ALL")),new(r())(u().inputOutput,"matchCriterion",new(o().SFString)("MATCH_ANY")),new(r())(u().initializeOnly,"intersectionType",new(o().SFString)("BOUNDS")),new(r())(u().initializeOnly,"sortOrder",new(o().SFString)("CLOSEST")),new(r())(u().outputOnly,"isActive",new(o().SFBool)),new(r())(u().outputOnly,"pickedPoint",new(o().MFVec3f)),new(r())(u().inputOutput,"pickingGeometry",new(o().SFNode)),new(r())(u().inputOutput,"pickTarget",new(o().MFNode)),new(r())(u().outputOnly,"pickedGeometry",new(o().MFNode))]),getTypeName:function(){return"PointPickSensor"},getComponentName:function(){return"Picking"},getContainerField:function(){return"children"},initialize:function(){E.prototype.initialize.call(this),this._pickingGeometry.addInterest("set_pickingGeometry__",this),this.set_pickingGeometry__()},set_pickingGeometry__:function(){this.pickingGeometryNode&&this.pickingGeometryNode._rebuild.removeInterest("set_geometry__",this),this.pickingGeometryNode=le()(u().PointSet,this._pickingGeometry),this.pickingGeometryNode&&this.pickingGeometryNode._rebuild.addInterest("set_geometry__",this),this.set_geometry__()},set_geometry__:(ke=new fe.btVector3(1,1,1),Te=new fe.btVector3,be=new fe.btTransform,function(){var e=this.compoundShapes;if(this.pickingGeometryNode){var t=this.pickingGeometryNode.getCoord();if(t){for(var i=0,n=t.getSize();i<n;++i)if(i<e.length){var o=e[i],s=t.get1Point(i,o.point);Te.setValue(s.x,s.y,s.z),be.setOrigin(Te),o.setLocalScaling(ke),o.updateChildTransform(0,be)}else{o=new fe.btCompoundShape;var r=new fe.btSphereShape(0);s=t.get1Point(i,new(D())(0,0,0)),o.point=s,Te.setValue(s.x,s.y,s.z),be.setOrigin(Te),o.addChildShape(be,r),e.push(o)}e.length=n}else e.length=0}else e.length=0}),process:function(){var e=new(I()),t=new(I()),i=new(D())(0,0,0),n=new(D())(0,0,0),s=new fe.btTransform,r=new fe.btVector3,c=new(D())(0,0,0),a=new(ge())(0,0,1,0),h=new(D())(1,1,1),p=new(o().MFVec3f);return function(){if(this.pickingGeometryNode){var o=this.getModelMatrices(),l=this.getTargets();switch(this.getIntersectionType()){case w.BOUNDS:for(var d=0,g=o.length;d<g;++d){var u=o[d];e.assign(this.pickingGeometryNode.getBBox()).multRight(u);for(var m=0,y=l.size;m<y;++m){var _=l[m];t.assign(_.geometryNode.getBBox()).multRight(_.modelMatrix),e.intersectsBox(t)&&(i.assign(e.center),n.assign(t.center),_.intersected=!0,_.distance=i.distance(n))}}var f=this.getPickedGeometries(),S=Boolean(f.length);f.remove(0,f.length,null),S!==this._isActive.getValue()&&(this._isActive=S),this._pickedGeometry.equals(f)||(this._pickedGeometry=f);break;case w.GEOMETRY:var k=this.picker,T=this.compoundShapes;for(d=0,g=o.length;d<g;++d){u=o[d];e.assign(this.pickingGeometryNode.getBBox()).multRight(u),u.get(c,a,h),k.getTransform(c,a,s),r.setValue(h.x,h.y,h.z);for(var b=0,O=T.length;b<O;++b){var v=T[b];k.setChildShape1Components(s,r,v);for(m=0,y=l.size;m<y;++m){_=l[m];var N=this.getPickShape(_.geometryNode);t.assign(_.geometryNode.getBBox()).multRight(_.modelMatrix),k.setChildShape2(_.modelMatrix,N.getCompoundShape()),k.contactTest()&&(i.assign(e.center),n.assign(t.center),_.intersected=!0,_.distance=i.distance(n),_.pickedPoint.push(v.point))}}}f=this.getPickedGeometries(),S=Boolean(f.length);f.remove(0,f.length,null),S!==this._isActive.getValue()&&(this._isActive=S),this._pickedGeometry.equals(f)||(this._pickedGeometry=f);var C=this.getPickedTargets();p.length=0;for(m=0,y=C.length;m<y;++m)for(var G=C[m].pickedPoint,M=0,B=G.length;M<B;++M)p.push(G[M]);this._pickedPoint.equals(p)||(this._pickedPoint=p)}}E.prototype.process.call(this)}}()});const Oe=Se;function ve(e){E.call(this,e),this.addType(u().PrimitivePickSensor),this.pickingGeometryNode=null,this.picker=new we}ve.prototype=Object.assign(Object.create(E.prototype),{constructor:ve,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(u().inputOutput,"objectType",new(o().MFString)("ALL")),new(r())(u().inputOutput,"matchCriterion",new(o().SFString)("MATCH_ANY")),new(r())(u().initializeOnly,"intersectionType",new(o().SFString)("BOUNDS")),new(r())(u().initializeOnly,"sortOrder",new(o().SFString)("CLOSEST")),new(r())(u().outputOnly,"isActive",new(o().SFBool)),new(r())(u().inputOutput,"pickingGeometry",new(o().SFNode)),new(r())(u().inputOutput,"pickTarget",new(o().MFNode)),new(r())(u().outputOnly,"pickedGeometry",new(o().MFNode))]),getTypeName:function(){return"PrimitivePickSensor"},getComponentName:function(){return"Picking"},getContainerField:function(){return"children"},initialize:function(){E.prototype.initialize.call(this),this._pickingGeometry.addInterest("set_pickingGeometry__",this),this.set_pickingGeometry__()},set_pickingGeometry__:function(){this.pickingGeometryNode=null;try{for(var e=this._pickingGeometry.getValue().getInnerNode(),t=e.getType(),i=t.length-1;i>=0;--i)switch(t[i]){case u().Box:case u().Cone:case u().Cylinder:case u().Sphere:this.pickingGeometryNode=e;break;default:continue}}catch(e){}},process:function(){var e=new(I()),t=new(I()),i=new(D())(0,0,0),n=new(D())(0,0,0);return function(){if(this.pickingGeometryNode){var o=this.getModelMatrices(),s=this.getTargets();switch(this.getIntersectionType()){case w.BOUNDS:for(var r=0,c=o.length;r<c;++r){var a=o[r];e.assign(this.pickingGeometryNode.getBBox()).multRight(a);for(var h=0,p=s.size;h<p;++h){var l=s[h];t.assign(l.geometryNode.getBBox()).multRight(l.modelMatrix),e.intersectsBox(t)&&(i.assign(e.center),n.assign(t.center),l.intersected=!0,l.distance=i.distance(n))}}var d=this.getPickedGeometries(),g=Boolean(d.length);d.remove(0,d.length,null),g!==this._isActive.getValue()&&(this._isActive=g),this._pickedGeometry.equals(d)||(this._pickedGeometry=d);break;case w.GEOMETRY:var u=this.picker;for(r=0,c=o.length;r<c;++r){a=o[r];var m=this.getPickShape(this.pickingGeometryNode);e.assign(this.pickingGeometryNode.getBBox()).multRight(a),u.setChildShape1(a,m.getCompoundShape());for(h=0,p=s.size;h<p;++h){l=s[h];var y=this.getPickShape(l.geometryNode);t.assign(l.geometryNode.getBBox()).multRight(l.modelMatrix),u.setChildShape2(l.modelMatrix,y.getCompoundShape()),u.contactTest()&&(i.assign(e.center),n.assign(t.center),l.intersected=!0,l.distance=i.distance(n))}}d=this.getPickedGeometries(),g=Boolean(d.length);d.remove(0,d.length,null),g!==this._isActive.getValue()&&(this._isActive=g),this._pickedGeometry.equals(d)||(this._pickedGeometry=d)}}E.prototype.process.call(this)}}()});const Ne=ve;function Ce(e){E.call(this,e),this.addType(u().VolumePickSensor),this.pickingGeometryNode=null,this.picker=new we}Ce.prototype=Object.assign(Object.create(E.prototype),{constructor:Ce,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(u().inputOutput,"objectType",new(o().MFString)("ALL")),new(r())(u().inputOutput,"matchCriterion",new(o().SFString)("MATCH_ANY")),new(r())(u().initializeOnly,"intersectionType",new(o().SFString)("BOUNDS")),new(r())(u().initializeOnly,"sortOrder",new(o().SFString)("CLOSEST")),new(r())(u().outputOnly,"isActive",new(o().SFBool)),new(r())(u().inputOutput,"pickingGeometry",new(o().SFNode)),new(r())(u().inputOutput,"pickTarget",new(o().MFNode)),new(r())(u().outputOnly,"pickedGeometry",new(o().MFNode))]),getTypeName:function(){return"VolumePickSensor"},getComponentName:function(){return"Picking"},getContainerField:function(){return"children"},initialize:function(){E.prototype.initialize.call(this),this._pickingGeometry.addInterest("set_pickingGeometry__",this),this.set_pickingGeometry__()},set_pickingGeometry__:function(){this.pickingGeometryNode=le()(u().X3DGeometryNode,this._pickingGeometry)},process:function(){var e=new(I()),t=new(I()),i=new(D())(0,0,0),n=new(D())(0,0,0);return function(){if(this.pickingGeometryNode){var o=this.getModelMatrices(),s=this.getTargets();switch(this.getIntersectionType()){case w.BOUNDS:for(var r=0,c=o.length;r<c;++r){var a=o[r];e.assign(this.pickingGeometryNode.getBBox()).multRight(a);for(var h=0,p=s.size;h<p;++h){var l=s[h];t.assign(l.geometryNode.getBBox()).multRight(l.modelMatrix),e.intersectsBox(t)&&(i.assign(e.center),n.assign(t.center),l.intersected=!0,l.distance=i.distance(n))}}var d=this.getPickedGeometries(),g=Boolean(d.length);d.remove(0,d.length,null),g!==this._isActive.getValue()&&(this._isActive=g),this._pickedGeometry.equals(d)||(this._pickedGeometry=d);break;case w.GEOMETRY:var u=this.picker;for(r=0,c=o.length;r<c;++r){a=o[r];var m=this.getPickShape(this.pickingGeometryNode);e.assign(this.pickingGeometryNode.getBBox()).multRight(a),u.setChildShape1(a,m.getCompoundShape());for(h=0,p=s.size;h<p;++h){l=s[h];var y=this.getPickShape(l.geometryNode);t.assign(l.geometryNode.getBBox()).multRight(l.modelMatrix),u.setChildShape2(l.modelMatrix,y.getCompoundShape()),u.contactTest()&&(i.assign(e.center),n.assign(t.center),l.intersected=!0,l.distance=i.distance(n))}}d=this.getPickedGeometries(),g=Boolean(d.length);d.remove(0,d.length,null),g!==this._isActive.getValue()&&(this._isActive=g),this._pickedGeometry.equals(d)||(this._pickedGeometry=d)}}E.prototype.process.call(this)}}()});const Ge=Ce;i().addComponent({name:"Picking",types:{LinePickSensor:ne,PickableGroup:he,PointPickSensor:Oe,PrimitivePickSensor:Ne,VolumePickSensor:Ge},abstractTypes:{X3DPickSensorNode:E,X3DPickableObject:ce}})})();
|
|
1
|
+
/* X_ITE v8.3.0 */(()=>{"use strict";var e={n:t=>{var i=t&&t.__esModule?()=>t.default:()=>t;return e.d(i,{a:i}),i},d:(t,i)=>{for(var n in i)e.o(i,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:i[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window[Symbol.for("X_ITE.X3D-8.3.0")].require("x_ite/Components");var i=e.n(t);const n=window[Symbol.for("X_ITE.X3D-8.3.0")].require("x_ite/Fields");var o=e.n(n);const s=window[Symbol.for("X_ITE.X3D-8.3.0")].require("x_ite/Base/X3DFieldDefinition");var r=e.n(s);const c=window[Symbol.for("X_ITE.X3D-8.3.0")].require("x_ite/Base/FieldDefinitionArray");var a=e.n(c);const h=window[Symbol.for("X_ITE.X3D-8.3.0")].require("x_ite/Components/Core/X3DSensorNode");var p=e.n(h);const l=window[Symbol.for("X_ITE.X3D-8.3.0")].require("x_ite/Rendering/TraverseType");var d=e.n(l);const g=window[Symbol.for("X_ITE.X3D-8.3.0")].require("x_ite/Base/X3DConstants");var u=e.n(g);const m=window[Symbol.for("X_ITE.X3D-8.3.0")].require("x_ite/Namespace");var y=e.n(m);let _=0;const w={MATCH_ANY:_++,MATCH_EVERY:_++,MATCH_ONLY_ONE:_++};y().set("x_ite/Browser/Picking/MatchCriterion",w);const f=w;let k=0;const S={BOUNDS:k++,GEOMETRY:k++};y().set("x_ite/Browser/Picking/IntersectionType",S);const T=S;let b=0;const O={ANY:b++,CLOSEST:b++,ALL:b++,ALL_SORTED:b++};y().set("x_ite/Browser/Picking/SortOrder",O);const v=O,N=window[Symbol.for("X_ITE.X3D-8.3.0")].require("standard/Math/Numbers/Matrix4");var C=e.n(N);const G=window[Symbol.for("X_ITE.X3D-8.3.0")].require("standard/Math/Algorithms/QuickSort");var P=e.n(G);const M=window[Symbol.for("X_ITE.X3D-8.3.0")].require("standard/Utility/ObjectCache");var x,B,E,D,A=e.n(M)()(C());function F(e,t){return e.distance<t.distance}function I(e){p().call(this,e),this.addType(u().X3DPickSensorNode),this.objectType=new Set,this.intersectionType=T.BOUNDS,this.sortOrder=v.CLOSEST,this.pickTargetNodes=new Set,this.modelMatrices=[],this.targets=[],this.targets.size=0,this.pickedTargets=[],this.pickedTargetsSorter=new(P())(this.pickedTargets,F),this.pickedGeometries=new(o().MFNode)}I.prototype=Object.assign(Object.create(p().prototype),{constructor:I,initialize:function(){this.isLive().addInterest("set_live__",this),this._enabled.addInterest("set_live__",this),this._objectType.addInterest("set_objectType__",this),this._matchCriterion.addInterest("set_matchCriterion__",this),this._intersectionType.addInterest("set_intersectionType__",this),this._sortOrder.addInterest("set_sortOrder__",this),this._pickTarget.addInterest("set_pickTarget__",this),this.set_objectType__(),this.set_matchCriterion__(),this.set_intersectionType__(),this.set_sortOrder__(),this.set_pickTarget__()},getObjectType:function(){return this.objectType},getMatchCriterion:function(){return this.matchCriterion},getIntersectionType:function(){return this.intersectionType},getSortOrder:function(){return this.sortOrder},getModelMatrices:function(){return this.modelMatrices},getTargets:function(){return this.targets},getPickShape:(D=new WeakMap,function(e){var t=D.get(e);if(void 0!==t)return t;var i=this.getExecutionContext().createNode("Shape",!1),n=this.getExecutionContext().createNode("CollidableShape",!1);return i.setPrivate(!0),n.setPrivate(!0),n.setConvex(!0),i._geometry=e,n._shape=i,i.setup(),n.setup(),D.set(e,n),n}),getPickedGeometries:function(){var e=this.targets,t=e.size,i=this.pickedTargets,n=this.pickedGeometries;i.length=0;for(var o=0;o<t;++o){var s=e[o];s.intersected&&i.push(s)}if(0===i.length)return n.length=0,n;switch(this.sortOrder){case v.ANY:i.length=1,n[0]=this.getPickedGeometry(i[0]),n.length=1;break;case v.CLOSEST:this.pickedTargetsSorter.sort(0,i.length),i.length=1,n[0]=this.getPickedGeometry(i[0]),n.length=1;break;case v.ALL:o=0;for(var r=i.length;o<r;++o)n[o]=this.getPickedGeometry(i[o]);n.length=r;break;case v.ALL_SORTED:for(this.pickedTargetsSorter.sort(0,i.length),o=0,r=i.length;o<r;++o)n[o]=this.getPickedGeometry(i[o]);n.length=r}return n},getPickedGeometry:function(e){var t=this.getExecutionContext(),i=e.geometryNode;if(i.getExecutionContext()===t)return i;if(-1!==(s=i.getExecutionContext()).getType().indexOf(u().X3DPrototypeInstance)&&s.getExecutionContext()===t)return s;for(var n=e.pickingHierarchy,o=n.length-1;o>=0;--o){var s,r=n[o];if(r.getExecutionContext()===t)return r;if(-1!==(s=r.getExecutionContext()).getType().indexOf(u().X3DPrototypeInstance)&&s.getExecutionContext()===t)return s}return null},getPickedTargets:function(){return this.pickedTargets},set_live__:function(){this.isLive().getValue()&&this._enabled.getValue()&&!this.objectType.has("NONE")?(this.getBrowser().addPickSensor(this),this.setPickableObject(!0)):(this.getBrowser().removePickSensor(this),this.setPickableObject(!1))},set_objectType__:function(){this.objectType.clear();for(var e=0,t=this._objectType.length;e<t;++e)this.objectType.add(this._objectType[e]);this.set_live__()},set_matchCriterion__:(E=new Map([["MATCH_ANY",f.MATCH_ANY],["MATCH_EVERY",f.MATCH_EVERY],["MATCH_ONLY_ONE",f.MATCH_ONLY_ONE]]),function(){this.matchCriterion=E.get(this._matchCriterion.getValue()),void 0===this.matchCriterion&&(this.matchCriterion=MatchCriterionType.MATCH_ANY)}),set_intersectionType__:(B=new Map([["BOUNDS",T.BOUNDS],["GEOMETRY",T.GEOMETRY]]),function(){this.intersectionType=B.get(this._intersectionType.getValue()),void 0===this.intersectionType&&(this.intersectionType=T.BOUNDS)}),set_sortOrder__:(x=new Map([["ANY",v.ANY],["CLOSEST",v.CLOSEST],["ALL",v.ALL],["ALL_SORTED",v.ALL_SORTED]]),function(){this.sortOrder=x.get(this._sortOrder.getValue()),void 0===this.sortOrder&&(this.sortOrder=v.CLOSEST)}),set_pickTarget__:function(){this.pickTargetNodes.clear();for(var e=0,t=this._pickTarget.length;e<t;++e)try{for(var i=this._pickTarget[e].getValue().getInnerNode(),n=i.getType(),o=n.length-1;o>=0;--o)switch(n[o]){case u().Inline:case u().Shape:case u().X3DGroupingNode:this.pickTargetNodes.add(i);break;default:continue}}catch(e){}},traverse:function(e,t){e===d().PICKING&&this.getPickableObject()&&this.modelMatrices.push(A.pop().assign(t.getModelViewMatrix().get()))},collect:function(e,t,i){var n=this.pickTargetNodes;if(i.some((function(e){return n.has(e)}))){var o=this.targets;if(o.size<o.length)var s=o[o.size];else{s={modelMatrix:new(C()),pickingHierarchy:[],pickedPoint:[],intersections:[]};o.push(s)}++o.size,s.intersected=!1,s.geometryNode=e,s.pickedPoint.length=0,s.intersections.length=0,s.modelMatrix.assign(t);for(var r=s.pickingHierarchy,c=0,a=i.length;c<a;++c)r[c]=i[c];r.length=a}},process:function(){for(var e=this.modelMatrices,t=0,i=e.length;t<i;++t)A.push(e[t]);this.modelMatrices.length=0,this.targets.size=0}});const X=I;y().set("x_ite/Components/Picking/X3DPickSensorNode",X);const j=X,L=window[Symbol.for("X_ITE.X3D-8.3.0")].require("standard/Math/Numbers/Vector3");var V=e.n(L);const z=window[Symbol.for("X_ITE.X3D-8.3.0")].require("standard/Math/Geometry/Box3");var R=e.n(z);const q=window[Symbol.for("X_ITE.X3D-8.3.0")].require("standard/Math/Geometry/Line3");var Y,H,U,W,K,Q,Z,J,$,ee,te,ie,ne,oe,se,re,ce=e.n(q);function ae(e){j.call(this,e),this.addType(u().LinePickSensor),this.pickingGeometryNode=null}ae.prototype=Object.assign(Object.create(j.prototype),{constructor:ae,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(u().inputOutput,"objectType",new(o().MFString)("ALL")),new(r())(u().inputOutput,"matchCriterion",new(o().SFString)("MATCH_ANY")),new(r())(u().initializeOnly,"intersectionType",new(o().SFString)("BOUNDS")),new(r())(u().initializeOnly,"sortOrder",new(o().SFString)("CLOSEST")),new(r())(u().outputOnly,"isActive",new(o().SFBool)),new(r())(u().outputOnly,"pickedTextureCoordinate",new(o().MFVec3f)),new(r())(u().outputOnly,"pickedNormal",new(o().MFVec3f)),new(r())(u().outputOnly,"pickedPoint",new(o().MFVec3f)),new(r())(u().inputOutput,"pickingGeometry",new(o().SFNode)),new(r())(u().inputOutput,"pickTarget",new(o().MFNode)),new(r())(u().outputOnly,"pickedGeometry",new(o().MFNode))]),getTypeName:function(){return"LinePickSensor"},getComponentName:function(){return"Picking"},getContainerField:function(){return"children"},initialize:function(){j.prototype.initialize.call(this),this._pickingGeometry.addInterest("set_pickingGeometry__",this),this.set_pickingGeometry__()},set_pickingGeometry__:function(){this.pickingGeometryNode=null;try{for(var e=this._pickingGeometry.getValue().getInnerNode(),t=e.getType(),i=t.length-1;i>=0;--i)switch(t[i]){case u().IndexedLineSet:case u().LineSet:this.pickingGeometryNode=e;break;default:continue}}catch(e){}},process:(Y=new(R()),H=new(R()),U=new(V())(0,0,0),W=new(V())(0,0,0),K=new(C()),Q=new(V())(0,0,0),Z=new(V())(0,0,0),J=new(ce())(V().Zero,V().zAxis),$=new(V())(0,0,0),ee=new(V())(0,0,0),te=[],ie=[],ne=new(V())(0,0,0),oe=new(o().MFVec3f),se=new(o().MFVec3f),re=new(o().MFVec3f),function(){if(this.pickingGeometryNode){var e=this.getModelMatrices(),t=this.getTargets();switch(this.getIntersectionType()){case T.BOUNDS:for(var i=0,n=e.length;i<n;++i){var o=e[i];Y.assign(this.pickingGeometryNode.getBBox()).multRight(o);for(var s=0,r=t.size;s<r;++s){var c=t[s];H.assign(c.geometryNode.getBBox()).multRight(c.modelMatrix),Y.intersectsBox(H)&&(U.assign(Y.center),W.assign(H.center),c.intersected=!0,c.distance=U.distance(W))}}var a=this.getPickedGeometries(),h=Boolean(a.length);a.remove(0,a.length,null),h!==this._isActive.getValue()&&(this._isActive=h),this._pickedGeometry.equals(a)||(this._pickedGeometry=a);break;case T.GEOMETRY:for(i=0,n=e.length;i<n;++i)for(o=e[i],Y.assign(this.pickingGeometryNode.getBBox()).multRight(o),s=0,r=t.size;s<r;++s){var p=(c=t[s]).geometryNode,l=this.pickingGeometryNode.getVertices();H.assign(p.getBBox()).multRight(c.modelMatrix),K.assign(c.modelMatrix).inverse().multLeft(o);for(var d=0,g=l.length;d<g;d+=8)if(K.multVecMatrix(Q.set(l[d+0],l[d+1],l[d+2])),K.multVecMatrix(Z.set(l[d+4],l[d+5],l[d+6])),J.setPoints(Q,Z),ie.length=0,p.intersectsLineWithGeometry(J,c.modelMatrix,te,ie))for(var u=0,m=ie.length;u<m;++u){var y=ie[u];$.assign(y.point).subtract(Q),ee.assign(y.point).subtract(Z),$.add(ee).magnitude()<=Q.distance(Z)&&c.intersections.push(y)}c.intersections.length&&(U.assign(Y.center),W.assign(H.center),c.intersected=!0,c.distance=U.distance(W))}a=this.getPickedGeometries(),h=Boolean(a.length),a.remove(0,a.length,null),h!==this._isActive.getValue()&&(this._isActive=h),this._pickedGeometry.equals(a)||(this._pickedGeometry=a);var _=this.getPickedTargets();for(oe.length=0,se.length=0,re.length=0,s=0,r=_.length;s<r;++s){var w=_[s].intersections;for(u=0,m=w.length;u<m;++u)s=(y=w[u]).texCoord,ne.set(s.x,s.y,s.z),oe.push(ne),se.push(y.normal),re.push(y.point)}this._pickedTextureCoordinate.equals(oe)||(this._pickedTextureCoordinate=oe),this._pickedNormal.equals(se)||(this._pickedNormal=se),this._pickedPoint.equals(re)||(this._pickedPoint=re)}}j.prototype.process.call(this)})});const he=ae;y().set("x_ite/Components/Picking/LinePickSensor",he);const pe=he,le=window[Symbol.for("X_ITE.X3D-8.3.0")].require("x_ite/Components/Grouping/X3DGroupingNode");var de=e.n(le);function ge(e){this.addType(u().X3DPickableObject),this.objectType=new Set}ge.prototype={constructor:ge,initialize:function(){this._objectType.addInterest("set_objectType__",this),this.set_objectType__()},getObjectType:function(){return this.objectType},set_objectType__:function(){this.objectType.clear();for(var e=0,t=this._objectType.length;e<t;++e)this.objectType.add(this._objectType[e])},dispose:function(){}};const ue=ge;y().set("x_ite/Components/Picking/X3DPickableObject",ue);const me=ue;function ye(e){de().call(this,e),me.call(this,e),this.addType(u().PickableGroup)}ye.prototype=Object.assign(Object.create(de().prototype),me.prototype,{constructor:ye,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"pickable",new(o().SFBool)(!0)),new(r())(u().inputOutput,"objectType",new(o().MFString)("ALL")),new(r())(u().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(u().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(u().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(u().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(u().inputOnly,"addChildren",new(o().MFNode)),new(r())(u().inputOnly,"removeChildren",new(o().MFNode)),new(r())(u().inputOutput,"children",new(o().MFNode))]),getTypeName:function(){return"PickableGroup"},getComponentName:function(){return"Picking"},getContainerField:function(){return"children"},initialize:function(){de().prototype.initialize.call(this),me.prototype.initialize.call(this),this._pickable.addInterest("set_pickable__",this),this.set_pickable__()},set_pickableObjects__:function(){this.set_pickable__()},set_pickable__:function(){this.setPickableObject(Boolean(this._pickable.getValue()||this.getTransformSensors().size))},traverse:function(){const e=new Set;return function(t,i){if(t===d().PICKING){if(this._pickable.getValue()){if(this.getObjectType().has("NONE"))return;const n=this.getBrowser(),o=n.getPickable();if(this.getObjectType().has("ALL"))o.push(!0),de().prototype.traverse.call(this,t,i),o.pop();else{const s=n.getPickSensors();for(const t of s.at(-1)){if(!t.getObjectType().has("ALL")){let e=0;for(const i of this.getObjectType())if(t.getObjectType().has(i)){++e;break}switch(t.getMatchCriterion()){case f.MATCH_ANY:if(0===e)continue;break;case f.MATCH_EVERY:if(e!==pickSensor.getObjectType().size)continue;break;case f.MATCH_ONLY_ONE:if(1!==e)continue}}e.add(t)}o.push(!0),s.push(e),de().prototype.traverse.call(this,t,i),s.pop(),o.pop(),e.clear()}}}else de().prototype.traverse.call(this,t,i)}}(),dispose:function(){me.prototype.dispose.call(this),de().prototype.dispose.call(this)}});const _e=ye;y().set("x_ite/Components/Picking/PickableGroup",_e);const we=_e,fe=window[Symbol.for("X_ITE.X3D-8.3.0")].require("x_ite/Base/X3DCast");var ke=e.n(fe);const Se=window[Symbol.for("X_ITE.X3D-8.3.0")].require("standard/Math/Numbers/Rotation4");var Te=e.n(Se);const be=window[Symbol.for("X_ITE.X3D-8.3.0")].require("lib/ammojs/AmmoClass");var Oe=e.n(be);function ve(){this.broadphase=new(Oe().btDbvtBroadphase),this.collisionConfiguration=new(Oe().btDefaultCollisionConfiguration),this.dispatcher=new(Oe().btCollisionDispatcher)(this.collisionConfiguration),this.collisionWorld=new(Oe().btCollisionWorld)(this.dispatcher,this.broadphase,this.collisionConfiguration),this.compoundShape1=new(Oe().btCompoundShape),this.motionState1=new(Oe().btDefaultMotionState),this.constructionInfo1=new(Oe().btRigidBodyConstructionInfo)(0,this.motionState1,this.compoundShape1),this.rigidBody1=new(Oe().btRigidBody)(this.constructionInfo1),this.compoundShape2=new(Oe().btCompoundShape),this.motionState2=new(Oe().btDefaultMotionState),this.constructionInfo2=new(Oe().btRigidBodyConstructionInfo)(0,this.motionState2,this.compoundShape2),this.rigidBody2=new(Oe().btRigidBody)(this.constructionInfo2),this.collisionWorld.addCollisionObject(this.rigidBody1),this.collisionWorld.addCollisionObject(this.rigidBody2)}ve.prototype={constuctor:ve,setChildShape1:function(e,t){this.setChildShape(this.compoundShape1,e,t)},setChildShape2:function(e,t){this.setChildShape(this.compoundShape2,e,t)},setChildShape1Components:function(e,t,i){this.setChildShapeComponents(this.compoundShape1,e,t,i)},setChildShape2Components:function(e,t,i){this.setChildShapeComponents(this.compoundShape2,e,t,i)},setChildShape:function(){const e=new(V())(0,0,0),t=new(Te())(0,0,1,0),i=new(V())(1,1,1),n=new(Oe().btVector3)(0,0,0);return function(o,s,r){o.getNumChildShapes()&&o.removeChildShapeByIndex(0),r.getNumChildShapes()&&(s.get(e,t,i),n.setValue(i.x,i.y,i.z),r.setLocalScaling(n),o.addChildShape(this.getTransform(e,t),r))}}(),setChildShapeComponents:function(e,t,i,n){e.getNumChildShapes()&&e.removeChildShapeByIndex(0),n.getNumChildShapes()&&(n.setLocalScaling(i),e.addChildShape(t,n))},contactTest:function(){this.collisionWorld.performDiscreteCollisionDetection();const e=this.dispatcher.getNumManifolds();for(let t=0;t<e;++t){const e=this.dispatcher.getManifoldByIndexInternal(t),i=e.getNumContacts();for(let t=0;t<i;++t){if(e.getContactPoint(t).getDistance()<=0)return!0}}return!1},getTransform:function(){const e=new(Oe().btTransform),t=new(Oe().btVector3)(0,0,0),i=new(C());return function(n,o,s){const r=s||e;return i.set(n,o),t.setValue(i[12],i[13],i[14]),r.getBasis().setValue(i[0],i[4],i[8],i[1],i[5],i[9],i[2],i[6],i[10]),r.setOrigin(t),r}}()};const Ne=ve;y().set("x_ite/Browser/Picking/VolumePicker",Ne);const Ce=Ne;function Ge(e){j.call(this,e),this.addType(u().PointPickSensor),this.pickingGeometryNode=null,this.picker=new Ce,this.compoundShapes=[]}var Pe,Me,xe;Ge.prototype=Object.assign(Object.create(j.prototype),{constructor:Ge,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(u().inputOutput,"objectType",new(o().MFString)("ALL")),new(r())(u().inputOutput,"matchCriterion",new(o().SFString)("MATCH_ANY")),new(r())(u().initializeOnly,"intersectionType",new(o().SFString)("BOUNDS")),new(r())(u().initializeOnly,"sortOrder",new(o().SFString)("CLOSEST")),new(r())(u().outputOnly,"isActive",new(o().SFBool)),new(r())(u().outputOnly,"pickedPoint",new(o().MFVec3f)),new(r())(u().inputOutput,"pickingGeometry",new(o().SFNode)),new(r())(u().inputOutput,"pickTarget",new(o().MFNode)),new(r())(u().outputOnly,"pickedGeometry",new(o().MFNode))]),getTypeName:function(){return"PointPickSensor"},getComponentName:function(){return"Picking"},getContainerField:function(){return"children"},initialize:function(){j.prototype.initialize.call(this),this._pickingGeometry.addInterest("set_pickingGeometry__",this),this.set_pickingGeometry__()},set_pickingGeometry__:function(){this.pickingGeometryNode&&this.pickingGeometryNode._rebuild.removeInterest("set_geometry__",this),this.pickingGeometryNode=ke()(u().PointSet,this._pickingGeometry),this.pickingGeometryNode&&this.pickingGeometryNode._rebuild.addInterest("set_geometry__",this),this.set_geometry__()},set_geometry__:(Pe=new(Oe().btVector3)(1,1,1),Me=new(Oe().btVector3),xe=new(Oe().btTransform),function(){var e=this.compoundShapes;if(this.pickingGeometryNode){var t=this.pickingGeometryNode.getCoord();if(t){for(var i=0,n=t.getSize();i<n;++i)if(i<e.length){var o=e[i],s=t.get1Point(i,o.point);Me.setValue(s.x,s.y,s.z),xe.setOrigin(Me),o.setLocalScaling(Pe),o.updateChildTransform(0,xe)}else{o=new(Oe().btCompoundShape);var r=new(Oe().btSphereShape)(0);s=t.get1Point(i,new(V())(0,0,0)),o.point=s,Me.setValue(s.x,s.y,s.z),xe.setOrigin(Me),o.addChildShape(xe,r),e.push(o)}e.length=n}else e.length=0}else e.length=0}),process:function(){var e=new(R()),t=new(R()),i=new(V())(0,0,0),n=new(V())(0,0,0),s=new(Oe().btTransform),r=new(Oe().btVector3),c=new(V())(0,0,0),a=new(Te())(0,0,1,0),h=new(V())(1,1,1),p=new(o().MFVec3f);return function(){if(this.pickingGeometryNode){var o=this.getModelMatrices(),l=this.getTargets();switch(this.getIntersectionType()){case T.BOUNDS:for(var d=0,g=o.length;d<g;++d){var u=o[d];e.assign(this.pickingGeometryNode.getBBox()).multRight(u);for(var m=0,y=l.size;m<y;++m){var _=l[m];t.assign(_.geometryNode.getBBox()).multRight(_.modelMatrix),e.intersectsBox(t)&&(i.assign(e.center),n.assign(t.center),_.intersected=!0,_.distance=i.distance(n))}}var w=this.getPickedGeometries(),f=Boolean(w.length);w.remove(0,w.length,null),f!==this._isActive.getValue()&&(this._isActive=f),this._pickedGeometry.equals(w)||(this._pickedGeometry=w);break;case T.GEOMETRY:var k=this.picker,S=this.compoundShapes;for(d=0,g=o.length;d<g;++d){u=o[d];e.assign(this.pickingGeometryNode.getBBox()).multRight(u),u.get(c,a,h),k.getTransform(c,a,s),r.setValue(h.x,h.y,h.z);for(var b=0,O=S.length;b<O;++b){var v=S[b];k.setChildShape1Components(s,r,v);for(m=0,y=l.size;m<y;++m){_=l[m];var N=this.getPickShape(_.geometryNode);t.assign(_.geometryNode.getBBox()).multRight(_.modelMatrix),k.setChildShape2(_.modelMatrix,N.getCompoundShape()),k.contactTest()&&(i.assign(e.center),n.assign(t.center),_.intersected=!0,_.distance=i.distance(n),_.pickedPoint.push(v.point))}}}w=this.getPickedGeometries(),f=Boolean(w.length);w.remove(0,w.length,null),f!==this._isActive.getValue()&&(this._isActive=f),this._pickedGeometry.equals(w)||(this._pickedGeometry=w);var C=this.getPickedTargets();p.length=0;for(m=0,y=C.length;m<y;++m)for(var G=C[m].pickedPoint,P=0,M=G.length;P<M;++P)p.push(G[P]);this._pickedPoint.equals(p)||(this._pickedPoint=p)}}j.prototype.process.call(this)}}()});const Be=Ge;y().set("x_ite/Components/Picking/PointPickSensor",Be);const Ee=Be;function De(e){j.call(this,e),this.addType(u().PrimitivePickSensor),this.pickingGeometryNode=null,this.picker=new Ce}De.prototype=Object.assign(Object.create(j.prototype),{constructor:De,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(u().inputOutput,"objectType",new(o().MFString)("ALL")),new(r())(u().inputOutput,"matchCriterion",new(o().SFString)("MATCH_ANY")),new(r())(u().initializeOnly,"intersectionType",new(o().SFString)("BOUNDS")),new(r())(u().initializeOnly,"sortOrder",new(o().SFString)("CLOSEST")),new(r())(u().outputOnly,"isActive",new(o().SFBool)),new(r())(u().inputOutput,"pickingGeometry",new(o().SFNode)),new(r())(u().inputOutput,"pickTarget",new(o().MFNode)),new(r())(u().outputOnly,"pickedGeometry",new(o().MFNode))]),getTypeName:function(){return"PrimitivePickSensor"},getComponentName:function(){return"Picking"},getContainerField:function(){return"children"},initialize:function(){j.prototype.initialize.call(this),this._pickingGeometry.addInterest("set_pickingGeometry__",this),this.set_pickingGeometry__()},set_pickingGeometry__:function(){this.pickingGeometryNode=null;try{for(var e=this._pickingGeometry.getValue().getInnerNode(),t=e.getType(),i=t.length-1;i>=0;--i)switch(t[i]){case u().Box:case u().Cone:case u().Cylinder:case u().Sphere:this.pickingGeometryNode=e;break;default:continue}}catch(e){}},process:function(){var e=new(R()),t=new(R()),i=new(V())(0,0,0),n=new(V())(0,0,0);return function(){if(this.pickingGeometryNode){var o=this.getModelMatrices(),s=this.getTargets();switch(this.getIntersectionType()){case T.BOUNDS:for(var r=0,c=o.length;r<c;++r){var a=o[r];e.assign(this.pickingGeometryNode.getBBox()).multRight(a);for(var h=0,p=s.size;h<p;++h){var l=s[h];t.assign(l.geometryNode.getBBox()).multRight(l.modelMatrix),e.intersectsBox(t)&&(i.assign(e.center),n.assign(t.center),l.intersected=!0,l.distance=i.distance(n))}}var d=this.getPickedGeometries(),g=Boolean(d.length);d.remove(0,d.length,null),g!==this._isActive.getValue()&&(this._isActive=g),this._pickedGeometry.equals(d)||(this._pickedGeometry=d);break;case T.GEOMETRY:var u=this.picker;for(r=0,c=o.length;r<c;++r){a=o[r];var m=this.getPickShape(this.pickingGeometryNode);e.assign(this.pickingGeometryNode.getBBox()).multRight(a),u.setChildShape1(a,m.getCompoundShape());for(h=0,p=s.size;h<p;++h){l=s[h];var y=this.getPickShape(l.geometryNode);t.assign(l.geometryNode.getBBox()).multRight(l.modelMatrix),u.setChildShape2(l.modelMatrix,y.getCompoundShape()),u.contactTest()&&(i.assign(e.center),n.assign(t.center),l.intersected=!0,l.distance=i.distance(n))}}d=this.getPickedGeometries(),g=Boolean(d.length);d.remove(0,d.length,null),g!==this._isActive.getValue()&&(this._isActive=g),this._pickedGeometry.equals(d)||(this._pickedGeometry=d)}}j.prototype.process.call(this)}}()});const Ae=De;y().set("x_ite/Components/Picking/PrimitivePickSensor",Ae);const Fe=Ae;function Ie(e){j.call(this,e),this.addType(u().VolumePickSensor),this.pickingGeometryNode=null,this.picker=new Ce}Ie.prototype=Object.assign(Object.create(j.prototype),{constructor:Ie,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(u().inputOutput,"objectType",new(o().MFString)("ALL")),new(r())(u().inputOutput,"matchCriterion",new(o().SFString)("MATCH_ANY")),new(r())(u().initializeOnly,"intersectionType",new(o().SFString)("BOUNDS")),new(r())(u().initializeOnly,"sortOrder",new(o().SFString)("CLOSEST")),new(r())(u().outputOnly,"isActive",new(o().SFBool)),new(r())(u().inputOutput,"pickingGeometry",new(o().SFNode)),new(r())(u().inputOutput,"pickTarget",new(o().MFNode)),new(r())(u().outputOnly,"pickedGeometry",new(o().MFNode))]),getTypeName:function(){return"VolumePickSensor"},getComponentName:function(){return"Picking"},getContainerField:function(){return"children"},initialize:function(){j.prototype.initialize.call(this),this._pickingGeometry.addInterest("set_pickingGeometry__",this),this.set_pickingGeometry__()},set_pickingGeometry__:function(){this.pickingGeometryNode=ke()(u().X3DGeometryNode,this._pickingGeometry)},process:function(){var e=new(R()),t=new(R()),i=new(V())(0,0,0),n=new(V())(0,0,0);return function(){if(this.pickingGeometryNode){var o=this.getModelMatrices(),s=this.getTargets();switch(this.getIntersectionType()){case T.BOUNDS:for(var r=0,c=o.length;r<c;++r){var a=o[r];e.assign(this.pickingGeometryNode.getBBox()).multRight(a);for(var h=0,p=s.size;h<p;++h){var l=s[h];t.assign(l.geometryNode.getBBox()).multRight(l.modelMatrix),e.intersectsBox(t)&&(i.assign(e.center),n.assign(t.center),l.intersected=!0,l.distance=i.distance(n))}}var d=this.getPickedGeometries(),g=Boolean(d.length);d.remove(0,d.length,null),g!==this._isActive.getValue()&&(this._isActive=g),this._pickedGeometry.equals(d)||(this._pickedGeometry=d);break;case T.GEOMETRY:var u=this.picker;for(r=0,c=o.length;r<c;++r){a=o[r];var m=this.getPickShape(this.pickingGeometryNode);e.assign(this.pickingGeometryNode.getBBox()).multRight(a),u.setChildShape1(a,m.getCompoundShape());for(h=0,p=s.size;h<p;++h){l=s[h];var y=this.getPickShape(l.geometryNode);t.assign(l.geometryNode.getBBox()).multRight(l.modelMatrix),u.setChildShape2(l.modelMatrix,y.getCompoundShape()),u.contactTest()&&(i.assign(e.center),n.assign(t.center),l.intersected=!0,l.distance=i.distance(n))}}d=this.getPickedGeometries(),g=Boolean(d.length);d.remove(0,d.length,null),g!==this._isActive.getValue()&&(this._isActive=g),this._pickedGeometry.equals(d)||(this._pickedGeometry=d)}}j.prototype.process.call(this)}}()});const Xe=Ie;y().set("x_ite/Components/Picking/VolumePickSensor",Xe);const je=Xe;i().addComponent({name:"Picking",types:{LinePickSensor:pe,PickableGroup:we,PointPickSensor:Ee,PrimitivePickSensor:Fe,VolumePickSensor:je},abstractTypes:{X3DPickSensorNode:j,X3DPickableObject:me}});const Le=void 0;y().set("assets/components/Picking",Le)})();
|