x_ite 8.6.10 → 8.6.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Makefile +12 -12
- package/build/bin/version.pl +6 -0
- package/dist/assets/components/Annotation.js +13 -13
- package/dist/assets/components/Annotation.min.js +1 -1
- package/dist/assets/components/CADGeometry.js +21 -45
- package/dist/assets/components/CADGeometry.min.js +1 -1
- package/dist/assets/components/CubeMapTexturing.js +25 -25
- package/dist/assets/components/CubeMapTexturing.min.js +1 -1
- package/dist/assets/components/DIS.js +13 -13
- package/dist/assets/components/DIS.min.js +1 -1
- package/dist/assets/components/EventUtilities.js +9 -9
- package/dist/assets/components/EventUtilities.min.js +1 -1
- package/dist/assets/components/Geometry2D.js +19 -19
- package/dist/assets/components/Geometry2D.min.js +1 -1
- package/dist/assets/components/Geospatial.js +40 -58
- package/dist/assets/components/Geospatial.min.js +1 -1
- package/dist/assets/components/HAnim.js +18 -18
- package/dist/assets/components/HAnim.min.js +1 -1
- package/dist/assets/components/KeyDeviceSensor.js +8 -8
- package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
- package/dist/assets/components/Layout.js +48 -42
- package/dist/assets/components/Layout.min.js +1 -1
- package/dist/assets/components/NURBS.js +28 -34
- package/dist/assets/components/NURBS.min.js +1 -1
- package/dist/assets/components/ParticleSystems.js +140 -29
- package/dist/assets/components/ParticleSystems.min.js +1 -1
- package/dist/assets/components/Picking.js +132 -22
- package/dist/assets/components/Picking.min.js +1 -1
- package/dist/assets/components/RigidBodyPhysics.js +33 -77
- package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
- package/dist/assets/components/Scripting.js +28 -28
- package/dist/assets/components/Scripting.min.js +1 -1
- package/dist/assets/components/Text.js +24 -24
- package/dist/assets/components/Text.min.js +1 -1
- package/dist/assets/components/TextureProjector.js +14 -14
- package/dist/assets/components/TextureProjector.min.js +1 -1
- package/dist/assets/components/Texturing3D.js +30 -30
- package/dist/assets/components/Texturing3D.min.js +1 -1
- package/dist/assets/components/VolumeRendering.js +19 -19
- package/dist/assets/components/VolumeRendering.min.js +1 -1
- package/dist/assets/components/X_ITE.js +9 -9
- package/dist/assets/components/X_ITE.min.js +1 -1
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.js +645 -786
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.zip +0 -0
- package/docs/_config.yml +1 -1
- package/docs/_posts/components/Geometry3D/IndexedFaceSet.md +1 -1
- package/docs/_posts/components/Lighting/DirectionalLight.md +4 -4
- package/docs/_posts/components/Lighting/EnvironmentLight.md +4 -4
- package/docs/_posts/components/Lighting/PointLight.md +4 -4
- package/docs/_posts/components/Lighting/SpotLight.md +4 -4
- package/docs/_posts/components/Rendering/IndexedLineSet.md +1 -1
- package/docs/_posts/components/Rendering/IndexedTriangleFanSet.md +1 -1
- package/docs/_posts/components/RigidBodyPhysics/RigidBody.md +1 -1
- package/docs/_posts/components/RigidBodyPhysics/RigidBodyCollection.md +1 -1
- package/docs/_posts/components/RigidBodyPhysics/SingleAxisHingeJoint.md +1 -1
- package/docs/_posts/components/RigidBodyPhysics/SliderJoint.md +3 -3
- package/docs/_posts/components/X_ITE/BlendMode.md +1 -1
- package/docs/_posts/getting-started.md +8 -3
- package/docs/_posts/reference/browser-services.md +1 -1
- package/docs/_posts/reference/ecmascript-object-and-function-definitions.md +16 -99
- package/docs/_posts/what's-new.md +1 -1
- package/docs/laboratory/gltf-sample-viewer.html +4 -2
- package/package.json +3 -3
- package/src/assets/shaders/webgl1/include/Fragment.glsl.js +11 -4
- package/src/assets/shaders/webgl2/include/Fragment.glsl.js +11 -4
- package/src/lib/jquery.js +6 -1
- package/src/standard/Math/Algorithm.js +8 -1
- package/src/standard/Math/Geometry/Box3.js +2 -5
- package/src/standard/Utility/BitSet.js +33 -0
- package/src/x_ite/Base/X3DBaseNode.js +8 -0
- package/src/x_ite/Base/X3DObject.js +14 -1
- package/src/x_ite/Browser/Core/BrowserOptions.js +27 -29
- package/src/x_ite/Browser/Core/BrowserTimings.js +4 -12
- package/src/x_ite/Browser/Core/Context.js +1 -1
- package/src/x_ite/Browser/Core/X3DCoreContext.js +5 -0
- package/src/x_ite/Browser/Navigation/X3DFlyViewer.js +3 -3
- package/src/x_ite/Browser/Networking/X3DNetworkingContext.js +20 -15
- package/src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js +3 -3
- package/src/x_ite/Browser/Rendering/GeometryContext.js +2 -0
- package/src/x_ite/Browser/Shape/AlphaMode.js +1 -1
- package/src/x_ite/Browser/VERSION.js +1 -1
- package/src/x_ite/Browser/X3DBrowser.js +4 -4
- package/src/x_ite/Browser/X3DBrowserContext.js +21 -12
- package/src/x_ite/Components/CADGeometry/CADFace.js +8 -32
- package/src/x_ite/Components/Core/X3DNode.js +1 -1
- package/src/x_ite/Components/Core/X3DPrototypeInstance.js +1 -1
- package/src/x_ite/Components/EnvironmentalEffects/X3DBackgroundNode.js +115 -139
- package/src/x_ite/Components/EnvironmentalEffects/X3DFogObject.js +1 -1
- package/src/x_ite/Components/Geometry3D/ElevationGrid.js +10 -31
- package/src/x_ite/Components/Geometry3D/IndexedFaceSet.js +3 -6
- package/src/x_ite/Components/Geospatial/GeoElevationGrid.js +7 -25
- package/src/x_ite/Components/Grouping/StaticGroup.js +19 -0
- package/src/x_ite/Components/Grouping/Switch.js +7 -25
- package/src/x_ite/Components/Grouping/X3DBoundedObject.js +0 -1
- package/src/x_ite/Components/Grouping/X3DGroupingNode.js +1 -1
- package/src/x_ite/Components/Layout/Layout.js +12 -10
- package/src/x_ite/Components/Layout/LayoutGroup.js +9 -5
- package/src/x_ite/Components/NURBS/X3DNurbsSurfaceGeometryNode.js +4 -10
- package/src/x_ite/Components/Navigation/LOD.js +7 -25
- package/src/x_ite/Components/Navigation/X3DViewpointNode.js +1 -11
- package/src/x_ite/Components/ParticleSystems/ParticleSystem.js +4 -3
- package/src/x_ite/Components/Rendering/IndexedLineSet.js +11 -33
- package/src/x_ite/Components/Rendering/LineSet.js +12 -37
- package/src/x_ite/Components/Rendering/PointSet.js +11 -24
- package/src/x_ite/Components/Rendering/X3DComposedGeometryNode.js +14 -39
- package/src/x_ite/Components/Rendering/X3DLineGeometryNode.js +15 -8
- package/src/x_ite/Components/RigidBodyPhysics/CollidableOffset.js +7 -29
- package/src/x_ite/Components/RigidBodyPhysics/CollidableShape.js +8 -30
- package/src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js +3 -10
- package/src/x_ite/Components/Shape/Appearance.js +9 -5
- package/src/x_ite/Components/Shape/Material.js +1 -2
- package/src/x_ite/Components/Shape/PhysicalMaterial.js +1 -2
- package/src/x_ite/Components/Shape/Shape.js +0 -5
- package/src/x_ite/Components/Shape/TwoSidedMaterial.js +1 -1
- package/src/x_ite/Components/Shape/UnlitMaterial.js +1 -1
- package/src/x_ite/Components/Shape/X3DMaterialNode.js +24 -9
- package/src/x_ite/Components/Shape/X3DShapeNode.js +21 -18
- package/src/x_ite/Components/Texturing/ImageTexture.js +1 -1
- package/src/x_ite/Components/Texturing/X3DTexture2DNode.js +2 -0
- package/src/x_ite/Fields/SFImage.js +9 -9
- package/src/x_ite/Fields/SFInt32.js +2 -2
- package/src/x_ite/Fields/SFNode.js +8 -0
- package/src/x_ite/Rendering/X3DRenderObject.js +0 -1
- package/src/x_ite/{X3DCanvas.js → X3DCanvasElement.js} +23 -4
- package/src/x_ite.js +4 -4
- package/x_ite.min.html +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/* X_ITE v8.6.
|
|
1
|
+
/* X_ITE v8.6.12 */(() => { // 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.6.
|
|
8
|
+
module.exports = window [Symbol .for ("X_ITE.X3D-8.6.12")] .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.6.
|
|
76
|
+
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .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.6.
|
|
79
|
+
const TextureProperties_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .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.6.
|
|
82
|
+
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .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.6.
|
|
85
|
+
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .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.6.
|
|
88
|
+
const ViewVolume_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .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.6.
|
|
91
|
+
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .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.6.
|
|
230
|
+
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .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.6.
|
|
233
|
+
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .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.6.
|
|
236
|
+
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .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.6.
|
|
239
|
+
const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .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.6.
|
|
242
|
+
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .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.6.
|
|
313
|
+
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .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.6.
|
|
316
|
+
const Vector2_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .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.6.
|
|
319
|
+
const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .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
|
/*******************************************************************************
|
|
@@ -377,8 +377,9 @@ var Rotation4_default = /*#__PURE__*/__webpack_require__.n(Rotation4_namespaceOb
|
|
|
377
377
|
|
|
378
378
|
|
|
379
379
|
|
|
380
|
-
|
|
381
|
-
|
|
380
|
+
let i = 0;
|
|
381
|
+
|
|
382
|
+
const
|
|
382
383
|
LEFT = i++,
|
|
383
384
|
CENTER = i++,
|
|
384
385
|
RIGHT = i++,
|
|
@@ -762,11 +763,11 @@ Layout .prototype = Object .assign (Object .create (Layout_X3DLayoutNode.prototy
|
|
|
762
763
|
},
|
|
763
764
|
transform: function (type, renderObject)
|
|
764
765
|
{
|
|
765
|
-
|
|
766
|
+
const parent = this .parent = renderObject .getParentLayout ();
|
|
766
767
|
|
|
767
768
|
// Calculate rectangleSize
|
|
768
769
|
|
|
769
|
-
|
|
770
|
+
const
|
|
770
771
|
browser = this .getBrowser (),
|
|
771
772
|
contentScale = browser .getRenderingProperty ("ContentScale"),
|
|
772
773
|
matrix = this .matrix,
|
|
@@ -809,7 +810,7 @@ Layout .prototype = Object .assign (Object .create (Layout_X3DLayoutNode.prototy
|
|
|
809
810
|
|
|
810
811
|
// Calculate translation
|
|
811
812
|
|
|
812
|
-
|
|
813
|
+
const translation = this .translation .set (0, 0, 0);
|
|
813
814
|
|
|
814
815
|
switch (this .getAlignX ())
|
|
815
816
|
{
|
|
@@ -845,7 +846,7 @@ Layout .prototype = Object .assign (Object .create (Layout_X3DLayoutNode.prototy
|
|
|
845
846
|
|
|
846
847
|
// Calculate offset
|
|
847
848
|
|
|
848
|
-
|
|
849
|
+
const offset = this .offset .set (0, 0, 0);
|
|
849
850
|
|
|
850
851
|
switch (this .getOffsetUnitX ())
|
|
851
852
|
{
|
|
@@ -869,13 +870,14 @@ Layout .prototype = Object .assign (Object .create (Layout_X3DLayoutNode.prototy
|
|
|
869
870
|
|
|
870
871
|
// Calculate scale
|
|
871
872
|
|
|
872
|
-
|
|
873
|
+
const
|
|
873
874
|
scale = this .scale .set (1, 1, 1),
|
|
874
875
|
currentTranslation = this .currentTranslation,
|
|
875
876
|
currentRotation = this .currentRotation,
|
|
876
877
|
currentScale = this .currentScale;
|
|
877
878
|
|
|
878
|
-
|
|
879
|
+
const modelViewMatrix = renderObject .getModelViewMatrix () .get ();
|
|
880
|
+
|
|
879
881
|
modelViewMatrix .get (currentTranslation, currentRotation, currentScale);
|
|
880
882
|
|
|
881
883
|
switch (this .getScaleModeX ())
|
|
@@ -933,10 +935,10 @@ Layout .prototype = Object .assign (Object .create (Layout_X3DLayoutNode.prototy
|
|
|
933
935
|
|
|
934
936
|
// Transform
|
|
935
937
|
|
|
936
|
-
rectangleCenter .assign (translation
|
|
938
|
+
rectangleCenter .assign (translation .add (offset));
|
|
937
939
|
|
|
938
940
|
matrix .set (currentTranslation, currentRotation);
|
|
939
|
-
matrix .translate (translation
|
|
941
|
+
matrix .translate (translation);
|
|
940
942
|
matrix .scale (scale);
|
|
941
943
|
|
|
942
944
|
return matrix;
|
|
@@ -949,10 +951,10 @@ const Layout_default_ = Layout;
|
|
|
949
951
|
Namespace_default().set ("x_ite/Components/Layout/Layout", Layout_default_);
|
|
950
952
|
/* harmony default export */ const Layout_Layout = (Layout_default_);
|
|
951
953
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DGroupingNode\")"
|
|
952
|
-
const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.
|
|
954
|
+
const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Components/Grouping/X3DGroupingNode");
|
|
953
955
|
var X3DGroupingNode_default = /*#__PURE__*/__webpack_require__.n(X3DGroupingNode_namespaceObject);
|
|
954
956
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Rendering/TraverseType\")"
|
|
955
|
-
const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.
|
|
957
|
+
const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Rendering/TraverseType");
|
|
956
958
|
var TraverseType_default = /*#__PURE__*/__webpack_require__.n(TraverseType_namespaceObject);
|
|
957
959
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Layout/LayoutGroup.js
|
|
958
960
|
/*******************************************************************************
|
|
@@ -1011,6 +1013,7 @@ var TraverseType_default = /*#__PURE__*/__webpack_require__.n(TraverseType_names
|
|
|
1011
1013
|
|
|
1012
1014
|
|
|
1013
1015
|
|
|
1016
|
+
|
|
1014
1017
|
function LayoutGroup (executionContext)
|
|
1015
1018
|
{
|
|
1016
1019
|
X3DGroupingNode_default().call (this, executionContext);
|
|
@@ -1019,6 +1022,7 @@ function LayoutGroup (executionContext)
|
|
|
1019
1022
|
|
|
1020
1023
|
this .viewportNode = null;
|
|
1021
1024
|
this .layoutNode = null;
|
|
1025
|
+
this .matrix = new (Matrix4_default()) ();
|
|
1022
1026
|
this .modelViewMatrix = new (Matrix4_default()) ();
|
|
1023
1027
|
this .screenMatrix = new (Matrix4_default()) ();
|
|
1024
1028
|
}
|
|
@@ -1075,11 +1079,13 @@ LayoutGroup .prototype = Object .assign (Object .create ((X3DGroupingNode_defaul
|
|
|
1075
1079
|
getMatrix: function ()
|
|
1076
1080
|
{
|
|
1077
1081
|
if (this .layoutNode)
|
|
1078
|
-
this .matrix .assign (this .modelViewMatrix) .inverse () .multLeft (this .screenMatrix);
|
|
1079
|
-
else
|
|
1080
|
-
this .matrix .identity ();
|
|
1082
|
+
return this .matrix .assign (this .modelViewMatrix) .inverse () .multLeft (this .screenMatrix);
|
|
1081
1083
|
|
|
1082
|
-
return this .matrix;
|
|
1084
|
+
return this .matrix .identity ();
|
|
1085
|
+
},
|
|
1086
|
+
getLayout: function ()
|
|
1087
|
+
{
|
|
1088
|
+
return this .layoutNode;
|
|
1083
1089
|
},
|
|
1084
1090
|
traverse: function (type, renderObject)
|
|
1085
1091
|
{
|
|
@@ -1096,7 +1102,7 @@ LayoutGroup .prototype = Object .assign (Object .create ((X3DGroupingNode_defaul
|
|
|
1096
1102
|
|
|
1097
1103
|
if (this .layoutNode)
|
|
1098
1104
|
{
|
|
1099
|
-
|
|
1105
|
+
const modelViewMatrix = renderObject .getModelViewMatrix ();
|
|
1100
1106
|
|
|
1101
1107
|
this .modelViewMatrix .assign (modelViewMatrix .get ());
|
|
1102
1108
|
this .screenMatrix .assign (this .layoutNode .transform (type, renderObject));
|
|
@@ -1129,10 +1135,10 @@ const LayoutGroup_default_ = LayoutGroup;
|
|
|
1129
1135
|
Namespace_default().set ("x_ite/Components/Layout/LayoutGroup", LayoutGroup_default_);
|
|
1130
1136
|
/* harmony default export */ const Layout_LayoutGroup = (LayoutGroup_default_);
|
|
1131
1137
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Layering/X3DLayerNode\")"
|
|
1132
|
-
const X3DLayerNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.
|
|
1138
|
+
const X3DLayerNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Components/Layering/X3DLayerNode");
|
|
1133
1139
|
var X3DLayerNode_default = /*#__PURE__*/__webpack_require__.n(X3DLayerNode_namespaceObject);
|
|
1134
1140
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Navigation/OrthoViewpoint\")"
|
|
1135
|
-
const OrthoViewpoint_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.
|
|
1141
|
+
const OrthoViewpoint_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Components/Navigation/OrthoViewpoint");
|
|
1136
1142
|
var OrthoViewpoint_default = /*#__PURE__*/__webpack_require__.n(OrthoViewpoint_namespaceObject);
|
|
1137
1143
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Layout/LayoutLayer.js
|
|
1138
1144
|
/*******************************************************************************
|
|
@@ -1249,25 +1255,25 @@ const LayoutLayer_default_ = LayoutLayer;
|
|
|
1249
1255
|
Namespace_default().set ("x_ite/Components/Layout/LayoutLayer", LayoutLayer_default_);
|
|
1250
1256
|
/* harmony default export */ const Layout_LayoutLayer = (LayoutLayer_default_);
|
|
1251
1257
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Text/X3DFontStyleNode\")"
|
|
1252
|
-
const X3DFontStyleNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.
|
|
1258
|
+
const X3DFontStyleNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Components/Text/X3DFontStyleNode");
|
|
1253
1259
|
var X3DFontStyleNode_default = /*#__PURE__*/__webpack_require__.n(X3DFontStyleNode_namespaceObject);
|
|
1254
1260
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Browser/Text/X3DTextGeometry\")"
|
|
1255
|
-
const X3DTextGeometry_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.
|
|
1261
|
+
const X3DTextGeometry_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Browser/Text/X3DTextGeometry");
|
|
1256
1262
|
var X3DTextGeometry_default = /*#__PURE__*/__webpack_require__.n(X3DTextGeometry_namespaceObject);
|
|
1257
1263
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Browser/Text/TextAlignment\")"
|
|
1258
|
-
const TextAlignment_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.
|
|
1264
|
+
const TextAlignment_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Browser/Text/TextAlignment");
|
|
1259
1265
|
var TextAlignment_default = /*#__PURE__*/__webpack_require__.n(TextAlignment_namespaceObject);
|
|
1260
1266
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Texturing/PixelTexture\")"
|
|
1261
|
-
const PixelTexture_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.
|
|
1267
|
+
const PixelTexture_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Components/Texturing/PixelTexture");
|
|
1262
1268
|
var PixelTexture_default = /*#__PURE__*/__webpack_require__.n(PixelTexture_namespaceObject);
|
|
1263
1269
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Rendering/X3DGeometryNode\")"
|
|
1264
|
-
const X3DGeometryNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.
|
|
1270
|
+
const X3DGeometryNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Components/Rendering/X3DGeometryNode");
|
|
1265
1271
|
var X3DGeometryNode_default = /*#__PURE__*/__webpack_require__.n(X3DGeometryNode_namespaceObject);
|
|
1266
1272
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Geometry/Box3\")"
|
|
1267
|
-
const Box3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.
|
|
1273
|
+
const Box3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("standard/Math/Geometry/Box3");
|
|
1268
1274
|
var Box3_default = /*#__PURE__*/__webpack_require__.n(Box3_namespaceObject);
|
|
1269
1275
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Algorithm\")"
|
|
1270
|
-
const Algorithm_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.
|
|
1276
|
+
const Algorithm_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("standard/Math/Algorithm");
|
|
1271
1277
|
var Algorithm_default = /*#__PURE__*/__webpack_require__.n(Algorithm_namespaceObject);
|
|
1272
1278
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Layout/ScreenText.js
|
|
1273
1279
|
/* provided dependency */ var $ = __webpack_require__(355);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/* X_ITE v8.6.10 */(()=>{"use strict";var t={355:t=>{t.exports=window[Symbol.for("X_ITE.X3D-8.6.10")].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.6.10")].require("x_ite/Components");var e=i.n(t);const n=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Components/Texturing/TextureProperties");var s=i.n(n);const o=window[Symbol.for("X_ITE.X3D-8.6.10")].require("standard/Math/Numbers/Vector3");var r=i.n(o);const a=window[Symbol.for("X_ITE.X3D-8.6.10")].require("standard/Math/Numbers/Matrix4");var u=i.n(a);const h=window[Symbol.for("X_ITE.X3D-8.6.10")].require("standard/Math/Geometry/ViewVolume");var l=i.n(h);const c=window[Symbol.for("X_ITE.X3D-8.6.10")].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.6.10")].require("x_ite/Fields");var x=i.n(w);const _=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Base/X3DFieldDefinition");var m=i.n(_);const S=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Base/FieldDefinitionArray");var X=i.n(S);const M=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Components/Core/X3DChildNode");var T=i.n(M);const b=window[Symbol.for("X_ITE.X3D-8.6.10")].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.6.10")].require("x_ite/Base/X3DCast");var C=i.n(F);const E=window[Symbol.for("X_ITE.X3D-8.6.10")].require("standard/Math/Numbers/Vector2");var I=i.n(E);const L=window[Symbol.for("X_ITE.X3D-8.6.10")].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.6.10")].require("x_ite/Components/Grouping/X3DGroupingNode");var Q=i.n(Z);const J=window[Symbol.for("X_ITE.X3D-8.6.10")].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.6.10")].require("x_ite/Components/Layering/X3DLayerNode");var st=i.n(nt);const ot=window[Symbol.for("X_ITE.X3D-8.6.10")].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.6.10")].require("x_ite/Components/Text/X3DFontStyleNode");var ct=i.n(lt);const dt=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Browser/Text/X3DTextGeometry");var ft=i.n(dt);const pt=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Browser/Text/TextAlignment");var yt=i.n(pt);const gt=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Components/Texturing/PixelTexture");var wt=i.n(gt);const xt=window[Symbol.for("X_ITE.X3D-8.6.10")].require("x_ite/Components/Rendering/X3DGeometryNode");var _t=i.n(xt);const mt=window[Symbol.for("X_ITE.X3D-8.6.10")].require("standard/Math/Geometry/Box3");var St=i.n(mt);const Xt=window[Symbol.for("X_ITE.X3D-8.6.10")].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()),isTransparent: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)})()})();
|
|
1
|
+
/* X_ITE v8.6.12 */(()=>{"use strict";var t={355:t=>{t.exports=window[Symbol.for("X_ITE.X3D-8.6.12")].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.6.12")].require("x_ite/Components");var e=i.n(t);const n=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Components/Texturing/TextureProperties");var s=i.n(n);const o=window[Symbol.for("X_ITE.X3D-8.6.12")].require("standard/Math/Numbers/Vector3");var r=i.n(o);const a=window[Symbol.for("X_ITE.X3D-8.6.12")].require("standard/Math/Numbers/Matrix4");var u=i.n(a);const h=window[Symbol.for("X_ITE.X3D-8.6.12")].require("standard/Math/Geometry/ViewVolume");var l=i.n(h);const c=window[Symbol.for("X_ITE.X3D-8.6.12")].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.6.12")].require("x_ite/Fields");var x=i.n(w);const _=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Base/X3DFieldDefinition");var m=i.n(_);const S=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Base/FieldDefinitionArray");var X=i.n(S);const M=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Components/Core/X3DChildNode");var T=i.n(M);const b=window[Symbol.for("X_ITE.X3D-8.6.12")].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.6.12")].require("x_ite/Base/X3DCast");var C=i.n(F);const E=window[Symbol.for("X_ITE.X3D-8.6.12")].require("standard/Math/Numbers/Vector2");var I=i.n(E);const L=window[Symbol.for("X_ITE.X3D-8.6.12")].require("standard/Math/Numbers/Rotation4");var D=i.n(L);let U=0;const 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){const 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}const 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}const 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}const 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),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.6.12")].require("x_ite/Components/Grouping/X3DGroupingNode");var Q=i.n(Z);const J=window[Symbol.for("X_ITE.X3D-8.6.12")].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.matrix=new(u()),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()},getLayout:function(){return this.layoutNode},traverse:function(t,e){if(t!==$().COLLISION){if(this.viewportNode&&this.viewportNode.push(),this.layoutNode){const 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.6.12")].require("x_ite/Components/Layering/X3DLayerNode");var st=i.n(nt);const ot=window[Symbol.for("X_ITE.X3D-8.6.12")].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.6.12")].require("x_ite/Components/Text/X3DFontStyleNode");var ct=i.n(lt);const dt=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Browser/Text/X3DTextGeometry");var ft=i.n(dt);const pt=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Browser/Text/TextAlignment");var yt=i.n(pt);const gt=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Components/Texturing/PixelTexture");var wt=i.n(gt);const xt=window[Symbol.for("X_ITE.X3D-8.6.12")].require("x_ite/Components/Rendering/X3DGeometryNode");var _t=i.n(xt);const mt=window[Symbol.for("X_ITE.X3D-8.6.12")].require("standard/Math/Geometry/Box3");var St=i.n(mt);const Xt=window[Symbol.for("X_ITE.X3D-8.6.12")].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()),isTransparent: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)})()})();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* X_ITE v8.6.
|
|
1
|
+
/* X_ITE v8.6.12 */(() => { // webpackBootstrap
|
|
2
2
|
/******/ "use strict";
|
|
3
3
|
/******/ // The require scope
|
|
4
4
|
/******/ var __webpack_require__ = {};
|
|
@@ -39,28 +39,28 @@ var __webpack_exports__ = {};
|
|
|
39
39
|
// UNUSED EXPORTS: default
|
|
40
40
|
|
|
41
41
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components\")"
|
|
42
|
-
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.
|
|
42
|
+
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .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.6.
|
|
45
|
+
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Fields");
|
|
46
46
|
var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
|
|
47
47
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
|
|
48
|
-
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.
|
|
48
|
+
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Base/X3DFieldDefinition");
|
|
49
49
|
var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
|
|
50
50
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
|
|
51
|
-
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.
|
|
51
|
+
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Base/FieldDefinitionArray");
|
|
52
52
|
var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
|
|
53
53
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DNode\")"
|
|
54
|
-
const X3DNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.
|
|
54
|
+
const X3DNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Components/Core/X3DNode");
|
|
55
55
|
var X3DNode_default = /*#__PURE__*/__webpack_require__.n(X3DNode_namespaceObject);
|
|
56
56
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
|
|
57
|
-
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.
|
|
57
|
+
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Base/X3DConstants");
|
|
58
58
|
var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
|
|
59
59
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DCast\")"
|
|
60
|
-
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.
|
|
60
|
+
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Base/X3DCast");
|
|
61
61
|
var X3DCast_default = /*#__PURE__*/__webpack_require__.n(X3DCast_namespaceObject);
|
|
62
62
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
|
|
63
|
-
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.
|
|
63
|
+
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Namespace");
|
|
64
64
|
var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
|
|
65
65
|
;// CONCATENATED MODULE: ./src/x_ite/Components/NURBS/Contour2D.js
|
|
66
66
|
/*******************************************************************************
|
|
@@ -302,7 +302,7 @@ const X3DNurbsControlCurveNode_default_ = X3DNurbsControlCurveNode;
|
|
|
302
302
|
Namespace_default().set ("x_ite/Components/NURBS/X3DNurbsControlCurveNode", X3DNurbsControlCurveNode_default_);
|
|
303
303
|
/* harmony default export */ const NURBS_X3DNurbsControlCurveNode = (X3DNurbsControlCurveNode_default_);
|
|
304
304
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector3\")"
|
|
305
|
-
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.
|
|
305
|
+
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("standard/Math/Numbers/Vector3");
|
|
306
306
|
var Vector3_default = /*#__PURE__*/__webpack_require__.n(Vector3_namespaceObject);
|
|
307
307
|
;// CONCATENATED MODULE: ./src/x_ite/Components/NURBS/ContourPolyline2D.js
|
|
308
308
|
/*******************************************************************************
|
|
@@ -460,7 +460,7 @@ const ContourPolyline2D_default_ = ContourPolyline2D;
|
|
|
460
460
|
Namespace_default().set ("x_ite/Components/NURBS/ContourPolyline2D", ContourPolyline2D_default_);
|
|
461
461
|
/* harmony default export */ const NURBS_ContourPolyline2D = (ContourPolyline2D_default_);
|
|
462
462
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Rendering/X3DCoordinateNode\")"
|
|
463
|
-
const X3DCoordinateNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.
|
|
463
|
+
const X3DCoordinateNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Components/Rendering/X3DCoordinateNode");
|
|
464
464
|
var X3DCoordinateNode_default = /*#__PURE__*/__webpack_require__.n(X3DCoordinateNode_namespaceObject);
|
|
465
465
|
;// CONCATENATED MODULE: ./src/x_ite/Components/NURBS/CoordinateDouble.js
|
|
466
466
|
/*******************************************************************************
|
|
@@ -550,13 +550,13 @@ const CoordinateDouble_default_ = CoordinateDouble;
|
|
|
550
550
|
Namespace_default().set ("x_ite/Components/NURBS/CoordinateDouble", CoordinateDouble_default_);
|
|
551
551
|
/* harmony default export */ const NURBS_CoordinateDouble = (CoordinateDouble_default_);
|
|
552
552
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Rendering/X3DGeometryNode\")"
|
|
553
|
-
const X3DGeometryNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.
|
|
553
|
+
const X3DGeometryNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Components/Rendering/X3DGeometryNode");
|
|
554
554
|
var X3DGeometryNode_default = /*#__PURE__*/__webpack_require__.n(X3DGeometryNode_namespaceObject);
|
|
555
555
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector2\")"
|
|
556
|
-
const Vector2_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.
|
|
556
|
+
const Vector2_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("standard/Math/Numbers/Vector2");
|
|
557
557
|
var Vector2_default = /*#__PURE__*/__webpack_require__.n(Vector2_namespaceObject);
|
|
558
558
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector4\")"
|
|
559
|
-
const Vector4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.
|
|
559
|
+
const Vector4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("standard/Math/Numbers/Vector4");
|
|
560
560
|
var Vector4_default = /*#__PURE__*/__webpack_require__.n(Vector4_namespaceObject);
|
|
561
561
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/NURBS/NURBS.js
|
|
562
562
|
/*******************************************************************************
|
|
@@ -1108,7 +1108,7 @@ const X3DParametricGeometryNode_default_ = X3DParametricGeometryNode;
|
|
|
1108
1108
|
Namespace_default().set ("x_ite/Components/NURBS/X3DParametricGeometryNode", X3DParametricGeometryNode_default_);
|
|
1109
1109
|
/* harmony default export */ const NURBS_X3DParametricGeometryNode = (X3DParametricGeometryNode_default_);
|
|
1110
1110
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Rendering/X3DLineGeometryNode\")"
|
|
1111
|
-
const X3DLineGeometryNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.
|
|
1111
|
+
const X3DLineGeometryNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Components/Rendering/X3DLineGeometryNode");
|
|
1112
1112
|
var X3DLineGeometryNode_default = /*#__PURE__*/__webpack_require__.n(X3DLineGeometryNode_namespaceObject);
|
|
1113
1113
|
;// CONCATENATED MODULE: ./src/lib/nurbs/src/utils/is-ndarray.js
|
|
1114
1114
|
|
|
@@ -2160,7 +2160,7 @@ const support_default_ = function (cacheKey, nurbs, accessors, debug, checkBound
|
|
|
2160
2160
|
Namespace_default().set ("lib/nurbs/src/support", support_default_);
|
|
2161
2161
|
/* harmony default export */ const support = (support_default_);
|
|
2162
2162
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Geometry/Triangle3\")"
|
|
2163
|
-
const Triangle3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.
|
|
2163
|
+
const Triangle3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("standard/Math/Geometry/Triangle3");
|
|
2164
2164
|
var Triangle3_default = /*#__PURE__*/__webpack_require__.n(Triangle3_namespaceObject);
|
|
2165
2165
|
;// CONCATENATED MODULE: ./src/lib/nurbs/extras/sample.js
|
|
2166
2166
|
|
|
@@ -3157,13 +3157,13 @@ const NurbsCurve2D_default_ = NurbsCurve2D;
|
|
|
3157
3157
|
Namespace_default().set ("x_ite/Components/NURBS/NurbsCurve2D", NurbsCurve2D_default_);
|
|
3158
3158
|
/* harmony default export */ const NURBS_NurbsCurve2D = (NurbsCurve2D_default_);
|
|
3159
3159
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DChildNode\")"
|
|
3160
|
-
const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.
|
|
3160
|
+
const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Components/Core/X3DChildNode");
|
|
3161
3161
|
var X3DChildNode_default = /*#__PURE__*/__webpack_require__.n(X3DChildNode_namespaceObject);
|
|
3162
3162
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Interpolation/OrientationInterpolator\")"
|
|
3163
|
-
const OrientationInterpolator_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.
|
|
3163
|
+
const OrientationInterpolator_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Components/Interpolation/OrientationInterpolator");
|
|
3164
3164
|
var OrientationInterpolator_default = /*#__PURE__*/__webpack_require__.n(OrientationInterpolator_namespaceObject);
|
|
3165
3165
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Rotation4\")"
|
|
3166
|
-
const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.
|
|
3166
|
+
const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("standard/Math/Numbers/Rotation4");
|
|
3167
3167
|
var Rotation4_default = /*#__PURE__*/__webpack_require__.n(Rotation4_namespaceObject);
|
|
3168
3168
|
;// CONCATENATED MODULE: ./src/x_ite/Components/NURBS/NurbsOrientationInterpolator.js
|
|
3169
3169
|
/*******************************************************************************
|
|
@@ -3385,7 +3385,7 @@ const NurbsOrientationInterpolator_default_ = NurbsOrientationInterpolator;
|
|
|
3385
3385
|
Namespace_default().set ("x_ite/Components/NURBS/NurbsOrientationInterpolator", NurbsOrientationInterpolator_default_);
|
|
3386
3386
|
/* harmony default export */ const NURBS_NurbsOrientationInterpolator = (NurbsOrientationInterpolator_default_);
|
|
3387
3387
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Algorithm\")"
|
|
3388
|
-
const Algorithm_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.
|
|
3388
|
+
const Algorithm_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("standard/Math/Algorithm");
|
|
3389
3389
|
var Algorithm_default = /*#__PURE__*/__webpack_require__.n(Algorithm_namespaceObject);
|
|
3390
3390
|
;// CONCATENATED MODULE: ./src/x_ite/Components/NURBS/X3DNurbsSurfaceGeometryNode.js
|
|
3391
3391
|
/*******************************************************************************
|
|
@@ -3479,20 +3479,14 @@ X3DNurbsSurfaceGeometryNode .prototype = Object .assign (Object .create (NURBS_X
|
|
|
3479
3479
|
},
|
|
3480
3480
|
set_texCoord__: function ()
|
|
3481
3481
|
{
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
if (this .nurbsTexCoordNode)
|
|
3486
|
-
this .nurbsTexCoordNode .removeInterest ("requestRebuild", this);
|
|
3482
|
+
this .texCoordNode ?.removeInterest ("requestRebuild", this);
|
|
3483
|
+
this .nurbsTexCoordNode?.removeInterest ("requestRebuild", this);
|
|
3487
3484
|
|
|
3488
3485
|
this .texCoordNode = X3DCast_default() ((X3DConstants_default()).X3DTextureCoordinateNode, this ._texCoord);
|
|
3489
3486
|
this .nurbsTexCoordNode = X3DCast_default() ((X3DConstants_default()).NurbsTextureCoordinate, this ._texCoord);
|
|
3490
3487
|
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
if (this .nurbsTexCoordNode)
|
|
3495
|
-
this .nurbsTexCoordNode .addInterest ("requestRebuild", this);
|
|
3488
|
+
this .texCoordNode ?.addInterest ("requestRebuild", this);
|
|
3489
|
+
this .nurbsTexCoordNode?.addInterest ("requestRebuild", this);
|
|
3496
3490
|
},
|
|
3497
3491
|
set_controlPoint__: function ()
|
|
3498
3492
|
{
|
|
@@ -3878,7 +3872,7 @@ const NurbsPatchSurface_default_ = NurbsPatchSurface;
|
|
|
3878
3872
|
Namespace_default().set ("x_ite/Components/NURBS/NurbsPatchSurface", NurbsPatchSurface_default_);
|
|
3879
3873
|
/* harmony default export */ const NURBS_NurbsPatchSurface = (NurbsPatchSurface_default_);
|
|
3880
3874
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Interpolation/PositionInterpolator\")"
|
|
3881
|
-
const PositionInterpolator_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.
|
|
3875
|
+
const PositionInterpolator_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Components/Interpolation/PositionInterpolator");
|
|
3882
3876
|
var PositionInterpolator_default = /*#__PURE__*/__webpack_require__.n(PositionInterpolator_namespaceObject);
|
|
3883
3877
|
;// CONCATENATED MODULE: ./src/x_ite/Components/NURBS/NurbsPositionInterpolator.js
|
|
3884
3878
|
/*******************************************************************************
|
|
@@ -4088,7 +4082,7 @@ const NurbsPositionInterpolator_default_ = NurbsPositionInterpolator;
|
|
|
4088
4082
|
Namespace_default().set ("x_ite/Components/NURBS/NurbsPositionInterpolator", NurbsPositionInterpolator_default_);
|
|
4089
4083
|
/* harmony default export */ const NURBS_NurbsPositionInterpolator = (NurbsPositionInterpolator_default_);
|
|
4090
4084
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DBoundedObject\")"
|
|
4091
|
-
const X3DBoundedObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.
|
|
4085
|
+
const X3DBoundedObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Components/Grouping/X3DBoundedObject");
|
|
4092
4086
|
var X3DBoundedObject_default = /*#__PURE__*/__webpack_require__.n(X3DBoundedObject_namespaceObject);
|
|
4093
4087
|
;// CONCATENATED MODULE: ./src/x_ite/Components/NURBS/NurbsSet.js
|
|
4094
4088
|
/*******************************************************************************
|
|
@@ -4278,7 +4272,7 @@ const NurbsSet_default_ = NurbsSet;
|
|
|
4278
4272
|
Namespace_default().set ("x_ite/Components/NURBS/NurbsSet", NurbsSet_default_);
|
|
4279
4273
|
/* harmony default export */ const NURBS_NurbsSet = (NurbsSet_default_);
|
|
4280
4274
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Geometry/Line3\")"
|
|
4281
|
-
const Line3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.
|
|
4275
|
+
const Line3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("standard/Math/Geometry/Line3");
|
|
4282
4276
|
var Line3_default = /*#__PURE__*/__webpack_require__.n(Line3_namespaceObject);
|
|
4283
4277
|
;// CONCATENATED MODULE: ./src/standard/Math/Geometry/Triangle2.js
|
|
4284
4278
|
/*******************************************************************************
|
|
@@ -4542,7 +4536,7 @@ const NurbsSurfaceInterpolator_default_ = NurbsSurfaceInterpolator;
|
|
|
4542
4536
|
Namespace_default().set ("x_ite/Components/NURBS/NurbsSurfaceInterpolator", NurbsSurfaceInterpolator_default_);
|
|
4543
4537
|
/* harmony default export */ const NURBS_NurbsSurfaceInterpolator = (NurbsSurfaceInterpolator_default_);
|
|
4544
4538
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Geometry3D/Extrusion\")"
|
|
4545
|
-
const Extrusion_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.
|
|
4539
|
+
const Extrusion_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.6.12")] .require ("x_ite/Components/Geometry3D/Extrusion");
|
|
4546
4540
|
var Extrusion_default = /*#__PURE__*/__webpack_require__.n(Extrusion_namespaceObject);
|
|
4547
4541
|
;// CONCATENATED MODULE: ./src/x_ite/Components/NURBS/NurbsSweptSurface.js
|
|
4548
4542
|
/*******************************************************************************
|