x_ite 8.8.3 → 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 +38 -45
- 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 +1 -8
- 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
package/dist/x_ite.zip
CHANGED
|
Binary file
|
package/docs/_config.yml
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x_ite",
|
|
3
|
-
"version": "8.8.
|
|
3
|
+
"version": "8.8.4",
|
|
4
4
|
"description": "X_ITE X3D Browser, view and manipulate X3D and VRML scenes in HTML.",
|
|
5
5
|
"homepage": "https://create3000.github.io/x_ite/",
|
|
6
6
|
"author": "Holger Seelig <holger.seelig@gmail.com>",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"opentype.js": "^1.3.4",
|
|
72
72
|
"pako": "^2.1.0",
|
|
73
73
|
"string-replace-webpack-plugin": "^0.1.3",
|
|
74
|
-
"webpack": "^5.
|
|
74
|
+
"webpack": "^5.87.0",
|
|
75
75
|
"webpack-cli": "^5.1.4",
|
|
76
76
|
"webpack-shell-plugin-next": "^2.3.1"
|
|
77
77
|
},
|
package/src/bookmarks.js
CHANGED
package/src/lib/jquery.js
CHANGED
|
@@ -32,6 +32,14 @@ Object .assign ($,
|
|
|
32
32
|
},
|
|
33
33
|
});
|
|
34
34
|
|
|
35
|
+
// // decorator: @iffe fn (... args) { return function () { }; }
|
|
36
|
+
// function iife (target, key, descriptor)
|
|
37
|
+
// {
|
|
38
|
+
// descriptor .value = descriptor .value ();
|
|
39
|
+
|
|
40
|
+
// return descriptor;
|
|
41
|
+
// }
|
|
42
|
+
|
|
35
43
|
Object .assign ($.fn,
|
|
36
44
|
{
|
|
37
45
|
isInViewport ()
|
|
@@ -39,7 +39,7 @@ function createAccessor (name, data)
|
|
|
39
39
|
{
|
|
40
40
|
case inferType .ARRAY_OF_OBJECTS:
|
|
41
41
|
{
|
|
42
|
-
return wrapAccessor (
|
|
42
|
+
return wrapAccessor (accessors =>
|
|
43
43
|
{
|
|
44
44
|
var e = accessors .pop ();
|
|
45
45
|
|
|
@@ -48,21 +48,21 @@ function createAccessor (name, data)
|
|
|
48
48
|
}
|
|
49
49
|
case inferType .ARRAY_OF_ARRAYS:
|
|
50
50
|
{
|
|
51
|
-
return wrapAccessor (
|
|
51
|
+
return wrapAccessor (accessors =>
|
|
52
52
|
{
|
|
53
53
|
return name + "[" + accessors .join ("][") + "]";
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
case inferType .GENERIC_NDARRAY:
|
|
57
57
|
{
|
|
58
|
-
return wrapAccessor
|
|
58
|
+
return wrapAccessor (accessors =>
|
|
59
59
|
{
|
|
60
60
|
return name + ".get(" + accessors.join(",") + ")";
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
case inferType .NDARRAY:
|
|
64
64
|
{
|
|
65
|
-
return wrapAccessor
|
|
65
|
+
return wrapAccessor (accessors =>
|
|
66
66
|
{
|
|
67
67
|
var code = [name + "Offset"];
|
|
68
68
|
|
|
@@ -18,7 +18,7 @@ var createVariable = function createVariable (name, nurbs) {
|
|
|
18
18
|
|
|
19
19
|
createVariable.sum = function (parts) {
|
|
20
20
|
parts = Array.isArray(parts) ? parts : [parts];
|
|
21
|
-
parts = parts.filter(
|
|
21
|
+
parts = parts.filter(part => part !== undefined && part !== 0);
|
|
22
22
|
if (parts.length === 0) parts.push(0);
|
|
23
23
|
return parts.join(" + ");
|
|
24
24
|
};
|
package/src/shim.js
CHANGED
|
@@ -58,7 +58,7 @@ const { interval } = Algorithm;
|
|
|
58
58
|
|
|
59
59
|
const Bezier =
|
|
60
60
|
{
|
|
61
|
-
quadric: (
|
|
61
|
+
quadric: (() =>
|
|
62
62
|
{
|
|
63
63
|
const
|
|
64
64
|
c = new Matrix3 (1, 0, 0, -2, 2, 0, 1, -2, 1),
|
|
@@ -77,7 +77,7 @@ const Bezier =
|
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
79
|
})(),
|
|
80
|
-
cubic: (
|
|
80
|
+
cubic: (() =>
|
|
81
81
|
{
|
|
82
82
|
const
|
|
83
83
|
v = new Vector4 (0, 0, 0, 0),
|
|
@@ -117,7 +117,7 @@ Object .assign (Box2 .prototype,
|
|
|
117
117
|
{
|
|
118
118
|
return this .matrix [8] === 0;
|
|
119
119
|
},
|
|
120
|
-
add: (
|
|
120
|
+
add: (() =>
|
|
121
121
|
{
|
|
122
122
|
const
|
|
123
123
|
lhs_min = new Vector2 (0, 0),
|
|
@@ -156,7 +156,7 @@ Object .assign (Box2 .prototype,
|
|
|
156
156
|
min .add (this .center);
|
|
157
157
|
max .add (this .center);
|
|
158
158
|
},
|
|
159
|
-
getAbsoluteExtents: (
|
|
159
|
+
getAbsoluteExtents: (() =>
|
|
160
160
|
{
|
|
161
161
|
const p1 = new Vector2 (0, 0);
|
|
162
162
|
|
|
@@ -181,7 +181,7 @@ Object .assign (Box2 .prototype,
|
|
|
181
181
|
max .max (p1, p2);
|
|
182
182
|
};
|
|
183
183
|
})(),
|
|
184
|
-
containsPoint: (
|
|
184
|
+
containsPoint: (() =>
|
|
185
185
|
{
|
|
186
186
|
const
|
|
187
187
|
min = new Vector2 (0, 0),
|
|
@@ -219,7 +219,7 @@ Object .defineProperties (Box2 .prototype,
|
|
|
219
219
|
{
|
|
220
220
|
size:
|
|
221
221
|
{
|
|
222
|
-
get: (
|
|
222
|
+
get: (() =>
|
|
223
223
|
{
|
|
224
224
|
const
|
|
225
225
|
min = new Vector2 (0, 0),
|
|
@@ -131,7 +131,7 @@ Object .assign (Box3 .prototype,
|
|
|
131
131
|
min .add (this .center);
|
|
132
132
|
max .add (this .center);
|
|
133
133
|
},
|
|
134
|
-
getAbsoluteExtents: (
|
|
134
|
+
getAbsoluteExtents: (() =>
|
|
135
135
|
{
|
|
136
136
|
const
|
|
137
137
|
r1 = new Vector3 (0, 0, 0),
|
|
@@ -169,7 +169,7 @@ Object .assign (Box3 .prototype,
|
|
|
169
169
|
max .max (p1, p2, p3, p4);
|
|
170
170
|
};
|
|
171
171
|
})(),
|
|
172
|
-
getPoints: (
|
|
172
|
+
getPoints: (() =>
|
|
173
173
|
{
|
|
174
174
|
const
|
|
175
175
|
x = new Vector3 (0, 0, 0),
|
|
@@ -236,7 +236,7 @@ Object .assign (Box3 .prototype,
|
|
|
236
236
|
|
|
237
237
|
return axes;
|
|
238
238
|
},
|
|
239
|
-
getNormals: (
|
|
239
|
+
getNormals: (() =>
|
|
240
240
|
{
|
|
241
241
|
const
|
|
242
242
|
x = new Vector3 (0, 0, 0),
|
|
@@ -354,7 +354,7 @@ Object .assign (Box3 .prototype,
|
|
|
354
354
|
{
|
|
355
355
|
return this .matrix [15] === 0;
|
|
356
356
|
},
|
|
357
|
-
add: (
|
|
357
|
+
add: (() =>
|
|
358
358
|
{
|
|
359
359
|
const
|
|
360
360
|
lhs_min = new Vector3 (0, 0, 0),
|
|
@@ -386,7 +386,7 @@ Object .assign (Box3 .prototype,
|
|
|
386
386
|
this .matrix .multRight (matrix);
|
|
387
387
|
return this;
|
|
388
388
|
},
|
|
389
|
-
containsPoint: (
|
|
389
|
+
containsPoint: (() =>
|
|
390
390
|
{
|
|
391
391
|
const
|
|
392
392
|
min = new Vector3 (0, 0, 0),
|
|
@@ -404,7 +404,7 @@ Object .assign (Box3 .prototype,
|
|
|
404
404
|
max .z >= point .z;
|
|
405
405
|
};
|
|
406
406
|
})(),
|
|
407
|
-
intersectsBox: (
|
|
407
|
+
intersectsBox: (() =>
|
|
408
408
|
{
|
|
409
409
|
const points1 = [
|
|
410
410
|
new Vector3 (0, 0, 0),
|
|
@@ -506,7 +506,7 @@ Object .assign (Box3 .prototype,
|
|
|
506
506
|
return true;
|
|
507
507
|
};
|
|
508
508
|
})(),
|
|
509
|
-
intersectsTriangle: (
|
|
509
|
+
intersectsTriangle: (() =>
|
|
510
510
|
{
|
|
511
511
|
const points1 = [
|
|
512
512
|
new Vector3 (0, 0, 0),
|
|
@@ -627,7 +627,7 @@ Object .defineProperties (Box3 .prototype,
|
|
|
627
627
|
{
|
|
628
628
|
size:
|
|
629
629
|
{
|
|
630
|
-
get: (
|
|
630
|
+
get: (() =>
|
|
631
631
|
{
|
|
632
632
|
const
|
|
633
633
|
min = new Vector3 (0, 0, 0),
|
|
@@ -100,7 +100,7 @@ Object .assign (Line2 .prototype,
|
|
|
100
100
|
|
|
101
101
|
return result .assign (this .direction) .multiply (d) .add (this .point);
|
|
102
102
|
},
|
|
103
|
-
getPerpendicularVectorToPoint: (
|
|
103
|
+
getPerpendicularVectorToPoint: (() =>
|
|
104
104
|
{
|
|
105
105
|
const t = new Vector2 (0, 0);
|
|
106
106
|
|
|
@@ -111,7 +111,7 @@ Object .assign (Line2 .prototype,
|
|
|
111
111
|
return result .subtract (t .assign (this .direction) .multiply (result .dot (this .direction)));
|
|
112
112
|
};
|
|
113
113
|
})(),
|
|
114
|
-
intersectsLine: (
|
|
114
|
+
intersectsLine: (() =>
|
|
115
115
|
{
|
|
116
116
|
const u = new Vector2 (0, 0);
|
|
117
117
|
|
|
@@ -100,7 +100,7 @@ Object .assign (Line3 .prototype,
|
|
|
100
100
|
|
|
101
101
|
return result .assign (this .direction) .multiply (d) .add (this .point);
|
|
102
102
|
},
|
|
103
|
-
getClosestPointToLine: (
|
|
103
|
+
getClosestPointToLine: (() =>
|
|
104
104
|
{
|
|
105
105
|
const u = new Vector3 (0, 0, 0);
|
|
106
106
|
|
|
@@ -123,7 +123,7 @@ Object .assign (Line3 .prototype,
|
|
|
123
123
|
return true;
|
|
124
124
|
};
|
|
125
125
|
})(),
|
|
126
|
-
getPerpendicularVectorToPoint: (
|
|
126
|
+
getPerpendicularVectorToPoint: (() =>
|
|
127
127
|
{
|
|
128
128
|
const t = new Vector3 (0, 0, 0);
|
|
129
129
|
|
|
@@ -134,7 +134,7 @@ Object .assign (Line3 .prototype,
|
|
|
134
134
|
return result .subtract (t .assign (this .direction) .multiply (result .dot (this .direction)));
|
|
135
135
|
};
|
|
136
136
|
})(),
|
|
137
|
-
getPerpendicularVectorToLine: (
|
|
137
|
+
getPerpendicularVectorToLine: (() =>
|
|
138
138
|
{
|
|
139
139
|
const
|
|
140
140
|
d = new Vector3 (0, 0, 0),
|
|
@@ -162,7 +162,7 @@ Object .assign (Line3 .prototype,
|
|
|
162
162
|
return bd .subtract (ad) .add (d);
|
|
163
163
|
};
|
|
164
164
|
})(),
|
|
165
|
-
intersectsTriangle: (
|
|
165
|
+
intersectsTriangle: (() =>
|
|
166
166
|
{
|
|
167
167
|
const
|
|
168
168
|
pvec = new Vector3 (0, 0, 0),
|
|
@@ -49,7 +49,7 @@ import Vector3 from "../Numbers/Vector3.js";
|
|
|
49
49
|
|
|
50
50
|
const Triangle3 =
|
|
51
51
|
{
|
|
52
|
-
area: (
|
|
52
|
+
area: (() =>
|
|
53
53
|
{
|
|
54
54
|
const
|
|
55
55
|
B = new Vector3 (0, 0, 0),
|
|
@@ -92,7 +92,7 @@ const Triangle3 =
|
|
|
92
92
|
|
|
93
93
|
return normal .normalize ();
|
|
94
94
|
},
|
|
95
|
-
triangulatePolygon: (
|
|
95
|
+
triangulatePolygon: (() =>
|
|
96
96
|
{
|
|
97
97
|
// Function called for each vertex of tesselator output.
|
|
98
98
|
|
|
@@ -118,7 +118,7 @@ function ViewVolume (projectionMatrix, viewport, scissor)
|
|
|
118
118
|
|
|
119
119
|
Object .assign (ViewVolume .prototype,
|
|
120
120
|
{
|
|
121
|
-
set: (
|
|
121
|
+
set: (() =>
|
|
122
122
|
{
|
|
123
123
|
const matrix = new Matrix4 ();
|
|
124
124
|
|
|
@@ -228,7 +228,7 @@ Object .assign (ViewVolume .prototype,
|
|
|
228
228
|
|
|
229
229
|
return true;
|
|
230
230
|
},
|
|
231
|
-
intersectsBox: (
|
|
231
|
+
intersectsBox: (() =>
|
|
232
232
|
{
|
|
233
233
|
const points1 = [
|
|
234
234
|
new Vector3 (0, 0, 0),
|
|
@@ -301,7 +301,7 @@ Object .assign (ViewVolume .prototype,
|
|
|
301
301
|
|
|
302
302
|
Object .assign (ViewVolume,
|
|
303
303
|
{
|
|
304
|
-
unProjectPoint: (
|
|
304
|
+
unProjectPoint: (() =>
|
|
305
305
|
{
|
|
306
306
|
const invModelViewProjectionMatrix = new Matrix4 ();
|
|
307
307
|
|
|
@@ -310,7 +310,7 @@ Object .assign (ViewVolume,
|
|
|
310
310
|
return this .unProjectPointMatrix (winx, winy, winz, invModelViewProjectionMatrix .assign (modelViewMatrix) .multRight (projectionMatrix) .inverse (), viewport, point);
|
|
311
311
|
};
|
|
312
312
|
})(),
|
|
313
|
-
unProjectPointMatrix: (
|
|
313
|
+
unProjectPointMatrix: (() =>
|
|
314
314
|
{
|
|
315
315
|
const vin = new Vector4 (0, 0, 0, 0);
|
|
316
316
|
|
|
@@ -330,7 +330,7 @@ Object .assign (ViewVolume,
|
|
|
330
330
|
return point .set (vin .x * d, vin .y * d, vin .z * d, 1);
|
|
331
331
|
};
|
|
332
332
|
})(),
|
|
333
|
-
unProjectRay: (
|
|
333
|
+
unProjectRay: (() =>
|
|
334
334
|
{
|
|
335
335
|
const invModelViewProjectionMatrix = new Matrix4 ();
|
|
336
336
|
|
|
@@ -339,7 +339,7 @@ Object .assign (ViewVolume,
|
|
|
339
339
|
return this .unProjectRayMatrix (winx, winy, invModelViewProjectionMatrix .assign (modelViewMatrix) .multRight (projectionMatrix) .inverse (), viewport, result);
|
|
340
340
|
};
|
|
341
341
|
})(),
|
|
342
|
-
unProjectRayMatrix: (
|
|
342
|
+
unProjectRayMatrix: (() =>
|
|
343
343
|
{
|
|
344
344
|
const
|
|
345
345
|
near = new Vector3 (0, 0, 0),
|
|
@@ -353,7 +353,7 @@ Object .assign (ViewVolume,
|
|
|
353
353
|
return result .setPoints (near, far);
|
|
354
354
|
};
|
|
355
355
|
})(),
|
|
356
|
-
projectPoint: (
|
|
356
|
+
projectPoint: (() =>
|
|
357
357
|
{
|
|
358
358
|
const vin = new Vector4 (0, 0, 0, 0);
|
|
359
359
|
|
|
@@ -373,7 +373,7 @@ Object .assign (ViewVolume,
|
|
|
373
373
|
(vin .z * d + 0.5));
|
|
374
374
|
};
|
|
375
375
|
})(),
|
|
376
|
-
projectPointMatrix: (
|
|
376
|
+
projectPointMatrix: (() =>
|
|
377
377
|
{
|
|
378
378
|
const vin = new Vector4 (0, 0, 0, 0);
|
|
379
379
|
|
|
@@ -393,7 +393,7 @@ Object .assign (ViewVolume,
|
|
|
393
393
|
(vin .z * d + 0.5));
|
|
394
394
|
};
|
|
395
395
|
})(),
|
|
396
|
-
projectLine: (
|
|
396
|
+
projectLine: (() =>
|
|
397
397
|
{
|
|
398
398
|
const modelViewProjectionMatrix = new Matrix4 ();
|
|
399
399
|
|
|
@@ -402,7 +402,7 @@ Object .assign (ViewVolume,
|
|
|
402
402
|
return this .projectLineMatrix (line, modelViewProjectionMatrix .assign (modelViewMatrix) .multRight (projectionMatrix), viewport, result);
|
|
403
403
|
};
|
|
404
404
|
})(),
|
|
405
|
-
projectLineMatrix: (
|
|
405
|
+
projectLineMatrix: (() =>
|
|
406
406
|
{
|
|
407
407
|
const
|
|
408
408
|
near = new Vector2 (0, 0),
|
|
@@ -236,7 +236,7 @@ Object .defineProperties (Matrix2 .prototype,
|
|
|
236
236
|
length: { value: 4 },
|
|
237
237
|
x:
|
|
238
238
|
{
|
|
239
|
-
get: (
|
|
239
|
+
get: (() =>
|
|
240
240
|
{
|
|
241
241
|
const vector = new Vector2 (0, 0);
|
|
242
242
|
|
|
@@ -245,7 +245,7 @@ Object .defineProperties (Matrix2 .prototype,
|
|
|
245
245
|
},
|
|
246
246
|
y:
|
|
247
247
|
{
|
|
248
|
-
get: (
|
|
248
|
+
get: (() =>
|
|
249
249
|
{
|
|
250
250
|
const vector = new Vector2 (0, 0);
|
|
251
251
|
|
|
@@ -112,7 +112,7 @@ Object .assign (Matrix3 .prototype,
|
|
|
112
112
|
{
|
|
113
113
|
return this [r * this .order + c];
|
|
114
114
|
},
|
|
115
|
-
set: (
|
|
115
|
+
set: (() =>
|
|
116
116
|
{
|
|
117
117
|
const invCenter = new Vector2 (0, 0);
|
|
118
118
|
|
|
@@ -241,7 +241,7 @@ Object .assign (Matrix3 .prototype,
|
|
|
241
241
|
return this;
|
|
242
242
|
};
|
|
243
243
|
})(),
|
|
244
|
-
get: (
|
|
244
|
+
get: (() =>
|
|
245
245
|
{
|
|
246
246
|
const
|
|
247
247
|
dummyTranslation = new Vector2 (0, 0),
|
|
@@ -310,7 +310,7 @@ Object .assign (Matrix3 .prototype,
|
|
|
310
310
|
}
|
|
311
311
|
};
|
|
312
312
|
})(),
|
|
313
|
-
factor: (
|
|
313
|
+
factor: (() =>
|
|
314
314
|
{
|
|
315
315
|
const
|
|
316
316
|
si = new Matrix2 (),
|
|
@@ -579,7 +579,7 @@ Object .defineProperties (Matrix3 .prototype,
|
|
|
579
579
|
length: { value: 9 },
|
|
580
580
|
x:
|
|
581
581
|
{
|
|
582
|
-
get: (
|
|
582
|
+
get: (() =>
|
|
583
583
|
{
|
|
584
584
|
const vector = new Vector3 (0, 0, 0);
|
|
585
585
|
|
|
@@ -588,7 +588,7 @@ Object .defineProperties (Matrix3 .prototype,
|
|
|
588
588
|
},
|
|
589
589
|
y:
|
|
590
590
|
{
|
|
591
|
-
get: (
|
|
591
|
+
get: (() =>
|
|
592
592
|
{
|
|
593
593
|
const vector = new Vector3 (0, 0, 0);
|
|
594
594
|
|
|
@@ -597,7 +597,7 @@ Object .defineProperties (Matrix3 .prototype,
|
|
|
597
597
|
},
|
|
598
598
|
z:
|
|
599
599
|
{
|
|
600
|
-
get: (
|
|
600
|
+
get: (() =>
|
|
601
601
|
{
|
|
602
602
|
const vector = new Vector3 (0, 0, 0);
|
|
603
603
|
|
|
@@ -606,7 +606,7 @@ Object .defineProperties (Matrix3 .prototype,
|
|
|
606
606
|
},
|
|
607
607
|
xAxis:
|
|
608
608
|
{
|
|
609
|
-
get: (
|
|
609
|
+
get: (() =>
|
|
610
610
|
{
|
|
611
611
|
const vector = new Vector2 (0, 0);
|
|
612
612
|
|
|
@@ -615,7 +615,7 @@ Object .defineProperties (Matrix3 .prototype,
|
|
|
615
615
|
},
|
|
616
616
|
yAxis:
|
|
617
617
|
{
|
|
618
|
-
get: (
|
|
618
|
+
get: (() =>
|
|
619
619
|
{
|
|
620
620
|
const vector = new Vector2 (0, 0);
|
|
621
621
|
|
|
@@ -624,7 +624,7 @@ Object .defineProperties (Matrix3 .prototype,
|
|
|
624
624
|
},
|
|
625
625
|
origin:
|
|
626
626
|
{
|
|
627
|
-
get: (
|
|
627
|
+
get: (() =>
|
|
628
628
|
{
|
|
629
629
|
const vector = new Vector2 (0, 0);
|
|
630
630
|
|
|
@@ -633,7 +633,7 @@ Object .defineProperties (Matrix3 .prototype,
|
|
|
633
633
|
},
|
|
634
634
|
submatrix:
|
|
635
635
|
{
|
|
636
|
-
get: (
|
|
636
|
+
get: (() =>
|
|
637
637
|
{
|
|
638
638
|
const matrix = new Matrix2 ();
|
|
639
639
|
|
|
@@ -117,7 +117,7 @@ Object .assign (Matrix4 .prototype,
|
|
|
117
117
|
{
|
|
118
118
|
return this [r * this .order + c];
|
|
119
119
|
},
|
|
120
|
-
set: (
|
|
120
|
+
set: (() =>
|
|
121
121
|
{
|
|
122
122
|
const
|
|
123
123
|
invScaleOrientation = new Rotation4 (),
|
|
@@ -248,7 +248,7 @@ Object .assign (Matrix4 .prototype,
|
|
|
248
248
|
return this;
|
|
249
249
|
};
|
|
250
250
|
})(),
|
|
251
|
-
get: (
|
|
251
|
+
get: (() =>
|
|
252
252
|
{
|
|
253
253
|
const
|
|
254
254
|
dummyTranslation = new Vector3 (0, 0, 0),
|
|
@@ -342,7 +342,7 @@ Object .assign (Matrix4 .prototype,
|
|
|
342
342
|
|
|
343
343
|
return this;
|
|
344
344
|
},
|
|
345
|
-
factor: (
|
|
345
|
+
factor: (() =>
|
|
346
346
|
{
|
|
347
347
|
const
|
|
348
348
|
si = new Matrix3 (),
|
|
@@ -673,7 +673,7 @@ Object .defineProperties (Matrix4 .prototype,
|
|
|
673
673
|
length: { value: 16 },
|
|
674
674
|
x:
|
|
675
675
|
{
|
|
676
|
-
get: (
|
|
676
|
+
get: (() =>
|
|
677
677
|
{
|
|
678
678
|
const vector = new Vector4 (0, 0, 0, 0);
|
|
679
679
|
|
|
@@ -682,7 +682,7 @@ Object .defineProperties (Matrix4 .prototype,
|
|
|
682
682
|
},
|
|
683
683
|
y:
|
|
684
684
|
{
|
|
685
|
-
get: (
|
|
685
|
+
get: (() =>
|
|
686
686
|
{
|
|
687
687
|
const vector = new Vector4 (0, 0, 0, 0);
|
|
688
688
|
|
|
@@ -691,7 +691,7 @@ Object .defineProperties (Matrix4 .prototype,
|
|
|
691
691
|
},
|
|
692
692
|
z:
|
|
693
693
|
{
|
|
694
|
-
get: (
|
|
694
|
+
get: (() =>
|
|
695
695
|
{
|
|
696
696
|
const vector = new Vector4 (0, 0, 0, 0);
|
|
697
697
|
|
|
@@ -700,7 +700,7 @@ Object .defineProperties (Matrix4 .prototype,
|
|
|
700
700
|
},
|
|
701
701
|
w:
|
|
702
702
|
{
|
|
703
|
-
get: (
|
|
703
|
+
get: (() =>
|
|
704
704
|
{
|
|
705
705
|
const vector = new Vector4 (0, 0, 0, 0);
|
|
706
706
|
|
|
@@ -709,7 +709,7 @@ Object .defineProperties (Matrix4 .prototype,
|
|
|
709
709
|
},
|
|
710
710
|
xAxis:
|
|
711
711
|
{
|
|
712
|
-
get: (
|
|
712
|
+
get: (() =>
|
|
713
713
|
{
|
|
714
714
|
const vector = new Vector3 (0, 0, 0);
|
|
715
715
|
|
|
@@ -718,7 +718,7 @@ Object .defineProperties (Matrix4 .prototype,
|
|
|
718
718
|
},
|
|
719
719
|
yAxis:
|
|
720
720
|
{
|
|
721
|
-
get: (
|
|
721
|
+
get: (() =>
|
|
722
722
|
{
|
|
723
723
|
const vector = new Vector3 (0, 0, 0);
|
|
724
724
|
|
|
@@ -727,7 +727,7 @@ Object .defineProperties (Matrix4 .prototype,
|
|
|
727
727
|
},
|
|
728
728
|
zAxis:
|
|
729
729
|
{
|
|
730
|
-
get: (
|
|
730
|
+
get: (() =>
|
|
731
731
|
{
|
|
732
732
|
const vector = new Vector3 (0, 0, 0);
|
|
733
733
|
|
|
@@ -736,7 +736,7 @@ Object .defineProperties (Matrix4 .prototype,
|
|
|
736
736
|
},
|
|
737
737
|
origin:
|
|
738
738
|
{
|
|
739
|
-
get: (
|
|
739
|
+
get: (() =>
|
|
740
740
|
{
|
|
741
741
|
const vector = new Vector3 (0, 0, 0);
|
|
742
742
|
|
|
@@ -745,7 +745,7 @@ Object .defineProperties (Matrix4 .prototype,
|
|
|
745
745
|
},
|
|
746
746
|
submatrix:
|
|
747
747
|
{
|
|
748
|
-
get: (
|
|
748
|
+
get: (() =>
|
|
749
749
|
{
|
|
750
750
|
const matrix = new Matrix3 ();
|
|
751
751
|
|
|
@@ -427,7 +427,7 @@ Object .defineProperties (Quaternion .prototype,
|
|
|
427
427
|
},
|
|
428
428
|
imag:
|
|
429
429
|
{
|
|
430
|
-
get: (
|
|
430
|
+
get: (() =>
|
|
431
431
|
{
|
|
432
432
|
const result = new Vector3 (0, 0, 0);
|
|
433
433
|
|
|
@@ -444,7 +444,7 @@ Object .defineProperties (Quaternion .prototype,
|
|
|
444
444
|
Object .assign (Quaternion,
|
|
445
445
|
{
|
|
446
446
|
Identity: new Quaternion (0, 0, 0, 1),
|
|
447
|
-
spline: (
|
|
447
|
+
spline: (() =>
|
|
448
448
|
{
|
|
449
449
|
const
|
|
450
450
|
q0 = new Quaternion (0, 0, 0, 1),
|
|
@@ -176,7 +176,7 @@ Object .assign (Rotation4 .prototype,
|
|
|
176
176
|
Math .cos (halfTheta));
|
|
177
177
|
return this;
|
|
178
178
|
},
|
|
179
|
-
get: (
|
|
179
|
+
get: (() =>
|
|
180
180
|
{
|
|
181
181
|
const result = new Vector4 (0, 0, 0, 0);
|
|
182
182
|
|
|
@@ -214,7 +214,7 @@ Object .assign (Rotation4 .prototype,
|
|
|
214
214
|
{
|
|
215
215
|
return this .set (axis .x, axis .y, axis .z, angle);
|
|
216
216
|
},
|
|
217
|
-
setFromToVec: (
|
|
217
|
+
setFromToVec: (() =>
|
|
218
218
|
{
|
|
219
219
|
const
|
|
220
220
|
from = new Vector3 (0, 0, 0),
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
|
|
48
48
|
const MapUtilities =
|
|
49
49
|
{
|
|
50
|
-
assign: (
|
|
50
|
+
assign: (() =>
|
|
51
51
|
{
|
|
52
52
|
function callback (value, key)
|
|
53
53
|
{
|
|
@@ -62,7 +62,7 @@ const MapUtilities =
|
|
|
62
62
|
return m1;
|
|
63
63
|
};
|
|
64
64
|
})(),
|
|
65
|
-
values: (
|
|
65
|
+
values: (() =>
|
|
66
66
|
{
|
|
67
67
|
function callback (value)
|
|
68
68
|
{
|