x_ite 8.4.3 → 8.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (568) hide show
  1. package/.vscode/settings.json +5 -1
  2. package/Makefile +0 -3
  3. package/build/bin/components.js +173 -0
  4. package/build/bin/tags.pl +28 -0
  5. package/build/bin/tests.pl +80 -2
  6. package/build/bin/version.pl +12 -7
  7. package/dist/assets/components/Annotation.js +13 -13
  8. package/dist/assets/components/Annotation.min.js +1 -1
  9. package/dist/assets/components/CADGeometry.js +13 -13
  10. package/dist/assets/components/CADGeometry.min.js +1 -1
  11. package/dist/assets/components/CubeMapTexturing.js +28 -29
  12. package/dist/assets/components/CubeMapTexturing.min.js +1 -1
  13. package/dist/assets/components/DIS.js +13 -13
  14. package/dist/assets/components/DIS.min.js +1 -1
  15. package/dist/assets/components/EventUtilities.js +9 -9
  16. package/dist/assets/components/EventUtilities.min.js +1 -1
  17. package/dist/assets/components/Geometry2D.js +19 -19
  18. package/dist/assets/components/Geometry2D.min.js +1 -1
  19. package/dist/assets/components/Geospatial.js +33 -33
  20. package/dist/assets/components/Geospatial.min.js +1 -1
  21. package/dist/assets/components/HAnim.js +63 -42
  22. package/dist/assets/components/HAnim.min.js +1 -1
  23. package/dist/assets/components/KeyDeviceSensor.js +8 -8
  24. package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
  25. package/dist/assets/components/Layout.js +37 -29
  26. package/dist/assets/components/Layout.min.js +1 -1
  27. package/dist/assets/components/NURBS.js +29 -31
  28. package/dist/assets/components/NURBS.min.js +1 -1
  29. package/dist/assets/components/ParticleSystems.js +23 -23
  30. package/dist/assets/components/ParticleSystems.min.js +1 -1
  31. package/dist/assets/components/Picking.js +19 -19
  32. package/dist/assets/components/Picking.min.js +1 -1
  33. package/dist/assets/components/RigidBodyPhysics.js +24 -19
  34. package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
  35. package/dist/assets/components/Scripting.js +30 -30
  36. package/dist/assets/components/Scripting.min.js +1 -1
  37. package/dist/assets/components/Text.js +172 -594
  38. package/dist/assets/components/Text.min.js +1 -1
  39. package/dist/assets/components/TextureProjector.js +31 -47
  40. package/dist/assets/components/TextureProjector.min.js +1 -1
  41. package/dist/assets/components/Texturing3D.js +367 -346
  42. package/dist/assets/components/Texturing3D.min.js +1 -1
  43. package/dist/assets/components/VolumeRendering.js +19 -19
  44. package/dist/assets/components/VolumeRendering.min.js +1 -1
  45. package/dist/assets/components/X_ITE.js +9 -9
  46. package/dist/assets/components/X_ITE.min.js +1 -1
  47. package/dist/x_ite.css +1 -1
  48. package/dist/x_ite.js +12174 -3553
  49. package/dist/x_ite.min.js +1 -1
  50. package/dist/x_ite.zip +0 -0
  51. package/docs/_config.yml +5 -136
  52. package/docs/_data/nav/components-CADGeometry.yml +14 -0
  53. package/docs/_data/nav/components-Core.yml +16 -0
  54. package/docs/_data/nav/components-CubeMapTexturing.yml +8 -0
  55. package/docs/_data/nav/components-DIS.yml +14 -0
  56. package/docs/_data/nav/components-EnvironmentalEffects.yml +12 -0
  57. package/docs/_data/nav/components-EnvironmentalSensor.yml +8 -0
  58. package/docs/_data/nav/components-EventUtilities.yml +16 -0
  59. package/docs/_data/nav/components-Followers.yml +30 -0
  60. package/docs/_data/nav/components-Geometry2D.yml +18 -0
  61. package/docs/_data/nav/components-Geometry3D.yml +16 -0
  62. package/docs/_data/nav/components-Geospatial.yml +24 -0
  63. package/docs/_data/nav/components-Grouping.yml +10 -0
  64. package/docs/_data/nav/components-HAnim.yml +14 -0
  65. package/docs/_data/nav/components-Interpolation.yml +28 -0
  66. package/docs/_data/nav/components-KeyDeviceSensor.yml +6 -0
  67. package/docs/_data/nav/components-Layering.yml +8 -0
  68. package/docs/_data/nav/components-Layout.yml +12 -0
  69. package/docs/_data/nav/components-Lighting.yml +10 -0
  70. package/docs/_data/nav/components-NURBS.yml +30 -0
  71. package/docs/_data/nav/components-Navigation.yml +16 -0
  72. package/docs/_data/nav/components-Networking.yml +8 -0
  73. package/docs/_data/nav/components-ParticleSystems.yml +22 -0
  74. package/docs/_data/nav/components-Picking.yml +12 -0
  75. package/docs/_data/nav/components-PointingDeviceSensor.yml +10 -0
  76. package/docs/_data/nav/components-Rendering.yml +30 -0
  77. package/docs/_data/nav/components-RigidBodyPhysics.yml +30 -0
  78. package/docs/_data/nav/components-Scripting.yml +4 -0
  79. package/docs/_data/nav/components-Shaders.yml +18 -0
  80. package/docs/_data/nav/components-Shape.yml +22 -0
  81. package/docs/_data/nav/components-Sound.yml +44 -0
  82. package/docs/_data/nav/components-Text.yml +6 -0
  83. package/docs/_data/nav/components-TextureProjector.yml +6 -0
  84. package/docs/_data/nav/components-Texturing.yml +22 -0
  85. package/docs/_data/nav/components-Texturing3D.yml +18 -0
  86. package/docs/_data/nav/components-Time.yml +4 -0
  87. package/docs/_data/nav/components-VolumeRendering.yml +28 -0
  88. package/docs/_data/nav/components-X_ITE.yml +4 -0
  89. package/docs/_data/nav/main.yml +26 -0
  90. package/docs/_data/nav/reference.yml +18 -0
  91. package/docs/_data/nav/tutorials-animation-sensors-and-geometry.yml +18 -0
  92. package/docs/_data/nav/tutorials-basic.yml +6 -0
  93. package/docs/_data/nav/tutorials-optimize-your-scene.yml +6 -0
  94. package/docs/_data/nav/tutorials-scripts-and-prototypes.yml +12 -0
  95. package/docs/_data/nav/tutorials-shapes-geometry-and-appearance.yml +16 -0
  96. package/docs/_data/nav/tutorials-textures-lights-and-environment.yml +20 -0
  97. package/docs/_includes/nav.html +2 -2
  98. package/docs/_includes/scripts.html +2 -1
  99. package/docs/_posts/accessing-the-external-browser.md +1 -1
  100. package/docs/_posts/browser-support.md +1 -1
  101. package/docs/_posts/components/CADGeometry/CADAssembly.md +83 -0
  102. package/docs/_posts/components/CADGeometry/CADFace.md +70 -0
  103. package/docs/_posts/components/CADGeometry/CADLayer.md +84 -0
  104. package/docs/_posts/components/CADGeometry/CADPart.md +117 -0
  105. package/docs/_posts/components/CADGeometry/IndexedQuadSet.md +125 -0
  106. package/docs/_posts/components/CADGeometry/QuadSet.md +113 -0
  107. package/docs/_posts/components/Core/MetadataBoolean.md +90 -0
  108. package/docs/_posts/components/Core/MetadataDouble.md +67 -0
  109. package/docs/_posts/components/Core/MetadataFloat.md +67 -0
  110. package/docs/_posts/components/Core/MetadataInteger.md +66 -0
  111. package/docs/_posts/components/Core/MetadataSet.md +63 -0
  112. package/docs/_posts/components/Core/MetadataString.md +66 -0
  113. package/docs/_posts/components/Core/WorldInfo.md +54 -0
  114. package/docs/_posts/components/CubeMapTexturing/ComposedCubeMapTexture.md +76 -0
  115. package/docs/_posts/components/CubeMapTexturing/GeneratedCubeMapTexture.md +65 -0
  116. package/docs/_posts/components/CubeMapTexturing/ImageCubeMapTexture.md +66 -0
  117. package/docs/_posts/components/DIS/DISEntityManager.md +73 -0
  118. package/docs/_posts/components/DIS/DISEntityTypeMapping.md +88 -0
  119. package/docs/_posts/components/DIS/EspduTransform.md +416 -0
  120. package/docs/_posts/components/DIS/ReceiverPdu.md +168 -0
  121. package/docs/_posts/components/DIS/SignalPdu.md +168 -0
  122. package/docs/_posts/components/DIS/TransmitterPdu.md +232 -0
  123. package/docs/_posts/components/EnvironmentalEffects/Background.md +189 -0
  124. package/docs/_posts/components/EnvironmentalEffects/Fog.md +97 -0
  125. package/docs/_posts/components/EnvironmentalEffects/FogCoordinate.md +40 -0
  126. package/docs/_posts/components/EnvironmentalEffects/LocalFog.md +84 -0
  127. package/docs/_posts/components/EnvironmentalEffects/TextureBackground.md +142 -0
  128. package/docs/_posts/components/EnvironmentalSensor/ProximitySensor.md +90 -0
  129. package/docs/_posts/components/EnvironmentalSensor/TransformSensor.md +91 -0
  130. package/docs/_posts/components/EnvironmentalSensor/VisibilitySensor.md +73 -0
  131. package/docs/_posts/components/EventUtilities/BooleanFilter.md +62 -0
  132. package/docs/_posts/components/EventUtilities/BooleanSequencer.md +86 -0
  133. package/docs/_posts/components/EventUtilities/BooleanToggle.md +46 -0
  134. package/docs/_posts/components/EventUtilities/BooleanTrigger.md +47 -0
  135. package/docs/_posts/components/EventUtilities/IntegerSequencer.md +90 -0
  136. package/docs/_posts/components/EventUtilities/IntegerTrigger.md +51 -0
  137. package/docs/_posts/components/EventUtilities/TimeTrigger.md +47 -0
  138. package/docs/_posts/components/Followers/ColorChaser.md +77 -0
  139. package/docs/_posts/components/Followers/ColorDamper.md +85 -0
  140. package/docs/_posts/components/Followers/CoordinateChaser.md +76 -0
  141. package/docs/_posts/components/Followers/CoordinateDamper.md +80 -0
  142. package/docs/_posts/components/Followers/OrientationChaser.md +72 -0
  143. package/docs/_posts/components/Followers/OrientationDamper.md +80 -0
  144. package/docs/_posts/components/Followers/PositionChaser.md +72 -0
  145. package/docs/_posts/components/Followers/PositionChaser2D.md +72 -0
  146. package/docs/_posts/components/Followers/PositionDamper.md +80 -0
  147. package/docs/_posts/components/Followers/PositionDamper2D.md +80 -0
  148. package/docs/_posts/components/Followers/ScalarChaser.md +76 -0
  149. package/docs/_posts/components/Followers/ScalarDamper.md +80 -0
  150. package/docs/_posts/components/Followers/TexCoordChaser2D.md +72 -0
  151. package/docs/_posts/components/Followers/TexCoordDamper2D.md +80 -0
  152. package/docs/_posts/components/Geometry2D/Arc2D.md +71 -0
  153. package/docs/_posts/components/Geometry2D/ArcClose2D.md +91 -0
  154. package/docs/_posts/components/Geometry2D/Circle2D.md +55 -0
  155. package/docs/_posts/components/Geometry2D/Disk2D.md +75 -0
  156. package/docs/_posts/components/Geometry2D/Polyline2D.md +54 -0
  157. package/docs/_posts/components/Geometry2D/Polypoint2D.md +54 -0
  158. package/docs/_posts/components/Geometry2D/Rectangle2D.md +66 -0
  159. package/docs/_posts/components/Geometry2D/TriangleSet2D.md +66 -0
  160. package/docs/_posts/components/Geometry3D/Box.md +66 -0
  161. package/docs/_posts/components/Geometry3D/Cone.md +90 -0
  162. package/docs/_posts/components/Geometry3D/Cylinder.md +98 -0
  163. package/docs/_posts/components/Geometry3D/ElevationGrid.md +162 -0
  164. package/docs/_posts/components/Geometry3D/Extrusion.md +170 -0
  165. package/docs/_posts/components/Geometry3D/IndexedFaceSet.md +208 -0
  166. package/docs/_posts/components/Geometry3D/Sphere.md +66 -0
  167. package/docs/_posts/components/Geospatial/GeoCoordinate.md +65 -0
  168. package/docs/_posts/components/Geospatial/GeoElevationGrid.md +180 -0
  169. package/docs/_posts/components/Geospatial/GeoLOD.md +128 -0
  170. package/docs/_posts/components/Geospatial/GeoLocation.md +93 -0
  171. package/docs/_posts/components/Geospatial/GeoMetadata.md +75 -0
  172. package/docs/_posts/components/Geospatial/GeoOrigin.md +69 -0
  173. package/docs/_posts/components/Geospatial/GeoPositionInterpolator.md +95 -0
  174. package/docs/_posts/components/Geospatial/GeoProximitySensor.md +109 -0
  175. package/docs/_posts/components/Geospatial/GeoTouchSensor.md +108 -0
  176. package/docs/_posts/components/Geospatial/GeoTransform.md +121 -0
  177. package/docs/_posts/components/Geospatial/GeoViewpoint.md +126 -0
  178. package/docs/_posts/components/Grouping/Group.md +75 -0
  179. package/docs/_posts/components/Grouping/StaticGroup.md +65 -0
  180. package/docs/_posts/components/Grouping/Switch.md +89 -0
  181. package/docs/_posts/components/Grouping/Transform.md +126 -0
  182. package/docs/_posts/components/HAnim/HAnimDisplacer.md +89 -0
  183. package/docs/_posts/components/HAnim/HAnimHumanoid.md +136 -0
  184. package/docs/_posts/components/HAnim/HAnimJoint.md +165 -0
  185. package/docs/_posts/components/HAnim/HAnimMotion.md +68 -0
  186. package/docs/_posts/components/HAnim/HAnimSegment.md +107 -0
  187. package/docs/_posts/components/HAnim/HAnimSite.md +108 -0
  188. package/docs/_posts/components/Interpolation/ColorInterpolator.md +73 -0
  189. package/docs/_posts/components/Interpolation/CoordinateInterpolator.md +76 -0
  190. package/docs/_posts/components/Interpolation/CoordinateInterpolator2D.md +73 -0
  191. package/docs/_posts/components/Interpolation/EaseInEaseOut.md +67 -0
  192. package/docs/_posts/components/Interpolation/NormalInterpolator.md +68 -0
  193. package/docs/_posts/components/Interpolation/OrientationInterpolator.md +72 -0
  194. package/docs/_posts/components/Interpolation/PositionInterpolator.md +72 -0
  195. package/docs/_posts/components/Interpolation/PositionInterpolator2D.md +77 -0
  196. package/docs/_posts/components/Interpolation/ScalarInterpolator.md +76 -0
  197. package/docs/_posts/components/Interpolation/SplinePositionInterpolator.md +93 -0
  198. package/docs/_posts/components/Interpolation/SplinePositionInterpolator2D.md +93 -0
  199. package/docs/_posts/components/Interpolation/SplineScalarInterpolator.md +106 -0
  200. package/docs/_posts/components/Interpolation/SquadOrientationInterpolator.md +78 -0
  201. package/docs/_posts/components/KeyDeviceSensor/KeySensor.md +78 -0
  202. package/docs/_posts/components/KeyDeviceSensor/StringSensor.md +70 -0
  203. package/docs/_posts/components/Layering/Layer.md +67 -0
  204. package/docs/_posts/components/Layering/LayerSet.md +78 -0
  205. package/docs/_posts/components/Layering/Viewport.md +80 -0
  206. package/docs/_posts/components/Layout/Layout.md +107 -0
  207. package/docs/_posts/components/Layout/LayoutGroup.md +85 -0
  208. package/docs/_posts/components/Layout/LayoutLayer.md +74 -0
  209. package/docs/_posts/components/Layout/ScreenFontStyle.md +137 -0
  210. package/docs/_posts/components/Layout/ScreenGroup.md +71 -0
  211. package/docs/_posts/components/Lighting/DirectionalLight.md +100 -0
  212. package/docs/_posts/components/Lighting/EnvironmentLight.md +91 -0
  213. package/docs/_posts/components/Lighting/PointLight.md +103 -0
  214. package/docs/_posts/components/Lighting/SpotLight.md +132 -0
  215. package/docs/_posts/components/NURBS/Contour2D.md +57 -0
  216. package/docs/_posts/components/NURBS/ContourPolyline2D.md +46 -0
  217. package/docs/_posts/components/NURBS/CoordinateDouble.md +47 -0
  218. package/docs/_posts/components/NURBS/NurbsCurve.md +71 -0
  219. package/docs/_posts/components/NURBS/NurbsCurve2D.md +66 -0
  220. package/docs/_posts/components/NURBS/NurbsOrientationInterpolator.md +70 -0
  221. package/docs/_posts/components/NURBS/NurbsPatchSurface.md +106 -0
  222. package/docs/_posts/components/NURBS/NurbsPositionInterpolator.md +70 -0
  223. package/docs/_posts/components/NURBS/NurbsSet.md +66 -0
  224. package/docs/_posts/components/NURBS/NurbsSurfaceInterpolator.md +90 -0
  225. package/docs/_posts/components/NURBS/NurbsSweptSurface.md +69 -0
  226. package/docs/_posts/components/NURBS/NurbsSwungSurface.md +65 -0
  227. package/docs/_posts/components/NURBS/NurbsTextureCoordinate.md +77 -0
  228. package/docs/_posts/components/NURBS/NurbsTrimmedSurface.md +114 -0
  229. package/docs/_posts/components/Navigation/Billboard.md +88 -0
  230. package/docs/_posts/components/Navigation/Collision.md +102 -0
  231. package/docs/_posts/components/Navigation/LOD.md +99 -0
  232. package/docs/_posts/components/Navigation/NavigationInfo.md +122 -0
  233. package/docs/_posts/components/Navigation/OrthoViewpoint.md +117 -0
  234. package/docs/_posts/components/Navigation/Viewpoint.md +117 -0
  235. package/docs/_posts/components/Navigation/ViewpointGroup.md +80 -0
  236. package/docs/_posts/components/Networking/Anchor.md +111 -0
  237. package/docs/_posts/components/Networking/Inline.md +115 -0
  238. package/docs/_posts/components/Networking/LoadSensor.md +91 -0
  239. package/docs/_posts/components/ParticleSystems/BoundedPhysicsModel.md +54 -0
  240. package/docs/_posts/components/ParticleSystems/ConeEmitter.md +76 -0
  241. package/docs/_posts/components/ParticleSystems/ExplosionEmitter.md +72 -0
  242. package/docs/_posts/components/ParticleSystems/ForcePhysicsModel.md +58 -0
  243. package/docs/_posts/components/ParticleSystems/ParticleSystem.md +177 -0
  244. package/docs/_posts/components/ParticleSystems/PointEmitter.md +76 -0
  245. package/docs/_posts/components/ParticleSystems/PolylineEmitter.md +94 -0
  246. package/docs/_posts/components/ParticleSystems/SurfaceEmitter.md +90 -0
  247. package/docs/_posts/components/ParticleSystems/VolumeEmitter.md +90 -0
  248. package/docs/_posts/components/ParticleSystems/WindPhysicsModel.md +68 -0
  249. package/docs/_posts/components/Picking/LinePickSensor.md +125 -0
  250. package/docs/_posts/components/Picking/PickableGroup.md +93 -0
  251. package/docs/_posts/components/Picking/PointPickSensor.md +112 -0
  252. package/docs/_posts/components/Picking/PrimitivePickSensor.md +114 -0
  253. package/docs/_posts/components/Picking/VolumePickSensor.md +107 -0
  254. package/docs/_posts/components/PointingDeviceSensor/CylinderSensor.md +122 -0
  255. package/docs/_posts/components/PointingDeviceSensor/PlaneSensor.md +114 -0
  256. package/docs/_posts/components/PointingDeviceSensor/SphereSensor.md +89 -0
  257. package/docs/_posts/components/PointingDeviceSensor/TouchSensor.md +87 -0
  258. package/docs/_posts/components/Rendering/ClipPlane.md +67 -0
  259. package/docs/_posts/components/Rendering/Color.md +56 -0
  260. package/docs/_posts/components/Rendering/ColorRGBA.md +61 -0
  261. package/docs/_posts/components/Rendering/Coordinate.md +45 -0
  262. package/docs/_posts/components/Rendering/IndexedLineSet.md +128 -0
  263. package/docs/_posts/components/Rendering/IndexedTriangleFanSet.md +128 -0
  264. package/docs/_posts/components/Rendering/IndexedTriangleSet.md +128 -0
  265. package/docs/_posts/components/Rendering/IndexedTriangleStripSet.md +116 -0
  266. package/docs/_posts/components/Rendering/LineSet.md +85 -0
  267. package/docs/_posts/components/Rendering/Normal.md +41 -0
  268. package/docs/_posts/components/Rendering/PointSet.md +76 -0
  269. package/docs/_posts/components/Rendering/TriangleFanSet.md +112 -0
  270. package/docs/_posts/components/Rendering/TriangleSet.md +108 -0
  271. package/docs/_posts/components/Rendering/TriangleStripSet.md +116 -0
  272. package/docs/_posts/components/RigidBodyPhysics/BallJoint.md +78 -0
  273. package/docs/_posts/components/RigidBodyPhysics/CollidableOffset.md +75 -0
  274. package/docs/_posts/components/RigidBodyPhysics/CollidableShape.md +83 -0
  275. package/docs/_posts/components/RigidBodyPhysics/CollisionCollection.md +90 -0
  276. package/docs/_posts/components/RigidBodyPhysics/CollisionSensor.md +65 -0
  277. package/docs/_posts/components/RigidBodyPhysics/CollisionSpace.md +70 -0
  278. package/docs/_posts/components/RigidBodyPhysics/Contact.md +117 -0
  279. package/docs/_posts/components/RigidBodyPhysics/DoubleAxisHingeJoint.md +162 -0
  280. package/docs/_posts/components/RigidBodyPhysics/MotorJoint.md +183 -0
  281. package/docs/_posts/components/RigidBodyPhysics/RigidBody.md +175 -0
  282. package/docs/_posts/components/RigidBodyPhysics/RigidBodyCollection.md +120 -0
  283. package/docs/_posts/components/RigidBodyPhysics/SingleAxisHingeJoint.md +108 -0
  284. package/docs/_posts/components/RigidBodyPhysics/SliderJoint.md +106 -0
  285. package/docs/_posts/components/RigidBodyPhysics/UniversalJoint.md +119 -0
  286. package/docs/_posts/components/Scripting/Script.md +81 -0
  287. package/docs/_posts/components/Shaders/ComposedShader.md +81 -0
  288. package/docs/_posts/components/Shaders/FloatVertexAttribute.md +65 -0
  289. package/docs/_posts/components/Shaders/Matrix3VertexAttribute.md +53 -0
  290. package/docs/_posts/components/Shaders/Matrix4VertexAttribute.md +53 -0
  291. package/docs/_posts/components/Shaders/PackagedShader.md +77 -0
  292. package/docs/_posts/components/Shaders/ProgramShader.md +71 -0
  293. package/docs/_posts/components/Shaders/ShaderPart.md +76 -0
  294. package/docs/_posts/components/Shaders/ShaderProgram.md +68 -0
  295. package/docs/_posts/components/Shape/AcousticProperties.md +52 -0
  296. package/docs/_posts/components/Shape/Appearance.md +123 -0
  297. package/docs/_posts/components/Shape/FillProperties.md +67 -0
  298. package/docs/_posts/components/Shape/LineProperties.md +63 -0
  299. package/docs/_posts/components/Shape/Material.md +217 -0
  300. package/docs/_posts/components/Shape/PhysicalMaterial.md +173 -0
  301. package/docs/_posts/components/Shape/PointProperties.md +84 -0
  302. package/docs/_posts/components/Shape/Shape.md +63 -0
  303. package/docs/_posts/components/Shape/TwoSidedMaterial.md +149 -0
  304. package/docs/_posts/components/Shape/UnlitMaterial.md +115 -0
  305. package/docs/_posts/components/Sound/Analyser.md +72 -0
  306. package/docs/_posts/components/Sound/AudioClip.md +139 -0
  307. package/docs/_posts/components/Sound/AudioDestination.md +52 -0
  308. package/docs/_posts/components/Sound/BiquadFilter.md +70 -0
  309. package/docs/_posts/components/Sound/BufferAudioSource.md +86 -0
  310. package/docs/_posts/components/Sound/ChannelMerger.md +46 -0
  311. package/docs/_posts/components/Sound/ChannelSelector.md +48 -0
  312. package/docs/_posts/components/Sound/ChannelSplitter.md +48 -0
  313. package/docs/_posts/components/Sound/Convolver.md +66 -0
  314. package/docs/_posts/components/Sound/Delay.md +66 -0
  315. package/docs/_posts/components/Sound/DynamicsCompressor.md +74 -0
  316. package/docs/_posts/components/Sound/Gain.md +62 -0
  317. package/docs/_posts/components/Sound/ListenerPointSource.md +62 -0
  318. package/docs/_posts/components/Sound/MicrophoneSource.md +54 -0
  319. package/docs/_posts/components/Sound/OscillatorSource.md +58 -0
  320. package/docs/_posts/components/Sound/PeriodicWave.md +42 -0
  321. package/docs/_posts/components/Sound/Sound.md +92 -0
  322. package/docs/_posts/components/Sound/SpatialSound.md +68 -0
  323. package/docs/_posts/components/Sound/StreamAudioDestination.md +52 -0
  324. package/docs/_posts/components/Sound/StreamAudioSource.md +54 -0
  325. package/docs/_posts/components/Sound/WaveShaper.md +66 -0
  326. package/docs/_posts/components/Text/FontStyle.md +145 -0
  327. package/docs/_posts/components/Text/Text.md +102 -0
  328. package/docs/_posts/components/TextureProjector/TextureProjector.md +52 -0
  329. package/docs/_posts/components/TextureProjector/TextureProjectorParallel.md +52 -0
  330. package/docs/_posts/components/Texturing/ImageTexture.md +134 -0
  331. package/docs/_posts/components/Texturing/MovieTexture.md +221 -0
  332. package/docs/_posts/components/Texturing/MultiTexture.md +100 -0
  333. package/docs/_posts/components/Texturing/MultiTextureCoordinate.md +47 -0
  334. package/docs/_posts/components/Texturing/MultiTextureTransform.md +47 -0
  335. package/docs/_posts/components/Texturing/PixelTexture.md +80 -0
  336. package/docs/_posts/components/Texturing/TextureCoordinate.md +52 -0
  337. package/docs/_posts/components/Texturing/TextureCoordinateGenerator.md +64 -0
  338. package/docs/_posts/components/Texturing/TextureProperties.md +137 -0
  339. package/docs/_posts/components/Texturing/TextureTransform.md +73 -0
  340. package/docs/_posts/components/Texturing3D/ComposedTexture3D.md +76 -0
  341. package/docs/_posts/components/Texturing3D/ImageTexture3D.md +132 -0
  342. package/docs/_posts/components/Texturing3D/ImageTextureAtlas.md +131 -0
  343. package/docs/_posts/components/Texturing3D/PixelTexture3D.md +75 -0
  344. package/docs/_posts/components/Texturing3D/TextureCoordinate3D.md +53 -0
  345. package/docs/_posts/components/Texturing3D/TextureCoordinate4D.md +52 -0
  346. package/docs/_posts/components/Texturing3D/TextureTransform3D.md +69 -0
  347. package/docs/_posts/components/Texturing3D/TextureTransformMatrix3D.md +57 -0
  348. package/docs/_posts/components/Time/TimeSensor.md +136 -0
  349. package/docs/_posts/components/VolumeRendering/BlendedVolumeStyle.md +92 -0
  350. package/docs/_posts/components/VolumeRendering/BoundaryEnhancementVolumeStyle.md +53 -0
  351. package/docs/_posts/components/VolumeRendering/CartoonVolumeStyle.md +83 -0
  352. package/docs/_posts/components/VolumeRendering/ComposedVolumeStyle.md +51 -0
  353. package/docs/_posts/components/VolumeRendering/EdgeEnhancementVolumeStyle.md +67 -0
  354. package/docs/_posts/components/VolumeRendering/IsoSurfaceVolumeData.md +99 -0
  355. package/docs/_posts/components/VolumeRendering/OpacityMapVolumeStyle.md +51 -0
  356. package/docs/_posts/components/VolumeRendering/ProjectionVolumeStyle.md +48 -0
  357. package/docs/_posts/components/VolumeRendering/SegmentedVolumeData.md +80 -0
  358. package/docs/_posts/components/VolumeRendering/ShadedVolumeStyle.md +75 -0
  359. package/docs/_posts/components/VolumeRendering/SilhouetteEnhancementVolumeStyle.md +63 -0
  360. package/docs/_posts/components/VolumeRendering/ToneMappedVolumeStyle.md +71 -0
  361. package/docs/_posts/components/VolumeRendering/VolumeData.md +71 -0
  362. package/docs/_posts/components/X_ITE/BlendMode.md +94 -0
  363. package/docs/_posts/custom-shaders.md +9 -4
  364. package/docs/_posts/dom-integration.md +1 -6
  365. package/docs/_posts/features.md +2 -2
  366. package/docs/_posts/getting-started.md +100 -57
  367. package/docs/_posts/glossary.md +1 -1
  368. package/docs/_posts/how-to-configure-your-web-server.md +1 -1
  369. package/docs/_posts/reference/browser-services.md +78 -18
  370. package/docs/_posts/reference/constants-services.md +1 -1
  371. package/docs/_posts/reference/ecmascript-object-and-function-definitions.md +1 -1
  372. package/docs/_posts/reference/field-services-and-objects.md +8 -8
  373. package/docs/_posts/reference/prototype-services.md +7 -7
  374. package/docs/_posts/reference/route-services.md +1 -1
  375. package/docs/_posts/reference/scene-services.md +5 -5
  376. package/docs/_posts/reference/script-node-authoring-interface.md +1 -1
  377. package/docs/_posts/report-a-bug.md +1 -1
  378. package/docs/_posts/setup-a-localhost-server.md +5 -1
  379. package/docs/_posts/supported-nodes.md +239 -238
  380. package/docs/_posts/tutorials/adding-backgrounds.md +3 -3
  381. package/docs/_posts/tutorials/adding-fog.md +2 -2
  382. package/docs/_posts/tutorials/adding-sound.md +19 -19
  383. package/docs/_posts/tutorials/animating-transforms.md +17 -17
  384. package/docs/_posts/tutorials/basic-nodes.md +30 -30
  385. package/docs/_posts/tutorials/building-a-x3d-world.md +3 -3
  386. package/docs/_posts/tutorials/building-elevation-grids.md +7 -7
  387. package/docs/_posts/tutorials/building-extruded-shapes.md +7 -7
  388. package/docs/_posts/tutorials/building-primitive-shapes.md +13 -13
  389. package/docs/_posts/tutorials/building-shapes-out-of-points-lines-and-faces.md +21 -21
  390. package/docs/_posts/tutorials/controlling-appearance-with-materials.md +7 -7
  391. package/docs/_posts/tutorials/controlling-color-on-coordinate-based-geometry.md +11 -11
  392. package/docs/_posts/tutorials/controlling-detail.md +4 -4
  393. package/docs/_posts/tutorials/controlling-how-textures-are-mapped.md +7 -7
  394. package/docs/_posts/tutorials/controlling-navigation.md +3 -3
  395. package/docs/_posts/tutorials/controlling-shading-on-coordinate-based-geometry.md +13 -13
  396. package/docs/_posts/tutorials/controlling-the-viewpoint.md +3 -3
  397. package/docs/_posts/tutorials/creating-new-node-types.md +4 -4
  398. package/docs/_posts/tutorials/grouping-nodes.md +13 -13
  399. package/docs/_posts/tutorials/hello-world.md +1 -1
  400. package/docs/_posts/tutorials/improving-performance.md +1 -1
  401. package/docs/_posts/tutorials/increasing-rendering-speed.md +1 -1
  402. package/docs/_posts/tutorials/introducing-animation.md +10 -10
  403. package/docs/_posts/tutorials/introducing-script-use.md +3 -3
  404. package/docs/_posts/tutorials/introducing-x3d.md +1 -1
  405. package/docs/_posts/tutorials/lighting-your-world.md +4 -4
  406. package/docs/_posts/tutorials/mapping-textures.md +7 -7
  407. package/docs/_posts/tutorials/naming-nodes.md +1 -1
  408. package/docs/_posts/tutorials/overview.md +1 -1
  409. package/docs/_posts/tutorials/providing-information-about-your-world.md +2 -2
  410. package/docs/_posts/tutorials/sensing-the-viewer.md +15 -15
  411. package/docs/_posts/tutorials/sensing-viewer-actions.md +10 -10
  412. package/docs/_posts/tutorials/transforming-shapes.md +4 -4
  413. package/docs/_posts/tutorials/writing-program-scripts-with-ecmascript.md +5 -5
  414. package/docs/_posts/what's-new.md +40 -2
  415. package/docs/_tabs/components.md +383 -0
  416. package/docs/_tabs/imprint.md +1 -1
  417. package/docs/_tabs/laboratory.md +38 -6
  418. package/docs/_tabs/playground.html +22 -66
  419. package/docs/_tabs/reference.md +2 -1
  420. package/docs/_tabs/tags.md +1 -1
  421. package/docs/_tabs/tutorials.md +1 -1
  422. package/docs/assets/X3D/Michroma-Regular.ttf +0 -0
  423. package/docs/assets/X3D/peakpx.jpg +0 -0
  424. package/docs/assets/X3D/teaser.x3d +55 -0
  425. package/docs/assets/css/style.scss +120 -11
  426. package/docs/assets/img/laboratory/blend-mode.png +0 -0
  427. package/docs/assets/img/laboratory/dicom-nrrd.png +0 -0
  428. package/docs/assets/img/laboratory/earthquake.png +0 -0
  429. package/docs/assets/img/laboratory/gltf.png +0 -0
  430. package/docs/assets/img/laboratory/l-system.png +0 -0
  431. package/docs/assets/js/autoupdate.js +25 -0
  432. package/docs/laboratory/gltf-sample-viewer.html +318 -0
  433. package/docs/laboratory/x3d-visual-blend-mode-editor.html +1 -0
  434. package/package.json +9 -2
  435. package/src/assets/components/Texturing3D.js +5 -3
  436. package/src/assets/shaders/Types.glsl.js +5 -5
  437. package/src/assets/shaders/webgl1/PBR.fs.js +1 -1
  438. package/src/assets/shaders/webgl1/include/Colors.glsl.js +5 -7
  439. package/src/assets/shaders/webgl1/include/Fragment.glsl.js +4 -0
  440. package/src/assets/shaders/webgl1/include/Hatch.glsl.js +1 -1
  441. package/src/assets/shaders/webgl1/include/Texture.glsl.js +3 -3
  442. package/src/assets/shaders/webgl2/include/Colors.glsl.js +5 -7
  443. package/src/assets/shaders/webgl2/include/Hatch.glsl.js +1 -1
  444. package/src/assets/shaders/webgl2/include/Particle.glsl.js +2 -2
  445. package/src/assets/shaders/webgl2/include/Texture.glsl.js +2 -2
  446. package/src/bookmarks.js +12 -8
  447. package/src/examples.js +3 -0
  448. package/src/lib/jquery.js +20 -0
  449. package/src/lib/libgif/libgif.js +1004 -0
  450. package/src/lib/libtess.js +1 -0
  451. package/src/lib/nurbs/extras/sample.js +5 -7
  452. package/src/standard/Math/Algorithms/Bezier.js +175 -33
  453. package/src/standard/Math/Geometry/Box2.js +15 -55
  454. package/src/standard/Math/Geometry/Box3.js +19 -66
  455. package/src/standard/Math/Geometry/Triangle3.js +14 -79
  456. package/src/standard/Math/Numbers/Color3.js +4 -0
  457. package/src/standard/Math/Numbers/Color4.js +4 -0
  458. package/src/standard/Math/Numbers/Matrix3.js +11 -3
  459. package/src/standard/Math/Numbers/Matrix4.js +9 -6
  460. package/src/standard/Math/Numbers/Rotation4.js +72 -65
  461. package/src/tests.js +3 -0
  462. package/src/x_ite/Base/X3DArrayField.js +0 -2
  463. package/src/x_ite/Base/X3DInfoArray.js +2 -2
  464. package/src/x_ite/Base/X3DObjectArrayField.js +19 -0
  465. package/src/x_ite/Base/X3DTypedArrayField.js +149 -0
  466. package/src/x_ite/Browser/Core/BrowserOptions.js +108 -64
  467. package/src/x_ite/Browser/Core/Context.js +1 -1
  468. package/src/x_ite/Browser/Core/ContextMenu.js +2 -2
  469. package/src/x_ite/Browser/Core/Notification.js +1 -1
  470. package/src/x_ite/Browser/Core/RenderingProperties.js +4 -0
  471. package/src/x_ite/Browser/Core/X3DCoreContext.js +99 -54
  472. package/src/x_ite/Browser/Navigation/ExamineViewer.js +4 -14
  473. package/src/x_ite/Browser/Navigation/LookAtViewer.js +3 -13
  474. package/src/x_ite/Browser/Navigation/PlaneViewer.js +3 -12
  475. package/src/x_ite/Browser/Navigation/X3DFlyViewer.js +25 -22
  476. package/src/x_ite/Browser/Navigation/X3DViewer.js +12 -3
  477. package/src/x_ite/Browser/Networking/X3DNetworkingContext.js +2 -2
  478. package/src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js +19 -15
  479. package/src/x_ite/Browser/Rendering/X3DRenderingContext.js +30 -10
  480. package/src/x_ite/Browser/Shaders/X3DShadersContext.js +1 -1
  481. package/src/x_ite/Browser/Shape/X3DShapeContext.js +30 -3
  482. package/src/x_ite/Browser/Text/PolygonText.js +137 -134
  483. package/src/x_ite/Browser/Texturing/GifMedia.js +113 -0
  484. package/src/x_ite/Browser/Texturing3D/DICOMParser.js +1 -6
  485. package/src/x_ite/Browser/Texturing3D/NRRDParser.js +81 -310
  486. package/src/x_ite/Browser/VERSION.js +1 -1
  487. package/src/x_ite/Browser/X3DBrowser.js +162 -122
  488. package/src/x_ite/Browser/X3DBrowserContext.js +7 -5
  489. package/src/x_ite/Components/Core/WorldInfo.js +3 -3
  490. package/src/x_ite/Components/Core/X3DNode.js +7 -7
  491. package/src/x_ite/Components/Core/X3DPrototypeInstance.js +1 -1
  492. package/src/x_ite/Components/CubeMapTexturing/ImageCubeMapTexture.js +2 -3
  493. package/src/x_ite/Components/Geometry3D/Extrusion.js +27 -23
  494. package/src/x_ite/Components/Geometry3D/IndexedFaceSet.js +10 -19
  495. package/src/x_ite/Components/Grouping/X3DBoundedObject.js +1 -3
  496. package/src/x_ite/Components/HAnim/HAnimHumanoid.js +39 -15
  497. package/src/x_ite/Components/HAnim/HAnimJoint.js +6 -9
  498. package/src/x_ite/Components/Layering/X3DLayerNode.js +21 -2
  499. package/src/x_ite/Components/Layout/Layout.js +4 -2
  500. package/src/x_ite/Components/Layout/ScreenFontStyle.js +6 -0
  501. package/src/x_ite/Components/Lighting/DirectionalLight.js +4 -11
  502. package/src/x_ite/Components/Lighting/EnvironmentLight.js +1 -1
  503. package/src/x_ite/Components/Lighting/PointLight.js +4 -11
  504. package/src/x_ite/Components/Lighting/SpotLight.js +4 -11
  505. package/src/x_ite/Components/Lighting/X3DLightNode.js +7 -9
  506. package/src/x_ite/Components/Navigation/OrthoViewpoint.js +2 -2
  507. package/src/x_ite/Components/Navigation/X3DViewpointNode.js +14 -6
  508. package/src/x_ite/Components/Networking/Inline.js +48 -59
  509. package/src/x_ite/Components/Networking/X3DUrlObject.js +1 -1
  510. package/src/x_ite/Components/PointingDeviceSensor/CylinderSensor.js +2 -2
  511. package/src/x_ite/Components/Rendering/X3DLineGeometryNode.js +7 -13
  512. package/src/x_ite/Components/Rendering/X3DPointGeometryNode.js +4 -2
  513. package/src/x_ite/Components/RigidBodyPhysics/RigidBody.js +4 -2
  514. package/src/x_ite/Components/Scripting/Script.js +2 -2
  515. package/src/x_ite/Components/Shaders/ShaderPart.js +1 -1
  516. package/src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js +1 -3
  517. package/src/x_ite/Components/Shape/Appearance.js +27 -1
  518. package/src/x_ite/Components/Shape/FillProperties.js +1 -0
  519. package/src/x_ite/Components/Shape/LineProperties.js +15 -9
  520. package/src/x_ite/Components/Shape/Material.js +33 -22
  521. package/src/x_ite/Components/Shape/PhysicalMaterial.js +22 -15
  522. package/src/x_ite/Components/Shape/PointProperties.js +23 -7
  523. package/src/x_ite/Components/Shape/UnlitMaterial.js +3 -2
  524. package/src/x_ite/Components/Shape/X3DOneSidedMaterialNode.js +25 -19
  525. package/src/x_ite/Components/Sound/AudioClip.js +5 -5
  526. package/src/x_ite/Components/Sound/X3DSoundSourceNode.js +26 -34
  527. package/src/x_ite/Components/Text/X3DFontStyleNode.js +1 -1
  528. package/src/x_ite/Components/TextureProjector/TextureProjector.js +4 -12
  529. package/src/x_ite/Components/TextureProjector/TextureProjectorParallel.js +6 -14
  530. package/src/x_ite/Components/TextureProjector/X3DTextureProjectorNode.js +7 -7
  531. package/src/x_ite/Components/Texturing/ImageTexture.js +15 -10
  532. package/src/x_ite/Components/Texturing/MovieTexture.js +51 -11
  533. package/src/x_ite/Components/Texturing3D/ImageTexture3D.js +2 -2
  534. package/src/x_ite/Components/Texturing3D/ImageTextureAtlas.js +230 -0
  535. package/src/x_ite/Components/Time/X3DTimeDependentNode.js +12 -10
  536. package/src/x_ite/Execution/BindableList.js +35 -37
  537. package/src/x_ite/Execution/BindableStack.js +25 -7
  538. package/src/x_ite/Execution/X3DScene.js +2 -2
  539. package/src/x_ite/Execution/X3DWorld.js +1 -1
  540. package/src/x_ite/Fields/SFRotation.js +2 -1
  541. package/src/x_ite/Fields/SFString.js +1 -1
  542. package/src/x_ite/InputOutput/FileLoader.js +105 -236
  543. package/src/x_ite/InputOutput/Generator.js +12 -8
  544. package/src/x_ite/Parser/Expressions.js +85 -0
  545. package/src/x_ite/Parser/GLB2Parser.js +147 -0
  546. package/src/x_ite/Parser/GLTF2Parser.js +2221 -0
  547. package/src/x_ite/Parser/GoldenGate.js +64 -13
  548. package/src/x_ite/Parser/JSONParser.js +7 -36
  549. package/src/x_ite/Parser/OBJParser.js +1076 -0
  550. package/src/x_ite/Parser/STLAParser.js +376 -0
  551. package/src/x_ite/Parser/STLBParser.js +156 -0
  552. package/src/x_ite/Parser/SVGParser.js +2476 -0
  553. package/src/x_ite/Parser/VRMLParser.js +127 -183
  554. package/src/x_ite/Parser/X3DOptimizer.js +191 -0
  555. package/src/x_ite/Parser/X3DParser.js +34 -0
  556. package/src/x_ite/Parser/XMLParser.js +11 -109
  557. package/src/x_ite/Prototype/X3DExternProtoDeclaration.js +2 -2
  558. package/src/x_ite/Prototype/X3DProtoDeclaration.js +3 -3
  559. package/src/x_ite/Rendering/DependentRenderer.js +1 -1
  560. package/src/x_ite/Rendering/MultiSampleFrameBuffer.js +150 -0
  561. package/src/x_ite/Rendering/TextureBuffer.js +3 -5
  562. package/src/x_ite/Rendering/X3DRenderObject.js +2 -7
  563. package/src/x_ite/X3D.js +1 -0
  564. package/src/x_ite/X3DCanvas.js +10 -0
  565. package/src/x_ite.html +39 -17
  566. package/webpack.config.js +1 -0
  567. package/x_ite.min.html +38 -17
  568. package/src/standard/Networking/BinaryTransport.js +0 -116
@@ -1 +1 @@
1
- /* X_ITE v8.4.3 */(()=>{"use strict";var t={n:e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},d:(e,n)=>{for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)};const e=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Components");var n=t.n(e);const i=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Fields");var o=t.n(i);const s=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Base/X3DFieldDefinition");var r=t.n(s);const u=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Base/FieldDefinitionArray");var a=t.n(u);const d=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Components/Rendering/X3DGeometricPropertyNode");var p=t.n(d);const l=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Base/X3DConstants");var w=t.n(l);const c=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Namespace");var m=t.n(c);function h(t){p().call(this,t),this.addType(w().HAnimDisplacer),this._displacements.setUnit("length")}h.prototype=Object.assign(Object.create(p().prototype),{constructor:h,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"coordIndex",new(o().MFInt32)),new(r())(w().inputOutput,"weight",new(o().SFFloat)),new(r())(w().inputOutput,"displacements",new(o().MFVec3f))]),getTypeName:function(){return"HAnimDisplacer"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"displacers"}});const _=h;m().set("x_ite/Components/HAnim/HAnimDisplacer",_);const f=_,N=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Components/Core/X3DChildNode");var O=t.n(N);const F=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Components/Grouping/Group");var S=t.n(F);const g=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Components/Grouping/Transform");var b=t.n(g);const y=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Components/Grouping/X3DBoundedObject");var C=t.n(y);const x=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Rendering/TraverseType");var M=t.n(x);const I=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Base/X3DCast");var k=t.n(I);const v=window[Symbol.for("X_ITE.X3D-8.4.3")].require("standard/Math/Numbers/Matrix4");var D=t.n(v);const A=window[Symbol.for("X_ITE.X3D-8.4.3")].require("standard/Math/Numbers/Vector3");var X=t.n(A);function H(t){O().call(this,t),C().call(this,t),this.addType(w().HAnimHumanoid),this._translation.setUnit("length"),this._center.setUnit("length"),this._bboxSize.setUnit("length"),this._bboxCenter.setUnit("length"),this.viewpointsNode=new(S())(t),this.skeletonNode=new(S())(t),this.skinNode=new(S())(t),this.transformNode=new(b())(t),this.jointNodes=[],this.skinNormalNode=null,this.skinCoordNode=null,this.restNormalNode=null,this.restCoordNode=null}H.prototype=Object.assign(Object.create(O().prototype),C().prototype,{constructor:H,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"version",new(o().SFString)),new(r())(w().inputOutput,"info",new(o().MFString)),new(r())(w().inputOutput,"translation",new(o().SFVec3f)),new(r())(w().inputOutput,"rotation",new(o().SFRotation)),new(r())(w().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(w().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(w().inputOutput,"center",new(o().SFVec3f)),new(r())(w().inputOutput,"jointBindingPositions",new(o().MFVec3f)),new(r())(w().inputOutput,"jointBindingRotations",new(o().MFRotation)),new(r())(w().inputOutput,"jointBindingScales",new(o().MFVec3f)),new(r())(w().inputOutput,"motionsEnabled",new(o().MFBool)),new(r())(w().inputOutput,"loa",new(o().SFInt32)(-1)),new(r())(w().inputOutput,"skeletalConfiguration",new(o().SFString)("BASIC")),new(r())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(w().inputOutput,"viewpoints",new(o().MFNode)),new(r())(w().inputOutput,"sites",new(o().MFNode)),new(r())(w().inputOutput,"joints",new(o().MFNode)),new(r())(w().inputOutput,"segments",new(o().MFNode)),new(r())(w().inputOutput,"motions",new(o().MFNode)),new(r())(w().inputOutput,"skeleton",new(o().MFNode)),new(r())(w().inputOutput,"skinBindingNormal",new(o().SFNode)),new(r())(w().inputOutput,"skinBindingCoord",new(o().SFNode)),new(r())(w().inputOutput,"skinNormal",new(o().SFNode)),new(r())(w().inputOutput,"skinCoord",new(o().SFNode)),new(r())(w().inputOutput,"skin",new(o().MFNode))]),getTypeName:function(){return"HAnimHumanoid"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"children"},initialize:function(){O().prototype.initialize.call(this),C().prototype.initialize.call(this),this.viewpointsNode.setAllowedTypes(w().HAnimSite),this.skeletonNode.setAllowedTypes(w().HAnimJoint,w().HAnimSite),this._viewpoints.addFieldInterest(this.viewpointsNode._children),this._skeleton.addFieldInterest(this.skeletonNode._children),this._skin.addFieldInterest(this.skinNode._children),this.viewpointsNode._children=this._viewpoints,this.skeletonNode._children=this._skeleton,this.skinNode._children=this._skin,this.viewpointsNode.setPrivate(!0),this.skeletonNode.setPrivate(!0),this.skinNode.setPrivate(!0),this._translation.addFieldInterest(this.transformNode._translation),this._rotation.addFieldInterest(this.transformNode._rotation),this._scale.addFieldInterest(this.transformNode._scale),this._scaleOrientation.addFieldInterest(this.transformNode._scaleOrientation),this._center.addFieldInterest(this.transformNode._center),this._visible.addFieldInterest(this.transformNode._visible),this._bboxDisplay.addFieldInterest(this.transformNode._bboxDisplay),this._bboxSize.addFieldInterest(this.transformNode._bboxSize),this._bboxCenter.addFieldInterest(this.transformNode._bboxCenter),this.transformNode._translation=this._translation,this.transformNode._rotation=this._rotation,this.transformNode._scale=this._scale,this.transformNode._scaleOrientation=this._scaleOrientation,this.transformNode._center=this._center,this.transformNode._visible=this._visible,this.transformNode._bboxDisplay=this._bboxDisplay,this.transformNode._bboxSize=this._bboxSize,this.transformNode._bboxCenter=this._bboxCenter,this.transformNode._children=[this.viewpointsNode,this.skeletonNode,this.skinNode],this.transformNode._isCameraObject.addFieldInterest(this._isCameraObject),this.transformNode._isPickableObject.addFieldInterest(this._isPickableObject),this.viewpointsNode.setup(),this.skeletonNode.setup(),this.skinNode.setup(),this.transformNode.setup(),this.setCameraObject(this.transformNode.getCameraObject()),this.setPickableObject(this.transformNode.getPickableObject()),this._joints.addInterest("set_joints__",this),this._skinNormal.addInterest("set_skinNormal__",this),this._skinCoord.addInterest("set_skinCoord__",this),this.set_joints__(),this.set_skinNormal__(),this.set_skinCoord__()},getBBox:function(t,e){return this.transformNode.getBBox(t,e)},set_joints__:function(){const t=this.jointNodes;t.length=0;for(const e of this._joints){const n=k()(w().HAnimJoint,e);n&&t.push(n)}},set_skinNormal__:function(){this.restNormalNode=null,this.skinNormalNode=k()(w().X3DNormalNode,this._skinNormal),this.skinNormalNode&&(this.restNormalNode=this.skinNormalNode.copy())},set_skinCoord__:function(){this.restCoordNode=null,this.skinCoordNode=k()(w().X3DCoordinateNode,this._skinCoord),this.skinCoordNode&&(this.restCoordNode=this.skinCoordNode.copy())},traverse:function(t,e){e.getJoints().length=0,this.transformNode.traverse(t,e),this.isLive().getValue()&&this.skinning(t,e)},skinning:function(){const t=new(D()),e=new(X())(0,0,0),n=new(X())(0,0,0),i=new(X())(0,0,0),o=new(X())(0,0,0);return function(s,r){if(s!==M().CAMERA)return;if(!this.skinCoordNode)return;const u=this.jointNodes.length?this.jointNodes:r.getJoints(),a=this.skinNormalNode,d=this.skinCoordNode,p=this.restNormalNode,l=this.restCoordNode;a&&a._vector.assign(p._vector),d._point.assign(l._point),t.assign(this.transformNode.getMatrix()).multRight(r.getModelViewMatrix().get()).inverse();for(const s of u){const r=s._skinCoordIndex.length,u=s.getModelMatrix().multRight(t),w=s.getDisplacers();for(const t of w){const e=t._coordIndex.getValue(),n=t._coordIndex.length,s=t._weight.getValue(),r=t._displacements.getValue(),a=t._displacements.length;for(let t=0;t<n;++t){const n=3*t,p=e[t],l=t<a?o.set(r[n],r[n+1],r[n+2]):o.assign(X().Zero);d.get1Point(p,i),u.multDirMatrix(l).multiply(s).add(i),d.set1Point(p,l)}}const c=a?u.submatrix.transpose().inverse():null,m=s._skinCoordIndex.getValue(),h=s._skinCoordWeight.getValue(),_=s._skinCoordWeight.length;for(let t=0;t<r;++t){const s=m[t],r=t<_?h[t]:1;a&&(n.assign(p.get1Vector(s,e)),a.get1Vector(s,i),c.multVecMatrix(e).subtract(n).multiply(r).add(i),a.set1Vector(s,e)),n.assign(l.get1Point(s,o)),d.get1Point(s,i),u.multVecMatrix(o).subtract(n).multiply(r).add(i),d.set1Point(s,o)}}}}(),dispose:function(){C().prototype.dispose.call(this),O().prototype.dispose.call(this)}});const T=H;m().set("x_ite/Components/HAnim/HAnimHumanoid",T);const j=T,V=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Components/Grouping/X3DTransformNode");var B=t.n(V);function E(t){B().call(this,t),this.addType(w().HAnimJoint),this.setAllowedTypes(w().HAnimJoint,w().HAnimSegment,w().HAnimSite),this.displacerNodes=[],this.modelMatrix=new(D())}E.prototype=Object.assign(Object.create(B().prototype),{constructor:E,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"translation",new(o().SFVec3f)),new(r())(w().inputOutput,"rotation",new(o().SFRotation)),new(r())(w().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(w().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(w().inputOutput,"center",new(o().SFVec3f)),new(r())(w().inputOutput,"llimit",new(o().MFFloat)),new(r())(w().inputOutput,"ulimit",new(o().MFFloat)),new(r())(w().inputOutput,"limitOrientation",new(o().SFRotation)),new(r())(w().inputOutput,"stiffness",new(o().MFFloat)(0,0,0)),new(r())(w().inputOutput,"skinCoordIndex",new(o().MFInt32)),new(r())(w().inputOutput,"skinCoordWeight",new(o().MFFloat)),new(r())(w().inputOutput,"displacers",new(o().MFNode)),new(r())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(w().inputOnly,"addChildren",new(o().MFNode)),new(r())(w().inputOnly,"removeChildren",new(o().MFNode)),new(r())(w().inputOutput,"children",new(o().MFNode))]),getTypeName:function(){return"HAnimJoint"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"children"},initialize:function(){B().prototype.initialize.call(this),this._displacers.addInterest("set_displacers__",this),this.set_displacers__()},setCameraObject:function(t){B().prototype.setCameraObject.call(this,t||!!this._skinCoordIndex.length)},getModelMatrix:function(){return this.modelMatrix},getDisplacers:function(){return this.displacerNodes},set_displacers__:function(){const t=this.displacerNodes;t.length=0;for(const e of this._displacers){const n=k()(w().HAnimDisplacer,e);n&&t.push(n)}},traverse:function(t,e){t===M().CAMERA&&this._skinCoordIndex.length&&(e.getJoints().push(this),this.modelMatrix.assign(this.getMatrix()).multRight(e.getModelViewMatrix().get())),B().prototype.traverse.call(this,t,e)},groupTraverse:function(t,e){t===M().CAMERA&&this._skinCoordIndex.length&&(e.getJoints().push(this),this.modelMatrix.assign(e.getModelViewMatrix().get())),B().prototype.groupTraverse.call(this,t,e)}});const z=E;m().set("x_ite/Components/HAnim/HAnimJoint",z);const q=z;function R(t){O().call(this,t),this.addType(w().HAnimMotion)}R.prototype=Object.assign(Object.create(O().prototype),{constructor:R,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(w().inputOnly,"next",new(o().SFBool)),new(r())(w().inputOnly,"previous",new(o().SFBool)),new(r())(w().inputOutput,"frameDuration",new(o().SFTime)(.1)),new(r())(w().inputOutput,"frameIncrement",new(o().SFInt32)(1)),new(r())(w().inputOutput,"frameIndex",new(o().SFInt32)(0)),new(r())(w().inputOutput,"loop",new(o().SFBool)(!1)),new(r())(w().inputOutput,"channels",new(o().SFString)),new(r())(w().inputOutput,"channelsEnabled",new(o().MFBool)),new(r())(w().inputOutput,"joints",new(o().MFString)),new(r())(w().inputOutput,"loa",new(o().SFInt32)(-1)),new(r())(w().inputOutput,"startFrame",new(o().SFInt32)),new(r())(w().inputOutput,"endFrame",new(o().SFInt32)),new(r())(w().inputOutput,"values",new(o().MFFloat)),new(r())(w().outputOnly,"cycleTime",new(o().SFTime)),new(r())(w().outputOnly,"elapsedTime",new(o().SFTime)),new(r())(w().outputOnly,"frameCount",new(o().SFInt32))]),getTypeName:function(){return"HAnimMotion"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"children"},initialize:function(){O().prototype.initialize.call(this)}});const P=R;m().set("x_ite/Components/HAnim/HAnimMotion",P);const J=P,G=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Components/Grouping/X3DGroupingNode");var U=t.n(G);function W(t){U().call(this,t),this.addType(w().HAnimSegment),this._mass.setUnit("mass")}W.prototype=Object.assign(Object.create(U().prototype),{constructor:W,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"mass",new(o().SFFloat)),new(r())(w().inputOutput,"centerOfMass",new(o().SFVec3f)),new(r())(w().inputOutput,"momentsOfInertia",new(o().MFFloat)(0,0,0,0,0,0,0,0,0)),new(r())(w().inputOutput,"displacers",new(o().MFNode)),new(r())(w().inputOutput,"coord",new(o().SFNode)),new(r())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(w().inputOnly,"addChildren",new(o().MFNode)),new(r())(w().inputOnly,"removeChildren",new(o().MFNode)),new(r())(w().inputOutput,"children",new(o().MFNode))]),getTypeName:function(){return"HAnimSegment"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"children"}});const L=W;m().set("x_ite/Components/HAnim/HAnimSegment",L);const Z=L;function K(t){B().call(this,t),this.addType(w().HAnimSite)}K.prototype=Object.assign(Object.create(B().prototype),{constructor:K,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"translation",new(o().SFVec3f)),new(r())(w().inputOutput,"rotation",new(o().SFRotation)),new(r())(w().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(w().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(w().inputOutput,"center",new(o().SFVec3f)),new(r())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(w().inputOnly,"addChildren",new(o().MFNode)),new(r())(w().inputOnly,"removeChildren",new(o().MFNode)),new(r())(w().inputOutput,"children",new(o().MFNode))]),getTypeName:function(){return"HAnimSite"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"children"}});const Q=K;m().set("x_ite/Components/HAnim/HAnimSite",Q);const Y=Q;n().addComponent({name:"HAnim",types:{HAnimDisplacer:f,HAnimHumanoid:j,HAnimJoint:q,HAnimMotion:J,HAnimSegment:Z,HAnimSite:Y},abstractTypes:{}});const $=void 0;m().set("assets/components/HAnim",$)})();
1
+ /* X_ITE v8.5.3 */(()=>{"use strict";var t={n:e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},d:(e,n)=>{for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)};const e=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Components");var n=t.n(e);const i=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Fields");var o=t.n(i);const s=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Base/X3DFieldDefinition");var r=t.n(s);const u=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Base/FieldDefinitionArray");var a=t.n(u);const d=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Components/Rendering/X3DGeometricPropertyNode");var p=t.n(d);const l=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Base/X3DConstants");var w=t.n(l);const c=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Namespace");var m=t.n(c);function h(t){p().call(this,t),this.addType(w().HAnimDisplacer),this._displacements.setUnit("length")}h.prototype=Object.assign(Object.create(p().prototype),{constructor:h,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"coordIndex",new(o().MFInt32)),new(r())(w().inputOutput,"weight",new(o().SFFloat)),new(r())(w().inputOutput,"displacements",new(o().MFVec3f))]),getTypeName:function(){return"HAnimDisplacer"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"displacers"}});const _=h;m().set("x_ite/Components/HAnim/HAnimDisplacer",_);const f=_,N=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Components/Core/X3DChildNode");var O=t.n(N);const F=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Components/Grouping/Group");var S=t.n(F);const g=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Components/Grouping/Transform");var b=t.n(g);const y=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Components/Grouping/X3DBoundedObject");var C=t.n(y);const x=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Rendering/TraverseType");var I=t.n(x);const M=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Base/X3DCast");var k=t.n(M);const v=window[Symbol.for("X_ITE.X3D-8.5.3")].require("standard/Math/Numbers/Matrix4");var D=t.n(v);const A=window[Symbol.for("X_ITE.X3D-8.5.3")].require("standard/Math/Numbers/Vector3");var X=t.n(A);function H(t){O().call(this,t),C().call(this,t),this.addType(w().HAnimHumanoid),this._translation.setUnit("length"),this._center.setUnit("length"),this._bboxSize.setUnit("length"),this._bboxCenter.setUnit("length"),this.skeletonNode=new(S())(t),this.viewpointsNode=new(S())(t),this.skinNode=new(S())(t),this.transformNode=new(b())(t),this.jointNodes=[],this.skinNormalNode=null,this.skinCoordNode=null,this.restNormalNode=null,this.restCoordNode=null,this.changed=!1}H.prototype=Object.assign(Object.create(O().prototype),C().prototype,{constructor:H,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"version",new(o().SFString)),new(r())(w().inputOutput,"info",new(o().MFString)),new(r())(w().inputOutput,"translation",new(o().SFVec3f)),new(r())(w().inputOutput,"rotation",new(o().SFRotation)),new(r())(w().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(w().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(w().inputOutput,"center",new(o().SFVec3f)),new(r())(w().inputOutput,"jointBindingPositions",new(o().MFVec3f)),new(r())(w().inputOutput,"jointBindingRotations",new(o().MFRotation)),new(r())(w().inputOutput,"jointBindingScales",new(o().MFVec3f)),new(r())(w().inputOutput,"motionsEnabled",new(o().MFBool)),new(r())(w().inputOutput,"loa",new(o().SFInt32)(-1)),new(r())(w().inputOutput,"skeletalConfiguration",new(o().SFString)("BASIC")),new(r())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(w().inputOutput,"skeleton",new(o().MFNode)),new(r())(w().inputOutput,"viewpoints",new(o().MFNode)),new(r())(w().inputOutput,"sites",new(o().MFNode)),new(r())(w().inputOutput,"segments",new(o().MFNode)),new(r())(w().inputOutput,"joints",new(o().MFNode)),new(r())(w().inputOutput,"motions",new(o().MFNode)),new(r())(w().inputOutput,"skinBindingNormal",new(o().SFNode)),new(r())(w().inputOutput,"skinBindingCoord",new(o().SFNode)),new(r())(w().inputOutput,"skinNormal",new(o().SFNode)),new(r())(w().inputOutput,"skinCoord",new(o().SFNode)),new(r())(w().inputOutput,"skin",new(o().MFNode))]),getTypeName:function(){return"HAnimHumanoid"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"children"},initialize:function(){O().prototype.initialize.call(this),C().prototype.initialize.call(this),this.skeletonNode.setAllowedTypes(w().HAnimJoint,w().HAnimSite),this.viewpointsNode.setAllowedTypes(w().HAnimSite),this._skeleton.addFieldInterest(this.skeletonNode._children),this._viewpoints.addFieldInterest(this.viewpointsNode._children),this._skin.addFieldInterest(this.skinNode._children),this.skeletonNode._children=this._skeleton,this.viewpointsNode._children=this._viewpoints,this.skinNode._children=this._skin,this.skeletonNode.setPrivate(!0),this.viewpointsNode.setPrivate(!0),this.skinNode.setPrivate(!0),this._translation.addFieldInterest(this.transformNode._translation),this._rotation.addFieldInterest(this.transformNode._rotation),this._scale.addFieldInterest(this.transformNode._scale),this._scaleOrientation.addFieldInterest(this.transformNode._scaleOrientation),this._center.addFieldInterest(this.transformNode._center),this._visible.addFieldInterest(this.transformNode._visible),this._bboxDisplay.addFieldInterest(this.transformNode._bboxDisplay),this._bboxSize.addFieldInterest(this.transformNode._bboxSize),this._bboxCenter.addFieldInterest(this.transformNode._bboxCenter),this.transformNode._translation=this._translation,this.transformNode._rotation=this._rotation,this.transformNode._scale=this._scale,this.transformNode._scaleOrientation=this._scaleOrientation,this.transformNode._center=this._center,this.transformNode._visible=this._visible,this.transformNode._bboxDisplay=this._bboxDisplay,this.transformNode._bboxSize=this._bboxSize,this.transformNode._bboxCenter=this._bboxCenter,this.transformNode._children=[this.skeletonNode,this.viewpointsNode,this.skinNode],this.transformNode._isCameraObject.addFieldInterest(this._isCameraObject),this.transformNode._isPickableObject.addFieldInterest(this._isPickableObject),this.skeletonNode.setup(),this.viewpointsNode.setup(),this.skinNode.setup(),this.transformNode.setup(),this.setCameraObject(this.transformNode.getCameraObject()),this.setPickableObject(this.transformNode.getPickableObject()),this._joints.addInterest("set_joints__",this),this._skinNormal.addInterest("set_skinNormal__",this),this._skinCoord.addInterest("set_skinCoord__",this),this.set_joints__(),this.set_skinNormal__(),this.set_skinCoord__()},getBBox:function(t,e){return this.transformNode.getBBox(t,e)},set_joints__:function(){const t=this.jointNodes;for(const e of t)e.removeInterest("set_joint__",this);t.length=0;for(const e of this._joints){const n=k()(w().HAnimJoint,e);n&&t.push(n)}for(const e of t)e.addInterest("set_joint__",this);this.set_joint__()},set_joint__:function(){this.changed=!0},set_skinNormal__:function(){this.restNormalNode=null,this.skinNormalNode=k()(w().X3DNormalNode,this._skinNormal),this.skinNormalNode&&(this.restNormalNode=this.skinNormalNode.copy()),this.changed=!0},set_skinCoord__:function(){this.restCoordNode=null,this.skinCoordNode=k()(w().X3DCoordinateNode,this._skinCoord),this.skinCoordNode?(this.restCoordNode=this.skinCoordNode.copy(),delete this.skinning):this.skinning=Function.prototype,this.changed=!0},traverse:function(t,e){this.transformNode.traverse(t,e),this.skinning(t,e)},skinning:function(){const t=new(D()),e=new(X())(0,0,0),n=new(X())(0,0,0),i=new(X())(0,0,0),o=new(X())(0,0,0);return function(s,r){if(s!==I().CAMERA)return;if(!this.changed)return;this.changed=!1;const u=this.jointNodes,a=this.skinNormalNode,d=this.skinCoordNode,p=this.restNormalNode,l=this.restCoordNode;a&&a._vector.assign(p._vector),d._point.assign(l._point),t.assign(this.transformNode.getMatrix()).multRight(r.getModelViewMatrix().get()).inverse();for(const s of u){const r=s._skinCoordIndex.length,u=s.getModelMatrix().multRight(t),w=s.getDisplacers();for(const t of w){const e=t._coordIndex.getValue(),n=t._coordIndex.length,s=t._weight.getValue(),r=t._displacements.getValue(),a=t._displacements.length;for(let t=0;t<n;++t){const n=3*t,p=e[t],l=t<a?o.set(r[n],r[n+1],r[n+2]):o.assign(X().Zero);d.get1Point(p,i),u.multDirMatrix(l).multiply(s).add(i),d.set1Point(p,l)}}const c=a?u.submatrix.transpose().inverse():null,m=s._skinCoordIndex.getValue(),h=s._skinCoordWeight.getValue(),_=s._skinCoordWeight.length;for(let t=0;t<r;++t){const s=m[t],r=t<_?h[t]:1;a&&(n.assign(p.get1Vector(s,e)),a.get1Vector(s,i),c.multVecMatrix(e).subtract(n).multiply(r).add(i),a.set1Vector(s,e)),n.assign(l.get1Point(s,o)),d.get1Point(s,i),u.multVecMatrix(o).subtract(n).multiply(r).add(i),d.set1Point(s,o)}}}}(),dispose:function(){C().prototype.dispose.call(this),O().prototype.dispose.call(this)}});const T=H;m().set("x_ite/Components/HAnim/HAnimHumanoid",T);const j=T,B=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Components/Grouping/X3DTransformNode");var V=t.n(B);function E(t){V().call(this,t),this.addType(w().HAnimJoint),this.setAllowedTypes(w().HAnimJoint,w().HAnimSegment,w().HAnimSite),this.displacerNodes=[],this.modelMatrix=new(D())}E.prototype=Object.assign(Object.create(V().prototype),{constructor:E,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"translation",new(o().SFVec3f)),new(r())(w().inputOutput,"rotation",new(o().SFRotation)),new(r())(w().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(w().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(w().inputOutput,"center",new(o().SFVec3f)),new(r())(w().inputOutput,"llimit",new(o().MFFloat)),new(r())(w().inputOutput,"ulimit",new(o().MFFloat)),new(r())(w().inputOutput,"limitOrientation",new(o().SFRotation)),new(r())(w().inputOutput,"stiffness",new(o().MFFloat)(0,0,0)),new(r())(w().inputOutput,"skinCoordIndex",new(o().MFInt32)),new(r())(w().inputOutput,"skinCoordWeight",new(o().MFFloat)),new(r())(w().inputOutput,"displacers",new(o().MFNode)),new(r())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(w().inputOnly,"addChildren",new(o().MFNode)),new(r())(w().inputOnly,"removeChildren",new(o().MFNode)),new(r())(w().inputOutput,"children",new(o().MFNode))]),getTypeName:function(){return"HAnimJoint"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"children"},initialize:function(){V().prototype.initialize.call(this),this._skinCoordIndex.addInterest("set_skinCoordIndex__",this),this._displacers.addInterest("set_displacers__",this),this.set_displacers__()},setCameraObject:function(t){V().prototype.setCameraObject.call(this,t||!!this._skinCoordIndex.length)},getModelMatrix:function(){return this.modelMatrix},getDisplacers:function(){return this.displacerNodes},set_skinCoordIndex__:function(){this.set_cameraObjects__()},set_displacers__:function(){const t=this.displacerNodes;t.length=0;for(const e of this._displacers){const n=k()(w().HAnimDisplacer,e);n&&t.push(n)}},traverse:function(t,e){t===I().CAMERA&&this._skinCoordIndex.length&&this.modelMatrix.assign(this.getMatrix()).multRight(e.getModelViewMatrix().get()),V().prototype.traverse.call(this,t,e)},groupTraverse:function(t,e){t===I().CAMERA&&this._skinCoordIndex.length&&this.modelMatrix.assign(e.getModelViewMatrix().get()),V().prototype.groupTraverse.call(this,t,e)}});const z=E;m().set("x_ite/Components/HAnim/HAnimJoint",z);const q=z;function R(t){O().call(this,t),this.addType(w().HAnimMotion)}R.prototype=Object.assign(Object.create(O().prototype),{constructor:R,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(w().inputOnly,"next",new(o().SFBool)),new(r())(w().inputOnly,"previous",new(o().SFBool)),new(r())(w().inputOutput,"frameDuration",new(o().SFTime)(.1)),new(r())(w().inputOutput,"frameIncrement",new(o().SFInt32)(1)),new(r())(w().inputOutput,"frameIndex",new(o().SFInt32)(0)),new(r())(w().inputOutput,"loop",new(o().SFBool)(!1)),new(r())(w().inputOutput,"channels",new(o().SFString)),new(r())(w().inputOutput,"channelsEnabled",new(o().MFBool)),new(r())(w().inputOutput,"joints",new(o().MFString)),new(r())(w().inputOutput,"loa",new(o().SFInt32)(-1)),new(r())(w().inputOutput,"startFrame",new(o().SFInt32)),new(r())(w().inputOutput,"endFrame",new(o().SFInt32)),new(r())(w().inputOutput,"values",new(o().MFFloat)),new(r())(w().outputOnly,"cycleTime",new(o().SFTime)),new(r())(w().outputOnly,"elapsedTime",new(o().SFTime)),new(r())(w().outputOnly,"frameCount",new(o().SFInt32))]),getTypeName:function(){return"HAnimMotion"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"children"},initialize:function(){O().prototype.initialize.call(this)}});const P=R;m().set("x_ite/Components/HAnim/HAnimMotion",P);const G=P,J=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Components/Grouping/X3DGroupingNode");var U=t.n(J);function W(t){U().call(this,t),this.addType(w().HAnimSegment),this._mass.setUnit("mass")}W.prototype=Object.assign(Object.create(U().prototype),{constructor:W,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"mass",new(o().SFFloat)),new(r())(w().inputOutput,"centerOfMass",new(o().SFVec3f)),new(r())(w().inputOutput,"momentsOfInertia",new(o().MFFloat)(0,0,0,0,0,0,0,0,0)),new(r())(w().inputOutput,"displacers",new(o().MFNode)),new(r())(w().inputOutput,"coord",new(o().SFNode)),new(r())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(w().inputOnly,"addChildren",new(o().MFNode)),new(r())(w().inputOnly,"removeChildren",new(o().MFNode)),new(r())(w().inputOutput,"children",new(o().MFNode))]),getTypeName:function(){return"HAnimSegment"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"children"}});const Z=W;m().set("x_ite/Components/HAnim/HAnimSegment",Z);const K=Z;function L(t){V().call(this,t),this.addType(w().HAnimSite)}L.prototype=Object.assign(Object.create(V().prototype),{constructor:L,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"translation",new(o().SFVec3f)),new(r())(w().inputOutput,"rotation",new(o().SFRotation)),new(r())(w().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(w().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(w().inputOutput,"center",new(o().SFVec3f)),new(r())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(w().inputOnly,"addChildren",new(o().MFNode)),new(r())(w().inputOnly,"removeChildren",new(o().MFNode)),new(r())(w().inputOutput,"children",new(o().MFNode))]),getTypeName:function(){return"HAnimSite"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"children"}});const Q=L;m().set("x_ite/Components/HAnim/HAnimSite",Q);const Y=Q;n().addComponent({name:"HAnim",types:{HAnimDisplacer:f,HAnimHumanoid:j,HAnimJoint:q,HAnimMotion:G,HAnimSegment:K,HAnimSite:Y},abstractTypes:{}});const $=void 0;m().set("assets/components/HAnim",$)})();
@@ -1,4 +1,4 @@
1
- /* X_ITE v8.4.3 */(() => { // webpackBootstrap
1
+ /* X_ITE v8.5.3 */(() => { // webpackBootstrap
2
2
  /******/ "use strict";
3
3
  /******/ // The require scope
4
4
  /******/ var __webpack_require__ = {};
@@ -39,13 +39,13 @@ var __webpack_exports__ = {};
39
39
  // UNUSED EXPORTS: default
40
40
 
41
41
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components\")"
42
- const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.4.3")] .require ("x_ite/Components");
42
+ const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Components");
43
43
  var Components_default = /*#__PURE__*/__webpack_require__.n(Components_namespaceObject);
44
44
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
45
- const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.4.3")] .require ("x_ite/Fields");
45
+ const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Fields");
46
46
  var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
47
47
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
48
- const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.4.3")] .require ("x_ite/Namespace");
48
+ const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Namespace");
49
49
  var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
50
50
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/KeyDeviceSensor/X3DKeyDeviceSensorContext.js
51
51
  /*******************************************************************************
@@ -150,16 +150,16 @@ const __default__ = X3DKeyDeviceSensorContext;
150
150
  Namespace_default().set ("x_ite/Browser/KeyDeviceSensor/X3DKeyDeviceSensorContext", __default__);
151
151
  /* harmony default export */ const KeyDeviceSensor_X3DKeyDeviceSensorContext = (__default__);
152
152
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
153
- const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.4.3")] .require ("x_ite/Base/X3DFieldDefinition");
153
+ const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Base/X3DFieldDefinition");
154
154
  var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
155
155
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
156
- const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.4.3")] .require ("x_ite/Base/FieldDefinitionArray");
156
+ const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Base/FieldDefinitionArray");
157
157
  var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
158
158
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DSensorNode\")"
159
- const X3DSensorNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.4.3")] .require ("x_ite/Components/Core/X3DSensorNode");
159
+ const X3DSensorNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Components/Core/X3DSensorNode");
160
160
  var X3DSensorNode_default = /*#__PURE__*/__webpack_require__.n(X3DSensorNode_namespaceObject);
161
161
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
162
- const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.4.3")] .require ("x_ite/Base/X3DConstants");
162
+ const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Base/X3DConstants");
163
163
  var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
164
164
  ;// CONCATENATED MODULE: ./src/x_ite/Components/KeyDeviceSensor/X3DKeyDeviceSensorNode.js
165
165
  /*******************************************************************************
@@ -1 +1 @@
1
- /* X_ITE v8.4.3 */(()=>{"use strict";var e={n:t=>{var s=t&&t.__esModule?()=>t.default:()=>t;return e.d(s,{a:s}),s},d:(t,s)=>{for(var i in s)e.o(s,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:s[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Components");var s=e.n(t);const i=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Fields");var n=e.n(i);const a=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Namespace");var o=e.n(a);const r=Symbol(),c=Symbol(),h=Symbol();function l(){this[r]=new Set}l.prototype={initialize:function(){const e=this.getElement();e.on("keydown.X3DKeyDeviceSensorContext",this[c].bind(this)),e.on("keyup.X3DKeyDeviceSensorContext",this[h].bind(this))},addKeyDeviceSensorNode:function(e){this[r].add(e)},removeKeyDeviceSensorNode:function(e){this[r].delete(e)},getKeyDeviceSensorNodes:function(){return this[r]},[c]:function(e){for(const t of this[r])t.keydown(e)},[h]:function(e){for(const t of this[r])t.keyup(e)}};const y=l;o().set("x_ite/Browser/KeyDeviceSensor/X3DKeyDeviceSensorContext",y);const _=y,u=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Base/X3DFieldDefinition");var d=e.n(u);const b=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Base/FieldDefinitionArray");var k=e.n(b);const K=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Components/Core/X3DSensorNode");var p=e.n(K);const f=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Base/X3DConstants");var S=e.n(f);function w(e){p().call(this,e),this.addType(S().X3DKeyDeviceSensorNode)}w.prototype=Object.assign(Object.create(p().prototype),{constructor:w,initialize:function(){p().prototype.initialize.call(this),this.isLive().addInterest("set_live__",this),this.set_live__()},set_live__:function(){this.isLive().getValue()?(this._enabled.addInterest("set_enabled__",this),this._enabled.getValue()&&this.enable()):(this._enabled.removeInterest("set_enabled__",this),this.disable())},set_enabled__:function(){this._enabled.getValue()?this.enable():this.disable()},enable:function(){this.getBrowser().addKeyDeviceSensorNode(this)},disable:function(){this.getBrowser().removeKeyDeviceSensorNode(this),this.release()},keydown:function(){},keyup:function(){},release:function(){}});const v=w;o().set("x_ite/Components/KeyDeviceSensor/X3DKeyDeviceSensorNode",v);const g=v;function D(e){g.call(this,e),this.addType(S().KeySensor)}D.prototype=Object.assign(Object.create(g.prototype),{constructor:D,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(k())([new(d())(S().inputOutput,"metadata",new(n().SFNode)),new(d())(S().inputOutput,"enabled",new(n().SFBool)(!0)),new(d())(S().outputOnly,"controlKey",new(n().SFBool)),new(d())(S().outputOnly,"shiftKey",new(n().SFBool)),new(d())(S().outputOnly,"altKey",new(n().SFBool)),new(d())(S().outputOnly,"actionKeyPress",new(n().SFInt32)),new(d())(S().outputOnly,"actionKeyRelease",new(n().SFInt32)),new(d())(S().outputOnly,"keyPress",new(n().SFString)),new(d())(S().outputOnly,"keyRelease",new(n().SFString)),new(d())(S().outputOnly,"isActive",new(n().SFBool))]),getTypeName:function(){return"KeySensor"},getComponentName:function(){return"KeyDeviceSensor"},getContainerField:function(){return"children"},keydown:function(e){switch(e.preventDefault(),this._isActive.getValue()||(this._isActive=!0),e.which){case 16:this._shiftKey=!0;break;case 17:this._controlKey=!0;break;case 18:this._altKey=!0;break;case 112:this._actionKeyPress=1;break;case 113:this._actionKeyPress=2;break;case 114:this._actionKeyPress=3;break;case 115:this._actionKeyPress=4;break;case 116:this._actionKeyPress=5;break;case 117:this._actionKeyPress=6;break;case 118:this._actionKeyPress=7;break;case 119:this._actionKeyPress=8;break;case 120:this._actionKeyPress=9;break;case 121:this._actionKeyPress=10;break;case 122:this._actionKeyPress=11;break;case 123:this._actionKeyPress=12;break;case 36:this._actionKeyPress=13;break;case 35:this._actionKeyPress=14;break;case 33:this._actionKeyPress=15;break;case 34:this._actionKeyPress=16;break;case 38:this._actionKeyPress=17;break;case 40:this._actionKeyPress=18;break;case 37:this._actionKeyPress=19;break;case 39:this._actionKeyPress=20;break;default:if(e.charCode||e.keyCode)switch(e.key){case"AltGraph":case"CapsLock":case"Insert":break;case"Backspace":this._keyPress=String.fromCharCode(8);break;case"Delete":this._keyPress=String.fromCharCode(127);break;case"Enter":this._keyPress="\n";break;case"Escape":this._keyPress=String.fromCharCode(27);break;case"Tab":this._keyPress="\t";break;default:1===e.key.length&&(this._keyPress=e.key)}}},keyup:function(e){switch(e.preventDefault(),e.which){case 16:this._shiftKey=!1;break;case 17:this._controlKey=!1;break;case 18:this._altKey=!1;break;case 112:this._actionKeyRelease=1;break;case 113:this._actionKeyRelease=2;break;case 114:this._actionKeyRelease=3;break;case 115:this._actionKeyRelease=4;break;case 116:this._actionKeyRelease=5;break;case 117:this._actionKeyRelease=6;break;case 118:this._actionKeyRelease=7;break;case 119:this._actionKeyRelease=8;break;case 120:this._actionKeyRelease=9;break;case 121:this._actionKeyRelease=10;break;case 122:this._actionKeyRelease=11;break;case 123:this._actionKeyRelease=12;break;case 36:this._actionKeyRelease=13;break;case 35:this._actionKeyRelease=14;break;case 33:this._actionKeyRelease=15;break;case 34:this._actionKeyRelease=16;break;case 38:this._actionKeyRelease=17;break;case 40:this._actionKeyRelease=18;break;case 37:this._actionKeyRelease=19;break;case 39:this._actionKeyRelease=20;break;default:if(e.charCode||e.keyCode)switch(e.key){case"AltGraph":case"CapsLock":case"Insert":break;case"Backspace":this._keyRelease=String.fromCharCode(8);break;case"Delete":this._keyRelease=String.fromCharCode(127);break;case"Enter":this._keyRelease="\n";break;case"Escape":this._keyRelease=String.fromCharCode(27);break;case"Tab":this._keyRelease="\t";break;default:1===e.key.length&&(this._keyRelease=e.key)}}this._isActive.getValue()&&(this._isActive=!1)},release:function(){this._shiftKey.getValue()&&(this._shiftKey=!1),this._controlKey.getValue()&&(this._controlKey=!1),this._altKey.getValue()&&(this._altKey=!1)}});const m=D;o().set("x_ite/Components/KeyDeviceSensor/KeySensor",m);const C=m;function T(e){g.call(this,e),this.addType(S().StringSensor)}T.prototype=Object.assign(Object.create(g.prototype),{constructor:T,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(k())([new(d())(S().inputOutput,"metadata",new(n().SFNode)),new(d())(S().inputOutput,"enabled",new(n().SFBool)(!0)),new(d())(S().inputOutput,"deletionAllowed",new(n().SFBool)(!0)),new(d())(S().outputOnly,"enteredText",new(n().SFString)),new(d())(S().outputOnly,"finalText",new(n().SFString)),new(d())(S().outputOnly,"isActive",new(n().SFBool))]),getTypeName:function(){return"StringSensor"},getComponentName:function(){return"KeyDeviceSensor"},getContainerField:function(){return"children"},keydown:function(e){switch(e.preventDefault(),e.key){case"Backspace":this._isActive.getValue()&&this._deletionAllowed.getValue()&&this._enteredText.length&&(this._enteredText=this._enteredText.getValue().substr(0,this._enteredText.length-1));break;case"Enter":this._finalText=this._enteredText,this._enteredText.set(""),this._isActive.getValue()&&(this._isActive=!1);break;case"Escape":this._enteredText.set(""),this._isActive.getValue()&&(this._isActive=!1);break;case"Tab":break;default:(e.charCode||e.keyCode)&&1===e.key.length&&(this._isActive.getValue()||(this._isActive=!0,this._enteredText=""),this._enteredText=this._enteredText.getValue()+e.key)}}});const P=T;o().set("x_ite/Components/KeyDeviceSensor/StringSensor",P);const x=P;s().addComponent({name:"KeyDeviceSensor",types:{KeySensor:C,StringSensor:x},abstractTypes:{X3DKeyDeviceSensorNode:g},browserContext:_});const R=void 0;o().set("assets/components/KeyDeviceSensor",R)})();
1
+ /* X_ITE v8.5.3 */(()=>{"use strict";var e={n:t=>{var s=t&&t.__esModule?()=>t.default:()=>t;return e.d(s,{a:s}),s},d:(t,s)=>{for(var i in s)e.o(s,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:s[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Components");var s=e.n(t);const i=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Fields");var n=e.n(i);const a=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Namespace");var o=e.n(a);const r=Symbol(),c=Symbol(),h=Symbol();function l(){this[r]=new Set}l.prototype={initialize:function(){const e=this.getElement();e.on("keydown.X3DKeyDeviceSensorContext",this[c].bind(this)),e.on("keyup.X3DKeyDeviceSensorContext",this[h].bind(this))},addKeyDeviceSensorNode:function(e){this[r].add(e)},removeKeyDeviceSensorNode:function(e){this[r].delete(e)},getKeyDeviceSensorNodes:function(){return this[r]},[c]:function(e){for(const t of this[r])t.keydown(e)},[h]:function(e){for(const t of this[r])t.keyup(e)}};const y=l;o().set("x_ite/Browser/KeyDeviceSensor/X3DKeyDeviceSensorContext",y);const _=y,u=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Base/X3DFieldDefinition");var d=e.n(u);const b=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Base/FieldDefinitionArray");var k=e.n(b);const K=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Components/Core/X3DSensorNode");var p=e.n(K);const f=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Base/X3DConstants");var S=e.n(f);function w(e){p().call(this,e),this.addType(S().X3DKeyDeviceSensorNode)}w.prototype=Object.assign(Object.create(p().prototype),{constructor:w,initialize:function(){p().prototype.initialize.call(this),this.isLive().addInterest("set_live__",this),this.set_live__()},set_live__:function(){this.isLive().getValue()?(this._enabled.addInterest("set_enabled__",this),this._enabled.getValue()&&this.enable()):(this._enabled.removeInterest("set_enabled__",this),this.disable())},set_enabled__:function(){this._enabled.getValue()?this.enable():this.disable()},enable:function(){this.getBrowser().addKeyDeviceSensorNode(this)},disable:function(){this.getBrowser().removeKeyDeviceSensorNode(this),this.release()},keydown:function(){},keyup:function(){},release:function(){}});const v=w;o().set("x_ite/Components/KeyDeviceSensor/X3DKeyDeviceSensorNode",v);const g=v;function D(e){g.call(this,e),this.addType(S().KeySensor)}D.prototype=Object.assign(Object.create(g.prototype),{constructor:D,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(k())([new(d())(S().inputOutput,"metadata",new(n().SFNode)),new(d())(S().inputOutput,"enabled",new(n().SFBool)(!0)),new(d())(S().outputOnly,"controlKey",new(n().SFBool)),new(d())(S().outputOnly,"shiftKey",new(n().SFBool)),new(d())(S().outputOnly,"altKey",new(n().SFBool)),new(d())(S().outputOnly,"actionKeyPress",new(n().SFInt32)),new(d())(S().outputOnly,"actionKeyRelease",new(n().SFInt32)),new(d())(S().outputOnly,"keyPress",new(n().SFString)),new(d())(S().outputOnly,"keyRelease",new(n().SFString)),new(d())(S().outputOnly,"isActive",new(n().SFBool))]),getTypeName:function(){return"KeySensor"},getComponentName:function(){return"KeyDeviceSensor"},getContainerField:function(){return"children"},keydown:function(e){switch(e.preventDefault(),this._isActive.getValue()||(this._isActive=!0),e.which){case 16:this._shiftKey=!0;break;case 17:this._controlKey=!0;break;case 18:this._altKey=!0;break;case 112:this._actionKeyPress=1;break;case 113:this._actionKeyPress=2;break;case 114:this._actionKeyPress=3;break;case 115:this._actionKeyPress=4;break;case 116:this._actionKeyPress=5;break;case 117:this._actionKeyPress=6;break;case 118:this._actionKeyPress=7;break;case 119:this._actionKeyPress=8;break;case 120:this._actionKeyPress=9;break;case 121:this._actionKeyPress=10;break;case 122:this._actionKeyPress=11;break;case 123:this._actionKeyPress=12;break;case 36:this._actionKeyPress=13;break;case 35:this._actionKeyPress=14;break;case 33:this._actionKeyPress=15;break;case 34:this._actionKeyPress=16;break;case 38:this._actionKeyPress=17;break;case 40:this._actionKeyPress=18;break;case 37:this._actionKeyPress=19;break;case 39:this._actionKeyPress=20;break;default:if(e.charCode||e.keyCode)switch(e.key){case"AltGraph":case"CapsLock":case"Insert":break;case"Backspace":this._keyPress=String.fromCharCode(8);break;case"Delete":this._keyPress=String.fromCharCode(127);break;case"Enter":this._keyPress="\n";break;case"Escape":this._keyPress=String.fromCharCode(27);break;case"Tab":this._keyPress="\t";break;default:1===e.key.length&&(this._keyPress=e.key)}}},keyup:function(e){switch(e.preventDefault(),e.which){case 16:this._shiftKey=!1;break;case 17:this._controlKey=!1;break;case 18:this._altKey=!1;break;case 112:this._actionKeyRelease=1;break;case 113:this._actionKeyRelease=2;break;case 114:this._actionKeyRelease=3;break;case 115:this._actionKeyRelease=4;break;case 116:this._actionKeyRelease=5;break;case 117:this._actionKeyRelease=6;break;case 118:this._actionKeyRelease=7;break;case 119:this._actionKeyRelease=8;break;case 120:this._actionKeyRelease=9;break;case 121:this._actionKeyRelease=10;break;case 122:this._actionKeyRelease=11;break;case 123:this._actionKeyRelease=12;break;case 36:this._actionKeyRelease=13;break;case 35:this._actionKeyRelease=14;break;case 33:this._actionKeyRelease=15;break;case 34:this._actionKeyRelease=16;break;case 38:this._actionKeyRelease=17;break;case 40:this._actionKeyRelease=18;break;case 37:this._actionKeyRelease=19;break;case 39:this._actionKeyRelease=20;break;default:if(e.charCode||e.keyCode)switch(e.key){case"AltGraph":case"CapsLock":case"Insert":break;case"Backspace":this._keyRelease=String.fromCharCode(8);break;case"Delete":this._keyRelease=String.fromCharCode(127);break;case"Enter":this._keyRelease="\n";break;case"Escape":this._keyRelease=String.fromCharCode(27);break;case"Tab":this._keyRelease="\t";break;default:1===e.key.length&&(this._keyRelease=e.key)}}this._isActive.getValue()&&(this._isActive=!1)},release:function(){this._shiftKey.getValue()&&(this._shiftKey=!1),this._controlKey.getValue()&&(this._controlKey=!1),this._altKey.getValue()&&(this._altKey=!1)}});const m=D;o().set("x_ite/Components/KeyDeviceSensor/KeySensor",m);const C=m;function T(e){g.call(this,e),this.addType(S().StringSensor)}T.prototype=Object.assign(Object.create(g.prototype),{constructor:T,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(k())([new(d())(S().inputOutput,"metadata",new(n().SFNode)),new(d())(S().inputOutput,"enabled",new(n().SFBool)(!0)),new(d())(S().inputOutput,"deletionAllowed",new(n().SFBool)(!0)),new(d())(S().outputOnly,"enteredText",new(n().SFString)),new(d())(S().outputOnly,"finalText",new(n().SFString)),new(d())(S().outputOnly,"isActive",new(n().SFBool))]),getTypeName:function(){return"StringSensor"},getComponentName:function(){return"KeyDeviceSensor"},getContainerField:function(){return"children"},keydown:function(e){switch(e.preventDefault(),e.key){case"Backspace":this._isActive.getValue()&&this._deletionAllowed.getValue()&&this._enteredText.length&&(this._enteredText=this._enteredText.getValue().substr(0,this._enteredText.length-1));break;case"Enter":this._finalText=this._enteredText,this._enteredText.set(""),this._isActive.getValue()&&(this._isActive=!1);break;case"Escape":this._enteredText.set(""),this._isActive.getValue()&&(this._isActive=!1);break;case"Tab":break;default:(e.charCode||e.keyCode)&&1===e.key.length&&(this._isActive.getValue()||(this._isActive=!0,this._enteredText=""),this._enteredText=this._enteredText.getValue()+e.key)}}});const P=T;o().set("x_ite/Components/KeyDeviceSensor/StringSensor",P);const x=P;s().addComponent({name:"KeyDeviceSensor",types:{KeySensor:C,StringSensor:x},abstractTypes:{X3DKeyDeviceSensorNode:g},browserContext:_});const R=void 0;o().set("assets/components/KeyDeviceSensor",R)})();
@@ -1,11 +1,11 @@
1
- /* X_ITE v8.4.3 */(() => { // webpackBootstrap
1
+ /* X_ITE v8.5.3 */(() => { // webpackBootstrap
2
2
  /******/ "use strict";
3
3
  /******/ var __webpack_modules__ = ({
4
4
 
5
5
  /***/ 355:
6
6
  /***/ ((module) => {
7
7
 
8
- module.exports = window [Symbol .for ("X_ITE.X3D-8.4.3")] .require ("lib/jquery");
8
+ module.exports = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("lib/jquery");
9
9
 
10
10
  /***/ })
11
11
 
@@ -73,22 +73,22 @@ var __webpack_exports__ = {};
73
73
  // UNUSED EXPORTS: default
74
74
 
75
75
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components\")"
76
- const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.4.3")] .require ("x_ite/Components");
76
+ const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Components");
77
77
  var Components_default = /*#__PURE__*/__webpack_require__.n(Components_namespaceObject);
78
78
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Texturing/TextureProperties\")"
79
- const TextureProperties_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.4.3")] .require ("x_ite/Components/Texturing/TextureProperties");
79
+ const TextureProperties_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Components/Texturing/TextureProperties");
80
80
  var TextureProperties_default = /*#__PURE__*/__webpack_require__.n(TextureProperties_namespaceObject);
81
81
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector3\")"
82
- const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.4.3")] .require ("standard/Math/Numbers/Vector3");
82
+ const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("standard/Math/Numbers/Vector3");
83
83
  var Vector3_default = /*#__PURE__*/__webpack_require__.n(Vector3_namespaceObject);
84
84
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Matrix4\")"
85
- const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.4.3")] .require ("standard/Math/Numbers/Matrix4");
85
+ const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("standard/Math/Numbers/Matrix4");
86
86
  var Matrix4_default = /*#__PURE__*/__webpack_require__.n(Matrix4_namespaceObject);
87
87
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Geometry/ViewVolume\")"
88
- const ViewVolume_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.4.3")] .require ("standard/Math/Geometry/ViewVolume");
88
+ const ViewVolume_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("standard/Math/Geometry/ViewVolume");
89
89
  var ViewVolume_default = /*#__PURE__*/__webpack_require__.n(ViewVolume_namespaceObject);
90
90
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
91
- const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.4.3")] .require ("x_ite/Namespace");
91
+ const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Namespace");
92
92
  var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
93
93
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Layout/X3DLayoutContext.js
94
94
  /*******************************************************************************
@@ -227,19 +227,19 @@ const __default__ = X3DLayoutContext;
227
227
  Namespace_default().set ("x_ite/Browser/Layout/X3DLayoutContext", __default__);
228
228
  /* harmony default export */ const Layout_X3DLayoutContext = (__default__);
229
229
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
230
- const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.4.3")] .require ("x_ite/Fields");
230
+ const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Fields");
231
231
  var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
232
232
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
233
- const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.4.3")] .require ("x_ite/Base/X3DFieldDefinition");
233
+ const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Base/X3DFieldDefinition");
234
234
  var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
235
235
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
236
- const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.4.3")] .require ("x_ite/Base/FieldDefinitionArray");
236
+ const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Base/FieldDefinitionArray");
237
237
  var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
238
238
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DChildNode\")"
239
- const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.4.3")] .require ("x_ite/Components/Core/X3DChildNode");
239
+ const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Components/Core/X3DChildNode");
240
240
  var X3DChildNode_default = /*#__PURE__*/__webpack_require__.n(X3DChildNode_namespaceObject);
241
241
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
242
- const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.4.3")] .require ("x_ite/Base/X3DConstants");
242
+ const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Base/X3DConstants");
243
243
  var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
244
244
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Layout/X3DLayoutNode.js
245
245
  /*******************************************************************************
@@ -310,13 +310,13 @@ const X3DLayoutNode_default_ = X3DLayoutNode;
310
310
  Namespace_default().set ("x_ite/Components/Layout/X3DLayoutNode", X3DLayoutNode_default_);
311
311
  /* harmony default export */ const Layout_X3DLayoutNode = (X3DLayoutNode_default_);
312
312
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DCast\")"
313
- const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.4.3")] .require ("x_ite/Base/X3DCast");
313
+ const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Base/X3DCast");
314
314
  var X3DCast_default = /*#__PURE__*/__webpack_require__.n(X3DCast_namespaceObject);
315
315
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector2\")"
316
- const Vector2_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.4.3")] .require ("standard/Math/Numbers/Vector2");
316
+ const Vector2_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("standard/Math/Numbers/Vector2");
317
317
  var Vector2_default = /*#__PURE__*/__webpack_require__.n(Vector2_namespaceObject);
318
318
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Rotation4\")"
319
- const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.4.3")] .require ("standard/Math/Numbers/Rotation4");
319
+ const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("standard/Math/Numbers/Rotation4");
320
320
  var Rotation4_default = /*#__PURE__*/__webpack_require__.n(Rotation4_namespaceObject);
321
321
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Layout/Layout.js
322
322
  /*******************************************************************************
@@ -767,6 +767,8 @@ Layout .prototype = Object .assign (Object .create (Layout_X3DLayoutNode.prototy
767
767
  // Calculate rectangleSize
768
768
 
769
769
  var
770
+ browser = this .getBrowser (),
771
+ contentScale = browser .getRenderingProperty ("ContentScale"),
770
772
  matrix = this .matrix,
771
773
  viewpoint = renderObject .getViewpoint (),
772
774
  nearValue = renderObject .getNavigationInfo () .getNearValue (), // in meters
@@ -778,8 +780,8 @@ Layout .prototype = Object .assign (Object .create (Layout_X3DLayoutNode.prototy
778
780
  rectangleSize = this .rectangleSize,
779
781
  rectangleCenter = this .rectangleCenter;
780
782
 
781
- viewportPixel .set (viewport [2], viewport [3]); // in pixel
782
- pixelSize .assign (viewportMeter) .divVec (viewportPixel); // size of one pixel in meter
783
+ viewportPixel .set (viewport [2], viewport [3]) .divide (contentScale); // in pixel
784
+ pixelSize .assign (viewportMeter) .divVec (viewportPixel); // size of one pixel in meter
783
785
 
784
786
  switch (this .getSizeUnitX ())
785
787
  {
@@ -947,10 +949,10 @@ const Layout_default_ = Layout;
947
949
  Namespace_default().set ("x_ite/Components/Layout/Layout", Layout_default_);
948
950
  /* harmony default export */ const Layout_Layout = (Layout_default_);
949
951
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DGroupingNode\")"
950
- const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.4.3")] .require ("x_ite/Components/Grouping/X3DGroupingNode");
952
+ const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Components/Grouping/X3DGroupingNode");
951
953
  var X3DGroupingNode_default = /*#__PURE__*/__webpack_require__.n(X3DGroupingNode_namespaceObject);
952
954
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Rendering/TraverseType\")"
953
- const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.4.3")] .require ("x_ite/Rendering/TraverseType");
955
+ const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Rendering/TraverseType");
954
956
  var TraverseType_default = /*#__PURE__*/__webpack_require__.n(TraverseType_namespaceObject);
955
957
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Layout/LayoutGroup.js
956
958
  /*******************************************************************************
@@ -1127,10 +1129,10 @@ const LayoutGroup_default_ = LayoutGroup;
1127
1129
  Namespace_default().set ("x_ite/Components/Layout/LayoutGroup", LayoutGroup_default_);
1128
1130
  /* harmony default export */ const Layout_LayoutGroup = (LayoutGroup_default_);
1129
1131
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Layering/X3DLayerNode\")"
1130
- const X3DLayerNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.4.3")] .require ("x_ite/Components/Layering/X3DLayerNode");
1132
+ const X3DLayerNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Components/Layering/X3DLayerNode");
1131
1133
  var X3DLayerNode_default = /*#__PURE__*/__webpack_require__.n(X3DLayerNode_namespaceObject);
1132
1134
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Navigation/OrthoViewpoint\")"
1133
- const OrthoViewpoint_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.4.3")] .require ("x_ite/Components/Navigation/OrthoViewpoint");
1135
+ const OrthoViewpoint_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Components/Navigation/OrthoViewpoint");
1134
1136
  var OrthoViewpoint_default = /*#__PURE__*/__webpack_require__.n(OrthoViewpoint_namespaceObject);
1135
1137
  ;// CONCATENATED MODULE: ./src/x_ite/Components/Layout/LayoutLayer.js
1136
1138
  /*******************************************************************************
@@ -1247,25 +1249,25 @@ const LayoutLayer_default_ = LayoutLayer;
1247
1249
  Namespace_default().set ("x_ite/Components/Layout/LayoutLayer", LayoutLayer_default_);
1248
1250
  /* harmony default export */ const Layout_LayoutLayer = (LayoutLayer_default_);
1249
1251
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Text/X3DFontStyleNode\")"
1250
- const X3DFontStyleNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.4.3")] .require ("x_ite/Components/Text/X3DFontStyleNode");
1252
+ const X3DFontStyleNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Components/Text/X3DFontStyleNode");
1251
1253
  var X3DFontStyleNode_default = /*#__PURE__*/__webpack_require__.n(X3DFontStyleNode_namespaceObject);
1252
1254
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Browser/Text/X3DTextGeometry\")"
1253
- const X3DTextGeometry_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.4.3")] .require ("x_ite/Browser/Text/X3DTextGeometry");
1255
+ const X3DTextGeometry_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Browser/Text/X3DTextGeometry");
1254
1256
  var X3DTextGeometry_default = /*#__PURE__*/__webpack_require__.n(X3DTextGeometry_namespaceObject);
1255
1257
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Browser/Text/TextAlignment\")"
1256
- const TextAlignment_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.4.3")] .require ("x_ite/Browser/Text/TextAlignment");
1258
+ const TextAlignment_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Browser/Text/TextAlignment");
1257
1259
  var TextAlignment_default = /*#__PURE__*/__webpack_require__.n(TextAlignment_namespaceObject);
1258
1260
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Texturing/PixelTexture\")"
1259
- const PixelTexture_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.4.3")] .require ("x_ite/Components/Texturing/PixelTexture");
1261
+ const PixelTexture_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Components/Texturing/PixelTexture");
1260
1262
  var PixelTexture_default = /*#__PURE__*/__webpack_require__.n(PixelTexture_namespaceObject);
1261
1263
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Rendering/X3DGeometryNode\")"
1262
- const X3DGeometryNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.4.3")] .require ("x_ite/Components/Rendering/X3DGeometryNode");
1264
+ const X3DGeometryNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("x_ite/Components/Rendering/X3DGeometryNode");
1263
1265
  var X3DGeometryNode_default = /*#__PURE__*/__webpack_require__.n(X3DGeometryNode_namespaceObject);
1264
1266
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Geometry/Box3\")"
1265
- const Box3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.4.3")] .require ("standard/Math/Geometry/Box3");
1267
+ const Box3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("standard/Math/Geometry/Box3");
1266
1268
  var Box3_default = /*#__PURE__*/__webpack_require__.n(Box3_namespaceObject);
1267
1269
  ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Algorithm\")"
1268
- const Algorithm_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.4.3")] .require ("standard/Math/Algorithm");
1270
+ const Algorithm_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.5.3")] .require ("standard/Math/Algorithm");
1269
1271
  var Algorithm_default = /*#__PURE__*/__webpack_require__.n(Algorithm_namespaceObject);
1270
1272
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Layout/ScreenText.js
1271
1273
  /* provided dependency */ var $ = __webpack_require__(355);
@@ -1770,6 +1772,12 @@ ScreenFontStyle .prototype = Object .assign (Object .create ((X3DFontStyleNode_d
1770
1772
  {
1771
1773
  return "fontStyle";
1772
1774
  },
1775
+ initialize: function ()
1776
+ {
1777
+ X3DFontStyleNode_default().prototype.initialize.call (this);
1778
+
1779
+ this .getBrowser () .getRenderingProperties () ._ContentScale .addInterest ("addNodeEvent", this);
1780
+ },
1773
1781
  getTextGeometry: function (text)
1774
1782
  {
1775
1783
  return new Layout_ScreenText (text, this);
@@ -1 +1 @@
1
- /* X_ITE v8.4.3 */(()=>{"use strict";var t={355:t=>{t.exports=window[Symbol.for("X_ITE.X3D-8.4.3")].require("lib/jquery")}},e={};function i(n){var s=e[n];if(void 0!==s)return s.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,i),o.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{const t=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Components");var e=i.n(t);const n=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Components/Texturing/TextureProperties");var s=i.n(n);const o=window[Symbol.for("X_ITE.X3D-8.4.3")].require("standard/Math/Numbers/Vector3");var r=i.n(o);const a=window[Symbol.for("X_ITE.X3D-8.4.3")].require("standard/Math/Numbers/Matrix4");var u=i.n(a);const h=window[Symbol.for("X_ITE.X3D-8.4.3")].require("standard/Math/Geometry/ViewVolume");var l=i.n(h);const c=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Namespace");var d=i.n(c);const f=Symbol();function p(){}p.prototype={getScreenTextureProperties:function(){return this[f]=new(s())(this.getPrivateScene()),this[f]._boundaryModeS="CLAMP_TO_EDGE",this[f]._boundaryModeT="CLAMP_TO_EDGE",this[f]._boundaryModeR="CLAMP_TO_EDGE",this[f]._minificationFilter="NEAREST_PIXEL",this[f]._magnificationFilter="NEAREST_PIXEL",this[f]._generateMipMaps=!1,this[f]._textureCompression="DEFAULT",this[f].setup(),this.getScreenTextureProperties=function(){return this[f]},Object.defineProperty(this,"getScreenTextureProperties",{enumerable:!1}),this[f]},getScreenScaleMatrix:function(){const t=new(r())(0,0,0),e=new(r())(0,0,0),i=new(u());return function(n,s){const o=n.getModelViewMatrix().get(),a=n.getProjectionMatrix().get(),u=n.getViewVolume().getViewport();n.getViewpoint().getScreenScale(o.origin,u,t);const h=o.xAxis.normalize().multiply(t.x),c=o.yAxis.normalize().multiply(t.y),d=o.zAxis.normalize().multiply(t.x);i.set(h.x,h.y,h.z,0,c.x,c.y,c.z,0,d.x,d.y,d.z,0,o[12],o[13],o[14],1),l().projectPoint(r().Zero,i,a,u,e),e.x=Math.round(e.x),e.y=Math.round(e.y),l().unProjectPoint(e.x,e.y,e.z,i,a,u,e),e.z=0,i.translate(e),s.assign(o).inverse().multLeft(i)}}()};const y=p;d().set("x_ite/Browser/Layout/X3DLayoutContext",y);const g=y,w=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Fields");var x=i.n(w);const _=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Base/X3DFieldDefinition");var m=i.n(_);const X=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Base/FieldDefinitionArray");var S=i.n(X);const M=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Components/Core/X3DChildNode");var T=i.n(M);const b=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Base/X3DConstants");var z=i.n(b);function O(t){T().call(this,t),this.addType(z().X3DLayoutNode)}O.prototype=Object.assign(Object.create(T().prototype),{constructor:O});const N=O;d().set("x_ite/Components/Layout/X3DLayoutNode",N);const v=N,F=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Base/X3DCast");var E=i.n(F);const C=window[Symbol.for("X_ITE.X3D-8.4.3")].require("standard/Math/Numbers/Vector2");var I=i.n(C);const L=window[Symbol.for("X_ITE.X3D-8.4.3")].require("standard/Math/Numbers/Rotation4");var D=i.n(L),U=0,B=U++,Y=U++,P=U++,R=U++,G=U++,V=U++,A=U++,q=U++,j=U++,k=U++;function W(t){v.call(this,t),this.addType(z().Layout),this.alignX=Y,this.alignY=Y,this.offsetUnitX=V,this.offsetUnitY=V,this.offsetX=0,this.offsetY=0,this.sizeUnitX=V,this.sizeUnitY=V,this.sizeX=1,this.sizeY=1,this.scaleModeX=j,this.scaleModeY=j,this.parent=null,this.rectangleCenter=new(I())(0,0),this.rectangleSize=new(I())(0,0),this.matrix=new(u())}W.prototype=Object.assign(Object.create(v.prototype),{constructor:W,viewportPixel:new(I())(0,0),pixelSize:new(I())(0,0),translation:new(r())(0,0,0),offset:new(r())(0,0,0),scale:new(r())(1,1,1),currentTranslation:new(r())(0,0,0),currentRotation:new(D())(0,0,1,0),currentScale:new(r())(0,0,0),modelViewMatrix:new(u()),[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(S())([new(m())(z().inputOutput,"metadata",new(x().SFNode)),new(m())(z().inputOutput,"align",new(x().MFString)("CENTER","CENTER")),new(m())(z().inputOutput,"offsetUnits",new(x().MFString)("WORLD","WORLD")),new(m())(z().inputOutput,"offset",new(x().MFFloat)(0,0)),new(m())(z().inputOutput,"sizeUnits",new(x().MFString)("WORLD","WORLD")),new(m())(z().inputOutput,"size",new(x().MFFloat)(1,1)),new(m())(z().inputOutput,"scaleMode",new(x().MFString)("NONE","NONE"))]),getTypeName:function(){return"Layout"},getComponentName:function(){return"Layout"},getContainerField:function(){return"layout"},initialize:function(){v.prototype.initialize.call(this),this._align.addInterest("set_align__",this),this._offsetUnits.addInterest("set_offsetUnits__",this),this._offset.addInterest("set_offset__",this),this._sizeUnits.addInterest("set_sizeUnits__",this),this._size.addInterest("set_size__",this),this._scaleMode.addInterest("set_scaleMode__",this),this.set_align__(),this.set_offsetUnits__(),this.set_offset__(),this.set_sizeUnits__(),this.set_size__(),this.set_scaleMode__()},set_align__:function(){this._align.length>0?"LEFT"===this._align[0]?this.alignX=B:"RIGHT"===this._align[0]?this.alignX=P:this.alignX=Y:this.alignX=Y,this._align.length>1?"BOTTOM"===this._align[1]?this.alignY=R:"TOP"===this._align[1]?this.alignY=G:this.alignY=Y:this.alignY=Y},set_offsetUnits__:function(){this._offsetUnits.length>0?("FRACTION"===this._offsetUnits[0]?this.offsetUnitX=A:"PIXEL"===this._offsetUnits[0]?this.offsetUnitX=q:this.offsetUnitX=V,this._offsetUnits.length>1?"FRACTION"===this._offsetUnits[1]?this.offsetUnitY=A:"PIXEL"===this._offsetUnits[1]?this.offsetUnitY=q:this.offsetUnitY=V:this.offsetUnitY=this.offsetUnitX):(this.offsetUnitX=V,this.offsetUnitY=V)},set_offset__:function(){this._offset.length>0?(this.offsetX=this._offset[0],this._offset.length>1?this.offsetY=this._offset[1]:this.offsetY=offsetX):(this.offsetX=0,this.offsetY=0)},set_sizeUnits__:function(){this._sizeUnits.length>0?("FRACTION"===this._sizeUnits[0]?this.sizeUnitX=A:"PIXEL"===this._sizeUnits[0]?this.sizeUnitX=q:this.sizeUnitX=V,this._sizeUnits.length>1?"FRACTION"===this._sizeUnits[1]?this.sizeUnitY=A:"PIXEL"===this._sizeUnits[1]?this.sizeUnitY=q:this.sizeUnitY=V:this.sizeUnitY=this.sizeUnitX):(this.sizeUnitX=V,this.sizeUnitY=V)},set_size__:function(){this._size.length>0?(this.sizeX=this._size[0],this._size.length>1?this.sizeY=this._size[1]:this.sizeY=this.sizeX):(this.sizeX=0,this.sizeY=0)},set_scaleMode__:function(){this._scaleMode.length>0?("FRACTION"===this._scaleMode[0]?this.scaleModeX=A:"PIXEL"===this._scaleMode[0]?this.scaleModeX=q:"STRETCH"===this._scaleMode[0]?this.scaleModeX=k:this.scaleModeX=j,this._scaleMode.length>1?"FRACTION"===this._scaleMode[1]?this.scaleModeY=A:"PIXEL"===this._scaleMode[1]?this.scaleModeY=q:"STRETCH"===this._scaleMode[1]?this.scaleModeY=k:this.scaleModeY=j:this.scaleModeY=this.scaleModeX):(this.scaleModeX=j,this.scaleModeY=j)},getRectangleCenter:function(){return this.rectangleCenter},getRectangleSize:function(){return this.rectangleSize},getAlignX:function(){return this.alignX},getAlignY:function(){return this.alignY},getOffsetUnitX:function(){return this.offsetUnitX===V?this.parent?this.parent.getOffsetUnitX():A:this.offsetUnitX},getOffsetUnitY:function(){return this.offsetUnitY===V?this.parent?this.parent.getOffsetUnitY():A:this.offsetUnitY},getOffsetX:function(){return this.offsetX},getOffsetY:function(){return this.offsetY},getSizeUnitX:function(){return this.sizeUnitX===V?this.parent?this.parent.getSizeUnitX():A:this.sizeUnitX},getSizeUnitY:function(){return this.sizeUnitY===V?this.parent?this.parent.getSizeUnitY():A:this.sizeUnitY},getSizeX:function(){return this.sizeX},getSizeY:function(){return this.sizeY},getScaleModeX:function(){return this.parent?this.scaleModeX:this.scaleModeX===j?A:this.scaleModeX},getScaleModeY:function(){return this.parent?this.scaleModeY:this.scaleModeY===j?A:this.scaleModeY},transform:function(t,e){var i=this.parent=e.getParentLayout(),n=this.matrix,s=e.getViewpoint(),o=e.getNavigationInfo().getNearValue(),r=e.getViewVolume().getScissor(),a=s.getViewportSize(r,o),u=this.viewportPixel,h=this.pixelSize,l=i?i.getRectangleSize():a,c=this.rectangleSize,d=this.rectangleCenter;switch(u.set(r[2],r[3]),h.assign(a).divVec(u),this.getSizeUnitX()){case A:c.x=this.sizeX*l.x;break;case q:c.x=this.sizeX*h.x}switch(this.getSizeUnitY()){case A:c.y=this.sizeY*l.y;break;case q:c.y=this.sizeY*h.y}var f=this.translation.set(0,0,0);switch(this.getAlignX()){case B:f.x=-(l.x-c.x)/2;break;case Y:this.getSizeUnitX()===q&&1&u.x&&(f.x=-h.x/2);break;case P:f.x=(l.x-c.x)/2}switch(this.getAlignY()){case R:f.y=-(l.y-c.y)/2;break;case Y:this.getSizeUnitX===q&&1&u.y&&(f.y=-h.y/2);break;case G:f.y=(l.y-c.y)/2}var p=this.offset.set(0,0,0);switch(this.getOffsetUnitX()){case A:p.x=this.offsetX*l.x;break;case q:p.x=this.offsetX*a.x/u.x}switch(this.getOffsetUnitY()){case A:p.y=this.offsetY*l.y;break;case q:p.y=this.offsetY*a.y/u.y}var y=this.scale.set(1,1,1),g=this.currentTranslation,w=this.currentRotation,x=this.currentScale;switch(e.getModelViewMatrix().get().get(g,w,x),this.getScaleModeX()){case j:y.x=x.x;break;case A:y.x=c.x;break;case k:break;case q:y.x=a.x/u.x}switch(this.getScaleModeY()){case j:y.y=x.y;break;case A:y.y=c.y;break;case k:break;case q:y.y=a.y/u.y}return this.getScaleModeX()===k?this.getScaleModeY()===k?c.x>c.y?(y.x=c.x,y.y=y.x):(y.y=c.y,y.x=y.y):y.x=y.y:this.getScaleModeY()===k&&(y.y=y.x),d.assign(f).add(p),n.set(g,w),n.translate(f.add(p)),n.scale(y),n}});const H=W;d().set("x_ite/Components/Layout/Layout",H);const K=H,Z=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Components/Grouping/X3DGroupingNode");var Q=i.n(Z);const J=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Rendering/TraverseType");var $=i.n(J);function tt(t){Q().call(this,t),this.addType(z().LayoutGroup),this.viewportNode=null,this.layoutNode=null,this.modelViewMatrix=new(u()),this.screenMatrix=new(u())}tt.prototype=Object.assign(Object.create(Q().prototype),{constructor:tt,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(S())([new(m())(z().inputOutput,"metadata",new(x().SFNode)),new(m())(z().inputOutput,"layout",new(x().SFNode)),new(m())(z().inputOutput,"viewport",new(x().SFNode)),new(m())(z().inputOutput,"visible",new(x().SFBool)(!0)),new(m())(z().inputOutput,"bboxDisplay",new(x().SFBool)),new(m())(z().initializeOnly,"bboxSize",new(x().SFVec3f)(-1,-1,-1)),new(m())(z().initializeOnly,"bboxCenter",new(x().SFVec3f)),new(m())(z().inputOnly,"addChildren",new(x().MFNode)),new(m())(z().inputOnly,"removeChildren",new(x().MFNode)),new(m())(z().inputOutput,"children",new(x().MFNode))]),getTypeName:function(){return"LayoutGroup"},getComponentName:function(){return"Layout"},getContainerField:function(){return"children"},initialize:function(){Q().prototype.initialize.call(this),this._viewport.addInterest("set_viewport__",this),this._layout.addInterest("set_layout__",this),this.set_viewport__(),this.set_layout__()},set_viewport__:function(){this.viewportNode=E()(z().X3DViewportNode,this._viewport)},set_layout__:function(){this.layoutNode=E()(z().X3DLayoutNode,this._layout)},getBBox:function(t,e){return Q().prototype.getBBox.call(this,t,e).multRight(this.getMatrix())},getMatrix:function(){return this.layoutNode?this.matrix.assign(this.modelViewMatrix).inverse().multLeft(this.screenMatrix):this.matrix.identity(),this.matrix},traverse:function(t,e){if(t!==$().COLLISION){if(this.viewportNode&&this.viewportNode.push(),this.layoutNode){var i=e.getModelViewMatrix();this.modelViewMatrix.assign(i.get()),this.screenMatrix.assign(this.layoutNode.transform(t,e)),i.pushMatrix(this.screenMatrix),e.getLayouts().push(this.layoutNode),Q().prototype.traverse.call(this,t,e),e.getLayouts().pop(),i.pop()}else Q().prototype.traverse.call(this,t,e);this.viewportNode&&this.viewportNode.pop()}}});const et=tt;d().set("x_ite/Components/Layout/LayoutGroup",et);const it=et,nt=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Components/Layering/X3DLayerNode");var st=i.n(nt);const ot=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Components/Navigation/OrthoViewpoint");var rt=i.n(ot);function at(t){st().call(this,t,new(rt())(t),new it(t)),this.addType(z().LayoutLayer)}at.prototype=Object.assign(Object.create(st().prototype),{constructor:at,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(S())([new(m())(z().inputOutput,"metadata",new(x().SFNode)),new(m())(z().inputOutput,"pickable",new(x().SFBool)(!0)),new(m())(z().inputOutput,"objectType",new(x().MFString)("ALL")),new(m())(z().inputOutput,"visible",new(x().SFBool)(!0)),new(m())(z().inputOutput,"layout",new(x().SFNode)),new(m())(z().inputOutput,"viewport",new(x().SFNode)),new(m())(z().inputOnly,"addChildren",new(x().MFNode)),new(m())(z().inputOnly,"removeChildren",new(x().MFNode)),new(m())(z().inputOutput,"children",new(x().MFNode))]),getTypeName:function(){return"LayoutLayer"},getComponentName:function(){return"Layout"},getContainerField:function(){return"layers"},initialize:function(){st().prototype.initialize.call(this),this._layout.addFieldInterest(this.getGroup()._layout),this._addChildren.addFieldInterest(this.getGroup()._addChildren),this._removeChildren.addFieldInterest(this.getGroup()._removeChildren),this._children.addFieldInterest(this.getGroup()._children),this.getGroup()._layout=this._layout,this.getGroup()._children=this._children,this.getGroup().setPrivate(!0),this.getGroup().setup()}});const ut=at;d().set("x_ite/Components/Layout/LayoutLayer",ut);const ht=ut,lt=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Components/Text/X3DFontStyleNode");var ct=i.n(lt);const dt=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Browser/Text/X3DTextGeometry");var ft=i.n(dt);const pt=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Browser/Text/TextAlignment");var yt=i.n(pt);const gt=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Components/Texturing/PixelTexture");var wt=i.n(gt);const xt=window[Symbol.for("X_ITE.X3D-8.4.3")].require("x_ite/Components/Rendering/X3DGeometryNode");var _t=i.n(xt);const mt=window[Symbol.for("X_ITE.X3D-8.4.3")].require("standard/Math/Geometry/Box3");var Xt=i.n(mt);const St=window[Symbol.for("X_ITE.X3D-8.4.3")].require("standard/Math/Algorithm");var Mt=i.n(St),Tt=i(355);function bt(t,e){ft().call(this,t,e),t.setTransparent(!0),this.texCoordArray=_t().createArray(),this.textureNode=new(wt())(t.getExecutionContext()),this.canvas=Tt("<canvas></canvas>"),this.context=this.canvas[0].getContext("2d",{willReadFrequently:!0}),this.matrix=new(u()),this.textureNode._textureProperties=e.getBrowser().getScreenTextureProperties(),this.textureNode.setup()}bt.prototype=Object.assign(Object.create(ft().prototype),{constructor:bt,modelViewMatrix:new(u()),getTransparent:function(){return!0},getMatrix:function(){return this.matrix},update:function(){const t=new(r())(0,0,0),e=new(r())(1,1,0);return function(){ft().prototype.update.call(this);const i=this.getFontStyle(),n=this.getText();switch(n._textBounds.x=Math.ceil(n._textBounds.x)+1,n._textBounds.y=Math.ceil(n._textBounds.y)+1,this.getBBox().getExtents(t,e),t.x-=1,t.y-=1,i.getMajorAlignment()){case yt().BEGIN:case yt().FIRST:t.x=Math.floor(t.x),e.x=t.x+n._textBounds.x;break;case yt().MIDDLE:t.x=Math.round(t.x),e.x=t.x+n._textBounds.x;break;case yt().END:e.x=Math.ceil(e.x),t.x=e.x-n._textBounds.x}switch(i.getMinorAlignment()){case yt().BEGIN:case yt().FIRST:e.y=Math.ceil(e.y),t.y=e.y-n._textBounds.y;break;case yt().MIDDLE:e.y=Math.round(e.y),t.y=e.y-n._textBounds.y;break;case yt().END:t.y=Math.floor(t.y),e.y=t.y+n._textBounds.y}n._origin.x=t.x,n._origin.y=e.y,this.getBBox().setExtents(t,e)}}(),build:function(){const t=new(r())(0,0,0),e=new(r())(1,1,0);return function(){const i=this.getFontStyle(),n=i.getFont();if(!n)return;const s=this.getText(),o=this.getGlyphs(),r=this.getMinorAlignment(),a=this.getTranslations(),u=this.getCharSpacings(),h=i.getScale(),l=h/n.unitsPerEm,c=this.texCoordArray,d=s.getNormals(),f=s.getVertices(),p=this.canvas[0],y=this.context;c.length=0,s.getMultiTexCoords().push(c),this.getBBox().getExtents(t,e),d.push(0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1),f.push(t.x,t.y,0,1,e.x,t.y,0,1,e.x,e.y,0,1,t.x,t.y,0,1,e.x,e.y,0,1,t.x,e.y,0,1);const g=s._textBounds.x,w=s._textBounds.y;p.width=Mt().nextPowerOfTwo(g),p.height=Mt().nextPowerOfTwo(w);const x=g/p.width,_=1-w/p.height;if(c.push(0,_,0,1,x,_,0,1,x,1,0,1,0,_,0,1,x,1,0,1,0,1,0,1),y.fillStyle="rgba(255,255,255,0)",y.fillRect(0,0,p.width,p.height),y.fillStyle="rgba(255,255,255,1)",y.save(),y.translate(0,p.height),y.scale(1,-1),i._horizontal.getValue())for(let i=0,s=o.length;i<s;++i){const s=o[i],c=u[i],d=a[i];let f=0;for(let i=0,o=s.length;i<o;++i){const o=s[i],a=r.x+d.x+f+i*c-t.x,u=r.y+d.y-e.y;this.drawGlyph(y,n,o,a,u,h);let p=0;i+1<s.length&&(p=n.getKerningValue(o,s[i+1])),f+=(o.advanceWidth+p)*l}}else{const u=i._leftToRight.getValue(),l=i._topToBottom.getValue(),c=u?0:s._string.length-1,d=u?s._string.length:-1,f=u?1:-1;for(let i=c,s=0;i!==d;i+=f){const u=o[i],c=u.length,d=l?c:-1,f=l?1:-1;for(let i=l?0:c-1;i!==d;i+=f,++s){const o=a[s],l=r.x+o.x-t.x,c=r.y+o.y-e.y;this.drawGlyph(y,n,u[i],l,c,h)}}}y.restore();const m=y.getImageData(0,0,p.width,p.height);m?this.textureNode.setTexture(p.width,p.height,!0,new Uint8Array(m.data.buffer),!1):this.textureNode.clear()}}(),drawGlyph:function(t,e,i,n,s,o){const r=i.getPath(n,-s,o),a=r.commands;t.beginPath();for(let e=0,i=a.length;e<i;++e){const i=a[e];switch(i.type){case"M":t.moveTo(i.x,i.y);continue;case"Z":t.closePath();continue;case"L":t.lineTo(i.x,i.y);continue;case"Q":t.quadraticCurveTo(i.x1,i.y1,i.x,i.y);continue;case"C":t.bezierCurveTo(i.x1,i.y1,i.x2,i.y2,i.x,i.y);continue}}r.fill&&t.fill(),r.stroke&&(t.lineWidth=r.strokeWidth,t.stroke())},getGlyphExtents:function(t,e,i,n,s){const o=t.unitsPerEm;n.set((e.xMin||0)/o,(e.yMin||0)/o,0),s.set((e.xMax||0)/o,(e.yMax||0)/o,0)},traverse:function(){const t=new(Xt());return function(e,i){this.getBrowser().getScreenScaleMatrix(i,this.matrix),t.assign(this.getBBox()).multRight(this.matrix),this.getText().setBBox(t)}}(),display:function(t,e){u().prototype.multLeft.call(e.modelViewMatrix,this.matrix),e.textureNode=this.textureNode},transformLine:function(t){return t.multLineMatrix(u().inverse(this.matrix))},transformMatrix:function(t){return t.multLeft(this.matrix)}});const zt=bt;d().set("x_ite/Browser/Layout/ScreenText",zt);const Ot=zt;function Nt(t){ct().call(this,t),this.addType(z().ScreenFontStyle)}Nt.prototype=Object.assign(Object.create(ct().prototype),{constructor:Nt,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(S())([new(m())(z().inputOutput,"metadata",new(x().SFNode)),new(m())(z().inputOutput,"language",new(x().SFString)),new(m())(z().inputOutput,"family",new(x().MFString)("SERIF")),new(m())(z().inputOutput,"style",new(x().SFString)("PLAIN")),new(m())(z().inputOutput,"pointSize",new(x().SFFloat)(12)),new(m())(z().inputOutput,"spacing",new(x().SFFloat)(1)),new(m())(z().inputOutput,"horizontal",new(x().SFBool)(!0)),new(m())(z().inputOutput,"leftToRight",new(x().SFBool)(!0)),new(m())(z().inputOutput,"topToBottom",new(x().SFBool)(!0)),new(m())(z().inputOutput,"justify",new(x().MFString)("BEGIN"))]),getTypeName:function(){return"ScreenFontStyle"},getComponentName:function(){return"Layout"},getContainerField:function(){return"fontStyle"},getTextGeometry:function(t){return new Ot(t,this)},getScale:function(){return this._pointSize.getValue()*this.getBrowser().getPixelPerPoint()}});const vt=Nt;d().set("x_ite/Components/Layout/ScreenFontStyle",vt);const Ft=vt;function Et(t){Q().call(this,t),this.addType(z().ScreenGroup),this.matrix=new(u())}Et.prototype=Object.assign(Object.create(Q().prototype),{constructor:Et,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(S())([new(m())(z().inputOutput,"metadata",new(x().SFNode)),new(m())(z().inputOutput,"visible",new(x().SFBool)(!0)),new(m())(z().inputOutput,"bboxDisplay",new(x().SFBool)),new(m())(z().initializeOnly,"bboxSize",new(x().SFVec3f)(-1,-1,-1)),new(m())(z().initializeOnly,"bboxCenter",new(x().SFVec3f)),new(m())(z().inputOnly,"addChildren",new(x().MFNode)),new(m())(z().inputOnly,"removeChildren",new(x().MFNode)),new(m())(z().inputOutput,"children",new(x().MFNode))]),getTypeName:function(){return"ScreenGroup"},getComponentName:function(){return"Layout"},getContainerField:function(){return"children"},getBBox:function(t,e){return this.getSubBBox(t,e).multRight(this.matrix)},getMatrix:function(){return this.matrix},traverse:function(t,e){switch(t){case $().CAMERA:case $().PICKING:case $().SHADOW:break;default:this.getBrowser().getScreenScaleMatrix(e,this.matrix)}const i=e.getModelViewMatrix();i.push(),i.multLeft(this.matrix),Q().prototype.traverse.call(this,t,e),i.pop()}});const Ct=Et;d().set("x_ite/Components/Layout/ScreenGroup",Ct);const It=Ct;e().addComponent({name:"Layout",types:{Layout:K,LayoutGroup:it,LayoutLayer:ht,ScreenFontStyle:Ft,ScreenGroup:It},abstractTypes:{X3DLayoutNode:v},browserContext:g});const Lt=void 0;d().set("assets/components/Layout",Lt)})()})();
1
+ /* X_ITE v8.5.3 */(()=>{"use strict";var t={355:t=>{t.exports=window[Symbol.for("X_ITE.X3D-8.5.3")].require("lib/jquery")}},e={};function i(n){var s=e[n];if(void 0!==s)return s.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,i),o.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{const t=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Components");var e=i.n(t);const n=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Components/Texturing/TextureProperties");var s=i.n(n);const o=window[Symbol.for("X_ITE.X3D-8.5.3")].require("standard/Math/Numbers/Vector3");var r=i.n(o);const a=window[Symbol.for("X_ITE.X3D-8.5.3")].require("standard/Math/Numbers/Matrix4");var u=i.n(a);const h=window[Symbol.for("X_ITE.X3D-8.5.3")].require("standard/Math/Geometry/ViewVolume");var l=i.n(h);const c=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Namespace");var d=i.n(c);const f=Symbol();function p(){}p.prototype={getScreenTextureProperties:function(){return this[f]=new(s())(this.getPrivateScene()),this[f]._boundaryModeS="CLAMP_TO_EDGE",this[f]._boundaryModeT="CLAMP_TO_EDGE",this[f]._boundaryModeR="CLAMP_TO_EDGE",this[f]._minificationFilter="NEAREST_PIXEL",this[f]._magnificationFilter="NEAREST_PIXEL",this[f]._generateMipMaps=!1,this[f]._textureCompression="DEFAULT",this[f].setup(),this.getScreenTextureProperties=function(){return this[f]},Object.defineProperty(this,"getScreenTextureProperties",{enumerable:!1}),this[f]},getScreenScaleMatrix:function(){const t=new(r())(0,0,0),e=new(r())(0,0,0),i=new(u());return function(n,s){const o=n.getModelViewMatrix().get(),a=n.getProjectionMatrix().get(),u=n.getViewVolume().getViewport();n.getViewpoint().getScreenScale(o.origin,u,t);const h=o.xAxis.normalize().multiply(t.x),c=o.yAxis.normalize().multiply(t.y),d=o.zAxis.normalize().multiply(t.x);i.set(h.x,h.y,h.z,0,c.x,c.y,c.z,0,d.x,d.y,d.z,0,o[12],o[13],o[14],1),l().projectPoint(r().Zero,i,a,u,e),e.x=Math.round(e.x),e.y=Math.round(e.y),l().unProjectPoint(e.x,e.y,e.z,i,a,u,e),e.z=0,i.translate(e),s.assign(o).inverse().multLeft(i)}}()};const y=p;d().set("x_ite/Browser/Layout/X3DLayoutContext",y);const g=y,w=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Fields");var x=i.n(w);const _=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Base/X3DFieldDefinition");var m=i.n(_);const S=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Base/FieldDefinitionArray");var X=i.n(S);const M=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Components/Core/X3DChildNode");var T=i.n(M);const b=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Base/X3DConstants");var z=i.n(b);function N(t){T().call(this,t),this.addType(z().X3DLayoutNode)}N.prototype=Object.assign(Object.create(T().prototype),{constructor:N});const O=N;d().set("x_ite/Components/Layout/X3DLayoutNode",O);const v=O,F=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Base/X3DCast");var C=i.n(F);const E=window[Symbol.for("X_ITE.X3D-8.5.3")].require("standard/Math/Numbers/Vector2");var I=i.n(E);const L=window[Symbol.for("X_ITE.X3D-8.5.3")].require("standard/Math/Numbers/Rotation4");var D=i.n(L),U=0,B=U++,Y=U++,P=U++,R=U++,G=U++,V=U++,A=U++,q=U++,j=U++,k=U++;function W(t){v.call(this,t),this.addType(z().Layout),this.alignX=Y,this.alignY=Y,this.offsetUnitX=V,this.offsetUnitY=V,this.offsetX=0,this.offsetY=0,this.sizeUnitX=V,this.sizeUnitY=V,this.sizeX=1,this.sizeY=1,this.scaleModeX=j,this.scaleModeY=j,this.parent=null,this.rectangleCenter=new(I())(0,0),this.rectangleSize=new(I())(0,0),this.matrix=new(u())}W.prototype=Object.assign(Object.create(v.prototype),{constructor:W,viewportPixel:new(I())(0,0),pixelSize:new(I())(0,0),translation:new(r())(0,0,0),offset:new(r())(0,0,0),scale:new(r())(1,1,1),currentTranslation:new(r())(0,0,0),currentRotation:new(D())(0,0,1,0),currentScale:new(r())(0,0,0),modelViewMatrix:new(u()),[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(X())([new(m())(z().inputOutput,"metadata",new(x().SFNode)),new(m())(z().inputOutput,"align",new(x().MFString)("CENTER","CENTER")),new(m())(z().inputOutput,"offsetUnits",new(x().MFString)("WORLD","WORLD")),new(m())(z().inputOutput,"offset",new(x().MFFloat)(0,0)),new(m())(z().inputOutput,"sizeUnits",new(x().MFString)("WORLD","WORLD")),new(m())(z().inputOutput,"size",new(x().MFFloat)(1,1)),new(m())(z().inputOutput,"scaleMode",new(x().MFString)("NONE","NONE"))]),getTypeName:function(){return"Layout"},getComponentName:function(){return"Layout"},getContainerField:function(){return"layout"},initialize:function(){v.prototype.initialize.call(this),this._align.addInterest("set_align__",this),this._offsetUnits.addInterest("set_offsetUnits__",this),this._offset.addInterest("set_offset__",this),this._sizeUnits.addInterest("set_sizeUnits__",this),this._size.addInterest("set_size__",this),this._scaleMode.addInterest("set_scaleMode__",this),this.set_align__(),this.set_offsetUnits__(),this.set_offset__(),this.set_sizeUnits__(),this.set_size__(),this.set_scaleMode__()},set_align__:function(){this._align.length>0?"LEFT"===this._align[0]?this.alignX=B:"RIGHT"===this._align[0]?this.alignX=P:this.alignX=Y:this.alignX=Y,this._align.length>1?"BOTTOM"===this._align[1]?this.alignY=R:"TOP"===this._align[1]?this.alignY=G:this.alignY=Y:this.alignY=Y},set_offsetUnits__:function(){this._offsetUnits.length>0?("FRACTION"===this._offsetUnits[0]?this.offsetUnitX=A:"PIXEL"===this._offsetUnits[0]?this.offsetUnitX=q:this.offsetUnitX=V,this._offsetUnits.length>1?"FRACTION"===this._offsetUnits[1]?this.offsetUnitY=A:"PIXEL"===this._offsetUnits[1]?this.offsetUnitY=q:this.offsetUnitY=V:this.offsetUnitY=this.offsetUnitX):(this.offsetUnitX=V,this.offsetUnitY=V)},set_offset__:function(){this._offset.length>0?(this.offsetX=this._offset[0],this._offset.length>1?this.offsetY=this._offset[1]:this.offsetY=offsetX):(this.offsetX=0,this.offsetY=0)},set_sizeUnits__:function(){this._sizeUnits.length>0?("FRACTION"===this._sizeUnits[0]?this.sizeUnitX=A:"PIXEL"===this._sizeUnits[0]?this.sizeUnitX=q:this.sizeUnitX=V,this._sizeUnits.length>1?"FRACTION"===this._sizeUnits[1]?this.sizeUnitY=A:"PIXEL"===this._sizeUnits[1]?this.sizeUnitY=q:this.sizeUnitY=V:this.sizeUnitY=this.sizeUnitX):(this.sizeUnitX=V,this.sizeUnitY=V)},set_size__:function(){this._size.length>0?(this.sizeX=this._size[0],this._size.length>1?this.sizeY=this._size[1]:this.sizeY=this.sizeX):(this.sizeX=0,this.sizeY=0)},set_scaleMode__:function(){this._scaleMode.length>0?("FRACTION"===this._scaleMode[0]?this.scaleModeX=A:"PIXEL"===this._scaleMode[0]?this.scaleModeX=q:"STRETCH"===this._scaleMode[0]?this.scaleModeX=k:this.scaleModeX=j,this._scaleMode.length>1?"FRACTION"===this._scaleMode[1]?this.scaleModeY=A:"PIXEL"===this._scaleMode[1]?this.scaleModeY=q:"STRETCH"===this._scaleMode[1]?this.scaleModeY=k:this.scaleModeY=j:this.scaleModeY=this.scaleModeX):(this.scaleModeX=j,this.scaleModeY=j)},getRectangleCenter:function(){return this.rectangleCenter},getRectangleSize:function(){return this.rectangleSize},getAlignX:function(){return this.alignX},getAlignY:function(){return this.alignY},getOffsetUnitX:function(){return this.offsetUnitX===V?this.parent?this.parent.getOffsetUnitX():A:this.offsetUnitX},getOffsetUnitY:function(){return this.offsetUnitY===V?this.parent?this.parent.getOffsetUnitY():A:this.offsetUnitY},getOffsetX:function(){return this.offsetX},getOffsetY:function(){return this.offsetY},getSizeUnitX:function(){return this.sizeUnitX===V?this.parent?this.parent.getSizeUnitX():A:this.sizeUnitX},getSizeUnitY:function(){return this.sizeUnitY===V?this.parent?this.parent.getSizeUnitY():A:this.sizeUnitY},getSizeX:function(){return this.sizeX},getSizeY:function(){return this.sizeY},getScaleModeX:function(){return this.parent?this.scaleModeX:this.scaleModeX===j?A:this.scaleModeX},getScaleModeY:function(){return this.parent?this.scaleModeY:this.scaleModeY===j?A:this.scaleModeY},transform:function(t,e){var i=this.parent=e.getParentLayout(),n=this.getBrowser().getRenderingProperty("ContentScale"),s=this.matrix,o=e.getViewpoint(),r=e.getNavigationInfo().getNearValue(),a=e.getViewVolume().getScissor(),u=o.getViewportSize(a,r),h=this.viewportPixel,l=this.pixelSize,c=i?i.getRectangleSize():u,d=this.rectangleSize,f=this.rectangleCenter;switch(h.set(a[2],a[3]).divide(n),l.assign(u).divVec(h),this.getSizeUnitX()){case A:d.x=this.sizeX*c.x;break;case q:d.x=this.sizeX*l.x}switch(this.getSizeUnitY()){case A:d.y=this.sizeY*c.y;break;case q:d.y=this.sizeY*l.y}var p=this.translation.set(0,0,0);switch(this.getAlignX()){case B:p.x=-(c.x-d.x)/2;break;case Y:this.getSizeUnitX()===q&&1&h.x&&(p.x=-l.x/2);break;case P:p.x=(c.x-d.x)/2}switch(this.getAlignY()){case R:p.y=-(c.y-d.y)/2;break;case Y:this.getSizeUnitX===q&&1&h.y&&(p.y=-l.y/2);break;case G:p.y=(c.y-d.y)/2}var y=this.offset.set(0,0,0);switch(this.getOffsetUnitX()){case A:y.x=this.offsetX*c.x;break;case q:y.x=this.offsetX*u.x/h.x}switch(this.getOffsetUnitY()){case A:y.y=this.offsetY*c.y;break;case q:y.y=this.offsetY*u.y/h.y}var g=this.scale.set(1,1,1),w=this.currentTranslation,x=this.currentRotation,_=this.currentScale;switch(e.getModelViewMatrix().get().get(w,x,_),this.getScaleModeX()){case j:g.x=_.x;break;case A:g.x=d.x;break;case k:break;case q:g.x=u.x/h.x}switch(this.getScaleModeY()){case j:g.y=_.y;break;case A:g.y=d.y;break;case k:break;case q:g.y=u.y/h.y}return this.getScaleModeX()===k?this.getScaleModeY()===k?d.x>d.y?(g.x=d.x,g.y=g.x):(g.y=d.y,g.x=g.y):g.x=g.y:this.getScaleModeY()===k&&(g.y=g.x),f.assign(p).add(y),s.set(w,x),s.translate(p.add(y)),s.scale(g),s}});const H=W;d().set("x_ite/Components/Layout/Layout",H);const K=H,Z=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Components/Grouping/X3DGroupingNode");var Q=i.n(Z);const J=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Rendering/TraverseType");var $=i.n(J);function tt(t){Q().call(this,t),this.addType(z().LayoutGroup),this.viewportNode=null,this.layoutNode=null,this.modelViewMatrix=new(u()),this.screenMatrix=new(u())}tt.prototype=Object.assign(Object.create(Q().prototype),{constructor:tt,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(X())([new(m())(z().inputOutput,"metadata",new(x().SFNode)),new(m())(z().inputOutput,"layout",new(x().SFNode)),new(m())(z().inputOutput,"viewport",new(x().SFNode)),new(m())(z().inputOutput,"visible",new(x().SFBool)(!0)),new(m())(z().inputOutput,"bboxDisplay",new(x().SFBool)),new(m())(z().initializeOnly,"bboxSize",new(x().SFVec3f)(-1,-1,-1)),new(m())(z().initializeOnly,"bboxCenter",new(x().SFVec3f)),new(m())(z().inputOnly,"addChildren",new(x().MFNode)),new(m())(z().inputOnly,"removeChildren",new(x().MFNode)),new(m())(z().inputOutput,"children",new(x().MFNode))]),getTypeName:function(){return"LayoutGroup"},getComponentName:function(){return"Layout"},getContainerField:function(){return"children"},initialize:function(){Q().prototype.initialize.call(this),this._viewport.addInterest("set_viewport__",this),this._layout.addInterest("set_layout__",this),this.set_viewport__(),this.set_layout__()},set_viewport__:function(){this.viewportNode=C()(z().X3DViewportNode,this._viewport)},set_layout__:function(){this.layoutNode=C()(z().X3DLayoutNode,this._layout)},getBBox:function(t,e){return Q().prototype.getBBox.call(this,t,e).multRight(this.getMatrix())},getMatrix:function(){return this.layoutNode?this.matrix.assign(this.modelViewMatrix).inverse().multLeft(this.screenMatrix):this.matrix.identity(),this.matrix},traverse:function(t,e){if(t!==$().COLLISION){if(this.viewportNode&&this.viewportNode.push(),this.layoutNode){var i=e.getModelViewMatrix();this.modelViewMatrix.assign(i.get()),this.screenMatrix.assign(this.layoutNode.transform(t,e)),i.pushMatrix(this.screenMatrix),e.getLayouts().push(this.layoutNode),Q().prototype.traverse.call(this,t,e),e.getLayouts().pop(),i.pop()}else Q().prototype.traverse.call(this,t,e);this.viewportNode&&this.viewportNode.pop()}}});const et=tt;d().set("x_ite/Components/Layout/LayoutGroup",et);const it=et,nt=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Components/Layering/X3DLayerNode");var st=i.n(nt);const ot=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Components/Navigation/OrthoViewpoint");var rt=i.n(ot);function at(t){st().call(this,t,new(rt())(t),new it(t)),this.addType(z().LayoutLayer)}at.prototype=Object.assign(Object.create(st().prototype),{constructor:at,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(X())([new(m())(z().inputOutput,"metadata",new(x().SFNode)),new(m())(z().inputOutput,"pickable",new(x().SFBool)(!0)),new(m())(z().inputOutput,"objectType",new(x().MFString)("ALL")),new(m())(z().inputOutput,"visible",new(x().SFBool)(!0)),new(m())(z().inputOutput,"layout",new(x().SFNode)),new(m())(z().inputOutput,"viewport",new(x().SFNode)),new(m())(z().inputOnly,"addChildren",new(x().MFNode)),new(m())(z().inputOnly,"removeChildren",new(x().MFNode)),new(m())(z().inputOutput,"children",new(x().MFNode))]),getTypeName:function(){return"LayoutLayer"},getComponentName:function(){return"Layout"},getContainerField:function(){return"layers"},initialize:function(){st().prototype.initialize.call(this),this._layout.addFieldInterest(this.getGroup()._layout),this._addChildren.addFieldInterest(this.getGroup()._addChildren),this._removeChildren.addFieldInterest(this.getGroup()._removeChildren),this._children.addFieldInterest(this.getGroup()._children),this.getGroup()._layout=this._layout,this.getGroup()._children=this._children,this.getGroup().setPrivate(!0),this.getGroup().setup()}});const ut=at;d().set("x_ite/Components/Layout/LayoutLayer",ut);const ht=ut,lt=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Components/Text/X3DFontStyleNode");var ct=i.n(lt);const dt=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Browser/Text/X3DTextGeometry");var ft=i.n(dt);const pt=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Browser/Text/TextAlignment");var yt=i.n(pt);const gt=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Components/Texturing/PixelTexture");var wt=i.n(gt);const xt=window[Symbol.for("X_ITE.X3D-8.5.3")].require("x_ite/Components/Rendering/X3DGeometryNode");var _t=i.n(xt);const mt=window[Symbol.for("X_ITE.X3D-8.5.3")].require("standard/Math/Geometry/Box3");var St=i.n(mt);const Xt=window[Symbol.for("X_ITE.X3D-8.5.3")].require("standard/Math/Algorithm");var Mt=i.n(Xt),Tt=i(355);function bt(t,e){ft().call(this,t,e),t.setTransparent(!0),this.texCoordArray=_t().createArray(),this.textureNode=new(wt())(t.getExecutionContext()),this.canvas=Tt("<canvas></canvas>"),this.context=this.canvas[0].getContext("2d",{willReadFrequently:!0}),this.matrix=new(u()),this.textureNode._textureProperties=e.getBrowser().getScreenTextureProperties(),this.textureNode.setup()}bt.prototype=Object.assign(Object.create(ft().prototype),{constructor:bt,modelViewMatrix:new(u()),getTransparent:function(){return!0},getMatrix:function(){return this.matrix},update:function(){const t=new(r())(0,0,0),e=new(r())(1,1,0);return function(){ft().prototype.update.call(this);const i=this.getFontStyle(),n=this.getText();switch(n._textBounds.x=Math.ceil(n._textBounds.x)+1,n._textBounds.y=Math.ceil(n._textBounds.y)+1,this.getBBox().getExtents(t,e),t.x-=1,t.y-=1,i.getMajorAlignment()){case yt().BEGIN:case yt().FIRST:t.x=Math.floor(t.x),e.x=t.x+n._textBounds.x;break;case yt().MIDDLE:t.x=Math.round(t.x),e.x=t.x+n._textBounds.x;break;case yt().END:e.x=Math.ceil(e.x),t.x=e.x-n._textBounds.x}switch(i.getMinorAlignment()){case yt().BEGIN:case yt().FIRST:e.y=Math.ceil(e.y),t.y=e.y-n._textBounds.y;break;case yt().MIDDLE:e.y=Math.round(e.y),t.y=e.y-n._textBounds.y;break;case yt().END:t.y=Math.floor(t.y),e.y=t.y+n._textBounds.y}n._origin.x=t.x,n._origin.y=e.y,this.getBBox().setExtents(t,e)}}(),build:function(){const t=new(r())(0,0,0),e=new(r())(1,1,0);return function(){const i=this.getFontStyle(),n=i.getFont();if(!n)return;const s=this.getText(),o=this.getGlyphs(),r=this.getMinorAlignment(),a=this.getTranslations(),u=this.getCharSpacings(),h=i.getScale(),l=h/n.unitsPerEm,c=this.texCoordArray,d=s.getNormals(),f=s.getVertices(),p=this.canvas[0],y=this.context;c.length=0,s.getMultiTexCoords().push(c),this.getBBox().getExtents(t,e),d.push(0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1),f.push(t.x,t.y,0,1,e.x,t.y,0,1,e.x,e.y,0,1,t.x,t.y,0,1,e.x,e.y,0,1,t.x,e.y,0,1);const g=s._textBounds.x,w=s._textBounds.y;p.width=Mt().nextPowerOfTwo(g),p.height=Mt().nextPowerOfTwo(w);const x=g/p.width,_=1-w/p.height;if(c.push(0,_,0,1,x,_,0,1,x,1,0,1,0,_,0,1,x,1,0,1,0,1,0,1),y.fillStyle="rgba(255,255,255,0)",y.fillRect(0,0,p.width,p.height),y.fillStyle="rgba(255,255,255,1)",y.save(),y.translate(0,p.height),y.scale(1,-1),i._horizontal.getValue())for(let i=0,s=o.length;i<s;++i){const s=o[i],c=u[i],d=a[i];let f=0;for(let i=0,o=s.length;i<o;++i){const o=s[i],a=r.x+d.x+f+i*c-t.x,u=r.y+d.y-e.y;this.drawGlyph(y,n,o,a,u,h);let p=0;i+1<s.length&&(p=n.getKerningValue(o,s[i+1])),f+=(o.advanceWidth+p)*l}}else{const u=i._leftToRight.getValue(),l=i._topToBottom.getValue(),c=u?0:s._string.length-1,d=u?s._string.length:-1,f=u?1:-1;for(let i=c,s=0;i!==d;i+=f){const u=o[i],c=u.length,d=l?c:-1,f=l?1:-1;for(let i=l?0:c-1;i!==d;i+=f,++s){const o=a[s],l=r.x+o.x-t.x,c=r.y+o.y-e.y;this.drawGlyph(y,n,u[i],l,c,h)}}}y.restore();const m=y.getImageData(0,0,p.width,p.height);m?this.textureNode.setTexture(p.width,p.height,!0,new Uint8Array(m.data.buffer),!1):this.textureNode.clear()}}(),drawGlyph:function(t,e,i,n,s,o){const r=i.getPath(n,-s,o),a=r.commands;t.beginPath();for(let e=0,i=a.length;e<i;++e){const i=a[e];switch(i.type){case"M":t.moveTo(i.x,i.y);continue;case"Z":t.closePath();continue;case"L":t.lineTo(i.x,i.y);continue;case"Q":t.quadraticCurveTo(i.x1,i.y1,i.x,i.y);continue;case"C":t.bezierCurveTo(i.x1,i.y1,i.x2,i.y2,i.x,i.y);continue}}r.fill&&t.fill(),r.stroke&&(t.lineWidth=r.strokeWidth,t.stroke())},getGlyphExtents:function(t,e,i,n,s){const o=t.unitsPerEm;n.set((e.xMin||0)/o,(e.yMin||0)/o,0),s.set((e.xMax||0)/o,(e.yMax||0)/o,0)},traverse:function(){const t=new(St());return function(e,i){this.getBrowser().getScreenScaleMatrix(i,this.matrix),t.assign(this.getBBox()).multRight(this.matrix),this.getText().setBBox(t)}}(),display:function(t,e){u().prototype.multLeft.call(e.modelViewMatrix,this.matrix),e.textureNode=this.textureNode},transformLine:function(t){return t.multLineMatrix(u().inverse(this.matrix))},transformMatrix:function(t){return t.multLeft(this.matrix)}});const zt=bt;d().set("x_ite/Browser/Layout/ScreenText",zt);const Nt=zt;function Ot(t){ct().call(this,t),this.addType(z().ScreenFontStyle)}Ot.prototype=Object.assign(Object.create(ct().prototype),{constructor:Ot,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(X())([new(m())(z().inputOutput,"metadata",new(x().SFNode)),new(m())(z().inputOutput,"language",new(x().SFString)),new(m())(z().inputOutput,"family",new(x().MFString)("SERIF")),new(m())(z().inputOutput,"style",new(x().SFString)("PLAIN")),new(m())(z().inputOutput,"pointSize",new(x().SFFloat)(12)),new(m())(z().inputOutput,"spacing",new(x().SFFloat)(1)),new(m())(z().inputOutput,"horizontal",new(x().SFBool)(!0)),new(m())(z().inputOutput,"leftToRight",new(x().SFBool)(!0)),new(m())(z().inputOutput,"topToBottom",new(x().SFBool)(!0)),new(m())(z().inputOutput,"justify",new(x().MFString)("BEGIN"))]),getTypeName:function(){return"ScreenFontStyle"},getComponentName:function(){return"Layout"},getContainerField:function(){return"fontStyle"},initialize:function(){ct().prototype.initialize.call(this),this.getBrowser().getRenderingProperties()._ContentScale.addInterest("addNodeEvent",this)},getTextGeometry:function(t){return new Nt(t,this)},getScale:function(){return this._pointSize.getValue()*this.getBrowser().getPixelPerPoint()}});const vt=Ot;d().set("x_ite/Components/Layout/ScreenFontStyle",vt);const Ft=vt;function Ct(t){Q().call(this,t),this.addType(z().ScreenGroup),this.matrix=new(u())}Ct.prototype=Object.assign(Object.create(Q().prototype),{constructor:Ct,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(X())([new(m())(z().inputOutput,"metadata",new(x().SFNode)),new(m())(z().inputOutput,"visible",new(x().SFBool)(!0)),new(m())(z().inputOutput,"bboxDisplay",new(x().SFBool)),new(m())(z().initializeOnly,"bboxSize",new(x().SFVec3f)(-1,-1,-1)),new(m())(z().initializeOnly,"bboxCenter",new(x().SFVec3f)),new(m())(z().inputOnly,"addChildren",new(x().MFNode)),new(m())(z().inputOnly,"removeChildren",new(x().MFNode)),new(m())(z().inputOutput,"children",new(x().MFNode))]),getTypeName:function(){return"ScreenGroup"},getComponentName:function(){return"Layout"},getContainerField:function(){return"children"},getBBox:function(t,e){return this.getSubBBox(t,e).multRight(this.matrix)},getMatrix:function(){return this.matrix},traverse:function(t,e){switch(t){case $().CAMERA:case $().PICKING:case $().SHADOW:break;default:this.getBrowser().getScreenScaleMatrix(e,this.matrix)}const i=e.getModelViewMatrix();i.push(),i.multLeft(this.matrix),Q().prototype.traverse.call(this,t,e),i.pop()}});const Et=Ct;d().set("x_ite/Components/Layout/ScreenGroup",Et);const It=Et;e().addComponent({name:"Layout",types:{Layout:K,LayoutGroup:it,LayoutLayer:ht,ScreenFontStyle:Ft,ScreenGroup:It},abstractTypes:{X3DLayoutNode:v},browserContext:g});const Lt=void 0;d().set("assets/components/Layout",Lt)})()})();