x_ite 11.6.5 → 12.0.0

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 (51) 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 +27 -10
  5. package/dist/assets/components/CADGeometryComponent.min.js +2 -2
  6. package/dist/assets/components/CubeMapTexturingComponent.js +2 -2
  7. package/dist/assets/components/CubeMapTexturingComponent.min.js +2 -2
  8. package/dist/assets/components/DISComponent.js +23 -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 +22 -2
  15. package/dist/assets/components/GeospatialComponent.min.js +2 -2
  16. package/dist/assets/components/HAnimComponent.js +47 -37
  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 +15 -24
  21. package/dist/assets/components/LayoutComponent.min.js +2 -2
  22. package/dist/assets/components/NURBSComponent.js +15 -6
  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 +48 -23
  29. package/dist/assets/components/RigidBodyPhysicsComponent.min.js +2 -2
  30. package/dist/assets/components/ScriptingComponent.js +2 -2
  31. package/dist/assets/components/ScriptingComponent.min.js +2 -2
  32. package/dist/assets/components/TextComponent.js +2 -2
  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 +35 -35
  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 +2 -2
  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.js +51989 -51892
  47. package/dist/x_ite.min.js +2 -2
  48. package/dist/x_ite.min.mjs +2 -2
  49. package/dist/x_ite.mjs +51866 -51769
  50. package/dist/x_ite.zip +0 -0
  51. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- /* X_ITE v11.6.5 */
2
- const __X_ITE_X3D__ = window [Symbol .for ("X_ITE.X3D-11.6.5")];
1
+ /* X_ITE v12.0.0 */
2
+ const __X_ITE_X3D__ = window [Symbol .for ("X_ITE.X3D-12.0.0")];
3
3
  /******/ (() => { // webpackBootstrap
4
4
  /******/ var __webpack_modules__ = ({
5
5
 
@@ -524,9 +524,10 @@ function X3DNBodyCollidableNode (executionContext)
524
524
 
525
525
  // Members
526
526
 
527
- this .compoundShape = new AmmoClass .btCompoundShape ()
528
- this .offset = new (external_X_ITE_X3D_Vector3_default()) ();
529
- this .matrix = new (external_X_ITE_X3D_Matrix4_default()) ();
527
+ this .compoundShape = new AmmoClass .btCompoundShape ()
528
+ this .offset = new (external_X_ITE_X3D_Vector3_default()) ();
529
+ this .matrix = new (external_X_ITE_X3D_Matrix4_default()) ();
530
+ this .visibleObjects = [ ];
530
531
  }
531
532
 
532
533
  Object .assign (Object .setPrototypeOf (X3DNBodyCollidableNode .prototype, (external_X_ITE_X3D_X3DChildNode_default()).prototype),
@@ -551,6 +552,15 @@ Object .assign (Object .setPrototypeOf (X3DNBodyCollidableNode .prototype, (exte
551
552
 
552
553
  return bbox .set (this ._bboxSize .getValue (), this ._bboxCenter .getValue ());
553
554
  },
555
+ getShapes (shapes, parentModelMatrix)
556
+ {
557
+ const modelMatrix = parentModelMatrix .copy () .multLeft (this .matrix);
558
+
559
+ for (const visibleObject of this .visibleObjects)
560
+ visibleObject .getShapes (shapes, modelMatrix);
561
+
562
+ return shapes;
563
+ },
554
564
  getLocalTransform: (() =>
555
565
  {
556
566
  const
@@ -636,8 +646,8 @@ Object .assign (Object .setPrototypeOf (X3DNBodyCollidableNode .prototype, (exte
636
646
  this .pickableObject = null;
637
647
  this .collisionObject = null;
638
648
  this .shadowObject = null;
639
- this .visibleObject = null;
640
- this .bboxObject = null;
649
+
650
+ this .visibleObjects .length = 0;
641
651
 
642
652
  // Add node.
643
653
 
@@ -674,7 +684,7 @@ Object .assign (Object .setPrototypeOf (X3DNBodyCollidableNode .prototype, (exte
674
684
  this .shadowObject = childNode;
675
685
 
676
686
  if (childNode .isVisibleObject ())
677
- this .visibleObject = childNode;
687
+ this .visibleObjects .push (childNode);
678
688
  }
679
689
 
680
690
  if (external_X_ITE_X3D_X3DCast_default() ((external_X_ITE_X3D_X3DConstants_default()).X3DBoundedObject, childNode))
@@ -683,7 +693,7 @@ Object .assign (Object .setPrototypeOf (X3DNBodyCollidableNode .prototype, (exte
683
693
  childNode ._bboxDisplay .addInterest ("requestRebuild", this);
684
694
 
685
695
  if (childNode .isBBoxVisible ())
686
- this .bboxObject = childNode;
696
+ this .visibleObjects .push (childNode .getBBoxNode ());
687
697
  }
688
698
  }
689
699
 
@@ -721,7 +731,7 @@ Object .assign (Object .setPrototypeOf (X3DNBodyCollidableNode .prototype, (exte
721
731
  },
722
732
  set_visibleObjects__ ()
723
733
  {
724
- this .setVisibleObject (this .visibleObject || this .bboxObject || !this .isDefaultBBoxSize ());
734
+ this .setVisibleObject (this .visibleObjects .length);
725
735
  },
726
736
  requestRebuild ()
727
737
  {
@@ -762,9 +772,14 @@ Object .assign (Object .setPrototypeOf (X3DNBodyCollidableNode .prototype, (exte
762
772
  // so we do not need to add this node to the pickingHierarchy.
763
773
 
764
774
  if (this .getBrowser () .getPickable () .at (-1))
765
- this .visibleObject ?.traverse (type, renderObject);
775
+ {
776
+ for (const visibleObject of this .visibleObjects)
777
+ visibleObject .traverse (type, renderObject);
778
+ }
766
779
  else
780
+ {
767
781
  this .pickableObject ?.traverse (type, renderObject);
782
+ }
768
783
 
769
784
  break;
770
785
  }
@@ -780,8 +795,9 @@ Object .assign (Object .setPrototypeOf (X3DNBodyCollidableNode .prototype, (exte
780
795
  }
781
796
  case (external_X_ITE_X3D_TraverseType_default()).DISPLAY:
782
797
  {
783
- this .visibleObject ?.traverse (type, renderObject);
784
- this .bboxObject ?.displayBBox (type, renderObject);
798
+ for (const visibleObject of this .visibleObjects)
799
+ visibleObject .traverse (type, renderObject);
800
+
785
801
  break;
786
802
  }
787
803
  }
@@ -1275,7 +1291,10 @@ Object .assign (Object .setPrototypeOf (CollisionCollection .prototype, (externa
1275
1291
  },
1276
1292
  getBBox (bbox, shadows)
1277
1293
  {
1278
- return bbox .set ();
1294
+ if (this .isDefaultBBoxSize ())
1295
+ return bbox .set ();
1296
+
1297
+ return bbox .set (this ._bboxSize .getValue (), this ._bboxCenter .getValue ());
1279
1298
  },
1280
1299
  getAppliedParameters ()
1281
1300
  {
@@ -1667,6 +1686,7 @@ const X3DNBodyCollisionSpaceNode_default_ = X3DNBodyCollisionSpaceNode;
1667
1686
 
1668
1687
 
1669
1688
 
1689
+
1670
1690
  function CollisionSpace (executionContext)
1671
1691
  {
1672
1692
  RigidBodyPhysics_X3DNBodyCollisionSpaceNode .call (this, executionContext);
@@ -1691,9 +1711,9 @@ Object .assign (Object .setPrototypeOf (CollisionSpace .prototype, RigidBodyPhys
1691
1711
  {
1692
1712
  // TODO: add space node.
1693
1713
  if (this .isDefaultBBoxSize ())
1694
- return X3DBoundedObject .getBBox (this .collidableNodes, bbox, shadows);
1714
+ return external_X_ITE_X3D_X3DBoundedObject_default().prototype .getBBox .call (this, this .collidableNodes, bbox, shadows);
1695
1715
 
1696
- return bbox;
1716
+ return bbox .set (this ._bboxSize .getValue (), this ._bboxCenter .getValue ());
1697
1717
  },
1698
1718
  getCollidables ()
1699
1719
  {
@@ -1713,13 +1733,12 @@ Object .assign (Object .setPrototypeOf (CollisionSpace .prototype, RigidBodyPhys
1713
1733
  const collisionSpaceNode = external_X_ITE_X3D_X3DCast_default() ((external_X_ITE_X3D_X3DConstants_default()).X3DNBodyCollisionSpaceNode, node);
1714
1734
 
1715
1735
  if (collisionSpaceNode)
1716
- {
1717
- collisionSpaceNode .addInterest ("collect", this);
1718
-
1719
1736
  collisionSpaceNodes .push (collisionSpaceNode);
1720
- }
1721
1737
  }
1722
1738
 
1739
+ for (const collisionSpaceNode of collisionSpaceNodes)
1740
+ collisionSpaceNode .addInterest ("collect", this);
1741
+
1723
1742
  this .collect ();
1724
1743
  },
1725
1744
  collect ()
@@ -1745,7 +1764,7 @@ Object .assign (Object .setPrototypeOf (CollisionSpace .prototype, RigidBodyPhys
1745
1764
 
1746
1765
  if (collisionSpaceNode)
1747
1766
  {
1748
- Array .prototype .push .apply (collidableNodes, collisionSpaceNode .getCollidables ());
1767
+ collidableNodes .push (... collisionSpaceNode .getCollidables ());
1749
1768
  continue;
1750
1769
  }
1751
1770
  }
@@ -2253,7 +2272,10 @@ Object .assign (Object .setPrototypeOf (RigidBody .prototype, (external_X_ITE_X3
2253
2272
  },
2254
2273
  getBBox (bbox, shadows)
2255
2274
  {
2256
- return bbox .set ();
2275
+ if (this .isDefaultBBoxSize ())
2276
+ return bbox .set ();
2277
+
2278
+ return bbox .set (this ._bboxSize .getValue (), this ._bboxCenter .getValue ());
2257
2279
  },
2258
2280
  setCollection (value)
2259
2281
  {
@@ -2705,7 +2727,10 @@ Object .assign (Object .setPrototypeOf (RigidBodyCollection .prototype, (externa
2705
2727
  },
2706
2728
  getBBox (bbox, shadows)
2707
2729
  {
2708
- return bbox .set ();
2730
+ if (this .isDefaultBBoxSize ())
2731
+ return bbox .set ();
2732
+
2733
+ return bbox .set (this ._bboxSize .getValue (), this ._bboxCenter .getValue ());
2709
2734
  },
2710
2735
  getDynamicsWorld ()
2711
2736
  {