x_ite 8.8.2 → 8.8.4
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/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 +29 -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 +22 -22
- package/dist/assets/components/Geometry2D.min.js +1 -1
- package/dist/assets/components/Geospatial.js +48 -48
- package/dist/assets/components/Geospatial.min.js +1 -1
- package/dist/assets/components/HAnim.js +19 -19
- 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 +32 -32
- package/dist/assets/components/Layout.min.js +1 -1
- package/dist/assets/components/NURBS.js +35 -35
- package/dist/assets/components/NURBS.min.js +1 -1
- package/dist/assets/components/ParticleSystems.js +33 -33
- package/dist/assets/components/ParticleSystems.min.js +1 -1
- package/dist/assets/components/Picking.js +32 -35
- package/dist/assets/components/Picking.min.js +1 -1
- package/dist/assets/components/RigidBodyPhysics.js +47 -56
- package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
- package/dist/assets/components/Scripting.js +46 -56
- package/dist/assets/components/Scripting.min.js +1 -1
- package/dist/assets/components/Text.js +26 -26
- package/dist/assets/components/Text.min.js +1 -1
- package/dist/assets/components/TextureProjector.js +16 -16
- package/dist/assets/components/TextureProjector.min.js +1 -1
- package/dist/assets/components/Texturing3D.js +37 -37
- package/dist/assets/components/Texturing3D.min.js +1 -1
- package/dist/assets/components/VolumeRendering.js +18 -18
- 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 +1762 -1827
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.zip +0 -0
- package/docs/_config.yml +1 -1
- package/package.json +2 -2
- package/src/bookmarks.js +1 -1
- package/src/lib/jquery.js +8 -0
- package/src/lib/nurbs/src/utils/create-accessors.js +4 -4
- package/src/lib/nurbs/src/utils/variable.js +1 -1
- package/src/shim.js +1 -1
- package/src/standard/Math/Algorithms/Bezier.js +2 -2
- package/src/standard/Math/Geometry/Box2.js +4 -4
- package/src/standard/Math/Geometry/Box3.js +8 -8
- package/src/standard/Math/Geometry/Camera.js +1 -1
- package/src/standard/Math/Geometry/Line2.js +2 -2
- package/src/standard/Math/Geometry/Line3.js +4 -4
- package/src/standard/Math/Geometry/Sphere3.js +1 -1
- package/src/standard/Math/Geometry/Triangle3.js +2 -2
- package/src/standard/Math/Geometry/ViewVolume.js +10 -10
- package/src/standard/Math/Numbers/Matrix2.js +2 -2
- package/src/standard/Math/Numbers/Matrix3.js +10 -10
- package/src/standard/Math/Numbers/Matrix4.js +12 -12
- package/src/standard/Math/Numbers/Quaternion.js +2 -2
- package/src/standard/Math/Numbers/Rotation4.js +2 -2
- package/src/standard/Math/Numbers/Vector3.js +1 -1
- package/src/standard/Utility/MapUtilities.js +2 -2
- package/src/x_ite/Base/Events.js +6 -33
- package/src/x_ite/Base/FieldArray.js +1 -1
- package/src/x_ite/Base/FieldDefinitionArray.js +1 -1
- package/src/x_ite/Base/X3DArrayField.js +1 -1
- package/src/x_ite/Base/X3DBaseNode.js +58 -69
- package/src/x_ite/Base/X3DChildObject.js +46 -14
- package/src/x_ite/Base/X3DConstants.js +1 -1
- package/src/x_ite/Base/X3DField.js +4 -6
- package/src/x_ite/Base/X3DFieldDefinition.js +1 -1
- package/src/x_ite/Base/X3DInfoArray.js +1 -1
- package/src/x_ite/Base/X3DObject.js +5 -5
- package/src/x_ite/Base/X3DObjectArrayField.js +1 -1
- package/src/x_ite/Base/X3DTypedArrayField.js +1 -1
- package/src/x_ite/Browser/Core/BrowserOptions.js +7 -3
- package/src/x_ite/Browser/Core/BrowserTimings.js +1 -1
- package/src/x_ite/Browser/Core/ContextMenu.js +1 -12
- package/src/x_ite/Browser/Core/X3DCoreContext.js +1 -2
- package/src/x_ite/Browser/Geometry2D/Disk2DOptions.js +1 -1
- package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolator.js +2 -2
- package/src/x_ite/Browser/Interpolation/CatmullRomSplineInterpolatorTemplate.js +1 -1
- package/src/x_ite/Browser/Interpolation/SquatInterpolator.js +1 -1
- package/src/x_ite/Browser/Layout/ScreenText.js +4 -4
- package/src/x_ite/Browser/Layout/X3DLayoutContext.js +1 -1
- package/src/x_ite/Browser/NURBS/NURBS.js +3 -3
- package/src/x_ite/Browser/Navigation/ExamineViewer.js +9 -13
- package/src/x_ite/Browser/Navigation/LookAtViewer.js +4 -7
- package/src/x_ite/Browser/Navigation/WalkViewer.js +1 -1
- package/src/x_ite/Browser/Navigation/X3DFlyViewer.js +5 -6
- package/src/x_ite/Browser/Navigation/X3DViewer.js +2 -2
- package/src/x_ite/Browser/Networking/URLs.js +17 -9
- package/src/x_ite/Browser/Networking/X3DNetworkingContext.js +0 -2
- package/src/x_ite/Browser/Picking/VolumePicker.js +2 -2
- package/src/x_ite/Browser/Text/PolygonText.js +2 -2
- package/src/x_ite/Browser/Texturing3D/DICOMParser.js +3 -3
- package/src/x_ite/Browser/Texturing3D/NRRDParser.js +2 -2
- package/src/x_ite/Browser/Time/X3DTimeContext.js +1 -1
- package/src/x_ite/Browser/VERSION.js +1 -1
- package/src/x_ite/Browser/X3DBrowser.js +148 -67
- package/src/x_ite/Browser/X3DBrowserContext.js +52 -16
- package/src/x_ite/Components/Core/X3DNode.js +21 -2
- package/src/x_ite/Components/Core/X3DPrototypeInstance.js +38 -42
- package/src/x_ite/Components/CubeMapTexturing/GeneratedCubeMapTexture.js +2 -2
- package/src/x_ite/Components/CubeMapTexturing/X3DEnvironmentTextureNode.js +1 -1
- package/src/x_ite/Components/EnvironmentalEffects/X3DBackgroundNode.js +4 -4
- package/src/x_ite/Components/EnvironmentalEffects/X3DFogObject.js +1 -1
- package/src/x_ite/Components/EnvironmentalSensor/ProximitySensor.js +2 -2
- package/src/x_ite/Components/EnvironmentalSensor/TransformSensor.js +2 -2
- package/src/x_ite/Components/EnvironmentalSensor/VisibilitySensor.js +1 -1
- package/src/x_ite/Components/Followers/X3DFollowerNode.js +1 -1
- package/src/x_ite/Components/Geometry2D/ArcClose2D.js +1 -1
- package/src/x_ite/Components/Geometry2D/Rectangle2D.js +1 -1
- package/src/x_ite/Components/Geometry3D/Box.js +1 -1
- package/src/x_ite/Components/Geometry3D/Extrusion.js +3 -3
- package/src/x_ite/Components/Geometry3D/IndexedFaceSet.js +3 -3
- package/src/x_ite/Components/Geospatial/GeoCoordinate.js +6 -6
- package/src/x_ite/Components/Geospatial/GeoPositionInterpolator.js +1 -1
- package/src/x_ite/Components/Geospatial/GeoTouchSensor.js +1 -1
- package/src/x_ite/Components/Geospatial/GeoViewpoint.js +7 -7
- package/src/x_ite/Components/Grouping/StaticGroup.js +1 -1
- package/src/x_ite/Components/Grouping/X3DBoundedObject.js +2 -2
- package/src/x_ite/Components/HAnim/HAnimHumanoid.js +1 -1
- package/src/x_ite/Components/Interpolation/ColorInterpolator.js +1 -1
- package/src/x_ite/Components/Interpolation/NormalInterpolator.js +1 -1
- package/src/x_ite/Components/Interpolation/OrientationInterpolator.js +1 -1
- package/src/x_ite/Components/Interpolation/PositionInterpolator.js +1 -1
- package/src/x_ite/Components/Interpolation/PositionInterpolator2D.js +1 -1
- package/src/x_ite/Components/Layering/X3DLayerNode.js +1 -1
- package/src/x_ite/Components/Lighting/X3DLightNode.js +1 -1
- package/src/x_ite/Components/NURBS/NurbsSurfaceInterpolator.js +1 -1
- package/src/x_ite/Components/NURBS/X3DNurbsSurfaceGeometryNode.js +2 -2
- package/src/x_ite/Components/Navigation/Billboard.js +1 -1
- package/src/x_ite/Components/Navigation/LOD.js +2 -2
- package/src/x_ite/Components/Navigation/OrthoViewpoint.js +1 -1
- package/src/x_ite/Components/Navigation/Viewpoint.js +1 -1
- package/src/x_ite/Components/Navigation/X3DViewpointNode.js +3 -3
- package/src/x_ite/Components/Networking/Inline.js +0 -4
- package/src/x_ite/Components/ParticleSystems/ForcePhysicsModel.js +1 -1
- package/src/x_ite/Components/ParticleSystems/ParticleSystem.js +2 -2
- package/src/x_ite/Components/ParticleSystems/PointEmitter.js +1 -1
- package/src/x_ite/Components/ParticleSystems/PolylineEmitter.js +2 -2
- package/src/x_ite/Components/ParticleSystems/SurfaceEmitter.js +1 -1
- package/src/x_ite/Components/ParticleSystems/VolumeEmitter.js +2 -2
- package/src/x_ite/Components/ParticleSystems/WindPhysicsModel.js +1 -1
- package/src/x_ite/Components/Picking/LinePickSensor.js +1 -1
- package/src/x_ite/Components/Picking/PickableGroup.js +1 -1
- package/src/x_ite/Components/Picking/PointPickSensor.js +2 -2
- package/src/x_ite/Components/Picking/PrimitivePickSensor.js +1 -1
- package/src/x_ite/Components/Picking/VolumePickSensor.js +1 -1
- package/src/x_ite/Components/Picking/X3DPickSensorNode.js +6 -9
- package/src/x_ite/Components/PointingDeviceSensor/X3DTouchSensorNode.js +1 -1
- package/src/x_ite/Components/Rendering/X3DComposedGeometryNode.js +1 -1
- package/src/x_ite/Components/Rendering/X3DCoordinateNode.js +2 -2
- package/src/x_ite/Components/Rendering/X3DGeometryNode.js +8 -11
- package/src/x_ite/Components/Rendering/X3DLineGeometryNode.js +2 -2
- package/src/x_ite/Components/RigidBodyPhysics/BallJoint.js +2 -2
- package/src/x_ite/Components/RigidBodyPhysics/CollidableShape.js +3 -3
- package/src/x_ite/Components/RigidBodyPhysics/CollisionCollection.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/CollisionSensor.js +5 -14
- package/src/x_ite/Components/RigidBodyPhysics/DoubleAxisHingeJoint.js +3 -3
- package/src/x_ite/Components/RigidBodyPhysics/RigidBody.js +9 -9
- package/src/x_ite/Components/RigidBodyPhysics/RigidBodyCollection.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/SingleAxisHingeJoint.js +3 -3
- package/src/x_ite/Components/RigidBodyPhysics/SliderJoint.js +1 -1
- package/src/x_ite/Components/RigidBodyPhysics/X3DNBodyCollidableNode.js +1 -1
- package/src/x_ite/Components/Scripting/Script.js +9 -19
- package/src/x_ite/Components/Shaders/ShaderPart.js +2 -2
- package/src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js +385 -382
- package/src/x_ite/Components/Shape/Appearance.js +1 -1
- package/src/x_ite/Components/Shape/Material.js +1 -1
- package/src/x_ite/Components/Shape/PhysicalMaterial.js +1 -1
- package/src/x_ite/Components/Shape/X3DOneSidedMaterialNode.js +1 -1
- package/src/x_ite/Components/Sound/Sound.js +2 -2
- package/src/x_ite/Components/TextureProjector/X3DTextureProjectorNode.js +2 -2
- package/src/x_ite/Components/Texturing/MultiTexture.js +3 -3
- package/src/x_ite/Components/Texturing/TextureCoordinateGenerator.js +1 -1
- package/src/x_ite/Components/Texturing/TextureProperties.js +4 -4
- package/src/x_ite/Components/Texturing/TextureTransform.js +1 -1
- package/src/x_ite/Components/Texturing/X3DSingleTextureNode.js +2 -2
- package/src/x_ite/Components/Texturing3D/PixelTexture3D.js +1 -1
- package/src/x_ite/Components/Texturing3D/TextureTransform3D.js +1 -1
- package/src/x_ite/Components.js +1 -20
- package/src/x_ite/Configuration/AbstractNodesArray.js +1 -1
- package/src/x_ite/Configuration/ComponentInfo.js +1 -1
- package/src/x_ite/Configuration/ComponentInfoArray.js +1 -1
- package/src/x_ite/Configuration/ConcreteNodesArray.js +1 -1
- package/src/x_ite/Configuration/ProfileInfo.js +1 -1
- package/src/x_ite/Configuration/ProfileInfoArray.js +1 -1
- package/src/x_ite/Configuration/UnitInfo.js +1 -1
- package/src/x_ite/Configuration/UnitInfoArray.js +1 -1
- package/src/x_ite/Execution/BindableList.js +1 -1
- package/src/x_ite/Execution/BindableStack.js +1 -1
- package/src/x_ite/Execution/ExportedNodesArray.js +1 -1
- package/src/x_ite/Execution/ImportedNodesArray.js +1 -1
- package/src/x_ite/Execution/NamedNodesArray.js +1 -1
- package/src/x_ite/Execution/X3DExecutionContext.js +9 -11
- package/src/x_ite/Execution/X3DExportedNode.js +1 -1
- package/src/x_ite/Execution/X3DImportedNode.js +1 -1
- package/src/x_ite/Execution/X3DScene.js +2 -6
- package/src/x_ite/Execution/X3DWorld.js +1 -2
- package/src/x_ite/{Browser/Networking/Features.js → Features.js} +9 -2
- package/src/x_ite/Fields/ArrayFields.js +9 -51
- package/src/x_ite/Fields/SFBool.js +1 -1
- package/src/x_ite/Fields/SFColor.js +2 -2
- package/src/x_ite/Fields/SFColorRGBA.js +2 -2
- package/src/x_ite/Fields/SFDouble.js +1 -1
- package/src/x_ite/Fields/SFFloat.js +1 -1
- package/src/x_ite/Fields/SFImage.js +2 -2
- package/src/x_ite/Fields/SFInt32.js +1 -1
- package/src/x_ite/Fields/SFMatrix3.js +1 -1
- package/src/x_ite/Fields/SFMatrix4.js +1 -1
- package/src/x_ite/Fields/SFNode.js +3 -25
- package/src/x_ite/Fields/SFNodeCache.js +24 -3
- package/src/x_ite/Fields/SFRotation.js +1 -1
- package/src/x_ite/Fields/SFString.js +1 -1
- package/src/x_ite/Fields/SFTime.js +1 -1
- package/src/x_ite/Fields/SFVec2.js +1 -1
- package/src/x_ite/Fields/SFVec3.js +1 -1
- package/src/x_ite/Fields/SFVec4.js +1 -1
- package/src/x_ite/InputOutput/FileLoader.js +1 -1
- package/src/x_ite/InputOutput/Generator.js +8 -8
- package/src/x_ite/Parser/GLTF2Parser.js +5 -5
- package/src/x_ite/Parser/HTMLSupport.js +3 -0
- package/src/x_ite/Parser/SVGParser.js +2 -2
- package/src/x_ite/Parser/VRMLParser.js +1 -1
- package/src/x_ite/Parser/XMLParser.js +1 -1
- package/src/x_ite/Prototype/ExternProtoDeclarationArray.js +1 -1
- package/src/x_ite/Prototype/ProtoDeclarationArray.js +1 -1
- package/src/x_ite/Prototype/X3DExternProtoDeclaration.js +1 -3
- package/src/x_ite/Prototype/X3DProtoDeclaration.js +1 -2
- package/src/x_ite/Prototype/X3DProtoDeclarationNode.js +1 -2
- package/src/x_ite/Rendering/DependentRenderer.js +1 -1
- package/src/x_ite/Rendering/TextureBuffer.js +2 -2
- package/src/x_ite/Rendering/X3DRenderObject.js +11 -11
- package/src/x_ite/Routing/RouteArray.js +1 -1
- package/src/x_ite/Routing/X3DRoute.js +1 -1
- package/src/x_ite/X3D.js +2 -2
- package/src/x_ite.html +3 -3
- package/x_ite.min.html +3 -3
- package/src/x_ite/Base/X3DEventObject.js +0 -115
|
@@ -381,17 +381,6 @@ Object .assign (Object .setPrototypeOf (ContextMenu .prototype, X3DBaseNode .pro
|
|
|
381
381
|
$("<div></div>") .addClass ("x_ite-private-world-info-info") .text (line) .appendTo (div);
|
|
382
382
|
}
|
|
383
383
|
|
|
384
|
-
div .find ("a") .on ("click", function (event) { event .stopPropagation (); });
|
|
385
|
-
|
|
386
|
-
// Open external link in new tab.
|
|
387
|
-
div .find ("a[href^=http]") .each (function ()
|
|
388
|
-
{
|
|
389
|
-
if (this .href .indexOf (location .hostname) !== -1)
|
|
390
|
-
return;
|
|
391
|
-
|
|
392
|
-
$(this) .attr ("target", "_blank");
|
|
393
|
-
});
|
|
394
|
-
|
|
395
384
|
overlay .on ("click", function () { overlay .remove (); });
|
|
396
385
|
},
|
|
397
386
|
},
|
|
@@ -590,7 +579,7 @@ Object .assign (Object .setPrototypeOf (ContextMenu .prototype, X3DBaseNode .pro
|
|
|
590
579
|
// Display submenus on the left or right side.
|
|
591
580
|
// If the submenu is higher than vh, add scrollbars.
|
|
592
581
|
|
|
593
|
-
ul .find ("ul") .each (
|
|
582
|
+
ul .find ("ul") .each ((i, e) =>
|
|
594
583
|
{
|
|
595
584
|
e = $(e);
|
|
596
585
|
|
|
@@ -276,7 +276,6 @@ Object .assign (X3DCoreContext .prototype,
|
|
|
276
276
|
|
|
277
277
|
this [_privateScene] = new X3DScene (this);
|
|
278
278
|
|
|
279
|
-
this [_privateScene] .setPrivate (true);
|
|
280
279
|
this [_privateScene] .setLive (true);
|
|
281
280
|
this [_privateScene] .setup ();
|
|
282
281
|
|
|
@@ -427,7 +426,7 @@ Object .assign (X3DCoreContext .prototype,
|
|
|
427
426
|
|
|
428
427
|
return url;
|
|
429
428
|
},
|
|
430
|
-
callBrowserEventHandler: (
|
|
429
|
+
callBrowserEventHandler: (() =>
|
|
431
430
|
{
|
|
432
431
|
const build_in = new Set (["error", "load"]);
|
|
433
432
|
|
|
@@ -56,7 +56,7 @@ function CatmullRomSplineInterpolator ()
|
|
|
56
56
|
|
|
57
57
|
Object .assign (CatmullRomSplineInterpolator .prototype,
|
|
58
58
|
{
|
|
59
|
-
generate: (
|
|
59
|
+
generate: (() =>
|
|
60
60
|
{
|
|
61
61
|
const
|
|
62
62
|
T = [ ],
|
|
@@ -159,7 +159,7 @@ Object .assign (CatmullRomSplineInterpolator .prototype,
|
|
|
159
159
|
}
|
|
160
160
|
};
|
|
161
161
|
})(),
|
|
162
|
-
interpolate: (
|
|
162
|
+
interpolate: (() =>
|
|
163
163
|
{
|
|
164
164
|
const S = new Vector4 (0, 0, 0, 0);
|
|
165
165
|
|
|
@@ -81,7 +81,7 @@ Object .assign (Object .setPrototypeOf (ScreenText .prototype, X3DTextGeometry .
|
|
|
81
81
|
{
|
|
82
82
|
return this .matrix;
|
|
83
83
|
},
|
|
84
|
-
update: (
|
|
84
|
+
update: (() =>
|
|
85
85
|
{
|
|
86
86
|
const
|
|
87
87
|
min = new Vector3 (0, 0, 0),
|
|
@@ -144,7 +144,7 @@ Object .assign (Object .setPrototypeOf (ScreenText .prototype, X3DTextGeometry .
|
|
|
144
144
|
this .getBBox () .setExtents (min, max);
|
|
145
145
|
};
|
|
146
146
|
})(),
|
|
147
|
-
build: (
|
|
147
|
+
build: (() =>
|
|
148
148
|
{
|
|
149
149
|
const
|
|
150
150
|
min = new Vector3 (0, 0, 0),
|
|
@@ -371,7 +371,7 @@ Object .assign (Object .setPrototypeOf (ScreenText .prototype, X3DTextGeometry .
|
|
|
371
371
|
min .set ((glyph .xMin || 0) / unitsPerEm, (glyph .yMin || 0) / unitsPerEm, 0);
|
|
372
372
|
max .set ((glyph .xMax || 0) / unitsPerEm, (glyph .yMax || 0) / unitsPerEm, 0);
|
|
373
373
|
},
|
|
374
|
-
traverse: (
|
|
374
|
+
traverse: (() =>
|
|
375
375
|
{
|
|
376
376
|
const bbox = new Box3 ();
|
|
377
377
|
|
|
@@ -392,7 +392,7 @@ Object .assign (Object .setPrototypeOf (ScreenText .prototype, X3DTextGeometry .
|
|
|
392
392
|
|
|
393
393
|
renderContext .textureNode = this .textureNode;
|
|
394
394
|
},
|
|
395
|
-
transformLine: (
|
|
395
|
+
transformLine: (() =>
|
|
396
396
|
{
|
|
397
397
|
const invMatrix = new Matrix4 ();
|
|
398
398
|
|
|
@@ -86,7 +86,7 @@ const NURBS = {
|
|
|
86
86
|
|
|
87
87
|
return true;
|
|
88
88
|
},
|
|
89
|
-
getClosed: (
|
|
89
|
+
getClosed: (() =>
|
|
90
90
|
{
|
|
91
91
|
const
|
|
92
92
|
firstPoint = new Vector3 (0, 0, 0),
|
|
@@ -119,7 +119,7 @@ const NURBS = {
|
|
|
119
119
|
return true;
|
|
120
120
|
};
|
|
121
121
|
})(),
|
|
122
|
-
getUClosed: (
|
|
122
|
+
getUClosed: (() =>
|
|
123
123
|
{
|
|
124
124
|
const
|
|
125
125
|
firstPoint = new Vector3 (0, 0, 0),
|
|
@@ -157,7 +157,7 @@ const NURBS = {
|
|
|
157
157
|
return true;
|
|
158
158
|
};
|
|
159
159
|
})(),
|
|
160
|
-
getVClosed: (
|
|
160
|
+
getVClosed: (() =>
|
|
161
161
|
{
|
|
162
162
|
const
|
|
163
163
|
firstPoint = new Vector3 (0, 0, 0),
|
|
@@ -131,20 +131,16 @@ Object .assign (Object .setPrototypeOf (ExamineViewer .prototype, X3DViewer .pro
|
|
|
131
131
|
// Setup scroll chaser.
|
|
132
132
|
|
|
133
133
|
this .positionChaser ._duration = MOVE_TIME;
|
|
134
|
-
this .positionChaser .setPrivate (true);
|
|
135
134
|
this .positionChaser .setup ();
|
|
136
135
|
|
|
137
136
|
this .centerOfRotationChaser ._duration = MOVE_TIME;
|
|
138
|
-
this .centerOfRotationChaser .setPrivate (true);
|
|
139
137
|
this .centerOfRotationChaser .setup ();
|
|
140
138
|
|
|
141
139
|
this .rotationChaser ._duration = ROTATE_TIME;
|
|
142
|
-
this .rotationChaser .setPrivate (true);
|
|
143
140
|
this .rotationChaser .setup ();
|
|
144
141
|
|
|
145
142
|
this .timeSensor ._loop = true;
|
|
146
143
|
this .timeSensor ._stopTime = browser .getCurrentTime ();
|
|
147
|
-
this .timeSensor .setPrivate (true);
|
|
148
144
|
this .timeSensor .setup ();
|
|
149
145
|
|
|
150
146
|
this .timeSensor ._fraction_changed .addInterest ("spin", this);
|
|
@@ -283,7 +279,7 @@ Object .assign (Object .setPrototypeOf (ExamineViewer .prototype, X3DViewer .pro
|
|
|
283
279
|
this .disconnect ();
|
|
284
280
|
this .lookAtBBox (x, y, this .getStraightenHorizon ());
|
|
285
281
|
},
|
|
286
|
-
mousemove: (
|
|
282
|
+
mousemove: (() =>
|
|
287
283
|
{
|
|
288
284
|
const fromPoint = new Vector3 (0, 0, 0);
|
|
289
285
|
|
|
@@ -335,7 +331,7 @@ Object .assign (Object .setPrototypeOf (ExamineViewer .prototype, X3DViewer .pro
|
|
|
335
331
|
}
|
|
336
332
|
};
|
|
337
333
|
})(),
|
|
338
|
-
mousewheel: (
|
|
334
|
+
mousewheel: (() =>
|
|
339
335
|
{
|
|
340
336
|
const
|
|
341
337
|
step = new Vector3 (0, 0, 0),
|
|
@@ -462,7 +458,7 @@ Object .assign (Object .setPrototypeOf (ExamineViewer .prototype, X3DViewer .pro
|
|
|
462
458
|
}
|
|
463
459
|
}
|
|
464
460
|
},
|
|
465
|
-
touchmove: (
|
|
461
|
+
touchmove: (() =>
|
|
466
462
|
{
|
|
467
463
|
const
|
|
468
464
|
MOVE_ANGLE = 0.7,
|
|
@@ -564,7 +560,7 @@ Object .assign (Object .setPrototypeOf (ExamineViewer .prototype, X3DViewer .pro
|
|
|
564
560
|
viewpoint ._orientationOffset = this .getOrientationOffset (value .getValue (), this .initialOrientationOffset, false);
|
|
565
561
|
viewpoint ._positionOffset = this .getPositionOffset (this .initialPositionOffset, this .initialOrientationOffset, viewpoint ._orientationOffset .getValue ());
|
|
566
562
|
},
|
|
567
|
-
addRotate: (
|
|
563
|
+
addRotate: (() =>
|
|
568
564
|
{
|
|
569
565
|
const destination = new Rotation4 ();
|
|
570
566
|
|
|
@@ -655,7 +651,7 @@ Object .assign (Object .setPrototypeOf (ExamineViewer .prototype, X3DViewer .pro
|
|
|
655
651
|
this .rotation .assign (rotationChange);
|
|
656
652
|
}
|
|
657
653
|
},
|
|
658
|
-
spin: (
|
|
654
|
+
spin: (() =>
|
|
659
655
|
{
|
|
660
656
|
const
|
|
661
657
|
direction = new Vector3 (0, 0, 0),
|
|
@@ -695,7 +691,7 @@ Object .assign (Object .setPrototypeOf (ExamineViewer .prototype, X3DViewer .pro
|
|
|
695
691
|
}
|
|
696
692
|
};
|
|
697
693
|
})(),
|
|
698
|
-
addMove: (
|
|
694
|
+
addMove: (() =>
|
|
699
695
|
{
|
|
700
696
|
const
|
|
701
697
|
positionOffset = new Vector3 (0, 0, 0),
|
|
@@ -746,7 +742,7 @@ Object .assign (Object .setPrototypeOf (ExamineViewer .prototype, X3DViewer .pro
|
|
|
746
742
|
this .centerOfRotationChaser ._value_changed .addInterest ("set_centerOfRotationOffset__", this);
|
|
747
743
|
};
|
|
748
744
|
})(),
|
|
749
|
-
getPositionOffset: (
|
|
745
|
+
getPositionOffset: (() =>
|
|
750
746
|
{
|
|
751
747
|
const
|
|
752
748
|
distance = new Vector3 (0, 0, 0),
|
|
@@ -766,7 +762,7 @@ Object .assign (Object .setPrototypeOf (ExamineViewer .prototype, X3DViewer .pro
|
|
|
766
762
|
.add (positionOffsetBefore));
|
|
767
763
|
};
|
|
768
764
|
})(),
|
|
769
|
-
getOrientationOffset: (
|
|
765
|
+
getOrientationOffset: (() =>
|
|
770
766
|
{
|
|
771
767
|
const
|
|
772
768
|
userOrientation = new Rotation4 (),
|
|
@@ -810,7 +806,7 @@ Object .assign (Object .setPrototypeOf (ExamineViewer .prototype, X3DViewer .pro
|
|
|
810
806
|
}
|
|
811
807
|
};
|
|
812
808
|
})(),
|
|
813
|
-
getHorizonRotation: (
|
|
809
|
+
getHorizonRotation: (() =>
|
|
814
810
|
{
|
|
815
811
|
const zAxis = new Vector3 (0, 0, 0);
|
|
816
812
|
|
|
@@ -106,15 +106,12 @@ Object .assign (Object .setPrototypeOf (LookAtViewer .prototype, X3DViewer .prot
|
|
|
106
106
|
// Setup chaser.
|
|
107
107
|
|
|
108
108
|
this .positionChaser ._duration = MOVE_TIME;
|
|
109
|
-
this .positionChaser .setPrivate (true);
|
|
110
109
|
this .positionChaser .setup ();
|
|
111
110
|
|
|
112
111
|
this .centerOfRotationChaser ._duration = MOVE_TIME;
|
|
113
|
-
this .centerOfRotationChaser .setPrivate (true);
|
|
114
112
|
this .centerOfRotationChaser .setup ();
|
|
115
113
|
|
|
116
114
|
this .orientationChaser ._duration = ROTATE_TIME;
|
|
117
|
-
this .orientationChaser .setPrivate (true);
|
|
118
115
|
this .orientationChaser .setup ();
|
|
119
116
|
},
|
|
120
117
|
mousedown (event)
|
|
@@ -214,7 +211,7 @@ Object .assign (Object .setPrototypeOf (LookAtViewer .prototype, X3DViewer .prot
|
|
|
214
211
|
}
|
|
215
212
|
}
|
|
216
213
|
},
|
|
217
|
-
mousewheel: (
|
|
214
|
+
mousewheel: (() =>
|
|
218
215
|
{
|
|
219
216
|
const
|
|
220
217
|
step = new Vector3 (0, 0, 0),
|
|
@@ -313,7 +310,7 @@ Object .assign (Object .setPrototypeOf (LookAtViewer .prototype, X3DViewer .prot
|
|
|
313
310
|
|
|
314
311
|
this .tapStart = this .getBrowser () .getCurrentTime ();
|
|
315
312
|
},
|
|
316
|
-
touchmove: (
|
|
313
|
+
touchmove: (() =>
|
|
317
314
|
{
|
|
318
315
|
const
|
|
319
316
|
MOVE_ANGLE = 0.7,
|
|
@@ -398,7 +395,7 @@ Object .assign (Object .setPrototypeOf (LookAtViewer .prototype, X3DViewer .prot
|
|
|
398
395
|
|
|
399
396
|
viewpoint ._orientationOffset = value;
|
|
400
397
|
},
|
|
401
|
-
addMove: (
|
|
398
|
+
addMove: (() =>
|
|
402
399
|
{
|
|
403
400
|
const
|
|
404
401
|
positionOffset = new Vector3 (0, 0, 0),
|
|
@@ -449,7 +446,7 @@ Object .assign (Object .setPrototypeOf (LookAtViewer .prototype, X3DViewer .prot
|
|
|
449
446
|
this .centerOfRotationChaser ._value_changed .addInterest ("set_centerOfRotationOffset__", this);
|
|
450
447
|
};
|
|
451
448
|
})(),
|
|
452
|
-
addRotation: (
|
|
449
|
+
addRotation: (() =>
|
|
453
450
|
{
|
|
454
451
|
const
|
|
455
452
|
userOrientation = new Rotation4 (),
|
|
@@ -74,7 +74,7 @@ Object .assign (Object .setPrototypeOf (WalkViewer .prototype, X3DFlyViewer .pro
|
|
|
74
74
|
{
|
|
75
75
|
return direction .assign (toVector) .subtract (fromVector);
|
|
76
76
|
},
|
|
77
|
-
getTranslationOffset: (
|
|
77
|
+
getTranslationOffset: (() =>
|
|
78
78
|
{
|
|
79
79
|
const
|
|
80
80
|
localYAxis = new Vector3 (0, 0, 0),
|
|
@@ -119,7 +119,6 @@ Object .assign (Object .setPrototypeOf (X3DFlyViewer .prototype, X3DViewer .prot
|
|
|
119
119
|
// Setup look around chaser.
|
|
120
120
|
|
|
121
121
|
this .orientationChaser ._duration = ROTATE_TIME;
|
|
122
|
-
this .orientationChaser .setPrivate (true);
|
|
123
122
|
this .orientationChaser .setup ();
|
|
124
123
|
},
|
|
125
124
|
addCollision () { },
|
|
@@ -403,7 +402,7 @@ Object .assign (Object .setPrototypeOf (X3DFlyViewer .prototype, X3DViewer .prot
|
|
|
403
402
|
}
|
|
404
403
|
}
|
|
405
404
|
},
|
|
406
|
-
fly: (
|
|
405
|
+
fly: (() =>
|
|
407
406
|
{
|
|
408
407
|
const
|
|
409
408
|
upVector = new Vector3 (0, 0, 0),
|
|
@@ -477,7 +476,7 @@ Object .assign (Object .setPrototypeOf (X3DFlyViewer .prototype, X3DViewer .prot
|
|
|
477
476
|
this .startTime = now;
|
|
478
477
|
};
|
|
479
478
|
})(),
|
|
480
|
-
pan: (
|
|
479
|
+
pan: (() =>
|
|
481
480
|
{
|
|
482
481
|
const
|
|
483
482
|
direction = new Vector3 (0, 0, 0),
|
|
@@ -539,7 +538,7 @@ Object .assign (Object .setPrototypeOf (X3DFlyViewer .prototype, X3DViewer .prot
|
|
|
539
538
|
|
|
540
539
|
this .startTime = Date .now ();
|
|
541
540
|
},
|
|
542
|
-
addRoll: (
|
|
541
|
+
addRoll: (() =>
|
|
543
542
|
{
|
|
544
543
|
const
|
|
545
544
|
orientationOffset = new Rotation4 (),
|
|
@@ -576,7 +575,7 @@ Object .assign (Object .setPrototypeOf (X3DFlyViewer .prototype, X3DViewer .prot
|
|
|
576
575
|
this .orientationChaser ._value_changed .addInterest ("set_orientationOffset__", this);
|
|
577
576
|
};
|
|
578
577
|
})(),
|
|
579
|
-
addRotation: (
|
|
578
|
+
addRotation: (() =>
|
|
580
579
|
{
|
|
581
580
|
const
|
|
582
581
|
userOrientation = new Rotation4 (),
|
|
@@ -619,7 +618,7 @@ Object .assign (Object .setPrototypeOf (X3DFlyViewer .prototype, X3DViewer .prot
|
|
|
619
618
|
this .orientationChaser ._value_changed .addInterest ("set_orientationOffset__", this);
|
|
620
619
|
};
|
|
621
620
|
})(),
|
|
622
|
-
display: (
|
|
621
|
+
display: (() =>
|
|
623
622
|
{
|
|
624
623
|
const
|
|
625
624
|
fromPoint = new Vector3 (0, 0, 0),
|
|
@@ -106,7 +106,7 @@ Object .assign (Object .setPrototypeOf (X3DViewer .prototype, X3DBaseNode .proto
|
|
|
106
106
|
|
|
107
107
|
return [x, y];
|
|
108
108
|
},
|
|
109
|
-
isPointerInRectangle: (
|
|
109
|
+
isPointerInRectangle: (() =>
|
|
110
110
|
{
|
|
111
111
|
const pointer = new Vector2 (0, 0);
|
|
112
112
|
|
|
@@ -119,7 +119,7 @@ Object .assign (Object .setPrototypeOf (X3DViewer .prototype, X3DBaseNode .proto
|
|
|
119
119
|
return browser .isPointerInRectangle (rectangle, pointer .set (x, y));
|
|
120
120
|
};
|
|
121
121
|
})(),
|
|
122
|
-
getPointOnCenterPlane: (
|
|
122
|
+
getPointOnCenterPlane: (() =>
|
|
123
123
|
{
|
|
124
124
|
const
|
|
125
125
|
axis = new Vector3 (0, 0, -1),
|
|
@@ -45,17 +45,25 @@
|
|
|
45
45
|
*
|
|
46
46
|
******************************************************************************/
|
|
47
47
|
|
|
48
|
-
import Features from "
|
|
48
|
+
import Features from "../../Features.js";
|
|
49
49
|
|
|
50
|
-
const URLs =
|
|
51
|
-
|
|
50
|
+
const URLs =
|
|
51
|
+
{
|
|
52
|
+
getScriptUrl: (() =>
|
|
52
53
|
{
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
54
|
+
switch (Features .ENVIRONMENT)
|
|
55
|
+
{
|
|
56
|
+
case "NODE":
|
|
57
|
+
{
|
|
58
|
+
var src = global .require ("url") .pathToFileURL (__filename) .href;
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
case "BROWSER":
|
|
62
|
+
{
|
|
63
|
+
var src = document .currentScript ?.src ?? document .location .href;
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
59
67
|
|
|
60
68
|
return function ()
|
|
61
69
|
{
|
|
@@ -107,8 +107,6 @@ Object .assign (X3DNetworkingContext .prototype,
|
|
|
107
107
|
// Inline node's empty scene.
|
|
108
108
|
|
|
109
109
|
this [_defaultScene] = this .createScene ();
|
|
110
|
-
|
|
111
|
-
this [_defaultScene] .setPrivate (true);
|
|
112
110
|
this [_defaultScene] .setLive (true);
|
|
113
111
|
|
|
114
112
|
this .getDefaultScene = function () { return this [_defaultScene]; };
|
|
@@ -90,7 +90,7 @@ Object .assign (VolumePicker .prototype,
|
|
|
90
90
|
{
|
|
91
91
|
this .setChildShapeComponents (this .compoundShape2, transform, localScaling, childShape);
|
|
92
92
|
},
|
|
93
|
-
setChildShape: (
|
|
93
|
+
setChildShape: (() =>
|
|
94
94
|
{
|
|
95
95
|
const
|
|
96
96
|
translation = new Vector3 (0, 0, 0),
|
|
@@ -148,7 +148,7 @@ Object .assign (VolumePicker .prototype,
|
|
|
148
148
|
|
|
149
149
|
return false;
|
|
150
150
|
},
|
|
151
|
-
getTransform: (
|
|
151
|
+
getTransform: (() =>
|
|
152
152
|
{
|
|
153
153
|
const
|
|
154
154
|
T = new Ammo .btTransform (),
|
|
@@ -72,7 +72,7 @@ Object .assign (Object .setPrototypeOf (PolygonText .prototype, X3DTextGeometry
|
|
|
72
72
|
{
|
|
73
73
|
return Matrix4 .Identity;
|
|
74
74
|
},
|
|
75
|
-
build: (
|
|
75
|
+
build: (() =>
|
|
76
76
|
{
|
|
77
77
|
const
|
|
78
78
|
min = new Vector3 (0, 0, 0),
|
|
@@ -309,7 +309,7 @@ Object .assign (Object .setPrototypeOf (PolygonText .prototype, X3DTextGeometry
|
|
|
309
309
|
return 5;
|
|
310
310
|
}
|
|
311
311
|
},
|
|
312
|
-
triangulatePolygon: (
|
|
312
|
+
triangulatePolygon: (() =>
|
|
313
313
|
{
|
|
314
314
|
// Function called for each vertex of tessellator output.
|
|
315
315
|
|
|
@@ -141,7 +141,7 @@ Object .assign (DicomParser .prototype,
|
|
|
141
141
|
bytes = new Uint8Array (byteLength),
|
|
142
142
|
frames = this .getFrames (pixelElement);
|
|
143
143
|
|
|
144
|
-
frames .forEach (
|
|
144
|
+
frames .forEach ((frame, f) =>
|
|
145
145
|
{
|
|
146
146
|
// Handle transfer syntax.
|
|
147
147
|
|
|
@@ -709,7 +709,7 @@ Object .assign (DicomParser .prototype,
|
|
|
709
709
|
|
|
710
710
|
return new Uint8Array (image .pixelData .buffer);
|
|
711
711
|
},
|
|
712
|
-
jpegLSDecode: (
|
|
712
|
+
jpegLSDecode: (() =>
|
|
713
713
|
{
|
|
714
714
|
const charLS = CharLS ();
|
|
715
715
|
|
|
@@ -793,7 +793,7 @@ Object .assign (DicomParser .prototype,
|
|
|
793
793
|
|
|
794
794
|
return new Uint8Array (image .pixelData .buffer);
|
|
795
795
|
},
|
|
796
|
-
decodeOpenJPEG: (
|
|
796
|
+
decodeOpenJPEG: (() =>
|
|
797
797
|
{
|
|
798
798
|
const openJPEG = OpenJPEG ();
|
|
799
799
|
|
|
@@ -124,7 +124,7 @@ Object .assign (NRRDParser .prototype,
|
|
|
124
124
|
;
|
|
125
125
|
}
|
|
126
126
|
},
|
|
127
|
-
getType: (
|
|
127
|
+
getType: (() =>
|
|
128
128
|
{
|
|
129
129
|
const types = new Map ([
|
|
130
130
|
["signed char", ["signed char", 1]],
|
|
@@ -168,7 +168,7 @@ Object .assign (NRRDParser .prototype,
|
|
|
168
168
|
this .bytes = type [1];
|
|
169
169
|
};
|
|
170
170
|
})(),
|
|
171
|
-
getEncoding: (
|
|
171
|
+
getEncoding: (() =>
|
|
172
172
|
{
|
|
173
173
|
const encodings = new Map ([
|
|
174
174
|
["ascii", "ascii"],
|