x_ite 10.5.2 → 10.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/README.md +4 -4
  2. package/dist/assets/components/AnnotationComponent.js +23 -23
  3. package/dist/assets/components/AnnotationComponent.min.js +2 -2
  4. package/dist/assets/components/CADGeometryComponent.js +24 -24
  5. package/dist/assets/components/CADGeometryComponent.min.js +2 -2
  6. package/dist/assets/components/CubeMapTexturingComponent.js +35 -35
  7. package/dist/assets/components/CubeMapTexturingComponent.min.js +2 -2
  8. package/dist/assets/components/DISComponent.js +22 -22
  9. package/dist/assets/components/DISComponent.min.js +2 -2
  10. package/dist/assets/components/EventUtilitiesComponent.js +21 -21
  11. package/dist/assets/components/EventUtilitiesComponent.min.js +2 -2
  12. package/dist/assets/components/Geometry2DComponent.js +56 -51
  13. package/dist/assets/components/Geometry2DComponent.min.js +2 -2
  14. package/dist/assets/components/GeospatialComponent.js +53 -53
  15. package/dist/assets/components/GeospatialComponent.min.js +2 -2
  16. package/dist/assets/components/HAnimComponent.js +32 -32
  17. package/dist/assets/components/HAnimComponent.min.js +2 -2
  18. package/dist/assets/components/KeyDeviceSensorComponent.js +15 -15
  19. package/dist/assets/components/KeyDeviceSensorComponent.min.js +2 -2
  20. package/dist/assets/components/LayoutComponent.js +37 -37
  21. package/dist/assets/components/LayoutComponent.min.js +2 -2
  22. package/dist/assets/components/NURBSComponent.js +82 -68
  23. package/dist/assets/components/NURBSComponent.min.js +2 -2
  24. package/dist/assets/components/ParticleSystemsComponent.js +56 -54
  25. package/dist/assets/components/ParticleSystemsComponent.min.js +2 -2
  26. package/dist/assets/components/PickingComponent.js +33 -33
  27. package/dist/assets/components/PickingComponent.min.js +2 -2
  28. package/dist/assets/components/RigidBodyPhysicsComponent.js +39 -39
  29. package/dist/assets/components/RigidBodyPhysicsComponent.min.js +2 -2
  30. package/dist/assets/components/ScriptingComponent.js +43 -43
  31. package/dist/assets/components/ScriptingComponent.min.js +2 -2
  32. package/dist/assets/components/TextComponent.js +41 -39
  33. package/dist/assets/components/TextComponent.min.js +2 -2
  34. package/dist/assets/components/TextureProjectionComponent.js +21 -21
  35. package/dist/assets/components/TextureProjectionComponent.min.js +2 -2
  36. package/dist/assets/components/Texturing3DComponent.js +41 -41
  37. package/dist/assets/components/Texturing3DComponent.min.js +2 -2
  38. package/dist/assets/components/VolumeRenderingComponent.js +46 -44
  39. package/dist/assets/components/VolumeRenderingComponent.min.js +2 -2
  40. package/dist/assets/components/X_ITEComponent.js +53 -77
  41. package/dist/assets/components/X_ITEComponent.min.js +2 -2
  42. package/dist/assets/lib/README.md +1 -0
  43. package/dist/assets/lib/libktx.js +1 -1
  44. package/dist/example.html +1 -1
  45. package/dist/x_ite.css +1 -1
  46. package/dist/x_ite.js +1487 -1087
  47. package/dist/x_ite.min.js +2 -2
  48. package/dist/x_ite.min.mjs +2 -2
  49. package/dist/x_ite.mjs +1487 -1087
  50. package/dist/x_ite.zip +0 -0
  51. package/package.json +3 -3
@@ -1,5 +1,5 @@
1
- /* X_ITE v10.5.2 */
2
- const __X_ITE_X3D__ = window [Symbol .for ("X_ITE.X3D-10.5.2")];
1
+ /* X_ITE v10.5.4 */
2
+ const __X_ITE_X3D__ = window [Symbol .for ("X_ITE.X3D-10.5.4")];
3
3
  /******/ (() => { // webpackBootstrap
4
4
  /******/ "use strict";
5
5
  /******/ // The require scope
@@ -39,22 +39,22 @@ const __X_ITE_X3D__ = window [Symbol .for ("X_ITE.X3D-10.5.2")];
39
39
 
40
40
  // UNUSED EXPORTS: default
41
41
 
42
- ;// CONCATENATED MODULE: external "__X_ITE_X3D__ .Components"
42
+ ;// external "__X_ITE_X3D__ .Components"
43
43
  const external_X_ITE_X3D_Components_namespaceObject = __X_ITE_X3D__ .Components;
44
44
  var external_X_ITE_X3D_Components_default = /*#__PURE__*/__webpack_require__.n(external_X_ITE_X3D_Components_namespaceObject);
45
- ;// CONCATENATED MODULE: external "__X_ITE_X3D__ .X3DBaseNode"
45
+ ;// external "__X_ITE_X3D__ .X3DBaseNode"
46
46
  const external_X_ITE_X3D_X3DBaseNode_namespaceObject = __X_ITE_X3D__ .X3DBaseNode;
47
47
  var external_X_ITE_X3D_X3DBaseNode_default = /*#__PURE__*/__webpack_require__.n(external_X_ITE_X3D_X3DBaseNode_namespaceObject);
48
- ;// CONCATENATED MODULE: external "__X_ITE_X3D__ .X3DConstants"
48
+ ;// external "__X_ITE_X3D__ .X3DConstants"
49
49
  const external_X_ITE_X3D_X3DConstants_namespaceObject = __X_ITE_X3D__ .X3DConstants;
50
50
  var external_X_ITE_X3D_X3DConstants_default = /*#__PURE__*/__webpack_require__.n(external_X_ITE_X3D_X3DConstants_namespaceObject);
51
- ;// CONCATENATED MODULE: external "__X_ITE_X3D__ .Fields"
51
+ ;// external "__X_ITE_X3D__ .Fields"
52
52
  const external_X_ITE_X3D_Fields_namespaceObject = __X_ITE_X3D__ .Fields;
53
53
  var external_X_ITE_X3D_Fields_default = /*#__PURE__*/__webpack_require__.n(external_X_ITE_X3D_Fields_namespaceObject);
54
- ;// CONCATENATED MODULE: external "__X_ITE_X3D__ .Namespace"
54
+ ;// external "__X_ITE_X3D__ .Namespace"
55
55
  const external_X_ITE_X3D_Namespace_namespaceObject = __X_ITE_X3D__ .Namespace;
56
56
  var external_X_ITE_X3D_Namespace_default = /*#__PURE__*/__webpack_require__.n(external_X_ITE_X3D_Namespace_namespaceObject);
57
- ;// CONCATENATED MODULE: ./src/x_ite/Browser/Geometry2D/Arc2DOptions.js
57
+ ;// ./src/x_ite/Browser/Geometry2D/Arc2DOptions.js
58
58
  /*******************************************************************************
59
59
  *
60
60
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -128,7 +128,7 @@ const __default__ = Arc2DOptions;
128
128
  ;
129
129
 
130
130
  /* harmony default export */ const Geometry2D_Arc2DOptions = (external_X_ITE_X3D_Namespace_default().add ("Arc2DOptions", __default__));
131
- ;// CONCATENATED MODULE: ./src/x_ite/Browser/Geometry2D/ArcClose2DOptions.js
131
+ ;// ./src/x_ite/Browser/Geometry2D/ArcClose2DOptions.js
132
132
  /*******************************************************************************
133
133
  *
134
134
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -202,13 +202,13 @@ const ArcClose2DOptions_default_ = ArcClose2DOptions;
202
202
  ;
203
203
 
204
204
  /* harmony default export */ const Geometry2D_ArcClose2DOptions = (external_X_ITE_X3D_Namespace_default().add ("ArcClose2DOptions", ArcClose2DOptions_default_));
205
- ;// CONCATENATED MODULE: external "__X_ITE_X3D__ .X3DGeometryNode"
205
+ ;// external "__X_ITE_X3D__ .X3DGeometryNode"
206
206
  const external_X_ITE_X3D_X3DGeometryNode_namespaceObject = __X_ITE_X3D__ .X3DGeometryNode;
207
207
  var external_X_ITE_X3D_X3DGeometryNode_default = /*#__PURE__*/__webpack_require__.n(external_X_ITE_X3D_X3DGeometryNode_namespaceObject);
208
- ;// CONCATENATED MODULE: external "__X_ITE_X3D__ .Complex"
208
+ ;// external "__X_ITE_X3D__ .Complex"
209
209
  const external_X_ITE_X3D_Complex_namespaceObject = __X_ITE_X3D__ .Complex;
210
210
  var external_X_ITE_X3D_Complex_default = /*#__PURE__*/__webpack_require__.n(external_X_ITE_X3D_Complex_namespaceObject);
211
- ;// CONCATENATED MODULE: ./src/x_ite/Browser/Geometry2D/Circle2DOptions.js
211
+ ;// ./src/x_ite/Browser/Geometry2D/Circle2DOptions.js
212
212
  /*******************************************************************************
213
213
  *
214
214
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -324,7 +324,7 @@ const Circle2DOptions_default_ = Circle2DOptions;
324
324
  ;
325
325
 
326
326
  /* harmony default export */ const Geometry2D_Circle2DOptions = (external_X_ITE_X3D_Namespace_default().add ("Circle2DOptions", Circle2DOptions_default_));
327
- ;// CONCATENATED MODULE: ./src/x_ite/Browser/Geometry2D/Disk2DOptions.js
327
+ ;// ./src/x_ite/Browser/Geometry2D/Disk2DOptions.js
328
328
  /*******************************************************************************
329
329
  *
330
330
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -502,16 +502,16 @@ const Disk2DOptions_default_ = Disk2DOptions;
502
502
  ;
503
503
 
504
504
  /* harmony default export */ const Geometry2D_Disk2DOptions = (external_X_ITE_X3D_Namespace_default().add ("Disk2DOptions", Disk2DOptions_default_));
505
- ;// CONCATENATED MODULE: external "__X_ITE_X3D__ .IndexedFaceSet"
505
+ ;// external "__X_ITE_X3D__ .IndexedFaceSet"
506
506
  const external_X_ITE_X3D_IndexedFaceSet_namespaceObject = __X_ITE_X3D__ .IndexedFaceSet;
507
507
  var external_X_ITE_X3D_IndexedFaceSet_default = /*#__PURE__*/__webpack_require__.n(external_X_ITE_X3D_IndexedFaceSet_namespaceObject);
508
- ;// CONCATENATED MODULE: external "__X_ITE_X3D__ .Coordinate"
508
+ ;// external "__X_ITE_X3D__ .Coordinate"
509
509
  const external_X_ITE_X3D_Coordinate_namespaceObject = __X_ITE_X3D__ .Coordinate;
510
510
  var external_X_ITE_X3D_Coordinate_default = /*#__PURE__*/__webpack_require__.n(external_X_ITE_X3D_Coordinate_namespaceObject);
511
- ;// CONCATENATED MODULE: external "__X_ITE_X3D__ .TextureCoordinate"
511
+ ;// external "__X_ITE_X3D__ .TextureCoordinate"
512
512
  const external_X_ITE_X3D_TextureCoordinate_namespaceObject = __X_ITE_X3D__ .TextureCoordinate;
513
513
  var external_X_ITE_X3D_TextureCoordinate_default = /*#__PURE__*/__webpack_require__.n(external_X_ITE_X3D_TextureCoordinate_namespaceObject);
514
- ;// CONCATENATED MODULE: ./src/x_ite/Browser/Geometry2D/Rectangle2DOptions.js
514
+ ;// ./src/x_ite/Browser/Geometry2D/Rectangle2DOptions.js
515
515
  /*******************************************************************************
516
516
  *
517
517
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -611,10 +611,10 @@ const Rectangle2DOptions_default_ = Rectangle2DOptions;
611
611
  ;
612
612
 
613
613
  /* harmony default export */ const Geometry2D_Rectangle2DOptions = (external_X_ITE_X3D_Namespace_default().add ("Rectangle2DOptions", Rectangle2DOptions_default_));
614
- ;// CONCATENATED MODULE: external "__X_ITE_X3D__ .PrimitiveQuality"
614
+ ;// external "__X_ITE_X3D__ .PrimitiveQuality"
615
615
  const external_X_ITE_X3D_PrimitiveQuality_namespaceObject = __X_ITE_X3D__ .PrimitiveQuality;
616
616
  var external_X_ITE_X3D_PrimitiveQuality_default = /*#__PURE__*/__webpack_require__.n(external_X_ITE_X3D_PrimitiveQuality_namespaceObject);
617
- ;// CONCATENATED MODULE: ./src/x_ite/Browser/Geometry2D/X3DGeometry2DContext.js
617
+ ;// ./src/x_ite/Browser/Geometry2D/X3DGeometry2DContext.js
618
618
  /*******************************************************************************
619
619
  *
620
620
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -752,22 +752,22 @@ const X3DGeometry2DContext_default_ = X3DGeometry2DContext;
752
752
  ;
753
753
 
754
754
  /* harmony default export */ const Geometry2D_X3DGeometry2DContext = (external_X_ITE_X3D_Namespace_default().add ("X3DGeometry2DContext", X3DGeometry2DContext_default_));
755
- ;// CONCATENATED MODULE: external "__X_ITE_X3D__ .X3DFieldDefinition"
755
+ ;// external "__X_ITE_X3D__ .X3DFieldDefinition"
756
756
  const external_X_ITE_X3D_X3DFieldDefinition_namespaceObject = __X_ITE_X3D__ .X3DFieldDefinition;
757
757
  var external_X_ITE_X3D_X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(external_X_ITE_X3D_X3DFieldDefinition_namespaceObject);
758
- ;// CONCATENATED MODULE: external "__X_ITE_X3D__ .FieldDefinitionArray"
758
+ ;// external "__X_ITE_X3D__ .FieldDefinitionArray"
759
759
  const external_X_ITE_X3D_FieldDefinitionArray_namespaceObject = __X_ITE_X3D__ .FieldDefinitionArray;
760
760
  var external_X_ITE_X3D_FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(external_X_ITE_X3D_FieldDefinitionArray_namespaceObject);
761
- ;// CONCATENATED MODULE: external "__X_ITE_X3D__ .X3DNode"
761
+ ;// external "__X_ITE_X3D__ .X3DNode"
762
762
  const external_X_ITE_X3D_X3DNode_namespaceObject = __X_ITE_X3D__ .X3DNode;
763
763
  var external_X_ITE_X3D_X3DNode_default = /*#__PURE__*/__webpack_require__.n(external_X_ITE_X3D_X3DNode_namespaceObject);
764
- ;// CONCATENATED MODULE: external "__X_ITE_X3D__ .X3DLineGeometryNode"
764
+ ;// external "__X_ITE_X3D__ .X3DLineGeometryNode"
765
765
  const external_X_ITE_X3D_X3DLineGeometryNode_namespaceObject = __X_ITE_X3D__ .X3DLineGeometryNode;
766
766
  var external_X_ITE_X3D_X3DLineGeometryNode_default = /*#__PURE__*/__webpack_require__.n(external_X_ITE_X3D_X3DLineGeometryNode_namespaceObject);
767
- ;// CONCATENATED MODULE: external "__X_ITE_X3D__ .Algorithm"
767
+ ;// external "__X_ITE_X3D__ .Algorithm"
768
768
  const external_X_ITE_X3D_Algorithm_namespaceObject = __X_ITE_X3D__ .Algorithm;
769
769
  var external_X_ITE_X3D_Algorithm_default = /*#__PURE__*/__webpack_require__.n(external_X_ITE_X3D_Algorithm_namespaceObject);
770
- ;// CONCATENATED MODULE: ./src/x_ite/Components/Geometry2D/Arc2D.js
770
+ ;// ./src/x_ite/Components/Geometry2D/Arc2D.js
771
771
  /*******************************************************************************
772
772
  *
773
773
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -841,12 +841,14 @@ Object .assign (Object .setPrototypeOf (Arc2D .prototype, (external_X_ITE_X3D_X3
841
841
  {
842
842
  external_X_ITE_X3D_X3DLineGeometryNode_default().prototype .set_live__ .call (this);
843
843
 
844
- const alwaysUpdate = this .isLive () && this .getBrowser () .getBrowserOption ("AlwaysUpdateGeometries");
844
+ const
845
+ browser = this .getBrowser (),
846
+ alwaysUpdate = this .isLive () && browser .getBrowserOption ("AlwaysUpdateGeometries");
845
847
 
846
848
  if (this .getLive () .getValue () || alwaysUpdate)
847
- this .getBrowser () .getArc2DOptions () .addInterest ("requestRebuild", this);
849
+ browser .getArc2DOptions () .addInterest ("requestRebuild", this);
848
850
  else
849
- this .getBrowser () .getArc2DOptions () .removeInterest ("requestRebuild", this);
851
+ browser .getArc2DOptions () .removeInterest ("requestRebuild", this);
850
852
  },
851
853
  getSweepAngle ()
852
854
  {
@@ -917,7 +919,7 @@ const Arc2D_default_ = Arc2D;
917
919
  ;
918
920
 
919
921
  /* harmony default export */ const Geometry2D_Arc2D = (external_X_ITE_X3D_Namespace_default().add ("Arc2D", Arc2D_default_));
920
- ;// CONCATENATED MODULE: ./src/x_ite/Components/Geometry2D/ArcClose2D.js
922
+ ;// ./src/x_ite/Components/Geometry2D/ArcClose2D.js
921
923
  /*******************************************************************************
922
924
  *
923
925
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -993,12 +995,14 @@ Object .assign (Object .setPrototypeOf (ArcClose2D .prototype, (external_X_ITE_X
993
995
  {
994
996
  external_X_ITE_X3D_X3DGeometryNode_default().prototype .set_live__ .call (this);
995
997
 
996
- const alwaysUpdate = this .isLive () && this .getBrowser () .getBrowserOption ("AlwaysUpdateGeometries");
998
+ const
999
+ browser = this .getBrowser (),
1000
+ alwaysUpdate = this .isLive () && browser .getBrowserOption ("AlwaysUpdateGeometries");
997
1001
 
998
1002
  if (this .getLive () .getValue () || alwaysUpdate)
999
- this .getBrowser () .getArcClose2DOptions () .addInterest ("requestRebuild", this);
1003
+ browser .getArcClose2DOptions () .addInterest ("requestRebuild", this);
1000
1004
  else
1001
- this .getBrowser () .getArcClose2DOptions () .removeInterest ("requestRebuild", this);
1005
+ browser .getArcClose2DOptions () .removeInterest ("requestRebuild", this);
1002
1006
  },
1003
1007
  getSweepAngle ()
1004
1008
  {
@@ -1132,7 +1136,7 @@ const ArcClose2D_default_ = ArcClose2D;
1132
1136
  ;
1133
1137
 
1134
1138
  /* harmony default export */ const Geometry2D_ArcClose2D = (external_X_ITE_X3D_Namespace_default().add ("ArcClose2D", ArcClose2D_default_));
1135
- ;// CONCATENATED MODULE: ./src/x_ite/Components/Geometry2D/Circle2D.js
1139
+ ;// ./src/x_ite/Components/Geometry2D/Circle2D.js
1136
1140
  /*******************************************************************************
1137
1141
  *
1138
1142
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -1202,12 +1206,14 @@ Object .assign (Object .setPrototypeOf (Circle2D .prototype, (external_X_ITE_X3D
1202
1206
  {
1203
1207
  external_X_ITE_X3D_X3DLineGeometryNode_default().prototype .set_live__ .call (this);
1204
1208
 
1205
- const alwaysUpdate = this .isLive () && this .getBrowser () .getBrowserOption ("AlwaysUpdateGeometries");
1209
+ const
1210
+ browser = this .getBrowser (),
1211
+ alwaysUpdate = this .isLive () && browser .getBrowserOption ("AlwaysUpdateGeometries");
1206
1212
 
1207
1213
  if (this .getLive () .getValue () || alwaysUpdate)
1208
- this .getBrowser () .getCircle2DOptions () .addInterest ("requestRebuild", this);
1214
+ browser .getCircle2DOptions () .addInterest ("requestRebuild", this);
1209
1215
  else
1210
- this .getBrowser () .getCircle2DOptions () .removeInterest ("requestRebuild", this);
1216
+ browser .getCircle2DOptions () .removeInterest ("requestRebuild", this);
1211
1217
  },
1212
1218
  build ()
1213
1219
  {
@@ -1250,10 +1256,10 @@ const Circle2D_default_ = Circle2D;
1250
1256
  ;
1251
1257
 
1252
1258
  /* harmony default export */ const Geometry2D_Circle2D = (external_X_ITE_X3D_Namespace_default().add ("Circle2D", Circle2D_default_));
1253
- ;// CONCATENATED MODULE: external "__X_ITE_X3D__ .X3DPointGeometryNode"
1259
+ ;// external "__X_ITE_X3D__ .X3DPointGeometryNode"
1254
1260
  const external_X_ITE_X3D_X3DPointGeometryNode_namespaceObject = __X_ITE_X3D__ .X3DPointGeometryNode;
1255
1261
  var external_X_ITE_X3D_X3DPointGeometryNode_default = /*#__PURE__*/__webpack_require__.n(external_X_ITE_X3D_X3DPointGeometryNode_namespaceObject);
1256
- ;// CONCATENATED MODULE: ./src/x_ite/Components/Geometry2D/Disk2D.js
1262
+ ;// ./src/x_ite/Components/Geometry2D/Disk2D.js
1257
1263
  /*******************************************************************************
1258
1264
  *
1259
1265
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -1321,21 +1327,20 @@ function Disk2D (executionContext)
1321
1327
  }
1322
1328
 
1323
1329
  Object .assign (Object .setPrototypeOf (Disk2D .prototype, (external_X_ITE_X3D_X3DGeometryNode_default()).prototype),
1330
+ (external_X_ITE_X3D_X3DLineGeometryNode_default()).prototype,
1324
1331
  {
1325
- initialize ()
1326
- {
1327
- external_X_ITE_X3D_X3DGeometryNode_default().prototype .initialize .call (this);
1328
- },
1329
1332
  set_live__ ()
1330
1333
  {
1331
1334
  external_X_ITE_X3D_X3DGeometryNode_default().prototype .set_live__ .call (this);
1332
1335
 
1333
- const alwaysUpdate = this .isLive () && this .getBrowser () .getBrowserOption ("AlwaysUpdateGeometries");
1336
+ const
1337
+ browser = this .getBrowser (),
1338
+ alwaysUpdate = this .isLive () && browser .getBrowserOption ("AlwaysUpdateGeometries");
1334
1339
 
1335
1340
  if (this .getLive () .getValue () || alwaysUpdate)
1336
- this .getBrowser () .getDisk2DOptions () .addInterest ("requestRebuild", this);
1341
+ browser .getDisk2DOptions () .addInterest ("requestRebuild", this);
1337
1342
  else
1338
- this .getBrowser () .getDisk2DOptions () .removeInterest ("requestRebuild", this);
1343
+ browser .getDisk2DOptions () .removeInterest ("requestRebuild", this);
1339
1344
  },
1340
1345
  build ()
1341
1346
  {
@@ -1497,7 +1502,7 @@ const Disk2D_default_ = Disk2D;
1497
1502
  ;
1498
1503
 
1499
1504
  /* harmony default export */ const Geometry2D_Disk2D = (external_X_ITE_X3D_Namespace_default().add ("Disk2D", Disk2D_default_));
1500
- ;// CONCATENATED MODULE: ./src/x_ite/Components/Geometry2D/Polyline2D.js
1505
+ ;// ./src/x_ite/Components/Geometry2D/Polyline2D.js
1501
1506
  /*******************************************************************************
1502
1507
  *
1503
1508
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -1594,7 +1599,7 @@ const Polyline2D_default_ = Polyline2D;
1594
1599
  ;
1595
1600
 
1596
1601
  /* harmony default export */ const Geometry2D_Polyline2D = (external_X_ITE_X3D_Namespace_default().add ("Polyline2D", Polyline2D_default_));
1597
- ;// CONCATENATED MODULE: ./src/x_ite/Components/Geometry2D/Polypoint2D.js
1602
+ ;// ./src/x_ite/Components/Geometry2D/Polypoint2D.js
1598
1603
  /*******************************************************************************
1599
1604
  *
1600
1605
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -1690,10 +1695,10 @@ const Polypoint2D_default_ = Polypoint2D;
1690
1695
  ;
1691
1696
 
1692
1697
  /* harmony default export */ const Geometry2D_Polypoint2D = (external_X_ITE_X3D_Namespace_default().add ("Polypoint2D", Polypoint2D_default_));
1693
- ;// CONCATENATED MODULE: external "__X_ITE_X3D__ .Vector2"
1698
+ ;// external "__X_ITE_X3D__ .Vector2"
1694
1699
  const external_X_ITE_X3D_Vector2_namespaceObject = __X_ITE_X3D__ .Vector2;
1695
1700
  var external_X_ITE_X3D_Vector2_default = /*#__PURE__*/__webpack_require__.n(external_X_ITE_X3D_Vector2_namespaceObject);
1696
- ;// CONCATENATED MODULE: ./src/x_ite/Components/Geometry2D/Rectangle2D.js
1701
+ ;// ./src/x_ite/Components/Geometry2D/Rectangle2D.js
1697
1702
  /*******************************************************************************
1698
1703
  *
1699
1704
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -1827,7 +1832,7 @@ const Rectangle2D_default_ = Rectangle2D;
1827
1832
  ;
1828
1833
 
1829
1834
  /* harmony default export */ const Geometry2D_Rectangle2D = (external_X_ITE_X3D_Namespace_default().add ("Rectangle2D", Rectangle2D_default_));
1830
- ;// CONCATENATED MODULE: ./src/x_ite/Components/Geometry2D/TriangleSet2D.js
1835
+ ;// ./src/x_ite/Components/Geometry2D/TriangleSet2D.js
1831
1836
  /*******************************************************************************
1832
1837
  *
1833
1838
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -1955,7 +1960,7 @@ const TriangleSet2D_default_ = TriangleSet2D;
1955
1960
  ;
1956
1961
 
1957
1962
  /* harmony default export */ const Geometry2D_TriangleSet2D = (external_X_ITE_X3D_Namespace_default().add ("TriangleSet2D", TriangleSet2D_default_));
1958
- ;// CONCATENATED MODULE: ./src/assets/components/Geometry2DComponent.js
1963
+ ;// ./src/assets/components/Geometry2DComponent.js
1959
1964
  /*******************************************************************************
1960
1965
  *
1961
1966
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -1,2 +1,2 @@
1
- /* X_ITE v10.5.2 */
2
- const e=window[Symbol.for("X_ITE.X3D-10.5.2")];(()=>{var t={n:e=>{var i=e&&e.__esModule?()=>e.default:()=>e;return t.d(i,{a:i}),i},d:(e,i)=>{for(var s in i)t.o(i,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:i[s]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const i=e.Components;var s=t.n(i);const n=e.X3DBaseNode;var o=t.n(n);const r=e.X3DConstants;var a=t.n(r);const l=e.Fields;var h=t.n(l);const g=e.Namespace;var c=t.n(g);function d(e){o().call(this,e),this.addChildObjects(a().inputOutput,"dimension",new(h().SFInt32)(40))}Object.setPrototypeOf(d.prototype,o().prototype),Object.defineProperties(d,{typeName:{value:"Arc2DOptions",enumerable:!0}});const p=d,u=c().add("Arc2DOptions",p);function y(e){o().call(this,e),this.addChildObjects(a().inputOutput,"dimension",new(h().SFInt32)(40))}Object.setPrototypeOf(y.prototype,o().prototype),Object.defineProperties(y,{typeName:{value:"ArcClose2DOptions",enumerable:!0}});const m=y,O=c().add("ArcClose2DOptions",m),D=e.X3DGeometryNode;var w=t.n(D);const f=e.Complex;var b=t.n(f);function _(e){o().call(this,e),this.addChildObjects(a().inputOutput,"dimension",new(h().SFInt32)(40)),this.vertices=w().createArray()}Object.assign(Object.setPrototypeOf(_.prototype,o().prototype),{initialize(){o().prototype.initialize.call(this),this.addInterest("eventsProcessed",this)},getVertices(){return this.vertices.length||this.build(),this.vertices},build(){const e=this._dimension.getValue(),t=2*Math.PI/e,i=this.vertices;for(let s=0;s<e;++s){const e=b().Polar(1,t*s),n=b().Polar(1,t*(s+1));i.push(e.real,e.imag,0,1),i.push(n.real,n.imag,0,1)}i.shrinkToFit()},eventsProcessed(){this.vertices.length=0}}),Object.defineProperties(_,{typeName:{value:"Circle2DOptions",enumerable:!0}});const v=_,P=c().add("Circle2DOptions",v);function V(e){o().call(this,e),this.addChildObjects(a().inputOutput,"dimension",new(h().SFInt32)(40)),this.circleVertices=w().createArray(),this.diskTexCoords=w().createArray(),this.diskNormals=w().createArray(),this.diskVertices=w().createArray()}Object.assign(Object.setPrototypeOf(V.prototype,o().prototype),{initialize(){o().prototype.initialize.call(this),this.addInterest("eventsProcessed",this)},getCircleVertices(){return this.circleVertices.length||this.build(),this.circleVertices},getDiskTexCoords(){return this.diskTexCoords.length||this.build(),this.diskTexCoords},getDiskNormals(){return this.diskNormals.length||this.build(),this.diskNormals},getDiskVertices(){return this.diskVertices.length||this.build(),this.diskVertices},build:(()=>{const e=new(b())(.5,.5),t=new(b()),i=new(b()),s=new(b()),n=new(b());return function(){const o=this._dimension.getValue(),r=2*Math.PI/o,a=this.circleVertices,l=this.diskTexCoords,h=this.diskNormals,g=this.diskVertices;for(let c=0;c<o;++c){const o=r*c,d=r*(c+1);t.setPolar(.5,o).add(e),i.setPolar(.5,d).add(e),s.setPolar(1,o),n.setPolar(1,d),a.push(s.real,s.imag,0,1),a.push(n.real,n.imag,0,1),l.push(.5,.5,0,1,t.real,t.imag,0,1,i.real,i.imag,0,1),h.push(0,0,1,0,0,1,0,0,1),g.push(0,0,0,1,s.real,s.imag,0,1,n.real,n.imag,0,1)}a.shrinkToFit(),l.shrinkToFit(),h.shrinkToFit(),g.shrinkToFit()}})(),eventsProcessed(){this.circleVertices.length=0,this.diskTexCoords.length=0,this.diskNormals.length=0,this.diskVertices.length=0}}),Object.defineProperties(V,{typeName:{value:"Disk2DOptions",enumerable:!0}});const S=V,C=c().add("Disk2DOptions",S),M=e.IndexedFaceSet;var T=t.n(M);const A=e.Coordinate;var x=t.n(A);const F=e.TextureCoordinate;var j=t.n(F);function k(e){o().call(this,e)}Object.assign(Object.setPrototypeOf(k.prototype,o().prototype),{getGeometry(){if(this.geometry)return this.geometry;this.geometry=new(T())(this.getExecutionContext()),this.geometry._texCoord=new(j())(this.getExecutionContext()),this.geometry._coord=new(x())(this.getExecutionContext());const e=this.geometry,t=this.geometry._texCoord.getValue(),i=this.geometry._coord.getValue();return t._point=[1,1,0,1,0,0,1,0],i._point=[1,1,0,-1,1,0,-1,-1,0,1,-1,0],e._coordIndex=[0,1,2,3,-1],t.setup(),i.setup(),e.setup(),this.geometry}}),Object.defineProperties(k,{typeName:{value:"Rectangle2DOptions",enumerable:!0}});const N=k,I=c().add("Rectangle2DOptions",N),B=e.PrimitiveQuality;var G=t.n(B);function R(){}function z(e,t){const i=new t(this.getPrivateScene());return i.setup(),this[e]=function(){return i},Object.defineProperty(this,e,{enumerable:!1}),i}Object.assign(R.prototype,{initialize(){this.setPrimitiveQuality2D(this.getBrowserOptions().getPrimitiveQuality())},getArc2DOptions(){return z.call(this,"getArc2DOptions",u)},getArcClose2DOptions(){return z.call(this,"getArcClose2DOptions",O)},getCircle2DOptions(){return z.call(this,"getCircle2DOptions",P)},getDisk2DOptions(){return z.call(this,"getDisk2DOptions",C)},getRectangle2DOptions(){return z.call(this,"getRectangle2DOptions",I)},setPrimitiveQuality2D(e){const t=this.getArc2DOptions(),i=this.getArcClose2DOptions(),s=this.getCircle2DOptions(),n=this.getDisk2DOptions();switch(e){case G().LOW:t._dimension=20,i._dimension=20,s._dimension=20,n._dimension=20;break;case G().MEDIUM:t._dimension=40,i._dimension=40,s._dimension=40,n._dimension=40;break;case G().HIGH:t._dimension=80,i._dimension=80,s._dimension=80,n._dimension=80}}});const U=R,L=c().add("X3DGeometry2DContext",U),X=e.X3DFieldDefinition;var q=t.n(X);const E=e.FieldDefinitionArray;var Q=t.n(E);const H=e.X3DNode;var W=t.n(H);const J=e.X3DLineGeometryNode;var K=t.n(J);const Y=e.Algorithm;var Z=t.n(Y);function $(e){K().call(this,e),this.addType(a().Arc2D),this._startAngle.setUnit("angle"),this._endAngle.setUnit("angle"),this._radius.setUnit("length")}Object.assign(Object.setPrototypeOf($.prototype,K().prototype),{set_live__(){K().prototype.set_live__.call(this);const e=this.isLive()&&this.getBrowser().getBrowserOption("AlwaysUpdateGeometries");this.getLive().getValue()||e?this.getBrowser().getArc2DOptions().addInterest("requestRebuild",this):this.getBrowser().getArc2DOptions().removeInterest("requestRebuild",this)},getSweepAngle(){const e=Z().interval(this._startAngle.getValue(),0,2*Math.PI),t=Z().interval(this._endAngle.getValue(),0,2*Math.PI);if(e===t)return 2*Math.PI;const i=Math.abs(t-e);return e>t?2*Math.PI-i:isNaN(i)?0:i},build(){const e=this.getBrowser().getArc2DOptions()._dimension.getValue(),t=this._startAngle.getValue(),i=Math.abs(this._radius.getValue()),s=this.getSweepAngle(),n=Math.max(3,Math.floor(s*e/(2*Math.PI))),o=this.getVertices();for(let e=0;e<n;++e){const r=t+s*(e/n),a=b().Polar(i,r),l=t+s*((e+1)/n),h=b().Polar(i,l);o.push(a.real,a.imag,0,1),o.push(h.real,h.imag,0,1)}this.getMin().set(-i,-i,0),this.getMax().set(i,i,0)}}),Object.defineProperties($,{...W().getStaticProperties("Arc2D","Geometry2D",2,"geometry","3.0"),fieldDefinitions:{value:new(Q())([new(q())(a().inputOutput,"metadata",new(h().SFNode)),new(q())(a().initializeOnly,"startAngle",new(h().SFFloat)),new(q())(a().initializeOnly,"endAngle",new(h().SFFloat)(1.570796)),new(q())(a().initializeOnly,"radius",new(h().SFFloat)(1))]),enumerable:!0}});const ee=$,te=c().add("Arc2D",ee);function ie(e){w().call(this,e),this.addType(a().ArcClose2D),this.setGeometryType(2),this._startAngle.setUnit("angle"),this._endAngle.setUnit("angle"),this._radius.setUnit("length")}Object.assign(Object.setPrototypeOf(ie.prototype,w().prototype),{set_live__(){w().prototype.set_live__.call(this);const e=this.isLive()&&this.getBrowser().getBrowserOption("AlwaysUpdateGeometries");this.getLive().getValue()||e?this.getBrowser().getArcClose2DOptions().addInterest("requestRebuild",this):this.getBrowser().getArcClose2DOptions().removeInterest("requestRebuild",this)},getSweepAngle(){const e=Z().interval(this._startAngle.getValue(),0,2*Math.PI),t=Z().interval(this._endAngle.getValue(),0,2*Math.PI);if(e===t)return 2*Math.PI;const i=Math.abs(t-e);return e>t?2*Math.PI-i:isNaN(i)?0:i},build:(()=>{const e=new(b())(.5,.5);return function(){const t=this.getBrowser().getArcClose2DOptions(),i="CHORD"===this._closureType.getValue(),s=t._dimension.getValue(),n=this._startAngle.getValue(),o=Math.abs(this._radius.getValue()),r=this.getSweepAngle(),a=Math.max(4,Math.floor(r*s/(2*Math.PI))),l=this.getTexCoords(),h=this.getNormals(),g=this.getVertices(),c=[],d=[];this.getMultiTexCoords().push(l);const p=a-1;for(let t=0;t<a;++t){const i=n+r*(t/p);c.push(b().Polar(.5,i).add(e)),d.push(b().Polar(o,i))}if(i){const e=c[0],t=d[0];for(let i=1;i<p;++i){const s=c[i],n=c[i+1],o=d[i],r=d[i+1];l.push(e.real,e.imag,0,1,s.real,s.imag,0,1,n.real,n.imag,0,1),h.push(0,0,1,0,0,1,0,0,1),g.push(t.real,t.imag,0,1,o.real,o.imag,0,1,r.real,r.imag,0,1)}}else for(let e=0;e<p;++e){const t=c[e],i=c[e+1],s=d[e],n=d[e+1];l.push(.5,.5,0,1,t.real,t.imag,0,1,i.real,i.imag,0,1),h.push(0,0,1,0,0,1,0,0,1),g.push(0,0,0,1,s.real,s.imag,0,1,n.real,n.imag,0,1)}this.getMin().set(-o,-o,0),this.getMax().set(o,o,0),this.setSolid(this._solid.getValue())}})()}),Object.defineProperties(ie,{...W().getStaticProperties("ArcClose2D","Geometry2D",2,"geometry","3.0"),fieldDefinitions:{value:new(Q())([new(q())(a().inputOutput,"metadata",new(h().SFNode)),new(q())(a().initializeOnly,"closureType",new(h().SFString)("PIE")),new(q())(a().initializeOnly,"startAngle",new(h().SFFloat)),new(q())(a().initializeOnly,"endAngle",new(h().SFFloat)(1.570796)),new(q())(a().initializeOnly,"radius",new(h().SFFloat)(1)),new(q())(a().initializeOnly,"solid",new(h().SFBool))]),enumerable:!0}});const se=ie,ne=c().add("ArcClose2D",se);function oe(e){K().call(this,e),this.addType(a().Circle2D),this._radius.setUnit("length")}Object.assign(Object.setPrototypeOf(oe.prototype,K().prototype),{set_live__(){K().prototype.set_live__.call(this);const e=this.isLive()&&this.getBrowser().getBrowserOption("AlwaysUpdateGeometries");this.getLive().getValue()||e?this.getBrowser().getCircle2DOptions().addInterest("requestRebuild",this):this.getBrowser().getCircle2DOptions().removeInterest("requestRebuild",this)},build(){const e=this.getBrowser().getCircle2DOptions(),t=this.getVertices(),i=this._radius.getValue();if(1===i)t.assign(e.getVertices());else{const s=e.getVertices().getValue();for(let e=0,n=s.length;e<n;e+=4)t.push(s[e]*i,s[e+1]*i,0,1)}this.getMin().set(-i,-i,0),this.getMax().set(i,i,0)}}),Object.defineProperties(oe,{...W().getStaticProperties("Circle2D","Geometry2D",2,"geometry","3.0"),fieldDefinitions:{value:new(Q())([new(q())(a().inputOutput,"metadata",new(h().SFNode)),new(q())(a().initializeOnly,"radius",new(h().SFFloat)(1))]),enumerable:!0}});const re=oe,ae=c().add("Circle2D",re),le=e.X3DPointGeometryNode;var he=t.n(le);function ge(e){K().call(this,e),this.addType(a().Disk2D),this._innerRadius.setUnit("length"),this._outerRadius.setUnit("length")}Object.assign(Object.setPrototypeOf(ge.prototype,w().prototype),{initialize(){w().prototype.initialize.call(this)},set_live__(){w().prototype.set_live__.call(this);const e=this.isLive()&&this.getBrowser().getBrowserOption("AlwaysUpdateGeometries");this.getLive().getValue()||e?this.getBrowser().getDisk2DOptions().addInterest("requestRebuild",this):this.getBrowser().getDisk2DOptions().removeInterest("requestRebuild",this)},build(){const e=this.getBrowser(),t=e.getContext(),i=e.getDisk2DOptions(),s=Math.min(Math.abs(this._innerRadius.getValue()),Math.abs(this._outerRadius.getValue())),n=Math.max(Math.abs(this._innerRadius.getValue()),Math.abs(this._outerRadius.getValue())),o=this.getVertices();if(s===n){if(0===n)return o.push(0,0,0,1),this.getMin().set(0,0,0),this.getMax().set(0,0,0),this.setGeometryType(0),this.setPrimitiveMode(t.POINTS),this.setTransparent(!0),this.setSolid(!1),void this.setBase(he());if(1===n)o.assign(i.getCircleVertices());else{const e=i.getCircleVertices().getValue();for(let t=0,i=e.length;t<i;t+=4)o.push(e[t]*n,e[t+1]*n,0,1)}return this.getMin().set(-n,-n,0),this.getMax().set(n,n,0),this.setGeometryType(1),this.setPrimitiveMode(t.LINES),this.setTransparent(!1),this.setSolid(!1),void this.setBase(K())}if(0===s){if(this.getMultiTexCoords().push(i.getDiskTexCoords()),this.getNormals().assign(i.getDiskNormals()),1===n)o.assign(i.getDiskVertices());else{const e=i.getDiskVertices().getValue();for(let t=0,i=e.length;t<i;t+=4)o.push(e[t]*n,e[t+1]*n,0,1)}return this.getMin().set(-n,-n,0),this.getMax().set(n,n,0),this.setGeometryType(2),this.setPrimitiveMode(t.TRIANGLES),this.setTransparent(!1),this.setSolid(this._solid.getValue()),void this.setBase(w())}const r=s/n,a=(1-r)/2,l=i.getDiskTexCoords().getValue(),h=i.getDiskVertices().getValue(),g=this.getTexCoords(),c=this.getNormals();this.getMultiTexCoords().push(g);for(let e=0,t=h.length;e<t;e+=12)g.push(l[e+4]*r+a,l[e+5]*r+a,0,1,l[e+4],l[e+5],0,1,l[e+8],l[e+9],0,1,l[e+4]*r+a,l[e+5]*r+a,0,1,l[e+8],l[e+9],0,1,l[e+8]*r+a,l[e+9]*r+a,0,1),c.push(0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1),o.push(h[e+4]*s,h[e+5]*s,0,1,h[e+4]*n,h[e+5]*n,0,1,h[e+8]*n,h[e+9]*n,0,1,h[e+4]*s,h[e+5]*s,0,1,h[e+8]*n,h[e+9]*n,0,1,h[e+8]*s,h[e+9]*s,0,1);this.getMin().set(-n,-n,0),this.getMax().set(n,n,0),this.setGeometryType(2),this.setPrimitiveMode(t.TRIANGLES),this.setTransparent(!1),this.setSolid(this._solid.getValue()),this.setBase(w())},setBase(e){this.intersectsLine=e.prototype.intersectsLine,this.intersectsBox=e.prototype.intersectsBox,this.generateTexCoords=e.prototype.generateTexCoords,this.displaySimple=e.prototype.displaySimple,this.display=e.prototype.display,this.displaySimpleInstanced=e.prototype.displaySimpleInstanced,this.displayInstanced=e.prototype.displayInstanced},updateRenderFunctions(){}}),Object.defineProperties(ge,{...W().getStaticProperties("Disk2D","Geometry2D",2,"geometry","3.0"),fieldDefinitions:{value:new(Q())([new(q())(a().inputOutput,"metadata",new(h().SFNode)),new(q())(a().initializeOnly,"innerRadius",new(h().SFFloat)),new(q())(a().initializeOnly,"outerRadius",new(h().SFFloat)(1)),new(q())(a().initializeOnly,"solid",new(h().SFBool))]),enumerable:!0}});const ce=ge,de=c().add("Disk2D",ce);function pe(e){K().call(this,e),this.addType(a().Polyline2D),this._lineSegments.setUnit("length")}Object.assign(Object.setPrototypeOf(pe.prototype,K().prototype),{build(){const e=this._lineSegments.getValue(),t=this.getVertices();for(let i=0,s=2*(this._lineSegments.length-1);i<s;i+=2)t.push(e[i+0],e[i+1],0,1),t.push(e[i+2],e[i+3],0,1)}}),Object.defineProperties(pe,{...W().getStaticProperties("Polyline2D","Geometry2D",1,"geometry","3.0"),fieldDefinitions:{value:new(Q())([new(q())(a().inputOutput,"metadata",new(h().SFNode)),new(q())(a().initializeOnly,"lineSegments",new(h().MFVec2f))]),enumerable:!0}});const ue=pe,ye=c().add("Polyline2D",ue);function me(e){he().call(this,e),this.addType(a().Polypoint2D),this._point.setUnit("length")}Object.assign(Object.setPrototypeOf(me.prototype,he().prototype),{build(){const e=this._point.getValue(),t=this.getVertices();for(let i=0,s=2*this._point.length;i<s;i+=2)t.push(e[i],e[i+1],0,1)}}),Object.defineProperties(me,{...W().getStaticProperties("Polypoint2D","Geometry2D",1,"geometry","3.0"),fieldDefinitions:{value:new(Q())([new(q())(a().inputOutput,"metadata",new(h().SFNode)),new(q())(a().inputOutput,"point",new(h().MFVec2f))]),enumerable:!0}});const Oe=me,De=c().add("Polypoint2D",Oe),we=e.Vector2;var fe=t.n(we);function be(e){w().call(this,e),this.addType(a().Rectangle2D),this.setGeometryType(2),this._size.setUnit("length")}Object.assign(Object.setPrototypeOf(be.prototype,w().prototype),{build:(()=>{const e=new(fe())(2,2);return function(){const t=this.getBrowser().getRectangle2DOptions().getGeometry(),i=this._size.getValue(),s=this.getVertices();if(this.getMultiTexCoords().push(...t.getMultiTexCoords()),this.getTangents().assign(t.getTangents()),this.getNormals().assign(t.getNormals()),i.equals(e))s.assign(t.getVertices()),this.getMin().assign(t.getMin()),this.getMax().assign(t.getMax());else{const e=Math.abs(i.x/2),n=Math.abs(i.y/2),o=t.getVertices().getValue();for(let t=0;t<o.length;t+=4)s.push(e*o[t],n*o[t+1],0,1);this.getMin().set(-e,-n,0),this.getMax().set(e,n,0)}this.setSolid(this._solid.getValue())}})()}),Object.defineProperties(be,{...W().getStaticProperties("Rectangle2D","Geometry2D",1,"geometry","3.0"),fieldDefinitions:{value:new(Q())([new(q())(a().inputOutput,"metadata",new(h().SFNode)),new(q())(a().initializeOnly,"size",new(h().SFVec2f)(2,2)),new(q())(a().initializeOnly,"solid",new(h().SFBool))]),enumerable:!0}});const _e=be,ve=c().add("Rectangle2D",_e);function Pe(e){w().call(this,e),this.addType(a().TriangleSet2D),this.setGeometryType(2),this._vertices.setUnit("length")}Object.assign(Object.setPrototypeOf(Pe.prototype,w().prototype),{build(){const e=this._vertices.getValue(),t=this.getNormals(),i=this.getVertices();for(let s=0,n=2*this._vertices.length;s<n;s+=2)t.push(0,0,1),i.push(e[s],e[s+1],0,1);this.setSolid(this._solid.getValue())},generateTexCoords(){const e=this.getTexCoords();if(0===e.length){const t=this.getTexCoordParams(),i=t.min,s=t.Ssize,n=this.getVertices().getValue();for(let t=0,o=n.length;t<o;t+=4)e.push((n[t]-i[0])/s,(n[t+1]-i[1])/s,0,1);e.shrinkToFit()}this.getMultiTexCoords().push(e)}}),Object.defineProperties(Pe,{...W().getStaticProperties("TriangleSet2D","Geometry2D",1,"geometry","3.0"),fieldDefinitions:{value:new(Q())([new(q())(a().inputOutput,"metadata",new(h().SFNode)),new(q())(a().inputOutput,"vertices",new(h().MFVec2f)),new(q())(a().initializeOnly,"solid",new(h().SFBool))]),enumerable:!0}});const Ve=Pe,Se=c().add("TriangleSet2D",Ve);s().add({name:"Geometry2D",concreteNodes:[te,ne,ae,de,ye,De,ve,Se],abstractNodes:[],browserContext:L});c().add("Geometry2DComponent",undefined)})();
1
+ /* X_ITE v10.5.4 */
2
+ const e=window[Symbol.for("X_ITE.X3D-10.5.4")];(()=>{var t={n:e=>{var i=e&&e.__esModule?()=>e.default:()=>e;return t.d(i,{a:i}),i},d:(e,i)=>{for(var s in i)t.o(i,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:i[s]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const i=e.Components;var s=t.n(i);const n=e.X3DBaseNode;var o=t.n(n);const r=e.X3DConstants;var a=t.n(r);const l=e.Fields;var h=t.n(l);const g=e.Namespace;var c=t.n(g);function d(e){o().call(this,e),this.addChildObjects(a().inputOutput,"dimension",new(h().SFInt32)(40))}Object.setPrototypeOf(d.prototype,o().prototype),Object.defineProperties(d,{typeName:{value:"Arc2DOptions",enumerable:!0}});const p=d,u=c().add("Arc2DOptions",p);function y(e){o().call(this,e),this.addChildObjects(a().inputOutput,"dimension",new(h().SFInt32)(40))}Object.setPrototypeOf(y.prototype,o().prototype),Object.defineProperties(y,{typeName:{value:"ArcClose2DOptions",enumerable:!0}});const m=y,O=c().add("ArcClose2DOptions",m),D=e.X3DGeometryNode;var f=t.n(D);const w=e.Complex;var b=t.n(w);function _(e){o().call(this,e),this.addChildObjects(a().inputOutput,"dimension",new(h().SFInt32)(40)),this.vertices=f().createArray()}Object.assign(Object.setPrototypeOf(_.prototype,o().prototype),{initialize(){o().prototype.initialize.call(this),this.addInterest("eventsProcessed",this)},getVertices(){return this.vertices.length||this.build(),this.vertices},build(){const e=this._dimension.getValue(),t=2*Math.PI/e,i=this.vertices;for(let s=0;s<e;++s){const e=b().Polar(1,t*s),n=b().Polar(1,t*(s+1));i.push(e.real,e.imag,0,1),i.push(n.real,n.imag,0,1)}i.shrinkToFit()},eventsProcessed(){this.vertices.length=0}}),Object.defineProperties(_,{typeName:{value:"Circle2DOptions",enumerable:!0}});const v=_,P=c().add("Circle2DOptions",v);function V(e){o().call(this,e),this.addChildObjects(a().inputOutput,"dimension",new(h().SFInt32)(40)),this.circleVertices=f().createArray(),this.diskTexCoords=f().createArray(),this.diskNormals=f().createArray(),this.diskVertices=f().createArray()}Object.assign(Object.setPrototypeOf(V.prototype,o().prototype),{initialize(){o().prototype.initialize.call(this),this.addInterest("eventsProcessed",this)},getCircleVertices(){return this.circleVertices.length||this.build(),this.circleVertices},getDiskTexCoords(){return this.diskTexCoords.length||this.build(),this.diskTexCoords},getDiskNormals(){return this.diskNormals.length||this.build(),this.diskNormals},getDiskVertices(){return this.diskVertices.length||this.build(),this.diskVertices},build:(()=>{const e=new(b())(.5,.5),t=new(b()),i=new(b()),s=new(b()),n=new(b());return function(){const o=this._dimension.getValue(),r=2*Math.PI/o,a=this.circleVertices,l=this.diskTexCoords,h=this.diskNormals,g=this.diskVertices;for(let c=0;c<o;++c){const o=r*c,d=r*(c+1);t.setPolar(.5,o).add(e),i.setPolar(.5,d).add(e),s.setPolar(1,o),n.setPolar(1,d),a.push(s.real,s.imag,0,1),a.push(n.real,n.imag,0,1),l.push(.5,.5,0,1,t.real,t.imag,0,1,i.real,i.imag,0,1),h.push(0,0,1,0,0,1,0,0,1),g.push(0,0,0,1,s.real,s.imag,0,1,n.real,n.imag,0,1)}a.shrinkToFit(),l.shrinkToFit(),h.shrinkToFit(),g.shrinkToFit()}})(),eventsProcessed(){this.circleVertices.length=0,this.diskTexCoords.length=0,this.diskNormals.length=0,this.diskVertices.length=0}}),Object.defineProperties(V,{typeName:{value:"Disk2DOptions",enumerable:!0}});const S=V,C=c().add("Disk2DOptions",S),M=e.IndexedFaceSet;var T=t.n(M);const A=e.Coordinate;var x=t.n(A);const F=e.TextureCoordinate;var j=t.n(F);function k(e){o().call(this,e)}Object.assign(Object.setPrototypeOf(k.prototype,o().prototype),{getGeometry(){if(this.geometry)return this.geometry;this.geometry=new(T())(this.getExecutionContext()),this.geometry._texCoord=new(j())(this.getExecutionContext()),this.geometry._coord=new(x())(this.getExecutionContext());const e=this.geometry,t=this.geometry._texCoord.getValue(),i=this.geometry._coord.getValue();return t._point=[1,1,0,1,0,0,1,0],i._point=[1,1,0,-1,1,0,-1,-1,0,1,-1,0],e._coordIndex=[0,1,2,3,-1],t.setup(),i.setup(),e.setup(),this.geometry}}),Object.defineProperties(k,{typeName:{value:"Rectangle2DOptions",enumerable:!0}});const N=k,I=c().add("Rectangle2DOptions",N),G=e.PrimitiveQuality;var R=t.n(G);function B(){}function z(e,t){const i=new t(this.getPrivateScene());return i.setup(),this[e]=function(){return i},Object.defineProperty(this,e,{enumerable:!1}),i}Object.assign(B.prototype,{initialize(){this.setPrimitiveQuality2D(this.getBrowserOptions().getPrimitiveQuality())},getArc2DOptions(){return z.call(this,"getArc2DOptions",u)},getArcClose2DOptions(){return z.call(this,"getArcClose2DOptions",O)},getCircle2DOptions(){return z.call(this,"getCircle2DOptions",P)},getDisk2DOptions(){return z.call(this,"getDisk2DOptions",C)},getRectangle2DOptions(){return z.call(this,"getRectangle2DOptions",I)},setPrimitiveQuality2D(e){const t=this.getArc2DOptions(),i=this.getArcClose2DOptions(),s=this.getCircle2DOptions(),n=this.getDisk2DOptions();switch(e){case R().LOW:t._dimension=20,i._dimension=20,s._dimension=20,n._dimension=20;break;case R().MEDIUM:t._dimension=40,i._dimension=40,s._dimension=40,n._dimension=40;break;case R().HIGH:t._dimension=80,i._dimension=80,s._dimension=80,n._dimension=80}}});const U=B,L=c().add("X3DGeometry2DContext",U),X=e.X3DFieldDefinition;var q=t.n(X);const E=e.FieldDefinitionArray;var Q=t.n(E);const H=e.X3DNode;var W=t.n(H);const J=e.X3DLineGeometryNode;var K=t.n(J);const Y=e.Algorithm;var Z=t.n(Y);function $(e){K().call(this,e),this.addType(a().Arc2D),this._startAngle.setUnit("angle"),this._endAngle.setUnit("angle"),this._radius.setUnit("length")}Object.assign(Object.setPrototypeOf($.prototype,K().prototype),{set_live__(){K().prototype.set_live__.call(this);const e=this.getBrowser(),t=this.isLive()&&e.getBrowserOption("AlwaysUpdateGeometries");this.getLive().getValue()||t?e.getArc2DOptions().addInterest("requestRebuild",this):e.getArc2DOptions().removeInterest("requestRebuild",this)},getSweepAngle(){const e=Z().interval(this._startAngle.getValue(),0,2*Math.PI),t=Z().interval(this._endAngle.getValue(),0,2*Math.PI);if(e===t)return 2*Math.PI;const i=Math.abs(t-e);return e>t?2*Math.PI-i:isNaN(i)?0:i},build(){const e=this.getBrowser().getArc2DOptions()._dimension.getValue(),t=this._startAngle.getValue(),i=Math.abs(this._radius.getValue()),s=this.getSweepAngle(),n=Math.max(3,Math.floor(s*e/(2*Math.PI))),o=this.getVertices();for(let e=0;e<n;++e){const r=t+s*(e/n),a=b().Polar(i,r),l=t+s*((e+1)/n),h=b().Polar(i,l);o.push(a.real,a.imag,0,1),o.push(h.real,h.imag,0,1)}this.getMin().set(-i,-i,0),this.getMax().set(i,i,0)}}),Object.defineProperties($,{...W().getStaticProperties("Arc2D","Geometry2D",2,"geometry","3.0"),fieldDefinitions:{value:new(Q())([new(q())(a().inputOutput,"metadata",new(h().SFNode)),new(q())(a().initializeOnly,"startAngle",new(h().SFFloat)),new(q())(a().initializeOnly,"endAngle",new(h().SFFloat)(1.570796)),new(q())(a().initializeOnly,"radius",new(h().SFFloat)(1))]),enumerable:!0}});const ee=$,te=c().add("Arc2D",ee);function ie(e){f().call(this,e),this.addType(a().ArcClose2D),this.setGeometryType(2),this._startAngle.setUnit("angle"),this._endAngle.setUnit("angle"),this._radius.setUnit("length")}Object.assign(Object.setPrototypeOf(ie.prototype,f().prototype),{set_live__(){f().prototype.set_live__.call(this);const e=this.getBrowser(),t=this.isLive()&&e.getBrowserOption("AlwaysUpdateGeometries");this.getLive().getValue()||t?e.getArcClose2DOptions().addInterest("requestRebuild",this):e.getArcClose2DOptions().removeInterest("requestRebuild",this)},getSweepAngle(){const e=Z().interval(this._startAngle.getValue(),0,2*Math.PI),t=Z().interval(this._endAngle.getValue(),0,2*Math.PI);if(e===t)return 2*Math.PI;const i=Math.abs(t-e);return e>t?2*Math.PI-i:isNaN(i)?0:i},build:(()=>{const e=new(b())(.5,.5);return function(){const t=this.getBrowser().getArcClose2DOptions(),i="CHORD"===this._closureType.getValue(),s=t._dimension.getValue(),n=this._startAngle.getValue(),o=Math.abs(this._radius.getValue()),r=this.getSweepAngle(),a=Math.max(4,Math.floor(r*s/(2*Math.PI))),l=this.getTexCoords(),h=this.getNormals(),g=this.getVertices(),c=[],d=[];this.getMultiTexCoords().push(l);const p=a-1;for(let t=0;t<a;++t){const i=n+r*(t/p);c.push(b().Polar(.5,i).add(e)),d.push(b().Polar(o,i))}if(i){const e=c[0],t=d[0];for(let i=1;i<p;++i){const s=c[i],n=c[i+1],o=d[i],r=d[i+1];l.push(e.real,e.imag,0,1,s.real,s.imag,0,1,n.real,n.imag,0,1),h.push(0,0,1,0,0,1,0,0,1),g.push(t.real,t.imag,0,1,o.real,o.imag,0,1,r.real,r.imag,0,1)}}else for(let e=0;e<p;++e){const t=c[e],i=c[e+1],s=d[e],n=d[e+1];l.push(.5,.5,0,1,t.real,t.imag,0,1,i.real,i.imag,0,1),h.push(0,0,1,0,0,1,0,0,1),g.push(0,0,0,1,s.real,s.imag,0,1,n.real,n.imag,0,1)}this.getMin().set(-o,-o,0),this.getMax().set(o,o,0),this.setSolid(this._solid.getValue())}})()}),Object.defineProperties(ie,{...W().getStaticProperties("ArcClose2D","Geometry2D",2,"geometry","3.0"),fieldDefinitions:{value:new(Q())([new(q())(a().inputOutput,"metadata",new(h().SFNode)),new(q())(a().initializeOnly,"closureType",new(h().SFString)("PIE")),new(q())(a().initializeOnly,"startAngle",new(h().SFFloat)),new(q())(a().initializeOnly,"endAngle",new(h().SFFloat)(1.570796)),new(q())(a().initializeOnly,"radius",new(h().SFFloat)(1)),new(q())(a().initializeOnly,"solid",new(h().SFBool))]),enumerable:!0}});const se=ie,ne=c().add("ArcClose2D",se);function oe(e){K().call(this,e),this.addType(a().Circle2D),this._radius.setUnit("length")}Object.assign(Object.setPrototypeOf(oe.prototype,K().prototype),{set_live__(){K().prototype.set_live__.call(this);const e=this.getBrowser(),t=this.isLive()&&e.getBrowserOption("AlwaysUpdateGeometries");this.getLive().getValue()||t?e.getCircle2DOptions().addInterest("requestRebuild",this):e.getCircle2DOptions().removeInterest("requestRebuild",this)},build(){const e=this.getBrowser().getCircle2DOptions(),t=this.getVertices(),i=this._radius.getValue();if(1===i)t.assign(e.getVertices());else{const s=e.getVertices().getValue();for(let e=0,n=s.length;e<n;e+=4)t.push(s[e]*i,s[e+1]*i,0,1)}this.getMin().set(-i,-i,0),this.getMax().set(i,i,0)}}),Object.defineProperties(oe,{...W().getStaticProperties("Circle2D","Geometry2D",2,"geometry","3.0"),fieldDefinitions:{value:new(Q())([new(q())(a().inputOutput,"metadata",new(h().SFNode)),new(q())(a().initializeOnly,"radius",new(h().SFFloat)(1))]),enumerable:!0}});const re=oe,ae=c().add("Circle2D",re),le=e.X3DPointGeometryNode;var he=t.n(le);function ge(e){K().call(this,e),this.addType(a().Disk2D),this._innerRadius.setUnit("length"),this._outerRadius.setUnit("length")}Object.assign(Object.setPrototypeOf(ge.prototype,f().prototype),K().prototype,{set_live__(){f().prototype.set_live__.call(this);const e=this.getBrowser(),t=this.isLive()&&e.getBrowserOption("AlwaysUpdateGeometries");this.getLive().getValue()||t?e.getDisk2DOptions().addInterest("requestRebuild",this):e.getDisk2DOptions().removeInterest("requestRebuild",this)},build(){const e=this.getBrowser(),t=e.getContext(),i=e.getDisk2DOptions(),s=Math.min(Math.abs(this._innerRadius.getValue()),Math.abs(this._outerRadius.getValue())),n=Math.max(Math.abs(this._innerRadius.getValue()),Math.abs(this._outerRadius.getValue())),o=this.getVertices();if(s===n){if(0===n)return o.push(0,0,0,1),this.getMin().set(0,0,0),this.getMax().set(0,0,0),this.setGeometryType(0),this.setPrimitiveMode(t.POINTS),this.setTransparent(!0),this.setSolid(!1),void this.setBase(he());if(1===n)o.assign(i.getCircleVertices());else{const e=i.getCircleVertices().getValue();for(let t=0,i=e.length;t<i;t+=4)o.push(e[t]*n,e[t+1]*n,0,1)}return this.getMin().set(-n,-n,0),this.getMax().set(n,n,0),this.setGeometryType(1),this.setPrimitiveMode(t.LINES),this.setTransparent(!1),this.setSolid(!1),void this.setBase(K())}if(0===s){if(this.getMultiTexCoords().push(i.getDiskTexCoords()),this.getNormals().assign(i.getDiskNormals()),1===n)o.assign(i.getDiskVertices());else{const e=i.getDiskVertices().getValue();for(let t=0,i=e.length;t<i;t+=4)o.push(e[t]*n,e[t+1]*n,0,1)}return this.getMin().set(-n,-n,0),this.getMax().set(n,n,0),this.setGeometryType(2),this.setPrimitiveMode(t.TRIANGLES),this.setTransparent(!1),this.setSolid(this._solid.getValue()),void this.setBase(f())}const r=s/n,a=(1-r)/2,l=i.getDiskTexCoords().getValue(),h=i.getDiskVertices().getValue(),g=this.getTexCoords(),c=this.getNormals();this.getMultiTexCoords().push(g);for(let e=0,t=h.length;e<t;e+=12)g.push(l[e+4]*r+a,l[e+5]*r+a,0,1,l[e+4],l[e+5],0,1,l[e+8],l[e+9],0,1,l[e+4]*r+a,l[e+5]*r+a,0,1,l[e+8],l[e+9],0,1,l[e+8]*r+a,l[e+9]*r+a,0,1),c.push(0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1),o.push(h[e+4]*s,h[e+5]*s,0,1,h[e+4]*n,h[e+5]*n,0,1,h[e+8]*n,h[e+9]*n,0,1,h[e+4]*s,h[e+5]*s,0,1,h[e+8]*n,h[e+9]*n,0,1,h[e+8]*s,h[e+9]*s,0,1);this.getMin().set(-n,-n,0),this.getMax().set(n,n,0),this.setGeometryType(2),this.setPrimitiveMode(t.TRIANGLES),this.setTransparent(!1),this.setSolid(this._solid.getValue()),this.setBase(f())},setBase(e){this.intersectsLine=e.prototype.intersectsLine,this.intersectsBox=e.prototype.intersectsBox,this.generateTexCoords=e.prototype.generateTexCoords,this.displaySimple=e.prototype.displaySimple,this.display=e.prototype.display,this.displaySimpleInstanced=e.prototype.displaySimpleInstanced,this.displayInstanced=e.prototype.displayInstanced},updateRenderFunctions(){}}),Object.defineProperties(ge,{...W().getStaticProperties("Disk2D","Geometry2D",2,"geometry","3.0"),fieldDefinitions:{value:new(Q())([new(q())(a().inputOutput,"metadata",new(h().SFNode)),new(q())(a().initializeOnly,"innerRadius",new(h().SFFloat)),new(q())(a().initializeOnly,"outerRadius",new(h().SFFloat)(1)),new(q())(a().initializeOnly,"solid",new(h().SFBool))]),enumerable:!0}});const ce=ge,de=c().add("Disk2D",ce);function pe(e){K().call(this,e),this.addType(a().Polyline2D),this._lineSegments.setUnit("length")}Object.assign(Object.setPrototypeOf(pe.prototype,K().prototype),{build(){const e=this._lineSegments.getValue(),t=this.getVertices();for(let i=0,s=2*(this._lineSegments.length-1);i<s;i+=2)t.push(e[i+0],e[i+1],0,1),t.push(e[i+2],e[i+3],0,1)}}),Object.defineProperties(pe,{...W().getStaticProperties("Polyline2D","Geometry2D",1,"geometry","3.0"),fieldDefinitions:{value:new(Q())([new(q())(a().inputOutput,"metadata",new(h().SFNode)),new(q())(a().initializeOnly,"lineSegments",new(h().MFVec2f))]),enumerable:!0}});const ue=pe,ye=c().add("Polyline2D",ue);function me(e){he().call(this,e),this.addType(a().Polypoint2D),this._point.setUnit("length")}Object.assign(Object.setPrototypeOf(me.prototype,he().prototype),{build(){const e=this._point.getValue(),t=this.getVertices();for(let i=0,s=2*this._point.length;i<s;i+=2)t.push(e[i],e[i+1],0,1)}}),Object.defineProperties(me,{...W().getStaticProperties("Polypoint2D","Geometry2D",1,"geometry","3.0"),fieldDefinitions:{value:new(Q())([new(q())(a().inputOutput,"metadata",new(h().SFNode)),new(q())(a().inputOutput,"point",new(h().MFVec2f))]),enumerable:!0}});const Oe=me,De=c().add("Polypoint2D",Oe),fe=e.Vector2;var we=t.n(fe);function be(e){f().call(this,e),this.addType(a().Rectangle2D),this.setGeometryType(2),this._size.setUnit("length")}Object.assign(Object.setPrototypeOf(be.prototype,f().prototype),{build:(()=>{const e=new(we())(2,2);return function(){const t=this.getBrowser().getRectangle2DOptions().getGeometry(),i=this._size.getValue(),s=this.getVertices();if(this.getMultiTexCoords().push(...t.getMultiTexCoords()),this.getTangents().assign(t.getTangents()),this.getNormals().assign(t.getNormals()),i.equals(e))s.assign(t.getVertices()),this.getMin().assign(t.getMin()),this.getMax().assign(t.getMax());else{const e=Math.abs(i.x/2),n=Math.abs(i.y/2),o=t.getVertices().getValue();for(let t=0;t<o.length;t+=4)s.push(e*o[t],n*o[t+1],0,1);this.getMin().set(-e,-n,0),this.getMax().set(e,n,0)}this.setSolid(this._solid.getValue())}})()}),Object.defineProperties(be,{...W().getStaticProperties("Rectangle2D","Geometry2D",1,"geometry","3.0"),fieldDefinitions:{value:new(Q())([new(q())(a().inputOutput,"metadata",new(h().SFNode)),new(q())(a().initializeOnly,"size",new(h().SFVec2f)(2,2)),new(q())(a().initializeOnly,"solid",new(h().SFBool))]),enumerable:!0}});const _e=be,ve=c().add("Rectangle2D",_e);function Pe(e){f().call(this,e),this.addType(a().TriangleSet2D),this.setGeometryType(2),this._vertices.setUnit("length")}Object.assign(Object.setPrototypeOf(Pe.prototype,f().prototype),{build(){const e=this._vertices.getValue(),t=this.getNormals(),i=this.getVertices();for(let s=0,n=2*this._vertices.length;s<n;s+=2)t.push(0,0,1),i.push(e[s],e[s+1],0,1);this.setSolid(this._solid.getValue())},generateTexCoords(){const e=this.getTexCoords();if(0===e.length){const t=this.getTexCoordParams(),i=t.min,s=t.Ssize,n=this.getVertices().getValue();for(let t=0,o=n.length;t<o;t+=4)e.push((n[t]-i[0])/s,(n[t+1]-i[1])/s,0,1);e.shrinkToFit()}this.getMultiTexCoords().push(e)}}),Object.defineProperties(Pe,{...W().getStaticProperties("TriangleSet2D","Geometry2D",1,"geometry","3.0"),fieldDefinitions:{value:new(Q())([new(q())(a().inputOutput,"metadata",new(h().SFNode)),new(q())(a().inputOutput,"vertices",new(h().MFVec2f)),new(q())(a().initializeOnly,"solid",new(h().SFBool))]),enumerable:!0}});const Ve=Pe,Se=c().add("TriangleSet2D",Ve);s().add({name:"Geometry2D",concreteNodes:[te,ne,ae,de,ye,De,ve,Se],abstractNodes:[],browserContext:L});c().add("Geometry2DComponent",undefined)})();