x_ite 10.5.1 → 10.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +2 -2
- package/dist/assets/components/CADGeometryComponent.min.js +2 -2
- package/dist/assets/components/CubeMapTexturingComponent.js +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/assets/components/KeyDeviceSensorComponent.min.js +2 -2
- package/dist/assets/components/LayoutComponent.js +2 -2
- package/dist/assets/components/LayoutComponent.min.js +2 -2
- package/dist/assets/components/NURBSComponent.js +159 -48
- package/dist/assets/components/NURBSComponent.min.js +2 -2
- package/dist/assets/components/ParticleSystemsComponent.js +4 -4
- package/dist/assets/components/ParticleSystemsComponent.min.js +2 -2
- package/dist/assets/components/PickingComponent.js +2 -2
- package/dist/assets/components/PickingComponent.min.js +2 -2
- package/dist/assets/components/RigidBodyPhysicsComponent.js +2 -2
- 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 +4 -4
- 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 +10 -10
- package/dist/assets/components/Texturing3DComponent.min.js +2 -2
- package/dist/assets/components/VolumeRenderingComponent.js +121 -178
- package/dist/assets/components/VolumeRenderingComponent.min.js +2 -2
- package/dist/assets/components/X_ITEComponent.js +2 -2
- package/dist/assets/components/X_ITEComponent.min.js +2 -2
- package/dist/example.html +1 -1
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.js +363 -360
- package/dist/x_ite.min.js +2 -2
- package/dist/x_ite.min.mjs +2 -2
- package/dist/x_ite.mjs +363 -360
- package/dist/x_ite.zip +0 -0
- package/package.json +3 -2
package/dist/x_ite.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* X_ITE v10.5.
|
|
1
|
+
/* X_ITE v10.5.3 */
|
|
2
2
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
3
3
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
4
4
|
module.exports = factory();
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
return /******/ (() => { // webpackBootstrap
|
|
13
13
|
/******/ var __webpack_modules__ = ({
|
|
14
14
|
|
|
15
|
-
/***/
|
|
15
|
+
/***/ 498:
|
|
16
16
|
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
17
17
|
|
|
18
|
-
/* provided dependency */ var jQuery = __webpack_require__(
|
|
18
|
+
/* provided dependency */ var jQuery = __webpack_require__(562);
|
|
19
19
|
/**
|
|
20
20
|
* @preserve jquery.fullscreen 1.1.5
|
|
21
21
|
* https://github.com/code-lts/jquery-fullscreen-plugin
|
|
@@ -211,7 +211,7 @@ installFullScreenHandlers();
|
|
|
211
211
|
|
|
212
212
|
/***/ }),
|
|
213
213
|
|
|
214
|
-
/***/
|
|
214
|
+
/***/ 192:
|
|
215
215
|
/***/ ((module, exports, __webpack_require__) => {
|
|
216
216
|
|
|
217
217
|
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
@@ -225,7 +225,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
225
225
|
(function (factory) {
|
|
226
226
|
if ( true ) {
|
|
227
227
|
// AMD. Register as an anonymous module.
|
|
228
|
-
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(
|
|
228
|
+
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(562)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
|
|
229
229
|
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
|
|
230
230
|
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
|
|
231
231
|
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
@@ -436,7 +436,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
436
436
|
|
|
437
437
|
/***/ }),
|
|
438
438
|
|
|
439
|
-
/***/
|
|
439
|
+
/***/ 562:
|
|
440
440
|
/***/ (function(module, exports) {
|
|
441
441
|
|
|
442
442
|
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
@@ -11160,7 +11160,7 @@ return jQuery;
|
|
|
11160
11160
|
|
|
11161
11161
|
/***/ }),
|
|
11162
11162
|
|
|
11163
|
-
/***/
|
|
11163
|
+
/***/ 611:
|
|
11164
11164
|
/***/ ((module) => {
|
|
11165
11165
|
|
|
11166
11166
|
/**
|
|
@@ -15939,7 +15939,7 @@ if (true) {
|
|
|
15939
15939
|
|
|
15940
15940
|
/***/ }),
|
|
15941
15941
|
|
|
15942
|
-
/***/
|
|
15942
|
+
/***/ 418:
|
|
15943
15943
|
/***/ (function(__unused_webpack_module, exports) {
|
|
15944
15944
|
|
|
15945
15945
|
|
|
@@ -19184,7 +19184,7 @@ if (true) {
|
|
|
19184
19184
|
|
|
19185
19185
|
/***/ }),
|
|
19186
19186
|
|
|
19187
|
-
/***/
|
|
19187
|
+
/***/ 349:
|
|
19188
19188
|
/***/ (function(module, exports) {
|
|
19189
19189
|
|
|
19190
19190
|
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*
|
|
@@ -20311,7 +20311,7 @@ Object .defineProperty (Namespace, "add",
|
|
|
20311
20311
|
return module;
|
|
20312
20312
|
}
|
|
20313
20313
|
|
|
20314
|
-
const X3D = window [Symbol .for ("X_ITE.X3D-10.5.
|
|
20314
|
+
const X3D = window [Symbol .for ("X_ITE.X3D-10.5.3")];
|
|
20315
20315
|
|
|
20316
20316
|
if (X3D)
|
|
20317
20317
|
X3D [name] = module;
|
|
@@ -34173,7 +34173,7 @@ const X3DBaseNode_default_ = X3DBaseNode;
|
|
|
34173
34173
|
|
|
34174
34174
|
/* harmony default export */ const Base_X3DBaseNode = (x_ite_Namespace .add ("X3DBaseNode", X3DBaseNode_default_));
|
|
34175
34175
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Legacy.js
|
|
34176
|
-
/* provided dependency */ var $ = __webpack_require__(
|
|
34176
|
+
/* provided dependency */ var $ = __webpack_require__(562);
|
|
34177
34177
|
/*******************************************************************************
|
|
34178
34178
|
*
|
|
34179
34179
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -34309,7 +34309,7 @@ const Legacy_default_ = Legacy;
|
|
|
34309
34309
|
*
|
|
34310
34310
|
******************************************************************************/
|
|
34311
34311
|
|
|
34312
|
-
const BROWSER_VERSION_default_ = "10.5.
|
|
34312
|
+
const BROWSER_VERSION_default_ = "10.5.3";
|
|
34313
34313
|
;
|
|
34314
34314
|
|
|
34315
34315
|
/* harmony default export */ const BROWSER_VERSION = (x_ite_Namespace .add ("BROWSER_VERSION", BROWSER_VERSION_default_));
|
|
@@ -37334,7 +37334,7 @@ const X3DBindableNode_default_ = X3DBindableNode;
|
|
|
37334
37334
|
|
|
37335
37335
|
/* harmony default export */ const Core_X3DBindableNode = (x_ite_Namespace .add ("X3DBindableNode", X3DBindableNode_default_));
|
|
37336
37336
|
;// CONCATENATED MODULE: ./src/standard/Math/Geometry/Triangle3.js
|
|
37337
|
-
/* provided dependency */ var libtess = __webpack_require__(
|
|
37337
|
+
/* provided dependency */ var libtess = __webpack_require__(611);
|
|
37338
37338
|
/*******************************************************************************
|
|
37339
37339
|
*
|
|
37340
37340
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -39896,7 +39896,7 @@ const X3DProtoDeclaration_default_ = X3DProtoDeclaration;
|
|
|
39896
39896
|
|
|
39897
39897
|
/* harmony default export */ const Prototype_X3DProtoDeclaration = (x_ite_Namespace .add ("X3DProtoDeclaration", X3DProtoDeclaration_default_));
|
|
39898
39898
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/X3DParser.js
|
|
39899
|
-
/* provided dependency */ var X3DParser_$ = __webpack_require__(
|
|
39899
|
+
/* provided dependency */ var X3DParser_$ = __webpack_require__(562);
|
|
39900
39900
|
/*******************************************************************************
|
|
39901
39901
|
*
|
|
39902
39902
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -40151,7 +40151,7 @@ const Expressions_default_ = Expressions;
|
|
|
40151
40151
|
|
|
40152
40152
|
/* harmony default export */ const Parser_Expressions = (x_ite_Namespace .add ("Expressions", Expressions_default_));
|
|
40153
40153
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/VRMLParser.js
|
|
40154
|
-
/* provided dependency */ var VRMLParser_$ = __webpack_require__(
|
|
40154
|
+
/* provided dependency */ var VRMLParser_$ = __webpack_require__(562);
|
|
40155
40155
|
/*******************************************************************************
|
|
40156
40156
|
*
|
|
40157
40157
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -41798,12 +41798,12 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
41798
41798
|
},
|
|
41799
41799
|
sfboolValues (field)
|
|
41800
41800
|
{
|
|
41801
|
-
|
|
41802
|
-
|
|
41803
|
-
const target = field .getTarget ();
|
|
41801
|
+
const array = [ ];
|
|
41804
41802
|
|
|
41805
41803
|
while (this .bool ())
|
|
41806
|
-
|
|
41804
|
+
array .push (this .value);
|
|
41805
|
+
|
|
41806
|
+
field .setValue (array);
|
|
41807
41807
|
|
|
41808
41808
|
return field .length !== 0;
|
|
41809
41809
|
},
|
|
@@ -41873,14 +41873,12 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
41873
41873
|
},
|
|
41874
41874
|
sfcolorValues (field)
|
|
41875
41875
|
{
|
|
41876
|
-
|
|
41876
|
+
const array = [ ];
|
|
41877
41877
|
|
|
41878
|
-
|
|
41879
|
-
|
|
41880
|
-
value = this .Color3;
|
|
41878
|
+
while (this .double ())
|
|
41879
|
+
array .push (this .value);
|
|
41881
41880
|
|
|
41882
|
-
|
|
41883
|
-
target .push (value);
|
|
41881
|
+
field .setValue (array);
|
|
41884
41882
|
|
|
41885
41883
|
return field .length !== 0;
|
|
41886
41884
|
},
|
|
@@ -41945,7 +41943,7 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
41945
41943
|
|
|
41946
41944
|
if (Grammar .OpenBracket .parse (this))
|
|
41947
41945
|
{
|
|
41948
|
-
this .
|
|
41946
|
+
this .sfcolorValues (field);
|
|
41949
41947
|
|
|
41950
41948
|
if (Grammar .CloseBracket .parse (this))
|
|
41951
41949
|
return true;
|
|
@@ -41955,19 +41953,6 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
41955
41953
|
|
|
41956
41954
|
return false;
|
|
41957
41955
|
},
|
|
41958
|
-
sfcolorrgbaValues (field)
|
|
41959
|
-
{
|
|
41960
|
-
field .length = 0;
|
|
41961
|
-
|
|
41962
|
-
const
|
|
41963
|
-
target = field .getTarget (),
|
|
41964
|
-
value = this .Color4;
|
|
41965
|
-
|
|
41966
|
-
while (this .sfcolorrgbaValue (value))
|
|
41967
|
-
target .push (value);
|
|
41968
|
-
|
|
41969
|
-
return field .length !== 0;
|
|
41970
|
-
},
|
|
41971
41956
|
sfdoubleValue (field)
|
|
41972
41957
|
{
|
|
41973
41958
|
if (this .double ())
|
|
@@ -42002,14 +41987,14 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
42002
41987
|
},
|
|
42003
41988
|
sfdoubleValues (field)
|
|
42004
41989
|
{
|
|
42005
|
-
field .length = 0;
|
|
42006
|
-
|
|
42007
41990
|
const
|
|
42008
|
-
|
|
42009
|
-
|
|
41991
|
+
unit = field .getUnit (),
|
|
41992
|
+
array = [ ];
|
|
42010
41993
|
|
|
42011
41994
|
while (this .double ())
|
|
42012
|
-
|
|
41995
|
+
array .push (this .fromUnit (unit, this .value));
|
|
41996
|
+
|
|
41997
|
+
field .setValue (array);
|
|
42013
41998
|
|
|
42014
41999
|
return field .length !== 0;
|
|
42015
42000
|
},
|
|
@@ -42026,26 +42011,26 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
42026
42011
|
if (this .int32 ())
|
|
42027
42012
|
{
|
|
42028
42013
|
const
|
|
42029
|
-
comp
|
|
42030
|
-
size
|
|
42031
|
-
|
|
42032
|
-
field .width = width;
|
|
42033
|
-
field .height = height;
|
|
42034
|
-
field .comp = comp;
|
|
42035
|
-
|
|
42036
|
-
const array = field .array;
|
|
42014
|
+
comp = this .value,
|
|
42015
|
+
size = width * height,
|
|
42016
|
+
array = [ ];
|
|
42037
42017
|
|
|
42038
42018
|
for (let i = 0; i < size; ++ i)
|
|
42039
42019
|
{
|
|
42040
42020
|
if (this .int32 ())
|
|
42041
42021
|
{
|
|
42042
|
-
array
|
|
42022
|
+
array .push (this .value);
|
|
42043
42023
|
continue;
|
|
42044
42024
|
}
|
|
42045
42025
|
|
|
42046
42026
|
return false;
|
|
42047
42027
|
}
|
|
42048
42028
|
|
|
42029
|
+
field .width = width;
|
|
42030
|
+
field .height = height;
|
|
42031
|
+
field .comp = comp;
|
|
42032
|
+
field .array = array;
|
|
42033
|
+
|
|
42049
42034
|
return true;
|
|
42050
42035
|
}
|
|
42051
42036
|
}
|
|
@@ -42122,12 +42107,12 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
42122
42107
|
},
|
|
42123
42108
|
sfint32Values (field)
|
|
42124
42109
|
{
|
|
42125
|
-
|
|
42126
|
-
|
|
42127
|
-
const target = field .getTarget ();
|
|
42110
|
+
const array = [ ];
|
|
42128
42111
|
|
|
42129
42112
|
while (this .int32 ())
|
|
42130
|
-
|
|
42113
|
+
array .push (this .value);
|
|
42114
|
+
|
|
42115
|
+
field .setValue (array);
|
|
42131
42116
|
|
|
42132
42117
|
return field .length !== 0;
|
|
42133
42118
|
},
|
|
@@ -42204,7 +42189,7 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
42204
42189
|
|
|
42205
42190
|
if (Grammar .OpenBracket .parse (this))
|
|
42206
42191
|
{
|
|
42207
|
-
this .
|
|
42192
|
+
this .sfmatrixValues (field);
|
|
42208
42193
|
|
|
42209
42194
|
if (Grammar .CloseBracket .parse (this))
|
|
42210
42195
|
return true;
|
|
@@ -42214,16 +42199,14 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
42214
42199
|
|
|
42215
42200
|
return false;
|
|
42216
42201
|
},
|
|
42217
|
-
|
|
42202
|
+
sfmatrixValues (field)
|
|
42218
42203
|
{
|
|
42219
|
-
|
|
42204
|
+
const array = [ ];
|
|
42220
42205
|
|
|
42221
|
-
|
|
42222
|
-
|
|
42223
|
-
value = this .Matrix3;
|
|
42206
|
+
while (this .double ())
|
|
42207
|
+
array .push (this .value);
|
|
42224
42208
|
|
|
42225
|
-
|
|
42226
|
-
target .push (value);
|
|
42209
|
+
field .setValue (array);
|
|
42227
42210
|
|
|
42228
42211
|
return field .length !== 0;
|
|
42229
42212
|
},
|
|
@@ -42342,7 +42325,7 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
42342
42325
|
|
|
42343
42326
|
if (Grammar .OpenBracket .parse (this))
|
|
42344
42327
|
{
|
|
42345
|
-
this .
|
|
42328
|
+
this .sfmatrixValues (field);
|
|
42346
42329
|
|
|
42347
42330
|
if (Grammar .CloseBracket .parse (this))
|
|
42348
42331
|
return true;
|
|
@@ -42352,19 +42335,6 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
42352
42335
|
|
|
42353
42336
|
return false;
|
|
42354
42337
|
},
|
|
42355
|
-
sfmatrix4Values (field)
|
|
42356
|
-
{
|
|
42357
|
-
field .length = 0;
|
|
42358
|
-
|
|
42359
|
-
const
|
|
42360
|
-
target = field .getTarget (),
|
|
42361
|
-
value = this .Matrix4;
|
|
42362
|
-
|
|
42363
|
-
while (this .sfmatrix4Value (value))
|
|
42364
|
-
target .push (value);
|
|
42365
|
-
|
|
42366
|
-
return field .length !== 0;
|
|
42367
|
-
},
|
|
42368
42338
|
sfnodeValue (field)
|
|
42369
42339
|
{
|
|
42370
42340
|
const baseNode = this .nodeStatement ();
|
|
@@ -42514,12 +42484,12 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
42514
42484
|
},
|
|
42515
42485
|
sfstringValues (field)
|
|
42516
42486
|
{
|
|
42517
|
-
|
|
42518
|
-
|
|
42519
|
-
const target = field .getTarget ();
|
|
42487
|
+
const array = [ ];
|
|
42520
42488
|
|
|
42521
42489
|
while (this .string ())
|
|
42522
|
-
|
|
42490
|
+
array .push (this .value);
|
|
42491
|
+
|
|
42492
|
+
field .setValue (array);
|
|
42523
42493
|
|
|
42524
42494
|
return field .length !== 0;
|
|
42525
42495
|
},
|
|
@@ -42554,7 +42524,7 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
42554
42524
|
|
|
42555
42525
|
if (Grammar .OpenBracket .parse (this))
|
|
42556
42526
|
{
|
|
42557
|
-
this .
|
|
42527
|
+
this .sfvecValues (field);
|
|
42558
42528
|
|
|
42559
42529
|
if (Grammar .CloseBracket .parse (this))
|
|
42560
42530
|
return true;
|
|
@@ -42564,17 +42534,16 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
42564
42534
|
|
|
42565
42535
|
return false;
|
|
42566
42536
|
},
|
|
42567
|
-
|
|
42537
|
+
sfvecValues (field)
|
|
42568
42538
|
{
|
|
42569
|
-
field .length = 0;
|
|
42570
|
-
|
|
42571
42539
|
const
|
|
42572
|
-
|
|
42573
|
-
|
|
42574
|
-
unit = target .getUnit ();
|
|
42540
|
+
unit = field .getUnit (),
|
|
42541
|
+
array = [ ];
|
|
42575
42542
|
|
|
42576
|
-
while (this .
|
|
42577
|
-
|
|
42543
|
+
while (this .double ())
|
|
42544
|
+
array .push (this .fromUnit (unit, this .value));
|
|
42545
|
+
|
|
42546
|
+
field .setValue (array);
|
|
42578
42547
|
|
|
42579
42548
|
return field .length !== 0;
|
|
42580
42549
|
},
|
|
@@ -42615,7 +42584,7 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
42615
42584
|
|
|
42616
42585
|
if (Grammar .OpenBracket .parse (this))
|
|
42617
42586
|
{
|
|
42618
|
-
this .
|
|
42587
|
+
this .sfvecValues (field);
|
|
42619
42588
|
|
|
42620
42589
|
if (Grammar .CloseBracket .parse (this))
|
|
42621
42590
|
return true;
|
|
@@ -42625,20 +42594,6 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
42625
42594
|
|
|
42626
42595
|
return false;
|
|
42627
42596
|
},
|
|
42628
|
-
sfvec3Values (field)
|
|
42629
|
-
{
|
|
42630
|
-
field .length = 0;
|
|
42631
|
-
|
|
42632
|
-
const
|
|
42633
|
-
target = field .getTarget (),
|
|
42634
|
-
value = this .Vector3,
|
|
42635
|
-
unit = target .getUnit ();
|
|
42636
|
-
|
|
42637
|
-
while (this .sfvec3Value (value, unit))
|
|
42638
|
-
target .push (value);
|
|
42639
|
-
|
|
42640
|
-
return field .length !== 0;
|
|
42641
|
-
},
|
|
42642
42597
|
sfvec4Value (field, unit)
|
|
42643
42598
|
{
|
|
42644
42599
|
if (this .double ())
|
|
@@ -42682,7 +42637,7 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
42682
42637
|
|
|
42683
42638
|
if (Grammar .OpenBracket .parse (this))
|
|
42684
42639
|
{
|
|
42685
|
-
this .
|
|
42640
|
+
this .sfvecValues (field);
|
|
42686
42641
|
|
|
42687
42642
|
if (Grammar .CloseBracket .parse (this))
|
|
42688
42643
|
return true;
|
|
@@ -42692,20 +42647,6 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
42692
42647
|
|
|
42693
42648
|
return false;
|
|
42694
42649
|
},
|
|
42695
|
-
sfvec4Values (field)
|
|
42696
|
-
{
|
|
42697
|
-
field .length = 0;
|
|
42698
|
-
|
|
42699
|
-
const
|
|
42700
|
-
target = field .getTarget (),
|
|
42701
|
-
value = this .Vector4,
|
|
42702
|
-
unit = target .getUnit ();
|
|
42703
|
-
|
|
42704
|
-
while (this .sfvec4Value (value, unit))
|
|
42705
|
-
target .push (value);
|
|
42706
|
-
|
|
42707
|
-
return field .length !== 0;
|
|
42708
|
-
},
|
|
42709
42650
|
unknownValue ()
|
|
42710
42651
|
{
|
|
42711
42652
|
try
|
|
@@ -42850,7 +42791,7 @@ const VRMLParser_default_ = VRMLParser;
|
|
|
42850
42791
|
|
|
42851
42792
|
/* harmony default export */ const Parser_VRMLParser = (x_ite_Namespace .add ("VRMLParser", VRMLParser_default_));
|
|
42852
42793
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/XMLParser.js
|
|
42853
|
-
/* provided dependency */ var XMLParser_$ = __webpack_require__(
|
|
42794
|
+
/* provided dependency */ var XMLParser_$ = __webpack_require__(562);
|
|
42854
42795
|
/*******************************************************************************
|
|
42855
42796
|
*
|
|
42856
42797
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -43982,25 +43923,25 @@ Object .assign (XMLParser .prototype,
|
|
|
43982
43923
|
|
|
43983
43924
|
[Base_X3DConstants .MFBool]: Parser_VRMLParser .prototype .sfboolValues,
|
|
43984
43925
|
[Base_X3DConstants .MFColor]: Parser_VRMLParser .prototype .sfcolorValues,
|
|
43985
|
-
[Base_X3DConstants .MFColorRGBA]: Parser_VRMLParser .prototype .
|
|
43926
|
+
[Base_X3DConstants .MFColorRGBA]: Parser_VRMLParser .prototype .sfcolorValues,
|
|
43986
43927
|
[Base_X3DConstants .MFDouble]: Parser_VRMLParser .prototype .sfdoubleValues,
|
|
43987
43928
|
[Base_X3DConstants .MFFloat]: Parser_VRMLParser .prototype .sfdoubleValues,
|
|
43988
43929
|
[Base_X3DConstants .MFImage]: Parser_VRMLParser .prototype .sfimageValues,
|
|
43989
43930
|
[Base_X3DConstants .MFInt32]: Parser_VRMLParser .prototype .sfint32Values,
|
|
43990
|
-
[Base_X3DConstants .MFMatrix3d]: Parser_VRMLParser .prototype .
|
|
43991
|
-
[Base_X3DConstants .MFMatrix3f]: Parser_VRMLParser .prototype .
|
|
43992
|
-
[Base_X3DConstants .MFMatrix4d]: Parser_VRMLParser .prototype .
|
|
43993
|
-
[Base_X3DConstants .MFMatrix4f]: Parser_VRMLParser .prototype .
|
|
43931
|
+
[Base_X3DConstants .MFMatrix3d]: Parser_VRMLParser .prototype .sfmatrixValues,
|
|
43932
|
+
[Base_X3DConstants .MFMatrix3f]: Parser_VRMLParser .prototype .sfmatrixValues,
|
|
43933
|
+
[Base_X3DConstants .MFMatrix4d]: Parser_VRMLParser .prototype .sfmatrixValues,
|
|
43934
|
+
[Base_X3DConstants .MFMatrix4f]: Parser_VRMLParser .prototype .sfmatrixValues,
|
|
43994
43935
|
[Base_X3DConstants .MFNode] (field) { field .length = 0; },
|
|
43995
43936
|
[Base_X3DConstants .MFRotation]: Parser_VRMLParser .prototype .sfrotationValues,
|
|
43996
43937
|
[Base_X3DConstants .MFString]: Parser_VRMLParser .prototype .sfstringValues,
|
|
43997
43938
|
[Base_X3DConstants .MFTime]: Parser_VRMLParser .prototype .sfdoubleValues,
|
|
43998
|
-
[Base_X3DConstants .MFVec2d]: Parser_VRMLParser .prototype .
|
|
43999
|
-
[Base_X3DConstants .MFVec2f]: Parser_VRMLParser .prototype .
|
|
44000
|
-
[Base_X3DConstants .MFVec3d]: Parser_VRMLParser .prototype .
|
|
44001
|
-
[Base_X3DConstants .MFVec3f]: Parser_VRMLParser .prototype .
|
|
44002
|
-
[Base_X3DConstants .MFVec4d]: Parser_VRMLParser .prototype .
|
|
44003
|
-
[Base_X3DConstants .MFVec4f]: Parser_VRMLParser .prototype .
|
|
43939
|
+
[Base_X3DConstants .MFVec2d]: Parser_VRMLParser .prototype .sfvecValues,
|
|
43940
|
+
[Base_X3DConstants .MFVec2f]: Parser_VRMLParser .prototype .sfvecValues,
|
|
43941
|
+
[Base_X3DConstants .MFVec3d]: Parser_VRMLParser .prototype .sfvecValues,
|
|
43942
|
+
[Base_X3DConstants .MFVec3f]: Parser_VRMLParser .prototype .sfvecValues,
|
|
43943
|
+
[Base_X3DConstants .MFVec4d]: Parser_VRMLParser .prototype .sfvecValues,
|
|
43944
|
+
[Base_X3DConstants .MFVec4f]: Parser_VRMLParser .prototype .sfvecValues,
|
|
44004
43945
|
});
|
|
44005
43946
|
|
|
44006
43947
|
// HTML Support
|
|
@@ -44212,14 +44153,13 @@ Object .assign (Object .setPrototypeOf (JSONParser .prototype, Parser_X3DParser
|
|
|
44212
44153
|
|
|
44213
44154
|
for (const key in object)
|
|
44214
44155
|
{
|
|
44215
|
-
if (typeof object [key]
|
|
44216
|
-
|
|
44217
|
-
if (isNaN (parseInt (key)))
|
|
44218
|
-
this .convertObject (key, object, element, parentkey .substring (1));
|
|
44156
|
+
if (typeof object [key] !== "object")
|
|
44157
|
+
continue;
|
|
44219
44158
|
|
|
44220
|
-
|
|
44221
|
-
|
|
44222
|
-
|
|
44159
|
+
if (isNaN (parseInt (key)))
|
|
44160
|
+
this .convertObject (key, object, element, parentkey .substring (1));
|
|
44161
|
+
else
|
|
44162
|
+
this .convertToDOM (object [key], key, element, parentkey .substring (1));
|
|
44223
44163
|
}
|
|
44224
44164
|
},
|
|
44225
44165
|
createElement (key, containerField)
|
|
@@ -44341,7 +44281,7 @@ Object .assign (Object .setPrototypeOf (JSONParser .prototype, Parser_X3DParser
|
|
|
44341
44281
|
|
|
44342
44282
|
return str;
|
|
44343
44283
|
},
|
|
44344
|
-
convertToDOM(object, parentkey, element, containerField)
|
|
44284
|
+
convertToDOM (object, parentkey, element, containerField)
|
|
44345
44285
|
{
|
|
44346
44286
|
/**
|
|
44347
44287
|
* main routine for converting a JavaScript object to DOM.
|
|
@@ -44351,6 +44291,12 @@ Object .assign (Object .setPrototypeOf (JSONParser .prototype, Parser_X3DParser
|
|
|
44351
44291
|
* containerField is a possible containerField.
|
|
44352
44292
|
*/
|
|
44353
44293
|
|
|
44294
|
+
if (object === null)
|
|
44295
|
+
{
|
|
44296
|
+
this .elementSetAttribute (element, "value", null);
|
|
44297
|
+
return element;
|
|
44298
|
+
}
|
|
44299
|
+
|
|
44354
44300
|
let
|
|
44355
44301
|
isArray = false,
|
|
44356
44302
|
localArray = [ ],
|
|
@@ -45023,7 +44969,7 @@ const URLs_default_ = URLs;
|
|
|
45023
44969
|
|
|
45024
44970
|
/* harmony default export */ const Networking_URLs = (x_ite_Namespace .add ("URLs", URLs_default_));
|
|
45025
44971
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/GLTF2Parser.js
|
|
45026
|
-
/* provided dependency */ var GLTF2Parser_$ = __webpack_require__(
|
|
44972
|
+
/* provided dependency */ var GLTF2Parser_$ = __webpack_require__(562);
|
|
45027
44973
|
/*******************************************************************************
|
|
45028
44974
|
*
|
|
45029
44975
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -45283,7 +45229,14 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
|
|
|
45283
45229
|
worldInfoNode ._info .sort ();
|
|
45284
45230
|
|
|
45285
45231
|
if (!worldInfoNode ._title .getValue ())
|
|
45286
|
-
|
|
45232
|
+
{
|
|
45233
|
+
const url = new URL (worldURL);
|
|
45234
|
+
|
|
45235
|
+
if (url .protocol === "data:")
|
|
45236
|
+
worldInfoNode ._title = "glTF Model";
|
|
45237
|
+
else
|
|
45238
|
+
worldInfoNode ._title = decodeURIComponent (url .pathname .split ("/") .at (-1) || worldURL);
|
|
45239
|
+
}
|
|
45287
45240
|
|
|
45288
45241
|
worldInfoNode .setup ();
|
|
45289
45242
|
|
|
@@ -48667,7 +48620,7 @@ const GLTF2Parser_default_ = GLTF2Parser;
|
|
|
48667
48620
|
|
|
48668
48621
|
/* harmony default export */ const Parser_GLTF2Parser = (x_ite_Namespace .add ("GLTF2Parser", GLTF2Parser_default_));
|
|
48669
48622
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/GLB2Parser.js
|
|
48670
|
-
/* provided dependency */ var GLB2Parser_$ = __webpack_require__(
|
|
48623
|
+
/* provided dependency */ var GLB2Parser_$ = __webpack_require__(562);
|
|
48671
48624
|
/*******************************************************************************
|
|
48672
48625
|
*
|
|
48673
48626
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -48818,7 +48771,7 @@ const GLB2Parser_default_ = GLB2Parser;
|
|
|
48818
48771
|
|
|
48819
48772
|
/* harmony default export */ const Parser_GLB2Parser = (x_ite_Namespace .add ("GLB2Parser", GLB2Parser_default_));
|
|
48820
48773
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/OBJParser.js
|
|
48821
|
-
/* provided dependency */ var OBJParser_$ = __webpack_require__(
|
|
48774
|
+
/* provided dependency */ var OBJParser_$ = __webpack_require__(562);
|
|
48822
48775
|
/*******************************************************************************
|
|
48823
48776
|
*
|
|
48824
48777
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -50690,9 +50643,10 @@ Object .assign (Object .setPrototypeOf (PLYAParser .prototype, Parser_X3DParser
|
|
|
50690
50643
|
|
|
50691
50644
|
const
|
|
50692
50645
|
scene = this .getScene (),
|
|
50693
|
-
worldInfo = scene .createNode ("WorldInfo")
|
|
50646
|
+
worldInfo = scene .createNode ("WorldInfo"),
|
|
50647
|
+
url = new URL (scene .worldURL);
|
|
50694
50648
|
|
|
50695
|
-
worldInfo .title =
|
|
50649
|
+
worldInfo .title = url .protocol === "data:" ? "PLY Model" : url .pathname .split ('/') .at (-1);
|
|
50696
50650
|
worldInfo .info = this .comments;
|
|
50697
50651
|
|
|
50698
50652
|
scene .rootNodes .push (worldInfo);
|
|
@@ -52160,8 +52114,8 @@ const MatrixStack_default_ = MatrixStack;
|
|
|
52160
52114
|
|
|
52161
52115
|
/* harmony default export */ const Utility_MatrixStack = (x_ite_Namespace .add ("MatrixStack", MatrixStack_default_));
|
|
52162
52116
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/SVGParser.js
|
|
52163
|
-
/* provided dependency */ var SVGParser_$ = __webpack_require__(
|
|
52164
|
-
/* provided dependency */ var SVGParser_libtess = __webpack_require__(
|
|
52117
|
+
/* provided dependency */ var SVGParser_$ = __webpack_require__(562);
|
|
52118
|
+
/* provided dependency */ var SVGParser_libtess = __webpack_require__(611);
|
|
52165
52119
|
/*******************************************************************************
|
|
52166
52120
|
*
|
|
52167
52121
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -54931,7 +54885,7 @@ const SVGParser_default_ = SVGParser;
|
|
|
54931
54885
|
|
|
54932
54886
|
/* harmony default export */ const Parser_SVGParser = (x_ite_Namespace .add ("SVGParser", SVGParser_default_));
|
|
54933
54887
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/GoldenGate.js
|
|
54934
|
-
/* provided dependency */ var GoldenGate_$ = __webpack_require__(
|
|
54888
|
+
/* provided dependency */ var GoldenGate_$ = __webpack_require__(562);
|
|
54935
54889
|
/*******************************************************************************
|
|
54936
54890
|
*
|
|
54937
54891
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -60193,6 +60147,7 @@ const Shading_default_ = Shading;
|
|
|
60193
60147
|
|
|
60194
60148
|
|
|
60195
60149
|
|
|
60150
|
+
|
|
60196
60151
|
// Box normals for bbox / line intersection.
|
|
60197
60152
|
const boxNormals = [
|
|
60198
60153
|
new Numbers_Vector3 (0, 0, 1), // front
|
|
@@ -60579,7 +60534,8 @@ Object .assign (Object .setPrototypeOf (X3DGeometryNode .prototype, Core_X3DNode
|
|
|
60579
60534
|
}
|
|
60580
60535
|
catch (error)
|
|
60581
60536
|
{
|
|
60582
|
-
|
|
60537
|
+
if (DEVELOPMENT)
|
|
60538
|
+
console .error (error);
|
|
60583
60539
|
}
|
|
60584
60540
|
},
|
|
60585
60541
|
refineNormals (normalIndex, normals, creaseAngle)
|
|
@@ -61187,20 +61143,22 @@ Object .assign (Object .setPrototypeOf (X3DGeometryNode .prototype, Core_X3DNode
|
|
|
61187
61143
|
const
|
|
61188
61144
|
browser = this .getBrowser (),
|
|
61189
61145
|
renderModeNodes = appearanceNode .getRenderModes (),
|
|
61190
|
-
attribNodes = this .attribNodes,
|
|
61191
|
-
attribBuffers = this .attribBuffers,
|
|
61192
61146
|
primitiveMode = browser .getPrimitiveMode (this .primitiveMode);
|
|
61193
61147
|
|
|
61194
61148
|
for (const node of renderModeNodes)
|
|
61195
61149
|
node .enable (gl);
|
|
61196
61150
|
|
|
61197
61151
|
shaderNode .enable (gl);
|
|
61198
|
-
shaderNode .setUniforms (gl,
|
|
61152
|
+
shaderNode .setUniforms (gl, renderContext, this, front);
|
|
61199
61153
|
|
|
61200
61154
|
// Setup vertex attributes.
|
|
61201
61155
|
|
|
61202
61156
|
if (this .vertexArrayObject .enable (shaderNode .getProgram ()))
|
|
61203
61157
|
{
|
|
61158
|
+
const
|
|
61159
|
+
attribNodes = this .getAttrib (),
|
|
61160
|
+
attribBuffers = this .getAttribBuffers ();
|
|
61161
|
+
|
|
61204
61162
|
if (this .coordIndices .length)
|
|
61205
61163
|
shaderNode .enableCoordIndexAttribute (gl, this .coordIndexBuffer, 0, 0);
|
|
61206
61164
|
|
|
@@ -61319,8 +61277,6 @@ Object .assign (Object .setPrototypeOf (X3DGeometryNode .prototype, Core_X3DNode
|
|
|
61319
61277
|
const
|
|
61320
61278
|
browser = this .getBrowser (),
|
|
61321
61279
|
renderModeNodes = appearanceNode .getRenderModes (),
|
|
61322
|
-
attribNodes = this .attribNodes,
|
|
61323
|
-
attribBuffers = this .attribBuffers,
|
|
61324
61280
|
primitiveMode = browser .getPrimitiveMode (this .primitiveMode);
|
|
61325
61281
|
|
|
61326
61282
|
for (const node of renderModeNodes)
|
|
@@ -61329,7 +61285,7 @@ Object .assign (Object .setPrototypeOf (X3DGeometryNode .prototype, Core_X3DNode
|
|
|
61329
61285
|
// Setup shader.
|
|
61330
61286
|
|
|
61331
61287
|
shaderNode .enable (gl);
|
|
61332
|
-
shaderNode .setUniforms (gl,
|
|
61288
|
+
shaderNode .setUniforms (gl, renderContext, this, front);
|
|
61333
61289
|
|
|
61334
61290
|
// Setup vertex attributes.
|
|
61335
61291
|
|
|
@@ -61339,6 +61295,10 @@ Object .assign (Object .setPrototypeOf (X3DGeometryNode .prototype, Core_X3DNode
|
|
|
61339
61295
|
{
|
|
61340
61296
|
const { instancesStride, particleOffset, velocityOffset, matrixOffset, normalMatrixOffset } = shapeNode;
|
|
61341
61297
|
|
|
61298
|
+
const
|
|
61299
|
+
attribNodes = this .getAttrib (),
|
|
61300
|
+
attribBuffers = this .getAttribBuffers ();
|
|
61301
|
+
|
|
61342
61302
|
if (particleOffset !== undefined)
|
|
61343
61303
|
shaderNode .enableParticleAttribute (gl, instances, instancesStride, particleOffset, 1);
|
|
61344
61304
|
|
|
@@ -62940,7 +62900,7 @@ const X3DTexture2DNode_default_ = X3DTexture2DNode;
|
|
|
62940
62900
|
|
|
62941
62901
|
/* harmony default export */ const Texturing_X3DTexture2DNode = (x_ite_Namespace .add ("X3DTexture2DNode", X3DTexture2DNode_default_));
|
|
62942
62902
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/ImageTexture.js
|
|
62943
|
-
/* provided dependency */ var ImageTexture_$ = __webpack_require__(
|
|
62903
|
+
/* provided dependency */ var ImageTexture_$ = __webpack_require__(562);
|
|
62944
62904
|
/*******************************************************************************
|
|
62945
62905
|
*
|
|
62946
62906
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -66324,7 +66284,7 @@ const X3DWorld_default_ = X3DWorld;
|
|
|
66324
66284
|
|
|
66325
66285
|
/* harmony default export */ const Execution_X3DWorld = (x_ite_Namespace .add ("X3DWorld", X3DWorld_default_));
|
|
66326
66286
|
;// CONCATENATED MODULE: ./src/x_ite/InputOutput/FileLoader.js
|
|
66327
|
-
/* provided dependency */ var FileLoader_$ = __webpack_require__(
|
|
66287
|
+
/* provided dependency */ var FileLoader_$ = __webpack_require__(562);
|
|
66328
66288
|
/*******************************************************************************
|
|
66329
66289
|
*
|
|
66330
66290
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -66378,6 +66338,7 @@ const X3DWorld_default_ = X3DWorld;
|
|
|
66378
66338
|
|
|
66379
66339
|
|
|
66380
66340
|
|
|
66341
|
+
|
|
66381
66342
|
const foreignMimeType = new Set ([
|
|
66382
66343
|
"text/html",
|
|
66383
66344
|
"application/xhtml+xml",
|
|
@@ -66459,34 +66420,36 @@ Object .assign (Object .setPrototypeOf (FileLoader .prototype, Base_X3DObject .p
|
|
|
66459
66420
|
},
|
|
66460
66421
|
setScene (scene, resolve, reject)
|
|
66461
66422
|
{
|
|
66462
|
-
scene .
|
|
66463
|
-
scene .
|
|
66423
|
+
scene ._loadCount .addInterest ("set_loadCount__", this, scene, resolve, reject);
|
|
66424
|
+
scene ._loadCount .addEvent ();
|
|
66464
66425
|
},
|
|
66465
|
-
|
|
66426
|
+
async set_loadCount__ (scene, resolve, reject, field)
|
|
66466
66427
|
{
|
|
66467
66428
|
// Wait for extern protos to be loaded.
|
|
66468
66429
|
|
|
66469
|
-
|
|
66470
|
-
|
|
66430
|
+
for (const externproto of scene .externprotos)
|
|
66431
|
+
{
|
|
66432
|
+
if (externproto .checkLoadState () === Base_X3DConstants .IN_PROGRESS_STATE)
|
|
66433
|
+
return;
|
|
66434
|
+
}
|
|
66471
66435
|
|
|
66472
|
-
scene .
|
|
66436
|
+
scene ._loadCount .removeInterest ("set_loadCount__", this);
|
|
66473
66437
|
|
|
66474
66438
|
// Wait for instances to be created.
|
|
66475
66439
|
|
|
66476
|
-
|
|
66440
|
+
await this .browser .nextFrame ();
|
|
66441
|
+
|
|
66442
|
+
try
|
|
66477
66443
|
{
|
|
66478
|
-
|
|
66479
|
-
|
|
66480
|
-
|
|
66481
|
-
|
|
66482
|
-
|
|
66483
|
-
|
|
66484
|
-
|
|
66485
|
-
|
|
66486
|
-
|
|
66487
|
-
throw error;
|
|
66488
|
-
}
|
|
66489
|
-
});
|
|
66444
|
+
resolve (scene);
|
|
66445
|
+
}
|
|
66446
|
+
catch (error)
|
|
66447
|
+
{
|
|
66448
|
+
if (reject)
|
|
66449
|
+
reject (error);
|
|
66450
|
+
else
|
|
66451
|
+
throw error;
|
|
66452
|
+
}
|
|
66490
66453
|
|
|
66491
66454
|
if (DEVELOPMENT)
|
|
66492
66455
|
{
|
|
@@ -66511,13 +66474,13 @@ Object .assign (Object .setPrototypeOf (FileLoader .prototype, Base_X3DObject .p
|
|
|
66511
66474
|
},
|
|
66512
66475
|
loadDocument (url, callback)
|
|
66513
66476
|
{
|
|
66514
|
-
this .url = url .
|
|
66477
|
+
this .url = url .slice ();
|
|
66515
66478
|
this .callback = callback;
|
|
66516
66479
|
|
|
66517
66480
|
if (url .length === 0)
|
|
66518
66481
|
return this .loadDocumentError (new Error ("No URL given."));
|
|
66519
66482
|
|
|
66520
|
-
this .loadDocumentAsync (this .url .shift ())
|
|
66483
|
+
this .loadDocumentAsync (String (this .url .shift ()))
|
|
66521
66484
|
.catch (this .loadDocumentError .bind (this));
|
|
66522
66485
|
},
|
|
66523
66486
|
async loadDocumentAsync (url)
|
|
@@ -66621,7 +66584,7 @@ Object .assign (Object .setPrototypeOf (FileLoader .prototype, Base_X3DObject .p
|
|
|
66621
66584
|
|
|
66622
66585
|
if (this .url .length)
|
|
66623
66586
|
{
|
|
66624
|
-
this .loadDocumentAsync (this .url .shift ())
|
|
66587
|
+
this .loadDocumentAsync (String (this .url .shift ()))
|
|
66625
66588
|
.catch (this .loadDocumentError .bind (this));
|
|
66626
66589
|
}
|
|
66627
66590
|
else
|
|
@@ -66703,7 +66666,8 @@ const FileLoader_default_ = FileLoader;
|
|
|
66703
66666
|
|
|
66704
66667
|
const
|
|
66705
66668
|
_proto = Symbol (),
|
|
66706
|
-
_scene = Symbol ()
|
|
66669
|
+
_scene = Symbol (),
|
|
66670
|
+
X3DExternProtoDeclaration_cache = Symbol ();
|
|
66707
66671
|
|
|
66708
66672
|
function X3DExternProtoDeclaration (executionContext, url)
|
|
66709
66673
|
{
|
|
@@ -66716,6 +66680,8 @@ function X3DExternProtoDeclaration (executionContext, url)
|
|
|
66716
66680
|
Base_X3DConstants .inputOutput, "url", url .copy (), // Must be of type MFString.
|
|
66717
66681
|
Base_X3DConstants .inputOutput, "autoRefresh", new x_ite_Fields .SFTime (),
|
|
66718
66682
|
Base_X3DConstants .inputOutput, "autoRefreshTimeLimit", new x_ite_Fields .SFTime (3600));
|
|
66683
|
+
|
|
66684
|
+
this .getBrowser () [X3DExternProtoDeclaration_cache] ??= new Map ();
|
|
66719
66685
|
}
|
|
66720
66686
|
|
|
66721
66687
|
Object .assign (Object .setPrototypeOf (X3DExternProtoDeclaration .prototype, Prototype_X3DProtoDeclarationNode .prototype),
|
|
@@ -66726,12 +66692,6 @@ Object .assign (Object .setPrototypeOf (X3DExternProtoDeclaration .prototype, Pr
|
|
|
66726
66692
|
Prototype_X3DProtoDeclarationNode .prototype .initialize .call (this);
|
|
66727
66693
|
Networking_X3DUrlObject .prototype .initialize .call (this);
|
|
66728
66694
|
},
|
|
66729
|
-
set_live__ ()
|
|
66730
|
-
{
|
|
66731
|
-
Networking_X3DUrlObject .prototype .set_live__ .call (this);
|
|
66732
|
-
|
|
66733
|
-
this [_scene] ?.setLive (this .getLive () .getValue ());
|
|
66734
|
-
},
|
|
66735
66695
|
canUserDefinedFields ()
|
|
66736
66696
|
{
|
|
66737
66697
|
return true;
|
|
@@ -66752,55 +66712,89 @@ Object .assign (Object .setPrototypeOf (X3DExternProtoDeclaration .prototype, Pr
|
|
|
66752
66712
|
{
|
|
66753
66713
|
return this [_proto];
|
|
66754
66714
|
},
|
|
66755
|
-
loadData ()
|
|
66715
|
+
async loadData ()
|
|
66756
66716
|
{
|
|
66757
|
-
|
|
66717
|
+
const browser = this .getBrowser ();
|
|
66718
|
+
|
|
66719
|
+
if (!this ._url .length)
|
|
66720
|
+
{
|
|
66721
|
+
this .setError (new Error ("No URL given."));
|
|
66722
|
+
return;
|
|
66723
|
+
}
|
|
66724
|
+
|
|
66725
|
+
for (const url of this ._url)
|
|
66726
|
+
{
|
|
66727
|
+
try
|
|
66728
|
+
{
|
|
66729
|
+
const
|
|
66730
|
+
resolvedURL = new URL (url, this .getExecutionContext () .getBaseURL ()),
|
|
66731
|
+
cacheURL = new URL (resolvedURL),
|
|
66732
|
+
cache = browser .getBrowserOption ("Cache");
|
|
66733
|
+
|
|
66734
|
+
cacheURL .hash = "";
|
|
66758
66735
|
|
|
66759
|
-
|
|
66736
|
+
const cachePromise = cache
|
|
66737
|
+
? browser [X3DExternProtoDeclaration_cache] .get (cacheURL .href)
|
|
66738
|
+
: null;
|
|
66760
66739
|
|
|
66761
|
-
|
|
66740
|
+
const promise = cachePromise ?? new Promise (resolve =>
|
|
66741
|
+
{
|
|
66742
|
+
new InputOutput_FileLoader (this) .createX3DFromURL ([cacheURL], null, resolve);
|
|
66743
|
+
});
|
|
66744
|
+
|
|
66745
|
+
if (cache && !cachePromise)
|
|
66746
|
+
browser [X3DExternProtoDeclaration_cache] .set (cacheURL .href, promise);
|
|
66747
|
+
|
|
66748
|
+
const scene = await promise;
|
|
66749
|
+
|
|
66750
|
+
if (!scene)
|
|
66751
|
+
continue;
|
|
66752
|
+
|
|
66753
|
+
this .setInternalScene (scene, resolvedURL, cache);
|
|
66754
|
+
return;
|
|
66755
|
+
}
|
|
66756
|
+
catch (error)
|
|
66757
|
+
{
|
|
66758
|
+
console .warn (error .message);
|
|
66759
|
+
}
|
|
66760
|
+
}
|
|
66761
|
+
|
|
66762
|
+
this .setError (new Error ("File could not be loaded."));
|
|
66762
66763
|
},
|
|
66763
|
-
|
|
66764
|
+
getInternalScene ()
|
|
66764
66765
|
{
|
|
66765
|
-
|
|
66766
|
-
this .setInternalScene (value);
|
|
66767
|
-
|
|
66768
|
-
else
|
|
66769
|
-
this .setError (new Error ("File could not be loaded."));
|
|
66766
|
+
/// Returns the internal X3DScene of this extern proto, that is loaded from the url given.
|
|
66770
66767
|
|
|
66771
|
-
this
|
|
66768
|
+
return this [_scene];
|
|
66772
66769
|
},
|
|
66773
|
-
setInternalScene (
|
|
66770
|
+
setInternalScene (scene, url, cache)
|
|
66774
66771
|
{
|
|
66775
|
-
|
|
66772
|
+
const browser = this .getBrowser ();
|
|
66773
|
+
|
|
66774
|
+
if (this [_scene] !== browser .getDefaultScene () && !this [X3DExternProtoDeclaration_cache])
|
|
66776
66775
|
this [_scene] ?.dispose ();
|
|
66777
66776
|
|
|
66778
|
-
this [_scene] =
|
|
66777
|
+
this [_scene] = scene;
|
|
66778
|
+
this [X3DExternProtoDeclaration_cache] = cache;
|
|
66779
66779
|
|
|
66780
66780
|
const
|
|
66781
|
-
protoName = decodeURIComponent (
|
|
66781
|
+
protoName = decodeURIComponent (url .hash .substring (1)),
|
|
66782
66782
|
proto = protoName ? this [_scene] .protos .get (protoName) : this [_scene] .protos [0];
|
|
66783
66783
|
|
|
66784
66784
|
if (!proto)
|
|
66785
66785
|
throw new Error ("PROTO not found");
|
|
66786
66786
|
|
|
66787
|
-
this [_scene] .setExecutionContext (this .getExecutionContext ());
|
|
66788
|
-
this [_scene] .setLive (
|
|
66787
|
+
this [_scene] .setExecutionContext (this [X3DExternProtoDeclaration_cache] ? browser .getDefaultScene () : this .getExecutionContext ());
|
|
66788
|
+
this [_scene] .setLive (true);
|
|
66789
66789
|
|
|
66790
66790
|
this .setLoadState (Base_X3DConstants .COMPLETE_STATE);
|
|
66791
66791
|
this .setProtoDeclaration (proto);
|
|
66792
66792
|
},
|
|
66793
|
-
getInternalScene ()
|
|
66794
|
-
{
|
|
66795
|
-
/// Returns the internal X3DScene of this extern proto, that is loaded from the url given.
|
|
66796
|
-
|
|
66797
|
-
return this [_scene];
|
|
66798
|
-
},
|
|
66799
66793
|
setError (error)
|
|
66800
66794
|
{
|
|
66801
66795
|
console .error (`Error loading extern prototype '${this .getName ()}':`, error);
|
|
66802
66796
|
|
|
66803
|
-
this [_scene] = this .getBrowser () .
|
|
66797
|
+
this [_scene] = this .getBrowser () .getDefaultScene ();
|
|
66804
66798
|
|
|
66805
66799
|
this .setLoadState (Base_X3DConstants .FAILED_STATE);
|
|
66806
66800
|
this .setProtoDeclaration (null);
|
|
@@ -67254,7 +67248,7 @@ const ProtoDeclarationArray_default_ = ProtoDeclarationArray;
|
|
|
67254
67248
|
|
|
67255
67249
|
/* harmony default export */ const Prototype_ProtoDeclarationArray = (x_ite_Namespace .add ("ProtoDeclarationArray", ProtoDeclarationArray_default_));
|
|
67256
67250
|
;// CONCATENATED MODULE: ./src/x_ite/Routing/X3DRoute.js
|
|
67257
|
-
/* provided dependency */ var X3DRoute_$ = __webpack_require__(
|
|
67251
|
+
/* provided dependency */ var X3DRoute_$ = __webpack_require__(562);
|
|
67258
67252
|
/*******************************************************************************
|
|
67259
67253
|
*
|
|
67260
67254
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -68886,6 +68880,31 @@ Object .assign (Object .setPrototypeOf (X3DPrototypeInstance .prototype, Core_X3
|
|
|
68886
68880
|
|
|
68887
68881
|
this .realize ();
|
|
68888
68882
|
},
|
|
68883
|
+
realize ()
|
|
68884
|
+
{
|
|
68885
|
+
const
|
|
68886
|
+
protoNode = this [_protoNode],
|
|
68887
|
+
proto = protoNode .getProtoDeclaration ();
|
|
68888
|
+
|
|
68889
|
+
if (protoNode .isExternProto && protoNode .checkLoadState () !== Base_X3DConstants .COMPLETE_STATE)
|
|
68890
|
+
return;
|
|
68891
|
+
|
|
68892
|
+
// Create execution context.
|
|
68893
|
+
|
|
68894
|
+
this [X3DPrototypeInstance_body] = new Execution_X3DExecutionContext (proto .getExecutionContext (), this);
|
|
68895
|
+
|
|
68896
|
+
// Copy proto.
|
|
68897
|
+
|
|
68898
|
+
this .importExternProtos (proto .getBody () .externprotos);
|
|
68899
|
+
this .importProtos (proto .getBody () .protos);
|
|
68900
|
+
this .copyRootNodes (proto .getBody () .rootNodes);
|
|
68901
|
+
this .importImportedNodes (proto .getBody () .importedNodes);
|
|
68902
|
+
this .copyRoutes (proto .getBody () .routes);
|
|
68903
|
+
|
|
68904
|
+
this [X3DPrototypeInstance_body] .setup ();
|
|
68905
|
+
|
|
68906
|
+
Base_X3DChildObject .prototype .addEvent .call (this);
|
|
68907
|
+
},
|
|
68889
68908
|
construct ()
|
|
68890
68909
|
{
|
|
68891
68910
|
const
|
|
@@ -68960,31 +68979,6 @@ Object .assign (Object .setPrototypeOf (X3DPrototypeInstance .prototype, Core_X3
|
|
|
68960
68979
|
protoNode ._updateInstances .removeInterest ("construct", this);
|
|
68961
68980
|
protoNode ._updateInstances .addInterest ("update", this);
|
|
68962
68981
|
},
|
|
68963
|
-
realize ()
|
|
68964
|
-
{
|
|
68965
|
-
const
|
|
68966
|
-
protoNode = this [_protoNode],
|
|
68967
|
-
proto = protoNode .getProtoDeclaration ();
|
|
68968
|
-
|
|
68969
|
-
if (protoNode .isExternProto && protoNode .checkLoadState () !== Base_X3DConstants .COMPLETE_STATE)
|
|
68970
|
-
return;
|
|
68971
|
-
|
|
68972
|
-
// Create execution context.
|
|
68973
|
-
|
|
68974
|
-
this [X3DPrototypeInstance_body] = new Execution_X3DExecutionContext (proto .getExecutionContext (), this);
|
|
68975
|
-
|
|
68976
|
-
// Copy proto.
|
|
68977
|
-
|
|
68978
|
-
this .importExternProtos (proto .getBody () .externprotos);
|
|
68979
|
-
this .importProtos (proto .getBody () .protos);
|
|
68980
|
-
this .copyRootNodes (proto .getBody () .rootNodes);
|
|
68981
|
-
this .importImportedNodes (proto .getBody () .importedNodes);
|
|
68982
|
-
this .copyRoutes (proto .getBody () .routes);
|
|
68983
|
-
|
|
68984
|
-
this [X3DPrototypeInstance_body] .setup ();
|
|
68985
|
-
|
|
68986
|
-
Base_X3DChildObject .prototype .addEvent .call (this);
|
|
68987
|
-
},
|
|
68988
68982
|
update ()
|
|
68989
68983
|
{
|
|
68990
68984
|
// Remove old fields.
|
|
@@ -69366,16 +69360,24 @@ Object .assign (Object .setPrototypeOf (X3DPrototypeInstance .prototype, Core_X3
|
|
|
69366
69360
|
}
|
|
69367
69361
|
case Base_X3DConstants .SFNode:
|
|
69368
69362
|
{
|
|
69369
|
-
|
|
69370
|
-
{
|
|
69371
|
-
generator .PushContainerField (null);
|
|
69363
|
+
generator .PushContainerField (null);
|
|
69372
69364
|
|
|
69373
|
-
|
|
69374
|
-
|
|
69365
|
+
generator .string += generator .Indent ();
|
|
69366
|
+
generator .string += "<fieldValue";
|
|
69367
|
+
generator .string += generator .Space ();
|
|
69368
|
+
generator .string += "name='";
|
|
69369
|
+
generator .string += generator .XMLEncode (field .getName ());
|
|
69370
|
+
generator .string += "'";
|
|
69371
|
+
|
|
69372
|
+
if (field .getValue () === null)
|
|
69373
|
+
{
|
|
69375
69374
|
generator .string += generator .Space ();
|
|
69376
|
-
generator .string += "
|
|
69377
|
-
generator .string += generator .
|
|
69378
|
-
generator .string +=
|
|
69375
|
+
generator .string += "value='null'";
|
|
69376
|
+
generator .string += generator .closingTags ? "></fieldValue>" : "/>";
|
|
69377
|
+
generator .string += generator .TidyBreak ();
|
|
69378
|
+
}
|
|
69379
|
+
else
|
|
69380
|
+
{
|
|
69379
69381
|
generator .string += ">";
|
|
69380
69382
|
generator .string += generator .TidyBreak ();
|
|
69381
69383
|
|
|
@@ -69390,12 +69392,10 @@ Object .assign (Object .setPrototypeOf (X3DPrototypeInstance .prototype, Core_X3
|
|
|
69390
69392
|
generator .string += generator .Indent ();
|
|
69391
69393
|
generator .string += "</fieldValue>";
|
|
69392
69394
|
generator .string += generator .TidyBreak ();
|
|
69393
|
-
|
|
69394
|
-
generator .PopContainerField ();
|
|
69395
|
-
break;
|
|
69396
69395
|
}
|
|
69397
69396
|
|
|
69398
|
-
|
|
69397
|
+
generator .PopContainerField ();
|
|
69398
|
+
break;
|
|
69399
69399
|
}
|
|
69400
69400
|
default:
|
|
69401
69401
|
{
|
|
@@ -76917,12 +76917,14 @@ Object .assign (Object .setPrototypeOf (X3DPointGeometryNode .prototype, Renderi
|
|
|
76917
76917
|
const
|
|
76918
76918
|
appearanceNode = renderContext .appearanceNode,
|
|
76919
76919
|
shaderNode = appearanceNode .getShader (this, renderContext),
|
|
76920
|
-
renderModeNodes = appearanceNode .getRenderModes ()
|
|
76921
|
-
attribNodes = this .getAttrib (),
|
|
76922
|
-
attribBuffers = this .getAttribBuffers ();
|
|
76920
|
+
renderModeNodes = appearanceNode .getRenderModes ();
|
|
76923
76921
|
|
|
76924
76922
|
if (!renderContext .transparent)
|
|
76923
|
+
{
|
|
76925
76924
|
gl .enable (gl .SAMPLE_ALPHA_TO_COVERAGE);
|
|
76925
|
+
gl .enable (gl .BLEND);
|
|
76926
|
+
gl .blendFuncSeparate (gl .ONE, gl .ZERO, gl .ZERO, gl .ONE);
|
|
76927
|
+
}
|
|
76926
76928
|
|
|
76927
76929
|
for (const node of renderModeNodes)
|
|
76928
76930
|
node .enable (gl);
|
|
@@ -76930,12 +76932,16 @@ Object .assign (Object .setPrototypeOf (X3DPointGeometryNode .prototype, Renderi
|
|
|
76930
76932
|
// Setup shader.
|
|
76931
76933
|
|
|
76932
76934
|
shaderNode .enable (gl);
|
|
76933
|
-
shaderNode .setUniforms (gl,
|
|
76935
|
+
shaderNode .setUniforms (gl, renderContext, this);
|
|
76934
76936
|
|
|
76935
76937
|
// Setup vertex attributes.
|
|
76936
76938
|
|
|
76937
76939
|
if (this .vertexArrayObject .enable (shaderNode .getProgram ()))
|
|
76938
76940
|
{
|
|
76941
|
+
const
|
|
76942
|
+
attribNodes = this .getAttrib (),
|
|
76943
|
+
attribBuffers = this .getAttribBuffers ();
|
|
76944
|
+
|
|
76939
76945
|
if (this .coordIndices .length)
|
|
76940
76946
|
shaderNode .enableCoordIndexAttribute (gl, this .coordIndexBuffer, 0, 0);
|
|
76941
76947
|
|
|
@@ -76962,19 +76968,26 @@ Object .assign (Object .setPrototypeOf (X3DPointGeometryNode .prototype, Renderi
|
|
|
76962
76968
|
for (const node of renderModeNodes)
|
|
76963
76969
|
node .disable (gl);
|
|
76964
76970
|
|
|
76965
|
-
|
|
76971
|
+
if (!renderContext .transparent)
|
|
76972
|
+
{
|
|
76973
|
+
gl .disable (gl .SAMPLE_ALPHA_TO_COVERAGE);
|
|
76974
|
+
gl .disable (gl .BLEND);
|
|
76975
|
+
gl .blendFuncSeparate (gl .SRC_ALPHA, gl .ONE_MINUS_SRC_ALPHA, gl .ONE, gl .ONE_MINUS_SRC_ALPHA);
|
|
76976
|
+
}
|
|
76966
76977
|
},
|
|
76967
76978
|
displayInstanced (gl, renderContext, shapeNode)
|
|
76968
76979
|
{
|
|
76969
76980
|
const
|
|
76970
76981
|
appearanceNode = renderContext .appearanceNode,
|
|
76971
76982
|
shaderNode = appearanceNode .getShader (this, renderContext),
|
|
76972
|
-
renderModeNodes = appearanceNode .getRenderModes ()
|
|
76973
|
-
attribNodes = this .getAttrib (),
|
|
76974
|
-
attribBuffers = this .getAttribBuffers ();
|
|
76983
|
+
renderModeNodes = appearanceNode .getRenderModes ();
|
|
76975
76984
|
|
|
76976
76985
|
if (!renderContext .transparent)
|
|
76986
|
+
{
|
|
76977
76987
|
gl .enable (gl .SAMPLE_ALPHA_TO_COVERAGE);
|
|
76988
|
+
gl .enable (gl .BLEND);
|
|
76989
|
+
gl .blendFuncSeparate (gl .ONE, gl .ZERO, gl .ZERO, gl .ONE);
|
|
76990
|
+
}
|
|
76978
76991
|
|
|
76979
76992
|
for (const node of renderModeNodes)
|
|
76980
76993
|
node .enable (gl);
|
|
@@ -76982,7 +76995,7 @@ Object .assign (Object .setPrototypeOf (X3DPointGeometryNode .prototype, Renderi
|
|
|
76982
76995
|
// Setup shader.
|
|
76983
76996
|
|
|
76984
76997
|
shaderNode .enable (gl);
|
|
76985
|
-
shaderNode .setUniforms (gl,
|
|
76998
|
+
shaderNode .setUniforms (gl, renderContext, this);
|
|
76986
76999
|
|
|
76987
77000
|
// Setup vertex attributes.
|
|
76988
77001
|
|
|
@@ -76992,6 +77005,10 @@ Object .assign (Object .setPrototypeOf (X3DPointGeometryNode .prototype, Renderi
|
|
|
76992
77005
|
{
|
|
76993
77006
|
const { instancesStride, particleOffset, velocityOffset, matrixOffset, normalMatrixOffset } = shapeNode;
|
|
76994
77007
|
|
|
77008
|
+
const
|
|
77009
|
+
attribNodes = this .getAttrib (),
|
|
77010
|
+
attribBuffers = this .getAttribBuffers ();
|
|
77011
|
+
|
|
76995
77012
|
if (particleOffset !== undefined)
|
|
76996
77013
|
shaderNode .enableParticleAttribute (gl, instances, instancesStride, particleOffset, 1);
|
|
76997
77014
|
|
|
@@ -77033,7 +77050,12 @@ Object .assign (Object .setPrototypeOf (X3DPointGeometryNode .prototype, Renderi
|
|
|
77033
77050
|
for (const node of renderModeNodes)
|
|
77034
77051
|
node .disable (gl);
|
|
77035
77052
|
|
|
77036
|
-
|
|
77053
|
+
if (!renderContext .transparent)
|
|
77054
|
+
{
|
|
77055
|
+
gl .disable (gl .SAMPLE_ALPHA_TO_COVERAGE);
|
|
77056
|
+
gl .disable (gl .BLEND);
|
|
77057
|
+
gl .blendFuncSeparate (gl .SRC_ALPHA, gl .ONE_MINUS_SRC_ALPHA, gl .ONE, gl .ONE_MINUS_SRC_ALPHA);
|
|
77058
|
+
}
|
|
77037
77059
|
},
|
|
77038
77060
|
});
|
|
77039
77061
|
|
|
@@ -77486,11 +77508,9 @@ Object .assign (Object .setPrototypeOf (X3DLineGeometryNode .prototype, Renderin
|
|
|
77486
77508
|
const
|
|
77487
77509
|
browser = this .getBrowser (),
|
|
77488
77510
|
appearanceNode = renderContext .appearanceNode,
|
|
77489
|
-
linePropertiesNode = appearanceNode .
|
|
77511
|
+
linePropertiesNode = appearanceNode .getStyleProperties (1),
|
|
77490
77512
|
shaderNode = appearanceNode .getShader (this, renderContext),
|
|
77491
|
-
renderModeNodes = appearanceNode .getRenderModes ()
|
|
77492
|
-
attribNodes = this .getAttrib (),
|
|
77493
|
-
attribBuffers = this .getAttribBuffers ();
|
|
77513
|
+
renderModeNodes = appearanceNode .getRenderModes ();
|
|
77494
77514
|
|
|
77495
77515
|
if (linePropertiesNode)
|
|
77496
77516
|
{
|
|
@@ -77602,7 +77622,7 @@ Object .assign (Object .setPrototypeOf (X3DLineGeometryNode .prototype, Renderin
|
|
|
77602
77622
|
// Setup shader.
|
|
77603
77623
|
|
|
77604
77624
|
shaderNode .enable (gl);
|
|
77605
|
-
shaderNode .setUniforms (gl,
|
|
77625
|
+
shaderNode .setUniforms (gl, renderContext, this);
|
|
77606
77626
|
|
|
77607
77627
|
// Setup vertex attributes.
|
|
77608
77628
|
|
|
@@ -77654,12 +77674,16 @@ Object .assign (Object .setPrototypeOf (X3DLineGeometryNode .prototype, Renderin
|
|
|
77654
77674
|
// Setup shader.
|
|
77655
77675
|
|
|
77656
77676
|
shaderNode .enable (gl);
|
|
77657
|
-
shaderNode .setUniforms (gl,
|
|
77677
|
+
shaderNode .setUniforms (gl, renderContext, this);
|
|
77658
77678
|
|
|
77659
77679
|
// Setup vertex attributes.
|
|
77660
77680
|
|
|
77661
77681
|
if (this .vertexArrayObject .enable (shaderNode .getProgram ()))
|
|
77662
77682
|
{
|
|
77683
|
+
const
|
|
77684
|
+
attribNodes = this .getAttrib (),
|
|
77685
|
+
attribBuffers = this .getAttribBuffers ();
|
|
77686
|
+
|
|
77663
77687
|
if (this .coordIndices .length)
|
|
77664
77688
|
shaderNode .enableCoordIndexAttribute (gl, this .coordIndexBuffer, 0, 0);
|
|
77665
77689
|
|
|
@@ -77704,11 +77728,9 @@ Object .assign (Object .setPrototypeOf (X3DLineGeometryNode .prototype, Renderin
|
|
|
77704
77728
|
browser = this .getBrowser (),
|
|
77705
77729
|
geometryContext = shapeNode .getGeometryContext (),
|
|
77706
77730
|
appearanceNode = renderContext .appearanceNode,
|
|
77707
|
-
linePropertiesNode = appearanceNode .
|
|
77731
|
+
linePropertiesNode = appearanceNode .getStyleProperties (1),
|
|
77708
77732
|
shaderNode = appearanceNode .getShader (geometryContext, renderContext),
|
|
77709
|
-
renderModeNodes = appearanceNode .getRenderModes ()
|
|
77710
|
-
attribNodes = this .getAttrib (),
|
|
77711
|
-
attribBuffers = this .getAttribBuffers ();
|
|
77733
|
+
renderModeNodes = appearanceNode .getRenderModes ();
|
|
77712
77734
|
|
|
77713
77735
|
if (linePropertiesNode)
|
|
77714
77736
|
{
|
|
@@ -77742,12 +77764,14 @@ Object .assign (Object .setPrototypeOf (X3DLineGeometryNode .prototype, Renderin
|
|
|
77742
77764
|
|
|
77743
77765
|
if (instances .thickLinesVertexArrayObject .update (this .updateInstances) .enable (transformShaderNode .getProgram ()))
|
|
77744
77766
|
{
|
|
77745
|
-
|
|
77767
|
+
// TODO: skinning is not implemented with thick lines, and must be done in the transform shader.
|
|
77768
|
+
|
|
77769
|
+
const { instancesStride, matrixOffset, colorOffset } = shapeNode;
|
|
77746
77770
|
|
|
77747
77771
|
transformShaderNode .enableInstanceMatrixAttribute (gl, instances, instancesStride, matrixOffset, 2);
|
|
77748
77772
|
|
|
77749
|
-
if (normalMatrixOffset !== undefined)
|
|
77750
|
-
|
|
77773
|
+
// if (normalMatrixOffset !== undefined)
|
|
77774
|
+
// transformShaderNode .enableInstanceNormalMatrixAttribute (gl, instances, instancesStride, normalMatrixOffset, 2);
|
|
77751
77775
|
|
|
77752
77776
|
const
|
|
77753
77777
|
coordIndexStride = 2 * Float32Array .BYTES_PER_ELEMENT,
|
|
@@ -77848,14 +77872,14 @@ Object .assign (Object .setPrototypeOf (X3DLineGeometryNode .prototype, Renderin
|
|
|
77848
77872
|
// Setup shader.
|
|
77849
77873
|
|
|
77850
77874
|
shaderNode .enable (gl);
|
|
77851
|
-
shaderNode .setUniforms (gl,
|
|
77875
|
+
shaderNode .setUniforms (gl, renderContext, geometryContext);
|
|
77852
77876
|
|
|
77853
77877
|
// Setup vertex attributes.
|
|
77854
77878
|
|
|
77855
77879
|
if (instances .thickLinesVertexArrayObject .update (this .updateInstances) .enable (shaderNode .getProgram ()))
|
|
77856
77880
|
{
|
|
77857
|
-
shaderNode .enableInstanceMatrixAttribute (gl, browser .getDefaultInstanceMatrices (),
|
|
77858
|
-
shaderNode .enableInstanceNormalMatrixAttribute (gl, browser .getDefaultInstanceMatrices (),
|
|
77881
|
+
shaderNode .enableInstanceMatrixAttribute (gl, browser .getDefaultInstanceMatrices (), 0, 0, 1);
|
|
77882
|
+
shaderNode .enableInstanceNormalMatrixAttribute (gl, browser .getDefaultInstanceMatrices (), 0, 64, 1);
|
|
77859
77883
|
|
|
77860
77884
|
const
|
|
77861
77885
|
stride = 16 * Float32Array .BYTES_PER_ELEMENT,
|
|
@@ -77905,7 +77929,7 @@ Object .assign (Object .setPrototypeOf (X3DLineGeometryNode .prototype, Renderin
|
|
|
77905
77929
|
// Setup shader.
|
|
77906
77930
|
|
|
77907
77931
|
shaderNode .enable (gl);
|
|
77908
|
-
shaderNode .setUniforms (gl,
|
|
77932
|
+
shaderNode .setUniforms (gl, renderContext, this);
|
|
77909
77933
|
|
|
77910
77934
|
// Setup vertex attributes.
|
|
77911
77935
|
|
|
@@ -77915,6 +77939,10 @@ Object .assign (Object .setPrototypeOf (X3DLineGeometryNode .prototype, Renderin
|
|
|
77915
77939
|
{
|
|
77916
77940
|
const { instancesStride, particleOffset, velocityOffset, matrixOffset, normalMatrixOffset, colorOffset } = shapeNode;
|
|
77917
77941
|
|
|
77942
|
+
const
|
|
77943
|
+
attribNodes = this .getAttrib (),
|
|
77944
|
+
attribBuffers = this .getAttribBuffers ();
|
|
77945
|
+
|
|
77918
77946
|
if (particleOffset !== undefined)
|
|
77919
77947
|
shaderNode .enableParticleAttribute (gl, instances, instancesStride, particleOffset, 1);
|
|
77920
77948
|
|
|
@@ -80126,13 +80154,16 @@ Object .assign (Object .setPrototypeOf (StaticGroup .prototype, Core_X3DChildNod
|
|
|
80126
80154
|
},
|
|
80127
80155
|
traverse (type, renderObject)
|
|
80128
80156
|
{
|
|
80129
|
-
this .visibleNodes
|
|
80157
|
+
if (!this .visibleNodes)
|
|
80158
|
+
this .createStaticShapes (renderObject);
|
|
80130
80159
|
|
|
80131
80160
|
for (const visibleNode of this .visibleNodes)
|
|
80132
80161
|
visibleNode .traverse (type, renderObject);
|
|
80133
80162
|
},
|
|
80134
80163
|
createStaticShapes (renderObject)
|
|
80135
80164
|
{
|
|
80165
|
+
this .visibleNodes = [this .groupNode];
|
|
80166
|
+
|
|
80136
80167
|
// Check if scene is currently loading something.
|
|
80137
80168
|
|
|
80138
80169
|
const scene = this .getScene ();
|
|
@@ -80155,14 +80186,13 @@ Object .assign (Object .setPrototypeOf (StaticGroup .prototype, Core_X3DChildNod
|
|
|
80155
80186
|
|
|
80156
80187
|
this .optimizeGroups (this .createGroups (renderObject));
|
|
80157
80188
|
}
|
|
80158
|
-
|
|
80159
|
-
return [this .groupNode];
|
|
80160
80189
|
},
|
|
80161
80190
|
createGroups: (() =>
|
|
80162
80191
|
{
|
|
80163
|
-
const
|
|
80164
|
-
|
|
80165
|
-
|
|
80192
|
+
const
|
|
80193
|
+
Statics = ["Opaque", "Transparent"],
|
|
80194
|
+
viewVolume = new Geometry_ViewVolume (),
|
|
80195
|
+
style = { style: "CLEAN" };
|
|
80166
80196
|
|
|
80167
80197
|
viewVolume .intersectsSphere = () => true;
|
|
80168
80198
|
|
|
@@ -80224,6 +80254,9 @@ Object .assign (Object .setPrototypeOf (StaticGroup .prototype, Core_X3DChildNod
|
|
|
80224
80254
|
appearanceNode = shapeNode .getAppearance (),
|
|
80225
80255
|
geometryNode = shapeNode .getGeometry ();
|
|
80226
80256
|
|
|
80257
|
+
if (!geometryNode .getVertices () .length)
|
|
80258
|
+
continue;
|
|
80259
|
+
|
|
80227
80260
|
if (shapeNode .getShapeKey () > 0 || this .hasTextureCoordinateGenerator (geometryNode))
|
|
80228
80261
|
{
|
|
80229
80262
|
const group = singlesIndex [renderContext .modelViewMatrix] ??= [ ];
|
|
@@ -80234,8 +80267,6 @@ Object .assign (Object .setPrototypeOf (StaticGroup .prototype, Core_X3DChildNod
|
|
|
80234
80267
|
|
|
80235
80268
|
let key = "";
|
|
80236
80269
|
|
|
80237
|
-
key += appearanceNode .getId ();
|
|
80238
|
-
key += ".";
|
|
80239
80270
|
key += geometryNode .getGeometryType ();
|
|
80240
80271
|
key += geometryNode .isSolid () ? 1 : 0;
|
|
80241
80272
|
key += geometryNode .getFogDepths () .length ? 1 : 0;
|
|
@@ -80243,6 +80274,8 @@ Object .assign (Object .setPrototypeOf (StaticGroup .prototype, Core_X3DChildNod
|
|
|
80243
80274
|
key += shapeNode ._pointerEvents .getValue () ? 1 : 0;
|
|
80244
80275
|
key += shapeNode ._castShadow .getValue () ? 1 : 0;
|
|
80245
80276
|
key += shapeNode ._bboxDisplay .getValue () ? 1 : 0;
|
|
80277
|
+
key += ".";
|
|
80278
|
+
key += appearanceNode .toVRMLString (style);
|
|
80246
80279
|
|
|
80247
80280
|
const
|
|
80248
80281
|
clones = clonesIndex .get (shapeNode),
|
|
@@ -86858,12 +86891,6 @@ Object .assign (Object .setPrototypeOf (Inline .prototype, Core_X3DChildNode .pr
|
|
|
86858
86891
|
|
|
86859
86892
|
return bbox .set (this ._bboxSize .getValue (), this ._bboxCenter .getValue ());
|
|
86860
86893
|
},
|
|
86861
|
-
set_live__ ()
|
|
86862
|
-
{
|
|
86863
|
-
Networking_X3DUrlObject .prototype .set_live__ .call (this);
|
|
86864
|
-
|
|
86865
|
-
this .scene .setLive (this .getLive () .getValue ());
|
|
86866
|
-
},
|
|
86867
86894
|
unloadData ()
|
|
86868
86895
|
{
|
|
86869
86896
|
this .abortLoading ();
|
|
@@ -86916,7 +86943,7 @@ Object .assign (Object .setPrototypeOf (Inline .prototype, Core_X3DChildNode .pr
|
|
|
86916
86943
|
if (this .scene !== this .getBrowser () .getDefaultScene ())
|
|
86917
86944
|
{
|
|
86918
86945
|
this .scene .setExecutionContext (this .getExecutionContext ());
|
|
86919
|
-
this .scene .setLive (
|
|
86946
|
+
this .scene .setLive (true);
|
|
86920
86947
|
this .scene .rootNodes .addFieldInterest (this .groupNode ._children);
|
|
86921
86948
|
this .groupNode ._children = this .scene .rootNodes;
|
|
86922
86949
|
}
|
|
@@ -90542,7 +90569,7 @@ mediump samplerCube textureCube;
|
|
|
90542
90569
|
|
|
90543
90570
|
/* harmony default export */ const MaterialTextures = (x_ite_Namespace .add ("MaterialTextures", MaterialTextures_default_));
|
|
90544
90571
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js
|
|
90545
|
-
/* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(
|
|
90572
|
+
/* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(562);
|
|
90546
90573
|
/*******************************************************************************
|
|
90547
90574
|
*
|
|
90548
90575
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -91584,7 +91611,7 @@ Object .assign (X3DProgrammableShaderObject .prototype,
|
|
|
91584
91611
|
xrModelViewMatrix = new Float32Array (16),
|
|
91585
91612
|
normalMatrix = new Float32Array (9);
|
|
91586
91613
|
|
|
91587
|
-
return function (gl,
|
|
91614
|
+
return function (gl, renderContext, geometryContext, front = true)
|
|
91588
91615
|
{
|
|
91589
91616
|
const { renderObject, fogNode, appearanceNode, humanoidNode, modelViewMatrix } = renderContext;
|
|
91590
91617
|
|
|
@@ -91860,10 +91887,6 @@ Object .assign (X3DProgrammableShaderObject .prototype,
|
|
|
91860
91887
|
gl .enableVertexAttribArray (location);
|
|
91861
91888
|
gl .vertexAttribPointer (location, 4, gl .FLOAT, false, stride, offset);
|
|
91862
91889
|
},
|
|
91863
|
-
vertexAttributeDivisor (gl, divisor)
|
|
91864
|
-
{
|
|
91865
|
-
gl .vertexAttribDivisor (this .x3d_Vertex, divisor);
|
|
91866
|
-
},
|
|
91867
91890
|
enableParticleAttribute (gl, buffer, stride, offset, divisor)
|
|
91868
91891
|
{
|
|
91869
91892
|
const location = this .x3d_Particle;
|
|
@@ -92182,7 +92205,7 @@ Object .assign (Object .setPrototypeOf (ComposedShader .prototype, Shaders_X3DSh
|
|
|
92182
92205
|
|
|
92183
92206
|
if (this ._parts .length)
|
|
92184
92207
|
{
|
|
92185
|
-
console .warn (
|
|
92208
|
+
console .warn (`Couldn't initialize ${this .getTypeName ()} '${this .getName ()}': ${gl .getProgramInfoLog (program)}`);
|
|
92186
92209
|
}
|
|
92187
92210
|
}
|
|
92188
92211
|
}
|
|
@@ -94758,13 +94781,13 @@ vec3 finalColor=vec3(0.0);
|
|
|
94758
94781
|
#endif
|
|
94759
94782
|
finalColor+=material.emissiveColor;return vec4(finalColor,diffuseColor.a);}void main(){vertex_main();
|
|
94760
94783
|
#if defined(X3D_LIGHTING)
|
|
94761
|
-
|
|
94784
|
+
vec3 n=normalize(normal);
|
|
94762
94785
|
#else
|
|
94763
|
-
vec3
|
|
94786
|
+
vec3 n=vec3(0.0);
|
|
94764
94787
|
#endif
|
|
94765
|
-
frontColor=getMaterialColor(
|
|
94788
|
+
frontColor=getMaterialColor(n,vertex,x3d_Material);
|
|
94766
94789
|
#if!defined(X3D_GEOMETRY_0D)&&!defined(X3D_GEOMETRY_1D)
|
|
94767
|
-
backColor=getMaterialColor(-
|
|
94790
|
+
backColor=getMaterialColor(-n,vertex,x3d_Material);
|
|
94768
94791
|
#endif
|
|
94769
94792
|
}`
|
|
94770
94793
|
;
|
|
@@ -94782,7 +94805,7 @@ precision highp float;uniform vec4 viewport;uniform mat4 modelViewProjectionMatr
|
|
|
94782
94805
|
#if defined(X3D_INSTANCING)
|
|
94783
94806
|
in mat4 x3d_InstanceMatrix;
|
|
94784
94807
|
#endif
|
|
94785
|
-
in float x3d_LengthSoFar;in float x3d_CoordIndex0;in float x3d_FogDepth0;in vec4 x3d_Color0;in vec3 x3d_Normal0;in vec4 x3d_Vertex0;in float x3d_CoordIndex1;in float x3d_FogDepth1;in vec4 x3d_Color1;in vec3 x3d_Normal1;in vec4 x3d_Vertex1;out float coordIndex0;out vec3 lineStipple0;out float fogDepth0;out vec4 color0;out vec3 normal0;out vec4 vertex0;out float coordIndex1;out vec3 lineStipple1;out float fogDepth1;out vec4 color1;out vec3 normal1;out vec4 vertex1;out float coordIndex2;out vec3 lineStipple2;out float fogDepth2;out vec4 color2;out vec3 normal2;out vec4 vertex2;vec3 projectPoint(const in vec4 point,const in mat4 modelViewProjectionMatrix,const in vec4 viewport){vec4 vin=modelViewProjectionMatrix*point;vin.xyz=vin.xyz/(2.0*vin.w)+0.5;return vec3(vin.xy*viewport.zw+viewport.xy,vin.z);}vec4 unProjectPoint(const in vec3 win,const in mat4 invModelViewProjection,const in vec4 viewport){vec4 vin=vec4((win.xy-viewport.xy)/viewport.zw
|
|
94808
|
+
in float x3d_LengthSoFar;in float x3d_CoordIndex0;in float x3d_FogDepth0;in vec4 x3d_Color0;in vec3 x3d_Normal0;in vec4 x3d_Vertex0;in float x3d_CoordIndex1;in float x3d_FogDepth1;in vec4 x3d_Color1;in vec3 x3d_Normal1;in vec4 x3d_Vertex1;out float coordIndex0;out vec3 lineStipple0;out float fogDepth0;out vec4 color0;out vec3 normal0;out vec4 vertex0;out float coordIndex1;out vec3 lineStipple1;out float fogDepth1;out vec4 color1;out vec3 normal1;out vec4 vertex1;out float coordIndex2;out vec3 lineStipple2;out float fogDepth2;out vec4 color2;out vec3 normal2;out vec4 vertex2;vec3 projectPoint(const in vec4 point,const in mat4 modelViewProjectionMatrix,const in vec4 viewport){vec4 vin=modelViewProjectionMatrix*point;vin.xyz=vin.xyz/(2.0*vin.w)+0.5;return vec3(vin.xy*viewport.zw+viewport.xy,vin.z);}vec4 unProjectPoint(const in vec3 win,const in mat4 invModelViewProjection,const in vec4 viewport){vec4 vin=vec4((win.xy-viewport.xy)/viewport.zw,win.z,1.0);vin.xyz=vin.xyz*2.0-1.0;vin=invModelViewProjection*vin;return vec4(vin.xyz/vin.w,1.0);}void main(){
|
|
94786
94809
|
#if defined(X3D_INSTANCING)
|
|
94787
94810
|
vec3 projected0=projectPoint(x3d_InstanceMatrix*x3d_Vertex0,modelViewProjectionMatrix,viewport);vec3 projected1=projectPoint(x3d_InstanceMatrix*x3d_Vertex1,modelViewProjectionMatrix,viewport);
|
|
94788
94811
|
#else
|
|
@@ -95800,7 +95823,7 @@ const ShaderCompiler_default_ = ShaderCompiler;
|
|
|
95800
95823
|
|
|
95801
95824
|
/* harmony default export */ const Shaders_ShaderCompiler = (x_ite_Namespace .add ("ShaderCompiler", ShaderCompiler_default_));
|
|
95802
95825
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/ShaderPart.js
|
|
95803
|
-
/* provided dependency */ var ShaderPart_$ = __webpack_require__(
|
|
95826
|
+
/* provided dependency */ var ShaderPart_$ = __webpack_require__(562);
|
|
95804
95827
|
/*******************************************************************************
|
|
95805
95828
|
*
|
|
95806
95829
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -96398,7 +96421,7 @@ const X3DAppearanceNode_default_ = X3DAppearanceNode;
|
|
|
96398
96421
|
|
|
96399
96422
|
/* harmony default export */ const Shape_X3DAppearanceNode = (x_ite_Namespace .add ("X3DAppearanceNode", X3DAppearanceNode_default_));
|
|
96400
96423
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Shape/Appearance.js
|
|
96401
|
-
/* provided dependency */ var Appearance_$ = __webpack_require__(
|
|
96424
|
+
/* provided dependency */ var Appearance_$ = __webpack_require__(562);
|
|
96402
96425
|
/*******************************************************************************
|
|
96403
96426
|
*
|
|
96404
96427
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -96522,18 +96545,6 @@ Object .assign (Object .setPrototypeOf (Appearance .prototype, Shape_X3DAppearan
|
|
|
96522
96545
|
{
|
|
96523
96546
|
return this .stylePropertiesNode [geometryType];
|
|
96524
96547
|
},
|
|
96525
|
-
getPointProperties ()
|
|
96526
|
-
{
|
|
96527
|
-
return this .stylePropertiesNode [0];
|
|
96528
|
-
},
|
|
96529
|
-
getLineProperties ()
|
|
96530
|
-
{
|
|
96531
|
-
return this .stylePropertiesNode [1];
|
|
96532
|
-
},
|
|
96533
|
-
getFillProperties ()
|
|
96534
|
-
{
|
|
96535
|
-
return this .stylePropertiesNode [2];
|
|
96536
|
-
},
|
|
96537
96548
|
getMaterial ()
|
|
96538
96549
|
{
|
|
96539
96550
|
return this .materialNode;
|
|
@@ -104633,8 +104644,8 @@ const GifMedia_default_ = GifMedia;
|
|
|
104633
104644
|
|
|
104634
104645
|
/* harmony default export */ const Texturing_GifMedia = (x_ite_Namespace .add ("GifMedia", GifMedia_default_));
|
|
104635
104646
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/MovieTexture.js
|
|
104636
|
-
/* provided dependency */ var MovieTexture_$ = __webpack_require__(
|
|
104637
|
-
/* provided dependency */ var SuperGif = __webpack_require__(
|
|
104647
|
+
/* provided dependency */ var MovieTexture_$ = __webpack_require__(562);
|
|
104648
|
+
/* provided dependency */ var SuperGif = __webpack_require__(349);
|
|
104638
104649
|
/*******************************************************************************
|
|
104639
104650
|
*
|
|
104640
104651
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -107102,7 +107113,7 @@ const gettext_default_ = (string) => locale .get (string) || string;
|
|
|
107102
107113
|
|
|
107103
107114
|
/* harmony default export */ const gettext = (x_ite_Namespace .add ("gettext", gettext_default_));
|
|
107104
107115
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserTimings.js
|
|
107105
|
-
/* provided dependency */ var BrowserTimings_$ = __webpack_require__(
|
|
107116
|
+
/* provided dependency */ var BrowserTimings_$ = __webpack_require__(562);
|
|
107106
107117
|
/*******************************************************************************
|
|
107107
107118
|
*
|
|
107108
107119
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -107732,7 +107743,7 @@ const TextCompression_default_ = TextCompression;
|
|
|
107732
107743
|
|
|
107733
107744
|
/* harmony default export */ const Core_TextCompression = (x_ite_Namespace .add ("TextCompression", TextCompression_default_));
|
|
107734
107745
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserOptions.js
|
|
107735
|
-
/* provided dependency */ var BrowserOptions_$ = __webpack_require__(
|
|
107746
|
+
/* provided dependency */ var BrowserOptions_$ = __webpack_require__(562);
|
|
107736
107747
|
/*******************************************************************************
|
|
107737
107748
|
*
|
|
107738
107749
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -108379,7 +108390,7 @@ const RenderingProperties_default_ = RenderingProperties;
|
|
|
108379
108390
|
|
|
108380
108391
|
/* harmony default export */ const Core_RenderingProperties = (x_ite_Namespace .add ("RenderingProperties", RenderingProperties_default_));
|
|
108381
108392
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/Notification.js
|
|
108382
|
-
/* provided dependency */ var Notification_$ = __webpack_require__(
|
|
108393
|
+
/* provided dependency */ var Notification_$ = __webpack_require__(562);
|
|
108383
108394
|
/*******************************************************************************
|
|
108384
108395
|
*
|
|
108385
108396
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -108501,8 +108512,8 @@ const Notification_default_ = Notification;
|
|
|
108501
108512
|
|
|
108502
108513
|
/* harmony default export */ const Core_Notification = (x_ite_Namespace .add ("Notification", Notification_default_));
|
|
108503
108514
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/ContextMenu.js
|
|
108504
|
-
/* provided dependency */ var jquery_fullscreen = __webpack_require__(
|
|
108505
|
-
/* provided dependency */ var ContextMenu_$ = __webpack_require__(
|
|
108515
|
+
/* provided dependency */ var jquery_fullscreen = __webpack_require__(498);
|
|
108516
|
+
/* provided dependency */ var ContextMenu_$ = __webpack_require__(562);
|
|
108506
108517
|
/*******************************************************************************
|
|
108507
108518
|
*
|
|
108508
108519
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -110045,7 +110056,6 @@ function X3DScene (browser)
|
|
|
110045
110056
|
|
|
110046
110057
|
this .addChildObjects (Base_X3DConstants .outputOnly, "profile_changed", new x_ite_Fields .SFTime (),
|
|
110047
110058
|
Base_X3DConstants .outputOnly, "metadata_changed", new x_ite_Fields .SFTime (),
|
|
110048
|
-
Base_X3DConstants .outputOnly, "initLoadCount", new x_ite_Fields .SFInt32 (),
|
|
110049
110059
|
Base_X3DConstants .outputOnly, "loadCount", new x_ite_Fields .SFInt32 ())
|
|
110050
110060
|
|
|
110051
110061
|
this [_specificationVersion] = LATEST_VERSION;
|
|
@@ -110973,14 +110983,6 @@ Object .assign (Object .setPrototypeOf (X3DScene .prototype, Execution_X3DExecut
|
|
|
110973
110983
|
scene .addLoadingObject (object);
|
|
110974
110984
|
}
|
|
110975
110985
|
},
|
|
110976
|
-
addInitLoadCount (node)
|
|
110977
|
-
{
|
|
110978
|
-
this ._initLoadCount = this ._initLoadCount .getValue () + 1;
|
|
110979
|
-
},
|
|
110980
|
-
removeInitLoadCount (node)
|
|
110981
|
-
{
|
|
110982
|
-
this ._initLoadCount = this ._initLoadCount .getValue () - 1;
|
|
110983
|
-
},
|
|
110984
110986
|
getLoadingObjects ()
|
|
110985
110987
|
{
|
|
110986
110988
|
return this [_loadingObjects];
|
|
@@ -111237,7 +111239,7 @@ const DataStorage_default_ = DataStorage;
|
|
|
111237
111239
|
|
|
111238
111240
|
/* harmony default export */ const Utility_DataStorage = (x_ite_Namespace .add ("DataStorage", DataStorage_default_));
|
|
111239
111241
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/X3DCoreContext.js
|
|
111240
|
-
/* provided dependency */ var X3DCoreContext_$ = __webpack_require__(
|
|
111242
|
+
/* provided dependency */ var X3DCoreContext_$ = __webpack_require__(562);
|
|
111241
111243
|
/*******************************************************************************
|
|
111242
111244
|
*
|
|
111243
111245
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -113848,8 +113850,8 @@ const X3DViewer_default_ = X3DViewer;
|
|
|
113848
113850
|
|
|
113849
113851
|
/* harmony default export */ const Navigation_X3DViewer = (x_ite_Namespace .add ("X3DViewer", X3DViewer_default_));
|
|
113850
113852
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/ExamineViewer.js
|
|
113851
|
-
/* provided dependency */ var jquery_mousewheel = __webpack_require__(
|
|
113852
|
-
/* provided dependency */ var ExamineViewer_$ = __webpack_require__(
|
|
113853
|
+
/* provided dependency */ var jquery_mousewheel = __webpack_require__(192);
|
|
113854
|
+
/* provided dependency */ var ExamineViewer_$ = __webpack_require__(562);
|
|
113853
113855
|
/*******************************************************************************
|
|
113854
113856
|
*
|
|
113855
113857
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -114764,8 +114766,8 @@ const ExamineViewer_default_ = ExamineViewer;
|
|
|
114764
114766
|
|
|
114765
114767
|
/* harmony default export */ const Navigation_ExamineViewer = (x_ite_Namespace .add ("ExamineViewer", ExamineViewer_default_));
|
|
114766
114768
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/X3DFlyViewer.js
|
|
114767
|
-
/* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(
|
|
114768
|
-
/* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(
|
|
114769
|
+
/* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(192);
|
|
114770
|
+
/* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(562);
|
|
114769
114771
|
/*******************************************************************************
|
|
114770
114772
|
*
|
|
114771
114773
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -115780,8 +115782,8 @@ const FlyViewer_default_ = FlyViewer;
|
|
|
115780
115782
|
|
|
115781
115783
|
/* harmony default export */ const Navigation_FlyViewer = (x_ite_Namespace .add ("FlyViewer", FlyViewer_default_));
|
|
115782
115784
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/PlaneViewer.js
|
|
115783
|
-
/* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(
|
|
115784
|
-
/* provided dependency */ var PlaneViewer_$ = __webpack_require__(
|
|
115785
|
+
/* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(192);
|
|
115786
|
+
/* provided dependency */ var PlaneViewer_$ = __webpack_require__(562);
|
|
115785
115787
|
/*******************************************************************************
|
|
115786
115788
|
*
|
|
115787
115789
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -116110,8 +116112,8 @@ const NoneViewer_default_ = NoneViewer;
|
|
|
116110
116112
|
|
|
116111
116113
|
/* harmony default export */ const Navigation_NoneViewer = (x_ite_Namespace .add ("NoneViewer", NoneViewer_default_));
|
|
116112
116114
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/LookAtViewer.js
|
|
116113
|
-
/* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(
|
|
116114
|
-
/* provided dependency */ var LookAtViewer_$ = __webpack_require__(
|
|
116115
|
+
/* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(192);
|
|
116116
|
+
/* provided dependency */ var LookAtViewer_$ = __webpack_require__(562);
|
|
116115
116117
|
/*******************************************************************************
|
|
116116
116118
|
*
|
|
116117
116119
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -117256,8 +117258,8 @@ const X3DPickingContext_default_ = X3DPickingContext;
|
|
|
117256
117258
|
|
|
117257
117259
|
/* harmony default export */ const Picking_X3DPickingContext = (x_ite_Namespace .add ("X3DPickingContext", X3DPickingContext_default_));
|
|
117258
117260
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js
|
|
117259
|
-
/* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(
|
|
117260
|
-
/* provided dependency */ var PointingDevice_$ = __webpack_require__(
|
|
117261
|
+
/* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(192);
|
|
117262
|
+
/* provided dependency */ var PointingDevice_$ = __webpack_require__(562);
|
|
117261
117263
|
/*******************************************************************************
|
|
117262
117264
|
*
|
|
117263
117265
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -118704,7 +118706,7 @@ const Lock_default_ = Lock;
|
|
|
118704
118706
|
|
|
118705
118707
|
/* harmony default export */ const Utility_Lock = (x_ite_Namespace .add ("Lock", Lock_default_));
|
|
118706
118708
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Rendering/X3DRenderingContext.js
|
|
118707
|
-
/* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(
|
|
118709
|
+
/* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(562);
|
|
118708
118710
|
/*******************************************************************************
|
|
118709
118711
|
*
|
|
118710
118712
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -118818,7 +118820,6 @@ Object .assign (X3DRenderingContext .prototype,
|
|
|
118818
118820
|
gl .enable (gl .DEPTH_TEST);
|
|
118819
118821
|
gl .depthFunc (gl .LEQUAL);
|
|
118820
118822
|
gl .clearDepth (1);
|
|
118821
|
-
gl .sampleCoverage (1.0, false);
|
|
118822
118823
|
|
|
118823
118824
|
gl .blendFuncSeparate (gl .SRC_ALPHA, gl .ONE_MINUS_SRC_ALPHA, gl .ONE, gl .ONE_MINUS_SRC_ALPHA);
|
|
118824
118825
|
gl .blendEquationSeparate (gl .FUNC_ADD, gl .FUNC_ADD);
|
|
@@ -119594,7 +119595,7 @@ Object .assign (X3DShadersContext .prototype,
|
|
|
119594
119595
|
.set (gl .POINTS, gl .POINTS)
|
|
119595
119596
|
.set (gl .LINES, gl .LINES)
|
|
119596
119597
|
.set (gl .TRIANGLES, gl .TRIANGLES);
|
|
119597
|
-
|
|
119598
|
+
|
|
119598
119599
|
break;
|
|
119599
119600
|
}
|
|
119600
119601
|
}
|
|
@@ -119613,7 +119614,7 @@ Object .assign (X3DShadersContext .prototype,
|
|
|
119613
119614
|
version = gl .getVersion ();
|
|
119614
119615
|
|
|
119615
119616
|
const vertexShader = new Shaders_ShaderPart (this .getPrivateScene ());
|
|
119616
|
-
vertexShader ._url .push (encodeURI (vs .startsWith ("data:") ? vs :
|
|
119617
|
+
vertexShader ._url .push (encodeURI (vs .startsWith ("data:") ? vs : `data:x-shader/x-vertex,${Shaders_ShaderRegistry .vertex [version] [vs]}`));
|
|
119617
119618
|
vertexShader .setPrivate (true);
|
|
119618
119619
|
vertexShader .setName (`${name}VertexShader`);
|
|
119619
119620
|
vertexShader .setOptions (options);
|
|
@@ -119621,7 +119622,7 @@ Object .assign (X3DShadersContext .prototype,
|
|
|
119621
119622
|
|
|
119622
119623
|
const fragmentShader = new Shaders_ShaderPart (this .getPrivateScene ());
|
|
119623
119624
|
fragmentShader ._type = "FRAGMENT";
|
|
119624
|
-
fragmentShader ._url .push (encodeURI (fs .startsWith ("data:") ? fs :
|
|
119625
|
+
fragmentShader ._url .push (encodeURI (fs .startsWith ("data:") ? fs : `data:x-shader/x-fragment,${Shaders_ShaderRegistry .fragment [version] [fs]}`));
|
|
119625
119626
|
fragmentShader .setPrivate (true);
|
|
119626
119627
|
fragmentShader .setName (`${name}FragmentShader`);
|
|
119627
119628
|
fragmentShader .setOptions (options);
|
|
@@ -120027,7 +120028,7 @@ const X3DSoundContext_default_ = X3DSoundContext;
|
|
|
120027
120028
|
|
|
120028
120029
|
/* harmony default export */ const Sound_X3DSoundContext = (x_ite_Namespace .add ("X3DSoundContext", X3DSoundContext_default_));
|
|
120029
120030
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Texturing/KTXDecoder.js
|
|
120030
|
-
/* provided dependency */ var KTXDecoder_$ = __webpack_require__(
|
|
120031
|
+
/* provided dependency */ var KTXDecoder_$ = __webpack_require__(562);
|
|
120031
120032
|
const KTXDecoder_default_ = class KTXDecoder
|
|
120032
120033
|
{
|
|
120033
120034
|
constructor (gl, externalKtxlib, scriptDir)
|
|
@@ -121258,6 +121259,8 @@ Object .assign (Object .setPrototypeOf (X3DBrowserContext .prototype, Base_X3DBa
|
|
|
121258
121259
|
},
|
|
121259
121260
|
setExecutionContext (executionContext)
|
|
121260
121261
|
{
|
|
121262
|
+
this .getDefaultScene () .setExecutionContext (executionContext);
|
|
121263
|
+
|
|
121261
121264
|
this [_world] = new Execution_X3DWorld (executionContext);
|
|
121262
121265
|
this [_world] .setup ();
|
|
121263
121266
|
},
|
|
@@ -121604,7 +121607,7 @@ const Components_default_ = Components;
|
|
|
121604
121607
|
|
|
121605
121608
|
/* harmony default export */ const x_ite_Components = (x_ite_Namespace .add ("Components", Components_default_));
|
|
121606
121609
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/DOMIntegration.js
|
|
121607
|
-
/* provided dependency */ var DOMIntegration_$ = __webpack_require__(
|
|
121610
|
+
/* provided dependency */ var DOMIntegration_$ = __webpack_require__(562);
|
|
121608
121611
|
/*******************************************************************************
|
|
121609
121612
|
* MIT License
|
|
121610
121613
|
*
|
|
@@ -122870,7 +122873,7 @@ const FieldTypes_default_ = new Configuration_FieldTypesArray (Object .values (x
|
|
|
122870
122873
|
|
|
122871
122874
|
/* harmony default export */ const FieldTypes = (x_ite_Namespace .add ("FieldTypes", FieldTypes_default_));
|
|
122872
122875
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/X3DBrowser.js
|
|
122873
|
-
/* provided dependency */ var X3DBrowser_$ = __webpack_require__(
|
|
122876
|
+
/* provided dependency */ var X3DBrowser_$ = __webpack_require__(562);
|
|
122874
122877
|
/*******************************************************************************
|
|
122875
122878
|
*
|
|
122876
122879
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -123937,7 +123940,7 @@ const X3DBrowser_default_ = X3DBrowser;
|
|
|
123937
123940
|
|
|
123938
123941
|
/* harmony default export */ const Browser_X3DBrowser = (x_ite_Namespace .add ("X3DBrowser", X3DBrowser_default_));
|
|
123939
123942
|
;// CONCATENATED MODULE: ./src/x_ite/X3DCanvasElement.js
|
|
123940
|
-
/* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(
|
|
123943
|
+
/* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(562);
|
|
123941
123944
|
/*******************************************************************************
|
|
123942
123945
|
*
|
|
123943
123946
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -124204,8 +124207,8 @@ const QuickSort_default_ = QuickSort;
|
|
|
124204
124207
|
|
|
124205
124208
|
/* harmony default export */ const Algorithms_QuickSort = (x_ite_Namespace .add ("QuickSort", QuickSort_default_));
|
|
124206
124209
|
;// CONCATENATED MODULE: ./src/lib/jquery.js
|
|
124207
|
-
/* provided dependency */ var jquery_$ = __webpack_require__(
|
|
124208
|
-
/* provided dependency */ var pako = __webpack_require__(
|
|
124210
|
+
/* provided dependency */ var jquery_$ = __webpack_require__(562);
|
|
124211
|
+
/* provided dependency */ var pako = __webpack_require__(418);
|
|
124209
124212
|
Object .assign (jquery_$,
|
|
124210
124213
|
{
|
|
124211
124214
|
decodeText (input)
|
|
@@ -124282,13 +124285,13 @@ const jquery_default_ = jquery_$;
|
|
|
124282
124285
|
|
|
124283
124286
|
/* harmony default export */ const jquery = (x_ite_Namespace .add ("jquery", jquery_default_));
|
|
124284
124287
|
;// CONCATENATED MODULE: ./src/lib/libtess.js
|
|
124285
|
-
/* provided dependency */ var libtess_libtess = __webpack_require__(
|
|
124288
|
+
/* provided dependency */ var libtess_libtess = __webpack_require__(611);
|
|
124286
124289
|
const libtess_default_ = libtess_libtess;
|
|
124287
124290
|
;
|
|
124288
124291
|
|
|
124289
124292
|
/* harmony default export */ const lib_libtess = (x_ite_Namespace .add ("libtess", libtess_default_));
|
|
124290
124293
|
;// CONCATENATED MODULE: ./src/x_ite/X3D.js
|
|
124291
|
-
/* provided dependency */ var X3D_$ = __webpack_require__(
|
|
124294
|
+
/* provided dependency */ var X3D_$ = __webpack_require__(562);
|
|
124292
124295
|
/*******************************************************************************
|
|
124293
124296
|
*
|
|
124294
124297
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -124592,7 +124595,7 @@ x_ite_Namespace, x_ite_Namespace .Fields,
|
|
|
124592
124595
|
|
|
124593
124596
|
// Assign X3D to global namespace.
|
|
124594
124597
|
|
|
124595
|
-
window [Symbol .for ("X_ITE.X3D-10.5.
|
|
124598
|
+
window [Symbol .for ("X_ITE.X3D-10.5.3")] = x_ite_X3D;
|
|
124596
124599
|
|
|
124597
124600
|
customElements .define ("x3d-canvas", x_ite_X3DCanvasElement);
|
|
124598
124601
|
|