x_ite 11.3.0 → 11.3.2
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/README.md +4 -4
- package/dist/assets/components/AnnotationComponent.js +2 -2
- package/dist/assets/components/AnnotationComponent.min.js +2 -2
- package/dist/assets/components/CADGeometryComponent.js +33 -22
- package/dist/assets/components/CADGeometryComponent.min.js +2 -2
- package/dist/assets/components/CubeMapTexturingComponent.js +4 -7
- package/dist/assets/components/CubeMapTexturingComponent.min.js +2 -2
- package/dist/assets/components/DISComponent.js +2 -2
- package/dist/assets/components/DISComponent.min.js +2 -2
- package/dist/assets/components/EventUtilitiesComponent.js +2 -2
- package/dist/assets/components/EventUtilitiesComponent.min.js +2 -2
- package/dist/assets/components/Geometry2DComponent.js +2 -2
- package/dist/assets/components/Geometry2DComponent.min.js +2 -2
- package/dist/assets/components/GeospatialComponent.js +182 -194
- package/dist/assets/components/GeospatialComponent.min.js +2 -2
- package/dist/assets/components/HAnimComponent.js +2 -2
- package/dist/assets/components/HAnimComponent.min.js +2 -2
- package/dist/assets/components/KeyDeviceSensorComponent.js +3 -3
- package/dist/assets/components/KeyDeviceSensorComponent.min.js +2 -2
- package/dist/assets/components/LayoutComponent.js +25 -9
- package/dist/assets/components/LayoutComponent.min.js +2 -2
- package/dist/assets/components/NURBSComponent.js +3 -3
- package/dist/assets/components/NURBSComponent.min.js +2 -2
- package/dist/assets/components/ParticleSystemsComponent.js +8 -8
- package/dist/assets/components/ParticleSystemsComponent.min.js +2 -2
- package/dist/assets/components/PickingComponent.js +71 -109
- package/dist/assets/components/PickingComponent.min.js +2 -2
- package/dist/assets/components/RigidBodyPhysicsComponent.js +207 -188
- package/dist/assets/components/RigidBodyPhysicsComponent.min.js +2 -2
- package/dist/assets/components/ScriptingComponent.js +2 -2
- package/dist/assets/components/ScriptingComponent.min.js +2 -2
- package/dist/assets/components/TextComponent.js +6 -6
- package/dist/assets/components/TextComponent.min.js +2 -2
- package/dist/assets/components/TextureProjectionComponent.js +2 -2
- package/dist/assets/components/TextureProjectionComponent.min.js +2 -2
- package/dist/assets/components/Texturing3DComponent.js +105 -105
- package/dist/assets/components/Texturing3DComponent.min.js +2 -2
- package/dist/assets/components/VolumeRenderingComponent.js +2 -2
- package/dist/assets/components/VolumeRenderingComponent.min.js +2 -2
- package/dist/assets/components/WebXRComponent.js +3 -3
- package/dist/assets/components/WebXRComponent.min.js +2 -2
- package/dist/assets/components/X_ITEComponent.js +5 -5
- package/dist/assets/components/X_ITEComponent.min.js +2 -2
- package/dist/assets/images/XR.svg +1 -92
- package/dist/example.html +1 -1
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.js +54071 -54010
- package/dist/x_ite.min.js +2 -2
- package/dist/x_ite.min.mjs +2 -2
- package/dist/x_ite.mjs +56735 -56674
- package/dist/x_ite.zip +0 -0
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* X_ITE v11.3.
|
|
2
|
-
const __X_ITE_X3D__ = window [Symbol .for ("X_ITE.X3D-11.3.
|
|
1
|
+
/* X_ITE v11.3.2 */
|
|
2
|
+
const __X_ITE_X3D__ = window [Symbol .for ("X_ITE.X3D-11.3.2")];
|
|
3
3
|
/******/ (() => { // webpackBootstrap
|
|
4
4
|
/******/ "use strict";
|
|
5
5
|
/******/ // The require scope
|
|
@@ -203,47 +203,46 @@ const __default__ = Spheroid3;
|
|
|
203
203
|
|
|
204
204
|
|
|
205
205
|
|
|
206
|
-
const ReferenceEllipsoids =
|
|
207
|
-
{
|
|
206
|
+
const ReferenceEllipsoids = new Map ([
|
|
208
207
|
// Earth
|
|
209
208
|
// X3D Specification
|
|
210
|
-
AA
|
|
211
|
-
AM
|
|
212
|
-
AN
|
|
213
|
-
BN
|
|
214
|
-
BR
|
|
215
|
-
CC
|
|
216
|
-
CD
|
|
217
|
-
EA
|
|
218
|
-
EB
|
|
219
|
-
EC
|
|
220
|
-
ED
|
|
221
|
-
EE
|
|
222
|
-
EF
|
|
223
|
-
FA
|
|
224
|
-
HE
|
|
225
|
-
HO
|
|
226
|
-
ID
|
|
227
|
-
IN
|
|
228
|
-
KA
|
|
229
|
-
RF
|
|
230
|
-
SA
|
|
231
|
-
WD
|
|
232
|
-
WE
|
|
209
|
+
["AA", new Geometry_Spheroid3 (6377563.396, 299.3249646, true)], // Airy 1830
|
|
210
|
+
["AM", new Geometry_Spheroid3 (6377340.189, 299.3249646, true)], // Modified Airy
|
|
211
|
+
["AN", new Geometry_Spheroid3 (6378160, 298.25, true)], // Australian National
|
|
212
|
+
["BN", new Geometry_Spheroid3 (6377483.865, 299.1528128, true)], // Bessel 1841 (Namibia)
|
|
213
|
+
["BR", new Geometry_Spheroid3 (6377397.155, 299.1528128, true)], // Bessel 1841 (Ethiopia Indonesia...)
|
|
214
|
+
["CC", new Geometry_Spheroid3 (6378206.4, 294.9786982, true)], // Clarke 1866
|
|
215
|
+
["CD", new Geometry_Spheroid3 (6378249.145, 293.465, true)], // Clarke 1880
|
|
216
|
+
["EA", new Geometry_Spheroid3 (6377276.345, 300.8017, true)], // Everest (India 1830)
|
|
217
|
+
["EB", new Geometry_Spheroid3 (6377298.556, 300.8017, true)], // Everest (Sabah & Sarawak)
|
|
218
|
+
["EC", new Geometry_Spheroid3 (6377301.243, 300.8017, true)], // Everest (India 1956)
|
|
219
|
+
["ED", new Geometry_Spheroid3 (6377295.664, 300.8017, true)], // Everest (W. Malaysia 1969)
|
|
220
|
+
["EE", new Geometry_Spheroid3 (6377304.063, 300.8017, true)], // Everest (W. Malaysia & Singapore 1948)
|
|
221
|
+
["EF", new Geometry_Spheroid3 (6377309.613, 300.8017, true)], // Everest (Pakistan)
|
|
222
|
+
["FA", new Geometry_Spheroid3 (6378155, 298.3, true)], // Modified Fischer 1960
|
|
223
|
+
["HE", new Geometry_Spheroid3 (6378200, 298.3, true)], // Helmert 1906
|
|
224
|
+
["HO", new Geometry_Spheroid3 (6378270, 297, true)], // Hough 1960
|
|
225
|
+
["ID", new Geometry_Spheroid3 (6378160, 298.247, true)], // Indonesian 1974
|
|
226
|
+
["IN", new Geometry_Spheroid3 (6378388, 297, true)], // International 1924
|
|
227
|
+
["KA", new Geometry_Spheroid3 (6378245, 298.3, true)], // Krassovsky 1940
|
|
228
|
+
["RF", new Geometry_Spheroid3 (6378137, 298.257222101, true)], // Geodetic Reference System 1980 (GRS 80)
|
|
229
|
+
["SA", new Geometry_Spheroid3 (6378160, 298.25, true)], // South American 1969
|
|
230
|
+
["WD", new Geometry_Spheroid3 (6378135, 298.26, true)], // WGS 72
|
|
231
|
+
["WE", new Geometry_Spheroid3 (6378137, 298.257223563, true)], // WGS 84
|
|
233
232
|
// Solar System
|
|
234
|
-
// https
|
|
233
|
+
// https:,//en.wikipedia.de
|
|
235
234
|
// Can someone give me more accurate parameters.
|
|
236
|
-
SUN
|
|
237
|
-
MERCURY
|
|
238
|
-
VENUS
|
|
239
|
-
MOON
|
|
240
|
-
MARS
|
|
241
|
-
JUPITER
|
|
242
|
-
SATURN
|
|
243
|
-
URANUS
|
|
244
|
-
NEPTUNE
|
|
245
|
-
PLUTO
|
|
246
|
-
|
|
235
|
+
["SUN", new Geometry_Spheroid3 (696342000, 1 / 9e-6, true)],
|
|
236
|
+
["MERCURY", new Geometry_Spheroid3 (2439700, 2439700)],
|
|
237
|
+
["VENUS", new Geometry_Spheroid3 (6051800, 6051800)],
|
|
238
|
+
["MOON", new Geometry_Spheroid3 (1738140, 1735970)],
|
|
239
|
+
["MARS", new Geometry_Spheroid3 (3395428, 3377678)], // https",//adsabs.harvard.edu/abs/2010EM%26P..106....1A
|
|
240
|
+
["JUPITER", new Geometry_Spheroid3 (71492000, 66854000)],
|
|
241
|
+
["SATURN", new Geometry_Spheroid3 (60268000, 54364000)],
|
|
242
|
+
["URANUS", new Geometry_Spheroid3 (2555000, 24973000)],
|
|
243
|
+
["NEPTUNE", new Geometry_Spheroid3 (24764000, 24341000)],
|
|
244
|
+
["PLUTO", new Geometry_Spheroid3 (1153000, 1153000)],
|
|
245
|
+
]);
|
|
247
246
|
|
|
248
247
|
const ReferenceEllipsoids_default_ = ReferenceEllipsoids;
|
|
249
248
|
;
|
|
@@ -787,14 +786,14 @@ const
|
|
|
787
786
|
UTM = i ++,
|
|
788
787
|
GC = i ++;
|
|
789
788
|
|
|
790
|
-
const CoordinateSystems =
|
|
791
|
-
GD
|
|
792
|
-
GDC
|
|
793
|
-
UTM
|
|
794
|
-
GC
|
|
795
|
-
GCC
|
|
796
|
-
GS
|
|
797
|
-
|
|
789
|
+
const CoordinateSystems = new Map ([
|
|
790
|
+
["GD", GD],
|
|
791
|
+
["GDC", GD],
|
|
792
|
+
["UTM", UTM],
|
|
793
|
+
["GC", GC],
|
|
794
|
+
["GCC", GC],
|
|
795
|
+
["GS", GC],
|
|
796
|
+
]);
|
|
798
797
|
|
|
799
798
|
const Zone = /^Z(\d+)$/;
|
|
800
799
|
|
|
@@ -826,7 +825,7 @@ const GeospatialObject =
|
|
|
826
825
|
}
|
|
827
826
|
}
|
|
828
827
|
|
|
829
|
-
return new Geospatial_Geodetic (Geospatial_ReferenceEllipsoids .WE, true, radians);
|
|
828
|
+
return new Geospatial_Geodetic (Geospatial_ReferenceEllipsoids .get ("WE"), true, radians);
|
|
830
829
|
},
|
|
831
830
|
getElevationFrame (geoSystem, radians)
|
|
832
831
|
{
|
|
@@ -836,7 +835,7 @@ const GeospatialObject =
|
|
|
836
835
|
{
|
|
837
836
|
for (const gs of geoSystem)
|
|
838
837
|
{
|
|
839
|
-
const coordinateSystem = CoordinateSystems
|
|
838
|
+
const coordinateSystem = CoordinateSystems .get (gs);
|
|
840
839
|
|
|
841
840
|
if (coordinateSystem !== undefined)
|
|
842
841
|
return coordinateSystem;
|
|
@@ -848,26 +847,26 @@ const GeospatialObject =
|
|
|
848
847
|
{
|
|
849
848
|
for (const gs of geoSystem)
|
|
850
849
|
{
|
|
851
|
-
const ellipsoid = Geospatial_ReferenceEllipsoids
|
|
850
|
+
const ellipsoid = Geospatial_ReferenceEllipsoids .get (gs);
|
|
852
851
|
|
|
853
852
|
if (ellipsoid !== undefined)
|
|
854
853
|
return ellipsoid;
|
|
855
854
|
}
|
|
856
855
|
|
|
857
|
-
return Geospatial_ReferenceEllipsoids .WE;
|
|
856
|
+
return Geospatial_ReferenceEllipsoids .get ("WE");
|
|
858
857
|
},
|
|
859
|
-
getEllipsoidString (geoSystem)
|
|
860
|
-
{
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
858
|
+
// getEllipsoidString (geoSystem)
|
|
859
|
+
// {
|
|
860
|
+
// for (const gs of geoSystem)
|
|
861
|
+
// {
|
|
862
|
+
// const ellipsoid = ReferenceEllipsoids .get (gs);
|
|
864
863
|
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
864
|
+
// if (ellipsoid !== undefined)
|
|
865
|
+
// return gs;
|
|
866
|
+
// }
|
|
868
867
|
|
|
869
|
-
|
|
870
|
-
},
|
|
868
|
+
// return "WE";
|
|
869
|
+
// },
|
|
871
870
|
isStandardOrder (geoSystem)
|
|
872
871
|
{
|
|
873
872
|
switch (this .getCoordinateSystem (geoSystem))
|
|
@@ -1070,10 +1069,10 @@ Object .assign (X3DGeospatialObject .prototype,
|
|
|
1070
1069
|
if (this .geoOriginNode)
|
|
1071
1070
|
{
|
|
1072
1071
|
// Position
|
|
1073
|
-
|
|
1072
|
+
const t = this .origin;
|
|
1074
1073
|
|
|
1075
1074
|
// Let's work out the orientation at that location in order
|
|
1076
|
-
// to maintain a view where +Y is in the direction of
|
|
1075
|
+
// to maintain a view where +Y is in the direction of gravitational
|
|
1077
1076
|
// up for that region of the planet's surface. This will be the
|
|
1078
1077
|
// value of the rotation matrix for the transform.
|
|
1079
1078
|
|
|
@@ -1141,7 +1140,7 @@ Object .assign (X3DGeospatialObject .prototype,
|
|
|
1141
1140
|
},
|
|
1142
1141
|
getLocationMatrix (geoPoint, result)
|
|
1143
1142
|
{
|
|
1144
|
-
|
|
1143
|
+
const
|
|
1145
1144
|
origin = this .origin,
|
|
1146
1145
|
locationMatrix = getStandardLocationMatrix .call (this, geoPoint, result);
|
|
1147
1146
|
|
|
@@ -1152,7 +1151,8 @@ Object .assign (X3DGeospatialObject .prototype,
|
|
|
1152
1151
|
|
|
1153
1152
|
return locationMatrix;
|
|
1154
1153
|
},
|
|
1155
|
-
dispose ()
|
|
1154
|
+
dispose ()
|
|
1155
|
+
{ },
|
|
1156
1156
|
});
|
|
1157
1157
|
|
|
1158
1158
|
function getCoordRotateYUp (geoPoint, result)
|
|
@@ -1870,9 +1870,6 @@ var external_X_ITE_X3D_Group_default = /*#__PURE__*/__webpack_require__.n(extern
|
|
|
1870
1870
|
;// external "__X_ITE_X3D__ .Inline"
|
|
1871
1871
|
const external_X_ITE_X3D_Inline_namespaceObject = __X_ITE_X3D__ .Inline;
|
|
1872
1872
|
var external_X_ITE_X3D_Inline_default = /*#__PURE__*/__webpack_require__.n(external_X_ITE_X3D_Inline_namespaceObject);
|
|
1873
|
-
;// external "__X_ITE_X3D__ .Box3"
|
|
1874
|
-
const external_X_ITE_X3D_Box3_namespaceObject = __X_ITE_X3D__ .Box3;
|
|
1875
|
-
var external_X_ITE_X3D_Box3_default = /*#__PURE__*/__webpack_require__.n(external_X_ITE_X3D_Box3_namespaceObject);
|
|
1876
1873
|
;// ./src/x_ite/Components/Geospatial/GeoLOD.js
|
|
1877
1874
|
/*******************************************************************************
|
|
1878
1875
|
*
|
|
@@ -1935,7 +1932,6 @@ var external_X_ITE_X3D_Box3_default = /*#__PURE__*/__webpack_require__.n(externa
|
|
|
1935
1932
|
|
|
1936
1933
|
|
|
1937
1934
|
|
|
1938
|
-
|
|
1939
1935
|
function GeoLOD (executionContext)
|
|
1940
1936
|
{
|
|
1941
1937
|
external_X_ITE_X3D_X3DChildNode_default().call (this, executionContext);
|
|
@@ -1953,15 +1949,14 @@ function GeoLOD (executionContext)
|
|
|
1953
1949
|
// Private properties
|
|
1954
1950
|
|
|
1955
1951
|
this .unload = false;
|
|
1956
|
-
this .
|
|
1957
|
-
this .
|
|
1958
|
-
this .
|
|
1959
|
-
this .
|
|
1960
|
-
this .
|
|
1961
|
-
this .
|
|
1962
|
-
this .
|
|
1952
|
+
this .rootGroupNode = new (external_X_ITE_X3D_Group_default()) (this .getBrowser () .getPrivateScene ());
|
|
1953
|
+
this .rootInlineNode = new (external_X_ITE_X3D_Inline_default()) (executionContext);
|
|
1954
|
+
this .child1InlineNode = new (external_X_ITE_X3D_Inline_default()) (executionContext);
|
|
1955
|
+
this .child2InlineNode = new (external_X_ITE_X3D_Inline_default()) (executionContext);
|
|
1956
|
+
this .child3InlineNode = new (external_X_ITE_X3D_Inline_default()) (executionContext);
|
|
1957
|
+
this .child4InlineNode = new (external_X_ITE_X3D_Inline_default()) (executionContext);
|
|
1958
|
+
this .childInlineNodes = [this .child1InlineNode, this .child2InlineNode, this .child3InlineNode, this .child4InlineNode];
|
|
1963
1959
|
this .childrenLoaded = false;
|
|
1964
|
-
this .childBBox = new (external_X_ITE_X3D_Box3_default()) ();
|
|
1965
1960
|
this .keepCurrentLevel = false;
|
|
1966
1961
|
this .modelViewMatrix = new (external_X_ITE_X3D_Matrix4_default()) ();
|
|
1967
1962
|
}
|
|
@@ -1976,37 +1971,37 @@ Object .assign (Object .setPrototypeOf (GeoLOD .prototype, (external_X_ITE_X3D_X
|
|
|
1976
1971
|
external_X_ITE_X3D_X3DBoundedObject_default().prototype .initialize .call (this);
|
|
1977
1972
|
Geospatial_X3DGeospatialObject .prototype .initialize .call (this);
|
|
1978
1973
|
|
|
1979
|
-
this ._rootNode .addFieldInterest (this .
|
|
1974
|
+
this ._rootNode .addFieldInterest (this .rootGroupNode ._children);
|
|
1980
1975
|
|
|
1981
|
-
this .
|
|
1982
|
-
this .
|
|
1976
|
+
this .rootGroupNode ._children = this ._rootNode;
|
|
1977
|
+
this .rootGroupNode .setPrivate (true);
|
|
1983
1978
|
|
|
1984
|
-
this .
|
|
1979
|
+
this .rootInlineNode ._loadState .addInterest ("set_rootLoadState__", this);
|
|
1985
1980
|
|
|
1986
|
-
for (const
|
|
1987
|
-
|
|
1981
|
+
for (const childInlineNode of this .childInlineNodes)
|
|
1982
|
+
childInlineNode ._loadState .addInterest ("set_childLoadState__", this);
|
|
1988
1983
|
|
|
1989
|
-
this ._rootUrl .addFieldInterest (this .
|
|
1990
|
-
this ._child1Url .addFieldInterest (this .
|
|
1991
|
-
this ._child2Url .addFieldInterest (this .
|
|
1992
|
-
this ._child3Url .addFieldInterest (this .
|
|
1993
|
-
this ._child4Url .addFieldInterest (this .
|
|
1984
|
+
this ._rootUrl .addFieldInterest (this .rootInlineNode ._url);
|
|
1985
|
+
this ._child1Url .addFieldInterest (this .child1InlineNode ._url);
|
|
1986
|
+
this ._child2Url .addFieldInterest (this .child2InlineNode ._url);
|
|
1987
|
+
this ._child3Url .addFieldInterest (this .child3InlineNode ._url);
|
|
1988
|
+
this ._child4Url .addFieldInterest (this .child4InlineNode ._url);
|
|
1994
1989
|
|
|
1995
|
-
this .
|
|
1990
|
+
this .rootInlineNode ._load = true;
|
|
1996
1991
|
|
|
1997
|
-
for (const
|
|
1998
|
-
|
|
1992
|
+
for (const childInlineNode of this .childInlineNodes)
|
|
1993
|
+
childInlineNode ._load = false;
|
|
1999
1994
|
|
|
2000
|
-
this .
|
|
2001
|
-
this .
|
|
2002
|
-
this .
|
|
2003
|
-
this .
|
|
2004
|
-
this .
|
|
1995
|
+
this .rootInlineNode ._url = this ._rootUrl;
|
|
1996
|
+
this .child1InlineNode ._url = this ._child1Url;
|
|
1997
|
+
this .child2InlineNode ._url = this ._child2Url;
|
|
1998
|
+
this .child3InlineNode ._url = this ._child3Url;
|
|
1999
|
+
this .child4InlineNode ._url = this ._child4Url;
|
|
2005
2000
|
|
|
2006
|
-
this .
|
|
2001
|
+
this .rootInlineNode .setup ();
|
|
2007
2002
|
|
|
2008
|
-
for (const
|
|
2009
|
-
|
|
2003
|
+
for (const childInlineNode of this .childInlineNodes)
|
|
2004
|
+
childInlineNode .setup ();
|
|
2010
2005
|
},
|
|
2011
2006
|
getBBox (bbox, shadows)
|
|
2012
2007
|
{
|
|
@@ -2017,25 +2012,15 @@ Object .assign (Object .setPrototypeOf (GeoLOD .prototype, (external_X_ITE_X3D_X
|
|
|
2017
2012
|
case 0:
|
|
2018
2013
|
{
|
|
2019
2014
|
if (this ._rootNode .length)
|
|
2020
|
-
return this .
|
|
2015
|
+
return this .rootGroupNode .getBBox (bbox, shadows);
|
|
2021
2016
|
|
|
2022
|
-
return this .
|
|
2017
|
+
return this .rootInlineNode .getBBox (bbox, shadows);
|
|
2023
2018
|
}
|
|
2024
2019
|
case 1:
|
|
2025
2020
|
{
|
|
2026
|
-
|
|
2027
|
-
const childBBox = this .childBBox;
|
|
2028
|
-
|
|
2029
|
-
bbox .set ();
|
|
2030
|
-
|
|
2031
|
-
for (const childInline of this .childInlines)
|
|
2032
|
-
bbox .add (childInline .getBBox (childBBox, shadows));
|
|
2033
|
-
|
|
2034
|
-
return bbox;
|
|
2021
|
+
return external_X_ITE_X3D_X3DBoundedObject_default().prototype .getBBox .call (this, this .childInlineNodes, bbox, shadows);
|
|
2035
2022
|
}
|
|
2036
2023
|
}
|
|
2037
|
-
|
|
2038
|
-
return bbox .set ();
|
|
2039
2024
|
}
|
|
2040
2025
|
|
|
2041
2026
|
return bbox .set (this ._bboxSize .getValue (), this ._bboxCenter .getValue ());
|
|
@@ -2048,62 +2033,53 @@ Object .assign (Object .setPrototypeOf (GeoLOD .prototype, (external_X_ITE_X3D_X
|
|
|
2048
2033
|
if (this ._rootNode .length)
|
|
2049
2034
|
return;
|
|
2050
2035
|
|
|
2051
|
-
if (this .
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2036
|
+
if (this .rootInlineNode .checkLoadState () !== (external_X_ITE_X3D_X3DConstants_default()).COMPLETE_STATE)
|
|
2037
|
+
return;
|
|
2038
|
+
|
|
2039
|
+
this .childrenLoaded = false;
|
|
2040
|
+
this ._children = this .rootInlineNode .getInternalScene () .getRootNodes ();
|
|
2056
2041
|
},
|
|
2057
2042
|
set_childLoadState__ ()
|
|
2058
2043
|
{
|
|
2059
2044
|
if (this ._level_changed .getValue () !== 1)
|
|
2060
2045
|
return;
|
|
2061
2046
|
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
for (const childInline of this .childInlines)
|
|
2065
|
-
{
|
|
2066
|
-
if (childInline .checkLoadState () === (external_X_ITE_X3D_X3DConstants_default()).COMPLETE_STATE ||
|
|
2067
|
-
childInline .checkLoadState () === (external_X_ITE_X3D_X3DConstants_default()).FAILED_STATE)
|
|
2068
|
-
++ loaded;
|
|
2069
|
-
}
|
|
2070
|
-
|
|
2071
|
-
if (loaded === 4)
|
|
2047
|
+
const loaded = this .childInlineNodes .reduce ((previous, childInlineNode) =>
|
|
2072
2048
|
{
|
|
2073
|
-
|
|
2049
|
+
return previous + (childInlineNode .checkLoadState () === (external_X_ITE_X3D_X3DConstants_default()).COMPLETE_STATE ||
|
|
2050
|
+
childInlineNode .checkLoadState () === (external_X_ITE_X3D_X3DConstants_default()).FAILED_STATE);
|
|
2051
|
+
},
|
|
2052
|
+
0)
|
|
2074
2053
|
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
children .length = 0;
|
|
2078
|
-
|
|
2079
|
-
for (const childInline of this .childInlines)
|
|
2080
|
-
{
|
|
2081
|
-
const rootNodes = childInline .getInternalScene () .getRootNodes ();
|
|
2054
|
+
if (loaded !== 4)
|
|
2055
|
+
return;
|
|
2082
2056
|
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2057
|
+
this .childrenLoaded = true;
|
|
2058
|
+
this ._children = this .childInlineNodes .flatMap (childInlineNode => Array .from (childInlineNode .getInternalScene () .getRootNodes ()));
|
|
2059
|
+
},
|
|
2060
|
+
set_childBoundedObject__ ()
|
|
2061
|
+
{
|
|
2062
|
+
this .setBoundedObject (this .childInlineNodes .some (childInlineNode => childInlineNode .isBoundedObject ()));
|
|
2087
2063
|
},
|
|
2088
2064
|
set_childPointingObject__ ()
|
|
2089
2065
|
{
|
|
2090
|
-
this .setPointingObject (this .
|
|
2066
|
+
this .setPointingObject (this .childInlineNodes .some (childInlineNode => childInlineNode .isPointingObject ()));
|
|
2091
2067
|
},
|
|
2092
2068
|
set_childCameraObject__ ()
|
|
2093
2069
|
{
|
|
2094
|
-
this .setCameraObject (this .
|
|
2070
|
+
this .setCameraObject (this .childInlineNodes .some (childInlineNode => childInlineNode .isCameraObject ()));
|
|
2095
2071
|
},
|
|
2096
2072
|
set_childPickableObject__ ()
|
|
2097
2073
|
{
|
|
2098
|
-
this .setPickableObject (this .
|
|
2074
|
+
this .setPickableObject (this .childInlineNodes .some (childInlineNode => childInlineNode .isPickableObject ()));
|
|
2099
2075
|
},
|
|
2100
2076
|
set_childCollisionObject__ ()
|
|
2101
2077
|
{
|
|
2102
|
-
this .setCollisionObject (this .
|
|
2078
|
+
this .setCollisionObject (this .childInlineNodes .some (childInlineNode => childInlineNode .isCollisionObject ()));
|
|
2103
2079
|
},
|
|
2104
2080
|
set_childShadowObject__ ()
|
|
2105
2081
|
{
|
|
2106
|
-
this .setShadowObject (this .
|
|
2082
|
+
this .setShadowObject (this .childInlineNodes .some (childInlineNode => childInlineNode .isShadowObject ()));
|
|
2107
2083
|
},
|
|
2108
2084
|
getLevel (modelViewMatrix)
|
|
2109
2085
|
{
|
|
@@ -2114,7 +2090,7 @@ Object .assign (Object .setPrototypeOf (GeoLOD .prototype, (external_X_ITE_X3D_X
|
|
|
2114
2090
|
|
|
2115
2091
|
return 0;
|
|
2116
2092
|
},
|
|
2117
|
-
getDistance: (
|
|
2093
|
+
getDistance: (() =>
|
|
2118
2094
|
{
|
|
2119
2095
|
const center = new (external_X_ITE_X3D_Vector3_default()) ();
|
|
2120
2096
|
|
|
@@ -2154,37 +2130,38 @@ Object .assign (Object .setPrototypeOf (GeoLOD .prototype, (external_X_ITE_X3D_X
|
|
|
2154
2130
|
{
|
|
2155
2131
|
case 0:
|
|
2156
2132
|
{
|
|
2157
|
-
for (const
|
|
2133
|
+
for (const childInlineNode of this .childInlineNodes)
|
|
2158
2134
|
{
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2135
|
+
childInlineNode ._isBoundedObject .removeInterest ("set_childBoundedObject__", this);
|
|
2136
|
+
childInlineNode ._isPointingObject .removeInterest ("set_childPointingObject__", this);
|
|
2137
|
+
childInlineNode ._isCameraObject .removeInterest ("set_childCameraObject__", this);
|
|
2138
|
+
childInlineNode ._isPickableObject .removeInterest ("set_childPickableObject__", this);
|
|
2139
|
+
childInlineNode ._isCollisionObject .removeInterest ("set_childCollisionObject__", this);
|
|
2140
|
+
childInlineNode ._isShadowObject .removeInterest ("set_childShadowObject__", this);
|
|
2164
2141
|
}
|
|
2165
2142
|
|
|
2166
2143
|
if (this ._rootNode .length)
|
|
2167
2144
|
{
|
|
2168
|
-
this .connectChildNode (this .
|
|
2145
|
+
this .connectChildNode (this .rootGroupNode, [(external_X_ITE_X3D_TraverseType_default()).DISPLAY]);
|
|
2169
2146
|
|
|
2170
2147
|
this ._children = this ._rootNode;
|
|
2171
2148
|
this .childrenLoaded = false;
|
|
2172
2149
|
}
|
|
2173
2150
|
else
|
|
2174
2151
|
{
|
|
2175
|
-
if (this .
|
|
2152
|
+
if (this .rootInlineNode .checkLoadState () == (external_X_ITE_X3D_X3DConstants_default()).COMPLETE_STATE)
|
|
2176
2153
|
{
|
|
2177
|
-
this .connectChildNode (this .
|
|
2154
|
+
this .connectChildNode (this .rootInlineNode, [(external_X_ITE_X3D_TraverseType_default()).DISPLAY]);
|
|
2178
2155
|
|
|
2179
|
-
this ._children = this .
|
|
2156
|
+
this ._children = this .rootInlineNode .getInternalScene () .getRootNodes ();
|
|
2180
2157
|
this .childrenLoaded = false;
|
|
2181
2158
|
}
|
|
2182
2159
|
}
|
|
2183
2160
|
|
|
2184
2161
|
if (this .unload)
|
|
2185
2162
|
{
|
|
2186
|
-
for (const
|
|
2187
|
-
|
|
2163
|
+
for (const childInlineNode of this .childInlineNodes)
|
|
2164
|
+
childInlineNode ._load = false;
|
|
2188
2165
|
}
|
|
2189
2166
|
|
|
2190
2167
|
break;
|
|
@@ -2192,33 +2169,35 @@ Object .assign (Object .setPrototypeOf (GeoLOD .prototype, (external_X_ITE_X3D_X
|
|
|
2192
2169
|
case 1:
|
|
2193
2170
|
{
|
|
2194
2171
|
if (this ._rootNode .length)
|
|
2195
|
-
this .disconnectChildNode (this .
|
|
2172
|
+
this .disconnectChildNode (this .rootGroupNode);
|
|
2196
2173
|
else
|
|
2197
|
-
this .disconnectChildNode (this .
|
|
2174
|
+
this .disconnectChildNode (this .rootInlineNode);
|
|
2198
2175
|
|
|
2199
|
-
for (const
|
|
2176
|
+
for (const childInlineNode of this .childInlineNodes)
|
|
2200
2177
|
{
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2178
|
+
childInlineNode ._isBoundedObject .addInterest ("set_childBoundedObject__", this);
|
|
2179
|
+
childInlineNode ._isPointingObject .addInterest ("set_childPointingObject__", this);
|
|
2180
|
+
childInlineNode ._isCameraObject .addInterest ("set_childCameraObject__", this);
|
|
2181
|
+
childInlineNode ._isPickableObject .addInterest ("set_childPickableObject__", this);
|
|
2182
|
+
childInlineNode ._isCollisionObject .addInterest ("set_childCollisionObject__", this);
|
|
2183
|
+
childInlineNode ._isShadowObject .addInterest ("set_childShadowObject__", this);
|
|
2206
2184
|
}
|
|
2207
2185
|
|
|
2186
|
+
this .set_childBoundedObject__ ();
|
|
2208
2187
|
this .set_childPointingObject__ ();
|
|
2209
2188
|
this .set_childCameraObject__ ();
|
|
2210
2189
|
this .set_childPickableObject__ ();
|
|
2211
2190
|
this .set_childCollisionObject__ ();
|
|
2212
2191
|
this .set_childShadowObject__ ();
|
|
2213
2192
|
|
|
2214
|
-
if (this .
|
|
2193
|
+
if (this .child1InlineNode ._load .getValue ())
|
|
2215
2194
|
{
|
|
2216
2195
|
this .set_childLoadState__ ();
|
|
2217
2196
|
}
|
|
2218
2197
|
else
|
|
2219
2198
|
{
|
|
2220
|
-
for (const
|
|
2221
|
-
|
|
2199
|
+
for (const childInlineNode of this .childInlineNodes)
|
|
2200
|
+
childInlineNode ._load = true;
|
|
2222
2201
|
}
|
|
2223
2202
|
|
|
2224
2203
|
break;
|
|
@@ -2243,16 +2222,16 @@ Object .assign (Object .setPrototypeOf (GeoLOD .prototype, (external_X_ITE_X3D_X
|
|
|
2243
2222
|
case 0:
|
|
2244
2223
|
{
|
|
2245
2224
|
if (this ._rootNode .length)
|
|
2246
|
-
this .
|
|
2225
|
+
this .rootGroupNode .traverse (type, renderObject);
|
|
2247
2226
|
else
|
|
2248
|
-
this .
|
|
2227
|
+
this .rootInlineNode .traverse (type, renderObject);
|
|
2249
2228
|
|
|
2250
2229
|
break;
|
|
2251
2230
|
}
|
|
2252
2231
|
case 1:
|
|
2253
2232
|
{
|
|
2254
|
-
for (const
|
|
2255
|
-
|
|
2233
|
+
for (const childInlineNode of this .childInlineNodes)
|
|
2234
|
+
childInlineNode .traverse (type, renderObject);
|
|
2256
2235
|
|
|
2257
2236
|
break;
|
|
2258
2237
|
}
|
|
@@ -2358,8 +2337,6 @@ var external_X_ITE_X3D_X3DTransformMatrix3DNode_default = /*#__PURE__*/__webpack
|
|
|
2358
2337
|
|
|
2359
2338
|
|
|
2360
2339
|
|
|
2361
|
-
var locationMatrix = new (external_X_ITE_X3D_Matrix4_default()) ();
|
|
2362
|
-
|
|
2363
2340
|
function GeoLocation (executionContext)
|
|
2364
2341
|
{
|
|
2365
2342
|
external_X_ITE_X3D_X3DTransformMatrix3DNode_default().call (this, executionContext);
|
|
@@ -2380,10 +2357,15 @@ Object .assign (Object .setPrototypeOf (GeoLocation .prototype, (external_X_ITE_
|
|
|
2380
2357
|
|
|
2381
2358
|
this .eventsProcessed ();
|
|
2382
2359
|
},
|
|
2383
|
-
eventsProcessed ()
|
|
2360
|
+
eventsProcessed: (() =>
|
|
2384
2361
|
{
|
|
2385
|
-
|
|
2386
|
-
|
|
2362
|
+
const locationMatrix = new (external_X_ITE_X3D_Matrix4_default()) ();
|
|
2363
|
+
|
|
2364
|
+
return function ()
|
|
2365
|
+
{
|
|
2366
|
+
this .setMatrix (this .getLocationMatrix (this ._geoCoords .getValue (), locationMatrix));
|
|
2367
|
+
};
|
|
2368
|
+
})(),
|
|
2387
2369
|
dispose ()
|
|
2388
2370
|
{
|
|
2389
2371
|
Geospatial_X3DGeospatialObject .prototype .dispose .call (this);
|
|
@@ -2843,8 +2825,6 @@ var external_X_ITE_X3D_ProximitySensor_default = /*#__PURE__*/__webpack_require_
|
|
|
2843
2825
|
|
|
2844
2826
|
|
|
2845
2827
|
|
|
2846
|
-
var geoCoord = new (external_X_ITE_X3D_Vector3_default()) ();
|
|
2847
|
-
|
|
2848
2828
|
function GeoProximitySensor (executionContext)
|
|
2849
2829
|
{
|
|
2850
2830
|
external_X_ITE_X3D_X3DEnvironmentalSensorNode_default().call (this, executionContext);
|
|
@@ -2893,10 +2873,15 @@ Object .assign (Object .setPrototypeOf (GeoProximitySensor .prototype, (external
|
|
|
2893
2873
|
|
|
2894
2874
|
this .connectChildNode (this .proximitySensor);
|
|
2895
2875
|
},
|
|
2896
|
-
set_position__ (
|
|
2876
|
+
set_position__: (() =>
|
|
2897
2877
|
{
|
|
2898
|
-
|
|
2899
|
-
|
|
2878
|
+
const geoCoord = new (external_X_ITE_X3D_Vector3_default()) ();
|
|
2879
|
+
|
|
2880
|
+
return function ()
|
|
2881
|
+
{
|
|
2882
|
+
this ._geoCoord_changed = this .getGeoCoord (this .proximitySensor ._position_changed .getValue (), geoCoord);
|
|
2883
|
+
};
|
|
2884
|
+
})(),
|
|
2900
2885
|
traverse (type, renderObject)
|
|
2901
2886
|
{
|
|
2902
2887
|
this .proximitySensor .traverse (type, renderObject);
|
|
@@ -3121,10 +3106,6 @@ const GeoTouchSensor_default_ = GeoTouchSensor;
|
|
|
3121
3106
|
|
|
3122
3107
|
|
|
3123
3108
|
|
|
3124
|
-
var
|
|
3125
|
-
matrix = new (external_X_ITE_X3D_Matrix4_default()) (),
|
|
3126
|
-
GeoTransform_locationMatrix = new (external_X_ITE_X3D_Matrix4_default()) ();
|
|
3127
|
-
|
|
3128
3109
|
function GeoTransform (executionContext)
|
|
3129
3110
|
{
|
|
3130
3111
|
external_X_ITE_X3D_X3DTransformMatrix3DNode_default().call (this, executionContext);
|
|
@@ -3149,17 +3130,24 @@ Object .assign (Object .setPrototypeOf (GeoTransform .prototype, (external_X_ITE
|
|
|
3149
3130
|
|
|
3150
3131
|
this .eventsProcessed ();
|
|
3151
3132
|
},
|
|
3152
|
-
eventsProcessed ()
|
|
3133
|
+
eventsProcessed: (() =>
|
|
3153
3134
|
{
|
|
3154
|
-
|
|
3135
|
+
const
|
|
3136
|
+
matrix = new (external_X_ITE_X3D_Matrix4_default()) (),
|
|
3137
|
+
locationMatrix = new (external_X_ITE_X3D_Matrix4_default()) ();
|
|
3155
3138
|
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
this ._scaleOrientation .getValue ());
|
|
3139
|
+
return function ()
|
|
3140
|
+
{
|
|
3141
|
+
this .getLocationMatrix (this ._geoCenter .getValue (), locationMatrix);
|
|
3160
3142
|
|
|
3161
|
-
|
|
3162
|
-
|
|
3143
|
+
matrix .set (this ._translation .getValue (),
|
|
3144
|
+
this ._rotation .getValue (),
|
|
3145
|
+
this ._scale .getValue (),
|
|
3146
|
+
this ._scaleOrientation .getValue ());
|
|
3147
|
+
|
|
3148
|
+
this .setMatrix (matrix .multRight (locationMatrix) .multLeft (locationMatrix .inverse ()));
|
|
3149
|
+
};
|
|
3150
|
+
})(),
|
|
3163
3151
|
dispose ()
|
|
3164
3152
|
{
|
|
3165
3153
|
Geospatial_X3DGeospatialObject .prototype .dispose .call (this);
|