x_ite 8.4.3 → 8.5.3
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/.vscode/settings.json +5 -1
- package/Makefile +0 -3
- package/build/bin/components.js +173 -0
- package/build/bin/tags.pl +28 -0
- package/build/bin/tests.pl +80 -2
- package/build/bin/version.pl +12 -7
- package/dist/assets/components/Annotation.js +13 -13
- package/dist/assets/components/Annotation.min.js +1 -1
- package/dist/assets/components/CADGeometry.js +13 -13
- package/dist/assets/components/CADGeometry.min.js +1 -1
- package/dist/assets/components/CubeMapTexturing.js +28 -29
- package/dist/assets/components/CubeMapTexturing.min.js +1 -1
- package/dist/assets/components/DIS.js +13 -13
- package/dist/assets/components/DIS.min.js +1 -1
- package/dist/assets/components/EventUtilities.js +9 -9
- package/dist/assets/components/EventUtilities.min.js +1 -1
- package/dist/assets/components/Geometry2D.js +19 -19
- package/dist/assets/components/Geometry2D.min.js +1 -1
- package/dist/assets/components/Geospatial.js +33 -33
- package/dist/assets/components/Geospatial.min.js +1 -1
- package/dist/assets/components/HAnim.js +63 -42
- package/dist/assets/components/HAnim.min.js +1 -1
- package/dist/assets/components/KeyDeviceSensor.js +8 -8
- package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
- package/dist/assets/components/Layout.js +37 -29
- package/dist/assets/components/Layout.min.js +1 -1
- package/dist/assets/components/NURBS.js +29 -31
- package/dist/assets/components/NURBS.min.js +1 -1
- package/dist/assets/components/ParticleSystems.js +23 -23
- package/dist/assets/components/ParticleSystems.min.js +1 -1
- package/dist/assets/components/Picking.js +19 -19
- package/dist/assets/components/Picking.min.js +1 -1
- package/dist/assets/components/RigidBodyPhysics.js +24 -19
- package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
- package/dist/assets/components/Scripting.js +30 -30
- package/dist/assets/components/Scripting.min.js +1 -1
- package/dist/assets/components/Text.js +172 -594
- package/dist/assets/components/Text.min.js +1 -1
- package/dist/assets/components/TextureProjector.js +31 -47
- package/dist/assets/components/TextureProjector.min.js +1 -1
- package/dist/assets/components/Texturing3D.js +367 -346
- package/dist/assets/components/Texturing3D.min.js +1 -1
- package/dist/assets/components/VolumeRendering.js +19 -19
- package/dist/assets/components/VolumeRendering.min.js +1 -1
- package/dist/assets/components/X_ITE.js +9 -9
- package/dist/assets/components/X_ITE.min.js +1 -1
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.js +12174 -3553
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.zip +0 -0
- package/docs/_config.yml +5 -136
- package/docs/_data/nav/components-CADGeometry.yml +14 -0
- package/docs/_data/nav/components-Core.yml +16 -0
- package/docs/_data/nav/components-CubeMapTexturing.yml +8 -0
- package/docs/_data/nav/components-DIS.yml +14 -0
- package/docs/_data/nav/components-EnvironmentalEffects.yml +12 -0
- package/docs/_data/nav/components-EnvironmentalSensor.yml +8 -0
- package/docs/_data/nav/components-EventUtilities.yml +16 -0
- package/docs/_data/nav/components-Followers.yml +30 -0
- package/docs/_data/nav/components-Geometry2D.yml +18 -0
- package/docs/_data/nav/components-Geometry3D.yml +16 -0
- package/docs/_data/nav/components-Geospatial.yml +24 -0
- package/docs/_data/nav/components-Grouping.yml +10 -0
- package/docs/_data/nav/components-HAnim.yml +14 -0
- package/docs/_data/nav/components-Interpolation.yml +28 -0
- package/docs/_data/nav/components-KeyDeviceSensor.yml +6 -0
- package/docs/_data/nav/components-Layering.yml +8 -0
- package/docs/_data/nav/components-Layout.yml +12 -0
- package/docs/_data/nav/components-Lighting.yml +10 -0
- package/docs/_data/nav/components-NURBS.yml +30 -0
- package/docs/_data/nav/components-Navigation.yml +16 -0
- package/docs/_data/nav/components-Networking.yml +8 -0
- package/docs/_data/nav/components-ParticleSystems.yml +22 -0
- package/docs/_data/nav/components-Picking.yml +12 -0
- package/docs/_data/nav/components-PointingDeviceSensor.yml +10 -0
- package/docs/_data/nav/components-Rendering.yml +30 -0
- package/docs/_data/nav/components-RigidBodyPhysics.yml +30 -0
- package/docs/_data/nav/components-Scripting.yml +4 -0
- package/docs/_data/nav/components-Shaders.yml +18 -0
- package/docs/_data/nav/components-Shape.yml +22 -0
- package/docs/_data/nav/components-Sound.yml +44 -0
- package/docs/_data/nav/components-Text.yml +6 -0
- package/docs/_data/nav/components-TextureProjector.yml +6 -0
- package/docs/_data/nav/components-Texturing.yml +22 -0
- package/docs/_data/nav/components-Texturing3D.yml +18 -0
- package/docs/_data/nav/components-Time.yml +4 -0
- package/docs/_data/nav/components-VolumeRendering.yml +28 -0
- package/docs/_data/nav/components-X_ITE.yml +4 -0
- package/docs/_data/nav/main.yml +26 -0
- package/docs/_data/nav/reference.yml +18 -0
- package/docs/_data/nav/tutorials-animation-sensors-and-geometry.yml +18 -0
- package/docs/_data/nav/tutorials-basic.yml +6 -0
- package/docs/_data/nav/tutorials-optimize-your-scene.yml +6 -0
- package/docs/_data/nav/tutorials-scripts-and-prototypes.yml +12 -0
- package/docs/_data/nav/tutorials-shapes-geometry-and-appearance.yml +16 -0
- package/docs/_data/nav/tutorials-textures-lights-and-environment.yml +20 -0
- package/docs/_includes/nav.html +2 -2
- package/docs/_includes/scripts.html +2 -1
- package/docs/_posts/accessing-the-external-browser.md +1 -1
- package/docs/_posts/browser-support.md +1 -1
- package/docs/_posts/components/CADGeometry/CADAssembly.md +83 -0
- package/docs/_posts/components/CADGeometry/CADFace.md +70 -0
- package/docs/_posts/components/CADGeometry/CADLayer.md +84 -0
- package/docs/_posts/components/CADGeometry/CADPart.md +117 -0
- package/docs/_posts/components/CADGeometry/IndexedQuadSet.md +125 -0
- package/docs/_posts/components/CADGeometry/QuadSet.md +113 -0
- package/docs/_posts/components/Core/MetadataBoolean.md +90 -0
- package/docs/_posts/components/Core/MetadataDouble.md +67 -0
- package/docs/_posts/components/Core/MetadataFloat.md +67 -0
- package/docs/_posts/components/Core/MetadataInteger.md +66 -0
- package/docs/_posts/components/Core/MetadataSet.md +63 -0
- package/docs/_posts/components/Core/MetadataString.md +66 -0
- package/docs/_posts/components/Core/WorldInfo.md +54 -0
- package/docs/_posts/components/CubeMapTexturing/ComposedCubeMapTexture.md +76 -0
- package/docs/_posts/components/CubeMapTexturing/GeneratedCubeMapTexture.md +65 -0
- package/docs/_posts/components/CubeMapTexturing/ImageCubeMapTexture.md +66 -0
- package/docs/_posts/components/DIS/DISEntityManager.md +73 -0
- package/docs/_posts/components/DIS/DISEntityTypeMapping.md +88 -0
- package/docs/_posts/components/DIS/EspduTransform.md +416 -0
- package/docs/_posts/components/DIS/ReceiverPdu.md +168 -0
- package/docs/_posts/components/DIS/SignalPdu.md +168 -0
- package/docs/_posts/components/DIS/TransmitterPdu.md +232 -0
- package/docs/_posts/components/EnvironmentalEffects/Background.md +189 -0
- package/docs/_posts/components/EnvironmentalEffects/Fog.md +97 -0
- package/docs/_posts/components/EnvironmentalEffects/FogCoordinate.md +40 -0
- package/docs/_posts/components/EnvironmentalEffects/LocalFog.md +84 -0
- package/docs/_posts/components/EnvironmentalEffects/TextureBackground.md +142 -0
- package/docs/_posts/components/EnvironmentalSensor/ProximitySensor.md +90 -0
- package/docs/_posts/components/EnvironmentalSensor/TransformSensor.md +91 -0
- package/docs/_posts/components/EnvironmentalSensor/VisibilitySensor.md +73 -0
- package/docs/_posts/components/EventUtilities/BooleanFilter.md +62 -0
- package/docs/_posts/components/EventUtilities/BooleanSequencer.md +86 -0
- package/docs/_posts/components/EventUtilities/BooleanToggle.md +46 -0
- package/docs/_posts/components/EventUtilities/BooleanTrigger.md +47 -0
- package/docs/_posts/components/EventUtilities/IntegerSequencer.md +90 -0
- package/docs/_posts/components/EventUtilities/IntegerTrigger.md +51 -0
- package/docs/_posts/components/EventUtilities/TimeTrigger.md +47 -0
- package/docs/_posts/components/Followers/ColorChaser.md +77 -0
- package/docs/_posts/components/Followers/ColorDamper.md +85 -0
- package/docs/_posts/components/Followers/CoordinateChaser.md +76 -0
- package/docs/_posts/components/Followers/CoordinateDamper.md +80 -0
- package/docs/_posts/components/Followers/OrientationChaser.md +72 -0
- package/docs/_posts/components/Followers/OrientationDamper.md +80 -0
- package/docs/_posts/components/Followers/PositionChaser.md +72 -0
- package/docs/_posts/components/Followers/PositionChaser2D.md +72 -0
- package/docs/_posts/components/Followers/PositionDamper.md +80 -0
- package/docs/_posts/components/Followers/PositionDamper2D.md +80 -0
- package/docs/_posts/components/Followers/ScalarChaser.md +76 -0
- package/docs/_posts/components/Followers/ScalarDamper.md +80 -0
- package/docs/_posts/components/Followers/TexCoordChaser2D.md +72 -0
- package/docs/_posts/components/Followers/TexCoordDamper2D.md +80 -0
- package/docs/_posts/components/Geometry2D/Arc2D.md +71 -0
- package/docs/_posts/components/Geometry2D/ArcClose2D.md +91 -0
- package/docs/_posts/components/Geometry2D/Circle2D.md +55 -0
- package/docs/_posts/components/Geometry2D/Disk2D.md +75 -0
- package/docs/_posts/components/Geometry2D/Polyline2D.md +54 -0
- package/docs/_posts/components/Geometry2D/Polypoint2D.md +54 -0
- package/docs/_posts/components/Geometry2D/Rectangle2D.md +66 -0
- package/docs/_posts/components/Geometry2D/TriangleSet2D.md +66 -0
- package/docs/_posts/components/Geometry3D/Box.md +66 -0
- package/docs/_posts/components/Geometry3D/Cone.md +90 -0
- package/docs/_posts/components/Geometry3D/Cylinder.md +98 -0
- package/docs/_posts/components/Geometry3D/ElevationGrid.md +162 -0
- package/docs/_posts/components/Geometry3D/Extrusion.md +170 -0
- package/docs/_posts/components/Geometry3D/IndexedFaceSet.md +208 -0
- package/docs/_posts/components/Geometry3D/Sphere.md +66 -0
- package/docs/_posts/components/Geospatial/GeoCoordinate.md +65 -0
- package/docs/_posts/components/Geospatial/GeoElevationGrid.md +180 -0
- package/docs/_posts/components/Geospatial/GeoLOD.md +128 -0
- package/docs/_posts/components/Geospatial/GeoLocation.md +93 -0
- package/docs/_posts/components/Geospatial/GeoMetadata.md +75 -0
- package/docs/_posts/components/Geospatial/GeoOrigin.md +69 -0
- package/docs/_posts/components/Geospatial/GeoPositionInterpolator.md +95 -0
- package/docs/_posts/components/Geospatial/GeoProximitySensor.md +109 -0
- package/docs/_posts/components/Geospatial/GeoTouchSensor.md +108 -0
- package/docs/_posts/components/Geospatial/GeoTransform.md +121 -0
- package/docs/_posts/components/Geospatial/GeoViewpoint.md +126 -0
- package/docs/_posts/components/Grouping/Group.md +75 -0
- package/docs/_posts/components/Grouping/StaticGroup.md +65 -0
- package/docs/_posts/components/Grouping/Switch.md +89 -0
- package/docs/_posts/components/Grouping/Transform.md +126 -0
- package/docs/_posts/components/HAnim/HAnimDisplacer.md +89 -0
- package/docs/_posts/components/HAnim/HAnimHumanoid.md +136 -0
- package/docs/_posts/components/HAnim/HAnimJoint.md +165 -0
- package/docs/_posts/components/HAnim/HAnimMotion.md +68 -0
- package/docs/_posts/components/HAnim/HAnimSegment.md +107 -0
- package/docs/_posts/components/HAnim/HAnimSite.md +108 -0
- package/docs/_posts/components/Interpolation/ColorInterpolator.md +73 -0
- package/docs/_posts/components/Interpolation/CoordinateInterpolator.md +76 -0
- package/docs/_posts/components/Interpolation/CoordinateInterpolator2D.md +73 -0
- package/docs/_posts/components/Interpolation/EaseInEaseOut.md +67 -0
- package/docs/_posts/components/Interpolation/NormalInterpolator.md +68 -0
- package/docs/_posts/components/Interpolation/OrientationInterpolator.md +72 -0
- package/docs/_posts/components/Interpolation/PositionInterpolator.md +72 -0
- package/docs/_posts/components/Interpolation/PositionInterpolator2D.md +77 -0
- package/docs/_posts/components/Interpolation/ScalarInterpolator.md +76 -0
- package/docs/_posts/components/Interpolation/SplinePositionInterpolator.md +93 -0
- package/docs/_posts/components/Interpolation/SplinePositionInterpolator2D.md +93 -0
- package/docs/_posts/components/Interpolation/SplineScalarInterpolator.md +106 -0
- package/docs/_posts/components/Interpolation/SquadOrientationInterpolator.md +78 -0
- package/docs/_posts/components/KeyDeviceSensor/KeySensor.md +78 -0
- package/docs/_posts/components/KeyDeviceSensor/StringSensor.md +70 -0
- package/docs/_posts/components/Layering/Layer.md +67 -0
- package/docs/_posts/components/Layering/LayerSet.md +78 -0
- package/docs/_posts/components/Layering/Viewport.md +80 -0
- package/docs/_posts/components/Layout/Layout.md +107 -0
- package/docs/_posts/components/Layout/LayoutGroup.md +85 -0
- package/docs/_posts/components/Layout/LayoutLayer.md +74 -0
- package/docs/_posts/components/Layout/ScreenFontStyle.md +137 -0
- package/docs/_posts/components/Layout/ScreenGroup.md +71 -0
- package/docs/_posts/components/Lighting/DirectionalLight.md +100 -0
- package/docs/_posts/components/Lighting/EnvironmentLight.md +91 -0
- package/docs/_posts/components/Lighting/PointLight.md +103 -0
- package/docs/_posts/components/Lighting/SpotLight.md +132 -0
- package/docs/_posts/components/NURBS/Contour2D.md +57 -0
- package/docs/_posts/components/NURBS/ContourPolyline2D.md +46 -0
- package/docs/_posts/components/NURBS/CoordinateDouble.md +47 -0
- package/docs/_posts/components/NURBS/NurbsCurve.md +71 -0
- package/docs/_posts/components/NURBS/NurbsCurve2D.md +66 -0
- package/docs/_posts/components/NURBS/NurbsOrientationInterpolator.md +70 -0
- package/docs/_posts/components/NURBS/NurbsPatchSurface.md +106 -0
- package/docs/_posts/components/NURBS/NurbsPositionInterpolator.md +70 -0
- package/docs/_posts/components/NURBS/NurbsSet.md +66 -0
- package/docs/_posts/components/NURBS/NurbsSurfaceInterpolator.md +90 -0
- package/docs/_posts/components/NURBS/NurbsSweptSurface.md +69 -0
- package/docs/_posts/components/NURBS/NurbsSwungSurface.md +65 -0
- package/docs/_posts/components/NURBS/NurbsTextureCoordinate.md +77 -0
- package/docs/_posts/components/NURBS/NurbsTrimmedSurface.md +114 -0
- package/docs/_posts/components/Navigation/Billboard.md +88 -0
- package/docs/_posts/components/Navigation/Collision.md +102 -0
- package/docs/_posts/components/Navigation/LOD.md +99 -0
- package/docs/_posts/components/Navigation/NavigationInfo.md +122 -0
- package/docs/_posts/components/Navigation/OrthoViewpoint.md +117 -0
- package/docs/_posts/components/Navigation/Viewpoint.md +117 -0
- package/docs/_posts/components/Navigation/ViewpointGroup.md +80 -0
- package/docs/_posts/components/Networking/Anchor.md +111 -0
- package/docs/_posts/components/Networking/Inline.md +115 -0
- package/docs/_posts/components/Networking/LoadSensor.md +91 -0
- package/docs/_posts/components/ParticleSystems/BoundedPhysicsModel.md +54 -0
- package/docs/_posts/components/ParticleSystems/ConeEmitter.md +76 -0
- package/docs/_posts/components/ParticleSystems/ExplosionEmitter.md +72 -0
- package/docs/_posts/components/ParticleSystems/ForcePhysicsModel.md +58 -0
- package/docs/_posts/components/ParticleSystems/ParticleSystem.md +177 -0
- package/docs/_posts/components/ParticleSystems/PointEmitter.md +76 -0
- package/docs/_posts/components/ParticleSystems/PolylineEmitter.md +94 -0
- package/docs/_posts/components/ParticleSystems/SurfaceEmitter.md +90 -0
- package/docs/_posts/components/ParticleSystems/VolumeEmitter.md +90 -0
- package/docs/_posts/components/ParticleSystems/WindPhysicsModel.md +68 -0
- package/docs/_posts/components/Picking/LinePickSensor.md +125 -0
- package/docs/_posts/components/Picking/PickableGroup.md +93 -0
- package/docs/_posts/components/Picking/PointPickSensor.md +112 -0
- package/docs/_posts/components/Picking/PrimitivePickSensor.md +114 -0
- package/docs/_posts/components/Picking/VolumePickSensor.md +107 -0
- package/docs/_posts/components/PointingDeviceSensor/CylinderSensor.md +122 -0
- package/docs/_posts/components/PointingDeviceSensor/PlaneSensor.md +114 -0
- package/docs/_posts/components/PointingDeviceSensor/SphereSensor.md +89 -0
- package/docs/_posts/components/PointingDeviceSensor/TouchSensor.md +87 -0
- package/docs/_posts/components/Rendering/ClipPlane.md +67 -0
- package/docs/_posts/components/Rendering/Color.md +56 -0
- package/docs/_posts/components/Rendering/ColorRGBA.md +61 -0
- package/docs/_posts/components/Rendering/Coordinate.md +45 -0
- package/docs/_posts/components/Rendering/IndexedLineSet.md +128 -0
- package/docs/_posts/components/Rendering/IndexedTriangleFanSet.md +128 -0
- package/docs/_posts/components/Rendering/IndexedTriangleSet.md +128 -0
- package/docs/_posts/components/Rendering/IndexedTriangleStripSet.md +116 -0
- package/docs/_posts/components/Rendering/LineSet.md +85 -0
- package/docs/_posts/components/Rendering/Normal.md +41 -0
- package/docs/_posts/components/Rendering/PointSet.md +76 -0
- package/docs/_posts/components/Rendering/TriangleFanSet.md +112 -0
- package/docs/_posts/components/Rendering/TriangleSet.md +108 -0
- package/docs/_posts/components/Rendering/TriangleStripSet.md +116 -0
- package/docs/_posts/components/RigidBodyPhysics/BallJoint.md +78 -0
- package/docs/_posts/components/RigidBodyPhysics/CollidableOffset.md +75 -0
- package/docs/_posts/components/RigidBodyPhysics/CollidableShape.md +83 -0
- package/docs/_posts/components/RigidBodyPhysics/CollisionCollection.md +90 -0
- package/docs/_posts/components/RigidBodyPhysics/CollisionSensor.md +65 -0
- package/docs/_posts/components/RigidBodyPhysics/CollisionSpace.md +70 -0
- package/docs/_posts/components/RigidBodyPhysics/Contact.md +117 -0
- package/docs/_posts/components/RigidBodyPhysics/DoubleAxisHingeJoint.md +162 -0
- package/docs/_posts/components/RigidBodyPhysics/MotorJoint.md +183 -0
- package/docs/_posts/components/RigidBodyPhysics/RigidBody.md +175 -0
- package/docs/_posts/components/RigidBodyPhysics/RigidBodyCollection.md +120 -0
- package/docs/_posts/components/RigidBodyPhysics/SingleAxisHingeJoint.md +108 -0
- package/docs/_posts/components/RigidBodyPhysics/SliderJoint.md +106 -0
- package/docs/_posts/components/RigidBodyPhysics/UniversalJoint.md +119 -0
- package/docs/_posts/components/Scripting/Script.md +81 -0
- package/docs/_posts/components/Shaders/ComposedShader.md +81 -0
- package/docs/_posts/components/Shaders/FloatVertexAttribute.md +65 -0
- package/docs/_posts/components/Shaders/Matrix3VertexAttribute.md +53 -0
- package/docs/_posts/components/Shaders/Matrix4VertexAttribute.md +53 -0
- package/docs/_posts/components/Shaders/PackagedShader.md +77 -0
- package/docs/_posts/components/Shaders/ProgramShader.md +71 -0
- package/docs/_posts/components/Shaders/ShaderPart.md +76 -0
- package/docs/_posts/components/Shaders/ShaderProgram.md +68 -0
- package/docs/_posts/components/Shape/AcousticProperties.md +52 -0
- package/docs/_posts/components/Shape/Appearance.md +123 -0
- package/docs/_posts/components/Shape/FillProperties.md +67 -0
- package/docs/_posts/components/Shape/LineProperties.md +63 -0
- package/docs/_posts/components/Shape/Material.md +217 -0
- package/docs/_posts/components/Shape/PhysicalMaterial.md +173 -0
- package/docs/_posts/components/Shape/PointProperties.md +84 -0
- package/docs/_posts/components/Shape/Shape.md +63 -0
- package/docs/_posts/components/Shape/TwoSidedMaterial.md +149 -0
- package/docs/_posts/components/Shape/UnlitMaterial.md +115 -0
- package/docs/_posts/components/Sound/Analyser.md +72 -0
- package/docs/_posts/components/Sound/AudioClip.md +139 -0
- package/docs/_posts/components/Sound/AudioDestination.md +52 -0
- package/docs/_posts/components/Sound/BiquadFilter.md +70 -0
- package/docs/_posts/components/Sound/BufferAudioSource.md +86 -0
- package/docs/_posts/components/Sound/ChannelMerger.md +46 -0
- package/docs/_posts/components/Sound/ChannelSelector.md +48 -0
- package/docs/_posts/components/Sound/ChannelSplitter.md +48 -0
- package/docs/_posts/components/Sound/Convolver.md +66 -0
- package/docs/_posts/components/Sound/Delay.md +66 -0
- package/docs/_posts/components/Sound/DynamicsCompressor.md +74 -0
- package/docs/_posts/components/Sound/Gain.md +62 -0
- package/docs/_posts/components/Sound/ListenerPointSource.md +62 -0
- package/docs/_posts/components/Sound/MicrophoneSource.md +54 -0
- package/docs/_posts/components/Sound/OscillatorSource.md +58 -0
- package/docs/_posts/components/Sound/PeriodicWave.md +42 -0
- package/docs/_posts/components/Sound/Sound.md +92 -0
- package/docs/_posts/components/Sound/SpatialSound.md +68 -0
- package/docs/_posts/components/Sound/StreamAudioDestination.md +52 -0
- package/docs/_posts/components/Sound/StreamAudioSource.md +54 -0
- package/docs/_posts/components/Sound/WaveShaper.md +66 -0
- package/docs/_posts/components/Text/FontStyle.md +145 -0
- package/docs/_posts/components/Text/Text.md +102 -0
- package/docs/_posts/components/TextureProjector/TextureProjector.md +52 -0
- package/docs/_posts/components/TextureProjector/TextureProjectorParallel.md +52 -0
- package/docs/_posts/components/Texturing/ImageTexture.md +134 -0
- package/docs/_posts/components/Texturing/MovieTexture.md +221 -0
- package/docs/_posts/components/Texturing/MultiTexture.md +100 -0
- package/docs/_posts/components/Texturing/MultiTextureCoordinate.md +47 -0
- package/docs/_posts/components/Texturing/MultiTextureTransform.md +47 -0
- package/docs/_posts/components/Texturing/PixelTexture.md +80 -0
- package/docs/_posts/components/Texturing/TextureCoordinate.md +52 -0
- package/docs/_posts/components/Texturing/TextureCoordinateGenerator.md +64 -0
- package/docs/_posts/components/Texturing/TextureProperties.md +137 -0
- package/docs/_posts/components/Texturing/TextureTransform.md +73 -0
- package/docs/_posts/components/Texturing3D/ComposedTexture3D.md +76 -0
- package/docs/_posts/components/Texturing3D/ImageTexture3D.md +132 -0
- package/docs/_posts/components/Texturing3D/ImageTextureAtlas.md +131 -0
- package/docs/_posts/components/Texturing3D/PixelTexture3D.md +75 -0
- package/docs/_posts/components/Texturing3D/TextureCoordinate3D.md +53 -0
- package/docs/_posts/components/Texturing3D/TextureCoordinate4D.md +52 -0
- package/docs/_posts/components/Texturing3D/TextureTransform3D.md +69 -0
- package/docs/_posts/components/Texturing3D/TextureTransformMatrix3D.md +57 -0
- package/docs/_posts/components/Time/TimeSensor.md +136 -0
- package/docs/_posts/components/VolumeRendering/BlendedVolumeStyle.md +92 -0
- package/docs/_posts/components/VolumeRendering/BoundaryEnhancementVolumeStyle.md +53 -0
- package/docs/_posts/components/VolumeRendering/CartoonVolumeStyle.md +83 -0
- package/docs/_posts/components/VolumeRendering/ComposedVolumeStyle.md +51 -0
- package/docs/_posts/components/VolumeRendering/EdgeEnhancementVolumeStyle.md +67 -0
- package/docs/_posts/components/VolumeRendering/IsoSurfaceVolumeData.md +99 -0
- package/docs/_posts/components/VolumeRendering/OpacityMapVolumeStyle.md +51 -0
- package/docs/_posts/components/VolumeRendering/ProjectionVolumeStyle.md +48 -0
- package/docs/_posts/components/VolumeRendering/SegmentedVolumeData.md +80 -0
- package/docs/_posts/components/VolumeRendering/ShadedVolumeStyle.md +75 -0
- package/docs/_posts/components/VolumeRendering/SilhouetteEnhancementVolumeStyle.md +63 -0
- package/docs/_posts/components/VolumeRendering/ToneMappedVolumeStyle.md +71 -0
- package/docs/_posts/components/VolumeRendering/VolumeData.md +71 -0
- package/docs/_posts/components/X_ITE/BlendMode.md +94 -0
- package/docs/_posts/custom-shaders.md +9 -4
- package/docs/_posts/dom-integration.md +1 -6
- package/docs/_posts/features.md +2 -2
- package/docs/_posts/getting-started.md +100 -57
- package/docs/_posts/glossary.md +1 -1
- package/docs/_posts/how-to-configure-your-web-server.md +1 -1
- package/docs/_posts/reference/browser-services.md +78 -18
- package/docs/_posts/reference/constants-services.md +1 -1
- package/docs/_posts/reference/ecmascript-object-and-function-definitions.md +1 -1
- package/docs/_posts/reference/field-services-and-objects.md +8 -8
- package/docs/_posts/reference/prototype-services.md +7 -7
- package/docs/_posts/reference/route-services.md +1 -1
- package/docs/_posts/reference/scene-services.md +5 -5
- package/docs/_posts/reference/script-node-authoring-interface.md +1 -1
- package/docs/_posts/report-a-bug.md +1 -1
- package/docs/_posts/setup-a-localhost-server.md +5 -1
- package/docs/_posts/supported-nodes.md +239 -238
- package/docs/_posts/tutorials/adding-backgrounds.md +3 -3
- package/docs/_posts/tutorials/adding-fog.md +2 -2
- package/docs/_posts/tutorials/adding-sound.md +19 -19
- package/docs/_posts/tutorials/animating-transforms.md +17 -17
- package/docs/_posts/tutorials/basic-nodes.md +30 -30
- package/docs/_posts/tutorials/building-a-x3d-world.md +3 -3
- package/docs/_posts/tutorials/building-elevation-grids.md +7 -7
- package/docs/_posts/tutorials/building-extruded-shapes.md +7 -7
- package/docs/_posts/tutorials/building-primitive-shapes.md +13 -13
- package/docs/_posts/tutorials/building-shapes-out-of-points-lines-and-faces.md +21 -21
- package/docs/_posts/tutorials/controlling-appearance-with-materials.md +7 -7
- package/docs/_posts/tutorials/controlling-color-on-coordinate-based-geometry.md +11 -11
- package/docs/_posts/tutorials/controlling-detail.md +4 -4
- package/docs/_posts/tutorials/controlling-how-textures-are-mapped.md +7 -7
- package/docs/_posts/tutorials/controlling-navigation.md +3 -3
- package/docs/_posts/tutorials/controlling-shading-on-coordinate-based-geometry.md +13 -13
- package/docs/_posts/tutorials/controlling-the-viewpoint.md +3 -3
- package/docs/_posts/tutorials/creating-new-node-types.md +4 -4
- package/docs/_posts/tutorials/grouping-nodes.md +13 -13
- package/docs/_posts/tutorials/hello-world.md +1 -1
- package/docs/_posts/tutorials/improving-performance.md +1 -1
- package/docs/_posts/tutorials/increasing-rendering-speed.md +1 -1
- package/docs/_posts/tutorials/introducing-animation.md +10 -10
- package/docs/_posts/tutorials/introducing-script-use.md +3 -3
- package/docs/_posts/tutorials/introducing-x3d.md +1 -1
- package/docs/_posts/tutorials/lighting-your-world.md +4 -4
- package/docs/_posts/tutorials/mapping-textures.md +7 -7
- package/docs/_posts/tutorials/naming-nodes.md +1 -1
- package/docs/_posts/tutorials/overview.md +1 -1
- package/docs/_posts/tutorials/providing-information-about-your-world.md +2 -2
- package/docs/_posts/tutorials/sensing-the-viewer.md +15 -15
- package/docs/_posts/tutorials/sensing-viewer-actions.md +10 -10
- package/docs/_posts/tutorials/transforming-shapes.md +4 -4
- package/docs/_posts/tutorials/writing-program-scripts-with-ecmascript.md +5 -5
- package/docs/_posts/what's-new.md +40 -2
- package/docs/_tabs/components.md +383 -0
- package/docs/_tabs/imprint.md +1 -1
- package/docs/_tabs/laboratory.md +38 -6
- package/docs/_tabs/playground.html +22 -66
- package/docs/_tabs/reference.md +2 -1
- package/docs/_tabs/tags.md +1 -1
- package/docs/_tabs/tutorials.md +1 -1
- package/docs/assets/X3D/Michroma-Regular.ttf +0 -0
- package/docs/assets/X3D/peakpx.jpg +0 -0
- package/docs/assets/X3D/teaser.x3d +55 -0
- package/docs/assets/css/style.scss +120 -11
- package/docs/assets/img/laboratory/blend-mode.png +0 -0
- package/docs/assets/img/laboratory/dicom-nrrd.png +0 -0
- package/docs/assets/img/laboratory/earthquake.png +0 -0
- package/docs/assets/img/laboratory/gltf.png +0 -0
- package/docs/assets/img/laboratory/l-system.png +0 -0
- package/docs/assets/js/autoupdate.js +25 -0
- package/docs/laboratory/gltf-sample-viewer.html +318 -0
- package/docs/laboratory/x3d-visual-blend-mode-editor.html +1 -0
- package/package.json +9 -2
- package/src/assets/components/Texturing3D.js +5 -3
- package/src/assets/shaders/Types.glsl.js +5 -5
- package/src/assets/shaders/webgl1/PBR.fs.js +1 -1
- package/src/assets/shaders/webgl1/include/Colors.glsl.js +5 -7
- package/src/assets/shaders/webgl1/include/Fragment.glsl.js +4 -0
- package/src/assets/shaders/webgl1/include/Hatch.glsl.js +1 -1
- package/src/assets/shaders/webgl1/include/Texture.glsl.js +3 -3
- package/src/assets/shaders/webgl2/include/Colors.glsl.js +5 -7
- package/src/assets/shaders/webgl2/include/Hatch.glsl.js +1 -1
- package/src/assets/shaders/webgl2/include/Particle.glsl.js +2 -2
- package/src/assets/shaders/webgl2/include/Texture.glsl.js +2 -2
- package/src/bookmarks.js +12 -8
- package/src/examples.js +3 -0
- package/src/lib/jquery.js +20 -0
- package/src/lib/libgif/libgif.js +1004 -0
- package/src/lib/libtess.js +1 -0
- package/src/lib/nurbs/extras/sample.js +5 -7
- package/src/standard/Math/Algorithms/Bezier.js +175 -33
- package/src/standard/Math/Geometry/Box2.js +15 -55
- package/src/standard/Math/Geometry/Box3.js +19 -66
- package/src/standard/Math/Geometry/Triangle3.js +14 -79
- package/src/standard/Math/Numbers/Color3.js +4 -0
- package/src/standard/Math/Numbers/Color4.js +4 -0
- package/src/standard/Math/Numbers/Matrix3.js +11 -3
- package/src/standard/Math/Numbers/Matrix4.js +9 -6
- package/src/standard/Math/Numbers/Rotation4.js +72 -65
- package/src/tests.js +3 -0
- package/src/x_ite/Base/X3DArrayField.js +0 -2
- package/src/x_ite/Base/X3DInfoArray.js +2 -2
- package/src/x_ite/Base/X3DObjectArrayField.js +19 -0
- package/src/x_ite/Base/X3DTypedArrayField.js +149 -0
- package/src/x_ite/Browser/Core/BrowserOptions.js +108 -64
- package/src/x_ite/Browser/Core/Context.js +1 -1
- package/src/x_ite/Browser/Core/ContextMenu.js +2 -2
- package/src/x_ite/Browser/Core/Notification.js +1 -1
- package/src/x_ite/Browser/Core/RenderingProperties.js +4 -0
- package/src/x_ite/Browser/Core/X3DCoreContext.js +99 -54
- package/src/x_ite/Browser/Navigation/ExamineViewer.js +4 -14
- package/src/x_ite/Browser/Navigation/LookAtViewer.js +3 -13
- package/src/x_ite/Browser/Navigation/PlaneViewer.js +3 -12
- package/src/x_ite/Browser/Navigation/X3DFlyViewer.js +25 -22
- package/src/x_ite/Browser/Navigation/X3DViewer.js +12 -3
- package/src/x_ite/Browser/Networking/X3DNetworkingContext.js +2 -2
- package/src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js +19 -15
- package/src/x_ite/Browser/Rendering/X3DRenderingContext.js +30 -10
- package/src/x_ite/Browser/Shaders/X3DShadersContext.js +1 -1
- package/src/x_ite/Browser/Shape/X3DShapeContext.js +30 -3
- package/src/x_ite/Browser/Text/PolygonText.js +137 -134
- package/src/x_ite/Browser/Texturing/GifMedia.js +113 -0
- package/src/x_ite/Browser/Texturing3D/DICOMParser.js +1 -6
- package/src/x_ite/Browser/Texturing3D/NRRDParser.js +81 -310
- package/src/x_ite/Browser/VERSION.js +1 -1
- package/src/x_ite/Browser/X3DBrowser.js +162 -122
- package/src/x_ite/Browser/X3DBrowserContext.js +7 -5
- package/src/x_ite/Components/Core/WorldInfo.js +3 -3
- package/src/x_ite/Components/Core/X3DNode.js +7 -7
- package/src/x_ite/Components/Core/X3DPrototypeInstance.js +1 -1
- package/src/x_ite/Components/CubeMapTexturing/ImageCubeMapTexture.js +2 -3
- package/src/x_ite/Components/Geometry3D/Extrusion.js +27 -23
- package/src/x_ite/Components/Geometry3D/IndexedFaceSet.js +10 -19
- package/src/x_ite/Components/Grouping/X3DBoundedObject.js +1 -3
- package/src/x_ite/Components/HAnim/HAnimHumanoid.js +39 -15
- package/src/x_ite/Components/HAnim/HAnimJoint.js +6 -9
- package/src/x_ite/Components/Layering/X3DLayerNode.js +21 -2
- package/src/x_ite/Components/Layout/Layout.js +4 -2
- package/src/x_ite/Components/Layout/ScreenFontStyle.js +6 -0
- package/src/x_ite/Components/Lighting/DirectionalLight.js +4 -11
- package/src/x_ite/Components/Lighting/EnvironmentLight.js +1 -1
- package/src/x_ite/Components/Lighting/PointLight.js +4 -11
- package/src/x_ite/Components/Lighting/SpotLight.js +4 -11
- package/src/x_ite/Components/Lighting/X3DLightNode.js +7 -9
- package/src/x_ite/Components/Navigation/OrthoViewpoint.js +2 -2
- package/src/x_ite/Components/Navigation/X3DViewpointNode.js +14 -6
- package/src/x_ite/Components/Networking/Inline.js +48 -59
- package/src/x_ite/Components/Networking/X3DUrlObject.js +1 -1
- package/src/x_ite/Components/PointingDeviceSensor/CylinderSensor.js +2 -2
- package/src/x_ite/Components/Rendering/X3DLineGeometryNode.js +7 -13
- package/src/x_ite/Components/Rendering/X3DPointGeometryNode.js +4 -2
- package/src/x_ite/Components/RigidBodyPhysics/RigidBody.js +4 -2
- package/src/x_ite/Components/Scripting/Script.js +2 -2
- package/src/x_ite/Components/Shaders/ShaderPart.js +1 -1
- package/src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js +1 -3
- package/src/x_ite/Components/Shape/Appearance.js +27 -1
- package/src/x_ite/Components/Shape/FillProperties.js +1 -0
- package/src/x_ite/Components/Shape/LineProperties.js +15 -9
- package/src/x_ite/Components/Shape/Material.js +33 -22
- package/src/x_ite/Components/Shape/PhysicalMaterial.js +22 -15
- package/src/x_ite/Components/Shape/PointProperties.js +23 -7
- package/src/x_ite/Components/Shape/UnlitMaterial.js +3 -2
- package/src/x_ite/Components/Shape/X3DOneSidedMaterialNode.js +25 -19
- package/src/x_ite/Components/Sound/AudioClip.js +5 -5
- package/src/x_ite/Components/Sound/X3DSoundSourceNode.js +26 -34
- package/src/x_ite/Components/Text/X3DFontStyleNode.js +1 -1
- package/src/x_ite/Components/TextureProjector/TextureProjector.js +4 -12
- package/src/x_ite/Components/TextureProjector/TextureProjectorParallel.js +6 -14
- package/src/x_ite/Components/TextureProjector/X3DTextureProjectorNode.js +7 -7
- package/src/x_ite/Components/Texturing/ImageTexture.js +15 -10
- package/src/x_ite/Components/Texturing/MovieTexture.js +51 -11
- package/src/x_ite/Components/Texturing3D/ImageTexture3D.js +2 -2
- package/src/x_ite/Components/Texturing3D/ImageTextureAtlas.js +230 -0
- package/src/x_ite/Components/Time/X3DTimeDependentNode.js +12 -10
- package/src/x_ite/Execution/BindableList.js +35 -37
- package/src/x_ite/Execution/BindableStack.js +25 -7
- package/src/x_ite/Execution/X3DScene.js +2 -2
- package/src/x_ite/Execution/X3DWorld.js +1 -1
- package/src/x_ite/Fields/SFRotation.js +2 -1
- package/src/x_ite/Fields/SFString.js +1 -1
- package/src/x_ite/InputOutput/FileLoader.js +105 -236
- package/src/x_ite/InputOutput/Generator.js +12 -8
- package/src/x_ite/Parser/Expressions.js +85 -0
- package/src/x_ite/Parser/GLB2Parser.js +147 -0
- package/src/x_ite/Parser/GLTF2Parser.js +2221 -0
- package/src/x_ite/Parser/GoldenGate.js +64 -13
- package/src/x_ite/Parser/JSONParser.js +7 -36
- package/src/x_ite/Parser/OBJParser.js +1076 -0
- package/src/x_ite/Parser/STLAParser.js +376 -0
- package/src/x_ite/Parser/STLBParser.js +156 -0
- package/src/x_ite/Parser/SVGParser.js +2476 -0
- package/src/x_ite/Parser/VRMLParser.js +127 -183
- package/src/x_ite/Parser/X3DOptimizer.js +191 -0
- package/src/x_ite/Parser/X3DParser.js +34 -0
- package/src/x_ite/Parser/XMLParser.js +11 -109
- package/src/x_ite/Prototype/X3DExternProtoDeclaration.js +2 -2
- package/src/x_ite/Prototype/X3DProtoDeclaration.js +3 -3
- package/src/x_ite/Rendering/DependentRenderer.js +1 -1
- package/src/x_ite/Rendering/MultiSampleFrameBuffer.js +150 -0
- package/src/x_ite/Rendering/TextureBuffer.js +3 -5
- package/src/x_ite/Rendering/X3DRenderObject.js +2 -7
- package/src/x_ite/X3D.js +1 -0
- package/src/x_ite/X3DCanvas.js +10 -0
- package/src/x_ite.html +39 -17
- package/webpack.config.js +1 -0
- package/x_ite.min.html +38 -17
- package/src/standard/Networking/BinaryTransport.js +0 -116
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/* X_ITE v8.
|
|
1
|
+
/* X_ITE v8.5.3 */(() => { // webpackBootstrap
|
|
2
2
|
/******/ var __webpack_modules__ = ({
|
|
3
3
|
|
|
4
|
-
/***/
|
|
4
|
+
/***/ 221:
|
|
5
5
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -14488,7 +14488,7 @@
|
|
|
14488
14488
|
/***/ ((module) => {
|
|
14489
14489
|
|
|
14490
14490
|
"use strict";
|
|
14491
|
-
module.exports = window [Symbol .for ("X_ITE.X3D-8.
|
|
14491
|
+
module.exports = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("lib/jquery");
|
|
14492
14492
|
|
|
14493
14493
|
/***/ }),
|
|
14494
14494
|
|
|
@@ -14564,25 +14564,25 @@ var __webpack_exports__ = {};
|
|
|
14564
14564
|
// UNUSED EXPORTS: default
|
|
14565
14565
|
|
|
14566
14566
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components\")"
|
|
14567
|
-
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
14567
|
+
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Components");
|
|
14568
14568
|
var Components_default = /*#__PURE__*/__webpack_require__.n(Components_namespaceObject);
|
|
14569
14569
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
|
|
14570
|
-
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
14570
|
+
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Fields");
|
|
14571
14571
|
var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
|
|
14572
14572
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
|
|
14573
|
-
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
14573
|
+
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Base/X3DFieldDefinition");
|
|
14574
14574
|
var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
|
|
14575
14575
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
|
|
14576
|
-
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
14576
|
+
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Base/FieldDefinitionArray");
|
|
14577
14577
|
var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
|
|
14578
14578
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DNode\")"
|
|
14579
|
-
const X3DNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
14579
|
+
const X3DNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Components/Core/X3DNode");
|
|
14580
14580
|
var X3DNode_default = /*#__PURE__*/__webpack_require__.n(X3DNode_namespaceObject);
|
|
14581
14581
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Networking/X3DUrlObject\")"
|
|
14582
|
-
const X3DUrlObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
14582
|
+
const X3DUrlObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Components/Networking/X3DUrlObject");
|
|
14583
14583
|
var X3DUrlObject_default = /*#__PURE__*/__webpack_require__.n(X3DUrlObject_namespaceObject);
|
|
14584
14584
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
|
|
14585
|
-
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
14585
|
+
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Namespace");
|
|
14586
14586
|
var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
|
|
14587
14587
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Text/TextAlignment.js
|
|
14588
14588
|
/*******************************************************************************
|
|
@@ -14648,13 +14648,13 @@ const __default__ = TextAlignment;
|
|
|
14648
14648
|
Namespace_default().set ("x_ite/Browser/Text/TextAlignment", __default__);
|
|
14649
14649
|
/* harmony default export */ const Text_TextAlignment = (__default__);
|
|
14650
14650
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/InputOutput/FileLoader\")"
|
|
14651
|
-
const FileLoader_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
14651
|
+
const FileLoader_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/InputOutput/FileLoader");
|
|
14652
14652
|
var FileLoader_default = /*#__PURE__*/__webpack_require__.n(FileLoader_namespaceObject);
|
|
14653
14653
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
|
|
14654
|
-
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
14654
|
+
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Base/X3DConstants");
|
|
14655
14655
|
var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
|
|
14656
14656
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Browser/Networking/URLs\")"
|
|
14657
|
-
const URLs_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
14657
|
+
const URLs_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Browser/Networking/URLs");
|
|
14658
14658
|
var URLs_default = /*#__PURE__*/__webpack_require__.n(URLs_namespaceObject);
|
|
14659
14659
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Text/X3DFontStyleNode.js
|
|
14660
14660
|
/*******************************************************************************
|
|
@@ -14878,7 +14878,7 @@ X3DFontStyleNode .prototype = Object .assign (Object .create ((X3DNode_default()
|
|
|
14878
14878
|
|
|
14879
14879
|
if (this .URL .protocol !== "data:")
|
|
14880
14880
|
{
|
|
14881
|
-
if (!this .
|
|
14881
|
+
if (!this .getCache ())
|
|
14882
14882
|
this .URL .searchParams .set ("_", Date .now ());
|
|
14883
14883
|
}
|
|
14884
14884
|
|
|
@@ -14922,300 +14922,19 @@ const X3DFontStyleNode_default_ = X3DFontStyleNode;
|
|
|
14922
14922
|
Namespace_default().set ("x_ite/Components/Text/X3DFontStyleNode", X3DFontStyleNode_default_);
|
|
14923
14923
|
/* harmony default export */ const Text_X3DFontStyleNode = (X3DFontStyleNode_default_);
|
|
14924
14924
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Browser/Core/PrimitiveQuality\")"
|
|
14925
|
-
const PrimitiveQuality_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
14925
|
+
const PrimitiveQuality_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Browser/Core/PrimitiveQuality");
|
|
14926
14926
|
var PrimitiveQuality_default = /*#__PURE__*/__webpack_require__.n(PrimitiveQuality_namespaceObject);
|
|
14927
|
-
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/
|
|
14928
|
-
const
|
|
14929
|
-
var
|
|
14930
|
-
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector2\")"
|
|
14931
|
-
const Vector2_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.4.3")] .require ("standard/Math/Numbers/Vector2");
|
|
14932
|
-
var Vector2_default = /*#__PURE__*/__webpack_require__.n(Vector2_namespaceObject);
|
|
14933
|
-
;// CONCATENATED MODULE: ./src/standard/Math/Geometry/Box2.js
|
|
14934
|
-
/*******************************************************************************
|
|
14935
|
-
*
|
|
14936
|
-
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
14937
|
-
*
|
|
14938
|
-
* Copyright create3000, Scheffelstraße 31a, Leipzig, Germany 2011 - 2022.
|
|
14939
|
-
*
|
|
14940
|
-
* All rights reserved. Holger Seelig <holger.seelig@yahoo.de>.
|
|
14941
|
-
*
|
|
14942
|
-
* The copyright notice above does not evidence any actual of intended
|
|
14943
|
-
* publication of such source code, and is an unpublished work by create3000.
|
|
14944
|
-
* This material contains CONFIDENTIAL INFORMATION that is the property of
|
|
14945
|
-
* create3000.
|
|
14946
|
-
*
|
|
14947
|
-
* No permission is granted to copy, distribute, or create derivative works from
|
|
14948
|
-
* the contents of this software, in whole or in part, without the prior written
|
|
14949
|
-
* permission of create3000.
|
|
14950
|
-
*
|
|
14951
|
-
* NON-MILITARY USE ONLY
|
|
14952
|
-
*
|
|
14953
|
-
* All create3000 software are effectively free software with a non-military use
|
|
14954
|
-
* restriction. It is free. Well commented source is provided. You may reuse the
|
|
14955
|
-
* source in any way you please with the exception anything that uses it must be
|
|
14956
|
-
* marked to indicate is contains 'non-military use only' components.
|
|
14957
|
-
*
|
|
14958
|
-
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
14959
|
-
*
|
|
14960
|
-
* Copyright 2011 - 2022, Holger Seelig <holger.seelig@yahoo.de>.
|
|
14961
|
-
*
|
|
14962
|
-
* This file is part of the X_ITE Project.
|
|
14963
|
-
*
|
|
14964
|
-
* X_ITE is free software: you can redistribute it and/or modify it under the
|
|
14965
|
-
* terms of the GNU General Public License version 3 only, as published by the
|
|
14966
|
-
* Free Software Foundation.
|
|
14967
|
-
*
|
|
14968
|
-
* X_ITE is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
14969
|
-
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
14970
|
-
* A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
|
|
14971
|
-
* details (a copy is included in the LICENSE file that accompanied this code).
|
|
14972
|
-
*
|
|
14973
|
-
* You should have received a copy of the GNU General Public License version 3
|
|
14974
|
-
* along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
|
|
14975
|
-
* copy of the GPLv3 License.
|
|
14976
|
-
*
|
|
14977
|
-
* For Silvio, Joy and Adi.
|
|
14978
|
-
*
|
|
14979
|
-
******************************************************************************/
|
|
14980
|
-
|
|
14981
|
-
|
|
14982
|
-
|
|
14983
|
-
|
|
14984
|
-
function Box2 (size, center)
|
|
14985
|
-
{
|
|
14986
|
-
switch (arguments .length)
|
|
14987
|
-
{
|
|
14988
|
-
case 0:
|
|
14989
|
-
{
|
|
14990
|
-
this .matrix = new (Matrix3_default()) (0, 0, 0,
|
|
14991
|
-
0, 0, 0,
|
|
14992
|
-
0, 0, 0);
|
|
14993
|
-
return;
|
|
14994
|
-
}
|
|
14995
|
-
case 2:
|
|
14996
|
-
{
|
|
14997
|
-
this .matrix = new (Matrix3_default()) (size .x / 2, 0, 0,
|
|
14998
|
-
0, size .y / 2, 0,
|
|
14999
|
-
center .x, center .y, 1);
|
|
15000
|
-
return;
|
|
15001
|
-
}
|
|
15002
|
-
case 3:
|
|
15003
|
-
{
|
|
15004
|
-
const
|
|
15005
|
-
min = arguments [0],
|
|
15006
|
-
max = arguments [1],
|
|
15007
|
-
sx = (max .x - min .x) / 2,
|
|
15008
|
-
sy = (max .y - min .y) / 2,
|
|
15009
|
-
cx = (max .x + min .x) / 2,
|
|
15010
|
-
cy = (max .y + min .y) / 2;
|
|
15011
|
-
|
|
15012
|
-
this .matrix = new (Matrix3_default()) (sx, 0, 0,
|
|
15013
|
-
0, sy, 0,
|
|
15014
|
-
cx, cy, 1);
|
|
15015
|
-
return;
|
|
15016
|
-
}
|
|
15017
|
-
}
|
|
15018
|
-
}
|
|
15019
|
-
|
|
15020
|
-
Box2 .prototype =
|
|
15021
|
-
{
|
|
15022
|
-
constructor: Box2,
|
|
15023
|
-
copy: function ()
|
|
15024
|
-
{
|
|
15025
|
-
const copy = Object .create (Box2 .prototype);
|
|
15026
|
-
copy .matrix = this .matrix .copy ();
|
|
15027
|
-
return copy;
|
|
15028
|
-
},
|
|
15029
|
-
assign: function (box)
|
|
15030
|
-
{
|
|
15031
|
-
this .matrix .assign (box .matrix);
|
|
15032
|
-
return this;
|
|
15033
|
-
},
|
|
15034
|
-
equals: function (box)
|
|
15035
|
-
{
|
|
15036
|
-
return this .matrix .equals (box .matrix);
|
|
15037
|
-
},
|
|
15038
|
-
set: function (size, center)
|
|
15039
|
-
{
|
|
15040
|
-
const m = this .matrix;
|
|
15041
|
-
|
|
15042
|
-
switch (arguments .length)
|
|
15043
|
-
{
|
|
15044
|
-
case 0:
|
|
15045
|
-
{
|
|
15046
|
-
m [0] = 0.5; m [1] = 0; m [2] = 0;
|
|
15047
|
-
m [3] = 0; m [4] = 0.5; m [5] = 0;
|
|
15048
|
-
m [6] = 0; m [7] = 0; m [8] = 0;
|
|
15049
|
-
return this;
|
|
15050
|
-
}
|
|
15051
|
-
case 2:
|
|
15052
|
-
{
|
|
15053
|
-
// size, center
|
|
15054
|
-
m [0] = size .x / 2; m [1] = 0; m [2] = 0;
|
|
15055
|
-
m [3] = 0; m [4] = size .y / 2; m [5] = 0;
|
|
15056
|
-
m [6] = center .x; m [7] = center .y; m [8] = 1;
|
|
15057
|
-
return this;
|
|
15058
|
-
}
|
|
15059
|
-
case 3:
|
|
15060
|
-
{
|
|
15061
|
-
const
|
|
15062
|
-
min = arguments [0],
|
|
15063
|
-
max = arguments [1],
|
|
15064
|
-
sx = (max .x - min .x) / 2,
|
|
15065
|
-
sy = (max .y - min .y) / 2,
|
|
15066
|
-
cx = (max .x + min .x) / 2,
|
|
15067
|
-
cy = (max .y + min .y) / 2;
|
|
15068
|
-
|
|
15069
|
-
this .matrix .set (sx, 0, 0,
|
|
15070
|
-
0, sy, 0,
|
|
15071
|
-
cx, cy, 1);
|
|
15072
|
-
return this;
|
|
15073
|
-
}
|
|
15074
|
-
}
|
|
15075
|
-
},
|
|
15076
|
-
setExtents: function (min, max)
|
|
15077
|
-
{
|
|
15078
|
-
const
|
|
15079
|
-
m = this .matrix,
|
|
15080
|
-
sx = (max .x - min .x) / 2,
|
|
15081
|
-
sy = (max .y - min .y) / 2,
|
|
15082
|
-
cx = (max .x + min .x) / 2,
|
|
15083
|
-
cy = (max .y + min .y) / 2;
|
|
15084
|
-
|
|
15085
|
-
m [0] = sx; m [1] = 0; m [2] = 0;
|
|
15086
|
-
m [3] = 0; m [4] = sy; m [5] = 0;
|
|
15087
|
-
m [6] = cx; m [7] = cy; m [8] = 1;
|
|
15088
|
-
return this;
|
|
15089
|
-
},
|
|
15090
|
-
isEmpty: function ()
|
|
15091
|
-
{
|
|
15092
|
-
return this .matrix [8] === 0;
|
|
15093
|
-
},
|
|
15094
|
-
add: (function ()
|
|
15095
|
-
{
|
|
15096
|
-
const
|
|
15097
|
-
lhs_min = new (Vector2_default()) (0, 0),
|
|
15098
|
-
lhs_max = new (Vector2_default()) (0, 0),
|
|
15099
|
-
rhs_min = new (Vector2_default()) (0, 0),
|
|
15100
|
-
rhs_max = new (Vector2_default()) (0, 0);
|
|
15101
|
-
|
|
15102
|
-
return function (box)
|
|
15103
|
-
{
|
|
15104
|
-
if (this .isEmpty ())
|
|
15105
|
-
return this .assign (box);
|
|
15106
|
-
|
|
15107
|
-
if (box .isEmpty ())
|
|
15108
|
-
return this;
|
|
15109
|
-
|
|
15110
|
-
this .getExtents (lhs_min, lhs_max);
|
|
15111
|
-
box .getExtents (rhs_min, rhs_max);
|
|
15112
|
-
|
|
15113
|
-
return this .set (lhs_min .min (rhs_min), lhs_max .max (rhs_max), true);
|
|
15114
|
-
};
|
|
15115
|
-
})(),
|
|
15116
|
-
multLeft: function (matrix)
|
|
15117
|
-
{
|
|
15118
|
-
this .matrix .multLeft (matrix);
|
|
15119
|
-
return this;
|
|
15120
|
-
},
|
|
15121
|
-
multRight: function (matrix)
|
|
15122
|
-
{
|
|
15123
|
-
this .matrix .multRight (matrix);
|
|
15124
|
-
return this;
|
|
15125
|
-
},
|
|
15126
|
-
getExtents: function (min, max)
|
|
15127
|
-
{
|
|
15128
|
-
this .getAbsoluteExtents (min, max);
|
|
15129
|
-
|
|
15130
|
-
min .add (this .center);
|
|
15131
|
-
max .add (this .center);
|
|
15132
|
-
},
|
|
15133
|
-
getAbsoluteExtents: (function ()
|
|
15134
|
-
{
|
|
15135
|
-
const p1 = new (Vector2_default()) (0, 0);
|
|
15136
|
-
|
|
15137
|
-
return function (min, max)
|
|
15138
|
-
{
|
|
15139
|
-
const
|
|
15140
|
-
m = this .matrix,
|
|
15141
|
-
x = m .xAxis,
|
|
15142
|
-
y = m .yAxis;
|
|
15143
|
-
|
|
15144
|
-
p1 .assign (x) .add (y);
|
|
15145
|
-
|
|
15146
|
-
const p2 = y .subtract (x);
|
|
15147
|
-
|
|
15148
|
-
min .assign (p1) .min (p2);
|
|
15149
|
-
max .assign (p1) .max (p2);
|
|
15150
|
-
|
|
15151
|
-
p1 .negate ();
|
|
15152
|
-
p2 .negate ();
|
|
15153
|
-
|
|
15154
|
-
min .min (p1, p2);
|
|
15155
|
-
max .max (p1, p2);
|
|
15156
|
-
};
|
|
15157
|
-
})(),
|
|
15158
|
-
containsPoint: (function ()
|
|
15159
|
-
{
|
|
15160
|
-
const
|
|
15161
|
-
min = new (Vector2_default()) (0, 0),
|
|
15162
|
-
max = new (Vector2_default()) (0, 0);
|
|
15163
|
-
|
|
15164
|
-
return function (point)
|
|
15165
|
-
{
|
|
15166
|
-
this .getExtents (min, max);
|
|
15167
|
-
|
|
15168
|
-
return min .x <= point .x &&
|
|
15169
|
-
max .x >= point .x &&
|
|
15170
|
-
min .y <= point .y &&
|
|
15171
|
-
max .y >= point .y;
|
|
15172
|
-
};
|
|
15173
|
-
})(),
|
|
15174
|
-
toString: function ()
|
|
15175
|
-
{
|
|
15176
|
-
return this .size + ", " + this .center;
|
|
15177
|
-
},
|
|
15178
|
-
};
|
|
15179
|
-
|
|
15180
|
-
Object .defineProperty (Box2 .prototype, "size",
|
|
15181
|
-
{
|
|
15182
|
-
get: (function ()
|
|
15183
|
-
{
|
|
15184
|
-
const
|
|
15185
|
-
min = new (Vector2_default()) (0, 0),
|
|
15186
|
-
max = new (Vector2_default()) (0, 0);
|
|
15187
|
-
|
|
15188
|
-
return function ()
|
|
15189
|
-
{
|
|
15190
|
-
this .getAbsoluteExtents (min, max);
|
|
15191
|
-
|
|
15192
|
-
return max .subtract (min);
|
|
15193
|
-
};
|
|
15194
|
-
})(),
|
|
15195
|
-
enumerable: true,
|
|
15196
|
-
configurable: false
|
|
15197
|
-
});
|
|
15198
|
-
|
|
15199
|
-
Object .defineProperty (Box2 .prototype, "center",
|
|
15200
|
-
{
|
|
15201
|
-
get: function ()
|
|
15202
|
-
{
|
|
15203
|
-
return this .matrix .origin;
|
|
15204
|
-
},
|
|
15205
|
-
enumerable: true,
|
|
15206
|
-
configurable: false
|
|
15207
|
-
});
|
|
15208
|
-
|
|
15209
|
-
const Box2_default_ = Box2;
|
|
15210
|
-
;
|
|
15211
|
-
|
|
15212
|
-
Namespace_default().set ("standard/Math/Geometry/Box2", Box2_default_);
|
|
15213
|
-
/* harmony default export */ const Geometry_Box2 = (Box2_default_);
|
|
14927
|
+
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Geometry/Box2\")"
|
|
14928
|
+
const Box2_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("standard/Math/Geometry/Box2");
|
|
14929
|
+
var Box2_default = /*#__PURE__*/__webpack_require__.n(Box2_namespaceObject);
|
|
15214
14930
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Geometry/Box3\")"
|
|
15215
|
-
const Box3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
14931
|
+
const Box3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("standard/Math/Geometry/Box3");
|
|
15216
14932
|
var Box3_default = /*#__PURE__*/__webpack_require__.n(Box3_namespaceObject);
|
|
14933
|
+
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector2\")"
|
|
14934
|
+
const Vector2_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("standard/Math/Numbers/Vector2");
|
|
14935
|
+
var Vector2_default = /*#__PURE__*/__webpack_require__.n(Vector2_namespaceObject);
|
|
15217
14936
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector3\")"
|
|
15218
|
-
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
14937
|
+
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("standard/Math/Numbers/Vector3");
|
|
15219
14938
|
var Vector3_default = /*#__PURE__*/__webpack_require__.n(Vector3_namespaceObject);
|
|
15220
14939
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Text/X3DTextGeometry.js
|
|
15221
14940
|
/*******************************************************************************
|
|
@@ -15272,8 +14991,8 @@ var Vector3_default = /*#__PURE__*/__webpack_require__.n(Vector3_namespaceObject
|
|
|
15272
14991
|
|
|
15273
14992
|
|
|
15274
14993
|
var
|
|
15275
|
-
bbox = new
|
|
15276
|
-
lineBBox = new
|
|
14994
|
+
bbox = new (Box2_default()) (),
|
|
14995
|
+
lineBBox = new (Box2_default()) (),
|
|
15277
14996
|
min = new (Vector2_default()) (0, 0),
|
|
15278
14997
|
max = new (Vector2_default()) (0, 0),
|
|
15279
14998
|
glyphMin = new (Vector2_default()) (0, 0),
|
|
@@ -15287,7 +15006,7 @@ var
|
|
|
15287
15006
|
lineBound = new (Vector2_default()) (0, 0),
|
|
15288
15007
|
origin = new (Vector3_default()) (0, 0, 0),
|
|
15289
15008
|
vector = new (Vector2_default()) (0, 0),
|
|
15290
|
-
box2 = new
|
|
15009
|
+
box2 = new (Box2_default()) (),
|
|
15291
15010
|
zero2 = new (Vector2_default()) (0, 0),
|
|
15292
15011
|
zero3 = new (Vector3_default()) (0, 0, 0);
|
|
15293
15012
|
|
|
@@ -15839,161 +15558,17 @@ const X3DTextGeometry_default_ = X3DTextGeometry;
|
|
|
15839
15558
|
Namespace_default().set ("x_ite/Browser/Text/X3DTextGeometry", X3DTextGeometry_default_);
|
|
15840
15559
|
/* harmony default export */ const Text_X3DTextGeometry = (X3DTextGeometry_default_);
|
|
15841
15560
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Rendering/X3DGeometryNode\")"
|
|
15842
|
-
const X3DGeometryNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
15561
|
+
const X3DGeometryNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Components/Rendering/X3DGeometryNode");
|
|
15843
15562
|
var X3DGeometryNode_default = /*#__PURE__*/__webpack_require__.n(X3DGeometryNode_namespaceObject);
|
|
15844
15563
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Matrix4\")"
|
|
15845
|
-
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
15564
|
+
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("standard/Math/Numbers/Matrix4");
|
|
15846
15565
|
var Matrix4_default = /*#__PURE__*/__webpack_require__.n(Matrix4_namespaceObject);
|
|
15847
|
-
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/
|
|
15848
|
-
const
|
|
15849
|
-
var
|
|
15850
|
-
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"
|
|
15851
|
-
const
|
|
15852
|
-
var
|
|
15853
|
-
;// CONCATENATED MODULE: ./src/standard/Math/Algorithms/Bezier.js
|
|
15854
|
-
/*******************************************************************************
|
|
15855
|
-
*
|
|
15856
|
-
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
15857
|
-
*
|
|
15858
|
-
* Copyright create3000, Scheffelstraße 31a, Leipzig, Germany 2011 - 2022.
|
|
15859
|
-
*
|
|
15860
|
-
* All rights reserved. Holger Seelig <holger.seelig@yahoo.de>.
|
|
15861
|
-
*
|
|
15862
|
-
* The copyright notice above does not evidence any actual of intended
|
|
15863
|
-
* publication of such source code, and is an unpublished work by create3000.
|
|
15864
|
-
* This material contains CONFIDENTIAL INFORMATION that is the property of
|
|
15865
|
-
* create3000.
|
|
15866
|
-
*
|
|
15867
|
-
* No permission is granted to copy, distribute, or create derivative works from
|
|
15868
|
-
* the contents of this software, in whole or in part, without the prior written
|
|
15869
|
-
* permission of create3000.
|
|
15870
|
-
*
|
|
15871
|
-
* NON-MILITARY USE ONLY
|
|
15872
|
-
*
|
|
15873
|
-
* All create3000 software are effectively free software with a non-military use
|
|
15874
|
-
* restriction. It is free. Well commented source is provided. You may reuse the
|
|
15875
|
-
* source in any way you please with the exception anything that uses it must be
|
|
15876
|
-
* marked to indicate is contains 'non-military use only' components.
|
|
15877
|
-
*
|
|
15878
|
-
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
15879
|
-
*
|
|
15880
|
-
* Copyright 2011 - 2022, Holger Seelig <holger.seelig@yahoo.de>.
|
|
15881
|
-
*
|
|
15882
|
-
* This file is part of the X_ITE Project.
|
|
15883
|
-
*
|
|
15884
|
-
* X_ITE is free software: you can redistribute it and/or modify it under the
|
|
15885
|
-
* terms of the GNU General Public License version 3 only, as published by the
|
|
15886
|
-
* Free Software Foundation.
|
|
15887
|
-
*
|
|
15888
|
-
* X_ITE is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
15889
|
-
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
15890
|
-
* A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
|
|
15891
|
-
* details (a copy is included in the LICENSE file that accompanied this code).
|
|
15892
|
-
*
|
|
15893
|
-
* You should have received a copy of the GNU General Public License version 3
|
|
15894
|
-
* along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
|
|
15895
|
-
* copy of the GPLv3 License.
|
|
15896
|
-
*
|
|
15897
|
-
* For Silvio, Joy and Adi.
|
|
15898
|
-
*
|
|
15899
|
-
******************************************************************************/
|
|
15900
|
-
|
|
15901
|
-
|
|
15902
|
-
|
|
15903
|
-
const lerp = (Algorithm_default()).lerp;
|
|
15904
|
-
|
|
15905
|
-
function Bezier (x0, y0, x1, y1, x2, y2, x3, y3)
|
|
15906
|
-
{
|
|
15907
|
-
this .x0 = x0;
|
|
15908
|
-
this .y0 = y0;
|
|
15909
|
-
this .x1 = x1;
|
|
15910
|
-
this .y1 = y1;
|
|
15911
|
-
this .x2 = x2;
|
|
15912
|
-
this .y2 = y2;
|
|
15913
|
-
this .x3 = x3;
|
|
15914
|
-
this .y3 = y3;
|
|
15915
|
-
|
|
15916
|
-
this .order = arguments .length / 2 - 1;
|
|
15917
|
-
}
|
|
15918
|
-
|
|
15919
|
-
Bezier .prototype =
|
|
15920
|
-
{
|
|
15921
|
-
getLUT: function (dimension)
|
|
15922
|
-
{
|
|
15923
|
-
const
|
|
15924
|
-
x0 = this .x0,
|
|
15925
|
-
y0 = this .y0,
|
|
15926
|
-
x1 = this .x1,
|
|
15927
|
-
y1 = this .y1,
|
|
15928
|
-
x2 = this .x2,
|
|
15929
|
-
y2 = this .y2,
|
|
15930
|
-
x3 = this .x3,
|
|
15931
|
-
y3 = this .y3,
|
|
15932
|
-
lut = [ ];
|
|
15933
|
-
|
|
15934
|
-
switch (this .order)
|
|
15935
|
-
{
|
|
15936
|
-
case 2:
|
|
15937
|
-
{
|
|
15938
|
-
for (let i = 0, d = dimension - 1; i < dimension; ++ i)
|
|
15939
|
-
{
|
|
15940
|
-
lut .push (quadric (x0, y0, x1, y1, x2, y2, i / d));
|
|
15941
|
-
}
|
|
15942
|
-
|
|
15943
|
-
break;
|
|
15944
|
-
}
|
|
15945
|
-
case 3:
|
|
15946
|
-
{
|
|
15947
|
-
for (let i = 0, d = dimension - 1; i < dimension; ++ i)
|
|
15948
|
-
{
|
|
15949
|
-
lut .push (cubic (x0, y0, x1, y1, x2, y2, x3, y3, i / d));
|
|
15950
|
-
}
|
|
15951
|
-
|
|
15952
|
-
break;
|
|
15953
|
-
}
|
|
15954
|
-
}
|
|
15955
|
-
|
|
15956
|
-
return lut;
|
|
15957
|
-
}
|
|
15958
|
-
};
|
|
15959
|
-
|
|
15960
|
-
function quadric (x0, y0, x1, y1, x2, y2, t)
|
|
15961
|
-
{
|
|
15962
|
-
const
|
|
15963
|
-
ax0 = lerp (x0, x1, t),
|
|
15964
|
-
ay0 = lerp (y0, y1, t),
|
|
15965
|
-
ax1 = lerp (x1, x2, t),
|
|
15966
|
-
ay1 = lerp (y1, y2, t),
|
|
15967
|
-
bx0 = lerp (ax0, ax1, t),
|
|
15968
|
-
by0 = lerp (ay0, ay1, t);
|
|
15969
|
-
|
|
15970
|
-
return {x: bx0, y: by0};
|
|
15971
|
-
}
|
|
15972
|
-
|
|
15973
|
-
function cubic (x0, y0, x1, y1, x2, y2, x3, y3, t)
|
|
15974
|
-
{
|
|
15975
|
-
const
|
|
15976
|
-
ax0 = lerp (x0, x1, t),
|
|
15977
|
-
ay0 = lerp (y0, y1, t),
|
|
15978
|
-
ax1 = lerp (x1, x2, t),
|
|
15979
|
-
ay1 = lerp (y1, y2, t),
|
|
15980
|
-
ax2 = lerp (x2, x3, t),
|
|
15981
|
-
ay2 = lerp (y2, y3, t),
|
|
15982
|
-
bx0 = lerp (ax0, ax1, t),
|
|
15983
|
-
by0 = lerp (ay0, ay1, t),
|
|
15984
|
-
bx1 = lerp (ax1, ax2, t),
|
|
15985
|
-
by1 = lerp (ay1, ay2, t),
|
|
15986
|
-
cx0 = lerp (bx0, bx1, t),
|
|
15987
|
-
cy0 = lerp (by0, by1, t);
|
|
15988
|
-
|
|
15989
|
-
return {x: cx0, y: cy0};
|
|
15990
|
-
}
|
|
15991
|
-
|
|
15992
|
-
const Bezier_default_ = Bezier;
|
|
15993
|
-
;
|
|
15994
|
-
|
|
15995
|
-
Namespace_default().set ("standard/Math/Algorithms/Bezier", Bezier_default_);
|
|
15996
|
-
/* harmony default export */ const Algorithms_Bezier = (Bezier_default_);
|
|
15566
|
+
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Algorithms/Bezier\")"
|
|
15567
|
+
const Bezier_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("standard/Math/Algorithms/Bezier");
|
|
15568
|
+
var Bezier_default = /*#__PURE__*/__webpack_require__.n(Bezier_namespaceObject);
|
|
15569
|
+
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"lib/libtess\")"
|
|
15570
|
+
const libtess_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("lib/libtess");
|
|
15571
|
+
var libtess_default = /*#__PURE__*/__webpack_require__.n(libtess_namespaceObject);
|
|
15997
15572
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Text/PolygonText.js
|
|
15998
15573
|
/*******************************************************************************
|
|
15999
15574
|
*
|
|
@@ -16072,20 +15647,20 @@ PolygonText .prototype = Object .assign (Object .create (Text_X3DTextGeometry.pr
|
|
|
16072
15647
|
},
|
|
16073
15648
|
build: (function ()
|
|
16074
15649
|
{
|
|
16075
|
-
|
|
15650
|
+
const
|
|
16076
15651
|
min = new (Vector3_default()) (0, 0, 0),
|
|
16077
15652
|
max = new (Vector3_default()) (0, 0, 0);
|
|
16078
15653
|
|
|
16079
15654
|
return function ()
|
|
16080
15655
|
{
|
|
16081
|
-
|
|
15656
|
+
const
|
|
16082
15657
|
fontStyle = this .getFontStyle (),
|
|
16083
15658
|
font = fontStyle .getFont ();
|
|
16084
15659
|
|
|
16085
|
-
if (!
|
|
15660
|
+
if (!font)
|
|
16086
15661
|
return;
|
|
16087
15662
|
|
|
16088
|
-
|
|
15663
|
+
const
|
|
16089
15664
|
text = this .getText (),
|
|
16090
15665
|
glyphs = this .getGlyphs (),
|
|
16091
15666
|
minorAlignment = this .getMinorAlignment (),
|
|
@@ -16110,25 +15685,26 @@ PolygonText .prototype = Object .assign (Object .create (Text_X3DTextGeometry.pr
|
|
|
16110
15685
|
|
|
16111
15686
|
if (fontStyle ._horizontal .getValue ())
|
|
16112
15687
|
{
|
|
16113
|
-
for (
|
|
15688
|
+
for (let l = 0, length = glyphs .length; l < length; ++ l)
|
|
16114
15689
|
{
|
|
16115
|
-
|
|
16116
|
-
line
|
|
16117
|
-
charSpacing
|
|
16118
|
-
translation
|
|
16119
|
-
advanceWidth = 0;
|
|
15690
|
+
const
|
|
15691
|
+
line = glyphs [l],
|
|
15692
|
+
charSpacing = charSpacings [l],
|
|
15693
|
+
translation = translations [l];
|
|
16120
15694
|
|
|
16121
|
-
|
|
15695
|
+
let advanceWidth = 0;
|
|
15696
|
+
|
|
15697
|
+
for (let g = 0, gl = line .length; g < gl; ++ g)
|
|
16122
15698
|
{
|
|
16123
|
-
|
|
15699
|
+
const
|
|
16124
15700
|
glyph = line [g],
|
|
16125
15701
|
glyphVertices = this .getGlyphGeometry (font, glyph, primitiveQuality),
|
|
16126
15702
|
xOffset = minorAlignment .x + translation .x + advanceWidth + g * charSpacing,
|
|
16127
15703
|
yOffset = minorAlignment .y + translation .y;
|
|
16128
15704
|
|
|
16129
|
-
for (
|
|
15705
|
+
for (let v = 0, vl = glyphVertices .length; v < vl; ++ v)
|
|
16130
15706
|
{
|
|
16131
|
-
|
|
15707
|
+
const
|
|
16132
15708
|
x = glyphVertices [v] .x * size + xOffset,
|
|
16133
15709
|
y = glyphVertices [v] .y * size + yOffset;
|
|
16134
15710
|
|
|
@@ -16139,7 +15715,7 @@ PolygonText .prototype = Object .assign (Object .create (Text_X3DTextGeometry.pr
|
|
|
16139
15715
|
|
|
16140
15716
|
// Calculate advanceWidth.
|
|
16141
15717
|
|
|
16142
|
-
|
|
15718
|
+
let kerning = 0;
|
|
16143
15719
|
|
|
16144
15720
|
if (g + 1 < line .length)
|
|
16145
15721
|
kerning = font .getKerningValue (glyph, line [g + 1]);
|
|
@@ -16150,32 +15726,31 @@ PolygonText .prototype = Object .assign (Object .create (Text_X3DTextGeometry.pr
|
|
|
16150
15726
|
}
|
|
16151
15727
|
else
|
|
16152
15728
|
{
|
|
16153
|
-
|
|
15729
|
+
const
|
|
16154
15730
|
leftToRight = fontStyle ._leftToRight .getValue (),
|
|
16155
15731
|
topToBottom = fontStyle ._topToBottom .getValue (),
|
|
16156
15732
|
first = leftToRight ? 0 : text ._string .length - 1,
|
|
16157
15733
|
last = leftToRight ? text ._string .length : -1,
|
|
16158
15734
|
step = leftToRight ? 1 : -1;
|
|
16159
15735
|
|
|
16160
|
-
for (
|
|
15736
|
+
for (let l = first, t = 0; l !== last; l += step)
|
|
16161
15737
|
{
|
|
16162
|
-
|
|
16163
|
-
|
|
16164
|
-
var
|
|
15738
|
+
const
|
|
15739
|
+
line = glyphs [l],
|
|
16165
15740
|
numChars = line .length,
|
|
16166
15741
|
firstG = topToBottom ? 0 : numChars - 1,
|
|
16167
15742
|
lastG = topToBottom ? numChars : -1,
|
|
16168
15743
|
stepG = topToBottom ? 1 : -1;
|
|
16169
15744
|
|
|
16170
|
-
for (
|
|
15745
|
+
for (let g = firstG; g !== lastG; g += stepG, ++ t)
|
|
16171
15746
|
{
|
|
16172
|
-
|
|
15747
|
+
const
|
|
16173
15748
|
translation = translations [t],
|
|
16174
15749
|
glyphVertices = this .getGlyphGeometry (font, line [g], primitiveQuality);
|
|
16175
15750
|
|
|
16176
|
-
for (
|
|
15751
|
+
for (let v = 0, vl = glyphVertices .length; v < vl; ++ v)
|
|
16177
15752
|
{
|
|
16178
|
-
|
|
15753
|
+
const
|
|
16179
15754
|
x = glyphVertices [v] .x * size + minorAlignment .x + translation .x,
|
|
16180
15755
|
y = glyphVertices [v] .y * size + minorAlignment .y + translation .y;
|
|
16181
15756
|
|
|
@@ -16190,7 +15765,7 @@ PolygonText .prototype = Object .assign (Object .create (Text_X3DTextGeometry.pr
|
|
|
16190
15765
|
})(),
|
|
16191
15766
|
getGlyphExtents: function (font, glyph, primitiveQuality, min, max)
|
|
16192
15767
|
{
|
|
16193
|
-
|
|
15768
|
+
const
|
|
16194
15769
|
glyphCache = this .getBrowser () .getGlyph (font, primitiveQuality, glyph .index),
|
|
16195
15770
|
extents = glyphCache .extents;
|
|
16196
15771
|
|
|
@@ -16198,150 +15773,119 @@ PolygonText .prototype = Object .assign (Object .create (Text_X3DTextGeometry.pr
|
|
|
16198
15773
|
{
|
|
16199
15774
|
min .assign (extents .min);
|
|
16200
15775
|
max .assign (extents .max);
|
|
16201
|
-
return;
|
|
16202
15776
|
}
|
|
16203
|
-
|
|
16204
|
-
var vertices = this .getGlyphGeometry (font, glyph, primitiveQuality);
|
|
16205
|
-
|
|
16206
|
-
if (vertices .length)
|
|
15777
|
+
else
|
|
16207
15778
|
{
|
|
16208
|
-
|
|
16209
|
-
|
|
16210
|
-
min .assign (vertex);
|
|
16211
|
-
max .assign (vertex);
|
|
15779
|
+
const vertices = this .getGlyphGeometry (font, glyph, primitiveQuality);
|
|
16212
15780
|
|
|
16213
|
-
|
|
15781
|
+
if (vertices .length)
|
|
16214
15782
|
{
|
|
16215
|
-
|
|
16216
|
-
|
|
16217
|
-
|
|
16218
|
-
|
|
15783
|
+
min .assign (vertices [0]) .min (... vertices);
|
|
15784
|
+
max .assign (vertices [0]) .max (... vertices);
|
|
15785
|
+
}
|
|
15786
|
+
else
|
|
15787
|
+
{
|
|
15788
|
+
min .set (0, 0, 0);
|
|
15789
|
+
max .set (0, 0, 0);
|
|
16219
15790
|
}
|
|
16220
|
-
}
|
|
16221
|
-
else
|
|
16222
|
-
{
|
|
16223
|
-
min .set (0, 0, 0);
|
|
16224
|
-
max .set (0, 0, 0);
|
|
16225
|
-
}
|
|
16226
15791
|
|
|
16227
|
-
|
|
15792
|
+
const extents = glyphCache .extents = { };
|
|
16228
15793
|
|
|
16229
|
-
|
|
16230
|
-
|
|
15794
|
+
extents .min = min .copy ();
|
|
15795
|
+
extents .max = max .copy ();
|
|
15796
|
+
}
|
|
16231
15797
|
},
|
|
16232
15798
|
getGlyphGeometry: function (font, glyph, primitiveQuality)
|
|
16233
15799
|
{
|
|
16234
|
-
|
|
15800
|
+
const
|
|
16235
15801
|
glyphCache = this .getBrowser () .getGlyph (font, primitiveQuality, glyph .index),
|
|
16236
15802
|
glyphGeometry = glyphCache .geometry;
|
|
16237
15803
|
|
|
16238
15804
|
if (glyphGeometry)
|
|
15805
|
+
{
|
|
16239
15806
|
return glyphGeometry;
|
|
15807
|
+
}
|
|
15808
|
+
else
|
|
15809
|
+
{
|
|
15810
|
+
const glyphGeometry = glyphCache .geometry = [ ];
|
|
16240
15811
|
|
|
16241
|
-
|
|
16242
|
-
|
|
16243
|
-
this .createGlyphGeometry (glyph, glyphGeometry, primitiveQuality);
|
|
15812
|
+
this .createGlyphGeometry (glyph, glyphGeometry, primitiveQuality);
|
|
16244
15813
|
|
|
16245
|
-
|
|
15814
|
+
return glyphGeometry;
|
|
15815
|
+
}
|
|
16246
15816
|
},
|
|
16247
|
-
createGlyphGeometry:
|
|
15817
|
+
createGlyphGeometry: function (glyph, vertices, primitiveQuality)
|
|
16248
15818
|
{
|
|
16249
|
-
|
|
16250
|
-
points = [ ],
|
|
16251
|
-
curves = [ ],
|
|
16252
|
-
normal = new (Vector3_default()) (0, 0, 0);
|
|
16253
|
-
|
|
16254
|
-
return function (glyph, vertices, primitiveQuality)
|
|
16255
|
-
{
|
|
16256
|
-
// Get curves for the current glyph.
|
|
15819
|
+
// Get contours for the current glyph.
|
|
16257
15820
|
|
|
16258
|
-
|
|
16259
|
-
|
|
16260
|
-
|
|
16261
|
-
commands = path .commands,
|
|
16262
|
-
x = 0,
|
|
16263
|
-
y = 0;
|
|
15821
|
+
const
|
|
15822
|
+
steps = this .getBezierSteps (primitiveQuality),
|
|
15823
|
+
path = glyph .getPath (0, 0, 1);
|
|
16264
15824
|
|
|
16265
|
-
|
|
16266
|
-
|
|
15825
|
+
let
|
|
15826
|
+
contours = [ ],
|
|
15827
|
+
points = [ ],
|
|
15828
|
+
x = 0,
|
|
15829
|
+
y = 0;
|
|
16267
15830
|
|
|
16268
|
-
|
|
15831
|
+
for (const command of path .commands)
|
|
15832
|
+
{
|
|
15833
|
+
switch (command .type)
|
|
16269
15834
|
{
|
|
16270
|
-
|
|
16271
|
-
|
|
16272
|
-
switch (command .type)
|
|
15835
|
+
case "M": // Start
|
|
15836
|
+
case "Z": // End
|
|
16273
15837
|
{
|
|
16274
|
-
|
|
16275
|
-
|
|
16276
|
-
{
|
|
16277
|
-
if (points .length > 2)
|
|
16278
|
-
{
|
|
16279
|
-
if (points [0] .x === points .at (-1) .x && points [0] .y === points .at (-1) .y)
|
|
16280
|
-
points .pop ();
|
|
15838
|
+
// Filter consecutive identical points.
|
|
15839
|
+
points = points .filter ((p, i, a) => !p .equals (a [(i + 1) % a .length]));
|
|
16281
15840
|
|
|
16282
|
-
|
|
16283
|
-
|
|
15841
|
+
if (points .length > 2)
|
|
15842
|
+
contours .push (points);
|
|
16284
15843
|
|
|
16285
|
-
|
|
15844
|
+
points = [ ];
|
|
16286
15845
|
|
|
16287
|
-
|
|
16288
|
-
points .push (new (Vector3_default()) (command .x, -command .y, 0));
|
|
16289
|
-
|
|
16290
|
-
break;
|
|
16291
|
-
}
|
|
16292
|
-
case "L": // Linear
|
|
16293
|
-
{
|
|
15846
|
+
if (command .type === "M")
|
|
16294
15847
|
points .push (new (Vector3_default()) (command .x, -command .y, 0));
|
|
16295
|
-
break;
|
|
16296
|
-
}
|
|
16297
|
-
case "Q": // Quadric
|
|
16298
|
-
{
|
|
16299
|
-
var
|
|
16300
|
-
curve = new Algorithms_Bezier (x, -y, command .x1, -command .y1, command .x, -command .y),
|
|
16301
|
-
lut = curve .getLUT (dimension);
|
|
16302
15848
|
|
|
16303
|
-
|
|
16304
|
-
points .push (new (Vector3_default()) (lut [l] .x, lut [l] .y, 0));
|
|
16305
|
-
|
|
16306
|
-
break;
|
|
16307
|
-
}
|
|
16308
|
-
case "C": // Cubic
|
|
16309
|
-
{
|
|
16310
|
-
var
|
|
16311
|
-
curve = new Algorithms_Bezier (x, -y, command .x1, -command .y1, command .x2, -command .y2, command .x, -command .y),
|
|
16312
|
-
lut = curve .getLUT (dimension);
|
|
16313
|
-
|
|
16314
|
-
for (var l = 1, ll = lut .length; l < ll; ++ l)
|
|
16315
|
-
points .push (new (Vector3_default()) (lut [l] .x, lut [l] .y, 0));
|
|
16316
|
-
|
|
16317
|
-
break;
|
|
16318
|
-
}
|
|
16319
|
-
default:
|
|
16320
|
-
continue;
|
|
15849
|
+
break;
|
|
16321
15850
|
}
|
|
15851
|
+
case "L": // Linear
|
|
15852
|
+
{
|
|
15853
|
+
points .push (new (Vector3_default()) (command .x, -command .y, 0));
|
|
15854
|
+
break;
|
|
15855
|
+
}
|
|
15856
|
+
case "Q": // Quadric
|
|
15857
|
+
{
|
|
15858
|
+
const
|
|
15859
|
+
curve = new (Bezier_default()) (x, -y, command .x1, -command .y1, command .x, -command .y),
|
|
15860
|
+
lut = curve .getPoints ("quadric", steps);
|
|
16322
15861
|
|
|
16323
|
-
|
|
16324
|
-
|
|
16325
|
-
}
|
|
16326
|
-
|
|
16327
|
-
// Triangulate contours.
|
|
15862
|
+
for (const p of lut)
|
|
15863
|
+
points .push (new (Vector3_default()) (p .x, p .y, 0));
|
|
16328
15864
|
|
|
16329
|
-
|
|
16330
|
-
|
|
16331
|
-
|
|
15865
|
+
break;
|
|
15866
|
+
}
|
|
15867
|
+
case "C": // Cubic
|
|
15868
|
+
{
|
|
15869
|
+
const
|
|
15870
|
+
curve = new (Bezier_default()) (x, -y, command .x1, -command .y1, command .x2, -command .y2, command .x, -command .y),
|
|
15871
|
+
lut = curve .getPoints ("cubic", steps);
|
|
16332
15872
|
|
|
16333
|
-
|
|
16334
|
-
|
|
15873
|
+
for (const p of lut)
|
|
15874
|
+
points .push (new (Vector3_default()) (p .x, p .y, 0));
|
|
16335
15875
|
|
|
16336
|
-
|
|
16337
|
-
|
|
15876
|
+
break;
|
|
15877
|
+
}
|
|
15878
|
+
default:
|
|
15879
|
+
continue;
|
|
15880
|
+
}
|
|
16338
15881
|
|
|
16339
|
-
|
|
15882
|
+
x = command .x;
|
|
15883
|
+
y = command .y;
|
|
15884
|
+
}
|
|
16340
15885
|
|
|
16341
|
-
|
|
16342
|
-
|
|
16343
|
-
|
|
16344
|
-
getBezierDimension: function (primitiveQuality)
|
|
15886
|
+
return this .triangulatePolygon (contours, vertices);
|
|
15887
|
+
},
|
|
15888
|
+
getBezierSteps: function (primitiveQuality)
|
|
16345
15889
|
{
|
|
16346
15890
|
switch (primitiveQuality)
|
|
16347
15891
|
{
|
|
@@ -16353,6 +15897,40 @@ PolygonText .prototype = Object .assign (Object .create (Text_X3DTextGeometry.pr
|
|
|
16353
15897
|
return 5;
|
|
16354
15898
|
}
|
|
16355
15899
|
},
|
|
15900
|
+
triangulatePolygon: (function ()
|
|
15901
|
+
{
|
|
15902
|
+
// Function called for each vertex of tessellator output.
|
|
15903
|
+
|
|
15904
|
+
function vertexCallback (point, triangles)
|
|
15905
|
+
{
|
|
15906
|
+
triangles .push (point);
|
|
15907
|
+
}
|
|
15908
|
+
|
|
15909
|
+
const tessy = new (libtess_default()).GluTesselator ();
|
|
15910
|
+
|
|
15911
|
+
tessy .gluTessCallback ((libtess_default()).gluEnum.GLU_TESS_VERTEX_DATA, vertexCallback);
|
|
15912
|
+
tessy .gluTessProperty ((libtess_default()).gluEnum.GLU_TESS_WINDING_RULE, (libtess_default()).windingRule.GLU_TESS_WINDING_ODD);
|
|
15913
|
+
tessy .gluTessNormal (0, 0, 1);
|
|
15914
|
+
|
|
15915
|
+
return function (contours, triangles)
|
|
15916
|
+
{
|
|
15917
|
+
tessy .gluTessBeginPolygon (triangles);
|
|
15918
|
+
|
|
15919
|
+
for (const points of contours)
|
|
15920
|
+
{
|
|
15921
|
+
tessy .gluTessBeginContour ();
|
|
15922
|
+
|
|
15923
|
+
for (const point of points)
|
|
15924
|
+
tessy .gluTessVertex (point, point);
|
|
15925
|
+
|
|
15926
|
+
tessy .gluTessEndContour ();
|
|
15927
|
+
}
|
|
15928
|
+
|
|
15929
|
+
tessy .gluTessEndPolygon ();
|
|
15930
|
+
|
|
15931
|
+
return triangles;
|
|
15932
|
+
};
|
|
15933
|
+
})(),
|
|
16356
15934
|
display: function (gl, renderContext)
|
|
16357
15935
|
{ },
|
|
16358
15936
|
transformLine: function (line)
|
|
@@ -16474,7 +16052,7 @@ Namespace_default().set ("x_ite/Components/Text/FontStyle", FontStyle_default_);
|
|
|
16474
16052
|
/* harmony default export */ const Text_FontStyle = (FontStyle_default_);
|
|
16475
16053
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Text/X3DTextContext.js
|
|
16476
16054
|
/* provided dependency */ var $ = __webpack_require__(355);
|
|
16477
|
-
/* provided dependency */ var opentype = __webpack_require__(
|
|
16055
|
+
/* provided dependency */ var opentype = __webpack_require__(221);
|
|
16478
16056
|
/*******************************************************************************
|
|
16479
16057
|
*
|
|
16480
16058
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -16600,7 +16178,7 @@ const X3DTextContext_default_ = X3DTextContext;
|
|
|
16600
16178
|
Namespace_default().set ("x_ite/Browser/Text/X3DTextContext", X3DTextContext_default_);
|
|
16601
16179
|
/* harmony default export */ const Text_X3DTextContext = (X3DTextContext_default_);
|
|
16602
16180
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DCast\")"
|
|
16603
|
-
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.
|
|
16181
|
+
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Base/X3DCast");
|
|
16604
16182
|
var X3DCast_default = /*#__PURE__*/__webpack_require__.n(X3DCast_namespaceObject);
|
|
16605
16183
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Text/Text.js
|
|
16606
16184
|
/*******************************************************************************
|