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.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
/* X_ITE v10.5.
|
|
1
|
+
/* X_ITE v10.5.3 */
|
|
2
2
|
var __webpack_modules__ = ({
|
|
3
3
|
|
|
4
|
-
/***/
|
|
4
|
+
/***/ 498:
|
|
5
5
|
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
6
6
|
|
|
7
|
-
/* provided dependency */ var jQuery = __webpack_require__(
|
|
7
|
+
/* provided dependency */ var jQuery = __webpack_require__(562);
|
|
8
8
|
/**
|
|
9
9
|
* @preserve jquery.fullscreen 1.1.5
|
|
10
10
|
* https://github.com/code-lts/jquery-fullscreen-plugin
|
|
@@ -200,7 +200,7 @@ installFullScreenHandlers();
|
|
|
200
200
|
|
|
201
201
|
/***/ }),
|
|
202
202
|
|
|
203
|
-
/***/
|
|
203
|
+
/***/ 192:
|
|
204
204
|
/***/ ((module, exports, __webpack_require__) => {
|
|
205
205
|
|
|
206
206
|
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
@@ -214,7 +214,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
214
214
|
(function (factory) {
|
|
215
215
|
if ( true ) {
|
|
216
216
|
// AMD. Register as an anonymous module.
|
|
217
|
-
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(
|
|
217
|
+
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(562)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
|
|
218
218
|
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
|
|
219
219
|
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
|
|
220
220
|
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
@@ -425,7 +425,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
425
425
|
|
|
426
426
|
/***/ }),
|
|
427
427
|
|
|
428
|
-
/***/
|
|
428
|
+
/***/ 562:
|
|
429
429
|
/***/ (function(module, exports) {
|
|
430
430
|
|
|
431
431
|
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
@@ -11149,7 +11149,7 @@ return jQuery;
|
|
|
11149
11149
|
|
|
11150
11150
|
/***/ }),
|
|
11151
11151
|
|
|
11152
|
-
/***/
|
|
11152
|
+
/***/ 611:
|
|
11153
11153
|
/***/ ((module) => {
|
|
11154
11154
|
|
|
11155
11155
|
/**
|
|
@@ -15928,7 +15928,7 @@ if (true) {
|
|
|
15928
15928
|
|
|
15929
15929
|
/***/ }),
|
|
15930
15930
|
|
|
15931
|
-
/***/
|
|
15931
|
+
/***/ 418:
|
|
15932
15932
|
/***/ (function(__unused_webpack_module, exports) {
|
|
15933
15933
|
|
|
15934
15934
|
|
|
@@ -19173,7 +19173,7 @@ if (true) {
|
|
|
19173
19173
|
|
|
19174
19174
|
/***/ }),
|
|
19175
19175
|
|
|
19176
|
-
/***/
|
|
19176
|
+
/***/ 349:
|
|
19177
19177
|
/***/ (function(module, exports) {
|
|
19178
19178
|
|
|
19179
19179
|
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*
|
|
@@ -20297,7 +20297,7 @@ Object .defineProperty (Namespace, "add",
|
|
|
20297
20297
|
return module;
|
|
20298
20298
|
}
|
|
20299
20299
|
|
|
20300
|
-
const X3D = window [Symbol .for ("X_ITE.X3D-10.5.
|
|
20300
|
+
const X3D = window [Symbol .for ("X_ITE.X3D-10.5.3")];
|
|
20301
20301
|
|
|
20302
20302
|
if (X3D)
|
|
20303
20303
|
X3D [name] = module;
|
|
@@ -34159,7 +34159,7 @@ const X3DBaseNode_default_ = X3DBaseNode;
|
|
|
34159
34159
|
|
|
34160
34160
|
/* harmony default export */ const Base_X3DBaseNode = (x_ite_Namespace .add ("X3DBaseNode", X3DBaseNode_default_));
|
|
34161
34161
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Legacy.js
|
|
34162
|
-
/* provided dependency */ var $ = __webpack_require__(
|
|
34162
|
+
/* provided dependency */ var $ = __webpack_require__(562);
|
|
34163
34163
|
/*******************************************************************************
|
|
34164
34164
|
*
|
|
34165
34165
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -34295,7 +34295,7 @@ const Legacy_default_ = Legacy;
|
|
|
34295
34295
|
*
|
|
34296
34296
|
******************************************************************************/
|
|
34297
34297
|
|
|
34298
|
-
const BROWSER_VERSION_default_ = "10.5.
|
|
34298
|
+
const BROWSER_VERSION_default_ = "10.5.3";
|
|
34299
34299
|
;
|
|
34300
34300
|
|
|
34301
34301
|
/* harmony default export */ const BROWSER_VERSION = (x_ite_Namespace .add ("BROWSER_VERSION", BROWSER_VERSION_default_));
|
|
@@ -37320,7 +37320,7 @@ const X3DBindableNode_default_ = X3DBindableNode;
|
|
|
37320
37320
|
|
|
37321
37321
|
/* harmony default export */ const Core_X3DBindableNode = (x_ite_Namespace .add ("X3DBindableNode", X3DBindableNode_default_));
|
|
37322
37322
|
;// CONCATENATED MODULE: ./src/standard/Math/Geometry/Triangle3.js
|
|
37323
|
-
/* provided dependency */ var libtess = __webpack_require__(
|
|
37323
|
+
/* provided dependency */ var libtess = __webpack_require__(611);
|
|
37324
37324
|
/*******************************************************************************
|
|
37325
37325
|
*
|
|
37326
37326
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -39882,7 +39882,7 @@ const X3DProtoDeclaration_default_ = X3DProtoDeclaration;
|
|
|
39882
39882
|
|
|
39883
39883
|
/* harmony default export */ const Prototype_X3DProtoDeclaration = (x_ite_Namespace .add ("X3DProtoDeclaration", X3DProtoDeclaration_default_));
|
|
39884
39884
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/X3DParser.js
|
|
39885
|
-
/* provided dependency */ var X3DParser_$ = __webpack_require__(
|
|
39885
|
+
/* provided dependency */ var X3DParser_$ = __webpack_require__(562);
|
|
39886
39886
|
/*******************************************************************************
|
|
39887
39887
|
*
|
|
39888
39888
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -40137,7 +40137,7 @@ const Expressions_default_ = Expressions;
|
|
|
40137
40137
|
|
|
40138
40138
|
/* harmony default export */ const Parser_Expressions = (x_ite_Namespace .add ("Expressions", Expressions_default_));
|
|
40139
40139
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/VRMLParser.js
|
|
40140
|
-
/* provided dependency */ var VRMLParser_$ = __webpack_require__(
|
|
40140
|
+
/* provided dependency */ var VRMLParser_$ = __webpack_require__(562);
|
|
40141
40141
|
/*******************************************************************************
|
|
40142
40142
|
*
|
|
40143
40143
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -41784,12 +41784,12 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
41784
41784
|
},
|
|
41785
41785
|
sfboolValues (field)
|
|
41786
41786
|
{
|
|
41787
|
-
|
|
41788
|
-
|
|
41789
|
-
const target = field .getTarget ();
|
|
41787
|
+
const array = [ ];
|
|
41790
41788
|
|
|
41791
41789
|
while (this .bool ())
|
|
41792
|
-
|
|
41790
|
+
array .push (this .value);
|
|
41791
|
+
|
|
41792
|
+
field .setValue (array);
|
|
41793
41793
|
|
|
41794
41794
|
return field .length !== 0;
|
|
41795
41795
|
},
|
|
@@ -41859,14 +41859,12 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
41859
41859
|
},
|
|
41860
41860
|
sfcolorValues (field)
|
|
41861
41861
|
{
|
|
41862
|
-
|
|
41862
|
+
const array = [ ];
|
|
41863
41863
|
|
|
41864
|
-
|
|
41865
|
-
|
|
41866
|
-
value = this .Color3;
|
|
41864
|
+
while (this .double ())
|
|
41865
|
+
array .push (this .value);
|
|
41867
41866
|
|
|
41868
|
-
|
|
41869
|
-
target .push (value);
|
|
41867
|
+
field .setValue (array);
|
|
41870
41868
|
|
|
41871
41869
|
return field .length !== 0;
|
|
41872
41870
|
},
|
|
@@ -41931,7 +41929,7 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
41931
41929
|
|
|
41932
41930
|
if (Grammar .OpenBracket .parse (this))
|
|
41933
41931
|
{
|
|
41934
|
-
this .
|
|
41932
|
+
this .sfcolorValues (field);
|
|
41935
41933
|
|
|
41936
41934
|
if (Grammar .CloseBracket .parse (this))
|
|
41937
41935
|
return true;
|
|
@@ -41941,19 +41939,6 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
41941
41939
|
|
|
41942
41940
|
return false;
|
|
41943
41941
|
},
|
|
41944
|
-
sfcolorrgbaValues (field)
|
|
41945
|
-
{
|
|
41946
|
-
field .length = 0;
|
|
41947
|
-
|
|
41948
|
-
const
|
|
41949
|
-
target = field .getTarget (),
|
|
41950
|
-
value = this .Color4;
|
|
41951
|
-
|
|
41952
|
-
while (this .sfcolorrgbaValue (value))
|
|
41953
|
-
target .push (value);
|
|
41954
|
-
|
|
41955
|
-
return field .length !== 0;
|
|
41956
|
-
},
|
|
41957
41942
|
sfdoubleValue (field)
|
|
41958
41943
|
{
|
|
41959
41944
|
if (this .double ())
|
|
@@ -41988,14 +41973,14 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
41988
41973
|
},
|
|
41989
41974
|
sfdoubleValues (field)
|
|
41990
41975
|
{
|
|
41991
|
-
field .length = 0;
|
|
41992
|
-
|
|
41993
41976
|
const
|
|
41994
|
-
|
|
41995
|
-
|
|
41977
|
+
unit = field .getUnit (),
|
|
41978
|
+
array = [ ];
|
|
41996
41979
|
|
|
41997
41980
|
while (this .double ())
|
|
41998
|
-
|
|
41981
|
+
array .push (this .fromUnit (unit, this .value));
|
|
41982
|
+
|
|
41983
|
+
field .setValue (array);
|
|
41999
41984
|
|
|
42000
41985
|
return field .length !== 0;
|
|
42001
41986
|
},
|
|
@@ -42012,26 +41997,26 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
42012
41997
|
if (this .int32 ())
|
|
42013
41998
|
{
|
|
42014
41999
|
const
|
|
42015
|
-
comp
|
|
42016
|
-
size
|
|
42017
|
-
|
|
42018
|
-
field .width = width;
|
|
42019
|
-
field .height = height;
|
|
42020
|
-
field .comp = comp;
|
|
42021
|
-
|
|
42022
|
-
const array = field .array;
|
|
42000
|
+
comp = this .value,
|
|
42001
|
+
size = width * height,
|
|
42002
|
+
array = [ ];
|
|
42023
42003
|
|
|
42024
42004
|
for (let i = 0; i < size; ++ i)
|
|
42025
42005
|
{
|
|
42026
42006
|
if (this .int32 ())
|
|
42027
42007
|
{
|
|
42028
|
-
array
|
|
42008
|
+
array .push (this .value);
|
|
42029
42009
|
continue;
|
|
42030
42010
|
}
|
|
42031
42011
|
|
|
42032
42012
|
return false;
|
|
42033
42013
|
}
|
|
42034
42014
|
|
|
42015
|
+
field .width = width;
|
|
42016
|
+
field .height = height;
|
|
42017
|
+
field .comp = comp;
|
|
42018
|
+
field .array = array;
|
|
42019
|
+
|
|
42035
42020
|
return true;
|
|
42036
42021
|
}
|
|
42037
42022
|
}
|
|
@@ -42108,12 +42093,12 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
42108
42093
|
},
|
|
42109
42094
|
sfint32Values (field)
|
|
42110
42095
|
{
|
|
42111
|
-
|
|
42112
|
-
|
|
42113
|
-
const target = field .getTarget ();
|
|
42096
|
+
const array = [ ];
|
|
42114
42097
|
|
|
42115
42098
|
while (this .int32 ())
|
|
42116
|
-
|
|
42099
|
+
array .push (this .value);
|
|
42100
|
+
|
|
42101
|
+
field .setValue (array);
|
|
42117
42102
|
|
|
42118
42103
|
return field .length !== 0;
|
|
42119
42104
|
},
|
|
@@ -42190,7 +42175,7 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
42190
42175
|
|
|
42191
42176
|
if (Grammar .OpenBracket .parse (this))
|
|
42192
42177
|
{
|
|
42193
|
-
this .
|
|
42178
|
+
this .sfmatrixValues (field);
|
|
42194
42179
|
|
|
42195
42180
|
if (Grammar .CloseBracket .parse (this))
|
|
42196
42181
|
return true;
|
|
@@ -42200,16 +42185,14 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
42200
42185
|
|
|
42201
42186
|
return false;
|
|
42202
42187
|
},
|
|
42203
|
-
|
|
42188
|
+
sfmatrixValues (field)
|
|
42204
42189
|
{
|
|
42205
|
-
|
|
42190
|
+
const array = [ ];
|
|
42206
42191
|
|
|
42207
|
-
|
|
42208
|
-
|
|
42209
|
-
value = this .Matrix3;
|
|
42192
|
+
while (this .double ())
|
|
42193
|
+
array .push (this .value);
|
|
42210
42194
|
|
|
42211
|
-
|
|
42212
|
-
target .push (value);
|
|
42195
|
+
field .setValue (array);
|
|
42213
42196
|
|
|
42214
42197
|
return field .length !== 0;
|
|
42215
42198
|
},
|
|
@@ -42328,7 +42311,7 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
42328
42311
|
|
|
42329
42312
|
if (Grammar .OpenBracket .parse (this))
|
|
42330
42313
|
{
|
|
42331
|
-
this .
|
|
42314
|
+
this .sfmatrixValues (field);
|
|
42332
42315
|
|
|
42333
42316
|
if (Grammar .CloseBracket .parse (this))
|
|
42334
42317
|
return true;
|
|
@@ -42338,19 +42321,6 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
42338
42321
|
|
|
42339
42322
|
return false;
|
|
42340
42323
|
},
|
|
42341
|
-
sfmatrix4Values (field)
|
|
42342
|
-
{
|
|
42343
|
-
field .length = 0;
|
|
42344
|
-
|
|
42345
|
-
const
|
|
42346
|
-
target = field .getTarget (),
|
|
42347
|
-
value = this .Matrix4;
|
|
42348
|
-
|
|
42349
|
-
while (this .sfmatrix4Value (value))
|
|
42350
|
-
target .push (value);
|
|
42351
|
-
|
|
42352
|
-
return field .length !== 0;
|
|
42353
|
-
},
|
|
42354
42324
|
sfnodeValue (field)
|
|
42355
42325
|
{
|
|
42356
42326
|
const baseNode = this .nodeStatement ();
|
|
@@ -42500,12 +42470,12 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
42500
42470
|
},
|
|
42501
42471
|
sfstringValues (field)
|
|
42502
42472
|
{
|
|
42503
|
-
|
|
42504
|
-
|
|
42505
|
-
const target = field .getTarget ();
|
|
42473
|
+
const array = [ ];
|
|
42506
42474
|
|
|
42507
42475
|
while (this .string ())
|
|
42508
|
-
|
|
42476
|
+
array .push (this .value);
|
|
42477
|
+
|
|
42478
|
+
field .setValue (array);
|
|
42509
42479
|
|
|
42510
42480
|
return field .length !== 0;
|
|
42511
42481
|
},
|
|
@@ -42540,7 +42510,7 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
42540
42510
|
|
|
42541
42511
|
if (Grammar .OpenBracket .parse (this))
|
|
42542
42512
|
{
|
|
42543
|
-
this .
|
|
42513
|
+
this .sfvecValues (field);
|
|
42544
42514
|
|
|
42545
42515
|
if (Grammar .CloseBracket .parse (this))
|
|
42546
42516
|
return true;
|
|
@@ -42550,17 +42520,16 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
42550
42520
|
|
|
42551
42521
|
return false;
|
|
42552
42522
|
},
|
|
42553
|
-
|
|
42523
|
+
sfvecValues (field)
|
|
42554
42524
|
{
|
|
42555
|
-
field .length = 0;
|
|
42556
|
-
|
|
42557
42525
|
const
|
|
42558
|
-
|
|
42559
|
-
|
|
42560
|
-
unit = target .getUnit ();
|
|
42526
|
+
unit = field .getUnit (),
|
|
42527
|
+
array = [ ];
|
|
42561
42528
|
|
|
42562
|
-
while (this .
|
|
42563
|
-
|
|
42529
|
+
while (this .double ())
|
|
42530
|
+
array .push (this .fromUnit (unit, this .value));
|
|
42531
|
+
|
|
42532
|
+
field .setValue (array);
|
|
42564
42533
|
|
|
42565
42534
|
return field .length !== 0;
|
|
42566
42535
|
},
|
|
@@ -42601,7 +42570,7 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
42601
42570
|
|
|
42602
42571
|
if (Grammar .OpenBracket .parse (this))
|
|
42603
42572
|
{
|
|
42604
|
-
this .
|
|
42573
|
+
this .sfvecValues (field);
|
|
42605
42574
|
|
|
42606
42575
|
if (Grammar .CloseBracket .parse (this))
|
|
42607
42576
|
return true;
|
|
@@ -42611,20 +42580,6 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
42611
42580
|
|
|
42612
42581
|
return false;
|
|
42613
42582
|
},
|
|
42614
|
-
sfvec3Values (field)
|
|
42615
|
-
{
|
|
42616
|
-
field .length = 0;
|
|
42617
|
-
|
|
42618
|
-
const
|
|
42619
|
-
target = field .getTarget (),
|
|
42620
|
-
value = this .Vector3,
|
|
42621
|
-
unit = target .getUnit ();
|
|
42622
|
-
|
|
42623
|
-
while (this .sfvec3Value (value, unit))
|
|
42624
|
-
target .push (value);
|
|
42625
|
-
|
|
42626
|
-
return field .length !== 0;
|
|
42627
|
-
},
|
|
42628
42583
|
sfvec4Value (field, unit)
|
|
42629
42584
|
{
|
|
42630
42585
|
if (this .double ())
|
|
@@ -42668,7 +42623,7 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
42668
42623
|
|
|
42669
42624
|
if (Grammar .OpenBracket .parse (this))
|
|
42670
42625
|
{
|
|
42671
|
-
this .
|
|
42626
|
+
this .sfvecValues (field);
|
|
42672
42627
|
|
|
42673
42628
|
if (Grammar .CloseBracket .parse (this))
|
|
42674
42629
|
return true;
|
|
@@ -42678,20 +42633,6 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
42678
42633
|
|
|
42679
42634
|
return false;
|
|
42680
42635
|
},
|
|
42681
|
-
sfvec4Values (field)
|
|
42682
|
-
{
|
|
42683
|
-
field .length = 0;
|
|
42684
|
-
|
|
42685
|
-
const
|
|
42686
|
-
target = field .getTarget (),
|
|
42687
|
-
value = this .Vector4,
|
|
42688
|
-
unit = target .getUnit ();
|
|
42689
|
-
|
|
42690
|
-
while (this .sfvec4Value (value, unit))
|
|
42691
|
-
target .push (value);
|
|
42692
|
-
|
|
42693
|
-
return field .length !== 0;
|
|
42694
|
-
},
|
|
42695
42636
|
unknownValue ()
|
|
42696
42637
|
{
|
|
42697
42638
|
try
|
|
@@ -42836,7 +42777,7 @@ const VRMLParser_default_ = VRMLParser;
|
|
|
42836
42777
|
|
|
42837
42778
|
/* harmony default export */ const Parser_VRMLParser = (x_ite_Namespace .add ("VRMLParser", VRMLParser_default_));
|
|
42838
42779
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/XMLParser.js
|
|
42839
|
-
/* provided dependency */ var XMLParser_$ = __webpack_require__(
|
|
42780
|
+
/* provided dependency */ var XMLParser_$ = __webpack_require__(562);
|
|
42840
42781
|
/*******************************************************************************
|
|
42841
42782
|
*
|
|
42842
42783
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -43968,25 +43909,25 @@ Object .assign (XMLParser .prototype,
|
|
|
43968
43909
|
|
|
43969
43910
|
[Base_X3DConstants .MFBool]: Parser_VRMLParser .prototype .sfboolValues,
|
|
43970
43911
|
[Base_X3DConstants .MFColor]: Parser_VRMLParser .prototype .sfcolorValues,
|
|
43971
|
-
[Base_X3DConstants .MFColorRGBA]: Parser_VRMLParser .prototype .
|
|
43912
|
+
[Base_X3DConstants .MFColorRGBA]: Parser_VRMLParser .prototype .sfcolorValues,
|
|
43972
43913
|
[Base_X3DConstants .MFDouble]: Parser_VRMLParser .prototype .sfdoubleValues,
|
|
43973
43914
|
[Base_X3DConstants .MFFloat]: Parser_VRMLParser .prototype .sfdoubleValues,
|
|
43974
43915
|
[Base_X3DConstants .MFImage]: Parser_VRMLParser .prototype .sfimageValues,
|
|
43975
43916
|
[Base_X3DConstants .MFInt32]: Parser_VRMLParser .prototype .sfint32Values,
|
|
43976
|
-
[Base_X3DConstants .MFMatrix3d]: Parser_VRMLParser .prototype .
|
|
43977
|
-
[Base_X3DConstants .MFMatrix3f]: Parser_VRMLParser .prototype .
|
|
43978
|
-
[Base_X3DConstants .MFMatrix4d]: Parser_VRMLParser .prototype .
|
|
43979
|
-
[Base_X3DConstants .MFMatrix4f]: Parser_VRMLParser .prototype .
|
|
43917
|
+
[Base_X3DConstants .MFMatrix3d]: Parser_VRMLParser .prototype .sfmatrixValues,
|
|
43918
|
+
[Base_X3DConstants .MFMatrix3f]: Parser_VRMLParser .prototype .sfmatrixValues,
|
|
43919
|
+
[Base_X3DConstants .MFMatrix4d]: Parser_VRMLParser .prototype .sfmatrixValues,
|
|
43920
|
+
[Base_X3DConstants .MFMatrix4f]: Parser_VRMLParser .prototype .sfmatrixValues,
|
|
43980
43921
|
[Base_X3DConstants .MFNode] (field) { field .length = 0; },
|
|
43981
43922
|
[Base_X3DConstants .MFRotation]: Parser_VRMLParser .prototype .sfrotationValues,
|
|
43982
43923
|
[Base_X3DConstants .MFString]: Parser_VRMLParser .prototype .sfstringValues,
|
|
43983
43924
|
[Base_X3DConstants .MFTime]: Parser_VRMLParser .prototype .sfdoubleValues,
|
|
43984
|
-
[Base_X3DConstants .MFVec2d]: Parser_VRMLParser .prototype .
|
|
43985
|
-
[Base_X3DConstants .MFVec2f]: Parser_VRMLParser .prototype .
|
|
43986
|
-
[Base_X3DConstants .MFVec3d]: Parser_VRMLParser .prototype .
|
|
43987
|
-
[Base_X3DConstants .MFVec3f]: Parser_VRMLParser .prototype .
|
|
43988
|
-
[Base_X3DConstants .MFVec4d]: Parser_VRMLParser .prototype .
|
|
43989
|
-
[Base_X3DConstants .MFVec4f]: Parser_VRMLParser .prototype .
|
|
43925
|
+
[Base_X3DConstants .MFVec2d]: Parser_VRMLParser .prototype .sfvecValues,
|
|
43926
|
+
[Base_X3DConstants .MFVec2f]: Parser_VRMLParser .prototype .sfvecValues,
|
|
43927
|
+
[Base_X3DConstants .MFVec3d]: Parser_VRMLParser .prototype .sfvecValues,
|
|
43928
|
+
[Base_X3DConstants .MFVec3f]: Parser_VRMLParser .prototype .sfvecValues,
|
|
43929
|
+
[Base_X3DConstants .MFVec4d]: Parser_VRMLParser .prototype .sfvecValues,
|
|
43930
|
+
[Base_X3DConstants .MFVec4f]: Parser_VRMLParser .prototype .sfvecValues,
|
|
43990
43931
|
});
|
|
43991
43932
|
|
|
43992
43933
|
// HTML Support
|
|
@@ -44198,14 +44139,13 @@ Object .assign (Object .setPrototypeOf (JSONParser .prototype, Parser_X3DParser
|
|
|
44198
44139
|
|
|
44199
44140
|
for (const key in object)
|
|
44200
44141
|
{
|
|
44201
|
-
if (typeof object [key]
|
|
44202
|
-
|
|
44203
|
-
if (isNaN (parseInt (key)))
|
|
44204
|
-
this .convertObject (key, object, element, parentkey .substring (1));
|
|
44142
|
+
if (typeof object [key] !== "object")
|
|
44143
|
+
continue;
|
|
44205
44144
|
|
|
44206
|
-
|
|
44207
|
-
|
|
44208
|
-
|
|
44145
|
+
if (isNaN (parseInt (key)))
|
|
44146
|
+
this .convertObject (key, object, element, parentkey .substring (1));
|
|
44147
|
+
else
|
|
44148
|
+
this .convertToDOM (object [key], key, element, parentkey .substring (1));
|
|
44209
44149
|
}
|
|
44210
44150
|
},
|
|
44211
44151
|
createElement (key, containerField)
|
|
@@ -44327,7 +44267,7 @@ Object .assign (Object .setPrototypeOf (JSONParser .prototype, Parser_X3DParser
|
|
|
44327
44267
|
|
|
44328
44268
|
return str;
|
|
44329
44269
|
},
|
|
44330
|
-
convertToDOM(object, parentkey, element, containerField)
|
|
44270
|
+
convertToDOM (object, parentkey, element, containerField)
|
|
44331
44271
|
{
|
|
44332
44272
|
/**
|
|
44333
44273
|
* main routine for converting a JavaScript object to DOM.
|
|
@@ -44337,6 +44277,12 @@ Object .assign (Object .setPrototypeOf (JSONParser .prototype, Parser_X3DParser
|
|
|
44337
44277
|
* containerField is a possible containerField.
|
|
44338
44278
|
*/
|
|
44339
44279
|
|
|
44280
|
+
if (object === null)
|
|
44281
|
+
{
|
|
44282
|
+
this .elementSetAttribute (element, "value", null);
|
|
44283
|
+
return element;
|
|
44284
|
+
}
|
|
44285
|
+
|
|
44340
44286
|
let
|
|
44341
44287
|
isArray = false,
|
|
44342
44288
|
localArray = [ ],
|
|
@@ -45009,7 +44955,7 @@ const URLs_default_ = URLs;
|
|
|
45009
44955
|
|
|
45010
44956
|
/* harmony default export */ const Networking_URLs = (x_ite_Namespace .add ("URLs", URLs_default_));
|
|
45011
44957
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/GLTF2Parser.js
|
|
45012
|
-
/* provided dependency */ var GLTF2Parser_$ = __webpack_require__(
|
|
44958
|
+
/* provided dependency */ var GLTF2Parser_$ = __webpack_require__(562);
|
|
45013
44959
|
/*******************************************************************************
|
|
45014
44960
|
*
|
|
45015
44961
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -45269,7 +45215,14 @@ Object .assign (Object .setPrototypeOf (GLTF2Parser .prototype, Parser_X3DParser
|
|
|
45269
45215
|
worldInfoNode ._info .sort ();
|
|
45270
45216
|
|
|
45271
45217
|
if (!worldInfoNode ._title .getValue ())
|
|
45272
|
-
|
|
45218
|
+
{
|
|
45219
|
+
const url = new URL (worldURL);
|
|
45220
|
+
|
|
45221
|
+
if (url .protocol === "data:")
|
|
45222
|
+
worldInfoNode ._title = "glTF Model";
|
|
45223
|
+
else
|
|
45224
|
+
worldInfoNode ._title = decodeURIComponent (url .pathname .split ("/") .at (-1) || worldURL);
|
|
45225
|
+
}
|
|
45273
45226
|
|
|
45274
45227
|
worldInfoNode .setup ();
|
|
45275
45228
|
|
|
@@ -48653,7 +48606,7 @@ const GLTF2Parser_default_ = GLTF2Parser;
|
|
|
48653
48606
|
|
|
48654
48607
|
/* harmony default export */ const Parser_GLTF2Parser = (x_ite_Namespace .add ("GLTF2Parser", GLTF2Parser_default_));
|
|
48655
48608
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/GLB2Parser.js
|
|
48656
|
-
/* provided dependency */ var GLB2Parser_$ = __webpack_require__(
|
|
48609
|
+
/* provided dependency */ var GLB2Parser_$ = __webpack_require__(562);
|
|
48657
48610
|
/*******************************************************************************
|
|
48658
48611
|
*
|
|
48659
48612
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -48804,7 +48757,7 @@ const GLB2Parser_default_ = GLB2Parser;
|
|
|
48804
48757
|
|
|
48805
48758
|
/* harmony default export */ const Parser_GLB2Parser = (x_ite_Namespace .add ("GLB2Parser", GLB2Parser_default_));
|
|
48806
48759
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/OBJParser.js
|
|
48807
|
-
/* provided dependency */ var OBJParser_$ = __webpack_require__(
|
|
48760
|
+
/* provided dependency */ var OBJParser_$ = __webpack_require__(562);
|
|
48808
48761
|
/*******************************************************************************
|
|
48809
48762
|
*
|
|
48810
48763
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -50676,9 +50629,10 @@ Object .assign (Object .setPrototypeOf (PLYAParser .prototype, Parser_X3DParser
|
|
|
50676
50629
|
|
|
50677
50630
|
const
|
|
50678
50631
|
scene = this .getScene (),
|
|
50679
|
-
worldInfo = scene .createNode ("WorldInfo")
|
|
50632
|
+
worldInfo = scene .createNode ("WorldInfo"),
|
|
50633
|
+
url = new URL (scene .worldURL);
|
|
50680
50634
|
|
|
50681
|
-
worldInfo .title =
|
|
50635
|
+
worldInfo .title = url .protocol === "data:" ? "PLY Model" : url .pathname .split ('/') .at (-1);
|
|
50682
50636
|
worldInfo .info = this .comments;
|
|
50683
50637
|
|
|
50684
50638
|
scene .rootNodes .push (worldInfo);
|
|
@@ -52146,8 +52100,8 @@ const MatrixStack_default_ = MatrixStack;
|
|
|
52146
52100
|
|
|
52147
52101
|
/* harmony default export */ const Utility_MatrixStack = (x_ite_Namespace .add ("MatrixStack", MatrixStack_default_));
|
|
52148
52102
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/SVGParser.js
|
|
52149
|
-
/* provided dependency */ var SVGParser_$ = __webpack_require__(
|
|
52150
|
-
/* provided dependency */ var SVGParser_libtess = __webpack_require__(
|
|
52103
|
+
/* provided dependency */ var SVGParser_$ = __webpack_require__(562);
|
|
52104
|
+
/* provided dependency */ var SVGParser_libtess = __webpack_require__(611);
|
|
52151
52105
|
/*******************************************************************************
|
|
52152
52106
|
*
|
|
52153
52107
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -54917,7 +54871,7 @@ const SVGParser_default_ = SVGParser;
|
|
|
54917
54871
|
|
|
54918
54872
|
/* harmony default export */ const Parser_SVGParser = (x_ite_Namespace .add ("SVGParser", SVGParser_default_));
|
|
54919
54873
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/GoldenGate.js
|
|
54920
|
-
/* provided dependency */ var GoldenGate_$ = __webpack_require__(
|
|
54874
|
+
/* provided dependency */ var GoldenGate_$ = __webpack_require__(562);
|
|
54921
54875
|
/*******************************************************************************
|
|
54922
54876
|
*
|
|
54923
54877
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -60179,6 +60133,7 @@ const Shading_default_ = Shading;
|
|
|
60179
60133
|
|
|
60180
60134
|
|
|
60181
60135
|
|
|
60136
|
+
|
|
60182
60137
|
// Box normals for bbox / line intersection.
|
|
60183
60138
|
const boxNormals = [
|
|
60184
60139
|
new Numbers_Vector3 (0, 0, 1), // front
|
|
@@ -60565,7 +60520,8 @@ Object .assign (Object .setPrototypeOf (X3DGeometryNode .prototype, Core_X3DNode
|
|
|
60565
60520
|
}
|
|
60566
60521
|
catch (error)
|
|
60567
60522
|
{
|
|
60568
|
-
|
|
60523
|
+
if (DEVELOPMENT)
|
|
60524
|
+
console .error (error);
|
|
60569
60525
|
}
|
|
60570
60526
|
},
|
|
60571
60527
|
refineNormals (normalIndex, normals, creaseAngle)
|
|
@@ -61173,20 +61129,22 @@ Object .assign (Object .setPrototypeOf (X3DGeometryNode .prototype, Core_X3DNode
|
|
|
61173
61129
|
const
|
|
61174
61130
|
browser = this .getBrowser (),
|
|
61175
61131
|
renderModeNodes = appearanceNode .getRenderModes (),
|
|
61176
|
-
attribNodes = this .attribNodes,
|
|
61177
|
-
attribBuffers = this .attribBuffers,
|
|
61178
61132
|
primitiveMode = browser .getPrimitiveMode (this .primitiveMode);
|
|
61179
61133
|
|
|
61180
61134
|
for (const node of renderModeNodes)
|
|
61181
61135
|
node .enable (gl);
|
|
61182
61136
|
|
|
61183
61137
|
shaderNode .enable (gl);
|
|
61184
|
-
shaderNode .setUniforms (gl,
|
|
61138
|
+
shaderNode .setUniforms (gl, renderContext, this, front);
|
|
61185
61139
|
|
|
61186
61140
|
// Setup vertex attributes.
|
|
61187
61141
|
|
|
61188
61142
|
if (this .vertexArrayObject .enable (shaderNode .getProgram ()))
|
|
61189
61143
|
{
|
|
61144
|
+
const
|
|
61145
|
+
attribNodes = this .getAttrib (),
|
|
61146
|
+
attribBuffers = this .getAttribBuffers ();
|
|
61147
|
+
|
|
61190
61148
|
if (this .coordIndices .length)
|
|
61191
61149
|
shaderNode .enableCoordIndexAttribute (gl, this .coordIndexBuffer, 0, 0);
|
|
61192
61150
|
|
|
@@ -61305,8 +61263,6 @@ Object .assign (Object .setPrototypeOf (X3DGeometryNode .prototype, Core_X3DNode
|
|
|
61305
61263
|
const
|
|
61306
61264
|
browser = this .getBrowser (),
|
|
61307
61265
|
renderModeNodes = appearanceNode .getRenderModes (),
|
|
61308
|
-
attribNodes = this .attribNodes,
|
|
61309
|
-
attribBuffers = this .attribBuffers,
|
|
61310
61266
|
primitiveMode = browser .getPrimitiveMode (this .primitiveMode);
|
|
61311
61267
|
|
|
61312
61268
|
for (const node of renderModeNodes)
|
|
@@ -61315,7 +61271,7 @@ Object .assign (Object .setPrototypeOf (X3DGeometryNode .prototype, Core_X3DNode
|
|
|
61315
61271
|
// Setup shader.
|
|
61316
61272
|
|
|
61317
61273
|
shaderNode .enable (gl);
|
|
61318
|
-
shaderNode .setUniforms (gl,
|
|
61274
|
+
shaderNode .setUniforms (gl, renderContext, this, front);
|
|
61319
61275
|
|
|
61320
61276
|
// Setup vertex attributes.
|
|
61321
61277
|
|
|
@@ -61325,6 +61281,10 @@ Object .assign (Object .setPrototypeOf (X3DGeometryNode .prototype, Core_X3DNode
|
|
|
61325
61281
|
{
|
|
61326
61282
|
const { instancesStride, particleOffset, velocityOffset, matrixOffset, normalMatrixOffset } = shapeNode;
|
|
61327
61283
|
|
|
61284
|
+
const
|
|
61285
|
+
attribNodes = this .getAttrib (),
|
|
61286
|
+
attribBuffers = this .getAttribBuffers ();
|
|
61287
|
+
|
|
61328
61288
|
if (particleOffset !== undefined)
|
|
61329
61289
|
shaderNode .enableParticleAttribute (gl, instances, instancesStride, particleOffset, 1);
|
|
61330
61290
|
|
|
@@ -62926,7 +62886,7 @@ const X3DTexture2DNode_default_ = X3DTexture2DNode;
|
|
|
62926
62886
|
|
|
62927
62887
|
/* harmony default export */ const Texturing_X3DTexture2DNode = (x_ite_Namespace .add ("X3DTexture2DNode", X3DTexture2DNode_default_));
|
|
62928
62888
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/ImageTexture.js
|
|
62929
|
-
/* provided dependency */ var ImageTexture_$ = __webpack_require__(
|
|
62889
|
+
/* provided dependency */ var ImageTexture_$ = __webpack_require__(562);
|
|
62930
62890
|
/*******************************************************************************
|
|
62931
62891
|
*
|
|
62932
62892
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -66310,7 +66270,7 @@ const X3DWorld_default_ = X3DWorld;
|
|
|
66310
66270
|
|
|
66311
66271
|
/* harmony default export */ const Execution_X3DWorld = (x_ite_Namespace .add ("X3DWorld", X3DWorld_default_));
|
|
66312
66272
|
;// CONCATENATED MODULE: ./src/x_ite/InputOutput/FileLoader.js
|
|
66313
|
-
/* provided dependency */ var FileLoader_$ = __webpack_require__(
|
|
66273
|
+
/* provided dependency */ var FileLoader_$ = __webpack_require__(562);
|
|
66314
66274
|
/*******************************************************************************
|
|
66315
66275
|
*
|
|
66316
66276
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -66364,6 +66324,7 @@ const X3DWorld_default_ = X3DWorld;
|
|
|
66364
66324
|
|
|
66365
66325
|
|
|
66366
66326
|
|
|
66327
|
+
|
|
66367
66328
|
const foreignMimeType = new Set ([
|
|
66368
66329
|
"text/html",
|
|
66369
66330
|
"application/xhtml+xml",
|
|
@@ -66445,34 +66406,36 @@ Object .assign (Object .setPrototypeOf (FileLoader .prototype, Base_X3DObject .p
|
|
|
66445
66406
|
},
|
|
66446
66407
|
setScene (scene, resolve, reject)
|
|
66447
66408
|
{
|
|
66448
|
-
scene .
|
|
66449
|
-
scene .
|
|
66409
|
+
scene ._loadCount .addInterest ("set_loadCount__", this, scene, resolve, reject);
|
|
66410
|
+
scene ._loadCount .addEvent ();
|
|
66450
66411
|
},
|
|
66451
|
-
|
|
66412
|
+
async set_loadCount__ (scene, resolve, reject, field)
|
|
66452
66413
|
{
|
|
66453
66414
|
// Wait for extern protos to be loaded.
|
|
66454
66415
|
|
|
66455
|
-
|
|
66456
|
-
|
|
66416
|
+
for (const externproto of scene .externprotos)
|
|
66417
|
+
{
|
|
66418
|
+
if (externproto .checkLoadState () === Base_X3DConstants .IN_PROGRESS_STATE)
|
|
66419
|
+
return;
|
|
66420
|
+
}
|
|
66457
66421
|
|
|
66458
|
-
scene .
|
|
66422
|
+
scene ._loadCount .removeInterest ("set_loadCount__", this);
|
|
66459
66423
|
|
|
66460
66424
|
// Wait for instances to be created.
|
|
66461
66425
|
|
|
66462
|
-
|
|
66426
|
+
await this .browser .nextFrame ();
|
|
66427
|
+
|
|
66428
|
+
try
|
|
66463
66429
|
{
|
|
66464
|
-
|
|
66465
|
-
|
|
66466
|
-
|
|
66467
|
-
|
|
66468
|
-
|
|
66469
|
-
|
|
66470
|
-
|
|
66471
|
-
|
|
66472
|
-
|
|
66473
|
-
throw error;
|
|
66474
|
-
}
|
|
66475
|
-
});
|
|
66430
|
+
resolve (scene);
|
|
66431
|
+
}
|
|
66432
|
+
catch (error)
|
|
66433
|
+
{
|
|
66434
|
+
if (reject)
|
|
66435
|
+
reject (error);
|
|
66436
|
+
else
|
|
66437
|
+
throw error;
|
|
66438
|
+
}
|
|
66476
66439
|
|
|
66477
66440
|
if (DEVELOPMENT)
|
|
66478
66441
|
{
|
|
@@ -66497,13 +66460,13 @@ Object .assign (Object .setPrototypeOf (FileLoader .prototype, Base_X3DObject .p
|
|
|
66497
66460
|
},
|
|
66498
66461
|
loadDocument (url, callback)
|
|
66499
66462
|
{
|
|
66500
|
-
this .url = url .
|
|
66463
|
+
this .url = url .slice ();
|
|
66501
66464
|
this .callback = callback;
|
|
66502
66465
|
|
|
66503
66466
|
if (url .length === 0)
|
|
66504
66467
|
return this .loadDocumentError (new Error ("No URL given."));
|
|
66505
66468
|
|
|
66506
|
-
this .loadDocumentAsync (this .url .shift ())
|
|
66469
|
+
this .loadDocumentAsync (String (this .url .shift ()))
|
|
66507
66470
|
.catch (this .loadDocumentError .bind (this));
|
|
66508
66471
|
},
|
|
66509
66472
|
async loadDocumentAsync (url)
|
|
@@ -66607,7 +66570,7 @@ Object .assign (Object .setPrototypeOf (FileLoader .prototype, Base_X3DObject .p
|
|
|
66607
66570
|
|
|
66608
66571
|
if (this .url .length)
|
|
66609
66572
|
{
|
|
66610
|
-
this .loadDocumentAsync (this .url .shift ())
|
|
66573
|
+
this .loadDocumentAsync (String (this .url .shift ()))
|
|
66611
66574
|
.catch (this .loadDocumentError .bind (this));
|
|
66612
66575
|
}
|
|
66613
66576
|
else
|
|
@@ -66689,7 +66652,8 @@ const FileLoader_default_ = FileLoader;
|
|
|
66689
66652
|
|
|
66690
66653
|
const
|
|
66691
66654
|
_proto = Symbol (),
|
|
66692
|
-
_scene = Symbol ()
|
|
66655
|
+
_scene = Symbol (),
|
|
66656
|
+
X3DExternProtoDeclaration_cache = Symbol ();
|
|
66693
66657
|
|
|
66694
66658
|
function X3DExternProtoDeclaration (executionContext, url)
|
|
66695
66659
|
{
|
|
@@ -66702,6 +66666,8 @@ function X3DExternProtoDeclaration (executionContext, url)
|
|
|
66702
66666
|
Base_X3DConstants .inputOutput, "url", url .copy (), // Must be of type MFString.
|
|
66703
66667
|
Base_X3DConstants .inputOutput, "autoRefresh", new x_ite_Fields .SFTime (),
|
|
66704
66668
|
Base_X3DConstants .inputOutput, "autoRefreshTimeLimit", new x_ite_Fields .SFTime (3600));
|
|
66669
|
+
|
|
66670
|
+
this .getBrowser () [X3DExternProtoDeclaration_cache] ??= new Map ();
|
|
66705
66671
|
}
|
|
66706
66672
|
|
|
66707
66673
|
Object .assign (Object .setPrototypeOf (X3DExternProtoDeclaration .prototype, Prototype_X3DProtoDeclarationNode .prototype),
|
|
@@ -66712,12 +66678,6 @@ Object .assign (Object .setPrototypeOf (X3DExternProtoDeclaration .prototype, Pr
|
|
|
66712
66678
|
Prototype_X3DProtoDeclarationNode .prototype .initialize .call (this);
|
|
66713
66679
|
Networking_X3DUrlObject .prototype .initialize .call (this);
|
|
66714
66680
|
},
|
|
66715
|
-
set_live__ ()
|
|
66716
|
-
{
|
|
66717
|
-
Networking_X3DUrlObject .prototype .set_live__ .call (this);
|
|
66718
|
-
|
|
66719
|
-
this [_scene] ?.setLive (this .getLive () .getValue ());
|
|
66720
|
-
},
|
|
66721
66681
|
canUserDefinedFields ()
|
|
66722
66682
|
{
|
|
66723
66683
|
return true;
|
|
@@ -66738,55 +66698,89 @@ Object .assign (Object .setPrototypeOf (X3DExternProtoDeclaration .prototype, Pr
|
|
|
66738
66698
|
{
|
|
66739
66699
|
return this [_proto];
|
|
66740
66700
|
},
|
|
66741
|
-
loadData ()
|
|
66701
|
+
async loadData ()
|
|
66742
66702
|
{
|
|
66743
|
-
|
|
66703
|
+
const browser = this .getBrowser ();
|
|
66704
|
+
|
|
66705
|
+
if (!this ._url .length)
|
|
66706
|
+
{
|
|
66707
|
+
this .setError (new Error ("No URL given."));
|
|
66708
|
+
return;
|
|
66709
|
+
}
|
|
66710
|
+
|
|
66711
|
+
for (const url of this ._url)
|
|
66712
|
+
{
|
|
66713
|
+
try
|
|
66714
|
+
{
|
|
66715
|
+
const
|
|
66716
|
+
resolvedURL = new URL (url, this .getExecutionContext () .getBaseURL ()),
|
|
66717
|
+
cacheURL = new URL (resolvedURL),
|
|
66718
|
+
cache = browser .getBrowserOption ("Cache");
|
|
66719
|
+
|
|
66720
|
+
cacheURL .hash = "";
|
|
66744
66721
|
|
|
66745
|
-
|
|
66722
|
+
const cachePromise = cache
|
|
66723
|
+
? browser [X3DExternProtoDeclaration_cache] .get (cacheURL .href)
|
|
66724
|
+
: null;
|
|
66746
66725
|
|
|
66747
|
-
|
|
66726
|
+
const promise = cachePromise ?? new Promise (resolve =>
|
|
66727
|
+
{
|
|
66728
|
+
new InputOutput_FileLoader (this) .createX3DFromURL ([cacheURL], null, resolve);
|
|
66729
|
+
});
|
|
66730
|
+
|
|
66731
|
+
if (cache && !cachePromise)
|
|
66732
|
+
browser [X3DExternProtoDeclaration_cache] .set (cacheURL .href, promise);
|
|
66733
|
+
|
|
66734
|
+
const scene = await promise;
|
|
66735
|
+
|
|
66736
|
+
if (!scene)
|
|
66737
|
+
continue;
|
|
66738
|
+
|
|
66739
|
+
this .setInternalScene (scene, resolvedURL, cache);
|
|
66740
|
+
return;
|
|
66741
|
+
}
|
|
66742
|
+
catch (error)
|
|
66743
|
+
{
|
|
66744
|
+
console .warn (error .message);
|
|
66745
|
+
}
|
|
66746
|
+
}
|
|
66747
|
+
|
|
66748
|
+
this .setError (new Error ("File could not be loaded."));
|
|
66748
66749
|
},
|
|
66749
|
-
|
|
66750
|
+
getInternalScene ()
|
|
66750
66751
|
{
|
|
66751
|
-
|
|
66752
|
-
this .setInternalScene (value);
|
|
66753
|
-
|
|
66754
|
-
else
|
|
66755
|
-
this .setError (new Error ("File could not be loaded."));
|
|
66752
|
+
/// Returns the internal X3DScene of this extern proto, that is loaded from the url given.
|
|
66756
66753
|
|
|
66757
|
-
this
|
|
66754
|
+
return this [_scene];
|
|
66758
66755
|
},
|
|
66759
|
-
setInternalScene (
|
|
66756
|
+
setInternalScene (scene, url, cache)
|
|
66760
66757
|
{
|
|
66761
|
-
|
|
66758
|
+
const browser = this .getBrowser ();
|
|
66759
|
+
|
|
66760
|
+
if (this [_scene] !== browser .getDefaultScene () && !this [X3DExternProtoDeclaration_cache])
|
|
66762
66761
|
this [_scene] ?.dispose ();
|
|
66763
66762
|
|
|
66764
|
-
this [_scene] =
|
|
66763
|
+
this [_scene] = scene;
|
|
66764
|
+
this [X3DExternProtoDeclaration_cache] = cache;
|
|
66765
66765
|
|
|
66766
66766
|
const
|
|
66767
|
-
protoName = decodeURIComponent (
|
|
66767
|
+
protoName = decodeURIComponent (url .hash .substring (1)),
|
|
66768
66768
|
proto = protoName ? this [_scene] .protos .get (protoName) : this [_scene] .protos [0];
|
|
66769
66769
|
|
|
66770
66770
|
if (!proto)
|
|
66771
66771
|
throw new Error ("PROTO not found");
|
|
66772
66772
|
|
|
66773
|
-
this [_scene] .setExecutionContext (this .getExecutionContext ());
|
|
66774
|
-
this [_scene] .setLive (
|
|
66773
|
+
this [_scene] .setExecutionContext (this [X3DExternProtoDeclaration_cache] ? browser .getDefaultScene () : this .getExecutionContext ());
|
|
66774
|
+
this [_scene] .setLive (true);
|
|
66775
66775
|
|
|
66776
66776
|
this .setLoadState (Base_X3DConstants .COMPLETE_STATE);
|
|
66777
66777
|
this .setProtoDeclaration (proto);
|
|
66778
66778
|
},
|
|
66779
|
-
getInternalScene ()
|
|
66780
|
-
{
|
|
66781
|
-
/// Returns the internal X3DScene of this extern proto, that is loaded from the url given.
|
|
66782
|
-
|
|
66783
|
-
return this [_scene];
|
|
66784
|
-
},
|
|
66785
66779
|
setError (error)
|
|
66786
66780
|
{
|
|
66787
66781
|
console .error (`Error loading extern prototype '${this .getName ()}':`, error);
|
|
66788
66782
|
|
|
66789
|
-
this [_scene] = this .getBrowser () .
|
|
66783
|
+
this [_scene] = this .getBrowser () .getDefaultScene ();
|
|
66790
66784
|
|
|
66791
66785
|
this .setLoadState (Base_X3DConstants .FAILED_STATE);
|
|
66792
66786
|
this .setProtoDeclaration (null);
|
|
@@ -67240,7 +67234,7 @@ const ProtoDeclarationArray_default_ = ProtoDeclarationArray;
|
|
|
67240
67234
|
|
|
67241
67235
|
/* harmony default export */ const Prototype_ProtoDeclarationArray = (x_ite_Namespace .add ("ProtoDeclarationArray", ProtoDeclarationArray_default_));
|
|
67242
67236
|
;// CONCATENATED MODULE: ./src/x_ite/Routing/X3DRoute.js
|
|
67243
|
-
/* provided dependency */ var X3DRoute_$ = __webpack_require__(
|
|
67237
|
+
/* provided dependency */ var X3DRoute_$ = __webpack_require__(562);
|
|
67244
67238
|
/*******************************************************************************
|
|
67245
67239
|
*
|
|
67246
67240
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -68872,6 +68866,31 @@ Object .assign (Object .setPrototypeOf (X3DPrototypeInstance .prototype, Core_X3
|
|
|
68872
68866
|
|
|
68873
68867
|
this .realize ();
|
|
68874
68868
|
},
|
|
68869
|
+
realize ()
|
|
68870
|
+
{
|
|
68871
|
+
const
|
|
68872
|
+
protoNode = this [_protoNode],
|
|
68873
|
+
proto = protoNode .getProtoDeclaration ();
|
|
68874
|
+
|
|
68875
|
+
if (protoNode .isExternProto && protoNode .checkLoadState () !== Base_X3DConstants .COMPLETE_STATE)
|
|
68876
|
+
return;
|
|
68877
|
+
|
|
68878
|
+
// Create execution context.
|
|
68879
|
+
|
|
68880
|
+
this [X3DPrototypeInstance_body] = new Execution_X3DExecutionContext (proto .getExecutionContext (), this);
|
|
68881
|
+
|
|
68882
|
+
// Copy proto.
|
|
68883
|
+
|
|
68884
|
+
this .importExternProtos (proto .getBody () .externprotos);
|
|
68885
|
+
this .importProtos (proto .getBody () .protos);
|
|
68886
|
+
this .copyRootNodes (proto .getBody () .rootNodes);
|
|
68887
|
+
this .importImportedNodes (proto .getBody () .importedNodes);
|
|
68888
|
+
this .copyRoutes (proto .getBody () .routes);
|
|
68889
|
+
|
|
68890
|
+
this [X3DPrototypeInstance_body] .setup ();
|
|
68891
|
+
|
|
68892
|
+
Base_X3DChildObject .prototype .addEvent .call (this);
|
|
68893
|
+
},
|
|
68875
68894
|
construct ()
|
|
68876
68895
|
{
|
|
68877
68896
|
const
|
|
@@ -68946,31 +68965,6 @@ Object .assign (Object .setPrototypeOf (X3DPrototypeInstance .prototype, Core_X3
|
|
|
68946
68965
|
protoNode ._updateInstances .removeInterest ("construct", this);
|
|
68947
68966
|
protoNode ._updateInstances .addInterest ("update", this);
|
|
68948
68967
|
},
|
|
68949
|
-
realize ()
|
|
68950
|
-
{
|
|
68951
|
-
const
|
|
68952
|
-
protoNode = this [_protoNode],
|
|
68953
|
-
proto = protoNode .getProtoDeclaration ();
|
|
68954
|
-
|
|
68955
|
-
if (protoNode .isExternProto && protoNode .checkLoadState () !== Base_X3DConstants .COMPLETE_STATE)
|
|
68956
|
-
return;
|
|
68957
|
-
|
|
68958
|
-
// Create execution context.
|
|
68959
|
-
|
|
68960
|
-
this [X3DPrototypeInstance_body] = new Execution_X3DExecutionContext (proto .getExecutionContext (), this);
|
|
68961
|
-
|
|
68962
|
-
// Copy proto.
|
|
68963
|
-
|
|
68964
|
-
this .importExternProtos (proto .getBody () .externprotos);
|
|
68965
|
-
this .importProtos (proto .getBody () .protos);
|
|
68966
|
-
this .copyRootNodes (proto .getBody () .rootNodes);
|
|
68967
|
-
this .importImportedNodes (proto .getBody () .importedNodes);
|
|
68968
|
-
this .copyRoutes (proto .getBody () .routes);
|
|
68969
|
-
|
|
68970
|
-
this [X3DPrototypeInstance_body] .setup ();
|
|
68971
|
-
|
|
68972
|
-
Base_X3DChildObject .prototype .addEvent .call (this);
|
|
68973
|
-
},
|
|
68974
68968
|
update ()
|
|
68975
68969
|
{
|
|
68976
68970
|
// Remove old fields.
|
|
@@ -69352,16 +69346,24 @@ Object .assign (Object .setPrototypeOf (X3DPrototypeInstance .prototype, Core_X3
|
|
|
69352
69346
|
}
|
|
69353
69347
|
case Base_X3DConstants .SFNode:
|
|
69354
69348
|
{
|
|
69355
|
-
|
|
69356
|
-
{
|
|
69357
|
-
generator .PushContainerField (null);
|
|
69349
|
+
generator .PushContainerField (null);
|
|
69358
69350
|
|
|
69359
|
-
|
|
69360
|
-
|
|
69351
|
+
generator .string += generator .Indent ();
|
|
69352
|
+
generator .string += "<fieldValue";
|
|
69353
|
+
generator .string += generator .Space ();
|
|
69354
|
+
generator .string += "name='";
|
|
69355
|
+
generator .string += generator .XMLEncode (field .getName ());
|
|
69356
|
+
generator .string += "'";
|
|
69357
|
+
|
|
69358
|
+
if (field .getValue () === null)
|
|
69359
|
+
{
|
|
69361
69360
|
generator .string += generator .Space ();
|
|
69362
|
-
generator .string += "
|
|
69363
|
-
generator .string += generator .
|
|
69364
|
-
generator .string +=
|
|
69361
|
+
generator .string += "value='null'";
|
|
69362
|
+
generator .string += generator .closingTags ? "></fieldValue>" : "/>";
|
|
69363
|
+
generator .string += generator .TidyBreak ();
|
|
69364
|
+
}
|
|
69365
|
+
else
|
|
69366
|
+
{
|
|
69365
69367
|
generator .string += ">";
|
|
69366
69368
|
generator .string += generator .TidyBreak ();
|
|
69367
69369
|
|
|
@@ -69376,12 +69378,10 @@ Object .assign (Object .setPrototypeOf (X3DPrototypeInstance .prototype, Core_X3
|
|
|
69376
69378
|
generator .string += generator .Indent ();
|
|
69377
69379
|
generator .string += "</fieldValue>";
|
|
69378
69380
|
generator .string += generator .TidyBreak ();
|
|
69379
|
-
|
|
69380
|
-
generator .PopContainerField ();
|
|
69381
|
-
break;
|
|
69382
69381
|
}
|
|
69383
69382
|
|
|
69384
|
-
|
|
69383
|
+
generator .PopContainerField ();
|
|
69384
|
+
break;
|
|
69385
69385
|
}
|
|
69386
69386
|
default:
|
|
69387
69387
|
{
|
|
@@ -76903,12 +76903,14 @@ Object .assign (Object .setPrototypeOf (X3DPointGeometryNode .prototype, Renderi
|
|
|
76903
76903
|
const
|
|
76904
76904
|
appearanceNode = renderContext .appearanceNode,
|
|
76905
76905
|
shaderNode = appearanceNode .getShader (this, renderContext),
|
|
76906
|
-
renderModeNodes = appearanceNode .getRenderModes ()
|
|
76907
|
-
attribNodes = this .getAttrib (),
|
|
76908
|
-
attribBuffers = this .getAttribBuffers ();
|
|
76906
|
+
renderModeNodes = appearanceNode .getRenderModes ();
|
|
76909
76907
|
|
|
76910
76908
|
if (!renderContext .transparent)
|
|
76909
|
+
{
|
|
76911
76910
|
gl .enable (gl .SAMPLE_ALPHA_TO_COVERAGE);
|
|
76911
|
+
gl .enable (gl .BLEND);
|
|
76912
|
+
gl .blendFuncSeparate (gl .ONE, gl .ZERO, gl .ZERO, gl .ONE);
|
|
76913
|
+
}
|
|
76912
76914
|
|
|
76913
76915
|
for (const node of renderModeNodes)
|
|
76914
76916
|
node .enable (gl);
|
|
@@ -76916,12 +76918,16 @@ Object .assign (Object .setPrototypeOf (X3DPointGeometryNode .prototype, Renderi
|
|
|
76916
76918
|
// Setup shader.
|
|
76917
76919
|
|
|
76918
76920
|
shaderNode .enable (gl);
|
|
76919
|
-
shaderNode .setUniforms (gl,
|
|
76921
|
+
shaderNode .setUniforms (gl, renderContext, this);
|
|
76920
76922
|
|
|
76921
76923
|
// Setup vertex attributes.
|
|
76922
76924
|
|
|
76923
76925
|
if (this .vertexArrayObject .enable (shaderNode .getProgram ()))
|
|
76924
76926
|
{
|
|
76927
|
+
const
|
|
76928
|
+
attribNodes = this .getAttrib (),
|
|
76929
|
+
attribBuffers = this .getAttribBuffers ();
|
|
76930
|
+
|
|
76925
76931
|
if (this .coordIndices .length)
|
|
76926
76932
|
shaderNode .enableCoordIndexAttribute (gl, this .coordIndexBuffer, 0, 0);
|
|
76927
76933
|
|
|
@@ -76948,19 +76954,26 @@ Object .assign (Object .setPrototypeOf (X3DPointGeometryNode .prototype, Renderi
|
|
|
76948
76954
|
for (const node of renderModeNodes)
|
|
76949
76955
|
node .disable (gl);
|
|
76950
76956
|
|
|
76951
|
-
|
|
76957
|
+
if (!renderContext .transparent)
|
|
76958
|
+
{
|
|
76959
|
+
gl .disable (gl .SAMPLE_ALPHA_TO_COVERAGE);
|
|
76960
|
+
gl .disable (gl .BLEND);
|
|
76961
|
+
gl .blendFuncSeparate (gl .SRC_ALPHA, gl .ONE_MINUS_SRC_ALPHA, gl .ONE, gl .ONE_MINUS_SRC_ALPHA);
|
|
76962
|
+
}
|
|
76952
76963
|
},
|
|
76953
76964
|
displayInstanced (gl, renderContext, shapeNode)
|
|
76954
76965
|
{
|
|
76955
76966
|
const
|
|
76956
76967
|
appearanceNode = renderContext .appearanceNode,
|
|
76957
76968
|
shaderNode = appearanceNode .getShader (this, renderContext),
|
|
76958
|
-
renderModeNodes = appearanceNode .getRenderModes ()
|
|
76959
|
-
attribNodes = this .getAttrib (),
|
|
76960
|
-
attribBuffers = this .getAttribBuffers ();
|
|
76969
|
+
renderModeNodes = appearanceNode .getRenderModes ();
|
|
76961
76970
|
|
|
76962
76971
|
if (!renderContext .transparent)
|
|
76972
|
+
{
|
|
76963
76973
|
gl .enable (gl .SAMPLE_ALPHA_TO_COVERAGE);
|
|
76974
|
+
gl .enable (gl .BLEND);
|
|
76975
|
+
gl .blendFuncSeparate (gl .ONE, gl .ZERO, gl .ZERO, gl .ONE);
|
|
76976
|
+
}
|
|
76964
76977
|
|
|
76965
76978
|
for (const node of renderModeNodes)
|
|
76966
76979
|
node .enable (gl);
|
|
@@ -76968,7 +76981,7 @@ Object .assign (Object .setPrototypeOf (X3DPointGeometryNode .prototype, Renderi
|
|
|
76968
76981
|
// Setup shader.
|
|
76969
76982
|
|
|
76970
76983
|
shaderNode .enable (gl);
|
|
76971
|
-
shaderNode .setUniforms (gl,
|
|
76984
|
+
shaderNode .setUniforms (gl, renderContext, this);
|
|
76972
76985
|
|
|
76973
76986
|
// Setup vertex attributes.
|
|
76974
76987
|
|
|
@@ -76978,6 +76991,10 @@ Object .assign (Object .setPrototypeOf (X3DPointGeometryNode .prototype, Renderi
|
|
|
76978
76991
|
{
|
|
76979
76992
|
const { instancesStride, particleOffset, velocityOffset, matrixOffset, normalMatrixOffset } = shapeNode;
|
|
76980
76993
|
|
|
76994
|
+
const
|
|
76995
|
+
attribNodes = this .getAttrib (),
|
|
76996
|
+
attribBuffers = this .getAttribBuffers ();
|
|
76997
|
+
|
|
76981
76998
|
if (particleOffset !== undefined)
|
|
76982
76999
|
shaderNode .enableParticleAttribute (gl, instances, instancesStride, particleOffset, 1);
|
|
76983
77000
|
|
|
@@ -77019,7 +77036,12 @@ Object .assign (Object .setPrototypeOf (X3DPointGeometryNode .prototype, Renderi
|
|
|
77019
77036
|
for (const node of renderModeNodes)
|
|
77020
77037
|
node .disable (gl);
|
|
77021
77038
|
|
|
77022
|
-
|
|
77039
|
+
if (!renderContext .transparent)
|
|
77040
|
+
{
|
|
77041
|
+
gl .disable (gl .SAMPLE_ALPHA_TO_COVERAGE);
|
|
77042
|
+
gl .disable (gl .BLEND);
|
|
77043
|
+
gl .blendFuncSeparate (gl .SRC_ALPHA, gl .ONE_MINUS_SRC_ALPHA, gl .ONE, gl .ONE_MINUS_SRC_ALPHA);
|
|
77044
|
+
}
|
|
77023
77045
|
},
|
|
77024
77046
|
});
|
|
77025
77047
|
|
|
@@ -77472,11 +77494,9 @@ Object .assign (Object .setPrototypeOf (X3DLineGeometryNode .prototype, Renderin
|
|
|
77472
77494
|
const
|
|
77473
77495
|
browser = this .getBrowser (),
|
|
77474
77496
|
appearanceNode = renderContext .appearanceNode,
|
|
77475
|
-
linePropertiesNode = appearanceNode .
|
|
77497
|
+
linePropertiesNode = appearanceNode .getStyleProperties (1),
|
|
77476
77498
|
shaderNode = appearanceNode .getShader (this, renderContext),
|
|
77477
|
-
renderModeNodes = appearanceNode .getRenderModes ()
|
|
77478
|
-
attribNodes = this .getAttrib (),
|
|
77479
|
-
attribBuffers = this .getAttribBuffers ();
|
|
77499
|
+
renderModeNodes = appearanceNode .getRenderModes ();
|
|
77480
77500
|
|
|
77481
77501
|
if (linePropertiesNode)
|
|
77482
77502
|
{
|
|
@@ -77588,7 +77608,7 @@ Object .assign (Object .setPrototypeOf (X3DLineGeometryNode .prototype, Renderin
|
|
|
77588
77608
|
// Setup shader.
|
|
77589
77609
|
|
|
77590
77610
|
shaderNode .enable (gl);
|
|
77591
|
-
shaderNode .setUniforms (gl,
|
|
77611
|
+
shaderNode .setUniforms (gl, renderContext, this);
|
|
77592
77612
|
|
|
77593
77613
|
// Setup vertex attributes.
|
|
77594
77614
|
|
|
@@ -77640,12 +77660,16 @@ Object .assign (Object .setPrototypeOf (X3DLineGeometryNode .prototype, Renderin
|
|
|
77640
77660
|
// Setup shader.
|
|
77641
77661
|
|
|
77642
77662
|
shaderNode .enable (gl);
|
|
77643
|
-
shaderNode .setUniforms (gl,
|
|
77663
|
+
shaderNode .setUniforms (gl, renderContext, this);
|
|
77644
77664
|
|
|
77645
77665
|
// Setup vertex attributes.
|
|
77646
77666
|
|
|
77647
77667
|
if (this .vertexArrayObject .enable (shaderNode .getProgram ()))
|
|
77648
77668
|
{
|
|
77669
|
+
const
|
|
77670
|
+
attribNodes = this .getAttrib (),
|
|
77671
|
+
attribBuffers = this .getAttribBuffers ();
|
|
77672
|
+
|
|
77649
77673
|
if (this .coordIndices .length)
|
|
77650
77674
|
shaderNode .enableCoordIndexAttribute (gl, this .coordIndexBuffer, 0, 0);
|
|
77651
77675
|
|
|
@@ -77690,11 +77714,9 @@ Object .assign (Object .setPrototypeOf (X3DLineGeometryNode .prototype, Renderin
|
|
|
77690
77714
|
browser = this .getBrowser (),
|
|
77691
77715
|
geometryContext = shapeNode .getGeometryContext (),
|
|
77692
77716
|
appearanceNode = renderContext .appearanceNode,
|
|
77693
|
-
linePropertiesNode = appearanceNode .
|
|
77717
|
+
linePropertiesNode = appearanceNode .getStyleProperties (1),
|
|
77694
77718
|
shaderNode = appearanceNode .getShader (geometryContext, renderContext),
|
|
77695
|
-
renderModeNodes = appearanceNode .getRenderModes ()
|
|
77696
|
-
attribNodes = this .getAttrib (),
|
|
77697
|
-
attribBuffers = this .getAttribBuffers ();
|
|
77719
|
+
renderModeNodes = appearanceNode .getRenderModes ();
|
|
77698
77720
|
|
|
77699
77721
|
if (linePropertiesNode)
|
|
77700
77722
|
{
|
|
@@ -77728,12 +77750,14 @@ Object .assign (Object .setPrototypeOf (X3DLineGeometryNode .prototype, Renderin
|
|
|
77728
77750
|
|
|
77729
77751
|
if (instances .thickLinesVertexArrayObject .update (this .updateInstances) .enable (transformShaderNode .getProgram ()))
|
|
77730
77752
|
{
|
|
77731
|
-
|
|
77753
|
+
// TODO: skinning is not implemented with thick lines, and must be done in the transform shader.
|
|
77754
|
+
|
|
77755
|
+
const { instancesStride, matrixOffset, colorOffset } = shapeNode;
|
|
77732
77756
|
|
|
77733
77757
|
transformShaderNode .enableInstanceMatrixAttribute (gl, instances, instancesStride, matrixOffset, 2);
|
|
77734
77758
|
|
|
77735
|
-
if (normalMatrixOffset !== undefined)
|
|
77736
|
-
|
|
77759
|
+
// if (normalMatrixOffset !== undefined)
|
|
77760
|
+
// transformShaderNode .enableInstanceNormalMatrixAttribute (gl, instances, instancesStride, normalMatrixOffset, 2);
|
|
77737
77761
|
|
|
77738
77762
|
const
|
|
77739
77763
|
coordIndexStride = 2 * Float32Array .BYTES_PER_ELEMENT,
|
|
@@ -77834,14 +77858,14 @@ Object .assign (Object .setPrototypeOf (X3DLineGeometryNode .prototype, Renderin
|
|
|
77834
77858
|
// Setup shader.
|
|
77835
77859
|
|
|
77836
77860
|
shaderNode .enable (gl);
|
|
77837
|
-
shaderNode .setUniforms (gl,
|
|
77861
|
+
shaderNode .setUniforms (gl, renderContext, geometryContext);
|
|
77838
77862
|
|
|
77839
77863
|
// Setup vertex attributes.
|
|
77840
77864
|
|
|
77841
77865
|
if (instances .thickLinesVertexArrayObject .update (this .updateInstances) .enable (shaderNode .getProgram ()))
|
|
77842
77866
|
{
|
|
77843
|
-
shaderNode .enableInstanceMatrixAttribute (gl, browser .getDefaultInstanceMatrices (),
|
|
77844
|
-
shaderNode .enableInstanceNormalMatrixAttribute (gl, browser .getDefaultInstanceMatrices (),
|
|
77867
|
+
shaderNode .enableInstanceMatrixAttribute (gl, browser .getDefaultInstanceMatrices (), 0, 0, 1);
|
|
77868
|
+
shaderNode .enableInstanceNormalMatrixAttribute (gl, browser .getDefaultInstanceMatrices (), 0, 64, 1);
|
|
77845
77869
|
|
|
77846
77870
|
const
|
|
77847
77871
|
stride = 16 * Float32Array .BYTES_PER_ELEMENT,
|
|
@@ -77891,7 +77915,7 @@ Object .assign (Object .setPrototypeOf (X3DLineGeometryNode .prototype, Renderin
|
|
|
77891
77915
|
// Setup shader.
|
|
77892
77916
|
|
|
77893
77917
|
shaderNode .enable (gl);
|
|
77894
|
-
shaderNode .setUniforms (gl,
|
|
77918
|
+
shaderNode .setUniforms (gl, renderContext, this);
|
|
77895
77919
|
|
|
77896
77920
|
// Setup vertex attributes.
|
|
77897
77921
|
|
|
@@ -77901,6 +77925,10 @@ Object .assign (Object .setPrototypeOf (X3DLineGeometryNode .prototype, Renderin
|
|
|
77901
77925
|
{
|
|
77902
77926
|
const { instancesStride, particleOffset, velocityOffset, matrixOffset, normalMatrixOffset, colorOffset } = shapeNode;
|
|
77903
77927
|
|
|
77928
|
+
const
|
|
77929
|
+
attribNodes = this .getAttrib (),
|
|
77930
|
+
attribBuffers = this .getAttribBuffers ();
|
|
77931
|
+
|
|
77904
77932
|
if (particleOffset !== undefined)
|
|
77905
77933
|
shaderNode .enableParticleAttribute (gl, instances, instancesStride, particleOffset, 1);
|
|
77906
77934
|
|
|
@@ -80112,13 +80140,16 @@ Object .assign (Object .setPrototypeOf (StaticGroup .prototype, Core_X3DChildNod
|
|
|
80112
80140
|
},
|
|
80113
80141
|
traverse (type, renderObject)
|
|
80114
80142
|
{
|
|
80115
|
-
this .visibleNodes
|
|
80143
|
+
if (!this .visibleNodes)
|
|
80144
|
+
this .createStaticShapes (renderObject);
|
|
80116
80145
|
|
|
80117
80146
|
for (const visibleNode of this .visibleNodes)
|
|
80118
80147
|
visibleNode .traverse (type, renderObject);
|
|
80119
80148
|
},
|
|
80120
80149
|
createStaticShapes (renderObject)
|
|
80121
80150
|
{
|
|
80151
|
+
this .visibleNodes = [this .groupNode];
|
|
80152
|
+
|
|
80122
80153
|
// Check if scene is currently loading something.
|
|
80123
80154
|
|
|
80124
80155
|
const scene = this .getScene ();
|
|
@@ -80141,14 +80172,13 @@ Object .assign (Object .setPrototypeOf (StaticGroup .prototype, Core_X3DChildNod
|
|
|
80141
80172
|
|
|
80142
80173
|
this .optimizeGroups (this .createGroups (renderObject));
|
|
80143
80174
|
}
|
|
80144
|
-
|
|
80145
|
-
return [this .groupNode];
|
|
80146
80175
|
},
|
|
80147
80176
|
createGroups: (() =>
|
|
80148
80177
|
{
|
|
80149
|
-
const
|
|
80150
|
-
|
|
80151
|
-
|
|
80178
|
+
const
|
|
80179
|
+
Statics = ["Opaque", "Transparent"],
|
|
80180
|
+
viewVolume = new Geometry_ViewVolume (),
|
|
80181
|
+
style = { style: "CLEAN" };
|
|
80152
80182
|
|
|
80153
80183
|
viewVolume .intersectsSphere = () => true;
|
|
80154
80184
|
|
|
@@ -80210,6 +80240,9 @@ Object .assign (Object .setPrototypeOf (StaticGroup .prototype, Core_X3DChildNod
|
|
|
80210
80240
|
appearanceNode = shapeNode .getAppearance (),
|
|
80211
80241
|
geometryNode = shapeNode .getGeometry ();
|
|
80212
80242
|
|
|
80243
|
+
if (!geometryNode .getVertices () .length)
|
|
80244
|
+
continue;
|
|
80245
|
+
|
|
80213
80246
|
if (shapeNode .getShapeKey () > 0 || this .hasTextureCoordinateGenerator (geometryNode))
|
|
80214
80247
|
{
|
|
80215
80248
|
const group = singlesIndex [renderContext .modelViewMatrix] ??= [ ];
|
|
@@ -80220,8 +80253,6 @@ Object .assign (Object .setPrototypeOf (StaticGroup .prototype, Core_X3DChildNod
|
|
|
80220
80253
|
|
|
80221
80254
|
let key = "";
|
|
80222
80255
|
|
|
80223
|
-
key += appearanceNode .getId ();
|
|
80224
|
-
key += ".";
|
|
80225
80256
|
key += geometryNode .getGeometryType ();
|
|
80226
80257
|
key += geometryNode .isSolid () ? 1 : 0;
|
|
80227
80258
|
key += geometryNode .getFogDepths () .length ? 1 : 0;
|
|
@@ -80229,6 +80260,8 @@ Object .assign (Object .setPrototypeOf (StaticGroup .prototype, Core_X3DChildNod
|
|
|
80229
80260
|
key += shapeNode ._pointerEvents .getValue () ? 1 : 0;
|
|
80230
80261
|
key += shapeNode ._castShadow .getValue () ? 1 : 0;
|
|
80231
80262
|
key += shapeNode ._bboxDisplay .getValue () ? 1 : 0;
|
|
80263
|
+
key += ".";
|
|
80264
|
+
key += appearanceNode .toVRMLString (style);
|
|
80232
80265
|
|
|
80233
80266
|
const
|
|
80234
80267
|
clones = clonesIndex .get (shapeNode),
|
|
@@ -86844,12 +86877,6 @@ Object .assign (Object .setPrototypeOf (Inline .prototype, Core_X3DChildNode .pr
|
|
|
86844
86877
|
|
|
86845
86878
|
return bbox .set (this ._bboxSize .getValue (), this ._bboxCenter .getValue ());
|
|
86846
86879
|
},
|
|
86847
|
-
set_live__ ()
|
|
86848
|
-
{
|
|
86849
|
-
Networking_X3DUrlObject .prototype .set_live__ .call (this);
|
|
86850
|
-
|
|
86851
|
-
this .scene .setLive (this .getLive () .getValue ());
|
|
86852
|
-
},
|
|
86853
86880
|
unloadData ()
|
|
86854
86881
|
{
|
|
86855
86882
|
this .abortLoading ();
|
|
@@ -86902,7 +86929,7 @@ Object .assign (Object .setPrototypeOf (Inline .prototype, Core_X3DChildNode .pr
|
|
|
86902
86929
|
if (this .scene !== this .getBrowser () .getDefaultScene ())
|
|
86903
86930
|
{
|
|
86904
86931
|
this .scene .setExecutionContext (this .getExecutionContext ());
|
|
86905
|
-
this .scene .setLive (
|
|
86932
|
+
this .scene .setLive (true);
|
|
86906
86933
|
this .scene .rootNodes .addFieldInterest (this .groupNode ._children);
|
|
86907
86934
|
this .groupNode ._children = this .scene .rootNodes;
|
|
86908
86935
|
}
|
|
@@ -90528,7 +90555,7 @@ mediump samplerCube textureCube;
|
|
|
90528
90555
|
|
|
90529
90556
|
/* harmony default export */ const MaterialTextures = (x_ite_Namespace .add ("MaterialTextures", MaterialTextures_default_));
|
|
90530
90557
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js
|
|
90531
|
-
/* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(
|
|
90558
|
+
/* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(562);
|
|
90532
90559
|
/*******************************************************************************
|
|
90533
90560
|
*
|
|
90534
90561
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -91570,7 +91597,7 @@ Object .assign (X3DProgrammableShaderObject .prototype,
|
|
|
91570
91597
|
xrModelViewMatrix = new Float32Array (16),
|
|
91571
91598
|
normalMatrix = new Float32Array (9);
|
|
91572
91599
|
|
|
91573
|
-
return function (gl,
|
|
91600
|
+
return function (gl, renderContext, geometryContext, front = true)
|
|
91574
91601
|
{
|
|
91575
91602
|
const { renderObject, fogNode, appearanceNode, humanoidNode, modelViewMatrix } = renderContext;
|
|
91576
91603
|
|
|
@@ -91846,10 +91873,6 @@ Object .assign (X3DProgrammableShaderObject .prototype,
|
|
|
91846
91873
|
gl .enableVertexAttribArray (location);
|
|
91847
91874
|
gl .vertexAttribPointer (location, 4, gl .FLOAT, false, stride, offset);
|
|
91848
91875
|
},
|
|
91849
|
-
vertexAttributeDivisor (gl, divisor)
|
|
91850
|
-
{
|
|
91851
|
-
gl .vertexAttribDivisor (this .x3d_Vertex, divisor);
|
|
91852
|
-
},
|
|
91853
91876
|
enableParticleAttribute (gl, buffer, stride, offset, divisor)
|
|
91854
91877
|
{
|
|
91855
91878
|
const location = this .x3d_Particle;
|
|
@@ -92168,7 +92191,7 @@ Object .assign (Object .setPrototypeOf (ComposedShader .prototype, Shaders_X3DSh
|
|
|
92168
92191
|
|
|
92169
92192
|
if (this ._parts .length)
|
|
92170
92193
|
{
|
|
92171
|
-
console .warn (
|
|
92194
|
+
console .warn (`Couldn't initialize ${this .getTypeName ()} '${this .getName ()}': ${gl .getProgramInfoLog (program)}`);
|
|
92172
92195
|
}
|
|
92173
92196
|
}
|
|
92174
92197
|
}
|
|
@@ -94744,13 +94767,13 @@ vec3 finalColor=vec3(0.0);
|
|
|
94744
94767
|
#endif
|
|
94745
94768
|
finalColor+=material.emissiveColor;return vec4(finalColor,diffuseColor.a);}void main(){vertex_main();
|
|
94746
94769
|
#if defined(X3D_LIGHTING)
|
|
94747
|
-
|
|
94770
|
+
vec3 n=normalize(normal);
|
|
94748
94771
|
#else
|
|
94749
|
-
vec3
|
|
94772
|
+
vec3 n=vec3(0.0);
|
|
94750
94773
|
#endif
|
|
94751
|
-
frontColor=getMaterialColor(
|
|
94774
|
+
frontColor=getMaterialColor(n,vertex,x3d_Material);
|
|
94752
94775
|
#if!defined(X3D_GEOMETRY_0D)&&!defined(X3D_GEOMETRY_1D)
|
|
94753
|
-
backColor=getMaterialColor(-
|
|
94776
|
+
backColor=getMaterialColor(-n,vertex,x3d_Material);
|
|
94754
94777
|
#endif
|
|
94755
94778
|
}`
|
|
94756
94779
|
;
|
|
@@ -94768,7 +94791,7 @@ precision highp float;uniform vec4 viewport;uniform mat4 modelViewProjectionMatr
|
|
|
94768
94791
|
#if defined(X3D_INSTANCING)
|
|
94769
94792
|
in mat4 x3d_InstanceMatrix;
|
|
94770
94793
|
#endif
|
|
94771
|
-
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
|
|
94794
|
+
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(){
|
|
94772
94795
|
#if defined(X3D_INSTANCING)
|
|
94773
94796
|
vec3 projected0=projectPoint(x3d_InstanceMatrix*x3d_Vertex0,modelViewProjectionMatrix,viewport);vec3 projected1=projectPoint(x3d_InstanceMatrix*x3d_Vertex1,modelViewProjectionMatrix,viewport);
|
|
94774
94797
|
#else
|
|
@@ -95786,7 +95809,7 @@ const ShaderCompiler_default_ = ShaderCompiler;
|
|
|
95786
95809
|
|
|
95787
95810
|
/* harmony default export */ const Shaders_ShaderCompiler = (x_ite_Namespace .add ("ShaderCompiler", ShaderCompiler_default_));
|
|
95788
95811
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/ShaderPart.js
|
|
95789
|
-
/* provided dependency */ var ShaderPart_$ = __webpack_require__(
|
|
95812
|
+
/* provided dependency */ var ShaderPart_$ = __webpack_require__(562);
|
|
95790
95813
|
/*******************************************************************************
|
|
95791
95814
|
*
|
|
95792
95815
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -96384,7 +96407,7 @@ const X3DAppearanceNode_default_ = X3DAppearanceNode;
|
|
|
96384
96407
|
|
|
96385
96408
|
/* harmony default export */ const Shape_X3DAppearanceNode = (x_ite_Namespace .add ("X3DAppearanceNode", X3DAppearanceNode_default_));
|
|
96386
96409
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Shape/Appearance.js
|
|
96387
|
-
/* provided dependency */ var Appearance_$ = __webpack_require__(
|
|
96410
|
+
/* provided dependency */ var Appearance_$ = __webpack_require__(562);
|
|
96388
96411
|
/*******************************************************************************
|
|
96389
96412
|
*
|
|
96390
96413
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -96508,18 +96531,6 @@ Object .assign (Object .setPrototypeOf (Appearance .prototype, Shape_X3DAppearan
|
|
|
96508
96531
|
{
|
|
96509
96532
|
return this .stylePropertiesNode [geometryType];
|
|
96510
96533
|
},
|
|
96511
|
-
getPointProperties ()
|
|
96512
|
-
{
|
|
96513
|
-
return this .stylePropertiesNode [0];
|
|
96514
|
-
},
|
|
96515
|
-
getLineProperties ()
|
|
96516
|
-
{
|
|
96517
|
-
return this .stylePropertiesNode [1];
|
|
96518
|
-
},
|
|
96519
|
-
getFillProperties ()
|
|
96520
|
-
{
|
|
96521
|
-
return this .stylePropertiesNode [2];
|
|
96522
|
-
},
|
|
96523
96534
|
getMaterial ()
|
|
96524
96535
|
{
|
|
96525
96536
|
return this .materialNode;
|
|
@@ -104619,8 +104630,8 @@ const GifMedia_default_ = GifMedia;
|
|
|
104619
104630
|
|
|
104620
104631
|
/* harmony default export */ const Texturing_GifMedia = (x_ite_Namespace .add ("GifMedia", GifMedia_default_));
|
|
104621
104632
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/MovieTexture.js
|
|
104622
|
-
/* provided dependency */ var MovieTexture_$ = __webpack_require__(
|
|
104623
|
-
/* provided dependency */ var SuperGif = __webpack_require__(
|
|
104633
|
+
/* provided dependency */ var MovieTexture_$ = __webpack_require__(562);
|
|
104634
|
+
/* provided dependency */ var SuperGif = __webpack_require__(349);
|
|
104624
104635
|
/*******************************************************************************
|
|
104625
104636
|
*
|
|
104626
104637
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -107088,7 +107099,7 @@ const gettext_default_ = (string) => locale .get (string) || string;
|
|
|
107088
107099
|
|
|
107089
107100
|
/* harmony default export */ const gettext = (x_ite_Namespace .add ("gettext", gettext_default_));
|
|
107090
107101
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserTimings.js
|
|
107091
|
-
/* provided dependency */ var BrowserTimings_$ = __webpack_require__(
|
|
107102
|
+
/* provided dependency */ var BrowserTimings_$ = __webpack_require__(562);
|
|
107092
107103
|
/*******************************************************************************
|
|
107093
107104
|
*
|
|
107094
107105
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -107718,7 +107729,7 @@ const TextCompression_default_ = TextCompression;
|
|
|
107718
107729
|
|
|
107719
107730
|
/* harmony default export */ const Core_TextCompression = (x_ite_Namespace .add ("TextCompression", TextCompression_default_));
|
|
107720
107731
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserOptions.js
|
|
107721
|
-
/* provided dependency */ var BrowserOptions_$ = __webpack_require__(
|
|
107732
|
+
/* provided dependency */ var BrowserOptions_$ = __webpack_require__(562);
|
|
107722
107733
|
/*******************************************************************************
|
|
107723
107734
|
*
|
|
107724
107735
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -108365,7 +108376,7 @@ const RenderingProperties_default_ = RenderingProperties;
|
|
|
108365
108376
|
|
|
108366
108377
|
/* harmony default export */ const Core_RenderingProperties = (x_ite_Namespace .add ("RenderingProperties", RenderingProperties_default_));
|
|
108367
108378
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/Notification.js
|
|
108368
|
-
/* provided dependency */ var Notification_$ = __webpack_require__(
|
|
108379
|
+
/* provided dependency */ var Notification_$ = __webpack_require__(562);
|
|
108369
108380
|
/*******************************************************************************
|
|
108370
108381
|
*
|
|
108371
108382
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -108487,8 +108498,8 @@ const Notification_default_ = Notification;
|
|
|
108487
108498
|
|
|
108488
108499
|
/* harmony default export */ const Core_Notification = (x_ite_Namespace .add ("Notification", Notification_default_));
|
|
108489
108500
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/ContextMenu.js
|
|
108490
|
-
/* provided dependency */ var jquery_fullscreen = __webpack_require__(
|
|
108491
|
-
/* provided dependency */ var ContextMenu_$ = __webpack_require__(
|
|
108501
|
+
/* provided dependency */ var jquery_fullscreen = __webpack_require__(498);
|
|
108502
|
+
/* provided dependency */ var ContextMenu_$ = __webpack_require__(562);
|
|
108492
108503
|
/*******************************************************************************
|
|
108493
108504
|
*
|
|
108494
108505
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -110031,7 +110042,6 @@ function X3DScene (browser)
|
|
|
110031
110042
|
|
|
110032
110043
|
this .addChildObjects (Base_X3DConstants .outputOnly, "profile_changed", new x_ite_Fields .SFTime (),
|
|
110033
110044
|
Base_X3DConstants .outputOnly, "metadata_changed", new x_ite_Fields .SFTime (),
|
|
110034
|
-
Base_X3DConstants .outputOnly, "initLoadCount", new x_ite_Fields .SFInt32 (),
|
|
110035
110045
|
Base_X3DConstants .outputOnly, "loadCount", new x_ite_Fields .SFInt32 ())
|
|
110036
110046
|
|
|
110037
110047
|
this [_specificationVersion] = LATEST_VERSION;
|
|
@@ -110959,14 +110969,6 @@ Object .assign (Object .setPrototypeOf (X3DScene .prototype, Execution_X3DExecut
|
|
|
110959
110969
|
scene .addLoadingObject (object);
|
|
110960
110970
|
}
|
|
110961
110971
|
},
|
|
110962
|
-
addInitLoadCount (node)
|
|
110963
|
-
{
|
|
110964
|
-
this ._initLoadCount = this ._initLoadCount .getValue () + 1;
|
|
110965
|
-
},
|
|
110966
|
-
removeInitLoadCount (node)
|
|
110967
|
-
{
|
|
110968
|
-
this ._initLoadCount = this ._initLoadCount .getValue () - 1;
|
|
110969
|
-
},
|
|
110970
110972
|
getLoadingObjects ()
|
|
110971
110973
|
{
|
|
110972
110974
|
return this [_loadingObjects];
|
|
@@ -111223,7 +111225,7 @@ const DataStorage_default_ = DataStorage;
|
|
|
111223
111225
|
|
|
111224
111226
|
/* harmony default export */ const Utility_DataStorage = (x_ite_Namespace .add ("DataStorage", DataStorage_default_));
|
|
111225
111227
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/X3DCoreContext.js
|
|
111226
|
-
/* provided dependency */ var X3DCoreContext_$ = __webpack_require__(
|
|
111228
|
+
/* provided dependency */ var X3DCoreContext_$ = __webpack_require__(562);
|
|
111227
111229
|
/*******************************************************************************
|
|
111228
111230
|
*
|
|
111229
111231
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -113834,8 +113836,8 @@ const X3DViewer_default_ = X3DViewer;
|
|
|
113834
113836
|
|
|
113835
113837
|
/* harmony default export */ const Navigation_X3DViewer = (x_ite_Namespace .add ("X3DViewer", X3DViewer_default_));
|
|
113836
113838
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/ExamineViewer.js
|
|
113837
|
-
/* provided dependency */ var jquery_mousewheel = __webpack_require__(
|
|
113838
|
-
/* provided dependency */ var ExamineViewer_$ = __webpack_require__(
|
|
113839
|
+
/* provided dependency */ var jquery_mousewheel = __webpack_require__(192);
|
|
113840
|
+
/* provided dependency */ var ExamineViewer_$ = __webpack_require__(562);
|
|
113839
113841
|
/*******************************************************************************
|
|
113840
113842
|
*
|
|
113841
113843
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -114750,8 +114752,8 @@ const ExamineViewer_default_ = ExamineViewer;
|
|
|
114750
114752
|
|
|
114751
114753
|
/* harmony default export */ const Navigation_ExamineViewer = (x_ite_Namespace .add ("ExamineViewer", ExamineViewer_default_));
|
|
114752
114754
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/X3DFlyViewer.js
|
|
114753
|
-
/* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(
|
|
114754
|
-
/* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(
|
|
114755
|
+
/* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(192);
|
|
114756
|
+
/* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(562);
|
|
114755
114757
|
/*******************************************************************************
|
|
114756
114758
|
*
|
|
114757
114759
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -115766,8 +115768,8 @@ const FlyViewer_default_ = FlyViewer;
|
|
|
115766
115768
|
|
|
115767
115769
|
/* harmony default export */ const Navigation_FlyViewer = (x_ite_Namespace .add ("FlyViewer", FlyViewer_default_));
|
|
115768
115770
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/PlaneViewer.js
|
|
115769
|
-
/* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(
|
|
115770
|
-
/* provided dependency */ var PlaneViewer_$ = __webpack_require__(
|
|
115771
|
+
/* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(192);
|
|
115772
|
+
/* provided dependency */ var PlaneViewer_$ = __webpack_require__(562);
|
|
115771
115773
|
/*******************************************************************************
|
|
115772
115774
|
*
|
|
115773
115775
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -116096,8 +116098,8 @@ const NoneViewer_default_ = NoneViewer;
|
|
|
116096
116098
|
|
|
116097
116099
|
/* harmony default export */ const Navigation_NoneViewer = (x_ite_Namespace .add ("NoneViewer", NoneViewer_default_));
|
|
116098
116100
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/LookAtViewer.js
|
|
116099
|
-
/* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(
|
|
116100
|
-
/* provided dependency */ var LookAtViewer_$ = __webpack_require__(
|
|
116101
|
+
/* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(192);
|
|
116102
|
+
/* provided dependency */ var LookAtViewer_$ = __webpack_require__(562);
|
|
116101
116103
|
/*******************************************************************************
|
|
116102
116104
|
*
|
|
116103
116105
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -117242,8 +117244,8 @@ const X3DPickingContext_default_ = X3DPickingContext;
|
|
|
117242
117244
|
|
|
117243
117245
|
/* harmony default export */ const Picking_X3DPickingContext = (x_ite_Namespace .add ("X3DPickingContext", X3DPickingContext_default_));
|
|
117244
117246
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js
|
|
117245
|
-
/* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(
|
|
117246
|
-
/* provided dependency */ var PointingDevice_$ = __webpack_require__(
|
|
117247
|
+
/* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(192);
|
|
117248
|
+
/* provided dependency */ var PointingDevice_$ = __webpack_require__(562);
|
|
117247
117249
|
/*******************************************************************************
|
|
117248
117250
|
*
|
|
117249
117251
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -118690,7 +118692,7 @@ const Lock_default_ = Lock;
|
|
|
118690
118692
|
|
|
118691
118693
|
/* harmony default export */ const Utility_Lock = (x_ite_Namespace .add ("Lock", Lock_default_));
|
|
118692
118694
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Rendering/X3DRenderingContext.js
|
|
118693
|
-
/* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(
|
|
118695
|
+
/* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(562);
|
|
118694
118696
|
/*******************************************************************************
|
|
118695
118697
|
*
|
|
118696
118698
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -118804,7 +118806,6 @@ Object .assign (X3DRenderingContext .prototype,
|
|
|
118804
118806
|
gl .enable (gl .DEPTH_TEST);
|
|
118805
118807
|
gl .depthFunc (gl .LEQUAL);
|
|
118806
118808
|
gl .clearDepth (1);
|
|
118807
|
-
gl .sampleCoverage (1.0, false);
|
|
118808
118809
|
|
|
118809
118810
|
gl .blendFuncSeparate (gl .SRC_ALPHA, gl .ONE_MINUS_SRC_ALPHA, gl .ONE, gl .ONE_MINUS_SRC_ALPHA);
|
|
118810
118811
|
gl .blendEquationSeparate (gl .FUNC_ADD, gl .FUNC_ADD);
|
|
@@ -119580,7 +119581,7 @@ Object .assign (X3DShadersContext .prototype,
|
|
|
119580
119581
|
.set (gl .POINTS, gl .POINTS)
|
|
119581
119582
|
.set (gl .LINES, gl .LINES)
|
|
119582
119583
|
.set (gl .TRIANGLES, gl .TRIANGLES);
|
|
119583
|
-
|
|
119584
|
+
|
|
119584
119585
|
break;
|
|
119585
119586
|
}
|
|
119586
119587
|
}
|
|
@@ -119599,7 +119600,7 @@ Object .assign (X3DShadersContext .prototype,
|
|
|
119599
119600
|
version = gl .getVersion ();
|
|
119600
119601
|
|
|
119601
119602
|
const vertexShader = new Shaders_ShaderPart (this .getPrivateScene ());
|
|
119602
|
-
vertexShader ._url .push (encodeURI (vs .startsWith ("data:") ? vs :
|
|
119603
|
+
vertexShader ._url .push (encodeURI (vs .startsWith ("data:") ? vs : `data:x-shader/x-vertex,${Shaders_ShaderRegistry .vertex [version] [vs]}`));
|
|
119603
119604
|
vertexShader .setPrivate (true);
|
|
119604
119605
|
vertexShader .setName (`${name}VertexShader`);
|
|
119605
119606
|
vertexShader .setOptions (options);
|
|
@@ -119607,7 +119608,7 @@ Object .assign (X3DShadersContext .prototype,
|
|
|
119607
119608
|
|
|
119608
119609
|
const fragmentShader = new Shaders_ShaderPart (this .getPrivateScene ());
|
|
119609
119610
|
fragmentShader ._type = "FRAGMENT";
|
|
119610
|
-
fragmentShader ._url .push (encodeURI (fs .startsWith ("data:") ? fs :
|
|
119611
|
+
fragmentShader ._url .push (encodeURI (fs .startsWith ("data:") ? fs : `data:x-shader/x-fragment,${Shaders_ShaderRegistry .fragment [version] [fs]}`));
|
|
119611
119612
|
fragmentShader .setPrivate (true);
|
|
119612
119613
|
fragmentShader .setName (`${name}FragmentShader`);
|
|
119613
119614
|
fragmentShader .setOptions (options);
|
|
@@ -120013,7 +120014,7 @@ const X3DSoundContext_default_ = X3DSoundContext;
|
|
|
120013
120014
|
|
|
120014
120015
|
/* harmony default export */ const Sound_X3DSoundContext = (x_ite_Namespace .add ("X3DSoundContext", X3DSoundContext_default_));
|
|
120015
120016
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Texturing/KTXDecoder.js
|
|
120016
|
-
/* provided dependency */ var KTXDecoder_$ = __webpack_require__(
|
|
120017
|
+
/* provided dependency */ var KTXDecoder_$ = __webpack_require__(562);
|
|
120017
120018
|
const KTXDecoder_default_ = class KTXDecoder
|
|
120018
120019
|
{
|
|
120019
120020
|
constructor (gl, externalKtxlib, scriptDir)
|
|
@@ -121244,6 +121245,8 @@ Object .assign (Object .setPrototypeOf (X3DBrowserContext .prototype, Base_X3DBa
|
|
|
121244
121245
|
},
|
|
121245
121246
|
setExecutionContext (executionContext)
|
|
121246
121247
|
{
|
|
121248
|
+
this .getDefaultScene () .setExecutionContext (executionContext);
|
|
121249
|
+
|
|
121247
121250
|
this [_world] = new Execution_X3DWorld (executionContext);
|
|
121248
121251
|
this [_world] .setup ();
|
|
121249
121252
|
},
|
|
@@ -121590,7 +121593,7 @@ const Components_default_ = Components;
|
|
|
121590
121593
|
|
|
121591
121594
|
/* harmony default export */ const x_ite_Components = (x_ite_Namespace .add ("Components", Components_default_));
|
|
121592
121595
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/DOMIntegration.js
|
|
121593
|
-
/* provided dependency */ var DOMIntegration_$ = __webpack_require__(
|
|
121596
|
+
/* provided dependency */ var DOMIntegration_$ = __webpack_require__(562);
|
|
121594
121597
|
/*******************************************************************************
|
|
121595
121598
|
* MIT License
|
|
121596
121599
|
*
|
|
@@ -122856,7 +122859,7 @@ const FieldTypes_default_ = new Configuration_FieldTypesArray (Object .values (x
|
|
|
122856
122859
|
|
|
122857
122860
|
/* harmony default export */ const FieldTypes = (x_ite_Namespace .add ("FieldTypes", FieldTypes_default_));
|
|
122858
122861
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/X3DBrowser.js
|
|
122859
|
-
/* provided dependency */ var X3DBrowser_$ = __webpack_require__(
|
|
122862
|
+
/* provided dependency */ var X3DBrowser_$ = __webpack_require__(562);
|
|
122860
122863
|
/*******************************************************************************
|
|
122861
122864
|
*
|
|
122862
122865
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -123923,7 +123926,7 @@ const X3DBrowser_default_ = X3DBrowser;
|
|
|
123923
123926
|
|
|
123924
123927
|
/* harmony default export */ const Browser_X3DBrowser = (x_ite_Namespace .add ("X3DBrowser", X3DBrowser_default_));
|
|
123925
123928
|
;// CONCATENATED MODULE: ./src/x_ite/X3DCanvasElement.js
|
|
123926
|
-
/* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(
|
|
123929
|
+
/* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(562);
|
|
123927
123930
|
/*******************************************************************************
|
|
123928
123931
|
*
|
|
123929
123932
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -124190,8 +124193,8 @@ const QuickSort_default_ = QuickSort;
|
|
|
124190
124193
|
|
|
124191
124194
|
/* harmony default export */ const Algorithms_QuickSort = (x_ite_Namespace .add ("QuickSort", QuickSort_default_));
|
|
124192
124195
|
;// CONCATENATED MODULE: ./src/lib/jquery.js
|
|
124193
|
-
/* provided dependency */ var jquery_$ = __webpack_require__(
|
|
124194
|
-
/* provided dependency */ var pako = __webpack_require__(
|
|
124196
|
+
/* provided dependency */ var jquery_$ = __webpack_require__(562);
|
|
124197
|
+
/* provided dependency */ var pako = __webpack_require__(418);
|
|
124195
124198
|
Object .assign (jquery_$,
|
|
124196
124199
|
{
|
|
124197
124200
|
decodeText (input)
|
|
@@ -124268,13 +124271,13 @@ const jquery_default_ = jquery_$;
|
|
|
124268
124271
|
|
|
124269
124272
|
/* harmony default export */ const jquery = (x_ite_Namespace .add ("jquery", jquery_default_));
|
|
124270
124273
|
;// CONCATENATED MODULE: ./src/lib/libtess.js
|
|
124271
|
-
/* provided dependency */ var libtess_libtess = __webpack_require__(
|
|
124274
|
+
/* provided dependency */ var libtess_libtess = __webpack_require__(611);
|
|
124272
124275
|
const libtess_default_ = libtess_libtess;
|
|
124273
124276
|
;
|
|
124274
124277
|
|
|
124275
124278
|
/* harmony default export */ const lib_libtess = (x_ite_Namespace .add ("libtess", libtess_default_));
|
|
124276
124279
|
;// CONCATENATED MODULE: ./src/x_ite/X3D.js
|
|
124277
|
-
/* provided dependency */ var X3D_$ = __webpack_require__(
|
|
124280
|
+
/* provided dependency */ var X3D_$ = __webpack_require__(562);
|
|
124278
124281
|
/*******************************************************************************
|
|
124279
124282
|
*
|
|
124280
124283
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -124578,7 +124581,7 @@ x_ite_Namespace, x_ite_Namespace .Fields,
|
|
|
124578
124581
|
|
|
124579
124582
|
// Assign X3D to global namespace.
|
|
124580
124583
|
|
|
124581
|
-
window [Symbol .for ("X_ITE.X3D-10.5.
|
|
124584
|
+
window [Symbol .for ("X_ITE.X3D-10.5.3")] = x_ite_X3D;
|
|
124582
124585
|
|
|
124583
124586
|
customElements .define ("x3d-canvas", x_ite_X3DCanvasElement);
|
|
124584
124587
|
|