x_ite 8.7.4 → 8.7.6
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/tasks.json +1 -1
- 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 +25 -25
- 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 +21 -23
- package/dist/assets/components/Geometry2D.min.js +1 -1
- package/dist/assets/components/Geospatial.js +35 -36
- package/dist/assets/components/Geospatial.min.js +1 -1
- package/dist/assets/components/HAnim.js +18 -18
- 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 -32
- package/dist/assets/components/Layout.min.js +1 -1
- package/dist/assets/components/NURBS.js +24 -24
- package/dist/assets/components/NURBS.min.js +1 -1
- package/dist/assets/components/ParticleSystems.js +22 -22
- package/dist/assets/components/ParticleSystems.min.js +1 -1
- package/dist/assets/components/Picking.js +20 -20
- package/dist/assets/components/Picking.min.js +1 -1
- package/dist/assets/components/RigidBodyPhysics.js +25 -25
- package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
- package/dist/assets/components/Scripting.js +28 -28
- package/dist/assets/components/Scripting.min.js +1 -1
- package/dist/assets/components/Text.js +26 -27
- package/dist/assets/components/Text.min.js +1 -1
- package/dist/assets/components/TextureProjector.js +15 -15
- package/dist/assets/components/TextureProjector.min.js +1 -1
- package/dist/assets/components/Texturing3D.js +30 -30
- 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 +1187 -1686
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.zip +0 -0
- package/docs/_config.yml +1 -1
- package/docs/_includes/scripts.html +0 -1
- package/docs/_posts/components/CADGeometry/QuadSet.md +1 -1
- package/docs/_posts/components/CubeMapTexturing/ComposedCubeMapTexture.md +1 -1
- package/docs/_posts/components/CubeMapTexturing/GeneratedCubeMapTexture.md +1 -1
- package/docs/_posts/components/EnvironmentalEffects/Background.md +1 -1
- package/docs/_posts/components/EnvironmentalEffects/Fog.md +1 -1
- package/docs/_posts/components/EnvironmentalEffects/LocalFog.md +1 -1
- package/docs/_posts/components/EnvironmentalEffects/TextureBackground.md +1 -1
- package/docs/_posts/components/EnvironmentalSensor/ProximitySensor.md +1 -1
- package/docs/_posts/components/EnvironmentalSensor/TransformSensor.md +1 -1
- package/docs/_posts/components/EnvironmentalSensor/VisibilitySensor.md +1 -1
- package/docs/_posts/components/EventUtilities/IntegerSequencer.md +1 -1
- package/docs/_posts/components/Followers/ColorChaser.md +1 -1
- package/docs/_posts/components/Followers/ColorDamper.md +1 -1
- package/docs/_posts/components/Followers/CoordinateChaser.md +1 -1
- package/docs/_posts/components/Followers/ScalarChaser.md +1 -1
- package/docs/_posts/components/Geometry2D/Arc2D.md +1 -1
- package/docs/_posts/components/Geometry2D/ArcClose2D.md +1 -1
- package/docs/_posts/components/Geometry2D/Circle2D.md +1 -1
- package/docs/_posts/components/Geometry2D/Disk2D.md +1 -1
- package/docs/_posts/components/Geometry2D/Polyline2D.md +1 -1
- package/docs/_posts/components/Geometry2D/Polypoint2D.md +1 -1
- package/docs/_posts/components/Geometry2D/Rectangle2D.md +1 -1
- package/docs/_posts/components/Geometry2D/TriangleSet2D.md +1 -1
- package/docs/_posts/components/Geometry3D/Box.md +1 -1
- package/docs/_posts/components/Geometry3D/Cone.md +1 -1
- package/docs/_posts/components/Geometry3D/Cylinder.md +1 -1
- package/docs/_posts/components/Geometry3D/ElevationGrid.md +1 -1
- package/docs/_posts/components/Geometry3D/Extrusion.md +1 -1
- package/docs/_posts/components/Geometry3D/IndexedFaceSet.md +1 -1
- package/docs/_posts/components/Geometry3D/Sphere.md +1 -1
- package/docs/_posts/components/Geospatial/GeoElevationGrid.md +1 -1
- package/docs/_posts/components/Geospatial/GeoLOD.md +1 -1
- package/docs/_posts/components/Geospatial/GeoViewpoint.md +1 -1
- package/docs/_posts/components/Grouping/Group.md +1 -1
- package/docs/_posts/components/Grouping/Switch.md +1 -1
- package/docs/_posts/components/Grouping/Transform.md +1 -1
- package/docs/_posts/components/HAnim/HAnimHumanoid.md +1 -1
- package/docs/_posts/components/Interpolation/ColorInterpolator.md +1 -1
- package/docs/_posts/components/Interpolation/CoordinateInterpolator.md +1 -1
- package/docs/_posts/components/Interpolation/OrientationInterpolator.md +1 -1
- package/docs/_posts/components/Interpolation/PositionInterpolator.md +1 -1
- package/docs/_posts/components/Interpolation/PositionInterpolator2D.md +1 -1
- package/docs/_posts/components/Interpolation/ScalarInterpolator.md +1 -1
- package/docs/_posts/components/Interpolation/SplineScalarInterpolator.md +1 -1
- package/docs/_posts/components/Interpolation/SquadOrientationInterpolator.md +1 -1
- package/docs/_posts/components/KeyDeviceSensor/KeySensor.md +1 -1
- package/docs/_posts/components/KeyDeviceSensor/StringSensor.md +1 -1
- package/docs/_posts/components/Layering/LayerSet.md +1 -1
- package/docs/_posts/components/Layering/Viewport.md +1 -1
- package/docs/_posts/components/Lighting/DirectionalLight.md +1 -1
- package/docs/_posts/components/Lighting/PointLight.md +1 -1
- package/docs/_posts/components/Lighting/SpotLight.md +1 -1
- package/docs/_posts/components/NURBS/NurbsCurve.md +1 -1
- package/docs/_posts/components/NURBS/NurbsPatchSurface.md +1 -1
- package/docs/_posts/components/NURBS/NurbsSweptSurface.md +1 -1
- package/docs/_posts/components/Navigation/Billboard.md +1 -1
- package/docs/_posts/components/Navigation/Collision.md +1 -1
- package/docs/_posts/components/Navigation/NavigationInfo.md +1 -1
- package/docs/_posts/components/Navigation/OrthoViewpoint.md +1 -1
- package/docs/_posts/components/Navigation/Viewpoint.md +1 -1
- package/docs/_posts/components/Networking/Anchor.md +1 -1
- package/docs/_posts/components/Networking/Inline.md +1 -1
- package/docs/_posts/components/Networking/LoadSensor.md +1 -1
- package/docs/_posts/components/ParticleSystems/ConeEmitter.md +1 -1
- package/docs/_posts/components/ParticleSystems/ExplosionEmitter.md +1 -1
- package/docs/_posts/components/ParticleSystems/ForcePhysicsModel.md +1 -1
- package/docs/_posts/components/ParticleSystems/ParticleSystem.md +1 -1
- package/docs/_posts/components/ParticleSystems/PointEmitter.md +1 -1
- package/docs/_posts/components/ParticleSystems/PolylineEmitter.md +1 -1
- package/docs/_posts/components/ParticleSystems/SurfaceEmitter.md +1 -1
- package/docs/_posts/components/ParticleSystems/VolumeEmitter.md +1 -1
- package/docs/_posts/components/ParticleSystems/WindPhysicsModel.md +1 -1
- package/docs/_posts/components/Picking/LinePickSensor.md +1 -1
- package/docs/_posts/components/Picking/PointPickSensor.md +1 -1
- package/docs/_posts/components/Picking/PrimitivePickSensor.md +1 -1
- package/docs/_posts/components/PointingDeviceSensor/CylinderSensor.md +1 -1
- package/docs/_posts/components/PointingDeviceSensor/PlaneSensor.md +1 -1
- package/docs/_posts/components/Rendering/ClipPlane.md +1 -1
- package/docs/_posts/components/Rendering/Color.md +1 -1
- package/docs/_posts/components/Rendering/ColorRGBA.md +1 -1
- package/docs/_posts/components/Rendering/Coordinate.md +1 -1
- package/docs/_posts/components/Rendering/IndexedLineSet.md +1 -1
- package/docs/_posts/components/Rendering/IndexedTriangleFanSet.md +1 -1
- package/docs/_posts/components/Rendering/IndexedTriangleSet.md +1 -1
- package/docs/_posts/components/Rendering/LineSet.md +1 -1
- package/docs/_posts/components/Rendering/PointSet.md +1 -1
- package/docs/_posts/components/RigidBodyPhysics/BallJoint.md +1 -1
- package/docs/_posts/components/RigidBodyPhysics/CollidableShape.md +1 -1
- package/docs/_posts/components/RigidBodyPhysics/CollisionCollection.md +1 -1
- package/docs/_posts/components/RigidBodyPhysics/RigidBody.md +1 -1
- package/docs/_posts/components/RigidBodyPhysics/RigidBodyCollection.md +1 -1
- package/docs/_posts/components/RigidBodyPhysics/SingleAxisHingeJoint.md +1 -1
- package/docs/_posts/components/RigidBodyPhysics/SliderJoint.md +1 -1
- package/docs/_posts/components/Shaders/ComposedShader.md +1 -1
- package/docs/_posts/components/Shaders/FloatVertexAttribute.md +1 -1
- package/docs/_posts/components/Shaders/ShaderPart.md +1 -1
- package/docs/_posts/components/Shape/Appearance.md +1 -1
- package/docs/_posts/components/Shape/FillProperties.md +1 -1
- package/docs/_posts/components/Shape/LineProperties.md +1 -1
- package/docs/_posts/components/Shape/Material.md +1 -1
- package/docs/_posts/components/Shape/TwoSidedMaterial.md +1 -1
- package/docs/_posts/components/Sound/AudioClip.md +1 -1
- package/docs/_posts/components/Text/FontStyle.md +1 -1
- package/docs/_posts/components/Text/Text.md +1 -1
- package/docs/_posts/components/Texturing/ImageTexture.md +1 -1
- package/docs/_posts/components/Texturing/MovieTexture.md +1 -1
- package/docs/_posts/components/Texturing/MultiTexture.md +1 -1
- package/docs/_posts/components/Texturing/PixelTexture.md +1 -1
- package/docs/_posts/components/Texturing3D/ImageTexture3D.md +1 -1
- package/docs/_posts/components/Texturing3D/ImageTextureAtlas.md +1 -1
- package/docs/_posts/components/Time/TimeSensor.md +1 -1
- package/docs/_posts/components/VolumeRendering/EdgeEnhancementVolumeStyle.md +1 -1
- package/docs/_posts/components/VolumeRendering/IsoSurfaceVolumeData.md +1 -1
- package/docs/_posts/components/VolumeRendering/SegmentedVolumeData.md +1 -1
- package/docs/_posts/components/VolumeRendering/ShadedVolumeStyle.md +1 -1
- package/docs/_posts/components/VolumeRendering/ToneMappedVolumeStyle.md +1 -1
- package/docs/_posts/components/VolumeRendering/VolumeData.md +1 -1
- package/docs/_posts/components/X_ITE/BlendMode.md +1 -1
- package/docs/_posts/custom-shaders.md +1 -1
- package/docs/_posts/getting-started.md +7 -2
- package/docs/_posts/reference/browser-services.md +6 -0
- package/docs/_posts/reference/field-services-and-objects.md +26 -6
- package/docs/_posts/tutorials/adding-backgrounds.md +2 -2
- package/docs/_posts/tutorials/adding-sound.md +1 -1
- package/docs/_posts/tutorials/building-a-x3d-world.md +1 -1
- package/docs/_posts/tutorials/building-elevation-grids.md +1 -1
- package/docs/_posts/tutorials/building-primitive-shapes.md +2 -2
- package/docs/_posts/tutorials/controlling-appearance-with-materials.md +1 -1
- package/docs/_posts/tutorials/controlling-detail.md +1 -1
- package/docs/_posts/tutorials/hello-world.md +1 -1
- package/docs/_posts/tutorials/naming-nodes.md +1 -1
- package/docs/_posts/tutorials/writing-program-scripts-with-ecmascript.md +1 -1
- package/package.json +3 -3
- package/src/lib/jquery.js +13 -0
- package/src/standard/Geospatial/UniversalTransverseMercator.js +0 -1
- package/src/standard/Math/Algorithms/eigen_decomposition.js +9 -9
- package/src/standard/Math/Geometry/Box2.js +37 -24
- package/src/standard/Math/Geometry/Box3.js +37 -24
- 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 +14 -14
- package/src/standard/Math/Numbers/Color3.js +10 -18
- package/src/standard/Math/Numbers/Color4.js +12 -23
- package/src/standard/Math/Numbers/Complex.js +59 -58
- package/src/standard/Math/Numbers/Matrix2.js +31 -45
- package/src/standard/Math/Numbers/Matrix3.js +59 -94
- package/src/standard/Math/Numbers/Matrix4.js +73 -114
- package/src/standard/Math/Numbers/Quaternion.js +70 -132
- package/src/standard/Math/Numbers/Rotation4.js +15 -42
- package/src/standard/Math/Numbers/Vector2.js +12 -78
- package/src/standard/Math/Numbers/Vector3.js +17 -94
- package/src/standard/Math/Numbers/Vector4.js +22 -94
- package/src/x_ite/Base/X3DInfoArray.js +9 -7
- package/src/x_ite/Base/X3DObject.js +9 -32
- package/src/x_ite/Base/X3DObjectArrayField.js +35 -64
- package/src/x_ite/Browser/Core/BrowserOptions.js +37 -0
- package/src/x_ite/Browser/Core/X3DCoreContext.js +21 -3
- package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolatorTemplate.js +4 -4
- package/src/x_ite/Browser/Interpolation/SquatInterpolator.js +12 -7
- package/src/x_ite/Browser/Layout/ScreenText.js +9 -4
- package/src/x_ite/Browser/Navigation/ExamineViewer.js +9 -9
- package/src/x_ite/Browser/Navigation/LookAtViewer.js +3 -3
- package/src/x_ite/Browser/Navigation/WalkViewer.js +2 -2
- package/src/x_ite/Browser/Navigation/X3DFlyViewer.js +7 -7
- package/src/x_ite/Browser/Picking/VolumePicker.js +1 -1
- package/src/x_ite/Browser/Shaders/X3DShadersContext.js +0 -1
- package/src/x_ite/Browser/Text/X3DTextGeometry.js +2 -3
- package/src/x_ite/Browser/VERSION.js +1 -1
- package/src/x_ite/Browser/X3DBrowser.js +61 -68
- package/src/x_ite/Browser/X3DBrowserContext.js +8 -8
- 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/Followers/OrientationChaser.js +3 -3
- package/src/x_ite/Components/Followers/OrientationDamper.js +3 -3
- package/src/x_ite/Components/Geometry2D/Rectangle2D.js +2 -3
- package/src/x_ite/Components/Geometry3D/Box.js +3 -10
- package/src/x_ite/Components/Geometry3D/Cone.js +1 -1
- package/src/x_ite/Components/Geometry3D/Cylinder.js +2 -2
- package/src/x_ite/Components/Geometry3D/Extrusion.js +3 -3
- package/src/x_ite/Components/Geospatial/GeoViewpoint.js +2 -2
- package/src/x_ite/Components/Interpolation/OrientationInterpolator.js +2 -2
- package/src/x_ite/Components/Layering/X3DLayerNode.js +1 -1
- package/src/x_ite/Components/Layout/Layout.js +1 -1
- package/src/x_ite/Components/Navigation/Billboard.js +1 -1
- package/src/x_ite/Components/Navigation/X3DViewpointNode.js +12 -13
- package/src/x_ite/Components/Picking/PointPickSensor.js +1 -1
- package/src/x_ite/Components/PointingDeviceSensor/CylinderSensor.js +7 -7
- package/src/x_ite/Components/PointingDeviceSensor/PlaneSensor.js +1 -1
- package/src/x_ite/Components/PointingDeviceSensor/SphereSensor.js +9 -9
- package/src/x_ite/Components/Rendering/X3DGeometryNode.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/DoubleAxisHingeJoint.js +2 -2
- package/src/x_ite/Components/RigidBodyPhysics/RigidBody.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/SingleAxisHingeJoint.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/SliderJoint.js +3 -3
- package/src/x_ite/Components/TextureProjector/X3DTextureProjectorNode.js +1 -1
- package/src/x_ite/Execution/X3DExecutionContext.js +52 -58
- package/src/x_ite/Execution/X3DExportedNode.js +13 -11
- package/src/x_ite/Execution/X3DImportedNode.js +25 -25
- package/src/x_ite/Execution/X3DScene.js +129 -53
- package/src/x_ite/Fields/ArrayFields.js +1 -1
- package/src/x_ite/Fields/SFColor.js +10 -15
- package/src/x_ite/Fields/SFColorRGBA.js +11 -18
- package/src/x_ite/Fields/SFImage.js +38 -33
- package/src/x_ite/Fields/SFMatrix3.js +1 -3
- package/src/x_ite/Fields/SFMatrix4.js +1 -5
- package/src/x_ite/Fields/SFMatrixPrototypeTemplate.js +6 -5
- package/src/x_ite/Fields/SFNodeCache.js +2 -2
- package/src/x_ite/Fields/SFRotation.js +14 -21
- package/src/x_ite/Fields/SFString.js +0 -1
- package/src/x_ite/Fields/SFVec2.js +8 -15
- package/src/x_ite/Fields/SFVec3.js +11 -18
- package/src/x_ite/Fields/SFVec4.js +12 -23
- package/src/x_ite/Fields/SFVecPrototypeTemplate.js +17 -16
- package/src/x_ite/Parser/SVGParser.js +3 -3
- package/src/x_ite/Parser/X3DOptimizer.js +1 -1
- package/src/x_ite/Prototype/X3DExternProtoDeclaration.js +26 -27
- package/src/x_ite/Prototype/X3DProtoDeclaration.js +16 -15
- package/src/x_ite/Rendering/X3DRenderObject.js +3 -3
- package/src/x_ite/Routing/X3DRoute.js +26 -25
- package/src/x_ite/X3DCanvasElement.js +1 -0
- package/docs/assets/js/autoupdate.js +0 -25
- package/src/x_ite/Execution/Scene.js +0 -145
|
@@ -174,7 +174,7 @@ Cone .prototype = Object .assign (Object .create (X3DGeometryNode .prototype),
|
|
|
174
174
|
u = i / xDimension,
|
|
175
175
|
theta = 2 * Math .PI * u,
|
|
176
176
|
t = Complex .Polar (-1, theta),
|
|
177
|
-
p =
|
|
177
|
+
p = t .copy () .multiply (bottomRadius);
|
|
178
178
|
|
|
179
179
|
texCoord .push (new Vector2 ((t .imag + 1) / 2, (t .real + 1) / 2));
|
|
180
180
|
points .push (new Vector3 (p .imag, y2, p .real));
|
|
@@ -125,13 +125,13 @@ Cylinder .prototype = Object .assign (Object .create (X3DGeometryNode .prototype
|
|
|
125
125
|
u1 = i / xDimension,
|
|
126
126
|
theta1 = 2 * Math .PI * u1,
|
|
127
127
|
n1 = Complex .Polar (-1, theta1),
|
|
128
|
-
p1 =
|
|
128
|
+
p1 = n1 .copy () .multiply (radius);
|
|
129
129
|
|
|
130
130
|
const
|
|
131
131
|
u2 = (i + 1) / xDimension,
|
|
132
132
|
theta2 = 2 * Math .PI * u2,
|
|
133
133
|
n2 = Complex .Polar (-1, theta2),
|
|
134
|
-
p2 =
|
|
134
|
+
p2 = n2 .copy () .multiply (radius);
|
|
135
135
|
|
|
136
136
|
// p1 - p4
|
|
137
137
|
// | \ |
|
|
@@ -184,7 +184,7 @@ Extrusion .prototype = Object .assign (Object .create (X3DGeometryNode .prototyp
|
|
|
184
184
|
|
|
185
185
|
const
|
|
186
186
|
vector3 = new Vector3 (0, 0, 0),
|
|
187
|
-
rotation = new Rotation4 (
|
|
187
|
+
rotation = new Rotation4 ();
|
|
188
188
|
|
|
189
189
|
return function ()
|
|
190
190
|
{
|
|
@@ -606,7 +606,7 @@ Extrusion .prototype = Object .assign (Object .create (X3DGeometryNode .prototyp
|
|
|
606
606
|
point = points [index] .copy ();
|
|
607
607
|
|
|
608
608
|
point .index = index;
|
|
609
|
-
texCoord [index] =
|
|
609
|
+
texCoord [index] = crossSection [numCapPoints - 1 - k] .getValue () .copy () .subtract (min) .divide (capMax);
|
|
610
610
|
polygon .push (convex ? index : point);
|
|
611
611
|
}
|
|
612
612
|
|
|
@@ -646,7 +646,7 @@ Extrusion .prototype = Object .assign (Object .create (X3DGeometryNode .prototyp
|
|
|
646
646
|
point = points [index] .copy ();
|
|
647
647
|
|
|
648
648
|
point .index = index;
|
|
649
|
-
texCoord [index] =
|
|
649
|
+
texCoord [index] = crossSection [k] .getValue () .copy () .subtract (min) .divide (capMax);
|
|
650
650
|
polygon .push (convex ? index : point);
|
|
651
651
|
}
|
|
652
652
|
|
|
@@ -183,7 +183,7 @@ GeoViewpoint .prototype = Object .assign (Object .create (X3DViewpointNode .prot
|
|
|
183
183
|
{
|
|
184
184
|
const
|
|
185
185
|
locationMatrix = new Matrix4 (),
|
|
186
|
-
geoOrientation = new Rotation4 (
|
|
186
|
+
geoOrientation = new Rotation4 ();
|
|
187
187
|
|
|
188
188
|
return function (value)
|
|
189
189
|
{
|
|
@@ -200,7 +200,7 @@ GeoViewpoint .prototype = Object .assign (Object .create (X3DViewpointNode .prot
|
|
|
200
200
|
{
|
|
201
201
|
const
|
|
202
202
|
locationMatrix = new Matrix4 (),
|
|
203
|
-
orientation = new Rotation4 (
|
|
203
|
+
orientation = new Rotation4 ();
|
|
204
204
|
|
|
205
205
|
return function ()
|
|
206
206
|
{
|
|
@@ -106,8 +106,8 @@ OrientationInterpolator .prototype = Object .assign (Object .create (X3DInterpol
|
|
|
106
106
|
interpolate: (function ()
|
|
107
107
|
{
|
|
108
108
|
const
|
|
109
|
-
keyValue0 = new Rotation4 (
|
|
110
|
-
keyValue1 = new Rotation4 (
|
|
109
|
+
keyValue0 = new Rotation4 (),
|
|
110
|
+
keyValue1 = new Rotation4 ();
|
|
111
111
|
|
|
112
112
|
return function (index0, index1, weight)
|
|
113
113
|
{
|
|
@@ -213,7 +213,7 @@ X3DLayerNode .prototype = Object .assign (Object .create (X3DNode .prototype),
|
|
|
213
213
|
{
|
|
214
214
|
const
|
|
215
215
|
viewpointNode = this .getViewpoint (),
|
|
216
|
-
bbox = this .getBBox (new Box3 ()) .multRight (
|
|
216
|
+
bbox = this .getBBox (new Box3 ()) .multRight (viewpointNode .getModelMatrix () .copy () .inverse ());
|
|
217
217
|
|
|
218
218
|
viewpointNode .lookAt (this, bbox .center, viewpointNode .getLookAtDistance (bbox), factor, straighten);
|
|
219
219
|
},
|
|
@@ -103,7 +103,7 @@ Layout .prototype = Object .assign (Object .create (X3DLayoutNode .prototype),
|
|
|
103
103
|
offset: new Vector3 (0, 0, 0),
|
|
104
104
|
scale: new Vector3 (1, 1, 1),
|
|
105
105
|
currentTranslation: new Vector3 (0, 0, 0),
|
|
106
|
-
currentRotation: new Rotation4 (
|
|
106
|
+
currentRotation: new Rotation4 (),
|
|
107
107
|
currentScale: new Vector3 (0, 0, 0),
|
|
108
108
|
modelViewMatrix: new Matrix4 (),
|
|
109
109
|
[Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new FieldDefinitionArray ([
|
|
@@ -110,7 +110,7 @@ Billboard .prototype = Object .assign (Object .create (X3DGroupingNode .prototyp
|
|
|
110
110
|
y = new Vector3 (0, 0, 0),
|
|
111
111
|
N1 = new Vector3 (0, 0, 0),
|
|
112
112
|
N2 = new Vector3 (0, 0, 0),
|
|
113
|
-
rotation = new Rotation4 (
|
|
113
|
+
rotation = new Rotation4 ();
|
|
114
114
|
|
|
115
115
|
return function (modelViewMatrix)
|
|
116
116
|
{
|
|
@@ -75,7 +75,7 @@ function X3DViewpointNode (executionContext)
|
|
|
75
75
|
"fieldOfViewScale", new Fields .SFFloat (1));
|
|
76
76
|
|
|
77
77
|
this .userPosition = new Vector3 (0, 1, 0);
|
|
78
|
-
this .userOrientation = new Rotation4 (
|
|
78
|
+
this .userOrientation = new Rotation4 ();
|
|
79
79
|
this .userCenterOfRotation = new Vector3 (0, 0, 0);
|
|
80
80
|
this .modelMatrix = new Matrix4 ();
|
|
81
81
|
this .cameraSpaceMatrix = new Matrix4 (1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 10, 1);
|
|
@@ -384,9 +384,9 @@ X3DViewpointNode .prototype = Object .assign (Object .create (X3DBindableNode .p
|
|
|
384
384
|
{
|
|
385
385
|
const
|
|
386
386
|
position = new Vector3 (0, 0, 0),
|
|
387
|
-
orientation = new Rotation4 (
|
|
387
|
+
orientation = new Rotation4 (),
|
|
388
388
|
scale = new Vector3 (0, 0, 0),
|
|
389
|
-
scaleOrientation = new Rotation4 (
|
|
389
|
+
scaleOrientation = new Rotation4 ();
|
|
390
390
|
|
|
391
391
|
return function (fromViewpointNode)
|
|
392
392
|
{
|
|
@@ -431,8 +431,7 @@ X3DViewpointNode .prototype = Object .assign (Object .create (X3DBindableNode .p
|
|
|
431
431
|
lookAtPoint: function (layerNode, point, factor, straighten)
|
|
432
432
|
{
|
|
433
433
|
this .getCameraSpaceMatrix () .multVecMatrix (point);
|
|
434
|
-
|
|
435
|
-
Matrix4 .inverse (this .getModelMatrix ()) .multVecMatrix (point);
|
|
434
|
+
this .getModelMatrix () .copy () .inverse () .multVecMatrix (point);
|
|
436
435
|
|
|
437
436
|
const minDistance = layerNode .getNavigationInfo () .getNearValue () * 2;
|
|
438
437
|
|
|
@@ -440,7 +439,7 @@ X3DViewpointNode .prototype = Object .assign (Object .create (X3DBindableNode .p
|
|
|
440
439
|
},
|
|
441
440
|
lookAtBBox: function (layerNode, bbox, factor, straighten)
|
|
442
441
|
{
|
|
443
|
-
bbox = bbox .copy () .multRight (
|
|
442
|
+
bbox = bbox .copy () .multRight (this .getModelMatrix () .copy () .inverse ());
|
|
444
443
|
|
|
445
444
|
const minDistance = Math .max (layerNode .getNavigationInfo () .getNearValue () * 2, this .getLookAtDistance (bbox));
|
|
446
445
|
|
|
@@ -462,14 +461,14 @@ X3DViewpointNode .prototype = Object .assign (Object .create (X3DBindableNode .p
|
|
|
462
461
|
this .easeInEaseOut ._easeInEaseOut = new Fields .MFVec2f (new Fields .SFVec2f (0, 1), new Fields .SFVec2f (1, 0));
|
|
463
462
|
|
|
464
463
|
const
|
|
465
|
-
translation =
|
|
466
|
-
direction =
|
|
464
|
+
translation = this ._positionOffset .getValue () .copy () .lerp (offset, factor),
|
|
465
|
+
direction = this .getPosition () .copy () .add (translation) .subtract (point);
|
|
467
466
|
|
|
468
|
-
let rotation =
|
|
467
|
+
let rotation = this ._orientationOffset .getValue () .copy () .multRight (new Rotation4 (this .getUserOrientation () .multVecRot (new Vector3 (0, 0, 1)), direction));
|
|
469
468
|
|
|
470
469
|
if (straighten)
|
|
471
470
|
{
|
|
472
|
-
rotation =
|
|
471
|
+
rotation = this .getOrientation () .copy () .inverse () .multRight (this .straightenHorizon (this .getOrientation () .copy () .multRight (rotation)));
|
|
473
472
|
}
|
|
474
473
|
|
|
475
474
|
this .positionInterpolator ._keyValue = new Fields .MFVec3f (this ._positionOffset, translation);
|
|
@@ -480,7 +479,7 @@ X3DViewpointNode .prototype = Object .assign (Object .create (X3DBindableNode .p
|
|
|
480
479
|
const relative = this .getRelativeTransformation (this);
|
|
481
480
|
|
|
482
481
|
this ._fieldOfViewScale = 1;
|
|
483
|
-
this ._centerOfRotationOffset =
|
|
482
|
+
this ._centerOfRotationOffset = point .copy () .subtract (this .getCenterOfRotation ());
|
|
484
483
|
this .nearDistance = Math .min (distance / 2, 0.125);
|
|
485
484
|
this .farDistance = this .nearDistance * this .getMaxFarValue () / 0.125;
|
|
486
485
|
|
|
@@ -498,7 +497,7 @@ X3DViewpointNode .prototype = Object .assign (Object .create (X3DBindableNode .p
|
|
|
498
497
|
|
|
499
498
|
this .easeInEaseOut ._easeInEaseOut = new Fields .MFVec2f (new Fields .SFVec2f (0, 1), new Fields .SFVec2f (1, 0));
|
|
500
499
|
|
|
501
|
-
const rotation =
|
|
500
|
+
const rotation = this .getOrientation () .copy () .inverse () .multRight (this .straightenHorizon (this .getUserOrientation ()));
|
|
502
501
|
|
|
503
502
|
this .positionInterpolator ._keyValue = new Fields .MFVec3f (this ._positionOffset, this ._positionOffset);
|
|
504
503
|
this .orientationInterpolator ._keyValue = new Fields .MFRotation (this ._orientationOffset, rotation);
|
|
@@ -516,7 +515,7 @@ X3DViewpointNode .prototype = Object .assign (Object .create (X3DBindableNode .p
|
|
|
516
515
|
const
|
|
517
516
|
localXAxis = new Vector3 (0, 0, 0),
|
|
518
517
|
localZAxis = new Vector3 (0, 0, 0),
|
|
519
|
-
rotation = new Rotation4 (
|
|
518
|
+
rotation = new Rotation4 ();
|
|
520
519
|
|
|
521
520
|
return function (orientation, upVector = this .getUpVector (true))
|
|
522
521
|
{
|
|
@@ -192,7 +192,7 @@ PointPickSensor .prototype = Object .assign (Object .create (X3DPickSensorNode .
|
|
|
192
192
|
transform = new Ammo .btTransform (),
|
|
193
193
|
localScaling = new Ammo .btVector3 (),
|
|
194
194
|
translation = new Vector3 (0, 0, 0),
|
|
195
|
-
rotation = new Rotation4 (
|
|
195
|
+
rotation = new Rotation4 (),
|
|
196
196
|
scale = new Vector3 (1, 1, 1),
|
|
197
197
|
pickedPoint = new Fields .MFVec3f ();
|
|
198
198
|
|
|
@@ -119,7 +119,7 @@ CylinderSensor .prototype = Object .assign (Object .create (X3DDragSensorNode .p
|
|
|
119
119
|
this .szNormal = null;
|
|
120
120
|
this .behind = false;
|
|
121
121
|
this .fromVector = new Vector3 (0, 0, 0);
|
|
122
|
-
this .startOffset = new Rotation4 (
|
|
122
|
+
this .startOffset = new Rotation4 ();
|
|
123
123
|
},
|
|
124
124
|
isBehind: function (hitRay, hitPoint)
|
|
125
125
|
{
|
|
@@ -129,7 +129,7 @@ CylinderSensor .prototype = Object .assign (Object .create (X3DDragSensorNode .p
|
|
|
129
129
|
|
|
130
130
|
this .cylinder .intersectsLine (hitRay, enter, exit);
|
|
131
131
|
|
|
132
|
-
return
|
|
132
|
+
return hitPoint .distance (enter) > hitPoint .distance (exit);
|
|
133
133
|
},
|
|
134
134
|
getTrackPoint: function (hitRay, trackPoint)
|
|
135
135
|
{
|
|
@@ -138,7 +138,7 @@ CylinderSensor .prototype = Object .assign (Object .create (X3DDragSensorNode .p
|
|
|
138
138
|
this .zPlane .intersectsLine (hitRay, zPoint);
|
|
139
139
|
|
|
140
140
|
const
|
|
141
|
-
axisPoint =
|
|
141
|
+
axisPoint = zPoint .copy () .add (this .cylinder .axis .getPerpendicularVectorToPoint (zPoint, new Vector3 (0, 0, 0))),
|
|
142
142
|
distance = this .sxPlane .getDistanceToPoint (zPoint) / this .cylinder .radius,
|
|
143
143
|
section = Math .floor ((distance + 1) / 2);
|
|
144
144
|
|
|
@@ -155,7 +155,7 @@ CylinderSensor .prototype = Object .assign (Object .create (X3DDragSensorNode .p
|
|
|
155
155
|
},
|
|
156
156
|
getAngle: function (rotation)
|
|
157
157
|
{
|
|
158
|
-
if (
|
|
158
|
+
if (rotation .getAxis (new Vector3 (0, 0, 0)) .dot (this .cylinder .axis .direction) > 0)
|
|
159
159
|
return rotation .angle;
|
|
160
160
|
|
|
161
161
|
else
|
|
@@ -183,7 +183,7 @@ CylinderSensor .prototype = Object .assign (Object .create (X3DDragSensorNode .p
|
|
|
183
183
|
radius = axis .getPerpendicularVectorToPoint (hitPoint, new Vector3 (0, 0, 0)) .magnitude ();
|
|
184
184
|
|
|
185
185
|
this .cylinder = new Cylinder3 (axis, radius);
|
|
186
|
-
this .disk = Math .abs (
|
|
186
|
+
this .disk = Math .abs (cameraBack .dot (yAxis)) > Math .cos (this ._diskAngle .getValue ());
|
|
187
187
|
this .behind = this .isBehind (hitRay, hitPoint);
|
|
188
188
|
this .yPlane = new Plane3 (hitPoint, yAxis); // Sensor aligned y-plane
|
|
189
189
|
this .zPlane = new Plane3 (hitPoint, cameraBack); // Screen aligned z-plane
|
|
@@ -191,10 +191,10 @@ CylinderSensor .prototype = Object .assign (Object .create (X3DDragSensorNode .p
|
|
|
191
191
|
// Compute normal like in Billboard with yAxis as axis of rotation.
|
|
192
192
|
const
|
|
193
193
|
billboardToViewer = this .invModelViewMatrix .origin,
|
|
194
|
-
sxNormal =
|
|
194
|
+
sxNormal = yAxis .copy () .cross (billboardToViewer) .normalize ();
|
|
195
195
|
|
|
196
196
|
this .sxPlane = new Plane3 (new Vector3 (0, 0, 0), sxNormal); // Billboarded special x-plane made parallel to sensors axis.
|
|
197
|
-
this .szNormal =
|
|
197
|
+
this .szNormal = sxNormal .copy () .cross (yAxis) .normalize (); // Billboarded special z-normal made parallel to sensors axis.
|
|
198
198
|
|
|
199
199
|
const trackPoint = new Vector3 (0, 0, 0);
|
|
200
200
|
|
|
@@ -268,7 +268,7 @@ PlaneSensor .prototype = Object .assign (Object .create (X3DDragSensorNode .prot
|
|
|
268
268
|
{
|
|
269
269
|
const
|
|
270
270
|
axisRotation = this ._axisRotation .getValue (),
|
|
271
|
-
translation =
|
|
271
|
+
translation = axisRotation .copy () .inverse () .multVecRot (endPoint .add (this .startOffset) .subtract (this .startPoint));
|
|
272
272
|
|
|
273
273
|
// X component
|
|
274
274
|
|
|
@@ -107,7 +107,7 @@ SphereSensor .prototype = Object .assign (Object .create (X3DDragSensorNode .pro
|
|
|
107
107
|
this .behind = false;
|
|
108
108
|
this .fromVector = new Vector3 (0, 0, 0);
|
|
109
109
|
this .startPoint = new Vector3 (0, 0, 0);
|
|
110
|
-
this .startOffset = new Rotation4 (
|
|
110
|
+
this .startOffset = new Rotation4 ();
|
|
111
111
|
},
|
|
112
112
|
getTrackPoint: function (hitRay, trackPoint, behind)
|
|
113
113
|
{
|
|
@@ -115,7 +115,7 @@ SphereSensor .prototype = Object .assign (Object .create (X3DDragSensorNode .pro
|
|
|
115
115
|
|
|
116
116
|
if (this .sphere .intersectsLine (hitRay, trackPoint, exit))
|
|
117
117
|
{
|
|
118
|
-
if ((
|
|
118
|
+
if ((hitRay .point .distance (exit) < hitRay .point .distance (trackPoint)) - behind)
|
|
119
119
|
trackPoint .assign (exit);
|
|
120
120
|
|
|
121
121
|
return true;
|
|
@@ -173,7 +173,7 @@ SphereSensor .prototype = Object .assign (Object .create (X3DDragSensorNode .pro
|
|
|
173
173
|
|
|
174
174
|
this .zPlane .intersectsLine (hitRay, tangentPoint);
|
|
175
175
|
|
|
176
|
-
hitRay .set (tangentPoint,
|
|
176
|
+
hitRay .set (tangentPoint, this .sphere .center .copy () .subtract (tangentPoint) .normalize ());
|
|
177
177
|
|
|
178
178
|
//console .log (hitRay .toString ());
|
|
179
179
|
|
|
@@ -183,12 +183,12 @@ SphereSensor .prototype = Object .assign (Object .create (X3DDragSensorNode .pro
|
|
|
183
183
|
|
|
184
184
|
const
|
|
185
185
|
triNormal = Triangle3 .normal (this .sphere .center, trackPoint, this .startPoint, new Vector3 (0, 0, 0)),
|
|
186
|
-
dirFromCenter =
|
|
187
|
-
normal =
|
|
186
|
+
dirFromCenter = trackPoint .copy () .subtract (this .sphere .center) .normalize (),
|
|
187
|
+
normal = triNormal .copy () .cross (dirFromCenter) .normalize ();
|
|
188
188
|
|
|
189
|
-
const point1 =
|
|
189
|
+
const point1 = trackPoint .copy () .subtract (normal .multiply (tangentPoint .copy () .subtract (trackPoint) .magnitude ()));
|
|
190
190
|
|
|
191
|
-
hitRay .set (point1,
|
|
191
|
+
hitRay .set (point1, this .sphere .center .copy () .subtract (point1) .normalize ());
|
|
192
192
|
|
|
193
193
|
this .getTrackPoint (hitRay, trackPoint, false);
|
|
194
194
|
}
|
|
@@ -196,13 +196,13 @@ SphereSensor .prototype = Object .assign (Object .create (X3DDragSensorNode .pro
|
|
|
196
196
|
this ._trackPoint_changed = trackPoint;
|
|
197
197
|
|
|
198
198
|
const
|
|
199
|
-
toVector =
|
|
199
|
+
toVector = trackPoint .copy () .subtract (this .sphere .center),
|
|
200
200
|
rotation = new Rotation4 (this .fromVector, toVector);
|
|
201
201
|
|
|
202
202
|
if (this .behind)
|
|
203
203
|
rotation .inverse ();
|
|
204
204
|
|
|
205
|
-
this ._rotation_changed =
|
|
205
|
+
this ._rotation_changed = this .startOffset .copy () .multRight (rotation);
|
|
206
206
|
},
|
|
207
207
|
});
|
|
208
208
|
|
|
@@ -90,7 +90,7 @@ function X3DGeometryNode (executionContext)
|
|
|
90
90
|
|
|
91
91
|
this .min = new Vector3 (0, 0, 0);
|
|
92
92
|
this .max = new Vector3 (0, 0, 0);
|
|
93
|
-
this .bbox =
|
|
93
|
+
this .bbox = Box3 .Extents (this .min, this .max);
|
|
94
94
|
this .solid = true;
|
|
95
95
|
this .primitiveMode = browser .getContext () .TRIANGLES;
|
|
96
96
|
this .geometryType = 3;
|
|
@@ -223,7 +223,7 @@ DoubleAxisHingeJoint .prototype = Object .assign (Object .create (X3DRigidJointN
|
|
|
223
223
|
localAnchorPoint1 = new Vector3 (0, 0, 0),
|
|
224
224
|
localAxis1 = new Vector3 (0, 0, 0),
|
|
225
225
|
difference = new Matrix4 (),
|
|
226
|
-
rotation = new Rotation4 (
|
|
226
|
+
rotation = new Rotation4 ();
|
|
227
227
|
|
|
228
228
|
return function ()
|
|
229
229
|
{
|
|
@@ -253,7 +253,7 @@ DoubleAxisHingeJoint .prototype = Object .assign (Object .create (X3DRigidJointN
|
|
|
253
253
|
localAnchorPoint2 = new Vector3 (0, 0, 0),
|
|
254
254
|
localAxis2 = new Vector3 (0, 0, 0),
|
|
255
255
|
difference = new Matrix4 (),
|
|
256
|
-
rotation = new Rotation4 (
|
|
256
|
+
rotation = new Rotation4 ();
|
|
257
257
|
|
|
258
258
|
return function ()
|
|
259
259
|
{
|
|
@@ -471,7 +471,7 @@ RigidBody .prototype = Object .assign (Object .create (X3DNode .prototype),
|
|
|
471
471
|
transform = new Ammo .btTransform (),
|
|
472
472
|
position = new Vector3 (0, 0, 0),
|
|
473
473
|
quaternion = new Quaternion (0, 0, 0, 1),
|
|
474
|
-
orientation = new Rotation4 (
|
|
474
|
+
orientation = new Rotation4 (),
|
|
475
475
|
linearVelocity = new Vector3 (0, 0, 0),
|
|
476
476
|
angularVelocity = new Vector3 (0, 0, 0);
|
|
477
477
|
|
|
@@ -216,7 +216,7 @@ SingleAxisHingeJoint .prototype = Object .assign (Object .create (X3DRigidJointN
|
|
|
216
216
|
var
|
|
217
217
|
localAnchorPoint2 = new Vector3 (0, 0, 0),
|
|
218
218
|
difference = new Matrix4 (),
|
|
219
|
-
rotation = new Rotation4 (
|
|
219
|
+
rotation = new Rotation4 ();
|
|
220
220
|
|
|
221
221
|
return function ()
|
|
222
222
|
{
|
|
@@ -115,7 +115,7 @@ SliderJoint .prototype = Object .assign (Object .create (X3DRigidJointNode .prot
|
|
|
115
115
|
addJoint: (function ()
|
|
116
116
|
{
|
|
117
117
|
var
|
|
118
|
-
axisRotation = new Rotation4 (
|
|
118
|
+
axisRotation = new Rotation4 (),
|
|
119
119
|
matrixA = new Matrix4 (),
|
|
120
120
|
matrixB = new Matrix4 (),
|
|
121
121
|
origin = new Ammo .btVector3 (0, 0, 0),
|
|
@@ -141,8 +141,8 @@ SliderJoint .prototype = Object .assign (Object .create (X3DRigidJointNode .prot
|
|
|
141
141
|
|
|
142
142
|
axisRotation .setFromToVec (Vector3 .xAxis, this ._axis .getValue ());
|
|
143
143
|
|
|
144
|
-
matrixA .set (this .getBody1 () ._position .getValue (),
|
|
145
|
-
matrixB .set (this .getBody1 () ._position .getValue (),
|
|
144
|
+
matrixA .set (this .getBody1 () ._position .getValue (), this .getBody1 () ._orientation .getValue () .copy () .multRight (axisRotation));
|
|
145
|
+
matrixB .set (this .getBody1 () ._position .getValue (), this .getBody1 () ._orientation .getValue () .copy () .multRight (axisRotation));
|
|
146
146
|
|
|
147
147
|
origin .setValue (matrixA [12], matrixA [13], matrixA [14]);
|
|
148
148
|
|
|
@@ -118,7 +118,7 @@ X3DTextureProjectorNode .prototype = Object .assign (Object .create (X3DChildNod
|
|
|
118
118
|
localXAxis = new Vector3 (0, 0, 0),
|
|
119
119
|
localZAxis = new Vector3 (0, 0, 0),
|
|
120
120
|
upVector = new Vector3 (0, 0, 0),
|
|
121
|
-
rotation = new Rotation4 (
|
|
121
|
+
rotation = new Rotation4 ();
|
|
122
122
|
|
|
123
123
|
return function (orientation)
|
|
124
124
|
{
|
|
@@ -940,65 +940,59 @@ X3DExecutionContext .prototype = Object .assign (Object .create (X3DBaseNode .pr
|
|
|
940
940
|
for (const key of Reflect .ownKeys (X3DExecutionContext .prototype))
|
|
941
941
|
Object .defineProperty (X3DExecutionContext .prototype, key, { enumerable: false });
|
|
942
942
|
|
|
943
|
-
Object .
|
|
943
|
+
Object .defineProperties (X3DExecutionContext .prototype,
|
|
944
944
|
{
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
{
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
}
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
{
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
}
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
});
|
|
997
|
-
|
|
998
|
-
Object .defineProperty (X3DExecutionContext .prototype, "routes",
|
|
999
|
-
{
|
|
1000
|
-
get: X3DExecutionContext .prototype .getRoutes,
|
|
1001
|
-
enumerable: true,
|
|
945
|
+
specificationVersion:
|
|
946
|
+
{
|
|
947
|
+
get: X3DExecutionContext .prototype .getSpecificationVersion,
|
|
948
|
+
enumerable: true,
|
|
949
|
+
},
|
|
950
|
+
encoding:
|
|
951
|
+
{
|
|
952
|
+
get: X3DExecutionContext .prototype .getEncoding,
|
|
953
|
+
enumerable: true,
|
|
954
|
+
},
|
|
955
|
+
profile:
|
|
956
|
+
{
|
|
957
|
+
get: X3DExecutionContext .prototype .getProfile,
|
|
958
|
+
enumerable: true,
|
|
959
|
+
},
|
|
960
|
+
components:
|
|
961
|
+
{
|
|
962
|
+
get: X3DExecutionContext .prototype .getComponents,
|
|
963
|
+
enumerable: true,
|
|
964
|
+
},
|
|
965
|
+
worldURL:
|
|
966
|
+
{
|
|
967
|
+
get: X3DExecutionContext .prototype .getWorldURL,
|
|
968
|
+
enumerable: true,
|
|
969
|
+
},
|
|
970
|
+
units:
|
|
971
|
+
{
|
|
972
|
+
get: X3DExecutionContext .prototype .getUnits,
|
|
973
|
+
enumerable: true,
|
|
974
|
+
},
|
|
975
|
+
rootNodes:
|
|
976
|
+
{
|
|
977
|
+
get: X3DExecutionContext .prototype .getRootNodes,
|
|
978
|
+
set: X3DExecutionContext .prototype .setRootNodes,
|
|
979
|
+
enumerable: true,
|
|
980
|
+
},
|
|
981
|
+
protos:
|
|
982
|
+
{
|
|
983
|
+
get: X3DExecutionContext .prototype .getProtoDeclarations,
|
|
984
|
+
enumerable: true,
|
|
985
|
+
},
|
|
986
|
+
externprotos:
|
|
987
|
+
{
|
|
988
|
+
get: X3DExecutionContext .prototype .getExternProtoDeclarations,
|
|
989
|
+
enumerable: true,
|
|
990
|
+
},
|
|
991
|
+
routes:
|
|
992
|
+
{
|
|
993
|
+
get: X3DExecutionContext .prototype .getRoutes,
|
|
994
|
+
enumerable: true,
|
|
995
|
+
},
|
|
1002
996
|
});
|
|
1003
997
|
|
|
1004
998
|
export default X3DExecutionContext;
|
|
@@ -170,22 +170,24 @@ X3DExportedNode .prototype = Object .assign (Object .create (X3DObject .prototyp
|
|
|
170
170
|
for (const key of Reflect .ownKeys (X3DExportedNode .prototype))
|
|
171
171
|
Object .defineProperty (X3DExportedNode .prototype, key, { enumerable: false });
|
|
172
172
|
|
|
173
|
-
Object .
|
|
173
|
+
Object .defineProperties (X3DExportedNode .prototype,
|
|
174
174
|
{
|
|
175
|
-
|
|
175
|
+
exportedName:
|
|
176
176
|
{
|
|
177
|
-
|
|
177
|
+
get: function ()
|
|
178
|
+
{
|
|
179
|
+
return SFNodeCache .get (this [_exportedName]);
|
|
180
|
+
},
|
|
181
|
+
enumerable: true,
|
|
178
182
|
},
|
|
179
|
-
|
|
180
|
-
});
|
|
181
|
-
|
|
182
|
-
Object .defineProperty (X3DExportedNode .prototype, "localNode",
|
|
183
|
-
{
|
|
184
|
-
get: function ()
|
|
183
|
+
localNode:
|
|
185
184
|
{
|
|
186
|
-
|
|
185
|
+
get: function ()
|
|
186
|
+
{
|
|
187
|
+
return SFNodeCache .get (this [_localNode]);
|
|
188
|
+
},
|
|
189
|
+
enumerable: true,
|
|
187
190
|
},
|
|
188
|
-
enumerable: true,
|
|
189
191
|
});
|
|
190
192
|
|
|
191
193
|
export default X3DExportedNode;
|
|
@@ -513,40 +513,40 @@ X3DImportedNode .prototype = Object .assign (Object .create (X3DNode .prototype)
|
|
|
513
513
|
for (const key of Reflect .ownKeys (X3DImportedNode .prototype))
|
|
514
514
|
Object .defineProperty (X3DImportedNode .prototype, key, { enumerable: false });
|
|
515
515
|
|
|
516
|
-
Object .
|
|
516
|
+
Object .defineProperties (X3DImportedNode .prototype,
|
|
517
517
|
{
|
|
518
|
-
|
|
518
|
+
inlineNode:
|
|
519
519
|
{
|
|
520
|
-
|
|
520
|
+
get: function ()
|
|
521
|
+
{
|
|
522
|
+
return SFNodeCache .get (this [_inlineNode]);
|
|
523
|
+
},
|
|
524
|
+
enumerable: true,
|
|
521
525
|
},
|
|
522
|
-
|
|
523
|
-
});
|
|
524
|
-
|
|
525
|
-
Object .defineProperty (X3DImportedNode .prototype, "exportedName",
|
|
526
|
-
{
|
|
527
|
-
get: function ()
|
|
526
|
+
exportedName:
|
|
528
527
|
{
|
|
529
|
-
|
|
528
|
+
get: function ()
|
|
529
|
+
{
|
|
530
|
+
return this [_exportedName];
|
|
531
|
+
},
|
|
532
|
+
enumerable: true,
|
|
530
533
|
},
|
|
531
|
-
|
|
532
|
-
});
|
|
533
|
-
|
|
534
|
-
Object .defineProperty (X3DImportedNode .prototype, "exportedNode",
|
|
535
|
-
{
|
|
536
|
-
get: function ()
|
|
534
|
+
exportedNode:
|
|
537
535
|
{
|
|
538
|
-
|
|
536
|
+
get: function ()
|
|
537
|
+
{
|
|
538
|
+
return this [_inlineNode] .getInternalScene () .getExportedNode (this [_exportedName]);
|
|
539
|
+
},
|
|
540
|
+
enumerable: true,
|
|
539
541
|
},
|
|
540
|
-
|
|
541
|
-
});
|
|
542
|
-
|
|
543
|
-
Object .defineProperty (X3DImportedNode .prototype, "importedName",
|
|
544
|
-
{
|
|
545
|
-
get: function ()
|
|
542
|
+
importedName:
|
|
546
543
|
{
|
|
547
|
-
|
|
544
|
+
get: function ()
|
|
545
|
+
{
|
|
546
|
+
return this [_importedName];
|
|
547
|
+
},
|
|
548
|
+
enumerable: true,
|
|
548
549
|
},
|
|
549
|
-
enumerable: true,
|
|
550
550
|
});
|
|
551
551
|
|
|
552
552
|
export default X3DImportedNode;
|