x_ite 11.6.6 → 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.
- package/README.md +4 -4
- package/dist/assets/components/AnnotationComponent.js +2 -2
- package/dist/assets/components/AnnotationComponent.min.js +2 -2
- package/dist/assets/components/CADGeometryComponent.js +27 -10
- package/dist/assets/components/CADGeometryComponent.min.js +2 -2
- package/dist/assets/components/CubeMapTexturingComponent.js +2 -2
- package/dist/assets/components/CubeMapTexturingComponent.min.js +2 -2
- package/dist/assets/components/DISComponent.js +23 -2
- package/dist/assets/components/DISComponent.min.js +2 -2
- package/dist/assets/components/EventUtilitiesComponent.js +2 -2
- package/dist/assets/components/EventUtilitiesComponent.min.js +2 -2
- package/dist/assets/components/Geometry2DComponent.js +2 -2
- package/dist/assets/components/Geometry2DComponent.min.js +2 -2
- package/dist/assets/components/GeospatialComponent.js +22 -2
- package/dist/assets/components/GeospatialComponent.min.js +2 -2
- package/dist/assets/components/HAnimComponent.js +47 -37
- package/dist/assets/components/HAnimComponent.min.js +2 -2
- package/dist/assets/components/KeyDeviceSensorComponent.js +2 -2
- package/dist/assets/components/KeyDeviceSensorComponent.min.js +2 -2
- package/dist/assets/components/LayoutComponent.js +15 -24
- package/dist/assets/components/LayoutComponent.min.js +2 -2
- package/dist/assets/components/NURBSComponent.js +11 -6
- package/dist/assets/components/NURBSComponent.min.js +2 -2
- package/dist/assets/components/ParticleSystemsComponent.js +2 -2
- package/dist/assets/components/ParticleSystemsComponent.min.js +2 -2
- package/dist/assets/components/PickingComponent.js +2 -2
- package/dist/assets/components/PickingComponent.min.js +2 -2
- package/dist/assets/components/RigidBodyPhysicsComponent.js +48 -23
- package/dist/assets/components/RigidBodyPhysicsComponent.min.js +2 -2
- package/dist/assets/components/ScriptingComponent.js +2 -2
- package/dist/assets/components/ScriptingComponent.min.js +2 -2
- package/dist/assets/components/TextComponent.js +2 -2
- package/dist/assets/components/TextComponent.min.js +2 -2
- package/dist/assets/components/TextureProjectionComponent.js +2 -2
- package/dist/assets/components/TextureProjectionComponent.min.js +2 -2
- package/dist/assets/components/Texturing3DComponent.js +4331 -4331
- package/dist/assets/components/Texturing3DComponent.min.js +2 -2
- package/dist/assets/components/VolumeRenderingComponent.js +2 -2
- package/dist/assets/components/VolumeRenderingComponent.min.js +2 -2
- package/dist/assets/components/WebXRComponent.js +2 -2
- package/dist/assets/components/WebXRComponent.min.js +2 -2
- package/dist/assets/components/X_ITEComponent.js +2 -2
- package/dist/assets/components/X_ITEComponent.min.js +2 -2
- package/dist/example.html +1 -1
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.js +51818 -51723
- package/dist/x_ite.min.js +2 -2
- package/dist/x_ite.min.mjs +2 -2
- package/dist/x_ite.mjs +49507 -49412
- package/dist/x_ite.zip +0 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* X_ITE
|
|
2
|
-
const __X_ITE_X3D__ = window [Symbol .for ("X_ITE.X3D-
|
|
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
|
|
528
|
-
this .offset
|
|
529
|
-
this .matrix
|
|
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
|
-
|
|
640
|
-
this .
|
|
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 .
|
|
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 .
|
|
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 .
|
|
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
|
-
|
|
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
|
-
|
|
784
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
{
|