x_ite 4.7.6 → 4.7.7

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 (140) hide show
  1. package/.vscode/settings.json +1 -2
  2. package/Makefile +1 -0
  3. package/build/components/annotation.build.js +2 -2
  4. package/build/components/cad-geometry.build.js +2 -2
  5. package/build/components/cube-map-texturing.build.js +2 -2
  6. package/build/components/dis.build.js +2 -2
  7. package/build/components/event-utilities.build.js +2 -2
  8. package/build/components/geometry2d.build.js +2 -2
  9. package/build/components/geospatial.build.js +2 -2
  10. package/build/components/h-anim.build.js +2 -2
  11. package/build/components/key-device-sensor.build.js +2 -2
  12. package/build/components/layout.build.js +2 -2
  13. package/build/components/nurbs.build.js +2 -2
  14. package/build/components/particle-systems.build.js +2 -2
  15. package/build/components/picking.build.js +2 -2
  16. package/build/components/projective-texture-mapping.build.js +2 -2
  17. package/build/components/rigid-body-physics.build.js +2 -2
  18. package/build/components/scripting.build.js +2 -2
  19. package/build/components/texturing-3d.build.js +2 -2
  20. package/build/components/volume-rendering.build.js +2 -2
  21. package/build/components/x_ite.build.js +2 -2
  22. package/build/parts/default.end.frag.js +3 -0
  23. package/build/parts/default.start.frag.js +15 -0
  24. package/build/parts/{x_ite.end.frag → x_ite.end.frag.js} +4 -2
  25. package/build/parts/x_ite.start.frag.js +16 -0
  26. package/build/x_ite.build.js +2 -2
  27. package/dist/assets/components/annotation.js +17 -7
  28. package/dist/assets/components/annotation.min.js +1 -1
  29. package/dist/assets/components/cad-geometry.js +17 -7
  30. package/dist/assets/components/cad-geometry.min.js +1 -1
  31. package/dist/assets/components/cube-map-texturing.js +17 -7
  32. package/dist/assets/components/cube-map-texturing.min.js +1 -1
  33. package/dist/assets/components/dis.js +17 -7
  34. package/dist/assets/components/dis.min.js +1 -1
  35. package/dist/assets/components/event-utilities.js +17 -7
  36. package/dist/assets/components/event-utilities.min.js +1 -1
  37. package/dist/assets/components/geometry2d.js +17 -7
  38. package/dist/assets/components/geometry2d.min.js +1 -1
  39. package/dist/assets/components/geospatial.js +17 -7
  40. package/dist/assets/components/geospatial.min.js +2 -2
  41. package/dist/assets/components/h-anim.js +17 -7
  42. package/dist/assets/components/h-anim.min.js +1 -1
  43. package/dist/assets/components/key-device-sensor.js +17 -7
  44. package/dist/assets/components/key-device-sensor.min.js +1 -1
  45. package/dist/assets/components/layout.js +17 -7
  46. package/dist/assets/components/layout.min.js +1 -1
  47. package/dist/assets/components/nurbs.js +17 -7
  48. package/dist/assets/components/nurbs.min.js +2 -2
  49. package/dist/assets/components/particle-systems.js +17 -7
  50. package/dist/assets/components/particle-systems.min.js +2 -2
  51. package/dist/assets/components/picking.js +21 -11
  52. package/dist/assets/components/picking.min.js +1 -1
  53. package/dist/assets/components/projective-texture-mapping.js +17 -7
  54. package/dist/assets/components/projective-texture-mapping.min.js +1 -1
  55. package/dist/assets/components/rigid-body-physics.js +17 -7
  56. package/dist/assets/components/rigid-body-physics.min.js +17 -17
  57. package/dist/assets/components/scripting.js +24 -9
  58. package/dist/assets/components/scripting.min.js +1 -1
  59. package/dist/assets/components/texturing-3d.js +17 -7
  60. package/dist/assets/components/texturing-3d.min.js +41 -41
  61. package/dist/assets/components/volume-rendering.js +19 -9
  62. package/dist/assets/components/volume-rendering.min.js +3 -3
  63. package/dist/assets/components/x_ite.js +17 -7
  64. package/dist/assets/components/x_ite.min.js +1 -1
  65. package/dist/assets/shaders/webgl1/FallbackUnlit.fs +3 -4
  66. package/dist/assets/shaders/webgl1/Gouraud.vs +0 -1
  67. package/dist/assets/shaders/webgl1/Phong.fs +0 -1
  68. package/dist/assets/shaders/webgl1/Unlit.fs +0 -3
  69. package/dist/assets/shaders/webgl2/Gouraud.vs +0 -1
  70. package/dist/assets/shaders/webgl2/Phong.fs +0 -1
  71. package/dist/assets/shaders/webgl2/Unlit.fs +0 -3
  72. package/dist/example.html +2 -2
  73. package/dist/x_ite.css +2 -2
  74. package/dist/x_ite.js +29492 -29016
  75. package/dist/x_ite.min.js +41 -41
  76. package/dist/x_ite.zip +0 -0
  77. package/docs/Accessing-the-External-Browser.md +31 -2
  78. package/docs/What's-New.md +23 -0
  79. package/docs/_config.yml +1 -1
  80. package/docs/index.md +20 -13
  81. package/docs/reference/Browser-Services.md +36 -8
  82. package/docs/reference/Script-Node-Authoring-Interface.md +12 -4
  83. package/package.json +3 -3
  84. package/src/assets/components/picking.js +2 -2
  85. package/src/assets/components/volume-rendering.js +2 -2
  86. package/src/assets/shaders/webgl1/FallbackUnlit.fs +3 -4
  87. package/src/assets/shaders/webgl1/Gouraud.vs +0 -1
  88. package/src/assets/shaders/webgl1/Phong.fs +0 -1
  89. package/src/assets/shaders/webgl1/Unlit.fs +0 -3
  90. package/src/assets/shaders/webgl2/Gouraud.vs +0 -1
  91. package/src/assets/shaders/webgl2/Phong.fs +0 -1
  92. package/src/assets/shaders/webgl2/Unlit.fs +0 -3
  93. package/src/bookmarks.js +8 -11
  94. package/src/examples.js +1 -1
  95. package/src/locale/de.po +15 -71
  96. package/src/locale/fr.po +14 -71
  97. package/src/standard/Time/MicroTime.js +3 -1
  98. package/src/standard/Utility/DataStorage.js +7 -10
  99. package/src/tests.js +1 -1
  100. package/src/x_ite/Browser/Core/BrowserOptions.js +40 -28
  101. package/src/x_ite/Browser/Core/BrowserTimings.js +12 -21
  102. package/src/x_ite/Browser/Core/ContextMenu.js +26 -12
  103. package/src/x_ite/Browser/Core/X3DCoreContext.js +95 -42
  104. package/src/x_ite/Browser/Navigation/ExamineViewer.js +3 -0
  105. package/src/x_ite/Browser/Navigation/LookAtViewer.js +3 -0
  106. package/src/x_ite/Browser/Navigation/PlaneViewer.js +3 -0
  107. package/src/x_ite/Browser/Navigation/X3DFlyViewer.js +3 -0
  108. package/src/x_ite/Browser/Picking/VolumePicker.js +1 -1
  109. package/src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js +4 -1
  110. package/src/x_ite/Browser/Shaders/ShaderTest.js +3 -3
  111. package/src/x_ite/Browser/VERSION.js +1 -1
  112. package/src/x_ite/Browser/X3DBrowser.js +70 -50
  113. package/src/x_ite/Components/Picking/PointPickSensor.js +1 -1
  114. package/src/x_ite/Components/Scripting/Script.js +7 -2
  115. package/src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js +10 -12
  116. package/src/x_ite/Components/Shaders.js +9 -9
  117. package/src/x_ite/Execution/X3DExecutionContext.js +9 -11
  118. package/src/x_ite/Fields/SFColor.js +5 -5
  119. package/src/x_ite/Fields/SFColorRGBA.js +6 -6
  120. package/src/x_ite/Fields/SFDouble.js +1 -1
  121. package/src/x_ite/Fields/SFFloat.js +1 -1
  122. package/src/x_ite/Fields/SFImage.js +13 -13
  123. package/src/x_ite/Fields/SFMatrix3.js +1 -1
  124. package/src/x_ite/Fields/SFMatrix4.js +1 -1
  125. package/src/x_ite/Fields/SFNode.js +23 -19
  126. package/src/x_ite/Fields/SFNodeCache.js +14 -10
  127. package/src/x_ite/Fields/SFRotation.js +6 -6
  128. package/src/x_ite/Fields/SFString.js +1 -1
  129. package/src/x_ite/Fields/SFVec2.js +2 -2
  130. package/src/x_ite/Fields/SFVec3.js +3 -3
  131. package/src/x_ite/Fields/SFVec4.js +4 -4
  132. package/src/x_ite/Fields/SFVecPrototypeTemplate.js +3 -3
  133. package/src/x_ite/InputOutput/Generator.js +71 -62
  134. package/src/x_ite/Parser/X3DParser.js +6 -0
  135. package/src/x_ite/Parser/XMLParser.js +1 -1
  136. package/src/x_ite/X3D.js +8 -2
  137. package/src/x_ite.js +21 -12
  138. package/build/parts/default.end.frag +0 -2
  139. package/build/parts/default.start.frag +0 -6
  140. package/build/parts/x_ite.start.frag +0 -8
@@ -1,9 +1,18 @@
1
- (function () {
1
+ (function (globalModule, globalRequire)
2
+ {
3
+
4
+ if (typeof __filename === "undefined")
5
+ {
6
+ globalModule = undefined;
7
+ globalRequire = undefined;
8
+ }
9
+
10
+ // Undefine global variables.
11
+ var module = { }, exports, process;
2
12
 
3
- var
4
- define = X3D .define,
5
- require = X3D .require,
6
- module = { };
13
+ const
14
+ define = X3D .define,
15
+ require = X3D .require;
7
16
  /* -*- Mode: JavaScript; coding: utf-8; tab-width: 3; indent-tabs-mode: tab; c-basic-offset: 3 -*-
8
17
  *******************************************************************************
9
18
  *
@@ -867,7 +876,7 @@ function (Fields,
867
876
  ******************************************************************************/
868
877
 
869
878
 
870
- define ([
879
+ define (require .getComponentUrl ("dis"), [
871
880
  "x_ite/Components",
872
881
  "x_ite/Components/DIS/DISEntityManager",
873
882
  "x_ite/Components/DIS/DISEntityTypeMapping",
@@ -905,4 +914,5 @@ function (Components,
905
914
 
906
915
 
907
916
 
908
- }());
917
+ })
918
+ (typeof module === "object" ? module : undefined, typeof require === "function" ? require : undefined);
@@ -1 +1 @@
1
- !function(){var t=X3D.define;X3D.require;t("x_ite/Components/DIS/DISEntityManager",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Core/X3DChildNode","x_ite/Bits/X3DConstants"],function(t,n,e,i,u){"use strict";function o(t){i.call(this,t),this.addType(u.DISEntityManager)}return o.prototype=Object.assign(Object.create(i.prototype),{constructor:o,fieldDefinitions:new e([new n(u.inputOutput,"metadata",new t.SFNode),new n(u.inputOutput,"address",new t.SFString("localhost")),new n(u.inputOutput,"applicationID",new t.SFInt32(1)),new n(u.inputOutput,"mapping",new t.MFNode),new n(u.inputOutput,"port",new t.SFInt32),new n(u.inputOutput,"siteID",new t.SFInt32),new n(u.outputOnly,"addedEntities",new t.MFNode),new n(u.outputOnly,"removedEntities",new t.MFNode)]),getTypeName:function(){return"DISEntityManager"},getComponentName:function(){return"DIS"},getContainerField:function(){return"children"}}),o}),t("x_ite/Components/DIS/DISEntityTypeMapping",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Core/X3DInfoNode","x_ite/Bits/X3DConstants"],function(t,n,e,i,u){"use strict";function o(t){i.call(this,t),this.addType(u.DISEntityTypeMapping)}return o.prototype=Object.assign(Object.create(i.prototype),{constructor:o,fieldDefinitions:new e([new n(u.inputOutput,"metadata",new t.SFNode),new n(u.inputOutput,"url",new t.MFString),new n(u.initializeOnly,"category",new t.SFInt32),new n(u.initializeOnly,"country",new t.SFInt32),new n(u.initializeOnly,"domain",new t.SFInt32),new n(u.initializeOnly,"extra",new t.SFInt32),new n(u.initializeOnly,"kind",new t.SFInt32),new n(u.initializeOnly,"specific",new t.SFInt32),new n(u.initializeOnly,"subcategory",new t.SFInt32)]),getTypeName:function(){return"DISEntityTypeMapping"},getComponentName:function(){return"DIS"},getContainerField:function(){return"mapping"}}),o}),t("x_ite/Components/DIS/EspduTransform",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Grouping/X3DGroupingNode","x_ite/Components/Core/X3DSensorNode","x_ite/Bits/X3DConstants"],function(t,n,e,i,u,o){"use strict";function p(t){i.call(this,t),u.call(this,t),this.addType(o.EspduTransform)}return p.prototype=Object.assign(Object.create(i.prototype),u.prototype,{constructor:p,fieldDefinitions:new e([new n(o.inputOutput,"metadata",new t.SFNode),new n(o.inputOutput,"enabled",new t.SFBool(!0)),new n(o.inputOutput,"visible",new t.SFBool(!0)),new n(o.inputOutput,"bboxDisplay",new t.SFBool),new n(o.initializeOnly,"bboxSize",new t.SFVec3f(-1,-1,-1)),new n(o.initializeOnly,"bboxCenter",new t.SFVec3f),new n(o.inputOnly,"addChildren",new t.MFNode),new n(o.inputOnly,"removeChildren",new t.MFNode),new n(o.inputOutput,"children",new t.MFNode),new n(o.outputOnly,"isActive",new t.SFBool),new n(o.inputOnly,"set_articulationParameterValue0",new t.SFFloat),new n(o.inputOnly,"set_articulationParameterValue1",new t.SFFloat),new n(o.inputOnly,"set_articulationParameterValue2",new t.SFFloat),new n(o.inputOnly,"set_articulationParameterValue3",new t.SFFloat),new n(o.inputOnly,"set_articulationParameterValue4",new t.SFFloat),new n(o.inputOnly,"set_articulationParameterValue5",new t.SFFloat),new n(o.inputOnly,"set_articulationParameterValue6",new t.SFFloat),new n(o.inputOnly,"set_articulationParameterValue7",new t.SFFloat),new n(o.inputOutput,"address",new t.SFString("localhost")),new n(o.inputOutput,"applicationID",new t.SFInt32(1)),new n(o.inputOutput,"articulationParameterCount",new t.SFInt32),new n(o.inputOutput,"articulationParameterDesignatorArray",new t.MFInt32),new n(o.inputOutput,"articulationParameterChangeIndicatorArray",new t.MFInt32),new n(o.inputOutput,"articulationParameterIdPartAttachedToArray",new t.MFInt32),new n(o.inputOutput,"articulationParameterTypeArray",new t.MFInt32),new n(o.inputOutput,"articulationParameterArray",new t.MFFloat),new n(o.inputOutput,"center",new t.SFVec3f),new n(o.inputOutput,"collisionType",new t.SFInt32),new n(o.inputOutput,"deadReckoning",new t.SFInt32),new n(o.inputOutput,"detonationLocation",new t.SFVec3f),new n(o.inputOutput,"detonationRelativeLocation",new t.SFVec3f),new n(o.inputOutput,"detonationResult",new t.SFInt32),new n(o.inputOutput,"entityCategory",new t.SFInt32),new n(o.inputOutput,"entityCountry",new t.SFInt32),new n(o.inputOutput,"entityDomain",new t.SFInt32),new n(o.inputOutput,"entityExtra",new t.SFInt32),new n(o.inputOutput,"entityID",new t.SFInt32),new n(o.inputOutput,"entityKind",new t.SFInt32),new n(o.inputOutput,"entitySpecific",new t.SFInt32),new n(o.inputOutput,"entitySubCategory",new t.SFInt32),new n(o.inputOutput,"eventApplicationID",new t.SFInt32(1)),new n(o.inputOutput,"eventEntityID",new t.SFInt32),new n(o.inputOutput,"eventNumber",new t.SFInt32),new n(o.inputOutput,"eventSiteID",new t.SFInt32),new n(o.inputOutput,"fired1",new t.SFBool),new n(o.inputOutput,"fired2",new t.SFBool),new n(o.inputOutput,"fireMissionIndex",new t.SFInt32),new n(o.inputOutput,"firingRange",new t.SFFloat),new n(o.inputOutput,"firingRate",new t.SFInt32),new n(o.inputOutput,"forceID",new t.SFInt32),new n(o.inputOutput,"fuse",new t.SFInt32),new n(o.inputOutput,"linearVelocity",new t.SFVec3f),new n(o.inputOutput,"linearAcceleration",new t.SFVec3f),new n(o.inputOutput,"marking",new t.SFString),new n(o.inputOutput,"multicastRelayHost",new t.SFString),new n(o.inputOutput,"multicastRelayPort",new t.SFInt32),new n(o.inputOutput,"munitionApplicationID",new t.SFInt32(1)),new n(o.inputOutput,"munitionEndPoint",new t.SFVec3f),new n(o.inputOutput,"munitionEntityID",new t.SFInt32),new n(o.inputOutput,"munitionQuantity",new t.SFInt32),new n(o.inputOutput,"munitionSiteID",new t.SFInt32),new n(o.inputOutput,"munitionStartPoint",new t.SFVec3f),new n(o.inputOutput,"networkMode",new t.SFString("standAlone")),new n(o.inputOutput,"port",new t.SFInt32),new n(o.inputOutput,"readInterval",new t.SFTime(.1)),new n(o.inputOutput,"rotation",new t.SFRotation),new n(o.inputOutput,"scale",new t.SFVec3f(1,1,1)),new n(o.inputOutput,"scaleOrientation",new t.SFRotation),new n(o.inputOutput,"siteID",new t.SFInt32),new n(o.inputOutput,"translation",new t.SFVec3f),new n(o.inputOutput,"warhead",new t.SFInt32),new n(o.inputOutput,"writeInterval",new t.SFTime(1)),new n(o.outputOnly,"articulationParameterValue0_changed",new t.SFFloat),new n(o.outputOnly,"articulationParameterValue1_changed",new t.SFFloat),new n(o.outputOnly,"articulationParameterValue2_changed",new t.SFFloat),new n(o.outputOnly,"articulationParameterValue3_changed",new t.SFFloat),new n(o.outputOnly,"articulationParameterValue4_changed",new t.SFFloat),new n(o.outputOnly,"articulationParameterValue5_changed",new t.SFFloat),new n(o.outputOnly,"articulationParameterValue6_changed",new t.SFFloat),new n(o.outputOnly,"articulationParameterValue7_changed",new t.SFFloat),new n(o.outputOnly,"collideTime",new t.SFTime),new n(o.outputOnly,"detonateTime",new t.SFTime),new n(o.outputOnly,"firedTime",new t.SFTime),new n(o.outputOnly,"isCollided",new t.SFBool),new n(o.outputOnly,"isDetonated",new t.SFBool),new n(o.outputOnly,"isNetworkReader",new t.SFBool),new n(o.outputOnly,"isNetworkWriter",new t.SFBool),new n(o.outputOnly,"isRtpHeaderHeard",new t.SFBool),new n(o.outputOnly,"isStandAlone",new t.SFBool),new n(o.outputOnly,"timestamp",new t.SFTime),new n(o.initializeOnly,"rtpHeaderExpected",new t.SFBool)]),getTypeName:function(){return"EspduTransform"},getComponentName:function(){return"DIS"},getContainerField:function(){return"children"},initialize:function(){i.prototype.initialize.call(this),u.prototype.initialize.call(this)}}),p}),t("x_ite/Components/DIS/ReceiverPdu",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Core/X3DSensorNode","x_ite/Components/Grouping/X3DBoundedObject","x_ite/Bits/X3DConstants"],function(t,n,e,i,u,o){"use strict";function p(t){i.call(this,t),u.call(this,t),this.addType(o.ReceiverPdu)}return p.prototype=Object.assign(Object.create(i.prototype),u.prototype,{constructor:p,fieldDefinitions:new e([new n(o.inputOutput,"metadata",new t.SFNode),new n(o.inputOutput,"visible",new t.SFBool(!0)),new n(o.inputOutput,"bboxDisplay",new t.SFBool),new n(o.initializeOnly,"bboxSize",new t.SFVec3f(-1,-1,-1)),new n(o.initializeOnly,"bboxCenter",new t.SFVec3f),new n(o.inputOutput,"enabled",new t.SFBool(!0)),new n(o.outputOnly,"isActive",new t.SFBool),new n(o.inputOutput,"address",new t.SFString("localhost")),new n(o.inputOutput,"applicationID",new t.SFInt32(1)),new n(o.inputOutput,"entityID",new t.SFInt32),new n(o.inputOutput,"multicastRelayHost",new t.SFString),new n(o.inputOutput,"multicastRelayPort",new t.SFInt32),new n(o.inputOutput,"networkMode",new t.SFString("standAlone")),new n(o.inputOutput,"port",new t.SFInt32),new n(o.inputOutput,"radioID",new t.SFInt32),new n(o.inputOutput,"readInterval",new t.SFFloat(.1)),new n(o.inputOutput,"receivedPower",new t.SFFloat),new n(o.inputOutput,"receiverState",new t.SFInt32),new n(o.inputOutput,"rtpHeaderExpected",new t.SFBool),new n(o.inputOutput,"siteID",new t.SFInt32),new n(o.inputOutput,"transmitterApplicationID",new t.SFInt32(1)),new n(o.inputOutput,"transmitterEntityID",new t.SFInt32),new n(o.inputOutput,"transmitterRadioID",new t.SFInt32),new n(o.inputOutput,"transmitterSiteID",new t.SFInt32),new n(o.inputOutput,"whichGeometry",new t.SFInt32(1)),new n(o.inputOutput,"writeInterval",new t.SFFloat(1)),new n(o.outputOnly,"isNetworkReader",new t.SFBool),new n(o.outputOnly,"isNetworkWriter",new t.SFBool),new n(o.outputOnly,"isRtpHeaderHeard",new t.SFBool),new n(o.outputOnly,"isStandAlone",new t.SFBool),new n(o.outputOnly,"timestamp",new t.SFTime)]),getTypeName:function(){return"ReceiverPdu"},getComponentName:function(){return"DIS"},getContainerField:function(){return"children"},initialize:function(){i.prototype.initialize.call(this),u.prototype.initialize.call(this)}}),p}),t("x_ite/Components/DIS/SignalPdu",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Core/X3DSensorNode","x_ite/Components/Grouping/X3DBoundedObject","x_ite/Bits/X3DConstants"],function(t,n,e,i,u,o){"use strict";function p(t){i.call(this,t),u.call(this,t),this.addType(o.SignalPdu)}return p.prototype=Object.assign(Object.create(i.prototype),u.prototype,{constructor:p,fieldDefinitions:new e([new n(o.inputOutput,"metadata",new t.SFNode),new n(o.inputOutput,"visible",new t.SFBool(!0)),new n(o.inputOutput,"bboxDisplay",new t.SFBool),new n(o.initializeOnly,"bboxSize",new t.SFVec3f(-1,-1,-1)),new n(o.initializeOnly,"bboxCenter",new t.SFVec3f),new n(o.inputOutput,"enabled",new t.SFBool(!0)),new n(o.outputOnly,"isActive",new t.SFBool),new n(o.inputOutput,"address",new t.SFString("localhost")),new n(o.inputOutput,"applicationID",new t.SFInt32(1)),new n(o.inputOutput,"data",new t.MFInt32),new n(o.inputOutput,"dataLength",new t.SFInt32),new n(o.inputOutput,"encodingScheme",new t.SFInt32),new n(o.inputOutput,"entityID",new t.SFInt32),new n(o.inputOutput,"multicastRelayHost",new t.SFString),new n(o.inputOutput,"multicastRelayPort",new t.SFInt32),new n(o.inputOutput,"networkMode",new t.SFString("standAlone")),new n(o.inputOutput,"port",new t.SFInt32),new n(o.inputOutput,"radioID",new t.SFInt32),new n(o.inputOutput,"readInterval",new t.SFFloat(.1)),new n(o.inputOutput,"rtpHeaderExpected",new t.SFBool),new n(o.inputOutput,"sampleRate",new t.SFInt32),new n(o.inputOutput,"samples",new t.SFInt32),new n(o.inputOutput,"siteID",new t.SFInt32),new n(o.inputOutput,"tdlType",new t.SFInt32),new n(o.inputOutput,"whichGeometry",new t.SFInt32(1)),new n(o.inputOutput,"writeInterval",new t.SFFloat(1)),new n(o.outputOnly,"isNetworkReader",new t.SFBool),new n(o.outputOnly,"isNetworkWriter",new t.SFBool),new n(o.outputOnly,"isRtpHeaderHeard",new t.SFBool),new n(o.outputOnly,"isStandAlone",new t.SFBool),new n(o.outputOnly,"timestamp",new t.SFTime)]),getTypeName:function(){return"SignalPdu"},getComponentName:function(){return"DIS"},getContainerField:function(){return"children"},initialize:function(){i.prototype.initialize.call(this),u.prototype.initialize.call(this)}}),p}),t("x_ite/Components/DIS/TransmitterPdu",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Core/X3DSensorNode","x_ite/Components/Grouping/X3DBoundedObject","x_ite/Bits/X3DConstants"],function(t,n,e,i,u,o){"use strict";function p(t){i.call(this,t),u.call(this,t),this.addType(o.TransmitterPdu)}return p.prototype=Object.assign(Object.create(i.prototype),u.prototype,{constructor:p,fieldDefinitions:new e([new n(o.inputOutput,"metadata",new t.SFNode),new n(o.inputOutput,"visible",new t.SFBool(!0)),new n(o.inputOutput,"bboxDisplay",new t.SFBool),new n(o.initializeOnly,"bboxSize",new t.SFVec3f(-1,-1,-1)),new n(o.initializeOnly,"bboxCenter",new t.SFVec3f),new n(o.inputOutput,"enabled",new t.SFBool(!0)),new n(o.outputOnly,"isActive",new t.SFBool),new n(o.inputOutput,"address",new t.SFString("localhost")),new n(o.inputOutput,"antennaLocation",new t.SFVec3f),new n(o.inputOutput,"antennaPatternLength",new t.SFInt32),new n(o.inputOutput,"antennaPatternType",new t.SFInt32),new n(o.inputOutput,"applicationID",new t.SFInt32(1)),new n(o.inputOutput,"cryptoKeyID",new t.SFInt32),new n(o.inputOutput,"cryptoSystem",new t.SFInt32),new n(o.inputOutput,"entityID",new t.SFInt32),new n(o.inputOutput,"frequency",new t.SFInt32),new n(o.inputOutput,"inputSource",new t.SFInt32),new n(o.inputOutput,"lengthOfModulationParameters",new t.SFInt32),new n(o.inputOutput,"modulationTypeDetail",new t.SFInt32),new n(o.inputOutput,"modulationTypeMajor",new t.SFInt32),new n(o.inputOutput,"modulationTypeSpreadSpectrum",new t.SFInt32),new n(o.inputOutput,"modulationTypeSystem",new t.SFInt32),new n(o.inputOutput,"multicastRelayHost",new t.SFString),new n(o.inputOutput,"multicastRelayPort",new t.SFInt32),new n(o.inputOutput,"networkMode",new t.SFString("standAlone")),new n(o.inputOutput,"port",new t.SFInt32),new n(o.inputOutput,"power",new t.SFFloat),new n(o.inputOutput,"radioEntityTypeCategory",new t.SFInt32),new n(o.inputOutput,"radioEntityTypeCountry",new t.SFInt32),new n(o.inputOutput,"radioEntityTypeDomain",new t.SFInt32),new n(o.inputOutput,"radioEntityTypeKind",new t.SFInt32),new n(o.inputOutput,"radioEntityTypeNomenclature",new t.SFInt32),new n(o.inputOutput,"radioEntityTypeNomenclatureVersion",new t.SFInt32),new n(o.inputOutput,"radioID",new t.SFInt32),new n(o.inputOutput,"readInterval",new t.SFFloat(.1)),new n(o.inputOutput,"relativeAntennaLocation",new t.SFVec3f),new n(o.inputOutput,"rtpHeaderExpected",new t.SFBool),new n(o.inputOutput,"siteID",new t.SFInt32),new n(o.inputOutput,"transmitFrequencyBandwidth",new t.SFFloat),new n(o.inputOutput,"transmitState",new t.SFInt32),new n(o.inputOutput,"whichGeometry",new t.SFInt32(1)),new n(o.inputOutput,"writeInterval",new t.SFFloat(1)),new n(o.outputOnly,"isNetworkReader",new t.SFBool),new n(o.outputOnly,"isNetworkWriter",new t.SFBool),new n(o.outputOnly,"isRtpHeaderHeard",new t.SFBool),new n(o.outputOnly,"isStandAlone",new t.SFBool),new n(o.outputOnly,"timestamp",new t.SFTime)]),getTypeName:function(){return"TransmitterPdu"},getComponentName:function(){return"DIS"},getContainerField:function(){return"children"},initialize:function(){i.prototype.initialize.call(this),u.prototype.initialize.call(this)}}),p}),t(["x_ite/Components","x_ite/Components/DIS/DISEntityManager","x_ite/Components/DIS/DISEntityTypeMapping","x_ite/Components/DIS/EspduTransform","x_ite/Components/DIS/ReceiverPdu","x_ite/Components/DIS/SignalPdu","x_ite/Components/DIS/TransmitterPdu"],function(t,n,e,i,u,o,p){"use strict";t.addComponent({name:"DIS",types:{DISEntityManager:n,DISEntityTypeMapping:e,EspduTransform:i,ReceiverPdu:u,SignalPdu:o,TransmitterPdu:p},abstractTypes:{}})})}();
1
+ !function(t,n){"undefined"==typeof __filename&&void 0;const e=X3D.define,i=X3D.require;e("x_ite/Components/DIS/DISEntityManager",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Core/X3DChildNode","x_ite/Bits/X3DConstants"],function(t,n,e,i,u){"use strict";function o(t){i.call(this,t),this.addType(u.DISEntityManager)}return o.prototype=Object.assign(Object.create(i.prototype),{constructor:o,fieldDefinitions:new e([new n(u.inputOutput,"metadata",new t.SFNode),new n(u.inputOutput,"address",new t.SFString("localhost")),new n(u.inputOutput,"applicationID",new t.SFInt32(1)),new n(u.inputOutput,"mapping",new t.MFNode),new n(u.inputOutput,"port",new t.SFInt32),new n(u.inputOutput,"siteID",new t.SFInt32),new n(u.outputOnly,"addedEntities",new t.MFNode),new n(u.outputOnly,"removedEntities",new t.MFNode)]),getTypeName:function(){return"DISEntityManager"},getComponentName:function(){return"DIS"},getContainerField:function(){return"children"}}),o}),e("x_ite/Components/DIS/DISEntityTypeMapping",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Core/X3DInfoNode","x_ite/Bits/X3DConstants"],function(t,n,e,i,u){"use strict";function o(t){i.call(this,t),this.addType(u.DISEntityTypeMapping)}return o.prototype=Object.assign(Object.create(i.prototype),{constructor:o,fieldDefinitions:new e([new n(u.inputOutput,"metadata",new t.SFNode),new n(u.inputOutput,"url",new t.MFString),new n(u.initializeOnly,"category",new t.SFInt32),new n(u.initializeOnly,"country",new t.SFInt32),new n(u.initializeOnly,"domain",new t.SFInt32),new n(u.initializeOnly,"extra",new t.SFInt32),new n(u.initializeOnly,"kind",new t.SFInt32),new n(u.initializeOnly,"specific",new t.SFInt32),new n(u.initializeOnly,"subcategory",new t.SFInt32)]),getTypeName:function(){return"DISEntityTypeMapping"},getComponentName:function(){return"DIS"},getContainerField:function(){return"mapping"}}),o}),e("x_ite/Components/DIS/EspduTransform",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Grouping/X3DGroupingNode","x_ite/Components/Core/X3DSensorNode","x_ite/Bits/X3DConstants"],function(t,n,e,i,u,o){"use strict";function p(t){i.call(this,t),u.call(this,t),this.addType(o.EspduTransform)}return p.prototype=Object.assign(Object.create(i.prototype),u.prototype,{constructor:p,fieldDefinitions:new e([new n(o.inputOutput,"metadata",new t.SFNode),new n(o.inputOutput,"enabled",new t.SFBool(!0)),new n(o.inputOutput,"visible",new t.SFBool(!0)),new n(o.inputOutput,"bboxDisplay",new t.SFBool),new n(o.initializeOnly,"bboxSize",new t.SFVec3f(-1,-1,-1)),new n(o.initializeOnly,"bboxCenter",new t.SFVec3f),new n(o.inputOnly,"addChildren",new t.MFNode),new n(o.inputOnly,"removeChildren",new t.MFNode),new n(o.inputOutput,"children",new t.MFNode),new n(o.outputOnly,"isActive",new t.SFBool),new n(o.inputOnly,"set_articulationParameterValue0",new t.SFFloat),new n(o.inputOnly,"set_articulationParameterValue1",new t.SFFloat),new n(o.inputOnly,"set_articulationParameterValue2",new t.SFFloat),new n(o.inputOnly,"set_articulationParameterValue3",new t.SFFloat),new n(o.inputOnly,"set_articulationParameterValue4",new t.SFFloat),new n(o.inputOnly,"set_articulationParameterValue5",new t.SFFloat),new n(o.inputOnly,"set_articulationParameterValue6",new t.SFFloat),new n(o.inputOnly,"set_articulationParameterValue7",new t.SFFloat),new n(o.inputOutput,"address",new t.SFString("localhost")),new n(o.inputOutput,"applicationID",new t.SFInt32(1)),new n(o.inputOutput,"articulationParameterCount",new t.SFInt32),new n(o.inputOutput,"articulationParameterDesignatorArray",new t.MFInt32),new n(o.inputOutput,"articulationParameterChangeIndicatorArray",new t.MFInt32),new n(o.inputOutput,"articulationParameterIdPartAttachedToArray",new t.MFInt32),new n(o.inputOutput,"articulationParameterTypeArray",new t.MFInt32),new n(o.inputOutput,"articulationParameterArray",new t.MFFloat),new n(o.inputOutput,"center",new t.SFVec3f),new n(o.inputOutput,"collisionType",new t.SFInt32),new n(o.inputOutput,"deadReckoning",new t.SFInt32),new n(o.inputOutput,"detonationLocation",new t.SFVec3f),new n(o.inputOutput,"detonationRelativeLocation",new t.SFVec3f),new n(o.inputOutput,"detonationResult",new t.SFInt32),new n(o.inputOutput,"entityCategory",new t.SFInt32),new n(o.inputOutput,"entityCountry",new t.SFInt32),new n(o.inputOutput,"entityDomain",new t.SFInt32),new n(o.inputOutput,"entityExtra",new t.SFInt32),new n(o.inputOutput,"entityID",new t.SFInt32),new n(o.inputOutput,"entityKind",new t.SFInt32),new n(o.inputOutput,"entitySpecific",new t.SFInt32),new n(o.inputOutput,"entitySubCategory",new t.SFInt32),new n(o.inputOutput,"eventApplicationID",new t.SFInt32(1)),new n(o.inputOutput,"eventEntityID",new t.SFInt32),new n(o.inputOutput,"eventNumber",new t.SFInt32),new n(o.inputOutput,"eventSiteID",new t.SFInt32),new n(o.inputOutput,"fired1",new t.SFBool),new n(o.inputOutput,"fired2",new t.SFBool),new n(o.inputOutput,"fireMissionIndex",new t.SFInt32),new n(o.inputOutput,"firingRange",new t.SFFloat),new n(o.inputOutput,"firingRate",new t.SFInt32),new n(o.inputOutput,"forceID",new t.SFInt32),new n(o.inputOutput,"fuse",new t.SFInt32),new n(o.inputOutput,"linearVelocity",new t.SFVec3f),new n(o.inputOutput,"linearAcceleration",new t.SFVec3f),new n(o.inputOutput,"marking",new t.SFString),new n(o.inputOutput,"multicastRelayHost",new t.SFString),new n(o.inputOutput,"multicastRelayPort",new t.SFInt32),new n(o.inputOutput,"munitionApplicationID",new t.SFInt32(1)),new n(o.inputOutput,"munitionEndPoint",new t.SFVec3f),new n(o.inputOutput,"munitionEntityID",new t.SFInt32),new n(o.inputOutput,"munitionQuantity",new t.SFInt32),new n(o.inputOutput,"munitionSiteID",new t.SFInt32),new n(o.inputOutput,"munitionStartPoint",new t.SFVec3f),new n(o.inputOutput,"networkMode",new t.SFString("standAlone")),new n(o.inputOutput,"port",new t.SFInt32),new n(o.inputOutput,"readInterval",new t.SFTime(.1)),new n(o.inputOutput,"rotation",new t.SFRotation),new n(o.inputOutput,"scale",new t.SFVec3f(1,1,1)),new n(o.inputOutput,"scaleOrientation",new t.SFRotation),new n(o.inputOutput,"siteID",new t.SFInt32),new n(o.inputOutput,"translation",new t.SFVec3f),new n(o.inputOutput,"warhead",new t.SFInt32),new n(o.inputOutput,"writeInterval",new t.SFTime(1)),new n(o.outputOnly,"articulationParameterValue0_changed",new t.SFFloat),new n(o.outputOnly,"articulationParameterValue1_changed",new t.SFFloat),new n(o.outputOnly,"articulationParameterValue2_changed",new t.SFFloat),new n(o.outputOnly,"articulationParameterValue3_changed",new t.SFFloat),new n(o.outputOnly,"articulationParameterValue4_changed",new t.SFFloat),new n(o.outputOnly,"articulationParameterValue5_changed",new t.SFFloat),new n(o.outputOnly,"articulationParameterValue6_changed",new t.SFFloat),new n(o.outputOnly,"articulationParameterValue7_changed",new t.SFFloat),new n(o.outputOnly,"collideTime",new t.SFTime),new n(o.outputOnly,"detonateTime",new t.SFTime),new n(o.outputOnly,"firedTime",new t.SFTime),new n(o.outputOnly,"isCollided",new t.SFBool),new n(o.outputOnly,"isDetonated",new t.SFBool),new n(o.outputOnly,"isNetworkReader",new t.SFBool),new n(o.outputOnly,"isNetworkWriter",new t.SFBool),new n(o.outputOnly,"isRtpHeaderHeard",new t.SFBool),new n(o.outputOnly,"isStandAlone",new t.SFBool),new n(o.outputOnly,"timestamp",new t.SFTime),new n(o.initializeOnly,"rtpHeaderExpected",new t.SFBool)]),getTypeName:function(){return"EspduTransform"},getComponentName:function(){return"DIS"},getContainerField:function(){return"children"},initialize:function(){i.prototype.initialize.call(this),u.prototype.initialize.call(this)}}),p}),e("x_ite/Components/DIS/ReceiverPdu",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Core/X3DSensorNode","x_ite/Components/Grouping/X3DBoundedObject","x_ite/Bits/X3DConstants"],function(t,n,e,i,u,o){"use strict";function p(t){i.call(this,t),u.call(this,t),this.addType(o.ReceiverPdu)}return p.prototype=Object.assign(Object.create(i.prototype),u.prototype,{constructor:p,fieldDefinitions:new e([new n(o.inputOutput,"metadata",new t.SFNode),new n(o.inputOutput,"visible",new t.SFBool(!0)),new n(o.inputOutput,"bboxDisplay",new t.SFBool),new n(o.initializeOnly,"bboxSize",new t.SFVec3f(-1,-1,-1)),new n(o.initializeOnly,"bboxCenter",new t.SFVec3f),new n(o.inputOutput,"enabled",new t.SFBool(!0)),new n(o.outputOnly,"isActive",new t.SFBool),new n(o.inputOutput,"address",new t.SFString("localhost")),new n(o.inputOutput,"applicationID",new t.SFInt32(1)),new n(o.inputOutput,"entityID",new t.SFInt32),new n(o.inputOutput,"multicastRelayHost",new t.SFString),new n(o.inputOutput,"multicastRelayPort",new t.SFInt32),new n(o.inputOutput,"networkMode",new t.SFString("standAlone")),new n(o.inputOutput,"port",new t.SFInt32),new n(o.inputOutput,"radioID",new t.SFInt32),new n(o.inputOutput,"readInterval",new t.SFFloat(.1)),new n(o.inputOutput,"receivedPower",new t.SFFloat),new n(o.inputOutput,"receiverState",new t.SFInt32),new n(o.inputOutput,"rtpHeaderExpected",new t.SFBool),new n(o.inputOutput,"siteID",new t.SFInt32),new n(o.inputOutput,"transmitterApplicationID",new t.SFInt32(1)),new n(o.inputOutput,"transmitterEntityID",new t.SFInt32),new n(o.inputOutput,"transmitterRadioID",new t.SFInt32),new n(o.inputOutput,"transmitterSiteID",new t.SFInt32),new n(o.inputOutput,"whichGeometry",new t.SFInt32(1)),new n(o.inputOutput,"writeInterval",new t.SFFloat(1)),new n(o.outputOnly,"isNetworkReader",new t.SFBool),new n(o.outputOnly,"isNetworkWriter",new t.SFBool),new n(o.outputOnly,"isRtpHeaderHeard",new t.SFBool),new n(o.outputOnly,"isStandAlone",new t.SFBool),new n(o.outputOnly,"timestamp",new t.SFTime)]),getTypeName:function(){return"ReceiverPdu"},getComponentName:function(){return"DIS"},getContainerField:function(){return"children"},initialize:function(){i.prototype.initialize.call(this),u.prototype.initialize.call(this)}}),p}),e("x_ite/Components/DIS/SignalPdu",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Core/X3DSensorNode","x_ite/Components/Grouping/X3DBoundedObject","x_ite/Bits/X3DConstants"],function(t,n,e,i,u,o){"use strict";function p(t){i.call(this,t),u.call(this,t),this.addType(o.SignalPdu)}return p.prototype=Object.assign(Object.create(i.prototype),u.prototype,{constructor:p,fieldDefinitions:new e([new n(o.inputOutput,"metadata",new t.SFNode),new n(o.inputOutput,"visible",new t.SFBool(!0)),new n(o.inputOutput,"bboxDisplay",new t.SFBool),new n(o.initializeOnly,"bboxSize",new t.SFVec3f(-1,-1,-1)),new n(o.initializeOnly,"bboxCenter",new t.SFVec3f),new n(o.inputOutput,"enabled",new t.SFBool(!0)),new n(o.outputOnly,"isActive",new t.SFBool),new n(o.inputOutput,"address",new t.SFString("localhost")),new n(o.inputOutput,"applicationID",new t.SFInt32(1)),new n(o.inputOutput,"data",new t.MFInt32),new n(o.inputOutput,"dataLength",new t.SFInt32),new n(o.inputOutput,"encodingScheme",new t.SFInt32),new n(o.inputOutput,"entityID",new t.SFInt32),new n(o.inputOutput,"multicastRelayHost",new t.SFString),new n(o.inputOutput,"multicastRelayPort",new t.SFInt32),new n(o.inputOutput,"networkMode",new t.SFString("standAlone")),new n(o.inputOutput,"port",new t.SFInt32),new n(o.inputOutput,"radioID",new t.SFInt32),new n(o.inputOutput,"readInterval",new t.SFFloat(.1)),new n(o.inputOutput,"rtpHeaderExpected",new t.SFBool),new n(o.inputOutput,"sampleRate",new t.SFInt32),new n(o.inputOutput,"samples",new t.SFInt32),new n(o.inputOutput,"siteID",new t.SFInt32),new n(o.inputOutput,"tdlType",new t.SFInt32),new n(o.inputOutput,"whichGeometry",new t.SFInt32(1)),new n(o.inputOutput,"writeInterval",new t.SFFloat(1)),new n(o.outputOnly,"isNetworkReader",new t.SFBool),new n(o.outputOnly,"isNetworkWriter",new t.SFBool),new n(o.outputOnly,"isRtpHeaderHeard",new t.SFBool),new n(o.outputOnly,"isStandAlone",new t.SFBool),new n(o.outputOnly,"timestamp",new t.SFTime)]),getTypeName:function(){return"SignalPdu"},getComponentName:function(){return"DIS"},getContainerField:function(){return"children"},initialize:function(){i.prototype.initialize.call(this),u.prototype.initialize.call(this)}}),p}),e("x_ite/Components/DIS/TransmitterPdu",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Core/X3DSensorNode","x_ite/Components/Grouping/X3DBoundedObject","x_ite/Bits/X3DConstants"],function(t,n,e,i,u,o){"use strict";function p(t){i.call(this,t),u.call(this,t),this.addType(o.TransmitterPdu)}return p.prototype=Object.assign(Object.create(i.prototype),u.prototype,{constructor:p,fieldDefinitions:new e([new n(o.inputOutput,"metadata",new t.SFNode),new n(o.inputOutput,"visible",new t.SFBool(!0)),new n(o.inputOutput,"bboxDisplay",new t.SFBool),new n(o.initializeOnly,"bboxSize",new t.SFVec3f(-1,-1,-1)),new n(o.initializeOnly,"bboxCenter",new t.SFVec3f),new n(o.inputOutput,"enabled",new t.SFBool(!0)),new n(o.outputOnly,"isActive",new t.SFBool),new n(o.inputOutput,"address",new t.SFString("localhost")),new n(o.inputOutput,"antennaLocation",new t.SFVec3f),new n(o.inputOutput,"antennaPatternLength",new t.SFInt32),new n(o.inputOutput,"antennaPatternType",new t.SFInt32),new n(o.inputOutput,"applicationID",new t.SFInt32(1)),new n(o.inputOutput,"cryptoKeyID",new t.SFInt32),new n(o.inputOutput,"cryptoSystem",new t.SFInt32),new n(o.inputOutput,"entityID",new t.SFInt32),new n(o.inputOutput,"frequency",new t.SFInt32),new n(o.inputOutput,"inputSource",new t.SFInt32),new n(o.inputOutput,"lengthOfModulationParameters",new t.SFInt32),new n(o.inputOutput,"modulationTypeDetail",new t.SFInt32),new n(o.inputOutput,"modulationTypeMajor",new t.SFInt32),new n(o.inputOutput,"modulationTypeSpreadSpectrum",new t.SFInt32),new n(o.inputOutput,"modulationTypeSystem",new t.SFInt32),new n(o.inputOutput,"multicastRelayHost",new t.SFString),new n(o.inputOutput,"multicastRelayPort",new t.SFInt32),new n(o.inputOutput,"networkMode",new t.SFString("standAlone")),new n(o.inputOutput,"port",new t.SFInt32),new n(o.inputOutput,"power",new t.SFFloat),new n(o.inputOutput,"radioEntityTypeCategory",new t.SFInt32),new n(o.inputOutput,"radioEntityTypeCountry",new t.SFInt32),new n(o.inputOutput,"radioEntityTypeDomain",new t.SFInt32),new n(o.inputOutput,"radioEntityTypeKind",new t.SFInt32),new n(o.inputOutput,"radioEntityTypeNomenclature",new t.SFInt32),new n(o.inputOutput,"radioEntityTypeNomenclatureVersion",new t.SFInt32),new n(o.inputOutput,"radioID",new t.SFInt32),new n(o.inputOutput,"readInterval",new t.SFFloat(.1)),new n(o.inputOutput,"relativeAntennaLocation",new t.SFVec3f),new n(o.inputOutput,"rtpHeaderExpected",new t.SFBool),new n(o.inputOutput,"siteID",new t.SFInt32),new n(o.inputOutput,"transmitFrequencyBandwidth",new t.SFFloat),new n(o.inputOutput,"transmitState",new t.SFInt32),new n(o.inputOutput,"whichGeometry",new t.SFInt32(1)),new n(o.inputOutput,"writeInterval",new t.SFFloat(1)),new n(o.outputOnly,"isNetworkReader",new t.SFBool),new n(o.outputOnly,"isNetworkWriter",new t.SFBool),new n(o.outputOnly,"isRtpHeaderHeard",new t.SFBool),new n(o.outputOnly,"isStandAlone",new t.SFBool),new n(o.outputOnly,"timestamp",new t.SFTime)]),getTypeName:function(){return"TransmitterPdu"},getComponentName:function(){return"DIS"},getContainerField:function(){return"children"},initialize:function(){i.prototype.initialize.call(this),u.prototype.initialize.call(this)}}),p}),e(i.getComponentUrl("dis"),["x_ite/Components","x_ite/Components/DIS/DISEntityManager","x_ite/Components/DIS/DISEntityTypeMapping","x_ite/Components/DIS/EspduTransform","x_ite/Components/DIS/ReceiverPdu","x_ite/Components/DIS/SignalPdu","x_ite/Components/DIS/TransmitterPdu"],function(t,n,e,i,u,o,p){"use strict";t.addComponent({name:"DIS",types:{DISEntityManager:n,DISEntityTypeMapping:e,EspduTransform:i,ReceiverPdu:u,SignalPdu:o,TransmitterPdu:p},abstractTypes:{}})})}("object"==typeof module?module:void 0,"function"==typeof require?require:void 0);
@@ -1,9 +1,18 @@
1
- (function () {
1
+ (function (globalModule, globalRequire)
2
+ {
3
+
4
+ if (typeof __filename === "undefined")
5
+ {
6
+ globalModule = undefined;
7
+ globalRequire = undefined;
8
+ }
9
+
10
+ // Undefine global variables.
11
+ var module = { }, exports, process;
2
12
 
3
- var
4
- define = X3D .define,
5
- require = X3D .require,
6
- module = { };
13
+ const
14
+ define = X3D .define,
15
+ require = X3D .require;
7
16
  /* -*- Mode: JavaScript; coding: utf-8; tab-width: 3; indent-tabs-mode: tab; c-basic-offset: 3 -*-
8
17
  *******************************************************************************
9
18
  *
@@ -1064,7 +1073,7 @@ function (Fields,
1064
1073
  ******************************************************************************/
1065
1074
 
1066
1075
 
1067
- define ([
1076
+ define (require .getComponentUrl ("event-utilities"), [
1068
1077
  "x_ite/Components",
1069
1078
  "x_ite/Components/EventUtilities/BooleanFilter",
1070
1079
  "x_ite/Components/EventUtilities/BooleanSequencer",
@@ -1111,4 +1120,5 @@ function (Components,
1111
1120
 
1112
1121
 
1113
1122
 
1114
- }());
1123
+ })
1124
+ (typeof module === "object" ? module : undefined, typeof require === "function" ? require : undefined);
@@ -1 +1 @@
1
- !function(){var e=X3D.define;X3D.require;e("x_ite/Components/EventUtilities/BooleanFilter",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Core/X3DChildNode","x_ite/Bits/X3DConstants"],function(e,t,i,n,o){"use strict";function s(e){n.call(this,e),this.addType(o.BooleanFilter)}return s.prototype=Object.assign(Object.create(n.prototype),{constructor:s,fieldDefinitions:new i([new t(o.inputOutput,"metadata",new e.SFNode),new t(o.inputOnly,"set_boolean",new e.SFBool),new t(o.outputOnly,"inputTrue",new e.SFBool),new t(o.outputOnly,"inputFalse",new e.SFBool),new t(o.outputOnly,"inputNegate",new e.SFBool)]),getTypeName:function(){return"BooleanFilter"},getComponentName:function(){return"EventUtilities"},getContainerField:function(){return"children"},initialize:function(){n.prototype.initialize.call(this),this.set_boolean_.addInterest("set_boolean__",this)},set_boolean__:function(){var e=this.set_boolean_.getValue();e?this.inputTrue_=!0:this.inputFalse_=!1,this.inputNegate_=!e}}),s}),e("x_ite/Components/EventUtilities/X3DSequencerNode",["x_ite/Components/Core/X3DChildNode","x_ite/Bits/X3DConstants","standard/Math/Algorithm"],function(e,t,i){"use strict";function n(i){e.call(this,i),this.addType(t.X3DSequencerNode),this.index=-1}return n.prototype=Object.assign(Object.create(e.prototype),{constructor:n,initialize:function(){e.prototype.initialize.call(this),this.set_fraction_.addInterest("set_fraction__",this),this.previous_.addInterest("set_previous__",this),this.next_.addInterest("set_next__",this),this.key_.addInterest("set_index__",this)},set_fraction__:function(){var e=this.set_fraction_.getValue(),t=this.key_,n=t.length;if(0!==n){var o=0;if(1===n||e<=t[0])o=0;else if(e>=t[n-1])o=this.getSize()-1;else{var s=i.upperBound(t,0,n,e,i.less);o=s-1}o!==this.index&&o<this.getSize()&&this.sequence(this.index=o)}},set_previous__:function(){this.previous_.getValue()&&(this.index<=0?this.index=this.getSize()-1:--this.index,this.index<this.getSize()&&this.sequence(this.index))},set_next__:function(){this.next_.getValue()&&(this.index>=this.getSize()-1?this.index=0:++this.index,this.index<this.getSize()&&this.sequence(this.index))},set_index__:function(){this.index=-1}}),n}),e("x_ite/Components/EventUtilities/BooleanSequencer",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/EventUtilities/X3DSequencerNode","x_ite/Bits/X3DConstants"],function(e,t,i,n,o){"use strict";function s(e){n.call(this,e),this.addType(o.BooleanSequencer)}return s.prototype=Object.assign(Object.create(n.prototype),{constructor:s,fieldDefinitions:new i([new t(o.inputOutput,"metadata",new e.SFNode),new t(o.inputOnly,"set_fraction",new e.SFFloat),new t(o.inputOnly,"previous",new e.SFBool),new t(o.inputOnly,"next",new e.SFBool),new t(o.inputOutput,"key",new e.MFFloat),new t(o.inputOutput,"keyValue",new e.MFBool),new t(o.outputOnly,"value_changed",new e.SFBool)]),getTypeName:function(){return"BooleanSequencer"},getComponentName:function(){return"EventUtilities"},getContainerField:function(){return"children"},initialize:function(){n.prototype.initialize.call(this),this.keyValue_.addInterest("set_index__",this)},getSize:function(){return this.keyValue_.length},sequence:function(e){this.value_changed_=this.keyValue_[e]}}),s}),e("x_ite/Components/EventUtilities/BooleanToggle",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Core/X3DChildNode","x_ite/Bits/X3DConstants"],function(e,t,i,n,o){"use strict";function s(e){n.call(this,e),this.addType(o.BooleanToggle)}return s.prototype=Object.assign(Object.create(n.prototype),{constructor:s,fieldDefinitions:new i([new t(o.inputOutput,"metadata",new e.SFNode),new t(o.inputOnly,"set_boolean",new e.SFBool),new t(o.inputOutput,"toggle",new e.SFBool)]),getTypeName:function(){return"BooleanToggle"},getComponentName:function(){return"EventUtilities"},getContainerField:function(){return"children"},initialize:function(){n.prototype.initialize.call(this),this.set_boolean_.addInterest("set_boolean__",this)},set_boolean__:function(){this.set_boolean_.getValue()&&(this.toggle_=!this.toggle_.getValue())}}),s}),e("x_ite/Components/EventUtilities/X3DTriggerNode",["x_ite/Components/Core/X3DChildNode","x_ite/Bits/X3DConstants"],function(e,t){"use strict";function i(i){e.call(this,i),this.addType(t.X3DTriggerNode)}return i.prototype=Object.assign(Object.create(e.prototype),{constructor:i}),i}),e("x_ite/Components/EventUtilities/BooleanTrigger",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/EventUtilities/X3DTriggerNode","x_ite/Bits/X3DConstants"],function(e,t,i,n,o){"use strict";function s(e){n.call(this,e),this.addType(o.BooleanTrigger)}return s.prototype=Object.assign(Object.create(n.prototype),{constructor:s,fieldDefinitions:new i([new t(o.inputOutput,"metadata",new e.SFNode),new t(o.inputOnly,"set_triggerTime",new e.SFTime),new t(o.outputOnly,"triggerTrue",new e.SFBool)]),getTypeName:function(){return"BooleanTrigger"},getComponentName:function(){return"EventUtilities"},getContainerField:function(){return"children"},initialize:function(){n.prototype.initialize.call(this),this.set_triggerTime_.addInterest("set_triggerTime__",this)},set_triggerTime__:function(){this.triggerTrue_=!0}}),s}),e("x_ite/Components/EventUtilities/IntegerSequencer",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/EventUtilities/X3DSequencerNode","x_ite/Bits/X3DConstants"],function(e,t,i,n,o){"use strict";function s(e){n.call(this,e),this.addType(o.IntegerSequencer)}return s.prototype=Object.assign(Object.create(n.prototype),{constructor:s,fieldDefinitions:new i([new t(o.inputOutput,"metadata",new e.SFNode),new t(o.inputOnly,"set_fraction",new e.SFFloat),new t(o.inputOnly,"previous",new e.SFBool),new t(o.inputOnly,"next",new e.SFBool),new t(o.inputOutput,"key",new e.MFFloat),new t(o.inputOutput,"keyValue",new e.MFInt32),new t(o.outputOnly,"value_changed",new e.SFInt32)]),getTypeName:function(){return"IntegerSequencer"},getComponentName:function(){return"EventUtilities"},getContainerField:function(){return"children"},initialize:function(){n.prototype.initialize.call(this),this.keyValue_.addInterest("set_index__",this)},getSize:function(){return this.keyValue_.length},sequence:function(e){this.value_changed_=this.keyValue_[e]}}),s}),e("x_ite/Components/EventUtilities/IntegerTrigger",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/EventUtilities/X3DTriggerNode","x_ite/Bits/X3DConstants"],function(e,t,i,n,o){"use strict";function s(e){n.call(this,e),this.addType(o.IntegerTrigger)}return s.prototype=Object.assign(Object.create(n.prototype),{constructor:s,fieldDefinitions:new i([new t(o.inputOutput,"metadata",new e.SFNode),new t(o.inputOnly,"set_boolean",new e.SFBool),new t(o.inputOutput,"integerKey",new e.SFInt32(-1)),new t(o.outputOnly,"triggerValue",new e.SFInt32)]),getTypeName:function(){return"IntegerTrigger"},getComponentName:function(){return"EventUtilities"},getContainerField:function(){return"children"},initialize:function(){n.prototype.initialize.call(this),this.set_boolean_.addInterest("set_boolean__",this)},set_boolean__:function(){this.triggerValue_=this.integerKey_}}),s}),e("x_ite/Components/EventUtilities/TimeTrigger",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/EventUtilities/X3DTriggerNode","x_ite/Bits/X3DConstants"],function(e,t,i,n,o){"use strict";function s(e){n.call(this,e),this.addType(o.TimeTrigger)}return s.prototype=Object.assign(Object.create(n.prototype),{constructor:s,fieldDefinitions:new i([new t(o.inputOutput,"metadata",new e.SFNode),new t(o.inputOnly,"set_boolean",new e.SFBool),new t(o.outputOnly,"triggerTime",new e.SFTime)]),getTypeName:function(){return"TimeTrigger"},getComponentName:function(){return"EventUtilities"},getContainerField:function(){return"children"},initialize:function(){n.prototype.initialize.call(this),this.set_boolean_.addInterest("set_boolean__",this)},set_boolean__:function(){this.triggerTime_=this.getBrowser().getCurrentTime()}}),s}),e(["x_ite/Components","x_ite/Components/EventUtilities/BooleanFilter","x_ite/Components/EventUtilities/BooleanSequencer","x_ite/Components/EventUtilities/BooleanToggle","x_ite/Components/EventUtilities/BooleanTrigger","x_ite/Components/EventUtilities/IntegerSequencer","x_ite/Components/EventUtilities/IntegerTrigger","x_ite/Components/EventUtilities/TimeTrigger","x_ite/Components/EventUtilities/X3DSequencerNode","x_ite/Components/EventUtilities/X3DTriggerNode"],function(e,t,i,n,o,s,r,l,u,a){"use strict";e.addComponent({name:"EventUtilities",types:{BooleanFilter:t,BooleanSequencer:i,BooleanToggle:n,BooleanTrigger:o,IntegerSequencer:s,IntegerTrigger:r,TimeTrigger:l},abstractTypes:{X3DSequencerNode:u,X3DTriggerNode:a}})})}();
1
+ !function(e,t){"undefined"==typeof __filename&&void 0;const i=X3D.define,n=X3D.require;i("x_ite/Components/EventUtilities/BooleanFilter",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Core/X3DChildNode","x_ite/Bits/X3DConstants"],function(e,t,i,n,o){"use strict";function s(e){n.call(this,e),this.addType(o.BooleanFilter)}return s.prototype=Object.assign(Object.create(n.prototype),{constructor:s,fieldDefinitions:new i([new t(o.inputOutput,"metadata",new e.SFNode),new t(o.inputOnly,"set_boolean",new e.SFBool),new t(o.outputOnly,"inputTrue",new e.SFBool),new t(o.outputOnly,"inputFalse",new e.SFBool),new t(o.outputOnly,"inputNegate",new e.SFBool)]),getTypeName:function(){return"BooleanFilter"},getComponentName:function(){return"EventUtilities"},getContainerField:function(){return"children"},initialize:function(){n.prototype.initialize.call(this),this.set_boolean_.addInterest("set_boolean__",this)},set_boolean__:function(){var e=this.set_boolean_.getValue();e?this.inputTrue_=!0:this.inputFalse_=!1,this.inputNegate_=!e}}),s}),i("x_ite/Components/EventUtilities/X3DSequencerNode",["x_ite/Components/Core/X3DChildNode","x_ite/Bits/X3DConstants","standard/Math/Algorithm"],function(e,t,i){"use strict";function n(i){e.call(this,i),this.addType(t.X3DSequencerNode),this.index=-1}return n.prototype=Object.assign(Object.create(e.prototype),{constructor:n,initialize:function(){e.prototype.initialize.call(this),this.set_fraction_.addInterest("set_fraction__",this),this.previous_.addInterest("set_previous__",this),this.next_.addInterest("set_next__",this),this.key_.addInterest("set_index__",this)},set_fraction__:function(){var e=this.set_fraction_.getValue(),t=this.key_,n=t.length;if(0!==n){var o=0;if(1===n||e<=t[0])o=0;else if(e>=t[n-1])o=this.getSize()-1;else{var s=i.upperBound(t,0,n,e,i.less);o=s-1}o!==this.index&&o<this.getSize()&&this.sequence(this.index=o)}},set_previous__:function(){this.previous_.getValue()&&(this.index<=0?this.index=this.getSize()-1:--this.index,this.index<this.getSize()&&this.sequence(this.index))},set_next__:function(){this.next_.getValue()&&(this.index>=this.getSize()-1?this.index=0:++this.index,this.index<this.getSize()&&this.sequence(this.index))},set_index__:function(){this.index=-1}}),n}),i("x_ite/Components/EventUtilities/BooleanSequencer",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/EventUtilities/X3DSequencerNode","x_ite/Bits/X3DConstants"],function(e,t,i,n,o){"use strict";function s(e){n.call(this,e),this.addType(o.BooleanSequencer)}return s.prototype=Object.assign(Object.create(n.prototype),{constructor:s,fieldDefinitions:new i([new t(o.inputOutput,"metadata",new e.SFNode),new t(o.inputOnly,"set_fraction",new e.SFFloat),new t(o.inputOnly,"previous",new e.SFBool),new t(o.inputOnly,"next",new e.SFBool),new t(o.inputOutput,"key",new e.MFFloat),new t(o.inputOutput,"keyValue",new e.MFBool),new t(o.outputOnly,"value_changed",new e.SFBool)]),getTypeName:function(){return"BooleanSequencer"},getComponentName:function(){return"EventUtilities"},getContainerField:function(){return"children"},initialize:function(){n.prototype.initialize.call(this),this.keyValue_.addInterest("set_index__",this)},getSize:function(){return this.keyValue_.length},sequence:function(e){this.value_changed_=this.keyValue_[e]}}),s}),i("x_ite/Components/EventUtilities/BooleanToggle",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Core/X3DChildNode","x_ite/Bits/X3DConstants"],function(e,t,i,n,o){"use strict";function s(e){n.call(this,e),this.addType(o.BooleanToggle)}return s.prototype=Object.assign(Object.create(n.prototype),{constructor:s,fieldDefinitions:new i([new t(o.inputOutput,"metadata",new e.SFNode),new t(o.inputOnly,"set_boolean",new e.SFBool),new t(o.inputOutput,"toggle",new e.SFBool)]),getTypeName:function(){return"BooleanToggle"},getComponentName:function(){return"EventUtilities"},getContainerField:function(){return"children"},initialize:function(){n.prototype.initialize.call(this),this.set_boolean_.addInterest("set_boolean__",this)},set_boolean__:function(){this.set_boolean_.getValue()&&(this.toggle_=!this.toggle_.getValue())}}),s}),i("x_ite/Components/EventUtilities/X3DTriggerNode",["x_ite/Components/Core/X3DChildNode","x_ite/Bits/X3DConstants"],function(e,t){"use strict";function i(i){e.call(this,i),this.addType(t.X3DTriggerNode)}return i.prototype=Object.assign(Object.create(e.prototype),{constructor:i}),i}),i("x_ite/Components/EventUtilities/BooleanTrigger",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/EventUtilities/X3DTriggerNode","x_ite/Bits/X3DConstants"],function(e,t,i,n,o){"use strict";function s(e){n.call(this,e),this.addType(o.BooleanTrigger)}return s.prototype=Object.assign(Object.create(n.prototype),{constructor:s,fieldDefinitions:new i([new t(o.inputOutput,"metadata",new e.SFNode),new t(o.inputOnly,"set_triggerTime",new e.SFTime),new t(o.outputOnly,"triggerTrue",new e.SFBool)]),getTypeName:function(){return"BooleanTrigger"},getComponentName:function(){return"EventUtilities"},getContainerField:function(){return"children"},initialize:function(){n.prototype.initialize.call(this),this.set_triggerTime_.addInterest("set_triggerTime__",this)},set_triggerTime__:function(){this.triggerTrue_=!0}}),s}),i("x_ite/Components/EventUtilities/IntegerSequencer",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/EventUtilities/X3DSequencerNode","x_ite/Bits/X3DConstants"],function(e,t,i,n,o){"use strict";function s(e){n.call(this,e),this.addType(o.IntegerSequencer)}return s.prototype=Object.assign(Object.create(n.prototype),{constructor:s,fieldDefinitions:new i([new t(o.inputOutput,"metadata",new e.SFNode),new t(o.inputOnly,"set_fraction",new e.SFFloat),new t(o.inputOnly,"previous",new e.SFBool),new t(o.inputOnly,"next",new e.SFBool),new t(o.inputOutput,"key",new e.MFFloat),new t(o.inputOutput,"keyValue",new e.MFInt32),new t(o.outputOnly,"value_changed",new e.SFInt32)]),getTypeName:function(){return"IntegerSequencer"},getComponentName:function(){return"EventUtilities"},getContainerField:function(){return"children"},initialize:function(){n.prototype.initialize.call(this),this.keyValue_.addInterest("set_index__",this)},getSize:function(){return this.keyValue_.length},sequence:function(e){this.value_changed_=this.keyValue_[e]}}),s}),i("x_ite/Components/EventUtilities/IntegerTrigger",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/EventUtilities/X3DTriggerNode","x_ite/Bits/X3DConstants"],function(e,t,i,n,o){"use strict";function s(e){n.call(this,e),this.addType(o.IntegerTrigger)}return s.prototype=Object.assign(Object.create(n.prototype),{constructor:s,fieldDefinitions:new i([new t(o.inputOutput,"metadata",new e.SFNode),new t(o.inputOnly,"set_boolean",new e.SFBool),new t(o.inputOutput,"integerKey",new e.SFInt32(-1)),new t(o.outputOnly,"triggerValue",new e.SFInt32)]),getTypeName:function(){return"IntegerTrigger"},getComponentName:function(){return"EventUtilities"},getContainerField:function(){return"children"},initialize:function(){n.prototype.initialize.call(this),this.set_boolean_.addInterest("set_boolean__",this)},set_boolean__:function(){this.triggerValue_=this.integerKey_}}),s}),i("x_ite/Components/EventUtilities/TimeTrigger",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/EventUtilities/X3DTriggerNode","x_ite/Bits/X3DConstants"],function(e,t,i,n,o){"use strict";function s(e){n.call(this,e),this.addType(o.TimeTrigger)}return s.prototype=Object.assign(Object.create(n.prototype),{constructor:s,fieldDefinitions:new i([new t(o.inputOutput,"metadata",new e.SFNode),new t(o.inputOnly,"set_boolean",new e.SFBool),new t(o.outputOnly,"triggerTime",new e.SFTime)]),getTypeName:function(){return"TimeTrigger"},getComponentName:function(){return"EventUtilities"},getContainerField:function(){return"children"},initialize:function(){n.prototype.initialize.call(this),this.set_boolean_.addInterest("set_boolean__",this)},set_boolean__:function(){this.triggerTime_=this.getBrowser().getCurrentTime()}}),s}),i(n.getComponentUrl("event-utilities"),["x_ite/Components","x_ite/Components/EventUtilities/BooleanFilter","x_ite/Components/EventUtilities/BooleanSequencer","x_ite/Components/EventUtilities/BooleanToggle","x_ite/Components/EventUtilities/BooleanTrigger","x_ite/Components/EventUtilities/IntegerSequencer","x_ite/Components/EventUtilities/IntegerTrigger","x_ite/Components/EventUtilities/TimeTrigger","x_ite/Components/EventUtilities/X3DSequencerNode","x_ite/Components/EventUtilities/X3DTriggerNode"],function(e,t,i,n,o,s,r,l,u,a){"use strict";e.addComponent({name:"EventUtilities",types:{BooleanFilter:t,BooleanSequencer:i,BooleanToggle:n,BooleanTrigger:o,IntegerSequencer:s,IntegerTrigger:r,TimeTrigger:l},abstractTypes:{X3DSequencerNode:u,X3DTriggerNode:a}})})}("object"==typeof module?module:void 0,"function"==typeof require?require:void 0);
@@ -1,9 +1,18 @@
1
- (function () {
1
+ (function (globalModule, globalRequire)
2
+ {
3
+
4
+ if (typeof __filename === "undefined")
5
+ {
6
+ globalModule = undefined;
7
+ globalRequire = undefined;
8
+ }
9
+
10
+ // Undefine global variables.
11
+ var module = { }, exports, process;
2
12
 
3
- var
4
- define = X3D .define,
5
- require = X3D .require,
6
- module = { };
13
+ const
14
+ define = X3D .define,
15
+ require = X3D .require;
7
16
  /* -*- Mode: JavaScript; coding: utf-8; tab-width: 3; indent-tabs-mode: tab; c-basic-offset: 3 -*-
8
17
  *******************************************************************************
9
18
  *
@@ -2140,7 +2149,7 @@ function (Fields,
2140
2149
  ******************************************************************************/
2141
2150
 
2142
2151
 
2143
- define ([
2152
+ define (require .getComponentUrl ("geometry2d"), [
2144
2153
  "x_ite/Components",
2145
2154
  "x_ite/Browser/Geometry2D/X3DGeometry2DContext",
2146
2155
  "x_ite/Components/Geometry2D/Arc2D",
@@ -2187,4 +2196,5 @@ function (Components,
2187
2196
 
2188
2197
 
2189
2198
 
2190
- }());
2199
+ })
2200
+ (typeof module === "object" ? module : undefined, typeof require === "function" ? require : undefined);
@@ -1 +1 @@
1
- !function(){var e=X3D.define;X3D.require;e("x_ite/Browser/Geometry2D/Arc2DOptions",["x_ite/Basic/X3DBaseNode","x_ite/Fields"],function(e,t){"use strict";function i(i){e.call(this,i),this.addChildObjects("dimension",new t.SFInt32(40))}return i.prototype=Object.assign(Object.create(e.prototype),{constructor:i,getTypeName:function(){return"ArcClose2DOptions"},getComponentName:function(){return"X_ITE"},getContainerField:function(){return"arcClose2DOptions"}}),i}),e("x_ite/Browser/Geometry2D/ArcClose2DOptions",["x_ite/Basic/X3DBaseNode","x_ite/Fields"],function(e,t){"use strict";function i(i){e.call(this,i),this.addChildObjects("dimension",new t.SFInt32(40))}return i.prototype=Object.assign(Object.create(e.prototype),{constructor:i,getTypeName:function(){return"Arc2DOptions"},getComponentName:function(){return"X_ITE"},getContainerField:function(){return"arc2DOptions"}}),i}),e("x_ite/Browser/Geometry2D/Circle2DOptions",["x_ite/Basic/X3DBaseNode","x_ite/Fields","x_ite/Components/Rendering/X3DGeometryNode","standard/Math/Numbers/Complex","standard/Math/Numbers/Vector3"],function(e,t,i,n,s){"use strict";function r(n){e.call(this,n),this.addChildObjects("dimension",new t.SFInt32(40)),this.vertices=i.createArray()}return r.prototype=Object.assign(Object.create(e.prototype),{constructor:r,getTypeName:function(){return"Circle2DOptions"},getComponentName:function(){return"X_ITE"},getContainerField:function(){return"circle2DOptions"},initialize:function(){this.addInterest("build",this),this.build()},getVertices:function(){return this.vertices},build:function(){var e=this.dimension_.getValue(),t=2*Math.PI/e,i=this.vertices;i.length=0;for(var s=0;s<e;++s){var r=n.Polar(1,t*s);i.push(r.real,r.imag,0,1)}i.shrinkToFit()}}),r}),e("x_ite/Browser/Geometry2D/Disk2DOptions",["x_ite/Basic/X3DBaseNode","x_ite/Fields","x_ite/Components/Rendering/X3DGeometryNode","standard/Math/Numbers/Complex","standard/Math/Numbers/Vector3"],function(e,t,i,n,s){"use strict";function r(n){e.call(this,n),this.addChildObjects("dimension",new t.SFInt32(40)),this.circleVertices=i.createArray(),this.diskTexCoords=i.createArray(),this.diskNormals=i.createArray(),this.diskVertices=i.createArray()}return r.prototype=Object.assign(Object.create(e.prototype),{constructor:r,getTypeName:function(){return"Disk2DOptions"},getComponentName:function(){return"X_ITE"},getContainerField:function(){return"circle2DOptions"},initialize:function(){this.addInterest("build",this),this.build()},getCircleVertices:function(){return this.circleVertices},getDiskTexCoords:function(){return this.diskTexCoords},getDiskNormals:function(){return this.diskNormals},getDiskVertices:function(){return this.diskVertices},build:function(){var e=new n(.5,.5),t=new n(0,0),i=new n(0,0),s=new n(0,0),r=new n(0,0);return function(){var n=this.dimension_.getValue(),o=2*Math.PI/n,a=this.circleVertices,l=this.diskTexCoords,c=this.diskNormals,u=this.diskVertices;a.length=0,l.length=0,c.length=0,u.length=0;for(var h=0;h<n;++h){var g=o*h,d=o*(h+1);t.setPolar(.5,g).add(e),i.setPolar(.5,d).add(e),s.setPolar(1,g),r.setPolar(1,d),a.push(s.real,s.imag,0,1),l.push(.5,.5,0,1,t.real,t.imag,0,1,i.real,i.imag,0,1),c.push(0,0,1,0,0,1,0,0,1),u.push(0,0,0,1,s.real,s.imag,0,1,r.real,r.imag,0,1)}a.shrinkToFit(),l.shrinkToFit(),c.shrinkToFit(),u.shrinkToFit()}}()}),r}),e("x_ite/Browser/Geometry2D/Rectangle2DOptions",["x_ite/Fields","x_ite/Basic/X3DBaseNode","x_ite/Components/Geometry3D/IndexedFaceSet","x_ite/Components/Rendering/Coordinate","x_ite/Components/Texturing/TextureCoordinate"],function(e,t,i,n,s){"use strict";function r(e){t.call(this,e)}return r.prototype=Object.assign(Object.create(t.prototype),{constructor:r,getTypeName:function(){return"Rectangle2DOptions"},getComponentName:function(){return"X_ITE"},getContainerField:function(){return"rectangle2DOptions"},initialize:function(){t.prototype.initialize.call(this)},getGeometry:function(){if(this.geometry)return this.geometry;this.geometry=new i(this.getExecutionContext()),this.geometry.texCoord_=new s(this.getExecutionContext()),this.geometry.coord_=new n(this.getExecutionContext());var t=this.geometry,r=this.geometry.texCoord_.getValue(),o=this.geometry.coord_.getValue();return t.texCoordIndex_=new e.MFInt32(0,1,2,3,-1),t.coordIndex_=new e.MFInt32(0,1,2,3,-1),r.point_=new e.MFVec2f(new e.SFVec2f(1,1),new e.SFVec2f(0,1),new e.SFVec2f(0,0),new e.SFVec2f(1,0)),o.point_=new e.MFVec3f(new e.SFVec3f(1,1,0),new e.SFVec3f(-1,1,0),new e.SFVec3f(-1,-1,0),new e.SFVec3f(1,-1,0)),r.setup(),o.setup(),t.setup(),this.geometry}}),r}),e("x_ite/Browser/Geometry2D/X3DGeometry2DContext",["x_ite/Browser/Geometry2D/Arc2DOptions","x_ite/Browser/Geometry2D/ArcClose2DOptions","x_ite/Browser/Geometry2D/Circle2DOptions","x_ite/Browser/Geometry2D/Disk2DOptions","x_ite/Browser/Geometry2D/Rectangle2DOptions","x_ite/Browser/Core/PrimitiveQuality"],function(e,t,i,n,s,r){"use strict";function o(e,t,i){return this[t]=new i(this.getPrivateScene()),this[t].setup(),this[e]=function(){return this[t]},this[t]}function a(){}return a.prototype={initialize:function(){this.setGeometry2DPrimitiveQuality(this.getBrowserOptions().getPrimitiveQuality())},getArc2DOptions:function(){return o.call(this,"getArc2DOptions","arc2DOptions",e)},getArcClose2DOptions:function(){return o.call(this,"getArcClose2DOptions","arcClose2DOptions",t)},getCircle2DOptions:function(){return o.call(this,"getCircle2DOptions","circle2DOptions",i)},getDisk2DOptions:function(){return o.call(this,"getDisk2DOptions","disk2DOptions",n)},getRectangle2DOptions:function(){return o.call(this,"getRectangle2DOptions","rectangle2DOptions",s)},setGeometry2DPrimitiveQuality:function(e){var t=this.getArc2DOptions(),i=this.getArcClose2DOptions(),n=this.getCircle2DOptions(),s=this.getDisk2DOptions();switch(e){case r.LOW:t.dimension_=20,i.dimension_=20,n.dimension_=20,s.dimension_=20;break;case r.MEDIUM:t.dimension_=40,i.dimension_=40,n.dimension_=40,s.dimension_=40;break;case r.HIGH:t.dimension_=80,i.dimension_=80,n.dimension_=80,s.dimension_=80}}},a}),e("x_ite/Components/Geometry2D/Arc2D",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Rendering/X3DLineGeometryNode","x_ite/Bits/X3DConstants","standard/Math/Numbers/Complex","standard/Math/Algorithm"],function(e,t,i,n,s,r,o){"use strict";function a(e){n.call(this,e),this.addType(s.Arc2D),this.setGeometryType(1),this.startAngle_.setUnit("angle"),this.endAngle_.setUnit("angle"),this.radius_.setUnit("length")}return a.prototype=Object.assign(Object.create(n.prototype),{constructor:a,fieldDefinitions:new i([new t(s.inputOutput,"metadata",new e.SFNode),new t(s.initializeOnly,"startAngle",new e.SFFloat),new t(s.initializeOnly,"endAngle",new e.SFFloat(1.5708)),new t(s.initializeOnly,"radius",new e.SFFloat(1))]),getTypeName:function(){return"Arc2D"},getComponentName:function(){return"Geometry2D"},getContainerField:function(){return"geometry"},set_live__:function(){n.prototype.set_live__.call(this),this.isLive().getValue()?this.getBrowser().getArc2DOptions().addInterest("requestRebuild",this):this.getBrowser().getArc2DOptions().removeInterest("requestRebuild",this)},getSweepAngle:function(){var e=o.interval(this.startAngle_.getValue(),0,2*Math.PI),t=o.interval(this.endAngle_.getValue(),0,2*Math.PI);if(e===t)return 2*Math.PI;var i=Math.abs(t-e);return e>t?2*Math.PI-i:isNaN(i)?0:i},build:function(){var e=this.getBrowser().getContext(),t=this.getBrowser().getArc2DOptions(),i=t.dimension_.getValue(),n=this.startAngle_.getValue(),s=Math.abs(this.radius_.getValue()),o=this.getSweepAngle(),a=o==2*Math.PI,l=Math.floor(o*i/(2*Math.PI)),c=this.getVertices();l=Math.max(3,l),a?this.setPrimitiveMode(e.LINE_LOOP):(++l,this.setPrimitiveMode(e.LINE_STRIP));for(var u=a?l:l-1,h=0;h<l;++h){var g=h/u,d=n+o*g,p=r.Polar(s,d);c.push(p.real,p.imag,0,1)}this.getMin().set(-s,-s,0),this.getMax().set(s,s,0),this.setSolid(!1)}}),a}),e("x_ite/Components/Geometry2D/ArcClose2D",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Rendering/X3DGeometryNode","x_ite/Bits/X3DConstants","standard/Math/Numbers/Complex","standard/Math/Numbers/Vector3","standard/Math/Algorithm"],function(e,t,i,n,s,r,o,a){"use strict";function l(e){n.call(this,e),this.addType(s.ArcClose2D),this.setGeometryType(2),this.startAngle_.setUnit("angle"),this.endAngle_.setUnit("angle"),this.radius_.setUnit("length")}return l.prototype=Object.assign(Object.create(n.prototype),{constructor:l,fieldDefinitions:new i([new t(s.inputOutput,"metadata",new e.SFNode),new t(s.initializeOnly,"closureType",new e.SFString("PIE")),new t(s.initializeOnly,"startAngle",new e.SFFloat),new t(s.initializeOnly,"endAngle",new e.SFFloat(1.5708)),new t(s.initializeOnly,"radius",new e.SFFloat(1)),new t(s.initializeOnly,"solid",new e.SFBool)]),getTypeName:function(){return"ArcClose2D"},getComponentName:function(){return"Geometry2D"},getContainerField:function(){return"geometry"},set_live__:function(){n.prototype.set_live__.call(this),this.isLive().getValue()?this.getBrowser().getArcClose2DOptions().addInterest("requestRebuild",this):this.getBrowser().getArcClose2DOptions().removeInterest("requestRebuild",this)},getSweepAngle:function(){var e=a.interval(this.startAngle_.getValue(),0,2*Math.PI),t=a.interval(this.endAngle_.getValue(),0,2*Math.PI);if(e===t)return 2*Math.PI;var i=Math.abs(t-e);return e>t?2*Math.PI-i:isNaN(i)?0:i},build:function(){var e=new r(.5,.5);return function(){var t=this.getBrowser().getArcClose2DOptions(),i="CHORD"===this.closureType_.getValue(),n=t.dimension_.getValue(),s=this.startAngle_.getValue(),o=Math.abs(this.radius_.getValue()),a=this.getSweepAngle(),l=Math.max(4,Math.floor(a*n/(2*Math.PI))),c=this.getTexCoords(),u=this.getNormals(),h=this.getVertices(),g=[],d=[];this.getMultiTexCoords().push(c);for(var p=l-1,m=0;m<l;++m){var y=m/p,D=s+a*y;g.push(r.Polar(.5,D).add(e)),d.push(r.Polar(o,D))}if(i)for(var f=g[0],_=d[0],x=1;x<p;++x){var C=g[x],w=g[x+1],O=d[x],F=d[x+1];c.push(f.real,f.imag,0,1,C.real,C.imag,0,1,w.real,w.imag,0,1),u.push(0,0,1,0,0,1,0,0,1),h.push(_.real,_.imag,0,1,O.real,O.imag,0,1,F.real,F.imag,0,1)}else for(var x=0;x<p;++x){var C=g[x],w=g[x+1],O=d[x],F=d[x+1];c.push(.5,.5,0,1,C.real,C.imag,0,1,w.real,w.imag,0,1),u.push(0,0,1,0,0,1,0,0,1),h.push(0,0,0,1,O.real,O.imag,0,1,F.real,F.imag,0,1)}this.getMin().set(-o,-o,0),this.getMax().set(o,o,0),this.setSolid(this.solid_.getValue())}}()}),l}),e("x_ite/Components/Geometry2D/Circle2D",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Rendering/X3DLineGeometryNode","x_ite/Bits/X3DConstants"],function(e,t,i,n,s){"use strict";function r(e){n.call(this,e),this.addType(s.Circle2D),this.setGeometryType(1),this.radius_.setUnit("length")}return r.prototype=Object.assign(Object.create(n.prototype),{constructor:r,fieldDefinitions:new i([new t(s.inputOutput,"metadata",new e.SFNode),new t(s.initializeOnly,"radius",new e.SFFloat(1))]),getTypeName:function(){return"Circle2D"},getComponentName:function(){return"Geometry2D"},getContainerField:function(){return"geometry"},initialize:function(){n.prototype.initialize.call(this),this.setPrimitiveMode(this.getBrowser().getContext().LINE_LOOP)},set_live__:function(){n.prototype.set_live__.call(this),this.isLive().getValue()?this.getBrowser().getCircle2DOptions().addInterest("requestRebuild",this):this.getBrowser().getCircle2DOptions().removeInterest("requestRebuild",this)},build:function(){var e=this.getBrowser().getCircle2DOptions(),t=this.getVertices(),i=this.radius_.getValue();if(1===i)this.setVertices(e.getVertices());else for(var n=e.getVertices().getValue(),s=0,r=n.length;s<r;s+=4)t.push(n[s]*i,n[s+1]*i,0,1);this.getMin().set(-i,-i,0),this.getMax().set(i,i,0)}}),r}),e("x_ite/Components/Geometry2D/Disk2D",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Rendering/X3DGeometryNode","x_ite/Components/Rendering/X3DLineGeometryNode","x_ite/Bits/X3DConstants"],function(e,t,i,n,s,r){"use strict";function o(e){s.call(this,e),this.addType(r.Disk2D),this.innerRadius_.setUnit("length"),this.outerRadius_.setUnit("length")}return o.prototype=Object.assign(Object.create(n.prototype),{constructor:o,fieldDefinitions:new i([new t(r.inputOutput,"metadata",new e.SFNode),new t(r.initializeOnly,"innerRadius",new e.SFFloat),new t(r.initializeOnly,"outerRadius",new e.SFFloat(1)),new t(r.initializeOnly,"solid",new e.SFBool)]),getTypeName:function(){return"Disk2D"},getComponentName:function(){return"Geometry2D"},getContainerField:function(){return"geometry"},initialize:function(){n.prototype.initialize.call(this),this.setPrimitiveMode(this.getBrowser().getContext().LINE_LOOP)},set_live__:function(){n.prototype.set_live__.call(this),this.isLive().getValue()?this.getBrowser().getDisk2DOptions().addInterest("requestRebuild",this):this.getBrowser().getDisk2DOptions().removeInterest("requestRebuild",this)},getShader:s.prototype.getShader,build:function(){const e=this.getBrowser().getDisk2DOptions(),t=Math.min(Math.abs(this.innerRadius_.getValue()),Math.abs(this.outerRadius_.getValue())),i=Math.max(Math.abs(this.innerRadius_.getValue()),Math.abs(this.outerRadius_.getValue()));if(t===i){const t=this.getVertices();if(0===i)return;if(1===i)this.setVertices(e.getCircleVertices());else{const n=e.getCircleVertices().getValue();for(let e=0,s=n.length;e<s;e+=4)t.push(n[e]*i,n[e+1]*i,0,1)}return this.getMin().set(-i,-i,0),this.getMax().set(i,i,0),void this.setGeometryType(1)}if(0===t){if(this.getMultiTexCoords().push(e.getDiskTexCoords()),this.setNormals(e.getDiskNormals()),1===i)this.setVertices(e.getDiskVertices());else{const t=e.getDiskVertices().getValue(),n=this.getVertices();for(let e=0,s=t.length;e<s;e+=4)n.push(t[e]*i,t[e+1]*i,0,1)}return this.getMin().set(-i,-i,0),this.getMax().set(i,i,0),this.setGeometryType(2),void this.setSolid(this.solid_.getValue())}const n=t/i,s=(1-n)/2,r=e.getDiskTexCoords().getValue(),o=e.getDiskVertices().getValue(),a=this.getTexCoords(),l=this.getNormals(),c=this.getVertices();this.getMultiTexCoords().push(a);for(let e=0,u=o.length;e<u;e+=12)a.push(r[e+4]*n+s,r[e+5]*n+s,0,1,r[e+4],r[e+5],0,1,r[e+8],r[e+9],0,1,r[e+4]*n+s,r[e+5]*n+s,0,1,r[e+8],r[e+9],0,1,r[e+8]*n+s,r[e+9]*n+s,0,1),l.push(0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1),c.push(o[e+4]*t,o[e+5]*t,0,1,o[e+4]*i,o[e+5]*i,0,1,o[e+8]*i,o[e+9]*i,0,1,o[e+4]*t,o[e+5]*t,0,1,o[e+8]*i,o[e+9]*i,0,1,o[e+8]*t,o[e+9]*t,0,1);this.getMin().set(-i,-i,0),this.getMax().set(i,i,0),this.setGeometryType(2),this.setSolid(this.solid_.getValue())},intersectsLine:function(e,t,i,r){return this.getGeometryType()<2?s.prototype.intersectsLine.call(this,e,t,i,r):n.prototype.intersectsLine.call(this,e,t,i,r)},intersectsBox:function(e,t,i){return this.getGeometryType()<2?s.prototype.intersectsBox.call(this,e,t,i):n.prototype.intersectsBox.call(this,e,t,i)},display:function(e,t){return this.getGeometryType()<2?s.prototype.display.call(this,e,t):n.prototype.display.call(this,e,t)},displayParticles:function(e,t,i,r){return this.getGeometryType()<2?s.prototype.displayParticles.call(this,e,t,i,r):n.prototype.displayParticles.call(this,e,t,i,r)}}),o}),e("x_ite/Components/Geometry2D/Polyline2D",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Rendering/X3DLineGeometryNode","x_ite/Bits/X3DConstants"],function(e,t,i,n,s){"use strict";function r(e){n.call(this,e),this.addType(s.Polyline2D),this.setGeometryType(1),this.lineSegments_.setUnit("length")}return r.prototype=Object.assign(Object.create(n.prototype),{constructor:r,fieldDefinitions:new i([new t(s.inputOutput,"metadata",new e.SFNode),new t(s.initializeOnly,"lineSegments",new e.MFVec2f)]),getTypeName:function(){return"Polyline2D"},getComponentName:function(){return"Geometry2D"},getContainerField:function(){return"geometry"},initialize:function(){n.prototype.initialize.call(this),this.setPrimitiveMode(this.getBrowser().getContext().LINE_STRIP)},build:function(){for(var e=this.lineSegments_.getValue(),t=this.getVertices(),i=0,n=2*this.lineSegments_.length;i<n;i+=2)t.push(e[i],e[i+1],0,1);this.setSolid(!1)}}),r}),e("x_ite/Components/Geometry2D/Polypoint2D",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Rendering/X3DLineGeometryNode","x_ite/Bits/X3DConstants"],function(e,t,i,n,s){"use strict";function r(e){n.call(this,e),this.addType(s.Polypoint2D),this.setGeometryType(0),this.point_.setUnit("length"),this.setTransparent(!0)}return r.prototype=Object.assign(Object.create(n.prototype),{constructor:r,fieldDefinitions:new i([new t(s.inputOutput,"metadata",new e.SFNode),new t(s.inputOutput,"point",new e.MFVec2f)]),getTypeName:function(){return"Polypoint2D"},getComponentName:function(){return"Geometry2D"},getContainerField:function(){return"geometry"},initialize:function(){n.prototype.initialize.call(this);var e=this.getBrowser();this.setPrimitiveMode(e.getContext().POINTS),this.setSolid(!1)},getShader:function(e){return e.getPointShader()},build:function(){for(var e=this.point_.getValue(),t=this.getVertices(),i=0,n=2*this.point_.length;i<n;i+=2)t.push(e[i],e[i+1],0,1)}}),r}),e("x_ite/Components/Geometry2D/Rectangle2D",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Rendering/X3DGeometryNode","x_ite/Bits/X3DConstants","standard/Math/Numbers/Vector2","standard/Math/Numbers/Vector3"],function(e,t,i,n,s,r,o){"use strict";function a(e){n.call(this,e),this.addType(s.Rectangle2D),this.setGeometryType(2),this.size_.setUnit("length")}var l=new r(2,2);return a.prototype=Object.assign(Object.create(n.prototype),{constructor:a,fieldDefinitions:new i([new t(s.inputOutput,"metadata",new e.SFNode),new t(s.initializeOnly,"size",new e.SFVec2f(2,2)),new t(s.initializeOnly,"solid",new e.SFBool)]),getTypeName:function(){return"Rectangle2D"},getComponentName:function(){return"Geometry2D"},getContainerField:function(){return"geometry"},build:function(){var e=this.getBrowser().getRectangle2DOptions(),t=e.getGeometry(),i=this.size_.getValue();if(this.setMultiTexCoords(t.getMultiTexCoords()),this.setNormals(t.getNormals()),i.equals(l))this.setVertices(t.getVertices()),this.getMin().assign(t.getMin()),this.getMax().assign(t.getMax());else{for(var n=o.divide(i,2),s=n.x,r=n.y,a=t.getVertices().getValue(),c=this.getVertices(),u=0;u<a.length;u+=4)c.push(s*a[u],r*a[u+1],a[u+2],1);this.getMin().set(-s,-r,0),this.getMax().set(s,r,0)}this.setSolid(this.solid_.getValue())}}),a}),e("x_ite/Components/Geometry2D/TriangleSet2D",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Rendering/X3DGeometryNode","x_ite/Bits/X3DConstants","standard/Math/Numbers/Vector3"],function(e,t,i,n,s,r){"use strict";function o(e){n.call(this,e),this.addType(s.TriangleSet2D),this.setGeometryType(2),this.vertices_.setUnit("length")}return o.prototype=Object.assign(Object.create(n.prototype),{constructor:o,fieldDefinitions:new i([new t(s.inputOutput,"metadata",new e.SFNode),new t(s.inputOutput,"vertices",new e.MFVec2f),new t(s.initializeOnly,"solid",new e.SFBool)]),getTypeName:function(){return"TriangleSet2D"},getComponentName:function(){return"Geometry2D"},getContainerField:function(){return"geometry"},build:function(){for(var e=this.vertices_.getValue(),t=this.getNormals(),i=this.getVertices(),n=0,s=2*this.vertices_.length;n<s;n+=2)t.push(0,0,1),i.push(e[n],e[n+1],0,1);this.setSolid(this.solid_.getValue())},buildTexCoords:function(){var e=this.getTexCoords();if(0===e.length){for(var t=this.getTexCoordParams(),i=t.min,n=t.Ssize,s=this.getVertices().getValue(),r=0,o=s.length;r<o;r+=4)e.push((s[r]-i[0])/n,(s[r+1]-i[1])/n,0,1);e.shrinkToFit()}return e}}),o}),e(["x_ite/Components","x_ite/Browser/Geometry2D/X3DGeometry2DContext","x_ite/Components/Geometry2D/Arc2D","x_ite/Components/Geometry2D/ArcClose2D","x_ite/Components/Geometry2D/Circle2D","x_ite/Components/Geometry2D/Disk2D","x_ite/Components/Geometry2D/Polyline2D","x_ite/Components/Geometry2D/Polypoint2D","x_ite/Components/Geometry2D/Rectangle2D","x_ite/Components/Geometry2D/TriangleSet2D"],function(e,t,i,n,s,r,o,a,l,c){"use strict";e.addComponent({name:"Geometry2D",types:{Arc2D:i,ArcClose2D:n,Circle2D:s,Disk2D:r,Polyline2D:o,Polypoint2D:a,Rectangle2D:l,TriangleSet2D:c},abstractTypes:{},browser:t})})}();
1
+ !function(e,t){"undefined"==typeof __filename&&void 0;const i=X3D.define,n=X3D.require;i("x_ite/Browser/Geometry2D/Arc2DOptions",["x_ite/Basic/X3DBaseNode","x_ite/Fields"],function(e,t){"use strict";function i(i){e.call(this,i),this.addChildObjects("dimension",new t.SFInt32(40))}return i.prototype=Object.assign(Object.create(e.prototype),{constructor:i,getTypeName:function(){return"ArcClose2DOptions"},getComponentName:function(){return"X_ITE"},getContainerField:function(){return"arcClose2DOptions"}}),i}),i("x_ite/Browser/Geometry2D/ArcClose2DOptions",["x_ite/Basic/X3DBaseNode","x_ite/Fields"],function(e,t){"use strict";function i(i){e.call(this,i),this.addChildObjects("dimension",new t.SFInt32(40))}return i.prototype=Object.assign(Object.create(e.prototype),{constructor:i,getTypeName:function(){return"Arc2DOptions"},getComponentName:function(){return"X_ITE"},getContainerField:function(){return"arc2DOptions"}}),i}),i("x_ite/Browser/Geometry2D/Circle2DOptions",["x_ite/Basic/X3DBaseNode","x_ite/Fields","x_ite/Components/Rendering/X3DGeometryNode","standard/Math/Numbers/Complex","standard/Math/Numbers/Vector3"],function(e,t,i,n,s){"use strict";function r(n){e.call(this,n),this.addChildObjects("dimension",new t.SFInt32(40)),this.vertices=i.createArray()}return r.prototype=Object.assign(Object.create(e.prototype),{constructor:r,getTypeName:function(){return"Circle2DOptions"},getComponentName:function(){return"X_ITE"},getContainerField:function(){return"circle2DOptions"},initialize:function(){this.addInterest("build",this),this.build()},getVertices:function(){return this.vertices},build:function(){var e=this.dimension_.getValue(),t=2*Math.PI/e,i=this.vertices;i.length=0;for(var s=0;s<e;++s){var r=n.Polar(1,t*s);i.push(r.real,r.imag,0,1)}i.shrinkToFit()}}),r}),i("x_ite/Browser/Geometry2D/Disk2DOptions",["x_ite/Basic/X3DBaseNode","x_ite/Fields","x_ite/Components/Rendering/X3DGeometryNode","standard/Math/Numbers/Complex","standard/Math/Numbers/Vector3"],function(e,t,i,n,s){"use strict";function r(n){e.call(this,n),this.addChildObjects("dimension",new t.SFInt32(40)),this.circleVertices=i.createArray(),this.diskTexCoords=i.createArray(),this.diskNormals=i.createArray(),this.diskVertices=i.createArray()}return r.prototype=Object.assign(Object.create(e.prototype),{constructor:r,getTypeName:function(){return"Disk2DOptions"},getComponentName:function(){return"X_ITE"},getContainerField:function(){return"circle2DOptions"},initialize:function(){this.addInterest("build",this),this.build()},getCircleVertices:function(){return this.circleVertices},getDiskTexCoords:function(){return this.diskTexCoords},getDiskNormals:function(){return this.diskNormals},getDiskVertices:function(){return this.diskVertices},build:function(){var e=new n(.5,.5),t=new n(0,0),i=new n(0,0),s=new n(0,0),r=new n(0,0);return function(){var n=this.dimension_.getValue(),o=2*Math.PI/n,a=this.circleVertices,l=this.diskTexCoords,c=this.diskNormals,u=this.diskVertices;a.length=0,l.length=0,c.length=0,u.length=0;for(var h=0;h<n;++h){var g=o*h,d=o*(h+1);t.setPolar(.5,g).add(e),i.setPolar(.5,d).add(e),s.setPolar(1,g),r.setPolar(1,d),a.push(s.real,s.imag,0,1),l.push(.5,.5,0,1,t.real,t.imag,0,1,i.real,i.imag,0,1),c.push(0,0,1,0,0,1,0,0,1),u.push(0,0,0,1,s.real,s.imag,0,1,r.real,r.imag,0,1)}a.shrinkToFit(),l.shrinkToFit(),c.shrinkToFit(),u.shrinkToFit()}}()}),r}),i("x_ite/Browser/Geometry2D/Rectangle2DOptions",["x_ite/Fields","x_ite/Basic/X3DBaseNode","x_ite/Components/Geometry3D/IndexedFaceSet","x_ite/Components/Rendering/Coordinate","x_ite/Components/Texturing/TextureCoordinate"],function(e,t,i,n,s){"use strict";function r(e){t.call(this,e)}return r.prototype=Object.assign(Object.create(t.prototype),{constructor:r,getTypeName:function(){return"Rectangle2DOptions"},getComponentName:function(){return"X_ITE"},getContainerField:function(){return"rectangle2DOptions"},initialize:function(){t.prototype.initialize.call(this)},getGeometry:function(){if(this.geometry)return this.geometry;this.geometry=new i(this.getExecutionContext()),this.geometry.texCoord_=new s(this.getExecutionContext()),this.geometry.coord_=new n(this.getExecutionContext());var t=this.geometry,r=this.geometry.texCoord_.getValue(),o=this.geometry.coord_.getValue();return t.texCoordIndex_=new e.MFInt32(0,1,2,3,-1),t.coordIndex_=new e.MFInt32(0,1,2,3,-1),r.point_=new e.MFVec2f(new e.SFVec2f(1,1),new e.SFVec2f(0,1),new e.SFVec2f(0,0),new e.SFVec2f(1,0)),o.point_=new e.MFVec3f(new e.SFVec3f(1,1,0),new e.SFVec3f(-1,1,0),new e.SFVec3f(-1,-1,0),new e.SFVec3f(1,-1,0)),r.setup(),o.setup(),t.setup(),this.geometry}}),r}),i("x_ite/Browser/Geometry2D/X3DGeometry2DContext",["x_ite/Browser/Geometry2D/Arc2DOptions","x_ite/Browser/Geometry2D/ArcClose2DOptions","x_ite/Browser/Geometry2D/Circle2DOptions","x_ite/Browser/Geometry2D/Disk2DOptions","x_ite/Browser/Geometry2D/Rectangle2DOptions","x_ite/Browser/Core/PrimitiveQuality"],function(e,t,i,n,s,r){"use strict";function o(e,t,i){return this[t]=new i(this.getPrivateScene()),this[t].setup(),this[e]=function(){return this[t]},this[t]}function a(){}return a.prototype={initialize:function(){this.setGeometry2DPrimitiveQuality(this.getBrowserOptions().getPrimitiveQuality())},getArc2DOptions:function(){return o.call(this,"getArc2DOptions","arc2DOptions",e)},getArcClose2DOptions:function(){return o.call(this,"getArcClose2DOptions","arcClose2DOptions",t)},getCircle2DOptions:function(){return o.call(this,"getCircle2DOptions","circle2DOptions",i)},getDisk2DOptions:function(){return o.call(this,"getDisk2DOptions","disk2DOptions",n)},getRectangle2DOptions:function(){return o.call(this,"getRectangle2DOptions","rectangle2DOptions",s)},setGeometry2DPrimitiveQuality:function(e){var t=this.getArc2DOptions(),i=this.getArcClose2DOptions(),n=this.getCircle2DOptions(),s=this.getDisk2DOptions();switch(e){case r.LOW:t.dimension_=20,i.dimension_=20,n.dimension_=20,s.dimension_=20;break;case r.MEDIUM:t.dimension_=40,i.dimension_=40,n.dimension_=40,s.dimension_=40;break;case r.HIGH:t.dimension_=80,i.dimension_=80,n.dimension_=80,s.dimension_=80}}},a}),i("x_ite/Components/Geometry2D/Arc2D",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Rendering/X3DLineGeometryNode","x_ite/Bits/X3DConstants","standard/Math/Numbers/Complex","standard/Math/Algorithm"],function(e,t,i,n,s,r,o){"use strict";function a(e){n.call(this,e),this.addType(s.Arc2D),this.setGeometryType(1),this.startAngle_.setUnit("angle"),this.endAngle_.setUnit("angle"),this.radius_.setUnit("length")}return a.prototype=Object.assign(Object.create(n.prototype),{constructor:a,fieldDefinitions:new i([new t(s.inputOutput,"metadata",new e.SFNode),new t(s.initializeOnly,"startAngle",new e.SFFloat),new t(s.initializeOnly,"endAngle",new e.SFFloat(1.5708)),new t(s.initializeOnly,"radius",new e.SFFloat(1))]),getTypeName:function(){return"Arc2D"},getComponentName:function(){return"Geometry2D"},getContainerField:function(){return"geometry"},set_live__:function(){n.prototype.set_live__.call(this),this.isLive().getValue()?this.getBrowser().getArc2DOptions().addInterest("requestRebuild",this):this.getBrowser().getArc2DOptions().removeInterest("requestRebuild",this)},getSweepAngle:function(){var e=o.interval(this.startAngle_.getValue(),0,2*Math.PI),t=o.interval(this.endAngle_.getValue(),0,2*Math.PI);if(e===t)return 2*Math.PI;var i=Math.abs(t-e);return e>t?2*Math.PI-i:isNaN(i)?0:i},build:function(){var e=this.getBrowser().getContext(),t=this.getBrowser().getArc2DOptions(),i=t.dimension_.getValue(),n=this.startAngle_.getValue(),s=Math.abs(this.radius_.getValue()),o=this.getSweepAngle(),a=o==2*Math.PI,l=Math.floor(o*i/(2*Math.PI)),c=this.getVertices();l=Math.max(3,l),a?this.setPrimitiveMode(e.LINE_LOOP):(++l,this.setPrimitiveMode(e.LINE_STRIP));for(var u=a?l:l-1,h=0;h<l;++h){var g=h/u,d=n+o*g,p=r.Polar(s,d);c.push(p.real,p.imag,0,1)}this.getMin().set(-s,-s,0),this.getMax().set(s,s,0),this.setSolid(!1)}}),a}),i("x_ite/Components/Geometry2D/ArcClose2D",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Rendering/X3DGeometryNode","x_ite/Bits/X3DConstants","standard/Math/Numbers/Complex","standard/Math/Numbers/Vector3","standard/Math/Algorithm"],function(e,t,i,n,s,r,o,a){"use strict";function l(e){n.call(this,e),this.addType(s.ArcClose2D),this.setGeometryType(2),this.startAngle_.setUnit("angle"),this.endAngle_.setUnit("angle"),this.radius_.setUnit("length")}return l.prototype=Object.assign(Object.create(n.prototype),{constructor:l,fieldDefinitions:new i([new t(s.inputOutput,"metadata",new e.SFNode),new t(s.initializeOnly,"closureType",new e.SFString("PIE")),new t(s.initializeOnly,"startAngle",new e.SFFloat),new t(s.initializeOnly,"endAngle",new e.SFFloat(1.5708)),new t(s.initializeOnly,"radius",new e.SFFloat(1)),new t(s.initializeOnly,"solid",new e.SFBool)]),getTypeName:function(){return"ArcClose2D"},getComponentName:function(){return"Geometry2D"},getContainerField:function(){return"geometry"},set_live__:function(){n.prototype.set_live__.call(this),this.isLive().getValue()?this.getBrowser().getArcClose2DOptions().addInterest("requestRebuild",this):this.getBrowser().getArcClose2DOptions().removeInterest("requestRebuild",this)},getSweepAngle:function(){var e=a.interval(this.startAngle_.getValue(),0,2*Math.PI),t=a.interval(this.endAngle_.getValue(),0,2*Math.PI);if(e===t)return 2*Math.PI;var i=Math.abs(t-e);return e>t?2*Math.PI-i:isNaN(i)?0:i},build:function(){var e=new r(.5,.5);return function(){var t=this.getBrowser().getArcClose2DOptions(),i="CHORD"===this.closureType_.getValue(),n=t.dimension_.getValue(),s=this.startAngle_.getValue(),o=Math.abs(this.radius_.getValue()),a=this.getSweepAngle(),l=Math.max(4,Math.floor(a*n/(2*Math.PI))),c=this.getTexCoords(),u=this.getNormals(),h=this.getVertices(),g=[],d=[];this.getMultiTexCoords().push(c);for(var p=l-1,m=0;m<l;++m){var y=m/p,D=s+a*y;g.push(r.Polar(.5,D).add(e)),d.push(r.Polar(o,D))}if(i)for(var f=g[0],_=d[0],x=1;x<p;++x){var C=g[x],w=g[x+1],O=d[x],F=d[x+1];c.push(f.real,f.imag,0,1,C.real,C.imag,0,1,w.real,w.imag,0,1),u.push(0,0,1,0,0,1,0,0,1),h.push(_.real,_.imag,0,1,O.real,O.imag,0,1,F.real,F.imag,0,1)}else for(var x=0;x<p;++x){var C=g[x],w=g[x+1],O=d[x],F=d[x+1];c.push(.5,.5,0,1,C.real,C.imag,0,1,w.real,w.imag,0,1),u.push(0,0,1,0,0,1,0,0,1),h.push(0,0,0,1,O.real,O.imag,0,1,F.real,F.imag,0,1)}this.getMin().set(-o,-o,0),this.getMax().set(o,o,0),this.setSolid(this.solid_.getValue())}}()}),l}),i("x_ite/Components/Geometry2D/Circle2D",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Rendering/X3DLineGeometryNode","x_ite/Bits/X3DConstants"],function(e,t,i,n,s){"use strict";function r(e){n.call(this,e),this.addType(s.Circle2D),this.setGeometryType(1),this.radius_.setUnit("length")}return r.prototype=Object.assign(Object.create(n.prototype),{constructor:r,fieldDefinitions:new i([new t(s.inputOutput,"metadata",new e.SFNode),new t(s.initializeOnly,"radius",new e.SFFloat(1))]),getTypeName:function(){return"Circle2D"},getComponentName:function(){return"Geometry2D"},getContainerField:function(){return"geometry"},initialize:function(){n.prototype.initialize.call(this),this.setPrimitiveMode(this.getBrowser().getContext().LINE_LOOP)},set_live__:function(){n.prototype.set_live__.call(this),this.isLive().getValue()?this.getBrowser().getCircle2DOptions().addInterest("requestRebuild",this):this.getBrowser().getCircle2DOptions().removeInterest("requestRebuild",this)},build:function(){var e=this.getBrowser().getCircle2DOptions(),t=this.getVertices(),i=this.radius_.getValue();if(1===i)this.setVertices(e.getVertices());else for(var n=e.getVertices().getValue(),s=0,r=n.length;s<r;s+=4)t.push(n[s]*i,n[s+1]*i,0,1);this.getMin().set(-i,-i,0),this.getMax().set(i,i,0)}}),r}),i("x_ite/Components/Geometry2D/Disk2D",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Rendering/X3DGeometryNode","x_ite/Components/Rendering/X3DLineGeometryNode","x_ite/Bits/X3DConstants"],function(e,t,i,n,s,r){"use strict";function o(e){s.call(this,e),this.addType(r.Disk2D),this.innerRadius_.setUnit("length"),this.outerRadius_.setUnit("length")}return o.prototype=Object.assign(Object.create(n.prototype),{constructor:o,fieldDefinitions:new i([new t(r.inputOutput,"metadata",new e.SFNode),new t(r.initializeOnly,"innerRadius",new e.SFFloat),new t(r.initializeOnly,"outerRadius",new e.SFFloat(1)),new t(r.initializeOnly,"solid",new e.SFBool)]),getTypeName:function(){return"Disk2D"},getComponentName:function(){return"Geometry2D"},getContainerField:function(){return"geometry"},initialize:function(){n.prototype.initialize.call(this),this.setPrimitiveMode(this.getBrowser().getContext().LINE_LOOP)},set_live__:function(){n.prototype.set_live__.call(this),this.isLive().getValue()?this.getBrowser().getDisk2DOptions().addInterest("requestRebuild",this):this.getBrowser().getDisk2DOptions().removeInterest("requestRebuild",this)},getShader:s.prototype.getShader,build:function(){const e=this.getBrowser().getDisk2DOptions(),t=Math.min(Math.abs(this.innerRadius_.getValue()),Math.abs(this.outerRadius_.getValue())),i=Math.max(Math.abs(this.innerRadius_.getValue()),Math.abs(this.outerRadius_.getValue()));if(t===i){const t=this.getVertices();if(0===i)return;if(1===i)this.setVertices(e.getCircleVertices());else{const n=e.getCircleVertices().getValue();for(let e=0,s=n.length;e<s;e+=4)t.push(n[e]*i,n[e+1]*i,0,1)}return this.getMin().set(-i,-i,0),this.getMax().set(i,i,0),void this.setGeometryType(1)}if(0===t){if(this.getMultiTexCoords().push(e.getDiskTexCoords()),this.setNormals(e.getDiskNormals()),1===i)this.setVertices(e.getDiskVertices());else{const t=e.getDiskVertices().getValue(),n=this.getVertices();for(let e=0,s=t.length;e<s;e+=4)n.push(t[e]*i,t[e+1]*i,0,1)}return this.getMin().set(-i,-i,0),this.getMax().set(i,i,0),this.setGeometryType(2),void this.setSolid(this.solid_.getValue())}const n=t/i,s=(1-n)/2,r=e.getDiskTexCoords().getValue(),o=e.getDiskVertices().getValue(),a=this.getTexCoords(),l=this.getNormals(),c=this.getVertices();this.getMultiTexCoords().push(a);for(let e=0,u=o.length;e<u;e+=12)a.push(r[e+4]*n+s,r[e+5]*n+s,0,1,r[e+4],r[e+5],0,1,r[e+8],r[e+9],0,1,r[e+4]*n+s,r[e+5]*n+s,0,1,r[e+8],r[e+9],0,1,r[e+8]*n+s,r[e+9]*n+s,0,1),l.push(0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1),c.push(o[e+4]*t,o[e+5]*t,0,1,o[e+4]*i,o[e+5]*i,0,1,o[e+8]*i,o[e+9]*i,0,1,o[e+4]*t,o[e+5]*t,0,1,o[e+8]*i,o[e+9]*i,0,1,o[e+8]*t,o[e+9]*t,0,1);this.getMin().set(-i,-i,0),this.getMax().set(i,i,0),this.setGeometryType(2),this.setSolid(this.solid_.getValue())},intersectsLine:function(e,t,i,r){return this.getGeometryType()<2?s.prototype.intersectsLine.call(this,e,t,i,r):n.prototype.intersectsLine.call(this,e,t,i,r)},intersectsBox:function(e,t,i){return this.getGeometryType()<2?s.prototype.intersectsBox.call(this,e,t,i):n.prototype.intersectsBox.call(this,e,t,i)},display:function(e,t){return this.getGeometryType()<2?s.prototype.display.call(this,e,t):n.prototype.display.call(this,e,t)},displayParticles:function(e,t,i,r){return this.getGeometryType()<2?s.prototype.displayParticles.call(this,e,t,i,r):n.prototype.displayParticles.call(this,e,t,i,r)}}),o}),i("x_ite/Components/Geometry2D/Polyline2D",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Rendering/X3DLineGeometryNode","x_ite/Bits/X3DConstants"],function(e,t,i,n,s){"use strict";function r(e){n.call(this,e),this.addType(s.Polyline2D),this.setGeometryType(1),this.lineSegments_.setUnit("length")}return r.prototype=Object.assign(Object.create(n.prototype),{constructor:r,fieldDefinitions:new i([new t(s.inputOutput,"metadata",new e.SFNode),new t(s.initializeOnly,"lineSegments",new e.MFVec2f)]),getTypeName:function(){return"Polyline2D"},getComponentName:function(){return"Geometry2D"},getContainerField:function(){return"geometry"},initialize:function(){n.prototype.initialize.call(this),this.setPrimitiveMode(this.getBrowser().getContext().LINE_STRIP)},build:function(){for(var e=this.lineSegments_.getValue(),t=this.getVertices(),i=0,n=2*this.lineSegments_.length;i<n;i+=2)t.push(e[i],e[i+1],0,1);this.setSolid(!1)}}),r}),i("x_ite/Components/Geometry2D/Polypoint2D",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Rendering/X3DLineGeometryNode","x_ite/Bits/X3DConstants"],function(e,t,i,n,s){"use strict";function r(e){n.call(this,e),this.addType(s.Polypoint2D),this.setGeometryType(0),this.point_.setUnit("length"),this.setTransparent(!0)}return r.prototype=Object.assign(Object.create(n.prototype),{constructor:r,fieldDefinitions:new i([new t(s.inputOutput,"metadata",new e.SFNode),new t(s.inputOutput,"point",new e.MFVec2f)]),getTypeName:function(){return"Polypoint2D"},getComponentName:function(){return"Geometry2D"},getContainerField:function(){return"geometry"},initialize:function(){n.prototype.initialize.call(this);var e=this.getBrowser();this.setPrimitiveMode(e.getContext().POINTS),this.setSolid(!1)},getShader:function(e){return e.getPointShader()},build:function(){for(var e=this.point_.getValue(),t=this.getVertices(),i=0,n=2*this.point_.length;i<n;i+=2)t.push(e[i],e[i+1],0,1)}}),r}),i("x_ite/Components/Geometry2D/Rectangle2D",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Rendering/X3DGeometryNode","x_ite/Bits/X3DConstants","standard/Math/Numbers/Vector2","standard/Math/Numbers/Vector3"],function(e,t,i,n,s,r,o){"use strict";function a(e){n.call(this,e),this.addType(s.Rectangle2D),this.setGeometryType(2),this.size_.setUnit("length")}var l=new r(2,2);return a.prototype=Object.assign(Object.create(n.prototype),{constructor:a,fieldDefinitions:new i([new t(s.inputOutput,"metadata",new e.SFNode),new t(s.initializeOnly,"size",new e.SFVec2f(2,2)),new t(s.initializeOnly,"solid",new e.SFBool)]),getTypeName:function(){return"Rectangle2D"},getComponentName:function(){return"Geometry2D"},getContainerField:function(){return"geometry"},build:function(){var e=this.getBrowser().getRectangle2DOptions(),t=e.getGeometry(),i=this.size_.getValue();if(this.setMultiTexCoords(t.getMultiTexCoords()),this.setNormals(t.getNormals()),i.equals(l))this.setVertices(t.getVertices()),this.getMin().assign(t.getMin()),this.getMax().assign(t.getMax());else{for(var n=o.divide(i,2),s=n.x,r=n.y,a=t.getVertices().getValue(),c=this.getVertices(),u=0;u<a.length;u+=4)c.push(s*a[u],r*a[u+1],a[u+2],1);this.getMin().set(-s,-r,0),this.getMax().set(s,r,0)}this.setSolid(this.solid_.getValue())}}),a}),i("x_ite/Components/Geometry2D/TriangleSet2D",["x_ite/Fields","x_ite/Basic/X3DFieldDefinition","x_ite/Basic/FieldDefinitionArray","x_ite/Components/Rendering/X3DGeometryNode","x_ite/Bits/X3DConstants","standard/Math/Numbers/Vector3"],function(e,t,i,n,s,r){"use strict";function o(e){n.call(this,e),this.addType(s.TriangleSet2D),this.setGeometryType(2),this.vertices_.setUnit("length")}return o.prototype=Object.assign(Object.create(n.prototype),{constructor:o,fieldDefinitions:new i([new t(s.inputOutput,"metadata",new e.SFNode),new t(s.inputOutput,"vertices",new e.MFVec2f),new t(s.initializeOnly,"solid",new e.SFBool)]),getTypeName:function(){return"TriangleSet2D"},getComponentName:function(){return"Geometry2D"},getContainerField:function(){return"geometry"},build:function(){for(var e=this.vertices_.getValue(),t=this.getNormals(),i=this.getVertices(),n=0,s=2*this.vertices_.length;n<s;n+=2)t.push(0,0,1),i.push(e[n],e[n+1],0,1);this.setSolid(this.solid_.getValue())},buildTexCoords:function(){var e=this.getTexCoords();if(0===e.length){for(var t=this.getTexCoordParams(),i=t.min,n=t.Ssize,s=this.getVertices().getValue(),r=0,o=s.length;r<o;r+=4)e.push((s[r]-i[0])/n,(s[r+1]-i[1])/n,0,1);e.shrinkToFit()}return e}}),o}),i(n.getComponentUrl("geometry2d"),["x_ite/Components","x_ite/Browser/Geometry2D/X3DGeometry2DContext","x_ite/Components/Geometry2D/Arc2D","x_ite/Components/Geometry2D/ArcClose2D","x_ite/Components/Geometry2D/Circle2D","x_ite/Components/Geometry2D/Disk2D","x_ite/Components/Geometry2D/Polyline2D","x_ite/Components/Geometry2D/Polypoint2D","x_ite/Components/Geometry2D/Rectangle2D","x_ite/Components/Geometry2D/TriangleSet2D"],function(e,t,i,n,s,r,o,a,l,c){"use strict";e.addComponent({name:"Geometry2D",types:{Arc2D:i,ArcClose2D:n,Circle2D:s,Disk2D:r,Polyline2D:o,Polypoint2D:a,Rectangle2D:l,TriangleSet2D:c},abstractTypes:{},browser:t})})}("object"==typeof module?module:void 0,"function"==typeof require?require:void 0);
@@ -1,9 +1,18 @@
1
- (function () {
1
+ (function (globalModule, globalRequire)
2
+ {
2
3
 
3
- var
4
- define = X3D .define,
5
- require = X3D .require,
6
- module = { };
4
+ if (typeof __filename === "undefined")
5
+ {
6
+ globalModule = undefined;
7
+ globalRequire = undefined;
8
+ }
9
+
10
+ // Undefine global variables.
11
+ var module = { }, exports, process;
12
+
13
+ const
14
+ define = X3D .define,
15
+ require = X3D .require;
7
16
  /* -*- Mode: JavaScript; coding: utf-8; tab-width: 3; indent-tabs-mode: tab; c-basic-offset: 3 -*-
8
17
  *******************************************************************************
9
18
  *
@@ -3791,7 +3800,7 @@ function (Fields,
3791
3800
  ******************************************************************************/
3792
3801
 
3793
3802
 
3794
- define ([
3803
+ define (require .getComponentUrl ("geospatial"), [
3795
3804
  "x_ite/Components",
3796
3805
  "x_ite/Components/Geospatial/GeoCoordinate",
3797
3806
  "x_ite/Components/Geospatial/GeoElevationGrid",
@@ -3847,4 +3856,5 @@ function (Components,
3847
3856
 
3848
3857
 
3849
3858
 
3850
- }());
3859
+ })
3860
+ (typeof module === "object" ? module : undefined, typeof require === "function" ? require : undefined);