x_ite 9.0.2 → 9.0.3

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 (47) hide show
  1. package/dist/assets/components/Annotation.js +33 -33
  2. package/dist/assets/components/Annotation.min.js +1 -1
  3. package/dist/assets/components/CADGeometry.js +34 -34
  4. package/dist/assets/components/CADGeometry.min.js +1 -1
  5. package/dist/assets/components/CubeMapTexturing.js +99 -105
  6. package/dist/assets/components/CubeMapTexturing.min.js +1 -1
  7. package/dist/assets/components/DIS.js +92 -47
  8. package/dist/assets/components/DIS.min.js +1 -1
  9. package/dist/assets/components/EventUtilities.js +34 -34
  10. package/dist/assets/components/EventUtilities.min.js +1 -1
  11. package/dist/assets/components/Geometry2D.js +45 -45
  12. package/dist/assets/components/Geometry2D.min.js +1 -1
  13. package/dist/assets/components/Geospatial.js +90 -76
  14. package/dist/assets/components/Geospatial.min.js +1 -1
  15. package/dist/assets/components/HAnim.js +171 -149
  16. package/dist/assets/components/HAnim.min.js +1 -1
  17. package/dist/assets/components/KeyDeviceSensor.js +18 -16
  18. package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
  19. package/dist/assets/components/Layout.js +44 -44
  20. package/dist/assets/components/Layout.min.js +1 -1
  21. package/dist/assets/components/NURBS.js +68 -173
  22. package/dist/assets/components/NURBS.min.js +1 -1
  23. package/dist/assets/components/ParticleSystems.js +112 -97
  24. package/dist/assets/components/ParticleSystems.min.js +1 -1
  25. package/dist/assets/components/Picking.js +106 -102
  26. package/dist/assets/components/Picking.min.js +1 -1
  27. package/dist/assets/components/RigidBodyPhysics.js +214 -125
  28. package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
  29. package/dist/assets/components/Scripting.js +43 -43
  30. package/dist/assets/components/Scripting.min.js +1 -1
  31. package/dist/assets/components/Text.js +34 -33
  32. package/dist/assets/components/Text.min.js +1 -1
  33. package/dist/assets/components/TextureProjection.js +48 -48
  34. package/dist/assets/components/TextureProjection.min.js +1 -1
  35. package/dist/assets/components/Texturing3D.js +60 -64
  36. package/dist/assets/components/Texturing3D.min.js +1 -1
  37. package/dist/assets/components/VolumeRendering.js +66 -66
  38. package/dist/assets/components/VolumeRendering.min.js +1 -1
  39. package/dist/assets/components/X_ITE.js +12 -12
  40. package/dist/assets/components/X_ITE.min.js +1 -1
  41. package/dist/x_ite.css +1 -1
  42. package/dist/x_ite.js +1034 -818
  43. package/dist/x_ite.min.js +1 -1
  44. package/dist/x_ite.min.mjs +1 -1
  45. package/dist/x_ite.mjs +1034 -818
  46. package/dist/x_ite.zip +0 -0
  47. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- /* X_ITE v9.0.2 */(() => { // webpackBootstrap
1
+ /* X_ITE v9.0.3 */(() => { // webpackBootstrap
2
2
  /******/ "use strict";
3
3
  /******/ // The require scope
4
4
  /******/ var __webpack_require__ = {};
@@ -39,28 +39,28 @@ var __webpack_exports__ = {};
39
39
  // UNUSED EXPORTS: default
40
40
 
41
41
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components\")"
42
- const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.2")] .require ("x_ite/Components");
42
+ const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.3")] .require ("x_ite/Components");
43
43
  var Components_default = /*#__PURE__*/__webpack_require__.n(Components_namespaceObject);
44
44
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
45
- const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.2")] .require ("x_ite/Fields");
45
+ const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.3")] .require ("x_ite/Fields");
46
46
  var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
47
47
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
48
- const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.2")] .require ("x_ite/Base/X3DFieldDefinition");
48
+ const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.3")] .require ("x_ite/Base/X3DFieldDefinition");
49
49
  var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
50
50
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
51
- const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.2")] .require ("x_ite/Base/FieldDefinitionArray");
51
+ const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.3")] .require ("x_ite/Base/FieldDefinitionArray");
52
52
  var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
53
53
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DSensorNode\")"
54
- const X3DSensorNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.2")] .require ("x_ite/Components/Core/X3DSensorNode");
54
+ const X3DSensorNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.3")] .require ("x_ite/Components/Core/X3DSensorNode");
55
55
  var X3DSensorNode_default = /*#__PURE__*/__webpack_require__.n(X3DSensorNode_namespaceObject);
56
56
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Rendering/TraverseType\")"
57
- const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.2")] .require ("x_ite/Rendering/TraverseType");
57
+ const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.3")] .require ("x_ite/Rendering/TraverseType");
58
58
  var TraverseType_default = /*#__PURE__*/__webpack_require__.n(TraverseType_namespaceObject);
59
59
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
60
- const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.2")] .require ("x_ite/Base/X3DConstants");
60
+ const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.3")] .require ("x_ite/Base/X3DConstants");
61
61
  var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
62
62
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
63
- const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.2")] .require ("x_ite/Namespace");
63
+ const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.3")] .require ("x_ite/Namespace");
64
64
  var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
65
65
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Picking/MatchCriterion.js
66
66
  /*******************************************************************************
@@ -249,7 +249,7 @@ const SortOrder_default_ = SortOrder;
249
249
  Namespace_default().add ("SortOrder", "x_ite/Browser/Picking/SortOrder", SortOrder_default_);
250
250
  /* harmony default export */ const Picking_SortOrder = (SortOrder_default_);
251
251
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Matrix4\")"
252
- const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.2")] .require ("standard/Math/Numbers/Matrix4");
252
+ const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.3")] .require ("standard/Math/Numbers/Matrix4");
253
253
  var Matrix4_default = /*#__PURE__*/__webpack_require__.n(Matrix4_namespaceObject);
254
254
  ;// CONCATENATED MODULE: ./src/standard/Math/Algorithms/QuickSort.js
255
255
  /*******************************************************************************
@@ -363,7 +363,7 @@ const QuickSort_default_ = QuickSort;
363
363
  Namespace_default().add ("QuickSort", "standard/Math/Algorithms/QuickSort", QuickSort_default_);
364
364
  /* harmony default export */ const Algorithms_QuickSort = (QuickSort_default_);
365
365
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Utility/ObjectCache\")"
366
- const ObjectCache_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.2")] .require ("standard/Utility/ObjectCache");
366
+ const ObjectCache_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.3")] .require ("standard/Utility/ObjectCache");
367
367
  var ObjectCache_default = /*#__PURE__*/__webpack_require__.n(ObjectCache_namespaceObject);
368
368
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Picking/X3DPickSensorNode.js
369
369
  /*******************************************************************************
@@ -799,9 +799,9 @@ Object .defineProperties (X3DPickSensorNode,
799
799
  value: "X3DPickSensorNode",
800
800
  enumerable: true,
801
801
  },
802
- componentName:
802
+ componentInfo:
803
803
  {
804
- value: "Picking",
804
+ value: Object .freeze ({ name: "Picking", level: 1 }),
805
805
  enumerable: true,
806
806
  },
807
807
  });
@@ -812,13 +812,13 @@ const X3DPickSensorNode_default_ = X3DPickSensorNode;
812
812
  Namespace_default().add ("X3DPickSensorNode", "x_ite/Components/Picking/X3DPickSensorNode", X3DPickSensorNode_default_);
813
813
  /* harmony default export */ const Picking_X3DPickSensorNode = (X3DPickSensorNode_default_);
814
814
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector3\")"
815
- const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.2")] .require ("standard/Math/Numbers/Vector3");
815
+ const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.3")] .require ("standard/Math/Numbers/Vector3");
816
816
  var Vector3_default = /*#__PURE__*/__webpack_require__.n(Vector3_namespaceObject);
817
817
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Geometry/Box3\")"
818
- const Box3_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.2")] .require ("standard/Math/Geometry/Box3");
818
+ const Box3_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.3")] .require ("standard/Math/Geometry/Box3");
819
819
  var Box3_default = /*#__PURE__*/__webpack_require__.n(Box3_namespaceObject);
820
820
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Geometry/Line3\")"
821
- const Line3_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.2")] .require ("standard/Math/Geometry/Line3");
821
+ const Line3_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.3")] .require ("standard/Math/Geometry/Line3");
822
822
  var Line3_default = /*#__PURE__*/__webpack_require__.n(Line3_namespaceObject);
823
823
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Picking/LinePickSensor.js
824
824
  /*******************************************************************************
@@ -1123,9 +1123,9 @@ Object .defineProperties (LinePickSensor,
1123
1123
  value: "LinePickSensor",
1124
1124
  enumerable: true,
1125
1125
  },
1126
- componentName:
1126
+ componentInfo:
1127
1127
  {
1128
- value: "Picking",
1128
+ value: Object .freeze ({ name: "Picking", level: 1 }),
1129
1129
  enumerable: true,
1130
1130
  },
1131
1131
  containerField:
@@ -1135,13 +1135,14 @@ Object .defineProperties (LinePickSensor,
1135
1135
  },
1136
1136
  specificationRange:
1137
1137
  {
1138
- value: Object .freeze (["3.2", "Infinity"]),
1138
+ value: Object .freeze ({ from: "3.2", to: "Infinity" }),
1139
1139
  enumerable: true,
1140
1140
  },
1141
1141
  fieldDefinitions:
1142
1142
  {
1143
1143
  value: new (FieldDefinitionArray_default()) ([
1144
1144
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
1145
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "description", new (Fields_default()).SFString ()),
1145
1146
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
1146
1147
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "objectType", new (Fields_default()).MFString ("ALL")),
1147
1148
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "matchCriterion", new (Fields_default()).SFString ("MATCH_ANY")),
@@ -1165,7 +1166,7 @@ const LinePickSensor_default_ = LinePickSensor;
1165
1166
  Namespace_default().add ("LinePickSensor", "x_ite/Components/Picking/LinePickSensor", LinePickSensor_default_);
1166
1167
  /* harmony default export */ const Picking_LinePickSensor = (LinePickSensor_default_);
1167
1168
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DGroupingNode\")"
1168
- const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.2")] .require ("x_ite/Components/Grouping/X3DGroupingNode");
1169
+ const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.3")] .require ("x_ite/Components/Grouping/X3DGroupingNode");
1169
1170
  var X3DGroupingNode_default = /*#__PURE__*/__webpack_require__.n(X3DGroupingNode_namespaceObject);
1170
1171
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Picking/X3DPickableObject.js
1171
1172
  /*******************************************************************************
@@ -1255,9 +1256,9 @@ Object .defineProperties (X3DPickableObject,
1255
1256
  value: "X3DPickableObject",
1256
1257
  enumerable: true,
1257
1258
  },
1258
- componentName:
1259
+ componentInfo:
1259
1260
  {
1260
- value: "Picking",
1261
+ value: Object .freeze ({ name: "Picking", level: 1 }),
1261
1262
  enumerable: true,
1262
1263
  },
1263
1264
  });
@@ -1330,6 +1331,8 @@ function PickableGroup (executionContext)
1330
1331
  Picking_X3DPickableObject .call (this, executionContext);
1331
1332
 
1332
1333
  this .addType ((X3DConstants_default()).PickableGroup);
1334
+
1335
+ this .pickSensorNodes = new Set ();
1333
1336
  }
1334
1337
 
1335
1338
  Object .assign (Object .setPrototypeOf (PickableGroup .prototype, (X3DGroupingNode_default()).prototype),
@@ -1352,97 +1355,94 @@ Object .assign (Object .setPrototypeOf (PickableGroup .prototype, (X3DGroupingNo
1352
1355
  {
1353
1356
  this .setPickableObject (!!(this ._pickable .getValue () || this .getTransformSensors () .size));
1354
1357
  },
1355
- traverse: (() =>
1358
+ traverse (type, renderObject)
1356
1359
  {
1357
- const pickSensorNodes = new Set ();
1358
-
1359
- return function (type, renderObject)
1360
+ if (type === (TraverseType_default()).PICKING)
1360
1361
  {
1361
- if (type === (TraverseType_default()).PICKING)
1362
+ if (this ._pickable .getValue ())
1362
1363
  {
1363
- if (this ._pickable .getValue ())
1364
+ if (this .getObjectType () .has ("NONE"))
1365
+ return;
1366
+
1367
+ const
1368
+ browser = this .getBrowser (),
1369
+ pickableStack = browser .getPickable ();
1370
+
1371
+ if (this .getObjectType () .has ("ALL"))
1364
1372
  {
1365
- if (this .getObjectType () .has ("NONE"))
1366
- return;
1373
+ pickableStack .push (true);
1374
+ X3DGroupingNode_default().prototype .traverse .call (this, type, renderObject);
1375
+ pickableStack .pop ();
1376
+ }
1377
+ else
1378
+ {
1379
+ // Filter pick sensors.
1367
1380
 
1368
1381
  const
1369
- browser = this .getBrowser (),
1370
- pickableStack = browser .getPickable ();
1382
+ pickSensorNodes = this .pickSensorNodes,
1383
+ pickSensorStack = browser .getPickSensors ();
1371
1384
 
1372
- if (this .getObjectType () .has ("ALL"))
1385
+ for (const pickSensorNode of pickSensorStack .at (-1))
1373
1386
  {
1374
- pickableStack .push (true);
1375
- X3DGroupingNode_default().prototype .traverse .call (this, type, renderObject);
1376
- pickableStack .pop ();
1377
- }
1378
- else
1379
- {
1380
- // Filter pick sensors.
1381
-
1382
- const pickSensorStack = browser .getPickSensors ();
1383
-
1384
- for (const pickSensorNode of pickSensorStack .at (-1))
1387
+ if (!pickSensorNode .getObjectType () .has ("ALL"))
1385
1388
  {
1386
- if (! pickSensorNode .getObjectType () .has ("ALL"))
1387
- {
1388
- let intersection = 0;
1389
+ let intersection = 0;
1389
1390
 
1390
- for (const objectType of this .getObjectType ())
1391
+ for (const objectType of this .getObjectType ())
1392
+ {
1393
+ if (pickSensorNode .getObjectType () .has (objectType))
1391
1394
  {
1392
- if (pickSensorNode .getObjectType () .has (objectType))
1393
- {
1394
- ++ intersection;
1395
- break;
1396
- }
1395
+ ++ intersection;
1396
+ break;
1397
1397
  }
1398
+ }
1398
1399
 
1399
- switch (pickSensorNode .getMatchCriterion ())
1400
+ switch (pickSensorNode .getMatchCriterion ())
1401
+ {
1402
+ case Picking_MatchCriterion .MATCH_ANY:
1400
1403
  {
1401
- case Picking_MatchCriterion .MATCH_ANY:
1402
- {
1403
- if (intersection === 0)
1404
- continue;
1404
+ if (intersection === 0)
1405
+ continue;
1405
1406
 
1406
- break;
1407
- }
1408
- case Picking_MatchCriterion .MATCH_EVERY:
1409
- {
1410
- if (intersection !== pickSensor .getObjectType () .size)
1411
- continue;
1407
+ break;
1408
+ }
1409
+ case Picking_MatchCriterion .MATCH_EVERY:
1410
+ {
1411
+ if (intersection !== pickSensor .getObjectType () .size)
1412
+ continue;
1412
1413
 
1413
- break;
1414
- }
1415
- case Picking_MatchCriterion .MATCH_ONLY_ONE:
1416
- {
1417
- if (intersection !== 1)
1418
- continue;
1414
+ break;
1415
+ }
1416
+ case Picking_MatchCriterion .MATCH_ONLY_ONE:
1417
+ {
1418
+ if (intersection !== 1)
1419
+ continue;
1419
1420
 
1420
- break;
1421
- }
1421
+ break;
1422
1422
  }
1423
1423
  }
1424
-
1425
- pickSensorNodes .add (pickSensorNode);
1426
1424
  }
1427
1425
 
1428
- pickableStack .push (true);
1429
- pickSensorStack .push (pickSensorNodes);
1426
+ pickSensorNodes .add (pickSensorNode);
1427
+ }
1430
1428
 
1431
- X3DGroupingNode_default().prototype .traverse .call (this, type, renderObject);
1429
+ pickableStack .push (true);
1430
+ pickSensorStack .push (pickSensorNodes);
1432
1431
 
1433
- pickSensorStack .pop ();
1434
- pickableStack .pop ();
1432
+ X3DGroupingNode_default().prototype .traverse .call (this, type, renderObject);
1435
1433
 
1436
- pickSensorNodes .clear ();
1437
- }
1434
+ pickSensorStack .pop ();
1435
+ pickableStack .pop ();
1436
+
1437
+ pickSensorNodes .clear ();
1438
1438
  }
1439
1439
  }
1440
- else
1441
- {
1442
- X3DGroupingNode_default().prototype .traverse .call (this, type, renderObject);
1443
- }
1444
- };
1445
- })(),
1440
+ }
1441
+ else
1442
+ {
1443
+ X3DGroupingNode_default().prototype .traverse .call (this, type, renderObject);
1444
+ }
1445
+ },
1446
1446
  dispose ()
1447
1447
  {
1448
1448
  Picking_X3DPickableObject .prototype .dispose .call (this);
@@ -1457,9 +1457,9 @@ Object .defineProperties (PickableGroup,
1457
1457
  value: "PickableGroup",
1458
1458
  enumerable: true,
1459
1459
  },
1460
- componentName:
1460
+ componentInfo:
1461
1461
  {
1462
- value: "Picking",
1462
+ value: Object .freeze ({ name: "Picking", level: 1 }),
1463
1463
  enumerable: true,
1464
1464
  },
1465
1465
  containerField:
@@ -1469,13 +1469,14 @@ Object .defineProperties (PickableGroup,
1469
1469
  },
1470
1470
  specificationRange:
1471
1471
  {
1472
- value: Object .freeze (["3.2", "Infinity"]),
1472
+ value: Object .freeze ({ from: "3.2", to: "Infinity" }),
1473
1473
  enumerable: true,
1474
1474
  },
1475
1475
  fieldDefinitions:
1476
1476
  {
1477
1477
  value: new (FieldDefinitionArray_default()) ([
1478
1478
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
1479
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "description", new (Fields_default()).SFString ()),
1479
1480
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "pickable", new (Fields_default()).SFBool (true)),
1480
1481
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "objectType", new (Fields_default()).MFString ("ALL")),
1481
1482
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "visible", new (Fields_default()).SFBool (true)),
@@ -1496,13 +1497,13 @@ const PickableGroup_default_ = PickableGroup;
1496
1497
  Namespace_default().add ("PickableGroup", "x_ite/Components/Picking/PickableGroup", PickableGroup_default_);
1497
1498
  /* harmony default export */ const Picking_PickableGroup = (PickableGroup_default_);
1498
1499
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DCast\")"
1499
- const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.2")] .require ("x_ite/Base/X3DCast");
1500
+ const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.3")] .require ("x_ite/Base/X3DCast");
1500
1501
  var X3DCast_default = /*#__PURE__*/__webpack_require__.n(X3DCast_namespaceObject);
1501
1502
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Rotation4\")"
1502
- const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.2")] .require ("standard/Math/Numbers/Rotation4");
1503
+ const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.3")] .require ("standard/Math/Numbers/Rotation4");
1503
1504
  var Rotation4_default = /*#__PURE__*/__webpack_require__.n(Rotation4_namespaceObject);
1504
1505
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"lib/ammojs/AmmoClass\")"
1505
- const AmmoClass_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.2")] .require ("lib/ammojs/AmmoClass");
1506
+ const AmmoClass_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.0.3")] .require ("lib/ammojs/AmmoClass");
1506
1507
  var AmmoClass_default = /*#__PURE__*/__webpack_require__.n(AmmoClass_namespaceObject);
1507
1508
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Picking/VolumePicker.js
1508
1509
  /*******************************************************************************
@@ -2002,9 +2003,9 @@ Object .defineProperties (PointPickSensor,
2002
2003
  value: "PointPickSensor",
2003
2004
  enumerable: true,
2004
2005
  },
2005
- componentName:
2006
+ componentInfo:
2006
2007
  {
2007
- value: "Picking",
2008
+ value: Object .freeze ({ name: "Picking", level: 1 }),
2008
2009
  enumerable: true,
2009
2010
  },
2010
2011
  containerField:
@@ -2014,13 +2015,14 @@ Object .defineProperties (PointPickSensor,
2014
2015
  },
2015
2016
  specificationRange:
2016
2017
  {
2017
- value: Object .freeze (["3.2", "Infinity"]),
2018
+ value: Object .freeze ({ from: "3.2", to: "Infinity" }),
2018
2019
  enumerable: true,
2019
2020
  },
2020
2021
  fieldDefinitions:
2021
2022
  {
2022
2023
  value: new (FieldDefinitionArray_default()) ([
2023
2024
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
2025
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "description", new (Fields_default()).SFString ()),
2024
2026
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
2025
2027
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "objectType", new (Fields_default()).MFString ("ALL")),
2026
2028
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "matchCriterion", new (Fields_default()).SFString ("MATCH_ANY")),
@@ -2278,9 +2280,9 @@ Object .defineProperties (PrimitivePickSensor,
2278
2280
  value: "PrimitivePickSensor",
2279
2281
  enumerable: true,
2280
2282
  },
2281
- componentName:
2283
+ componentInfo:
2282
2284
  {
2283
- value: "Picking",
2285
+ value: Object .freeze ({ name: "Picking", level: 2 }),
2284
2286
  enumerable: true,
2285
2287
  },
2286
2288
  containerField:
@@ -2290,13 +2292,14 @@ Object .defineProperties (PrimitivePickSensor,
2290
2292
  },
2291
2293
  specificationRange:
2292
2294
  {
2293
- value: Object .freeze (["3.2", "Infinity"]),
2295
+ value: Object .freeze ({ from: "3.2", to: "Infinity" }),
2294
2296
  enumerable: true,
2295
2297
  },
2296
2298
  fieldDefinitions:
2297
2299
  {
2298
2300
  value: new (FieldDefinitionArray_default()) ([
2299
2301
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
2302
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "description", new (Fields_default()).SFString ()),
2300
2303
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
2301
2304
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "objectType", new (Fields_default()).MFString ("ALL")),
2302
2305
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "matchCriterion", new (Fields_default()).SFString ("MATCH_ANY")),
@@ -2528,9 +2531,9 @@ Object .defineProperties (VolumePickSensor,
2528
2531
  value: "VolumePickSensor",
2529
2532
  enumerable: true,
2530
2533
  },
2531
- componentName:
2534
+ componentInfo:
2532
2535
  {
2533
- value: "Picking",
2536
+ value: Object .freeze ({ name: "Picking", level: 3 }),
2534
2537
  enumerable: true,
2535
2538
  },
2536
2539
  containerField:
@@ -2540,13 +2543,14 @@ Object .defineProperties (VolumePickSensor,
2540
2543
  },
2541
2544
  specificationRange:
2542
2545
  {
2543
- value: Object .freeze (["3.2", "Infinity"]),
2546
+ value: Object .freeze ({ from: "3.2", to: "Infinity" }),
2544
2547
  enumerable: true,
2545
2548
  },
2546
2549
  fieldDefinitions:
2547
2550
  {
2548
2551
  value: new (FieldDefinitionArray_default()) ([
2549
2552
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
2553
+ new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "description", new (Fields_default()).SFString ()),
2550
2554
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
2551
2555
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "objectType", new (Fields_default()).MFString ("ALL")),
2552
2556
  new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "matchCriterion", new (Fields_default()).SFString ("MATCH_ANY")),
@@ -1 +1 @@
1
- /* X_ITE v9.0.2 */(()=>{"use strict";var e={n:t=>{var i=t&&t.__esModule?()=>t.default:()=>t;return e.d(i,{a:i}),i},d:(t,i)=>{for(var n in i)e.o(i,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:i[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window[Symbol.for("X_ITE.X3D-9.0.2")].require("x_ite/Components");var i=e.n(t);const n=window[Symbol.for("X_ITE.X3D-9.0.2")].require("x_ite/Fields");var s=e.n(n);const o=window[Symbol.for("X_ITE.X3D-9.0.2")].require("x_ite/Base/X3DFieldDefinition");var r=e.n(o);const a=window[Symbol.for("X_ITE.X3D-9.0.2")].require("x_ite/Base/FieldDefinitionArray");var c=e.n(a);const h=window[Symbol.for("X_ITE.X3D-9.0.2")].require("x_ite/Components/Core/X3DSensorNode");var p=e.n(h);const l=window[Symbol.for("X_ITE.X3D-9.0.2")].require("x_ite/Rendering/TraverseType");var d=e.n(l);const g=window[Symbol.for("X_ITE.X3D-9.0.2")].require("x_ite/Base/X3DConstants");var u=e.n(g);const m=window[Symbol.for("X_ITE.X3D-9.0.2")].require("x_ite/Namespace");var y=e.n(m);let _=0;const w={MATCH_ANY:_++,MATCH_EVERY:_++,MATCH_ONLY_ONE:_++};y().add("MatchCriterion","x_ite/Browser/Picking/MatchCriterion",w);const k=w;let S=0;const b={BOUNDS:S++,GEOMETRY:S++};y().add("IntersectionType","x_ite/Browser/Picking/IntersectionType",b);const f=b;let v=0;const O={ANY:v++,CLOSEST:v++,ALL:v++,ALL_SORTED:v++};y().add("SortOrder","x_ite/Browser/Picking/SortOrder",O);const T=O,N=window[Symbol.for("X_ITE.X3D-9.0.2")].require("standard/Math/Numbers/Matrix4");var C=e.n(N);function P(e,t){this.array=e,t&&(this.compare=t)}Object.assign(P.prototype,{compare:(e,t)=>e<t,sort(e,t){t-e>1&&this.quicksort(e,t-1)},quicksort(e,t){let i=e,n=t;const{array:s,compare:o}=this,r=s[e+t>>>1];for(;;){for(;o(s[i],r);)++i;for(;o(r,s[n]);)--n;if(!(i<n)){i===n&&(++i,--n);break}{const e=s[i];s[i]=s[n],s[n]=e,i++,n--}}e<n&&this.quicksort(e,n),i<t&&this.quicksort(i,t)}});const G=P;y().add("QuickSort","standard/Math/Algorithms/QuickSort",G);const M=G,x=window[Symbol.for("X_ITE.X3D-9.0.2")].require("standard/Utility/ObjectCache");var B,j,A,D=e.n(x)()(C());function F(e,t){return e.distance<t.distance}function E(e){p().call(this,e),this.addType(u().X3DPickSensorNode),this.objectType=new Set,this.intersectionType=f.BOUNDS,this.sortOrder=T.CLOSEST,this.pickTargetNodes=new Set,this.modelMatrices=[],this.targets=[],this.targets.size=0,this.pickedTargets=[],this.pickedTargetsSorter=new M(this.pickedTargets,F),this.pickedGeometries=new(s().MFNode)}Object.assign(Object.setPrototypeOf(E.prototype,p().prototype),{initialize(){this.getLive().addInterest("set_live__",this),this._enabled.addInterest("set_live__",this),this._objectType.addInterest("set_objectType__",this),this._matchCriterion.addInterest("set_matchCriterion__",this),this._intersectionType.addInterest("set_intersectionType__",this),this._sortOrder.addInterest("set_sortOrder__",this),this._pickTarget.addInterest("set_pickTarget__",this),this.set_objectType__(),this.set_matchCriterion__(),this.set_intersectionType__(),this.set_sortOrder__(),this.set_pickTarget__()},getObjectType(){return this.objectType},getMatchCriterion(){return this.matchCriterion},getIntersectionType(){return this.intersectionType},getSortOrder(){return this.sortOrder},getModelMatrices(){return this.modelMatrices},getTargets(){return this.targets},getPickShape:(()=>{const e=new WeakMap;return function(t){const i=e.get(t);if(void 0!==i)return i;const n=this.getBrowser(),s=n.getPrivateScene().createNode("Shape",!1),o=n.getPrivateScene().createNode("CollidableShape",!1);return s.setPrivate(!0),o.setPrivate(!0),o.setConvex(!0),s._geometry=t,o._shape=s,s.setup(),o.setup(),e.set(t,o),o}})(),getPickedGeometries:function(){var e=this.targets,t=e.size,i=this.pickedTargets,n=this.pickedGeometries;i.length=0;for(var s=0;s<t;++s){var o=e[s];o.intersected&&i.push(o)}if(0===i.length)return n.length=0,n;switch(this.sortOrder){case T.ANY:i.length=1,n[0]=this.getPickedGeometry(i[0]),n.length=1;break;case T.CLOSEST:this.pickedTargetsSorter.sort(0,i.length),i.length=1,n[0]=this.getPickedGeometry(i[0]),n.length=1;break;case T.ALL:s=0;for(var r=i.length;s<r;++s)n[s]=this.getPickedGeometry(i[s]);n.length=r;break;case T.ALL_SORTED:for(this.pickedTargetsSorter.sort(0,i.length),s=0,r=i.length;s<r;++s)n[s]=this.getPickedGeometry(i[s]);n.length=r}return n},getPickedGeometry(e){var t=this.getExecutionContext(),i=e.geometryNode;if(i.getExecutionContext()===t)return i;if((o=i.getExecutionContext()).getType().includes(u().X3DPrototypeInstance)&&o.getExecutionContext()===t)return o;for(var n=e.pickingHierarchy,s=n.length-1;s>=0;--s){var o,r=n[s];if(r.getExecutionContext()===t)return r;if((o=r.getExecutionContext()).getType().includes(u().X3DPrototypeInstance)&&o.getExecutionContext()===t)return o}return null},getPickedTargets(){return this.pickedTargets},set_live__(){this.getLive().getValue()&&this._enabled.getValue()&&!this.objectType.has("NONE")?(this.getBrowser().addPickSensor(this),this.setPickableObject(!0)):(this.getBrowser().removePickSensor(this),this.setPickableObject(!1))},set_objectType__(){this.objectType.clear();for(var e=0,t=this._objectType.length;e<t;++e)this.objectType.add(this._objectType[e]);this.set_live__()},set_matchCriterion__:(A=new Map([["MATCH_ANY",k.MATCH_ANY],["MATCH_EVERY",k.MATCH_EVERY],["MATCH_ONLY_ONE",k.MATCH_ONLY_ONE]]),function(){this.matchCriterion=A.get(this._matchCriterion.getValue()),void 0===this.matchCriterion&&(this.matchCriterion=MatchCriterionType.MATCH_ANY)}),set_intersectionType__:(j=new Map([["BOUNDS",f.BOUNDS],["GEOMETRY",f.GEOMETRY]]),function(){this.intersectionType=j.get(this._intersectionType.getValue()),void 0===this.intersectionType&&(this.intersectionType=f.BOUNDS)}),set_sortOrder__:(B=new Map([["ANY",T.ANY],["CLOSEST",T.CLOSEST],["ALL",T.ALL],["ALL_SORTED",T.ALL_SORTED]]),function(){this.sortOrder=B.get(this._sortOrder.getValue()),void 0===this.sortOrder&&(this.sortOrder=T.CLOSEST)}),set_pickTarget__(){this.pickTargetNodes.clear();for(var e=0,t=this._pickTarget.length;e<t;++e)try{for(var i=this._pickTarget[e].getValue().getInnerNode(),n=i.getType(),s=n.length-1;s>=0;--s)switch(n[s]){case u().Inline:case u().Shape:case u().X3DGroupingNode:this.pickTargetNodes.add(i);break;default:continue}}catch{}},traverse(e,t){e===d().PICKING&&this.isPickableObject()&&this.modelMatrices.push(D.pop().assign(t.getModelViewMatrix().get()))},collect(e,t,i){var n=this.pickTargetNodes;if(i.some((e=>n.has(e)))){var s=this.targets;if(s.size<s.length)var o=s[s.size];else{o={modelMatrix:new(C()),pickingHierarchy:[],pickedPoint:[],intersections:[]};s.push(o)}++s.size,o.intersected=!1,o.geometryNode=e,o.pickedPoint.length=0,o.intersections.length=0,o.modelMatrix.assign(t);for(var r=o.pickingHierarchy,a=0,c=i.length;a<c;++a)r[a]=i[a];r.length=c}},process(){for(var e=this.modelMatrices,t=0,i=e.length;t<i;++t)D.push(e[t]);this.modelMatrices.length=0,this.targets.size=0}}),Object.defineProperties(E,{typeName:{value:"X3DPickSensorNode",enumerable:!0},componentName:{value:"Picking",enumerable:!0}});const I=E;y().add("X3DPickSensorNode","x_ite/Components/Picking/X3DPickSensorNode",I);const L=I,V=window[Symbol.for("X_ITE.X3D-9.0.2")].require("standard/Math/Numbers/Vector3");var z=e.n(V);const X=window[Symbol.for("X_ITE.X3D-9.0.2")].require("standard/Math/Geometry/Box3");var R=e.n(X);const q=window[Symbol.for("X_ITE.X3D-9.0.2")].require("standard/Math/Geometry/Line3");var Y,H,U,W,K,Q,Z,J,$,ee,te,ie,ne,se,oe,re,ae=e.n(q);function ce(e){L.call(this,e),this.addType(u().LinePickSensor),this.pickingGeometryNode=null}Object.assign(Object.setPrototypeOf(ce.prototype,L.prototype),{initialize(){L.prototype.initialize.call(this),this._pickingGeometry.addInterest("set_pickingGeometry__",this),this.set_pickingGeometry__()},set_pickingGeometry__(){this.pickingGeometryNode=null;try{for(var e=this._pickingGeometry.getValue().getInnerNode(),t=e.getType(),i=t.length-1;i>=0;--i)switch(t[i]){case u().IndexedLineSet:case u().LineSet:this.pickingGeometryNode=e;break;default:continue}}catch{}},process:(Y=new(R()),H=new(R()),U=new(z())(0,0,0),W=new(z())(0,0,0),K=new(C()),Q=new(z())(0,0,0),Z=new(z())(0,0,0),J=new(ae())(z().Zero,z().zAxis),$=new(z())(0,0,0),ee=new(z())(0,0,0),te=[],ie=[],ne=new(z())(0,0,0),se=new(s().MFVec3f),oe=new(s().MFVec3f),re=new(s().MFVec3f),function(){if(this.pickingGeometryNode){var e=this.getModelMatrices(),t=this.getTargets();switch(this.getIntersectionType()){case f.BOUNDS:for(var i=0,n=e.length;i<n;++i){var s=e[i];Y.assign(this.pickingGeometryNode.getBBox()).multRight(s);for(var o=0,r=t.size;o<r;++o){var a=t[o];H.assign(a.geometryNode.getBBox()).multRight(a.modelMatrix),Y.intersectsBox(H)&&(U.assign(Y.center),W.assign(H.center),a.intersected=!0,a.distance=U.distance(W))}}var c=!!(y=this.getPickedGeometries()).length;y.assign(y.filter((e=>e))),c!==this._isActive.getValue()&&(this._isActive=c),this._pickedGeometry.equals(y)||(this._pickedGeometry=y);break;case f.GEOMETRY:for(i=0,n=e.length;i<n;++i)for(s=e[i],Y.assign(this.pickingGeometryNode.getBBox()).multRight(s),o=0,r=t.size;o<r;++o){var h=(a=t[o]).geometryNode,p=this.pickingGeometryNode.getVertices();H.assign(h.getBBox()).multRight(a.modelMatrix),K.assign(a.modelMatrix).inverse().multLeft(s);for(var l=0,d=p.length;l<d;l+=8)if(K.multVecMatrix(Q.set(p[l+0],p[l+1],p[l+2])),K.multVecMatrix(Z.set(p[l+4],p[l+5],p[l+6])),J.setPoints(Q,Z),ie.length=0,h.intersectsLine(J,a.modelMatrix,te,ie))for(var g=0,u=ie.length;g<u;++g){var m=ie[g];$.assign(m.point).subtract(Q),ee.assign(m.point).subtract(Z),$.add(ee).magnitude()<=Q.distance(Z)&&a.intersections.push(m)}a.intersections.length&&(U.assign(Y.center),W.assign(H.center),a.intersected=!0,a.distance=U.distance(W))}var y;c=!!(y=this.getPickedGeometries()).length,y.assign(y.filter((e=>e))),c!==this._isActive.getValue()&&(this._isActive=c),this._pickedGeometry.equals(y)||(this._pickedGeometry=y);var _=this.getPickedTargets();for(se.length=0,oe.length=0,re.length=0,o=0,r=_.length;o<r;++o){var w=_[o].intersections;for(g=0,u=w.length;g<u;++g)o=(m=w[g]).texCoord,ne.set(o.x,o.y,o.z),se.push(ne),oe.push(m.normal),re.push(m.point)}this._pickedTextureCoordinate.equals(se)||(this._pickedTextureCoordinate=se),this._pickedNormal.equals(oe)||(this._pickedNormal=oe),this._pickedPoint.equals(re)||(this._pickedPoint=re)}}L.prototype.process.call(this)})}),Object.defineProperties(ce,{typeName:{value:"LinePickSensor",enumerable:!0},componentName:{value:"Picking",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.2","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(c())([new(r())(u().inputOutput,"metadata",new(s().SFNode)),new(r())(u().inputOutput,"enabled",new(s().SFBool)(!0)),new(r())(u().inputOutput,"objectType",new(s().MFString)("ALL")),new(r())(u().inputOutput,"matchCriterion",new(s().SFString)("MATCH_ANY")),new(r())(u().initializeOnly,"intersectionType",new(s().SFString)("BOUNDS")),new(r())(u().initializeOnly,"sortOrder",new(s().SFString)("CLOSEST")),new(r())(u().outputOnly,"isActive",new(s().SFBool)),new(r())(u().outputOnly,"pickedTextureCoordinate",new(s().MFVec3f)),new(r())(u().outputOnly,"pickedNormal",new(s().MFVec3f)),new(r())(u().outputOnly,"pickedPoint",new(s().MFVec3f)),new(r())(u().inputOutput,"pickingGeometry",new(s().SFNode)),new(r())(u().inputOutput,"pickTarget",new(s().MFNode)),new(r())(u().outputOnly,"pickedGeometry",new(s().MFNode))]),enumerable:!0}});const he=ce;y().add("LinePickSensor","x_ite/Components/Picking/LinePickSensor",he);const pe=he,le=window[Symbol.for("X_ITE.X3D-9.0.2")].require("x_ite/Components/Grouping/X3DGroupingNode");var de=e.n(le);function ge(e){this.addType(u().X3DPickableObject),this.objectType=new Set}Object.assign(ge.prototype,{initialize(){this._objectType.addInterest("set_objectType__",this),this.set_objectType__()},getObjectType(){return this.objectType},set_objectType__(){this.objectType.clear();for(var e=0,t=this._objectType.length;e<t;++e)this.objectType.add(this._objectType[e])},dispose(){}}),Object.defineProperties(ge,{typeName:{value:"X3DPickableObject",enumerable:!0},componentName:{value:"Picking",enumerable:!0}});const ue=ge;y().add("X3DPickableObject","x_ite/Components/Picking/X3DPickableObject",ue);const me=ue;function ye(e){de().call(this,e),me.call(this,e),this.addType(u().PickableGroup)}Object.assign(Object.setPrototypeOf(ye.prototype,de().prototype),me.prototype,{initialize(){de().prototype.initialize.call(this),me.prototype.initialize.call(this),this._pickable.addInterest("set_pickable__",this),this.set_pickable__()},set_pickableObjects__(){this.set_pickable__()},set_pickable__(){this.setPickableObject(!(!this._pickable.getValue()&&!this.getTransformSensors().size))},traverse:(()=>{const e=new Set;return function(t,i){if(t===d().PICKING){if(this._pickable.getValue()){if(this.getObjectType().has("NONE"))return;const n=this.getBrowser(),s=n.getPickable();if(this.getObjectType().has("ALL"))s.push(!0),de().prototype.traverse.call(this,t,i),s.pop();else{const o=n.getPickSensors();for(const t of o.at(-1)){if(!t.getObjectType().has("ALL")){let e=0;for(const i of this.getObjectType())if(t.getObjectType().has(i)){++e;break}switch(t.getMatchCriterion()){case k.MATCH_ANY:if(0===e)continue;break;case k.MATCH_EVERY:if(e!==pickSensor.getObjectType().size)continue;break;case k.MATCH_ONLY_ONE:if(1!==e)continue}}e.add(t)}s.push(!0),o.push(e),de().prototype.traverse.call(this,t,i),o.pop(),s.pop(),e.clear()}}}else de().prototype.traverse.call(this,t,i)}})(),dispose(){me.prototype.dispose.call(this),de().prototype.dispose.call(this)}}),Object.defineProperties(ye,{typeName:{value:"PickableGroup",enumerable:!0},componentName:{value:"Picking",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.2","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(c())([new(r())(u().inputOutput,"metadata",new(s().SFNode)),new(r())(u().inputOutput,"pickable",new(s().SFBool)(!0)),new(r())(u().inputOutput,"objectType",new(s().MFString)("ALL")),new(r())(u().inputOutput,"visible",new(s().SFBool)(!0)),new(r())(u().inputOutput,"bboxDisplay",new(s().SFBool)),new(r())(u().initializeOnly,"bboxSize",new(s().SFVec3f)(-1,-1,-1)),new(r())(u().initializeOnly,"bboxCenter",new(s().SFVec3f)),new(r())(u().inputOnly,"addChildren",new(s().MFNode)),new(r())(u().inputOnly,"removeChildren",new(s().MFNode)),new(r())(u().inputOutput,"children",new(s().MFNode))]),enumerable:!0}});const _e=ye;y().add("PickableGroup","x_ite/Components/Picking/PickableGroup",_e);const we=_e,ke=window[Symbol.for("X_ITE.X3D-9.0.2")].require("x_ite/Base/X3DCast");var Se=e.n(ke);const be=window[Symbol.for("X_ITE.X3D-9.0.2")].require("standard/Math/Numbers/Rotation4");var fe=e.n(be);const ve=window[Symbol.for("X_ITE.X3D-9.0.2")].require("lib/ammojs/AmmoClass");var Oe=e.n(ve);function Te(){this.broadphase=new(Oe().btDbvtBroadphase),this.collisionConfiguration=new(Oe().btDefaultCollisionConfiguration),this.dispatcher=new(Oe().btCollisionDispatcher)(this.collisionConfiguration),this.collisionWorld=new(Oe().btCollisionWorld)(this.dispatcher,this.broadphase,this.collisionConfiguration),this.compoundShape1=new(Oe().btCompoundShape),this.motionState1=new(Oe().btDefaultMotionState),this.constructionInfo1=new(Oe().btRigidBodyConstructionInfo)(0,this.motionState1,this.compoundShape1),this.rigidBody1=new(Oe().btRigidBody)(this.constructionInfo1),this.compoundShape2=new(Oe().btCompoundShape),this.motionState2=new(Oe().btDefaultMotionState),this.constructionInfo2=new(Oe().btRigidBodyConstructionInfo)(0,this.motionState2,this.compoundShape2),this.rigidBody2=new(Oe().btRigidBody)(this.constructionInfo2),this.collisionWorld.addCollisionObject(this.rigidBody1),this.collisionWorld.addCollisionObject(this.rigidBody2)}Object.assign(Te.prototype,{constuctor:Te,setChildShape1(e,t){this.setChildShape(this.compoundShape1,e,t)},setChildShape2(e,t){this.setChildShape(this.compoundShape2,e,t)},setChildShape1Components(e,t,i){this.setChildShapeComponents(this.compoundShape1,e,t,i)},setChildShape2Components(e,t,i){this.setChildShapeComponents(this.compoundShape2,e,t,i)},setChildShape:(()=>{const e=new(z())(0,0,0),t=new(fe()),i=new(z())(1,1,1),n=new(Oe().btVector3)(0,0,0);return function(s,o,r){s.getNumChildShapes()&&s.removeChildShapeByIndex(0),r.getNumChildShapes()&&(o.get(e,t,i),n.setValue(i.x,i.y,i.z),r.setLocalScaling(n),s.addChildShape(this.getTransform(e,t),r))}})(),setChildShapeComponents(e,t,i,n){e.getNumChildShapes()&&e.removeChildShapeByIndex(0),n.getNumChildShapes()&&(n.setLocalScaling(i),e.addChildShape(t,n))},contactTest(){this.collisionWorld.performDiscreteCollisionDetection();const e=this.dispatcher.getNumManifolds();for(let t=0;t<e;++t){const e=this.dispatcher.getManifoldByIndexInternal(t),i=e.getNumContacts();for(let t=0;t<i;++t){if(e.getContactPoint(t).getDistance()<=0)return!0}}return!1},getTransform:(()=>{const e=new(Oe().btTransform),t=new(Oe().btVector3)(0,0,0),i=new(C());return function(n,s,o){const r=o||e;return i.set(n,s),t.setValue(i[12],i[13],i[14]),r.getBasis().setValue(i[0],i[4],i[8],i[1],i[5],i[9],i[2],i[6],i[10]),r.setOrigin(t),r}})()});const Ne=Te;y().add("VolumePicker","x_ite/Browser/Picking/VolumePicker",Ne);const Ce=Ne;function Pe(e){L.call(this,e),this.addType(u().PointPickSensor),this.pickingGeometryNode=null,this.picker=new Ce,this.compoundShapes=[]}var Ge,Me,xe;Object.assign(Object.setPrototypeOf(Pe.prototype,L.prototype),{initialize(){L.prototype.initialize.call(this),this._pickingGeometry.addInterest("set_pickingGeometry__",this),this.set_pickingGeometry__()},set_pickingGeometry__(){this.pickingGeometryNode&&this.pickingGeometryNode._rebuild.removeInterest("set_geometry__",this),this.pickingGeometryNode=Se()(u().PointSet,this._pickingGeometry),this.pickingGeometryNode&&this.pickingGeometryNode._rebuild.addInterest("set_geometry__",this),this.set_geometry__()},set_geometry__:(Ge=new(Oe().btVector3)(1,1,1),Me=new(Oe().btVector3),xe=new(Oe().btTransform),function(){var e=this.compoundShapes;if(this.pickingGeometryNode){var t=this.pickingGeometryNode.getCoord();if(t){for(var i=0,n=t.getSize();i<n;++i)if(i<e.length){var s=e[i],o=t.get1Point(i,s.point);Me.setValue(o.x,o.y,o.z),xe.setOrigin(Me),s.setLocalScaling(Ge),s.updateChildTransform(0,xe)}else{s=new(Oe().btCompoundShape);var r=new(Oe().btSphereShape)(0);o=t.get1Point(i,new(z())(0,0,0)),s.point=o,Me.setValue(o.x,o.y,o.z),xe.setOrigin(Me),s.addChildShape(xe,r),e.push(s)}e.length=n}else e.length=0}else e.length=0}),process:(()=>{var e=new(R()),t=new(R()),i=new(z())(0,0,0),n=new(z())(0,0,0),o=new(Oe().btTransform),r=new(Oe().btVector3),a=new(z())(0,0,0),c=new(fe()),h=new(z())(1,1,1),p=new(s().MFVec3f);return function(){if(this.pickingGeometryNode){var s=this.getModelMatrices(),l=this.getTargets();switch(this.getIntersectionType()){case f.BOUNDS:for(var d=0,g=s.length;d<g;++d){var u=s[d];e.assign(this.pickingGeometryNode.getBBox()).multRight(u);for(var m=0,y=l.size;m<y;++m){var _=l[m];t.assign(_.geometryNode.getBBox()).multRight(_.modelMatrix),e.intersectsBox(t)&&(i.assign(e.center),n.assign(t.center),_.intersected=!0,_.distance=i.distance(n))}}var w=!!(N=this.getPickedGeometries()).length;N.assign(N.filter((e=>e))),w!==this._isActive.getValue()&&(this._isActive=w),this._pickedGeometry.equals(N)||(this._pickedGeometry=N);break;case f.GEOMETRY:var k=this.picker,S=this.compoundShapes;for(d=0,g=s.length;d<g;++d){u=s[d];e.assign(this.pickingGeometryNode.getBBox()).multRight(u),u.get(a,c,h),k.getTransform(a,c,o),r.setValue(h.x,h.y,h.z);for(var b=0,v=S.length;b<v;++b){var O=S[b];k.setChildShape1Components(o,r,O);for(m=0,y=l.size;m<y;++m){_=l[m];var T=this.getPickShape(_.geometryNode);t.assign(_.geometryNode.getBBox()).multRight(_.modelMatrix),k.setChildShape2(_.modelMatrix,T.getCompoundShape()),k.contactTest()&&(i.assign(e.center),n.assign(t.center),_.intersected=!0,_.distance=i.distance(n),_.pickedPoint.push(O.point))}}}var N;w=!!(N=this.getPickedGeometries()).length;N.assign(N.filter((e=>e))),w!==this._isActive.getValue()&&(this._isActive=w),this._pickedGeometry.equals(N)||(this._pickedGeometry=N);var C=this.getPickedTargets();p.length=0;for(m=0,y=C.length;m<y;++m)for(var P=C[m].pickedPoint,G=0,M=P.length;G<M;++G)p.push(P[G]);this._pickedPoint.equals(p)||(this._pickedPoint=p)}}L.prototype.process.call(this)}})()}),Object.defineProperties(Pe,{typeName:{value:"PointPickSensor",enumerable:!0},componentName:{value:"Picking",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.2","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(c())([new(r())(u().inputOutput,"metadata",new(s().SFNode)),new(r())(u().inputOutput,"enabled",new(s().SFBool)(!0)),new(r())(u().inputOutput,"objectType",new(s().MFString)("ALL")),new(r())(u().inputOutput,"matchCriterion",new(s().SFString)("MATCH_ANY")),new(r())(u().initializeOnly,"intersectionType",new(s().SFString)("BOUNDS")),new(r())(u().initializeOnly,"sortOrder",new(s().SFString)("CLOSEST")),new(r())(u().outputOnly,"isActive",new(s().SFBool)),new(r())(u().outputOnly,"pickedPoint",new(s().MFVec3f)),new(r())(u().inputOutput,"pickingGeometry",new(s().SFNode)),new(r())(u().inputOutput,"pickTarget",new(s().MFNode)),new(r())(u().outputOnly,"pickedGeometry",new(s().MFNode))]),enumerable:!0}});const Be=Pe;y().add("PointPickSensor","x_ite/Components/Picking/PointPickSensor",Be);const je=Be;function Ae(e){L.call(this,e),this.addType(u().PrimitivePickSensor),this.pickingGeometryNode=null,this.picker=new Ce}Object.assign(Object.setPrototypeOf(Ae.prototype,L.prototype),{initialize(){L.prototype.initialize.call(this),this._pickingGeometry.addInterest("set_pickingGeometry__",this),this.set_pickingGeometry__()},set_pickingGeometry__(){this.pickingGeometryNode=null;try{for(var e=this._pickingGeometry.getValue().getInnerNode(),t=e.getType(),i=t.length-1;i>=0;--i)switch(t[i]){case u().Box:case u().Cone:case u().Cylinder:case u().Sphere:this.pickingGeometryNode=e;break;default:continue}}catch{}},process:(()=>{var e=new(R()),t=new(R()),i=new(z())(0,0,0),n=new(z())(0,0,0);return function(){if(this.pickingGeometryNode){var s=this.getModelMatrices(),o=this.getTargets();switch(this.getIntersectionType()){case f.BOUNDS:for(var r=0,a=s.length;r<a;++r){var c=s[r];e.assign(this.pickingGeometryNode.getBBox()).multRight(c);for(var h=0,p=o.size;h<p;++h){var l=o[h];t.assign(l.geometryNode.getBBox()).multRight(l.modelMatrix),e.intersectsBox(t)&&(i.assign(e.center),n.assign(t.center),l.intersected=!0,l.distance=i.distance(n))}}var d=!!(y=this.getPickedGeometries()).length;y.assign(y.filter((e=>e))),d!==this._isActive.getValue()&&(this._isActive=d),this._pickedGeometry.equals(y)||(this._pickedGeometry=y);break;case f.GEOMETRY:var g=this.picker;for(r=0,a=s.length;r<a;++r){c=s[r];var u=this.getPickShape(this.pickingGeometryNode);e.assign(this.pickingGeometryNode.getBBox()).multRight(c),g.setChildShape1(c,u.getCompoundShape());for(h=0,p=o.size;h<p;++h){l=o[h];var m=this.getPickShape(l.geometryNode);t.assign(l.geometryNode.getBBox()).multRight(l.modelMatrix),g.setChildShape2(l.modelMatrix,m.getCompoundShape()),g.contactTest()&&(i.assign(e.center),n.assign(t.center),l.intersected=!0,l.distance=i.distance(n))}}var y;d=!!(y=this.getPickedGeometries()).length;y.assign(y.filter((e=>e))),d!==this._isActive.getValue()&&(this._isActive=d),this._pickedGeometry.equals(y)||(this._pickedGeometry=y)}}L.prototype.process.call(this)}})()}),Object.defineProperties(Ae,{typeName:{value:"PrimitivePickSensor",enumerable:!0},componentName:{value:"Picking",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.2","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(c())([new(r())(u().inputOutput,"metadata",new(s().SFNode)),new(r())(u().inputOutput,"enabled",new(s().SFBool)(!0)),new(r())(u().inputOutput,"objectType",new(s().MFString)("ALL")),new(r())(u().inputOutput,"matchCriterion",new(s().SFString)("MATCH_ANY")),new(r())(u().initializeOnly,"intersectionType",new(s().SFString)("BOUNDS")),new(r())(u().initializeOnly,"sortOrder",new(s().SFString)("CLOSEST")),new(r())(u().outputOnly,"isActive",new(s().SFBool)),new(r())(u().inputOutput,"pickingGeometry",new(s().SFNode)),new(r())(u().inputOutput,"pickTarget",new(s().MFNode)),new(r())(u().outputOnly,"pickedGeometry",new(s().MFNode))]),enumerable:!0}});const De=Ae;y().add("PrimitivePickSensor","x_ite/Components/Picking/PrimitivePickSensor",De);const Fe=De;function Ee(e){L.call(this,e),this.addType(u().VolumePickSensor),this.pickingGeometryNode=null,this.picker=new Ce}Object.assign(Object.setPrototypeOf(Ee.prototype,L.prototype),{initialize(){L.prototype.initialize.call(this),this._pickingGeometry.addInterest("set_pickingGeometry__",this),this.set_pickingGeometry__()},set_pickingGeometry__(){this.pickingGeometryNode=Se()(u().X3DGeometryNode,this._pickingGeometry)},process:(()=>{var e=new(R()),t=new(R()),i=new(z())(0,0,0),n=new(z())(0,0,0);return function(){if(this.pickingGeometryNode){var s=this.getModelMatrices(),o=this.getTargets();switch(this.getIntersectionType()){case f.BOUNDS:for(var r=0,a=s.length;r<a;++r){var c=s[r];e.assign(this.pickingGeometryNode.getBBox()).multRight(c);for(var h=0,p=o.size;h<p;++h){var l=o[h];t.assign(l.geometryNode.getBBox()).multRight(l.modelMatrix),e.intersectsBox(t)&&(i.assign(e.center),n.assign(t.center),l.intersected=!0,l.distance=i.distance(n))}}var d=!!(y=this.getPickedGeometries()).length;y.assign(y.filter((e=>e))),d!==this._isActive.getValue()&&(this._isActive=d),this._pickedGeometry.equals(y)||(this._pickedGeometry=y);break;case f.GEOMETRY:var g=this.picker;for(r=0,a=s.length;r<a;++r){c=s[r];var u=this.getPickShape(this.pickingGeometryNode);e.assign(this.pickingGeometryNode.getBBox()).multRight(c),g.setChildShape1(c,u.getCompoundShape());for(h=0,p=o.size;h<p;++h){l=o[h];var m=this.getPickShape(l.geometryNode);t.assign(l.geometryNode.getBBox()).multRight(l.modelMatrix),g.setChildShape2(l.modelMatrix,m.getCompoundShape()),g.contactTest()&&(i.assign(e.center),n.assign(t.center),l.intersected=!0,l.distance=i.distance(n))}}var y;d=!!(y=this.getPickedGeometries()).length;y.assign(y.filter((e=>e))),d!==this._isActive.getValue()&&(this._isActive=d),this._pickedGeometry.equals(y)||(this._pickedGeometry=y)}}L.prototype.process.call(this)}})()}),Object.defineProperties(Ee,{typeName:{value:"VolumePickSensor",enumerable:!0},componentName:{value:"Picking",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["3.2","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(c())([new(r())(u().inputOutput,"metadata",new(s().SFNode)),new(r())(u().inputOutput,"enabled",new(s().SFBool)(!0)),new(r())(u().inputOutput,"objectType",new(s().MFString)("ALL")),new(r())(u().inputOutput,"matchCriterion",new(s().SFString)("MATCH_ANY")),new(r())(u().initializeOnly,"intersectionType",new(s().SFString)("BOUNDS")),new(r())(u().initializeOnly,"sortOrder",new(s().SFString)("CLOSEST")),new(r())(u().outputOnly,"isActive",new(s().SFBool)),new(r())(u().inputOutput,"pickingGeometry",new(s().SFNode)),new(r())(u().inputOutput,"pickTarget",new(s().MFNode)),new(r())(u().outputOnly,"pickedGeometry",new(s().MFNode))]),enumerable:!0}});const Ie=Ee;y().add("VolumePickSensor","x_ite/Components/Picking/VolumePickSensor",Ie);const Le=Ie;i().add({name:"Picking",concreteNodes:[pe,we,je,Fe,Le],abstractNodes:[L,me]});const Ve=void 0;y().add("Picking","assets/components/Picking",Ve)})();
1
+ /* X_ITE v9.0.3 */(()=>{"use strict";var e={n:t=>{var i=t&&t.__esModule?()=>t.default:()=>t;return e.d(i,{a:i}),i},d:(t,i)=>{for(var n in i)e.o(i,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:i[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window[Symbol.for("X_ITE.X3D-9.0.3")].require("x_ite/Components");var i=e.n(t);const n=window[Symbol.for("X_ITE.X3D-9.0.3")].require("x_ite/Fields");var o=e.n(n);const s=window[Symbol.for("X_ITE.X3D-9.0.3")].require("x_ite/Base/X3DFieldDefinition");var r=e.n(s);const a=window[Symbol.for("X_ITE.X3D-9.0.3")].require("x_ite/Base/FieldDefinitionArray");var c=e.n(a);const p=window[Symbol.for("X_ITE.X3D-9.0.3")].require("x_ite/Components/Core/X3DSensorNode");var h=e.n(p);const l=window[Symbol.for("X_ITE.X3D-9.0.3")].require("x_ite/Rendering/TraverseType");var d=e.n(l);const g=window[Symbol.for("X_ITE.X3D-9.0.3")].require("x_ite/Base/X3DConstants");var u=e.n(g);const m=window[Symbol.for("X_ITE.X3D-9.0.3")].require("x_ite/Namespace");var y=e.n(m);let _=0;const w={MATCH_ANY:_++,MATCH_EVERY:_++,MATCH_ONLY_ONE:_++};y().add("MatchCriterion","x_ite/Browser/Picking/MatchCriterion",w);const k=w;let S=0;const f={BOUNDS:S++,GEOMETRY:S++};y().add("IntersectionType","x_ite/Browser/Picking/IntersectionType",f);const b=f;let O=0;const v={ANY:O++,CLOSEST:O++,ALL:O++,ALL_SORTED:O++};y().add("SortOrder","x_ite/Browser/Picking/SortOrder",v);const T=v,N=window[Symbol.for("X_ITE.X3D-9.0.3")].require("standard/Math/Numbers/Matrix4");var C=e.n(N);function P(e,t){this.array=e,t&&(this.compare=t)}Object.assign(P.prototype,{compare:(e,t)=>e<t,sort(e,t){t-e>1&&this.quicksort(e,t-1)},quicksort(e,t){let i=e,n=t;const{array:o,compare:s}=this,r=o[e+t>>>1];for(;;){for(;s(o[i],r);)++i;for(;s(r,o[n]);)--n;if(!(i<n)){i===n&&(++i,--n);break}{const e=o[i];o[i]=o[n],o[n]=e,i++,n--}}e<n&&this.quicksort(e,n),i<t&&this.quicksort(i,t)}});const G=P;y().add("QuickSort","standard/Math/Algorithms/QuickSort",G);const M=G,x=window[Symbol.for("X_ITE.X3D-9.0.3")].require("standard/Utility/ObjectCache");var B,j,F,I=e.n(x)()(C());function A(e,t){return e.distance<t.distance}function D(e){h().call(this,e),this.addType(u().X3DPickSensorNode),this.objectType=new Set,this.intersectionType=b.BOUNDS,this.sortOrder=T.CLOSEST,this.pickTargetNodes=new Set,this.modelMatrices=[],this.targets=[],this.targets.size=0,this.pickedTargets=[],this.pickedTargetsSorter=new M(this.pickedTargets,A),this.pickedGeometries=new(o().MFNode)}Object.assign(Object.setPrototypeOf(D.prototype,h().prototype),{initialize(){this.getLive().addInterest("set_live__",this),this._enabled.addInterest("set_live__",this),this._objectType.addInterest("set_objectType__",this),this._matchCriterion.addInterest("set_matchCriterion__",this),this._intersectionType.addInterest("set_intersectionType__",this),this._sortOrder.addInterest("set_sortOrder__",this),this._pickTarget.addInterest("set_pickTarget__",this),this.set_objectType__(),this.set_matchCriterion__(),this.set_intersectionType__(),this.set_sortOrder__(),this.set_pickTarget__()},getObjectType(){return this.objectType},getMatchCriterion(){return this.matchCriterion},getIntersectionType(){return this.intersectionType},getSortOrder(){return this.sortOrder},getModelMatrices(){return this.modelMatrices},getTargets(){return this.targets},getPickShape:(()=>{const e=new WeakMap;return function(t){const i=e.get(t);if(void 0!==i)return i;const n=this.getBrowser(),o=n.getPrivateScene().createNode("Shape",!1),s=n.getPrivateScene().createNode("CollidableShape",!1);return o.setPrivate(!0),s.setPrivate(!0),s.setConvex(!0),o._geometry=t,s._shape=o,o.setup(),s.setup(),e.set(t,s),s}})(),getPickedGeometries:function(){var e=this.targets,t=e.size,i=this.pickedTargets,n=this.pickedGeometries;i.length=0;for(var o=0;o<t;++o){var s=e[o];s.intersected&&i.push(s)}if(0===i.length)return n.length=0,n;switch(this.sortOrder){case T.ANY:i.length=1,n[0]=this.getPickedGeometry(i[0]),n.length=1;break;case T.CLOSEST:this.pickedTargetsSorter.sort(0,i.length),i.length=1,n[0]=this.getPickedGeometry(i[0]),n.length=1;break;case T.ALL:o=0;for(var r=i.length;o<r;++o)n[o]=this.getPickedGeometry(i[o]);n.length=r;break;case T.ALL_SORTED:for(this.pickedTargetsSorter.sort(0,i.length),o=0,r=i.length;o<r;++o)n[o]=this.getPickedGeometry(i[o]);n.length=r}return n},getPickedGeometry(e){var t=this.getExecutionContext(),i=e.geometryNode;if(i.getExecutionContext()===t)return i;if((s=i.getExecutionContext()).getType().includes(u().X3DPrototypeInstance)&&s.getExecutionContext()===t)return s;for(var n=e.pickingHierarchy,o=n.length-1;o>=0;--o){var s,r=n[o];if(r.getExecutionContext()===t)return r;if((s=r.getExecutionContext()).getType().includes(u().X3DPrototypeInstance)&&s.getExecutionContext()===t)return s}return null},getPickedTargets(){return this.pickedTargets},set_live__(){this.getLive().getValue()&&this._enabled.getValue()&&!this.objectType.has("NONE")?(this.getBrowser().addPickSensor(this),this.setPickableObject(!0)):(this.getBrowser().removePickSensor(this),this.setPickableObject(!1))},set_objectType__(){this.objectType.clear();for(var e=0,t=this._objectType.length;e<t;++e)this.objectType.add(this._objectType[e]);this.set_live__()},set_matchCriterion__:(F=new Map([["MATCH_ANY",k.MATCH_ANY],["MATCH_EVERY",k.MATCH_EVERY],["MATCH_ONLY_ONE",k.MATCH_ONLY_ONE]]),function(){this.matchCriterion=F.get(this._matchCriterion.getValue()),void 0===this.matchCriterion&&(this.matchCriterion=MatchCriterionType.MATCH_ANY)}),set_intersectionType__:(j=new Map([["BOUNDS",b.BOUNDS],["GEOMETRY",b.GEOMETRY]]),function(){this.intersectionType=j.get(this._intersectionType.getValue()),void 0===this.intersectionType&&(this.intersectionType=b.BOUNDS)}),set_sortOrder__:(B=new Map([["ANY",T.ANY],["CLOSEST",T.CLOSEST],["ALL",T.ALL],["ALL_SORTED",T.ALL_SORTED]]),function(){this.sortOrder=B.get(this._sortOrder.getValue()),void 0===this.sortOrder&&(this.sortOrder=T.CLOSEST)}),set_pickTarget__(){this.pickTargetNodes.clear();for(var e=0,t=this._pickTarget.length;e<t;++e)try{for(var i=this._pickTarget[e].getValue().getInnerNode(),n=i.getType(),o=n.length-1;o>=0;--o)switch(n[o]){case u().Inline:case u().Shape:case u().X3DGroupingNode:this.pickTargetNodes.add(i);break;default:continue}}catch{}},traverse(e,t){e===d().PICKING&&this.isPickableObject()&&this.modelMatrices.push(I.pop().assign(t.getModelViewMatrix().get()))},collect(e,t,i){var n=this.pickTargetNodes;if(i.some((e=>n.has(e)))){var o=this.targets;if(o.size<o.length)var s=o[o.size];else{s={modelMatrix:new(C()),pickingHierarchy:[],pickedPoint:[],intersections:[]};o.push(s)}++o.size,s.intersected=!1,s.geometryNode=e,s.pickedPoint.length=0,s.intersections.length=0,s.modelMatrix.assign(t);for(var r=s.pickingHierarchy,a=0,c=i.length;a<c;++a)r[a]=i[a];r.length=c}},process(){for(var e=this.modelMatrices,t=0,i=e.length;t<i;++t)I.push(e[t]);this.modelMatrices.length=0,this.targets.size=0}}),Object.defineProperties(D,{typeName:{value:"X3DPickSensorNode",enumerable:!0},componentInfo:{value:Object.freeze({name:"Picking",level:1}),enumerable:!0}});const E=D;y().add("X3DPickSensorNode","x_ite/Components/Picking/X3DPickSensorNode",E);const z=E,L=window[Symbol.for("X_ITE.X3D-9.0.3")].require("standard/Math/Numbers/Vector3");var V=e.n(L);const X=window[Symbol.for("X_ITE.X3D-9.0.3")].require("standard/Math/Geometry/Box3");var R=e.n(X);const q=window[Symbol.for("X_ITE.X3D-9.0.3")].require("standard/Math/Geometry/Line3");var Y,H,U,W,K,Q,Z,J,$,ee,te,ie,ne,oe,se,re,ae=e.n(q);function ce(e){z.call(this,e),this.addType(u().LinePickSensor),this.pickingGeometryNode=null}Object.assign(Object.setPrototypeOf(ce.prototype,z.prototype),{initialize(){z.prototype.initialize.call(this),this._pickingGeometry.addInterest("set_pickingGeometry__",this),this.set_pickingGeometry__()},set_pickingGeometry__(){this.pickingGeometryNode=null;try{for(var e=this._pickingGeometry.getValue().getInnerNode(),t=e.getType(),i=t.length-1;i>=0;--i)switch(t[i]){case u().IndexedLineSet:case u().LineSet:this.pickingGeometryNode=e;break;default:continue}}catch{}},process:(Y=new(R()),H=new(R()),U=new(V())(0,0,0),W=new(V())(0,0,0),K=new(C()),Q=new(V())(0,0,0),Z=new(V())(0,0,0),J=new(ae())(V().Zero,V().zAxis),$=new(V())(0,0,0),ee=new(V())(0,0,0),te=[],ie=[],ne=new(V())(0,0,0),oe=new(o().MFVec3f),se=new(o().MFVec3f),re=new(o().MFVec3f),function(){if(this.pickingGeometryNode){var e=this.getModelMatrices(),t=this.getTargets();switch(this.getIntersectionType()){case b.BOUNDS:for(var i=0,n=e.length;i<n;++i){var o=e[i];Y.assign(this.pickingGeometryNode.getBBox()).multRight(o);for(var s=0,r=t.size;s<r;++s){var a=t[s];H.assign(a.geometryNode.getBBox()).multRight(a.modelMatrix),Y.intersectsBox(H)&&(U.assign(Y.center),W.assign(H.center),a.intersected=!0,a.distance=U.distance(W))}}var c=!!(y=this.getPickedGeometries()).length;y.assign(y.filter((e=>e))),c!==this._isActive.getValue()&&(this._isActive=c),this._pickedGeometry.equals(y)||(this._pickedGeometry=y);break;case b.GEOMETRY:for(i=0,n=e.length;i<n;++i)for(o=e[i],Y.assign(this.pickingGeometryNode.getBBox()).multRight(o),s=0,r=t.size;s<r;++s){var p=(a=t[s]).geometryNode,h=this.pickingGeometryNode.getVertices();H.assign(p.getBBox()).multRight(a.modelMatrix),K.assign(a.modelMatrix).inverse().multLeft(o);for(var l=0,d=h.length;l<d;l+=8)if(K.multVecMatrix(Q.set(h[l+0],h[l+1],h[l+2])),K.multVecMatrix(Z.set(h[l+4],h[l+5],h[l+6])),J.setPoints(Q,Z),ie.length=0,p.intersectsLine(J,a.modelMatrix,te,ie))for(var g=0,u=ie.length;g<u;++g){var m=ie[g];$.assign(m.point).subtract(Q),ee.assign(m.point).subtract(Z),$.add(ee).magnitude()<=Q.distance(Z)&&a.intersections.push(m)}a.intersections.length&&(U.assign(Y.center),W.assign(H.center),a.intersected=!0,a.distance=U.distance(W))}var y;c=!!(y=this.getPickedGeometries()).length,y.assign(y.filter((e=>e))),c!==this._isActive.getValue()&&(this._isActive=c),this._pickedGeometry.equals(y)||(this._pickedGeometry=y);var _=this.getPickedTargets();for(oe.length=0,se.length=0,re.length=0,s=0,r=_.length;s<r;++s){var w=_[s].intersections;for(g=0,u=w.length;g<u;++g)s=(m=w[g]).texCoord,ne.set(s.x,s.y,s.z),oe.push(ne),se.push(m.normal),re.push(m.point)}this._pickedTextureCoordinate.equals(oe)||(this._pickedTextureCoordinate=oe),this._pickedNormal.equals(se)||(this._pickedNormal=se),this._pickedPoint.equals(re)||(this._pickedPoint=re)}}z.prototype.process.call(this)})}),Object.defineProperties(ce,{typeName:{value:"LinePickSensor",enumerable:!0},componentInfo:{value:Object.freeze({name:"Picking",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.2",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(c())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"description",new(o().SFString)),new(r())(u().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(u().inputOutput,"objectType",new(o().MFString)("ALL")),new(r())(u().inputOutput,"matchCriterion",new(o().SFString)("MATCH_ANY")),new(r())(u().initializeOnly,"intersectionType",new(o().SFString)("BOUNDS")),new(r())(u().initializeOnly,"sortOrder",new(o().SFString)("CLOSEST")),new(r())(u().outputOnly,"isActive",new(o().SFBool)),new(r())(u().outputOnly,"pickedTextureCoordinate",new(o().MFVec3f)),new(r())(u().outputOnly,"pickedNormal",new(o().MFVec3f)),new(r())(u().outputOnly,"pickedPoint",new(o().MFVec3f)),new(r())(u().inputOutput,"pickingGeometry",new(o().SFNode)),new(r())(u().inputOutput,"pickTarget",new(o().MFNode)),new(r())(u().outputOnly,"pickedGeometry",new(o().MFNode))]),enumerable:!0}});const pe=ce;y().add("LinePickSensor","x_ite/Components/Picking/LinePickSensor",pe);const he=pe,le=window[Symbol.for("X_ITE.X3D-9.0.3")].require("x_ite/Components/Grouping/X3DGroupingNode");var de=e.n(le);function ge(e){this.addType(u().X3DPickableObject),this.objectType=new Set}Object.assign(ge.prototype,{initialize(){this._objectType.addInterest("set_objectType__",this),this.set_objectType__()},getObjectType(){return this.objectType},set_objectType__(){this.objectType.clear();for(var e=0,t=this._objectType.length;e<t;++e)this.objectType.add(this._objectType[e])},dispose(){}}),Object.defineProperties(ge,{typeName:{value:"X3DPickableObject",enumerable:!0},componentInfo:{value:Object.freeze({name:"Picking",level:1}),enumerable:!0}});const ue=ge;y().add("X3DPickableObject","x_ite/Components/Picking/X3DPickableObject",ue);const me=ue;function ye(e){de().call(this,e),me.call(this,e),this.addType(u().PickableGroup),this.pickSensorNodes=new Set}Object.assign(Object.setPrototypeOf(ye.prototype,de().prototype),me.prototype,{initialize(){de().prototype.initialize.call(this),me.prototype.initialize.call(this),this._pickable.addInterest("set_pickable__",this),this.set_pickable__()},set_pickableObjects__(){this.set_pickable__()},set_pickable__(){this.setPickableObject(!(!this._pickable.getValue()&&!this.getTransformSensors().size))},traverse(e,t){if(e===d().PICKING){if(this._pickable.getValue()){if(this.getObjectType().has("NONE"))return;const i=this.getBrowser(),n=i.getPickable();if(this.getObjectType().has("ALL"))n.push(!0),de().prototype.traverse.call(this,e,t),n.pop();else{const o=this.pickSensorNodes,s=i.getPickSensors();for(const e of s.at(-1)){if(!e.getObjectType().has("ALL")){let t=0;for(const i of this.getObjectType())if(e.getObjectType().has(i)){++t;break}switch(e.getMatchCriterion()){case k.MATCH_ANY:if(0===t)continue;break;case k.MATCH_EVERY:if(t!==pickSensor.getObjectType().size)continue;break;case k.MATCH_ONLY_ONE:if(1!==t)continue}}o.add(e)}n.push(!0),s.push(o),de().prototype.traverse.call(this,e,t),s.pop(),n.pop(),o.clear()}}}else de().prototype.traverse.call(this,e,t)},dispose(){me.prototype.dispose.call(this),de().prototype.dispose.call(this)}}),Object.defineProperties(ye,{typeName:{value:"PickableGroup",enumerable:!0},componentInfo:{value:Object.freeze({name:"Picking",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.2",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(c())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"description",new(o().SFString)),new(r())(u().inputOutput,"pickable",new(o().SFBool)(!0)),new(r())(u().inputOutput,"objectType",new(o().MFString)("ALL")),new(r())(u().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(u().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(u().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(u().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(u().inputOnly,"addChildren",new(o().MFNode)),new(r())(u().inputOnly,"removeChildren",new(o().MFNode)),new(r())(u().inputOutput,"children",new(o().MFNode))]),enumerable:!0}});const _e=ye;y().add("PickableGroup","x_ite/Components/Picking/PickableGroup",_e);const we=_e,ke=window[Symbol.for("X_ITE.X3D-9.0.3")].require("x_ite/Base/X3DCast");var Se=e.n(ke);const fe=window[Symbol.for("X_ITE.X3D-9.0.3")].require("standard/Math/Numbers/Rotation4");var be=e.n(fe);const Oe=window[Symbol.for("X_ITE.X3D-9.0.3")].require("lib/ammojs/AmmoClass");var ve=e.n(Oe);function Te(){this.broadphase=new(ve().btDbvtBroadphase),this.collisionConfiguration=new(ve().btDefaultCollisionConfiguration),this.dispatcher=new(ve().btCollisionDispatcher)(this.collisionConfiguration),this.collisionWorld=new(ve().btCollisionWorld)(this.dispatcher,this.broadphase,this.collisionConfiguration),this.compoundShape1=new(ve().btCompoundShape),this.motionState1=new(ve().btDefaultMotionState),this.constructionInfo1=new(ve().btRigidBodyConstructionInfo)(0,this.motionState1,this.compoundShape1),this.rigidBody1=new(ve().btRigidBody)(this.constructionInfo1),this.compoundShape2=new(ve().btCompoundShape),this.motionState2=new(ve().btDefaultMotionState),this.constructionInfo2=new(ve().btRigidBodyConstructionInfo)(0,this.motionState2,this.compoundShape2),this.rigidBody2=new(ve().btRigidBody)(this.constructionInfo2),this.collisionWorld.addCollisionObject(this.rigidBody1),this.collisionWorld.addCollisionObject(this.rigidBody2)}Object.assign(Te.prototype,{constuctor:Te,setChildShape1(e,t){this.setChildShape(this.compoundShape1,e,t)},setChildShape2(e,t){this.setChildShape(this.compoundShape2,e,t)},setChildShape1Components(e,t,i){this.setChildShapeComponents(this.compoundShape1,e,t,i)},setChildShape2Components(e,t,i){this.setChildShapeComponents(this.compoundShape2,e,t,i)},setChildShape:(()=>{const e=new(V())(0,0,0),t=new(be()),i=new(V())(1,1,1),n=new(ve().btVector3)(0,0,0);return function(o,s,r){o.getNumChildShapes()&&o.removeChildShapeByIndex(0),r.getNumChildShapes()&&(s.get(e,t,i),n.setValue(i.x,i.y,i.z),r.setLocalScaling(n),o.addChildShape(this.getTransform(e,t),r))}})(),setChildShapeComponents(e,t,i,n){e.getNumChildShapes()&&e.removeChildShapeByIndex(0),n.getNumChildShapes()&&(n.setLocalScaling(i),e.addChildShape(t,n))},contactTest(){this.collisionWorld.performDiscreteCollisionDetection();const e=this.dispatcher.getNumManifolds();for(let t=0;t<e;++t){const e=this.dispatcher.getManifoldByIndexInternal(t),i=e.getNumContacts();for(let t=0;t<i;++t){if(e.getContactPoint(t).getDistance()<=0)return!0}}return!1},getTransform:(()=>{const e=new(ve().btTransform),t=new(ve().btVector3)(0,0,0),i=new(C());return function(n,o,s){const r=s||e;return i.set(n,o),t.setValue(i[12],i[13],i[14]),r.getBasis().setValue(i[0],i[4],i[8],i[1],i[5],i[9],i[2],i[6],i[10]),r.setOrigin(t),r}})()});const Ne=Te;y().add("VolumePicker","x_ite/Browser/Picking/VolumePicker",Ne);const Ce=Ne;function Pe(e){z.call(this,e),this.addType(u().PointPickSensor),this.pickingGeometryNode=null,this.picker=new Ce,this.compoundShapes=[]}var Ge,Me,xe;Object.assign(Object.setPrototypeOf(Pe.prototype,z.prototype),{initialize(){z.prototype.initialize.call(this),this._pickingGeometry.addInterest("set_pickingGeometry__",this),this.set_pickingGeometry__()},set_pickingGeometry__(){this.pickingGeometryNode&&this.pickingGeometryNode._rebuild.removeInterest("set_geometry__",this),this.pickingGeometryNode=Se()(u().PointSet,this._pickingGeometry),this.pickingGeometryNode&&this.pickingGeometryNode._rebuild.addInterest("set_geometry__",this),this.set_geometry__()},set_geometry__:(Ge=new(ve().btVector3)(1,1,1),Me=new(ve().btVector3),xe=new(ve().btTransform),function(){var e=this.compoundShapes;if(this.pickingGeometryNode){var t=this.pickingGeometryNode.getCoord();if(t){for(var i=0,n=t.getSize();i<n;++i)if(i<e.length){var o=e[i],s=t.get1Point(i,o.point);Me.setValue(s.x,s.y,s.z),xe.setOrigin(Me),o.setLocalScaling(Ge),o.updateChildTransform(0,xe)}else{o=new(ve().btCompoundShape);var r=new(ve().btSphereShape)(0);s=t.get1Point(i,new(V())(0,0,0)),o.point=s,Me.setValue(s.x,s.y,s.z),xe.setOrigin(Me),o.addChildShape(xe,r),e.push(o)}e.length=n}else e.length=0}else e.length=0}),process:(()=>{var e=new(R()),t=new(R()),i=new(V())(0,0,0),n=new(V())(0,0,0),s=new(ve().btTransform),r=new(ve().btVector3),a=new(V())(0,0,0),c=new(be()),p=new(V())(1,1,1),h=new(o().MFVec3f);return function(){if(this.pickingGeometryNode){var o=this.getModelMatrices(),l=this.getTargets();switch(this.getIntersectionType()){case b.BOUNDS:for(var d=0,g=o.length;d<g;++d){var u=o[d];e.assign(this.pickingGeometryNode.getBBox()).multRight(u);for(var m=0,y=l.size;m<y;++m){var _=l[m];t.assign(_.geometryNode.getBBox()).multRight(_.modelMatrix),e.intersectsBox(t)&&(i.assign(e.center),n.assign(t.center),_.intersected=!0,_.distance=i.distance(n))}}var w=!!(N=this.getPickedGeometries()).length;N.assign(N.filter((e=>e))),w!==this._isActive.getValue()&&(this._isActive=w),this._pickedGeometry.equals(N)||(this._pickedGeometry=N);break;case b.GEOMETRY:var k=this.picker,S=this.compoundShapes;for(d=0,g=o.length;d<g;++d){u=o[d];e.assign(this.pickingGeometryNode.getBBox()).multRight(u),u.get(a,c,p),k.getTransform(a,c,s),r.setValue(p.x,p.y,p.z);for(var f=0,O=S.length;f<O;++f){var v=S[f];k.setChildShape1Components(s,r,v);for(m=0,y=l.size;m<y;++m){_=l[m];var T=this.getPickShape(_.geometryNode);t.assign(_.geometryNode.getBBox()).multRight(_.modelMatrix),k.setChildShape2(_.modelMatrix,T.getCompoundShape()),k.contactTest()&&(i.assign(e.center),n.assign(t.center),_.intersected=!0,_.distance=i.distance(n),_.pickedPoint.push(v.point))}}}var N;w=!!(N=this.getPickedGeometries()).length;N.assign(N.filter((e=>e))),w!==this._isActive.getValue()&&(this._isActive=w),this._pickedGeometry.equals(N)||(this._pickedGeometry=N);var C=this.getPickedTargets();h.length=0;for(m=0,y=C.length;m<y;++m)for(var P=C[m].pickedPoint,G=0,M=P.length;G<M;++G)h.push(P[G]);this._pickedPoint.equals(h)||(this._pickedPoint=h)}}z.prototype.process.call(this)}})()}),Object.defineProperties(Pe,{typeName:{value:"PointPickSensor",enumerable:!0},componentInfo:{value:Object.freeze({name:"Picking",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.2",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(c())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"description",new(o().SFString)),new(r())(u().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(u().inputOutput,"objectType",new(o().MFString)("ALL")),new(r())(u().inputOutput,"matchCriterion",new(o().SFString)("MATCH_ANY")),new(r())(u().initializeOnly,"intersectionType",new(o().SFString)("BOUNDS")),new(r())(u().initializeOnly,"sortOrder",new(o().SFString)("CLOSEST")),new(r())(u().outputOnly,"isActive",new(o().SFBool)),new(r())(u().outputOnly,"pickedPoint",new(o().MFVec3f)),new(r())(u().inputOutput,"pickingGeometry",new(o().SFNode)),new(r())(u().inputOutput,"pickTarget",new(o().MFNode)),new(r())(u().outputOnly,"pickedGeometry",new(o().MFNode))]),enumerable:!0}});const Be=Pe;y().add("PointPickSensor","x_ite/Components/Picking/PointPickSensor",Be);const je=Be;function Fe(e){z.call(this,e),this.addType(u().PrimitivePickSensor),this.pickingGeometryNode=null,this.picker=new Ce}Object.assign(Object.setPrototypeOf(Fe.prototype,z.prototype),{initialize(){z.prototype.initialize.call(this),this._pickingGeometry.addInterest("set_pickingGeometry__",this),this.set_pickingGeometry__()},set_pickingGeometry__(){this.pickingGeometryNode=null;try{for(var e=this._pickingGeometry.getValue().getInnerNode(),t=e.getType(),i=t.length-1;i>=0;--i)switch(t[i]){case u().Box:case u().Cone:case u().Cylinder:case u().Sphere:this.pickingGeometryNode=e;break;default:continue}}catch{}},process:(()=>{var e=new(R()),t=new(R()),i=new(V())(0,0,0),n=new(V())(0,0,0);return function(){if(this.pickingGeometryNode){var o=this.getModelMatrices(),s=this.getTargets();switch(this.getIntersectionType()){case b.BOUNDS:for(var r=0,a=o.length;r<a;++r){var c=o[r];e.assign(this.pickingGeometryNode.getBBox()).multRight(c);for(var p=0,h=s.size;p<h;++p){var l=s[p];t.assign(l.geometryNode.getBBox()).multRight(l.modelMatrix),e.intersectsBox(t)&&(i.assign(e.center),n.assign(t.center),l.intersected=!0,l.distance=i.distance(n))}}var d=!!(y=this.getPickedGeometries()).length;y.assign(y.filter((e=>e))),d!==this._isActive.getValue()&&(this._isActive=d),this._pickedGeometry.equals(y)||(this._pickedGeometry=y);break;case b.GEOMETRY:var g=this.picker;for(r=0,a=o.length;r<a;++r){c=o[r];var u=this.getPickShape(this.pickingGeometryNode);e.assign(this.pickingGeometryNode.getBBox()).multRight(c),g.setChildShape1(c,u.getCompoundShape());for(p=0,h=s.size;p<h;++p){l=s[p];var m=this.getPickShape(l.geometryNode);t.assign(l.geometryNode.getBBox()).multRight(l.modelMatrix),g.setChildShape2(l.modelMatrix,m.getCompoundShape()),g.contactTest()&&(i.assign(e.center),n.assign(t.center),l.intersected=!0,l.distance=i.distance(n))}}var y;d=!!(y=this.getPickedGeometries()).length;y.assign(y.filter((e=>e))),d!==this._isActive.getValue()&&(this._isActive=d),this._pickedGeometry.equals(y)||(this._pickedGeometry=y)}}z.prototype.process.call(this)}})()}),Object.defineProperties(Fe,{typeName:{value:"PrimitivePickSensor",enumerable:!0},componentInfo:{value:Object.freeze({name:"Picking",level:2}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.2",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(c())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"description",new(o().SFString)),new(r())(u().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(u().inputOutput,"objectType",new(o().MFString)("ALL")),new(r())(u().inputOutput,"matchCriterion",new(o().SFString)("MATCH_ANY")),new(r())(u().initializeOnly,"intersectionType",new(o().SFString)("BOUNDS")),new(r())(u().initializeOnly,"sortOrder",new(o().SFString)("CLOSEST")),new(r())(u().outputOnly,"isActive",new(o().SFBool)),new(r())(u().inputOutput,"pickingGeometry",new(o().SFNode)),new(r())(u().inputOutput,"pickTarget",new(o().MFNode)),new(r())(u().outputOnly,"pickedGeometry",new(o().MFNode))]),enumerable:!0}});const Ie=Fe;y().add("PrimitivePickSensor","x_ite/Components/Picking/PrimitivePickSensor",Ie);const Ae=Ie;function De(e){z.call(this,e),this.addType(u().VolumePickSensor),this.pickingGeometryNode=null,this.picker=new Ce}Object.assign(Object.setPrototypeOf(De.prototype,z.prototype),{initialize(){z.prototype.initialize.call(this),this._pickingGeometry.addInterest("set_pickingGeometry__",this),this.set_pickingGeometry__()},set_pickingGeometry__(){this.pickingGeometryNode=Se()(u().X3DGeometryNode,this._pickingGeometry)},process:(()=>{var e=new(R()),t=new(R()),i=new(V())(0,0,0),n=new(V())(0,0,0);return function(){if(this.pickingGeometryNode){var o=this.getModelMatrices(),s=this.getTargets();switch(this.getIntersectionType()){case b.BOUNDS:for(var r=0,a=o.length;r<a;++r){var c=o[r];e.assign(this.pickingGeometryNode.getBBox()).multRight(c);for(var p=0,h=s.size;p<h;++p){var l=s[p];t.assign(l.geometryNode.getBBox()).multRight(l.modelMatrix),e.intersectsBox(t)&&(i.assign(e.center),n.assign(t.center),l.intersected=!0,l.distance=i.distance(n))}}var d=!!(y=this.getPickedGeometries()).length;y.assign(y.filter((e=>e))),d!==this._isActive.getValue()&&(this._isActive=d),this._pickedGeometry.equals(y)||(this._pickedGeometry=y);break;case b.GEOMETRY:var g=this.picker;for(r=0,a=o.length;r<a;++r){c=o[r];var u=this.getPickShape(this.pickingGeometryNode);e.assign(this.pickingGeometryNode.getBBox()).multRight(c),g.setChildShape1(c,u.getCompoundShape());for(p=0,h=s.size;p<h;++p){l=s[p];var m=this.getPickShape(l.geometryNode);t.assign(l.geometryNode.getBBox()).multRight(l.modelMatrix),g.setChildShape2(l.modelMatrix,m.getCompoundShape()),g.contactTest()&&(i.assign(e.center),n.assign(t.center),l.intersected=!0,l.distance=i.distance(n))}}var y;d=!!(y=this.getPickedGeometries()).length;y.assign(y.filter((e=>e))),d!==this._isActive.getValue()&&(this._isActive=d),this._pickedGeometry.equals(y)||(this._pickedGeometry=y)}}z.prototype.process.call(this)}})()}),Object.defineProperties(De,{typeName:{value:"VolumePickSensor",enumerable:!0},componentInfo:{value:Object.freeze({name:"Picking",level:3}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"3.2",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(c())([new(r())(u().inputOutput,"metadata",new(o().SFNode)),new(r())(u().inputOutput,"description",new(o().SFString)),new(r())(u().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(u().inputOutput,"objectType",new(o().MFString)("ALL")),new(r())(u().inputOutput,"matchCriterion",new(o().SFString)("MATCH_ANY")),new(r())(u().initializeOnly,"intersectionType",new(o().SFString)("BOUNDS")),new(r())(u().initializeOnly,"sortOrder",new(o().SFString)("CLOSEST")),new(r())(u().outputOnly,"isActive",new(o().SFBool)),new(r())(u().inputOutput,"pickingGeometry",new(o().SFNode)),new(r())(u().inputOutput,"pickTarget",new(o().MFNode)),new(r())(u().outputOnly,"pickedGeometry",new(o().MFNode))]),enumerable:!0}});const Ee=De;y().add("VolumePickSensor","x_ite/Components/Picking/VolumePickSensor",Ee);const ze=Ee;i().add({name:"Picking",concreteNodes:[he,we,je,Ae,ze],abstractNodes:[z,me]});const Le=void 0;y().add("Picking","assets/components/Picking",Le)})();