x_ite 12.2.2 → 12.2.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.
Files changed (52) hide show
  1. package/README.md +4 -4
  2. package/dist/assets/components/AnnotationComponent.js +2 -2
  3. package/dist/assets/components/AnnotationComponent.min.js +2 -2
  4. package/dist/assets/components/CADGeometryComponent.js +2 -2
  5. package/dist/assets/components/CADGeometryComponent.min.js +2 -2
  6. package/dist/assets/components/CubeMapTexturingComponent.js +5 -5
  7. package/dist/assets/components/CubeMapTexturingComponent.min.js +2 -2
  8. package/dist/assets/components/DISComponent.js +2 -2
  9. package/dist/assets/components/DISComponent.min.js +2 -2
  10. package/dist/assets/components/EventUtilitiesComponent.js +2 -2
  11. package/dist/assets/components/EventUtilitiesComponent.min.js +2 -2
  12. package/dist/assets/components/Geometry2DComponent.js +2 -2
  13. package/dist/assets/components/Geometry2DComponent.min.js +2 -2
  14. package/dist/assets/components/GeospatialComponent.js +2 -2
  15. package/dist/assets/components/GeospatialComponent.min.js +2 -2
  16. package/dist/assets/components/HAnimComponent.js +2 -2
  17. package/dist/assets/components/HAnimComponent.min.js +2 -2
  18. package/dist/assets/components/KeyDeviceSensorComponent.js +2 -2
  19. package/dist/assets/components/KeyDeviceSensorComponent.min.js +2 -2
  20. package/dist/assets/components/LayoutComponent.js +5 -5
  21. package/dist/assets/components/LayoutComponent.min.js +2 -2
  22. package/dist/assets/components/NURBSComponent.js +2 -2
  23. package/dist/assets/components/NURBSComponent.min.js +2 -2
  24. package/dist/assets/components/ParticleSystemsComponent.js +2 -2
  25. package/dist/assets/components/ParticleSystemsComponent.min.js +2 -2
  26. package/dist/assets/components/PickingComponent.js +2 -2
  27. package/dist/assets/components/PickingComponent.min.js +2 -2
  28. package/dist/assets/components/RigidBodyPhysicsComponent.js +63 -52
  29. package/dist/assets/components/RigidBodyPhysicsComponent.min.js +2 -2
  30. package/dist/assets/components/ScriptingComponent.js +5 -5
  31. package/dist/assets/components/ScriptingComponent.min.js +2 -2
  32. package/dist/assets/components/TextComponent.js +5 -5
  33. package/dist/assets/components/TextComponent.min.js +2 -2
  34. package/dist/assets/components/TextureProjectionComponent.js +2 -2
  35. package/dist/assets/components/TextureProjectionComponent.min.js +2 -2
  36. package/dist/assets/components/Texturing3DComponent.js +99 -99
  37. package/dist/assets/components/Texturing3DComponent.min.js +2 -2
  38. package/dist/assets/components/VolumeRenderingComponent.js +2 -2
  39. package/dist/assets/components/VolumeRenderingComponent.min.js +2 -2
  40. package/dist/assets/components/WebXRComponent.js +8 -8
  41. package/dist/assets/components/WebXRComponent.min.js +2 -2
  42. package/dist/assets/components/X_ITEComponent.js +2 -2
  43. package/dist/assets/components/X_ITEComponent.min.js +2 -2
  44. package/dist/example.html +1 -1
  45. package/dist/x_ite.css +1 -1
  46. package/dist/x_ite.d.ts +1 -1
  47. package/dist/x_ite.js +50532 -50510
  48. package/dist/x_ite.min.js +2 -2
  49. package/dist/x_ite.min.mjs +2 -2
  50. package/dist/x_ite.mjs +51319 -51297
  51. package/dist/x_ite.zip +0 -0
  52. package/package.json +3 -3
@@ -1,21 +1,21 @@
1
- /* X_ITE v12.2.2 */
2
- const __X_ITE_X3D__ = window [Symbol .for ("X_ITE.X3D-12.2.2")];
1
+ /* X_ITE v12.2.4 */
2
+ const __X_ITE_X3D__ = window [Symbol .for ("X_ITE.X3D-12.2.4")];
3
3
  /******/ (() => { // webpackBootstrap
4
4
  /******/ var __webpack_modules__ = ({
5
5
 
6
- /***/ 447:
7
- /***/ (() => {
6
+ /***/ 447
7
+ () {
8
8
 
9
9
  /* (ignored) */
10
10
 
11
- /***/ }),
11
+ /***/ },
12
12
 
13
- /***/ 923:
14
- /***/ (() => {
13
+ /***/ 923
14
+ () {
15
15
 
16
16
  /* (ignored) */
17
17
 
18
- /***/ })
18
+ /***/ }
19
19
 
20
20
  /******/ });
21
21
  /************************************************************************/
@@ -1345,13 +1345,12 @@ Object .assign (Object .setPrototypeOf (CollisionCollection .prototype, (externa
1345
1345
  const collisionSpaceNode = external_X_ITE_X3D_X3DCast_default() ((external_X_ITE_X3D_X3DConstants_default()).X3DNBodyCollisionSpaceNode, node);
1346
1346
 
1347
1347
  if (collisionSpaceNode)
1348
- {
1349
- collisionSpaceNode .addInterest ("collect", this);
1350
-
1351
1348
  collisionSpaceNodes .push (collisionSpaceNode);
1352
- }
1353
1349
  }
1354
1350
 
1351
+ for (const collisionSpaceNode of collisionSpaceNodes)
1352
+ collisionSpaceNode .addInterest ("collect", this);
1353
+
1355
1354
  this .collect ();
1356
1355
  },
1357
1356
  collect ()
@@ -1408,11 +1407,11 @@ Object .defineProperties (CollisionCollection,
1408
1407
  new (external_X_ITE_X3D_X3DFieldDefinition_default()) ((external_X_ITE_X3D_X3DConstants_default()).inputOutput, "slipFactors", new (external_X_ITE_X3D_Fields_default()).SFVec2f ()),
1409
1408
  new (external_X_ITE_X3D_X3DFieldDefinition_default()) ((external_X_ITE_X3D_X3DConstants_default()).inputOutput, "softnessConstantForceMix", new (external_X_ITE_X3D_Fields_default()).SFFloat (0.0001)),
1410
1409
  new (external_X_ITE_X3D_X3DFieldDefinition_default()) ((external_X_ITE_X3D_X3DConstants_default()).inputOutput, "softnessErrorCorrection", new (external_X_ITE_X3D_Fields_default()).SFFloat (0.8)),
1411
- new (external_X_ITE_X3D_X3DFieldDefinition_default()) ((external_X_ITE_X3D_X3DConstants_default()).inputOutput, "collidables", new (external_X_ITE_X3D_Fields_default()).MFNode ()),
1412
1410
  new (external_X_ITE_X3D_X3DFieldDefinition_default()) ((external_X_ITE_X3D_X3DConstants_default()).inputOutput, "visible", new (external_X_ITE_X3D_Fields_default()).SFBool (true)),
1413
1411
  new (external_X_ITE_X3D_X3DFieldDefinition_default()) ((external_X_ITE_X3D_X3DConstants_default()).inputOutput, "bboxDisplay", new (external_X_ITE_X3D_Fields_default()).SFBool ()),
1414
1412
  new (external_X_ITE_X3D_X3DFieldDefinition_default()) ((external_X_ITE_X3D_X3DConstants_default()).initializeOnly, "bboxSize", new (external_X_ITE_X3D_Fields_default()).SFVec3f (-1, -1, -1)),
1415
1413
  new (external_X_ITE_X3D_X3DFieldDefinition_default()) ((external_X_ITE_X3D_X3DConstants_default()).initializeOnly, "bboxCenter", new (external_X_ITE_X3D_Fields_default()).SFVec3f ()),
1414
+ new (external_X_ITE_X3D_X3DFieldDefinition_default()) ((external_X_ITE_X3D_X3DConstants_default()).inputOutput, "collidables", new (external_X_ITE_X3D_Fields_default()).MFNode ()),
1416
1415
  ]),
1417
1416
  enumerable: true,
1418
1417
  },
@@ -2363,7 +2362,7 @@ Object .assign (Object .setPrototypeOf (RigidBody .prototype, (external_X_ITE_X3
2363
2362
  if (this ._fixed .getValue ())
2364
2363
  lv .setValue (0, 0, 0);
2365
2364
  else
2366
- lv .setValue (this ._linearVelocity .x, this ._linearVelocity .y, this ._linearVelocity .z);
2365
+ lv .setValue (... this ._linearVelocity);
2367
2366
 
2368
2367
  this .rigidBody .setLinearVelocity (lv);
2369
2368
  this .rigidBody .activate ();
@@ -2378,7 +2377,7 @@ Object .assign (Object .setPrototypeOf (RigidBody .prototype, (external_X_ITE_X3
2378
2377
  if (this ._fixed .getValue ())
2379
2378
  av .setValue (0, 0, 0);
2380
2379
  else
2381
- av .setValue (this ._angularVelocity .x, this ._angularVelocity .y, this ._angularVelocity .z);
2380
+ av .setValue (... this ._angularVelocity);
2382
2381
 
2383
2382
  this .rigidBody .setAngularVelocity (av);
2384
2383
  this .rigidBody .activate ();
@@ -2391,7 +2390,7 @@ Object .assign (Object .setPrototypeOf (RigidBody .prototype, (external_X_ITE_X3
2391
2390
  return function ()
2392
2391
  {
2393
2392
  if (this ._useFiniteRotation .getValue ())
2394
- angularFactor .setValue (this ._finiteRotationAxis .x, this ._finiteRotationAxis .y, this ._finiteRotationAxis .z);
2393
+ angularFactor .setValue (... this ._finiteRotationAxis);
2395
2394
  else
2396
2395
  angularFactor .setValue (1, 1, 1);
2397
2396
 
@@ -2416,7 +2415,7 @@ Object .assign (Object .setPrototypeOf (RigidBody .prototype, (external_X_ITE_X3
2416
2415
 
2417
2416
  return function ()
2418
2417
  {
2419
- origin .setValue (this ._centerOfMass .x, this ._centerOfMass .y, this ._centerOfMass .z);
2418
+ origin .setValue (... this ._centerOfMass);
2420
2419
  centerOfMass .setOrigin (origin);
2421
2420
 
2422
2421
  this .rigidBody .setCenterOfMassTransform (centerOfMass);
@@ -2564,12 +2563,12 @@ Object .assign (Object .setPrototypeOf (RigidBody .prototype, (external_X_ITE_X3
2564
2563
  return;
2565
2564
 
2566
2565
  if (this ._useGlobalGravity .getValue ())
2567
- g .setValue (gravity .x, gravity .y, gravity .z);
2566
+ g .setValue (... gravity);
2568
2567
  else
2569
2568
  g .setValue (0, 0, 0);
2570
2569
 
2571
- f .setValue (this .force .x, this .force .y, this .force .z);
2572
- t .setValue (this .torque .x, this .torque .y, this .torque .z);
2570
+ f .setValue (... this .force);
2571
+ t .setValue (... this .torque);
2573
2572
 
2574
2573
  this .rigidBody .setGravity (g);
2575
2574
  this .rigidBody .applyForce (f, z);
@@ -2776,47 +2775,64 @@ Object .assign (Object .setPrototypeOf (RigidBodyCollection .prototype, (externa
2776
2775
  },
2777
2776
  set_collider__ ()
2778
2777
  {
2778
+ this .colliderNode ?.removeInterest ("set_colliderParameters__", this);
2779
+
2779
2780
  this .colliderNode = external_X_ITE_X3D_X3DCast_default() ((external_X_ITE_X3D_X3DConstants_default()).CollisionCollection, this ._collider);
2781
+
2782
+ this .colliderNode ?.addInterest ("set_colliderParameters__", this);
2783
+
2784
+ this .set_colliderParameters__ ();
2780
2785
  },
2781
- set_bounce__ ()
2786
+ set_colliderParameters__ ()
2782
2787
  {
2783
- const
2784
- colliderNode = this .colliderNode,
2785
- bodyNodes = this .bodyNodes;
2788
+ const colliderNode = this .colliderNode;
2786
2789
 
2787
- if (colliderNode && colliderNode ._enabled .getValue ())
2790
+ for (const bodyNode of this .bodyNodes)
2788
2791
  {
2789
- if (colliderNode .getAppliedParameters () .has (RigidBodyPhysics_AppliedParametersType .BOUNCE))
2792
+ const rigidBody = bodyNode .getRigidBody ();
2793
+
2794
+ rigidBody .setFriction (0.5);
2795
+ rigidBody .setRollingFriction (0);
2796
+ }
2797
+
2798
+ if (!colliderNode)
2799
+ return;
2800
+
2801
+ for (const parameter of colliderNode .getAppliedParameters ())
2802
+ {
2803
+ switch (parameter)
2790
2804
  {
2791
- for (const bodyNode of bodyNodes)
2805
+ case RigidBodyPhysics_AppliedParametersType .FRICTION_COEFFICIENT_2:
2792
2806
  {
2793
- const rigidBody = bodyNode .getRigidBody ();
2807
+ for (const bodyNode of this .bodyNodes)
2808
+ {
2809
+ const rigidBody = bodyNode .getRigidBody ();
2794
2810
 
2795
- if (rigidBody .getLinearVelocity () .length () >= colliderNode ._minBounceSpeed .getValue ())
2796
- rigidBody .setRestitution (colliderNode ._bounce .getValue ());
2797
- else
2798
- rigidBody .setRestitution (0);
2799
- }
2811
+ rigidBody .setFriction (colliderNode ._frictionCoefficients .x);
2812
+ rigidBody .setRollingFriction (colliderNode ._frictionCoefficients .y);
2813
+ }
2800
2814
 
2801
- return;
2815
+ break;
2816
+ }
2802
2817
  }
2803
2818
  }
2804
-
2805
- for (const bodyNode of bodyNodes)
2806
- bodyNode .getRigidBody () .setRestitution (0);
2807
2819
  },
2808
- set_frictionCoefficients__ ()
2820
+ set_bounce__ ()
2809
2821
  {
2810
- if (this .colliderNode && this .colliderNode ._enabled .getValue ())
2822
+ const colliderNode = this .colliderNode;
2823
+
2824
+ if (colliderNode ?._enabled .getValue ())
2811
2825
  {
2812
- if (this .colliderNode .getAppliedParameters () .has (RigidBodyPhysics_AppliedParametersType .FRICTION_COEFFICIENT_2))
2826
+ if (colliderNode .getAppliedParameters () .has (RigidBodyPhysics_AppliedParametersType .BOUNCE))
2813
2827
  {
2814
2828
  for (const bodyNode of this .bodyNodes)
2815
2829
  {
2816
2830
  const rigidBody = bodyNode .getRigidBody ();
2817
2831
 
2818
- rigidBody .setFriction (this .colliderNode ._frictionCoefficients .x);
2819
- rigidBody .setRollingFriction (this .colliderNode ._frictionCoefficients .y);
2832
+ if (rigidBody .getLinearVelocity () .length () >= colliderNode ._minBounceSpeed .getValue ())
2833
+ rigidBody .setRestitution (colliderNode ._bounce .getValue ());
2834
+ else
2835
+ rigidBody .setRestitution (0);
2820
2836
  }
2821
2837
 
2822
2838
  return;
@@ -2824,12 +2840,7 @@ Object .assign (Object .setPrototypeOf (RigidBodyCollection .prototype, (externa
2824
2840
  }
2825
2841
 
2826
2842
  for (const bodyNode of this .bodyNodes)
2827
- {
2828
- const rigidBody = bodyNode .getRigidBody ();
2829
-
2830
- rigidBody .setFriction (0.5);
2831
- rigidBody .setRollingFriction (0);
2832
- }
2843
+ bodyNode .getRigidBody () .setRestitution (0);
2833
2844
  },
2834
2845
  set_bodies__ ()
2835
2846
  {
@@ -2848,7 +2859,7 @@ Object .assign (Object .setPrototypeOf (RigidBodyCollection .prototype, (externa
2848
2859
  {
2849
2860
  const bodyNode = external_X_ITE_X3D_X3DCast_default() ((external_X_ITE_X3D_X3DConstants_default()).RigidBody, node);
2850
2861
 
2851
- if (! bodyNode)
2862
+ if (!bodyNode)
2852
2863
  continue;
2853
2864
 
2854
2865
  if (bodyNode .getCollection ())
@@ -2866,6 +2877,7 @@ Object .assign (Object .setPrototypeOf (RigidBodyCollection .prototype, (externa
2866
2877
  for (const bodyNode of this .bodyNodes)
2867
2878
  bodyNode ._enabled .addInterest ("set_dynamicsWorld__", this);
2868
2879
 
2880
+ this .set_colliderParameters__ ();
2869
2881
  this .set_contactSurfaceThickness__ ();
2870
2882
  this .set_dynamicsWorld__ ();
2871
2883
  this .set_joints__ ();
@@ -2879,7 +2891,7 @@ Object .assign (Object .setPrototypeOf (RigidBodyCollection .prototype, (externa
2879
2891
 
2880
2892
  for (const bodyNode of this .bodyNodes)
2881
2893
  {
2882
- if (! bodyNode ._enabled .getValue ())
2894
+ if (!bodyNode ._enabled .getValue ())
2883
2895
  continue;
2884
2896
 
2885
2897
  this .rigidBodies .push (bodyNode .getRigidBody ());
@@ -2904,7 +2916,7 @@ Object .assign (Object .setPrototypeOf (RigidBodyCollection .prototype, (externa
2904
2916
  {
2905
2917
  const jointNode = external_X_ITE_X3D_X3DCast_default() ((external_X_ITE_X3D_X3DConstants_default()).X3DRigidJointNode, node);
2906
2918
 
2907
- if (! jointNode)
2919
+ if (!jointNode)
2908
2920
  continue;
2909
2921
 
2910
2922
  if (jointNode .getCollection ())
@@ -2928,7 +2940,6 @@ Object .assign (Object .setPrototypeOf (RigidBodyCollection .prototype, (externa
2928
2940
  gravity = this ._gravity .getValue ();
2929
2941
 
2930
2942
  this .set_bounce__ ();
2931
- this .set_frictionCoefficients__ ();
2932
2943
 
2933
2944
  if (this ._preferAccuracy .getValue ())
2934
2945
  {