x_ite 9.3.1 → 9.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/components/Annotation.js +13 -13
- package/dist/assets/components/Annotation.min.js +1 -1
- package/dist/assets/components/CADGeometry.js +14 -14
- package/dist/assets/components/CADGeometry.min.js +1 -1
- package/dist/assets/components/CubeMapTexturing.js +25 -25
- package/dist/assets/components/CubeMapTexturing.min.js +1 -1
- package/dist/assets/components/DIS.js +13 -13
- package/dist/assets/components/DIS.min.js +1 -1
- package/dist/assets/components/EventUtilities.js +9 -9
- package/dist/assets/components/EventUtilities.min.js +1 -1
- package/dist/assets/components/Geometry2D.js +31 -23
- package/dist/assets/components/Geometry2D.min.js +1 -1
- package/dist/assets/components/Geospatial.js +33 -33
- package/dist/assets/components/Geospatial.min.js +1 -1
- package/dist/assets/components/HAnim.js +23 -23
- package/dist/assets/components/HAnim.min.js +1 -1
- package/dist/assets/components/KeyDeviceSensor.js +8 -8
- package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
- package/dist/assets/components/Layout.js +27 -27
- package/dist/assets/components/Layout.min.js +1 -1
- package/dist/assets/components/NURBS.js +23 -23
- package/dist/assets/components/NURBS.min.js +1 -1
- package/dist/assets/components/ParticleSystems.js +27 -24
- package/dist/assets/components/ParticleSystems.min.js +1 -1
- package/dist/assets/components/Picking.js +18 -18
- package/dist/assets/components/Picking.min.js +1 -1
- package/dist/assets/components/RigidBodyPhysics.js +17 -17
- package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
- package/dist/assets/components/Scripting.js +38 -38
- package/dist/assets/components/Scripting.min.js +1 -1
- package/dist/assets/components/Text.js +28 -26
- package/dist/assets/components/Text.min.js +1 -1
- package/dist/assets/components/TextureProjection.js +15 -15
- package/dist/assets/components/TextureProjection.min.js +1 -1
- package/dist/assets/components/Texturing3D.js +30 -30
- package/dist/assets/components/Texturing3D.min.js +1 -1
- package/dist/assets/components/VolumeRendering.js +36 -28
- package/dist/assets/components/VolumeRendering.min.js +1 -1
- package/dist/assets/components/X_ITE.js +8 -8
- package/dist/assets/components/X_ITE.min.js +1 -1
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.js +725 -417
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.min.mjs +1 -1
- package/dist/x_ite.mjs +725 -417
- package/dist/x_ite.zip +0 -0
- package/package.json +1 -1
package/dist/x_ite.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* X_ITE v9.3.
|
|
1
|
+
/* X_ITE v9.3.2 */(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
2
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
3
|
module.exports = factory();
|
|
4
4
|
else if(typeof define === 'function' && define.amd)
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
|
12
12
|
/******/ var __webpack_modules__ = ({
|
|
13
13
|
|
|
14
|
-
/***/
|
|
14
|
+
/***/ 403:
|
|
15
15
|
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
16
16
|
|
|
17
|
-
/* provided dependency */ var jQuery = __webpack_require__(
|
|
17
|
+
/* provided dependency */ var jQuery = __webpack_require__(183);
|
|
18
18
|
/**
|
|
19
19
|
* @preserve jquery.fullscreen 1.1.5
|
|
20
20
|
* https://github.com/code-lts/jquery-fullscreen-plugin
|
|
@@ -210,7 +210,7 @@ installFullScreenHandlers();
|
|
|
210
210
|
|
|
211
211
|
/***/ }),
|
|
212
212
|
|
|
213
|
-
/***/
|
|
213
|
+
/***/ 287:
|
|
214
214
|
/***/ ((module, exports, __webpack_require__) => {
|
|
215
215
|
|
|
216
216
|
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
@@ -224,7 +224,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
224
224
|
(function (factory) {
|
|
225
225
|
if ( true ) {
|
|
226
226
|
// AMD. Register as an anonymous module.
|
|
227
|
-
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(
|
|
227
|
+
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(183)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
|
|
228
228
|
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
|
|
229
229
|
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
|
|
230
230
|
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
@@ -435,7 +435,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
435
435
|
|
|
436
436
|
/***/ }),
|
|
437
437
|
|
|
438
|
-
/***/
|
|
438
|
+
/***/ 183:
|
|
439
439
|
/***/ (function(module, exports) {
|
|
440
440
|
|
|
441
441
|
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
@@ -11159,7 +11159,7 @@ return jQuery;
|
|
|
11159
11159
|
|
|
11160
11160
|
/***/ }),
|
|
11161
11161
|
|
|
11162
|
-
/***/
|
|
11162
|
+
/***/ 972:
|
|
11163
11163
|
/***/ ((module) => {
|
|
11164
11164
|
|
|
11165
11165
|
/**
|
|
@@ -15938,7 +15938,7 @@ if (true) {
|
|
|
15938
15938
|
|
|
15939
15939
|
/***/ }),
|
|
15940
15940
|
|
|
15941
|
-
/***/
|
|
15941
|
+
/***/ 935:
|
|
15942
15942
|
/***/ (function(__unused_webpack_module, exports) {
|
|
15943
15943
|
|
|
15944
15944
|
|
|
@@ -19183,7 +19183,7 @@ if (true) {
|
|
|
19183
19183
|
|
|
19184
19184
|
/***/ }),
|
|
19185
19185
|
|
|
19186
|
-
/***/
|
|
19186
|
+
/***/ 432:
|
|
19187
19187
|
/***/ (function(module, exports) {
|
|
19188
19188
|
|
|
19189
19189
|
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*
|
|
@@ -20311,7 +20311,7 @@ Object .defineProperty (Namespace, "add",
|
|
|
20311
20311
|
}
|
|
20312
20312
|
else
|
|
20313
20313
|
{
|
|
20314
|
-
const X3D = window [Symbol .for ("X_ITE.X3D-9.3.
|
|
20314
|
+
const X3D = window [Symbol .for ("X_ITE.X3D-9.3.2")];
|
|
20315
20315
|
|
|
20316
20316
|
if (X3D)
|
|
20317
20317
|
X3D [name] = module;
|
|
@@ -34246,7 +34246,7 @@ const X3DBaseNode_default_ = X3DBaseNode;
|
|
|
34246
34246
|
x_ite_Namespace .add ("X3DBaseNode", "x_ite/Base/X3DBaseNode", X3DBaseNode_default_);
|
|
34247
34247
|
/* harmony default export */ const Base_X3DBaseNode = (X3DBaseNode_default_);
|
|
34248
34248
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Legacy.js
|
|
34249
|
-
/* provided dependency */ var $ = __webpack_require__(
|
|
34249
|
+
/* provided dependency */ var $ = __webpack_require__(183);
|
|
34250
34250
|
/*******************************************************************************
|
|
34251
34251
|
*
|
|
34252
34252
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -34383,7 +34383,7 @@ x_ite_Namespace .add ("Legacy", "x_ite/Browser/Legacy", Legacy_default_);
|
|
|
34383
34383
|
*
|
|
34384
34384
|
******************************************************************************/
|
|
34385
34385
|
|
|
34386
|
-
const BROWSER_VERSION_default_ = "9.3.
|
|
34386
|
+
const BROWSER_VERSION_default_ = "9.3.2";
|
|
34387
34387
|
;
|
|
34388
34388
|
|
|
34389
34389
|
x_ite_Namespace .add ("BROWSER_VERSION", "x_ite/BROWSER_VERSION", BROWSER_VERSION_default_);
|
|
@@ -37169,9 +37169,14 @@ Object .assign (Object .setPrototypeOf (X3DChildNode .prototype, Core_X3DNode .p
|
|
|
37169
37169
|
{
|
|
37170
37170
|
return this ._isPickableObject .getValue ();
|
|
37171
37171
|
},
|
|
37172
|
-
|
|
37172
|
+
/**
|
|
37173
|
+
* You will normally overload this function in your derived classes.
|
|
37174
|
+
* @returns {boolean} A boolean value indicating, whether this node
|
|
37175
|
+
* can be visually displayed and therefor should render.
|
|
37176
|
+
*/
|
|
37177
|
+
isRenderingRequired ()
|
|
37173
37178
|
{
|
|
37174
|
-
return false
|
|
37179
|
+
return false;
|
|
37175
37180
|
},
|
|
37176
37181
|
});
|
|
37177
37182
|
|
|
@@ -38959,7 +38964,7 @@ const X3DProtoDeclaration_default_ = X3DProtoDeclaration;
|
|
|
38959
38964
|
x_ite_Namespace .add ("X3DProtoDeclaration", "x_ite/Prototype/X3DProtoDeclaration", X3DProtoDeclaration_default_);
|
|
38960
38965
|
/* harmony default export */ const Prototype_X3DProtoDeclaration = (X3DProtoDeclaration_default_);
|
|
38961
38966
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/X3DParser.js
|
|
38962
|
-
/* provided dependency */ var X3DParser_$ = __webpack_require__(
|
|
38967
|
+
/* provided dependency */ var X3DParser_$ = __webpack_require__(183);
|
|
38963
38968
|
/*******************************************************************************
|
|
38964
38969
|
*
|
|
38965
38970
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -39221,7 +39226,7 @@ const Expressions_default_ = Expressions;
|
|
|
39221
39226
|
x_ite_Namespace .add ("Expressions", "x_ite/Parser/Expressions", Expressions_default_);
|
|
39222
39227
|
/* harmony default export */ const Parser_Expressions = (Expressions_default_);
|
|
39223
39228
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/VRMLParser.js
|
|
39224
|
-
/* provided dependency */ var VRMLParser_$ = __webpack_require__(
|
|
39229
|
+
/* provided dependency */ var VRMLParser_$ = __webpack_require__(183);
|
|
39225
39230
|
/*******************************************************************************
|
|
39226
39231
|
*
|
|
39227
39232
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -41907,7 +41912,7 @@ const VRMLParser_default_ = VRMLParser;
|
|
|
41907
41912
|
x_ite_Namespace .add ("VRMLParser", "x_ite/Parser/VRMLParser", VRMLParser_default_);
|
|
41908
41913
|
/* harmony default export */ const Parser_VRMLParser = (VRMLParser_default_);
|
|
41909
41914
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/XMLParser.js
|
|
41910
|
-
/* provided dependency */ var XMLParser_$ = __webpack_require__(
|
|
41915
|
+
/* provided dependency */ var XMLParser_$ = __webpack_require__(183);
|
|
41911
41916
|
/*******************************************************************************
|
|
41912
41917
|
*
|
|
41913
41918
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -44016,7 +44021,7 @@ const URLs_default_ = URLs;
|
|
|
44016
44021
|
x_ite_Namespace .add ("URLs", "x_ite/Browser/Networking/URLs", URLs_default_);
|
|
44017
44022
|
/* harmony default export */ const Networking_URLs = (URLs_default_);
|
|
44018
44023
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/GLTF2Parser.js
|
|
44019
|
-
/* provided dependency */ var GLTF2Parser_$ = __webpack_require__(
|
|
44024
|
+
/* provided dependency */ var GLTF2Parser_$ = __webpack_require__(183);
|
|
44020
44025
|
/*******************************************************************************
|
|
44021
44026
|
*
|
|
44022
44027
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -47317,7 +47322,7 @@ const GLTF2Parser_default_ = GLTF2Parser;
|
|
|
47317
47322
|
x_ite_Namespace .add ("GLTF2Parser", "x_ite/Parser/GLTF2Parser", GLTF2Parser_default_);
|
|
47318
47323
|
/* harmony default export */ const Parser_GLTF2Parser = (GLTF2Parser_default_);
|
|
47319
47324
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/GLB2Parser.js
|
|
47320
|
-
/* provided dependency */ var GLB2Parser_$ = __webpack_require__(
|
|
47325
|
+
/* provided dependency */ var GLB2Parser_$ = __webpack_require__(183);
|
|
47321
47326
|
/*******************************************************************************
|
|
47322
47327
|
*
|
|
47323
47328
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -47469,7 +47474,7 @@ const GLB2Parser_default_ = GLB2Parser;
|
|
|
47469
47474
|
x_ite_Namespace .add ("GLB2Parser", "x_ite/Parser/GLB2Parser", GLB2Parser_default_);
|
|
47470
47475
|
/* harmony default export */ const Parser_GLB2Parser = (GLB2Parser_default_);
|
|
47471
47476
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/OBJParser.js
|
|
47472
|
-
/* provided dependency */ var OBJParser_$ = __webpack_require__(
|
|
47477
|
+
/* provided dependency */ var OBJParser_$ = __webpack_require__(183);
|
|
47473
47478
|
/*******************************************************************************
|
|
47474
47479
|
*
|
|
47475
47480
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -50824,8 +50829,8 @@ const MatrixStack_default_ = MatrixStack;
|
|
|
50824
50829
|
x_ite_Namespace .add ("MatrixStack", "standard/Math/Utility/MatrixStack", MatrixStack_default_);
|
|
50825
50830
|
/* harmony default export */ const Utility_MatrixStack = (MatrixStack_default_);
|
|
50826
50831
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/SVGParser.js
|
|
50827
|
-
/* provided dependency */ var SVGParser_$ = __webpack_require__(
|
|
50828
|
-
/* provided dependency */ var libtess = __webpack_require__(
|
|
50832
|
+
/* provided dependency */ var SVGParser_$ = __webpack_require__(183);
|
|
50833
|
+
/* provided dependency */ var libtess = __webpack_require__(972);
|
|
50829
50834
|
/*******************************************************************************
|
|
50830
50835
|
*
|
|
50831
50836
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -53593,7 +53598,7 @@ const SVGParser_default_ = SVGParser;
|
|
|
53593
53598
|
x_ite_Namespace .add ("SVGParser", "x_ite/Parser/SVGParser", SVGParser_default_);
|
|
53594
53599
|
/* harmony default export */ const Parser_SVGParser = (SVGParser_default_);
|
|
53595
53600
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/GoldenGate.js
|
|
53596
|
-
/* provided dependency */ var GoldenGate_$ = __webpack_require__(
|
|
53601
|
+
/* provided dependency */ var GoldenGate_$ = __webpack_require__(183);
|
|
53597
53602
|
/*******************************************************************************
|
|
53598
53603
|
*
|
|
53599
53604
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -53943,7 +53948,7 @@ const Plane3_default_ = Plane3;
|
|
|
53943
53948
|
x_ite_Namespace .add ("Plane3", "standard/Math/Geometry/Plane3", Plane3_default_);
|
|
53944
53949
|
/* harmony default export */ const Geometry_Plane3 = (Plane3_default_);
|
|
53945
53950
|
;// CONCATENATED MODULE: ./src/standard/Math/Geometry/Triangle3.js
|
|
53946
|
-
/* provided dependency */ var Triangle3_libtess = __webpack_require__(
|
|
53951
|
+
/* provided dependency */ var Triangle3_libtess = __webpack_require__(972);
|
|
53947
53952
|
/*******************************************************************************
|
|
53948
53953
|
*
|
|
53949
53954
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -58158,19 +58163,18 @@ function X3DGroupingNode (executionContext)
|
|
|
58158
58163
|
this .addType (Base_X3DConstants .X3DGroupingNode);
|
|
58159
58164
|
|
|
58160
58165
|
this .allowedTypes = new Set ();
|
|
58161
|
-
this .
|
|
58162
|
-
this .
|
|
58163
|
-
this .
|
|
58164
|
-
this .
|
|
58165
|
-
this .maybeCameraObjects =
|
|
58166
|
-
this .cameraObjects =
|
|
58167
|
-
this .maybePickableSensorNodes =
|
|
58168
|
-
this .pickableSensorNodes =
|
|
58169
|
-
this .pickableObjects =
|
|
58170
|
-
this .childNodes =
|
|
58171
|
-
this .
|
|
58172
|
-
this .
|
|
58173
|
-
this .boundedObjects = [ ];
|
|
58166
|
+
this .children = new Set ();
|
|
58167
|
+
this .pointingDeviceSensorNodes = new Set ();
|
|
58168
|
+
this .clipPlaneNodes = new Set ();
|
|
58169
|
+
this .displayNodes = new Set ();
|
|
58170
|
+
this .maybeCameraObjects = new Set ();
|
|
58171
|
+
this .cameraObjects = new Set ();
|
|
58172
|
+
this .maybePickableSensorNodes = new Set ();
|
|
58173
|
+
this .pickableSensorNodes = new Set ();
|
|
58174
|
+
this .pickableObjects = new Set ();
|
|
58175
|
+
this .childNodes = new Set ();
|
|
58176
|
+
this .visibleNodes = new Set ();
|
|
58177
|
+
this .boundedObjects = new Set ();
|
|
58174
58178
|
this .sensors = [ ];
|
|
58175
58179
|
}
|
|
58176
58180
|
|
|
@@ -58203,12 +58207,10 @@ Object .assign (Object .setPrototypeOf (X3DGroupingNode .prototype, Core_X3DChil
|
|
|
58203
58207
|
},
|
|
58204
58208
|
setAllowedTypes (/* type, ... */)
|
|
58205
58209
|
{
|
|
58206
|
-
|
|
58207
|
-
|
|
58208
|
-
allowedTypes .clear ();
|
|
58210
|
+
this .allowedTypes .clear ();
|
|
58209
58211
|
|
|
58210
58212
|
for (const type of arguments)
|
|
58211
|
-
allowedTypes .add (type);
|
|
58213
|
+
this .allowedTypes .add (type);
|
|
58212
58214
|
},
|
|
58213
58215
|
set_addChildren__ ()
|
|
58214
58216
|
{
|
|
@@ -58216,7 +58218,13 @@ Object .assign (Object .setPrototypeOf (X3DGroupingNode .prototype, Core_X3DChil
|
|
|
58216
58218
|
return;
|
|
58217
58219
|
|
|
58218
58220
|
this ._addChildren .setTainted (true);
|
|
58219
|
-
|
|
58221
|
+
|
|
58222
|
+
const addChildren = new Set (this ._addChildren);
|
|
58223
|
+
|
|
58224
|
+
for (const node of this .children)
|
|
58225
|
+
addChildren .delete (node);
|
|
58226
|
+
|
|
58227
|
+
this .add (addChildren);
|
|
58220
58228
|
|
|
58221
58229
|
if (!this ._children .isTainted ())
|
|
58222
58230
|
{
|
|
@@ -58224,8 +58232,8 @@ Object .assign (Object .setPrototypeOf (X3DGroupingNode .prototype, Core_X3DChil
|
|
|
58224
58232
|
this ._children .addInterest ("connectChildren", this);
|
|
58225
58233
|
}
|
|
58226
58234
|
|
|
58227
|
-
|
|
58228
|
-
|
|
58235
|
+
for (const child of addChildren)
|
|
58236
|
+
this ._children .push (child);
|
|
58229
58237
|
|
|
58230
58238
|
this ._addChildren .length = 0;
|
|
58231
58239
|
this ._addChildren .setTainted (false);
|
|
@@ -58239,14 +58247,15 @@ Object .assign (Object .setPrototypeOf (X3DGroupingNode .prototype, Core_X3DChil
|
|
|
58239
58247
|
|
|
58240
58248
|
if (this ._children .length > 0)
|
|
58241
58249
|
{
|
|
58250
|
+
this .remove (this ._removeChildren);
|
|
58251
|
+
|
|
58242
58252
|
if (!this ._children .isTainted ())
|
|
58243
58253
|
{
|
|
58244
58254
|
this ._children .removeInterest ("set_children__", this);
|
|
58245
58255
|
this ._children .addInterest ("connectChildren", this);
|
|
58246
58256
|
}
|
|
58247
58257
|
|
|
58248
|
-
this ._children .
|
|
58249
|
-
this .remove (this ._removeChildren);
|
|
58258
|
+
this ._children = Array .from (this ._children) .filter (child => this .children .has (child));
|
|
58250
58259
|
}
|
|
58251
58260
|
|
|
58252
58261
|
this ._removeChildren .length = 0;
|
|
@@ -58274,23 +58283,30 @@ Object .assign (Object .setPrototypeOf (X3DGroupingNode .prototype, Core_X3DChil
|
|
|
58274
58283
|
|
|
58275
58284
|
if (Base_X3DCast (Base_X3DConstants .X3DBoundedObject, childNode))
|
|
58276
58285
|
{
|
|
58277
|
-
childNode ._display .removeInterest ("
|
|
58286
|
+
childNode ._display .removeInterest ("set_displays__", this);
|
|
58278
58287
|
childNode ._bboxDisplay .removeInterest ("set_bboxDisplays__", this);
|
|
58279
58288
|
}
|
|
58280
58289
|
}
|
|
58281
58290
|
|
|
58282
|
-
this .
|
|
58283
|
-
this .
|
|
58284
|
-
this .
|
|
58285
|
-
this .
|
|
58286
|
-
this .maybeCameraObjects .
|
|
58287
|
-
this .
|
|
58288
|
-
this .
|
|
58291
|
+
this .children .clear ();
|
|
58292
|
+
this .pointingDeviceSensorNodes .clear ();
|
|
58293
|
+
this .clipPlaneNodes .clear ();
|
|
58294
|
+
this .displayNodes .clear ();
|
|
58295
|
+
this .maybeCameraObjects .clear ();
|
|
58296
|
+
this .cameraObjects .clear ();
|
|
58297
|
+
this .maybePickableSensorNodes .clear ();
|
|
58298
|
+
this .pickableSensorNodes .clear ();
|
|
58299
|
+
this .pickableObjects .clear ();
|
|
58300
|
+
this .childNodes .clear ();
|
|
58301
|
+
this .visibleNodes .clear ();
|
|
58302
|
+
this .boundedObjects .clear ();
|
|
58289
58303
|
},
|
|
58290
58304
|
add (children)
|
|
58291
58305
|
{
|
|
58292
58306
|
for (const child of children)
|
|
58293
58307
|
{
|
|
58308
|
+
this .children .add (child);
|
|
58309
|
+
|
|
58294
58310
|
const childNode = Base_X3DCast (Base_X3DConstants .X3DChildNode, child);
|
|
58295
58311
|
|
|
58296
58312
|
if (!childNode)
|
|
@@ -58310,27 +58326,30 @@ Object .assign (Object .setPrototypeOf (X3DGroupingNode .prototype, Core_X3DChil
|
|
|
58310
58326
|
{
|
|
58311
58327
|
case Base_X3DConstants .X3DPointingDeviceSensorNode:
|
|
58312
58328
|
{
|
|
58313
|
-
this .pointingDeviceSensorNodes .
|
|
58329
|
+
this .pointingDeviceSensorNodes .add (childNode);
|
|
58314
58330
|
break;
|
|
58315
58331
|
}
|
|
58316
58332
|
case Base_X3DConstants .ClipPlane:
|
|
58317
58333
|
{
|
|
58318
|
-
this .clipPlaneNodes .
|
|
58334
|
+
this .clipPlaneNodes .add (childNode);
|
|
58335
|
+
this .displayNodes .add (childNode);
|
|
58319
58336
|
break;
|
|
58320
58337
|
}
|
|
58321
58338
|
case Base_X3DConstants .LocalFog:
|
|
58322
58339
|
{
|
|
58323
|
-
this .
|
|
58340
|
+
this .displayNodes .add (childNode);
|
|
58324
58341
|
break;
|
|
58325
58342
|
}
|
|
58326
58343
|
case Base_X3DConstants .X3DLightNode:
|
|
58327
58344
|
{
|
|
58328
|
-
this .
|
|
58345
|
+
this .displayNodes .add (childNode);
|
|
58329
58346
|
break;
|
|
58330
58347
|
}
|
|
58331
58348
|
case Base_X3DConstants .X3DBindableNode:
|
|
58332
58349
|
{
|
|
58333
|
-
this .maybeCameraObjects .
|
|
58350
|
+
this .maybeCameraObjects .add (childNode);
|
|
58351
|
+
|
|
58352
|
+
this .addCameraObject (childNode);
|
|
58334
58353
|
break;
|
|
58335
58354
|
}
|
|
58336
58355
|
case Base_X3DConstants .TransformSensor:
|
|
@@ -58338,7 +58357,9 @@ Object .assign (Object .setPrototypeOf (X3DGroupingNode .prototype, Core_X3DChil
|
|
|
58338
58357
|
{
|
|
58339
58358
|
childNode ._isPickableObject .addInterest ("set_pickableObjects__", this);
|
|
58340
58359
|
|
|
58341
|
-
this .maybePickableSensorNodes .
|
|
58360
|
+
this .maybePickableSensorNodes .add (childNode);
|
|
58361
|
+
|
|
58362
|
+
this .addPickableSensorNode (childNode);
|
|
58342
58363
|
break;
|
|
58343
58364
|
}
|
|
58344
58365
|
case Base_X3DConstants .Sound:
|
|
@@ -58351,12 +58372,17 @@ Object .assign (Object .setPrototypeOf (X3DGroupingNode .prototype, Core_X3DChil
|
|
|
58351
58372
|
|
|
58352
58373
|
if (Base_X3DCast (Base_X3DConstants .X3DBoundedObject, childNode))
|
|
58353
58374
|
{
|
|
58354
|
-
childNode ._display .addInterest ("
|
|
58375
|
+
childNode ._display .addInterest ("set_displays__", this);
|
|
58355
58376
|
childNode ._bboxDisplay .addInterest ("set_bboxDisplays__", this);
|
|
58356
58377
|
}
|
|
58357
58378
|
|
|
58358
|
-
this .maybeCameraObjects .
|
|
58359
|
-
this .childNodes
|
|
58379
|
+
this .maybeCameraObjects .add (childNode);
|
|
58380
|
+
this .childNodes .add (childNode);
|
|
58381
|
+
|
|
58382
|
+
this .addCameraObject (childNode);
|
|
58383
|
+
this .addPickableObject (childNode);
|
|
58384
|
+
this .addVisibleNode (childNode);
|
|
58385
|
+
this .addBoundedObject (childNode);
|
|
58360
58386
|
break;
|
|
58361
58387
|
}
|
|
58362
58388
|
case Base_X3DConstants .BooleanFilter:
|
|
@@ -58382,38 +58408,27 @@ Object .assign (Object .setPrototypeOf (X3DGroupingNode .prototype, Core_X3DChil
|
|
|
58382
58408
|
continue;
|
|
58383
58409
|
}
|
|
58384
58410
|
|
|
58385
|
-
|
|
58386
|
-
|
|
58411
|
+
if (childNode .isRenderingRequired ())
|
|
58412
|
+
continue;
|
|
58387
58413
|
|
|
58388
|
-
|
|
58389
|
-
{
|
|
58390
|
-
if (!this .childNodes .includes (childNode))
|
|
58391
|
-
this .childNodes .push (childNode);
|
|
58414
|
+
break;
|
|
58392
58415
|
}
|
|
58393
58416
|
}
|
|
58394
58417
|
|
|
58395
|
-
this .
|
|
58396
|
-
this .
|
|
58397
|
-
this .set_displays_ ()
|
|
58398
|
-
this .set_bboxDisplays__ ();
|
|
58418
|
+
this .setCameraObject (this .cameraObjects .size);
|
|
58419
|
+
this .set_transformSensors__ ();
|
|
58399
58420
|
},
|
|
58400
58421
|
remove (children)
|
|
58401
58422
|
{
|
|
58402
58423
|
for (const child of children)
|
|
58403
58424
|
{
|
|
58425
|
+
this .children .delete (child);
|
|
58426
|
+
|
|
58404
58427
|
const childNode = Base_X3DCast (Base_X3DConstants .X3DChildNode, child);
|
|
58405
58428
|
|
|
58406
58429
|
if (!childNode)
|
|
58407
58430
|
continue;
|
|
58408
58431
|
|
|
58409
|
-
if (childNode .getMustDisplay ())
|
|
58410
|
-
{
|
|
58411
|
-
const index = this .childNodes .indexOf (childNode);
|
|
58412
|
-
|
|
58413
|
-
if (index >= 0)
|
|
58414
|
-
this .childNodes .splice (index, 1);
|
|
58415
|
-
}
|
|
58416
|
-
|
|
58417
58432
|
const type = childNode .getType ();
|
|
58418
58433
|
|
|
58419
58434
|
for (let t = type .length - 1; t >= 0; -- t)
|
|
@@ -58422,47 +58437,29 @@ Object .assign (Object .setPrototypeOf (X3DGroupingNode .prototype, Core_X3DChil
|
|
|
58422
58437
|
{
|
|
58423
58438
|
case Base_X3DConstants .X3DPointingDeviceSensorNode:
|
|
58424
58439
|
{
|
|
58425
|
-
|
|
58426
|
-
|
|
58427
|
-
if (index >= 0)
|
|
58428
|
-
this .pointingDeviceSensorNodes .splice (index, 1);
|
|
58429
|
-
|
|
58440
|
+
this .pointingDeviceSensorNodes .delete (childNode);
|
|
58430
58441
|
break;
|
|
58431
58442
|
}
|
|
58432
58443
|
case Base_X3DConstants .ClipPlane:
|
|
58433
58444
|
{
|
|
58434
|
-
|
|
58435
|
-
|
|
58436
|
-
if (index >= 0)
|
|
58437
|
-
this .clipPlaneNodes .splice (index, 1);
|
|
58438
|
-
|
|
58445
|
+
this .clipPlaneNodes .delete (childNode);
|
|
58446
|
+
this .displayNodes .delete (childNode);
|
|
58439
58447
|
break;
|
|
58440
58448
|
}
|
|
58441
58449
|
case Base_X3DConstants .LocalFog:
|
|
58442
58450
|
{
|
|
58443
|
-
|
|
58444
|
-
|
|
58445
|
-
if (index >= 0)
|
|
58446
|
-
this .localFogNodes .splice (index, 1);
|
|
58447
|
-
|
|
58451
|
+
this .displayNodes .delete (childNode);
|
|
58448
58452
|
break;
|
|
58449
58453
|
}
|
|
58450
58454
|
case Base_X3DConstants .X3DLightNode:
|
|
58451
58455
|
{
|
|
58452
|
-
|
|
58453
|
-
|
|
58454
|
-
if (index >= 0)
|
|
58455
|
-
this .lightNodes .splice (index, 1);
|
|
58456
|
-
|
|
58456
|
+
this .displayNodes .delete (childNode);
|
|
58457
58457
|
break;
|
|
58458
58458
|
}
|
|
58459
58459
|
case Base_X3DConstants .X3DBindableNode:
|
|
58460
58460
|
{
|
|
58461
|
-
|
|
58462
|
-
|
|
58463
|
-
if (index >= 0)
|
|
58464
|
-
this .maybeCameraObjects .splice (index, 1);
|
|
58465
|
-
|
|
58461
|
+
this .maybeCameraObjects .delete (childNode);
|
|
58462
|
+
this .cameraObjects .delete (childNode);
|
|
58466
58463
|
break;
|
|
58467
58464
|
}
|
|
58468
58465
|
case Base_X3DConstants .TransformSensor:
|
|
@@ -58470,11 +58467,8 @@ Object .assign (Object .setPrototypeOf (X3DGroupingNode .prototype, Core_X3DChil
|
|
|
58470
58467
|
{
|
|
58471
58468
|
childNode ._isPickableObject .removeInterest ("set_pickableObjects__", this);
|
|
58472
58469
|
|
|
58473
|
-
|
|
58474
|
-
|
|
58475
|
-
if (index >= 0)
|
|
58476
|
-
this .maybePickableSensorNodes .splice (index, 1);
|
|
58477
|
-
|
|
58470
|
+
this .maybePickableSensorNodes .delete (childNode);
|
|
58471
|
+
this .pickableSensorNodes .delete (childNode);
|
|
58478
58472
|
break;
|
|
58479
58473
|
}
|
|
58480
58474
|
case Base_X3DConstants .Sound:
|
|
@@ -58487,20 +58481,16 @@ Object .assign (Object .setPrototypeOf (X3DGroupingNode .prototype, Core_X3DChil
|
|
|
58487
58481
|
|
|
58488
58482
|
if (Base_X3DCast (Base_X3DConstants .X3DBoundedObject, childNode))
|
|
58489
58483
|
{
|
|
58490
|
-
childNode ._display .removeInterest ("
|
|
58484
|
+
childNode ._display .removeInterest ("set_displays__", this);
|
|
58491
58485
|
childNode ._bboxDisplay .removeInterest ("set_bboxDisplays__", this);
|
|
58492
58486
|
}
|
|
58493
58487
|
|
|
58494
|
-
|
|
58495
|
-
|
|
58496
|
-
|
|
58497
|
-
|
|
58498
|
-
|
|
58499
|
-
|
|
58500
|
-
|
|
58501
|
-
if (index >= 0)
|
|
58502
|
-
this .childNodes .splice (index, 1);
|
|
58503
|
-
|
|
58488
|
+
this .maybeCameraObjects .delete (childNode);
|
|
58489
|
+
this .cameraObjects .delete (childNode);
|
|
58490
|
+
this .pickableObjects .delete (childNode);
|
|
58491
|
+
this .childNodes .delete (childNode);
|
|
58492
|
+
this .visibleNodes .delete (childNode);
|
|
58493
|
+
this .boundedObjects .delete (childNode);
|
|
58504
58494
|
break;
|
|
58505
58495
|
}
|
|
58506
58496
|
case Base_X3DConstants .BooleanFilter:
|
|
@@ -58526,117 +58516,115 @@ Object .assign (Object .setPrototypeOf (X3DGroupingNode .prototype, Core_X3DChil
|
|
|
58526
58516
|
continue;
|
|
58527
58517
|
}
|
|
58528
58518
|
|
|
58519
|
+
if (childNode .isRenderingRequired ())
|
|
58520
|
+
continue;
|
|
58521
|
+
|
|
58529
58522
|
break;
|
|
58530
58523
|
}
|
|
58531
58524
|
}
|
|
58532
58525
|
|
|
58533
|
-
this .
|
|
58534
|
-
this .
|
|
58535
|
-
|
|
58526
|
+
this .setCameraObject (this .cameraObjects .size);
|
|
58527
|
+
this .set_transformSensors__ ();
|
|
58528
|
+
},
|
|
58529
|
+
set_displays__ ()
|
|
58530
|
+
{
|
|
58531
|
+
this .set_cameraObjects__ ();
|
|
58532
|
+
this .set_pickableObjects__ ();
|
|
58533
|
+
this .set_visibleNodes__ ();
|
|
58536
58534
|
},
|
|
58537
58535
|
set_cameraObjects__ ()
|
|
58538
58536
|
{
|
|
58539
|
-
|
|
58540
|
-
|
|
58541
|
-
cameraObjects .length = 0;
|
|
58537
|
+
this .cameraObjects .clear ();
|
|
58542
58538
|
|
|
58543
58539
|
for (const childNode of this .maybeCameraObjects)
|
|
58544
|
-
|
|
58545
|
-
if (!childNode .isCameraObject ())
|
|
58546
|
-
continue;
|
|
58540
|
+
this .addCameraObject (childNode);
|
|
58547
58541
|
|
|
58548
|
-
|
|
58549
|
-
{
|
|
58550
|
-
if (childNode ._display .getValue ())
|
|
58551
|
-
cameraObjects .push (childNode);
|
|
58552
|
-
}
|
|
58553
|
-
else
|
|
58554
|
-
{
|
|
58555
|
-
cameraObjects .push (childNode);
|
|
58556
|
-
}
|
|
58557
|
-
}
|
|
58558
|
-
|
|
58559
|
-
this .setCameraObject (cameraObjects .length);
|
|
58542
|
+
this .setCameraObject (this .cameraObjects .size);
|
|
58560
58543
|
},
|
|
58561
|
-
|
|
58544
|
+
addCameraObject (childNode)
|
|
58562
58545
|
{
|
|
58563
|
-
|
|
58564
|
-
|
|
58565
|
-
pickableObjects = this .pickableObjects;
|
|
58566
|
-
|
|
58567
|
-
pickableSensorNodes .length = 0;
|
|
58568
|
-
pickableObjects .length = 0;
|
|
58546
|
+
if (!childNode .isCameraObject ())
|
|
58547
|
+
return;
|
|
58569
58548
|
|
|
58570
|
-
|
|
58549
|
+
if (Base_X3DCast (Base_X3DConstants .X3DBoundedObject, childNode))
|
|
58571
58550
|
{
|
|
58572
|
-
if (
|
|
58573
|
-
|
|
58551
|
+
if (childNode ._display .getValue ())
|
|
58552
|
+
this .cameraObjects .add (childNode);
|
|
58574
58553
|
}
|
|
58575
|
-
|
|
58576
|
-
for (const childNode of this .visibleNodes)
|
|
58554
|
+
else
|
|
58577
58555
|
{
|
|
58578
|
-
|
|
58579
|
-
pickableObjects .push (childNode);
|
|
58556
|
+
this .cameraObjects .add (childNode);
|
|
58580
58557
|
}
|
|
58558
|
+
},
|
|
58559
|
+
set_pickableObjects__ ()
|
|
58560
|
+
{
|
|
58561
|
+
this .pickableSensorNodes .clear ();
|
|
58562
|
+
this .pickableObjects .clear ();
|
|
58563
|
+
|
|
58564
|
+
for (const childNode of this .maybePickableSensorNodes)
|
|
58565
|
+
this .addPickableSensorNode (childNode);
|
|
58566
|
+
|
|
58567
|
+
for (const childNode of this .childNodes)
|
|
58568
|
+
this .addPickableObject (childNode);
|
|
58581
58569
|
|
|
58582
|
-
this .set_transformSensors__ ()
|
|
58570
|
+
this .set_transformSensors__ ();
|
|
58583
58571
|
},
|
|
58584
58572
|
set_transformSensors__ ()
|
|
58585
58573
|
{
|
|
58586
|
-
this .setPickableObject (this .getTransformSensors () .size || this .pickableSensorNodes .
|
|
58574
|
+
this .setPickableObject (this .getTransformSensors () .size || this .pickableSensorNodes .size || this .pickableObjects .size);
|
|
58587
58575
|
},
|
|
58588
|
-
|
|
58576
|
+
addPickableSensorNode (childNode)
|
|
58589
58577
|
{
|
|
58590
|
-
|
|
58591
|
-
|
|
58592
|
-
displayNodes .length = 0;
|
|
58593
|
-
|
|
58594
|
-
for (const node of this .clipPlaneNodes)
|
|
58595
|
-
displayNodes .push (node);
|
|
58596
|
-
|
|
58597
|
-
for (const node of this .localFogNodes)
|
|
58598
|
-
displayNodes .push (node);
|
|
58599
|
-
|
|
58600
|
-
for (const node of this .lightNodes)
|
|
58601
|
-
displayNodes .push (node);
|
|
58578
|
+
if (childNode .isPickableObject ())
|
|
58579
|
+
this .pickableSensorNodes .add (childNode);
|
|
58602
58580
|
},
|
|
58603
|
-
|
|
58581
|
+
addPickableObject (childNode)
|
|
58604
58582
|
{
|
|
58605
|
-
|
|
58583
|
+
if (!childNode .isPickableObject ())
|
|
58584
|
+
return;
|
|
58606
58585
|
|
|
58607
|
-
|
|
58586
|
+
if (Base_X3DCast (Base_X3DConstants .X3DBoundedObject, childNode))
|
|
58587
|
+
{
|
|
58588
|
+
if (childNode ._display .getValue ())
|
|
58589
|
+
this .pickableObjects .add (childNode);
|
|
58590
|
+
}
|
|
58591
|
+
else
|
|
58592
|
+
{
|
|
58593
|
+
this .pickableObjects .add (childNode);
|
|
58594
|
+
}
|
|
58595
|
+
},
|
|
58596
|
+
set_visibleNodes__ ()
|
|
58597
|
+
{
|
|
58598
|
+
this .visibleNodes .clear ();
|
|
58608
58599
|
|
|
58609
58600
|
for (const childNode of this .childNodes)
|
|
58601
|
+
this .addVisibleNode (childNode);
|
|
58602
|
+
},
|
|
58603
|
+
addVisibleNode (childNode)
|
|
58604
|
+
{
|
|
58605
|
+
if (Base_X3DCast (Base_X3DConstants .X3DBoundedObject, childNode))
|
|
58610
58606
|
{
|
|
58611
|
-
if (
|
|
58612
|
-
|
|
58613
|
-
|
|
58614
|
-
|
|
58615
|
-
|
|
58616
|
-
|
|
58617
|
-
{
|
|
58618
|
-
visibleNodes .push (childNode);
|
|
58619
|
-
}
|
|
58607
|
+
if (childNode ._display .getValue ())
|
|
58608
|
+
this .visibleNodes .add (childNode);
|
|
58609
|
+
}
|
|
58610
|
+
else
|
|
58611
|
+
{
|
|
58612
|
+
this .visibleNodes .add (childNode);
|
|
58620
58613
|
}
|
|
58621
|
-
|
|
58622
|
-
this .set_cameraObjects__ ();
|
|
58623
|
-
this .set_pickableObjects__ ();
|
|
58624
58614
|
},
|
|
58625
58615
|
set_bboxDisplays__ ()
|
|
58626
58616
|
{
|
|
58627
|
-
|
|
58628
|
-
|
|
58629
|
-
boundedObjects .length = 0;
|
|
58617
|
+
this .boundedObjects .clear ();
|
|
58630
58618
|
|
|
58631
58619
|
for (const childNode of this .childNodes)
|
|
58620
|
+
this .addBoundedObject (childNode);
|
|
58621
|
+
},
|
|
58622
|
+
addBoundedObject (childNode)
|
|
58623
|
+
{
|
|
58624
|
+
if (Base_X3DCast (Base_X3DConstants .X3DBoundedObject, childNode))
|
|
58632
58625
|
{
|
|
58633
|
-
if (
|
|
58634
|
-
|
|
58635
|
-
if (childNode ._bboxDisplay .getValue ())
|
|
58636
|
-
{
|
|
58637
|
-
boundedObjects .push (childNode);
|
|
58638
|
-
}
|
|
58639
|
-
}
|
|
58626
|
+
if (childNode ._bboxDisplay .getValue ())
|
|
58627
|
+
this .boundedObjects .add (childNode);
|
|
58640
58628
|
}
|
|
58641
58629
|
},
|
|
58642
58630
|
traverse (type, renderObject)
|
|
@@ -58652,7 +58640,7 @@ Object .assign (Object .setPrototypeOf (X3DGroupingNode .prototype, Core_X3DChil
|
|
|
58652
58640
|
|
|
58653
58641
|
sensors .length = 0;
|
|
58654
58642
|
|
|
58655
|
-
if (pointingDeviceSensorNodes .
|
|
58643
|
+
if (pointingDeviceSensorNodes .size)
|
|
58656
58644
|
{
|
|
58657
58645
|
for (const pointingDeviceSensorNode of pointingDeviceSensorNodes)
|
|
58658
58646
|
pointingDeviceSensorNode .push (renderObject, sensors);
|
|
@@ -58774,13 +58762,6 @@ Object .assign (Object .setPrototypeOf (X3DGroupingNode .prototype, Core_X3DChil
|
|
|
58774
58762
|
},
|
|
58775
58763
|
});
|
|
58776
58764
|
|
|
58777
|
-
function filter (array, remove)
|
|
58778
|
-
{
|
|
58779
|
-
const set = new Set (remove);
|
|
58780
|
-
|
|
58781
|
-
return array .filter (value => !set .has (value));
|
|
58782
|
-
}
|
|
58783
|
-
|
|
58784
58765
|
Object .defineProperties (X3DGroupingNode,
|
|
58785
58766
|
{
|
|
58786
58767
|
typeName:
|
|
@@ -60514,7 +60495,9 @@ Object .assign (Object .setPrototypeOf (X3DGeometryNode .prototype, Core_X3DNode
|
|
|
60514
60495
|
})(),
|
|
60515
60496
|
set_live__ ()
|
|
60516
60497
|
{
|
|
60517
|
-
|
|
60498
|
+
const alwaysUpdate = this .isLive () && this .getBrowser () .getBrowserOption ("AlwaysUpdateGeometries");
|
|
60499
|
+
|
|
60500
|
+
if (this .getLive () .getValue () || alwaysUpdate)
|
|
60518
60501
|
this .getBrowser () .getBrowserOptions () ._Shading .addInterest ("set_shading__", this);
|
|
60519
60502
|
else
|
|
60520
60503
|
this .getBrowser () .getBrowserOptions () ._Shading .removeInterest ("set_shading__", this);
|
|
@@ -62456,7 +62439,7 @@ const X3DTexture2DNode_default_ = X3DTexture2DNode;
|
|
|
62456
62439
|
x_ite_Namespace .add ("X3DTexture2DNode", "x_ite/Components/Texturing/X3DTexture2DNode", X3DTexture2DNode_default_);
|
|
62457
62440
|
/* harmony default export */ const Texturing_X3DTexture2DNode = (X3DTexture2DNode_default_);
|
|
62458
62441
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/ImageTexture.js
|
|
62459
|
-
/* provided dependency */ var ImageTexture_$ = __webpack_require__(
|
|
62442
|
+
/* provided dependency */ var ImageTexture_$ = __webpack_require__(183);
|
|
62460
62443
|
/*******************************************************************************
|
|
62461
62444
|
*
|
|
62462
62445
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -66057,7 +66040,7 @@ const X3DWorld_default_ = X3DWorld;
|
|
|
66057
66040
|
x_ite_Namespace .add ("X3DWorld", "x_ite/Execution/X3DWorld", X3DWorld_default_);
|
|
66058
66041
|
/* harmony default export */ const Execution_X3DWorld = (X3DWorld_default_);
|
|
66059
66042
|
;// CONCATENATED MODULE: ./src/x_ite/InputOutput/FileLoader.js
|
|
66060
|
-
/* provided dependency */ var FileLoader_$ = __webpack_require__(
|
|
66043
|
+
/* provided dependency */ var FileLoader_$ = __webpack_require__(183);
|
|
66061
66044
|
/*******************************************************************************
|
|
66062
66045
|
*
|
|
66063
66046
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -66984,7 +66967,7 @@ const ProtoDeclarationArray_default_ = ProtoDeclarationArray;
|
|
|
66984
66967
|
x_ite_Namespace .add ("ProtoDeclarationArray", "x_ite/Prototype/ProtoDeclarationArray", ProtoDeclarationArray_default_);
|
|
66985
66968
|
/* harmony default export */ const Prototype_ProtoDeclarationArray = (ProtoDeclarationArray_default_);
|
|
66986
66969
|
;// CONCATENATED MODULE: ./src/x_ite/Routing/X3DRoute.js
|
|
66987
|
-
/* provided dependency */ var X3DRoute_$ = __webpack_require__(
|
|
66970
|
+
/* provided dependency */ var X3DRoute_$ = __webpack_require__(183);
|
|
66988
66971
|
/*******************************************************************************
|
|
66989
66972
|
*
|
|
66990
66973
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -74190,7 +74173,9 @@ Object .assign (Object .setPrototypeOf (Cone .prototype, Rendering_X3DGeometryNo
|
|
|
74190
74173
|
{
|
|
74191
74174
|
Rendering_X3DGeometryNode .prototype .set_live__ .call (this);
|
|
74192
74175
|
|
|
74193
|
-
|
|
74176
|
+
const alwaysUpdate = this .isLive () && this .getBrowser () .getBrowserOption ("AlwaysUpdateGeometries");
|
|
74177
|
+
|
|
74178
|
+
if (this .getLive () .getValue () || alwaysUpdate)
|
|
74194
74179
|
this .getBrowser () .getConeOptions () .addInterest ("requestRebuild", this);
|
|
74195
74180
|
else
|
|
74196
74181
|
this .getBrowser () .getConeOptions () .removeInterest ("requestRebuild", this);
|
|
@@ -74401,7 +74386,9 @@ Object .assign (Object .setPrototypeOf (Cylinder .prototype, Rendering_X3DGeomet
|
|
|
74401
74386
|
{
|
|
74402
74387
|
Rendering_X3DGeometryNode .prototype .set_live__ .call (this);
|
|
74403
74388
|
|
|
74404
|
-
|
|
74389
|
+
const alwaysUpdate = this .isLive () && this .getBrowser () .getBrowserOption ("AlwaysUpdateGeometries");
|
|
74390
|
+
|
|
74391
|
+
if (this .getLive () .getValue () || alwaysUpdate)
|
|
74405
74392
|
this .getBrowser () .getCylinderOptions () .addInterest ("requestRebuild", this);
|
|
74406
74393
|
else
|
|
74407
74394
|
this .getBrowser () .getCylinderOptions () .removeInterest ("requestRebuild", this);
|
|
@@ -76643,7 +76630,9 @@ Object .assign (Object .setPrototypeOf (Sphere .prototype, Rendering_X3DGeometry
|
|
|
76643
76630
|
{
|
|
76644
76631
|
Rendering_X3DGeometryNode .prototype .set_live__ .call (this);
|
|
76645
76632
|
|
|
76646
|
-
|
|
76633
|
+
const alwaysUpdate = this .isLive () && this .getBrowser () .getBrowserOption ("AlwaysUpdateGeometries");
|
|
76634
|
+
|
|
76635
|
+
if (this .getLive () .getValue () || alwaysUpdate)
|
|
76647
76636
|
this .getBrowser () .getSphereOptions () .addInterest ("requestRebuild", this);
|
|
76648
76637
|
else
|
|
76649
76638
|
this .getBrowser () .getSphereOptions () .removeInterest ("requestRebuild", this);
|
|
@@ -89864,7 +89853,7 @@ const X3DShaderNode_default_ = X3DShaderNode;
|
|
|
89864
89853
|
x_ite_Namespace .add ("X3DShaderNode", "x_ite/Components/Shaders/X3DShaderNode", X3DShaderNode_default_);
|
|
89865
89854
|
/* harmony default export */ const Shaders_X3DShaderNode = (X3DShaderNode_default_);
|
|
89866
89855
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js
|
|
89867
|
-
/* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(
|
|
89856
|
+
/* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(183);
|
|
89868
89857
|
/*******************************************************************************
|
|
89869
89858
|
*
|
|
89870
89859
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -95505,7 +95494,7 @@ const ShaderCompiler_default_ = ShaderCompiler;
|
|
|
95505
95494
|
x_ite_Namespace .add ("ShaderCompiler", "x_ite/Browser/Shaders/ShaderCompiler", ShaderCompiler_default_);
|
|
95506
95495
|
/* harmony default export */ const Shaders_ShaderCompiler = (ShaderCompiler_default_);
|
|
95507
95496
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/ShaderPart.js
|
|
95508
|
-
/* provided dependency */ var ShaderPart_$ = __webpack_require__(
|
|
95497
|
+
/* provided dependency */ var ShaderPart_$ = __webpack_require__(183);
|
|
95509
95498
|
/*******************************************************************************
|
|
95510
95499
|
*
|
|
95511
95500
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -96162,7 +96151,7 @@ const X3DAppearanceNode_default_ = X3DAppearanceNode;
|
|
|
96162
96151
|
x_ite_Namespace .add ("X3DAppearanceNode", "x_ite/Components/Shape/X3DAppearanceNode", X3DAppearanceNode_default_);
|
|
96163
96152
|
/* harmony default export */ const Shape_X3DAppearanceNode = (X3DAppearanceNode_default_);
|
|
96164
96153
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Shape/Appearance.js
|
|
96165
|
-
/* provided dependency */ var Appearance_$ = __webpack_require__(
|
|
96154
|
+
/* provided dependency */ var Appearance_$ = __webpack_require__(183);
|
|
96166
96155
|
/*******************************************************************************
|
|
96167
96156
|
*
|
|
96168
96157
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -98913,7 +98902,9 @@ Object .assign (Object .setPrototypeOf (Shape .prototype, Shape_X3DShapeNode .pr
|
|
|
98913
98902
|
{
|
|
98914
98903
|
case Rendering_TraverseType .POINTER:
|
|
98915
98904
|
{
|
|
98916
|
-
|
|
98905
|
+
if (this ._pointerEvents .getValue ())
|
|
98906
|
+
renderObject .addPointingShape (this);
|
|
98907
|
+
|
|
98917
98908
|
break;
|
|
98918
98909
|
}
|
|
98919
98910
|
case Rendering_TraverseType .PICKING:
|
|
@@ -99003,14 +98994,15 @@ Object .defineProperties (Shape,
|
|
|
99003
98994
|
fieldDefinitions:
|
|
99004
98995
|
{
|
|
99005
98996
|
value: new Base_FieldDefinitionArray ([
|
|
99006
|
-
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "metadata",
|
|
99007
|
-
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "
|
|
99008
|
-
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "
|
|
99009
|
-
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "
|
|
99010
|
-
new Base_X3DFieldDefinition (Base_X3DConstants .
|
|
99011
|
-
new Base_X3DFieldDefinition (Base_X3DConstants .initializeOnly, "
|
|
99012
|
-
new Base_X3DFieldDefinition (Base_X3DConstants .
|
|
99013
|
-
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "
|
|
98997
|
+
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "metadata", new x_ite_Fields .SFNode ()),
|
|
98998
|
+
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "pointerEvents", new x_ite_Fields .SFBool (true)), // skip test
|
|
98999
|
+
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "castShadow", new x_ite_Fields .SFBool (true)),
|
|
99000
|
+
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "visible", new x_ite_Fields .SFBool (true)),
|
|
99001
|
+
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "bboxDisplay", new x_ite_Fields .SFBool ()),
|
|
99002
|
+
new Base_X3DFieldDefinition (Base_X3DConstants .initializeOnly, "bboxSize", new x_ite_Fields .SFVec3f (-1, -1, -1)),
|
|
99003
|
+
new Base_X3DFieldDefinition (Base_X3DConstants .initializeOnly, "bboxCenter", new x_ite_Fields .SFVec3f ()),
|
|
99004
|
+
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "appearance", new x_ite_Fields .SFNode ()),
|
|
99005
|
+
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "geometry", new x_ite_Fields .SFNode ()),
|
|
99014
99006
|
]),
|
|
99015
99007
|
enumerable: true,
|
|
99016
99008
|
},
|
|
@@ -99579,7 +99571,6 @@ const Components_Shape_default_ = {
|
|
|
99579
99571
|
x_ite_Namespace .add ("Shape", "x_ite/Components/Shape", Components_Shape_default_);
|
|
99580
99572
|
/* harmony default export */ const Components_Shape = (Components_Shape_default_);
|
|
99581
99573
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/X3DSoundProcessingNode.js
|
|
99582
|
-
/* provided dependency */ var X3DSoundProcessingNode_$ = __webpack_require__(37);
|
|
99583
99574
|
/*******************************************************************************
|
|
99584
99575
|
*
|
|
99585
99576
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -99633,6 +99624,7 @@ x_ite_Namespace .add ("Shape", "x_ite/Components/Shape", Components_Shape_defaul
|
|
|
99633
99624
|
|
|
99634
99625
|
|
|
99635
99626
|
|
|
99627
|
+
|
|
99636
99628
|
function X3DSoundProcessingNode (executionContext)
|
|
99637
99629
|
{
|
|
99638
99630
|
Core_X3DChildNode .call (this, executionContext);
|
|
@@ -99640,13 +99632,13 @@ function X3DSoundProcessingNode (executionContext)
|
|
|
99640
99632
|
|
|
99641
99633
|
this .addType (Base_X3DConstants .X3DSoundProcessingNode);
|
|
99642
99634
|
|
|
99643
|
-
this .addChildObjects (Base_X3DConstants .inputOutput, "loop",
|
|
99644
|
-
Base_X3DConstants .inputOutput, "active", new x_ite_Fields .SFBool ());
|
|
99635
|
+
this .addChildObjects (Base_X3DConstants .inputOutput, "loop", new x_ite_Fields .SFBool (true));
|
|
99645
99636
|
|
|
99646
99637
|
const audioContext = this .getBrowser () .getAudioContext ();
|
|
99647
99638
|
|
|
99648
|
-
this .childNodes
|
|
99649
|
-
this .
|
|
99639
|
+
this .childNodes = [ ];
|
|
99640
|
+
this .audioDestination = new GainNode (audioContext, { gain: 0 });
|
|
99641
|
+
this .audioSource = new GainNode (audioContext, { gain: 1 });
|
|
99650
99642
|
}
|
|
99651
99643
|
|
|
99652
99644
|
Object .assign (Object .setPrototypeOf (X3DSoundProcessingNode .prototype, Core_X3DChildNode .prototype),
|
|
@@ -99657,35 +99649,63 @@ Object .assign (Object .setPrototypeOf (X3DSoundProcessingNode .prototype, Core_
|
|
|
99657
99649
|
Core_X3DChildNode .prototype .initialize .call (this);
|
|
99658
99650
|
Time_X3DTimeDependentNode .prototype .initialize .call (this);
|
|
99659
99651
|
|
|
99660
|
-
this .
|
|
99652
|
+
this ._enabled .addInterest ("set_enabled__", this);
|
|
99661
99653
|
this ._gain .addInterest ("set_gain__", this);
|
|
99662
99654
|
this ._channelCount .addInterest ("set_channelCount__", this);
|
|
99663
99655
|
this ._channelCountMode .addInterest ("set_channelCountMode__", this);
|
|
99664
99656
|
this ._channelInterpretation .addInterest ("set_channelInterpretation__", this);
|
|
99665
99657
|
this ._children .addInterest ("set_children__", this);
|
|
99666
|
-
this ._active .addInterest ("set_active__", this);
|
|
99667
99658
|
|
|
99659
|
+
this .set_enabled__ ();
|
|
99668
99660
|
this .set_gain__ ();
|
|
99669
99661
|
this .set_channelCount__ ();
|
|
99670
99662
|
this .set_channelCountMode__ ();
|
|
99671
99663
|
this .set_channelInterpretation__ ();
|
|
99672
99664
|
this .set_children__ ();
|
|
99673
99665
|
},
|
|
99666
|
+
getAudioDestination ()
|
|
99667
|
+
{
|
|
99668
|
+
return this .audioDestination;
|
|
99669
|
+
},
|
|
99674
99670
|
getAudioSource ()
|
|
99675
99671
|
{
|
|
99676
|
-
return this .
|
|
99672
|
+
return this .audioSource;
|
|
99677
99673
|
},
|
|
99678
99674
|
getSoundProcessor ()
|
|
99679
99675
|
{
|
|
99680
|
-
return this .
|
|
99676
|
+
return this .audioSource;
|
|
99677
|
+
},
|
|
99678
|
+
set_enabled__ ()
|
|
99679
|
+
{
|
|
99680
|
+
this .audioDestination .disconnect ();
|
|
99681
|
+
|
|
99682
|
+
if (this ._enabled .getValue ())
|
|
99683
|
+
{
|
|
99684
|
+
this .set_gain__ ();
|
|
99685
|
+
this .set_channelCountMode__ ();
|
|
99686
|
+
this .set_channelInterpretation__ ();
|
|
99687
|
+
|
|
99688
|
+
this .audioDestination .connect (this .getSoundProcessor ());
|
|
99689
|
+
}
|
|
99690
|
+
else
|
|
99691
|
+
{
|
|
99692
|
+
this .audioDestination .gain .value = 1;
|
|
99693
|
+
this .audioDestination .channelCountMode = "max";
|
|
99694
|
+
this .audioDestination .channelInterpretation = "speakers";
|
|
99695
|
+
|
|
99696
|
+
this .audioDestination .connect (this .audioSource);
|
|
99697
|
+
}
|
|
99681
99698
|
},
|
|
99682
99699
|
set_gain__ ()
|
|
99683
99700
|
{
|
|
99684
|
-
|
|
99701
|
+
if (!this ._enabled .getValue ())
|
|
99702
|
+
return;
|
|
99703
|
+
|
|
99704
|
+
this .audioDestination .gain .value = this ._gain .getValue ();
|
|
99685
99705
|
},
|
|
99686
99706
|
set_channelCount__ ()
|
|
99687
99707
|
{
|
|
99688
|
-
this .
|
|
99708
|
+
this .audioDestination .channelCount = Math_Algorithm .clamp (this ._channelCount .getValue (), 1, 32);
|
|
99689
99709
|
},
|
|
99690
99710
|
set_channelCountMode__: (function ()
|
|
99691
99711
|
{
|
|
@@ -99693,9 +99713,12 @@ Object .assign (Object .setPrototypeOf (X3DSoundProcessingNode .prototype, Core_
|
|
|
99693
99713
|
|
|
99694
99714
|
return function ()
|
|
99695
99715
|
{
|
|
99716
|
+
if (!this ._enabled .getValue ())
|
|
99717
|
+
return;
|
|
99718
|
+
|
|
99696
99719
|
const channelCountMode = this ._channelCountMode .getValue () .toLowerCase () .replaceAll ("_", "-");
|
|
99697
99720
|
|
|
99698
|
-
this .
|
|
99721
|
+
this .audioDestination .channelCountMode = channelCountModes .has (channelCountMode) ? channelCountMode : "max";
|
|
99699
99722
|
};
|
|
99700
99723
|
})(),
|
|
99701
99724
|
set_channelInterpretation__: (function ()
|
|
@@ -99704,14 +99727,18 @@ Object .assign (Object .setPrototypeOf (X3DSoundProcessingNode .prototype, Core_
|
|
|
99704
99727
|
|
|
99705
99728
|
return function ()
|
|
99706
99729
|
{
|
|
99730
|
+
if (!this ._enabled .getValue ())
|
|
99731
|
+
return;
|
|
99732
|
+
|
|
99707
99733
|
const channelInterpretation = this ._channelInterpretation .getValue () .toLowerCase ();
|
|
99708
99734
|
|
|
99709
|
-
this .
|
|
99735
|
+
this .audioDestination .channelInterpretation = channelInterpretations .has (channelInterpretation) ? channelInterpretation : "speakers";
|
|
99710
99736
|
};
|
|
99711
99737
|
})(),
|
|
99712
99738
|
set_children__ ()
|
|
99713
99739
|
{
|
|
99714
|
-
this .
|
|
99740
|
+
for (const childNode of this .childNodes)
|
|
99741
|
+
childNode .getAudioSource () .disconnect (this .audioDestination);
|
|
99715
99742
|
|
|
99716
99743
|
this .childNodes .length = 0;
|
|
99717
99744
|
|
|
@@ -99741,50 +99768,8 @@ Object .assign (Object .setPrototypeOf (X3DSoundProcessingNode .prototype, Core_
|
|
|
99741
99768
|
}
|
|
99742
99769
|
}
|
|
99743
99770
|
|
|
99744
|
-
this .set_active__ ();
|
|
99745
|
-
},
|
|
99746
|
-
set_disconnect__ ()
|
|
99747
|
-
{
|
|
99748
|
-
for (const childNode of this .childNodes)
|
|
99749
|
-
X3DSoundProcessingNode_$.try (() => childNode .getAudioSource () .disconnect (this .gainNode));
|
|
99750
|
-
|
|
99751
99771
|
for (const childNode of this .childNodes)
|
|
99752
|
-
|
|
99753
|
-
},
|
|
99754
|
-
set_active__ ()
|
|
99755
|
-
{
|
|
99756
|
-
this .set_disconnect__ ();
|
|
99757
|
-
|
|
99758
|
-
if (this ._active .getValue ())
|
|
99759
|
-
{
|
|
99760
|
-
for (const childNode of this .childNodes)
|
|
99761
|
-
X3DSoundProcessingNode_$.try (() => childNode .getAudioSource () .connect (this .getSoundProcessor ()), true);
|
|
99762
|
-
}
|
|
99763
|
-
else
|
|
99764
|
-
{
|
|
99765
|
-
for (const childNode of this .childNodes)
|
|
99766
|
-
X3DSoundProcessingNode_$.try (() => childNode .getAudioSource () .connect (this .gainNode), true);
|
|
99767
|
-
}
|
|
99768
|
-
},
|
|
99769
|
-
set_start ()
|
|
99770
|
-
{
|
|
99771
|
-
if (!this ._active .getValue ())
|
|
99772
|
-
this ._active = true;
|
|
99773
|
-
},
|
|
99774
|
-
set_pause ()
|
|
99775
|
-
{
|
|
99776
|
-
if (this ._active .getValue ())
|
|
99777
|
-
this ._active = false;
|
|
99778
|
-
},
|
|
99779
|
-
set_resume ()
|
|
99780
|
-
{
|
|
99781
|
-
if (!this ._active .getValue ())
|
|
99782
|
-
this ._active = true;
|
|
99783
|
-
},
|
|
99784
|
-
set_stop ()
|
|
99785
|
-
{
|
|
99786
|
-
if (this ._active .getValue ())
|
|
99787
|
-
this ._active = false;
|
|
99772
|
+
childNode .getAudioSource () .connect (this .audioDestination);
|
|
99788
99773
|
},
|
|
99789
99774
|
set_time ()
|
|
99790
99775
|
{
|
|
@@ -99879,11 +99864,12 @@ function Analyser (executionContext)
|
|
|
99879
99864
|
|
|
99880
99865
|
const audioContext = this .getBrowser () .getAudioContext ();
|
|
99881
99866
|
|
|
99882
|
-
this .
|
|
99883
|
-
this .byteFrequencyData = new Uint8Array (this .
|
|
99884
|
-
this .byteTimeDomainData = new Uint8Array (this .
|
|
99867
|
+
this .analyserNode = new AnalyserNode (audioContext);
|
|
99868
|
+
this .byteFrequencyData = new Uint8Array (this .analyserNode .frequencyBinCount);
|
|
99869
|
+
this .byteTimeDomainData = new Uint8Array (this .analyserNode .frequencyBinCount);
|
|
99885
99870
|
|
|
99886
|
-
this .
|
|
99871
|
+
this .getAudioDestination () .connect (this .analyserNode);
|
|
99872
|
+
this .analyserNode .connect (this .getAudioSource ());
|
|
99887
99873
|
}
|
|
99888
99874
|
|
|
99889
99875
|
Object .assign (Object .setPrototypeOf (Analyser .prototype, Sound_X3DSoundProcessingNode .prototype),
|
|
@@ -99903,13 +99889,13 @@ Object .assign (Object .setPrototypeOf (Analyser .prototype, Sound_X3DSoundProce
|
|
|
99903
99889
|
},
|
|
99904
99890
|
getSoundProcessor ()
|
|
99905
99891
|
{
|
|
99906
|
-
return this .
|
|
99892
|
+
return this .analyserNode;
|
|
99907
99893
|
},
|
|
99908
99894
|
set_fftSize__ ()
|
|
99909
99895
|
{
|
|
99910
|
-
this .
|
|
99896
|
+
this .analyserNode .fftSize = Math_Algorithm .clamp (Math_Algorithm .nextPowerOfTwo (this ._fftSize .getValue ()), 32, 32768);
|
|
99911
99897
|
|
|
99912
|
-
this ._frequencyBinCount = this .
|
|
99898
|
+
this ._frequencyBinCount = this .analyserNode .frequencyBinCount;
|
|
99913
99899
|
},
|
|
99914
99900
|
set_decibels__ ()
|
|
99915
99901
|
{
|
|
@@ -99917,20 +99903,20 @@ Object .assign (Object .setPrototypeOf (Analyser .prototype, Sound_X3DSoundProce
|
|
|
99917
99903
|
minDecibels = Math .min (this ._minDecibels .getValue (), 0),
|
|
99918
99904
|
maxDecibels = Math .min (this ._maxDecibels .getValue (), 0);
|
|
99919
99905
|
|
|
99920
|
-
this .
|
|
99921
|
-
this .
|
|
99906
|
+
this .analyserNode .minDecibels = Math .min (minDecibels, maxDecibels);
|
|
99907
|
+
this .analyserNode .maxDecibels = Math .max (minDecibels, maxDecibels);
|
|
99922
99908
|
},
|
|
99923
99909
|
set_smoothingTimeConstant__ ()
|
|
99924
99910
|
{
|
|
99925
|
-
this .
|
|
99911
|
+
this .analyserNode .smoothingTimeConstant = Math_Algorithm .clamp (this ._smoothingTimeConstant .getValue (), 0, 1);
|
|
99926
99912
|
},
|
|
99927
99913
|
set_time ()
|
|
99928
99914
|
{
|
|
99929
99915
|
Sound_X3DSoundProcessingNode .prototype .set_time .call (this);
|
|
99930
99916
|
|
|
99931
99917
|
const
|
|
99932
|
-
|
|
99933
|
-
frequencyBinCount =
|
|
99918
|
+
analyserNode = this .analyserNode,
|
|
99919
|
+
frequencyBinCount = analyserNode .frequencyBinCount;
|
|
99934
99920
|
|
|
99935
99921
|
if (this .byteFrequencyData .length !== frequencyBinCount)
|
|
99936
99922
|
{
|
|
@@ -99943,14 +99929,14 @@ Object .assign (Object .setPrototypeOf (Analyser .prototype, Sound_X3DSoundProce
|
|
|
99943
99929
|
this ._floatFrequencyData .length = frequencyBinCount;
|
|
99944
99930
|
this ._floatTimeDomainData .length = frequencyBinCount;
|
|
99945
99931
|
|
|
99946
|
-
|
|
99947
|
-
|
|
99932
|
+
analyserNode .getByteFrequencyData (this .byteFrequencyData);
|
|
99933
|
+
analyserNode .getByteTimeDomainData (this .byteTimeDomainData);
|
|
99948
99934
|
|
|
99949
99935
|
this ._byteFrequencyData .getValue () .set (this .byteFrequencyData);
|
|
99950
99936
|
this ._byteTimeDomainData .getValue () .set (this .byteTimeDomainData);
|
|
99951
99937
|
|
|
99952
|
-
|
|
99953
|
-
|
|
99938
|
+
analyserNode .getFloatFrequencyData (this ._floatFrequencyData .shrinkToFit ());
|
|
99939
|
+
analyserNode .getFloatTimeDomainData (this ._floatTimeDomainData .shrinkToFit ());
|
|
99954
99940
|
|
|
99955
99941
|
this ._byteFrequencyData .addEvent ();
|
|
99956
99942
|
this ._byteTimeDomainData .addEvent ();
|
|
@@ -100084,7 +100070,7 @@ function X3DSoundSourceNode (executionContext)
|
|
|
100084
100070
|
|
|
100085
100071
|
const audioContext = this .getBrowser () .getAudioContext ();
|
|
100086
100072
|
|
|
100087
|
-
this .
|
|
100073
|
+
this .audioSource = new GainNode (audioContext, { gain: 0 });
|
|
100088
100074
|
this .mediaElement = null;
|
|
100089
100075
|
}
|
|
100090
100076
|
|
|
@@ -100102,7 +100088,7 @@ Object .assign (Object .setPrototypeOf (X3DSoundSourceNode .prototype, Core_X3DC
|
|
|
100102
100088
|
},
|
|
100103
100089
|
getAudioSource ()
|
|
100104
100090
|
{
|
|
100105
|
-
return this .
|
|
100091
|
+
return this .audioSource;
|
|
100106
100092
|
},
|
|
100107
100093
|
setMediaElement (value)
|
|
100108
100094
|
{
|
|
@@ -100144,7 +100130,7 @@ Object .assign (Object .setPrototypeOf (X3DSoundSourceNode .prototype, Core_X3DC
|
|
|
100144
100130
|
},
|
|
100145
100131
|
set_gain__ ()
|
|
100146
100132
|
{
|
|
100147
|
-
this .
|
|
100133
|
+
this .audioSource .gain .value = this ._gain .getValue ();
|
|
100148
100134
|
},
|
|
100149
100135
|
set_pitch ()
|
|
100150
100136
|
{ },
|
|
@@ -100219,7 +100205,7 @@ const X3DSoundSourceNode_default_ = X3DSoundSourceNode;
|
|
|
100219
100205
|
x_ite_Namespace .add ("X3DSoundSourceNode", "x_ite/Components/Sound/X3DSoundSourceNode", X3DSoundSourceNode_default_);
|
|
100220
100206
|
/* harmony default export */ const Sound_X3DSoundSourceNode = (X3DSoundSourceNode_default_);
|
|
100221
100207
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/AudioClip.js
|
|
100222
|
-
/* provided dependency */ var AudioClip_$ = __webpack_require__(
|
|
100208
|
+
/* provided dependency */ var AudioClip_$ = __webpack_require__(183);
|
|
100223
100209
|
/*******************************************************************************
|
|
100224
100210
|
*
|
|
100225
100211
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -100521,7 +100507,6 @@ const X3DSoundNode_default_ = X3DSoundNode;
|
|
|
100521
100507
|
x_ite_Namespace .add ("X3DSoundNode", "x_ite/Components/Sound/X3DSoundNode", X3DSoundNode_default_);
|
|
100522
100508
|
/* harmony default export */ const Sound_X3DSoundNode = (X3DSoundNode_default_);
|
|
100523
100509
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/X3DSoundDestinationNode.js
|
|
100524
|
-
/* provided dependency */ var X3DSoundDestinationNode_$ = __webpack_require__(37);
|
|
100525
100510
|
/*******************************************************************************
|
|
100526
100511
|
*
|
|
100527
100512
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -100573,6 +100558,7 @@ x_ite_Namespace .add ("X3DSoundNode", "x_ite/Components/Sound/X3DSoundNode", X3D
|
|
|
100573
100558
|
|
|
100574
100559
|
|
|
100575
100560
|
|
|
100561
|
+
|
|
100576
100562
|
function X3DSoundDestinationNode (executionContext)
|
|
100577
100563
|
{
|
|
100578
100564
|
Sound_X3DSoundNode .call (this, executionContext);
|
|
@@ -100581,8 +100567,8 @@ function X3DSoundDestinationNode (executionContext)
|
|
|
100581
100567
|
|
|
100582
100568
|
const audioContext = this .getBrowser () .getAudioContext ();
|
|
100583
100569
|
|
|
100584
|
-
this .childNodes
|
|
100585
|
-
this .
|
|
100570
|
+
this .childNodes = [ ];
|
|
100571
|
+
this .audioDestination = new GainNode (audioContext, { gain: 0 });
|
|
100586
100572
|
}
|
|
100587
100573
|
|
|
100588
100574
|
Object .assign (Object .setPrototypeOf (X3DSoundDestinationNode .prototype, Sound_X3DSoundNode .prototype),
|
|
@@ -100593,50 +100579,40 @@ Object .assign (Object .setPrototypeOf (X3DSoundDestinationNode .prototype, Soun
|
|
|
100593
100579
|
|
|
100594
100580
|
this .getLive () .addInterest ("set_enabled__", this);
|
|
100595
100581
|
|
|
100596
|
-
this ._enabled
|
|
100597
|
-
this ._gain
|
|
100598
|
-
this .
|
|
100582
|
+
this ._enabled .addInterest ("set_enabled__", this);
|
|
100583
|
+
this ._gain .addInterest ("set_gain__", this);
|
|
100584
|
+
this ._channelCount .addInterest ("set_channelCount__", this);
|
|
100585
|
+
this ._channelCountMode .addInterest ("set_channelCountMode__", this);
|
|
100586
|
+
this ._channelInterpretation .addInterest ("set_channelInterpretation__", this);
|
|
100587
|
+
this ._children .addInterest ("set_children__", this);
|
|
100599
100588
|
|
|
100600
100589
|
this .set_enabled__ ();
|
|
100601
100590
|
this .set_gain__ ();
|
|
100591
|
+
this .set_channelCount__ ();
|
|
100592
|
+
this .set_channelCountMode__ ();
|
|
100593
|
+
this .set_channelInterpretation__ ();
|
|
100602
100594
|
this .set_children__ ();
|
|
100603
100595
|
},
|
|
100604
|
-
|
|
100596
|
+
getAudioDestination ()
|
|
100605
100597
|
{
|
|
100606
|
-
return this .
|
|
100598
|
+
return this .audioDestination;
|
|
100607
100599
|
},
|
|
100608
100600
|
set_enabled__ ()
|
|
100609
100601
|
{
|
|
100610
100602
|
if (this ._enabled .getValue () && this .getLive () .getValue ())
|
|
100611
|
-
|
|
100612
|
-
this ._channelCount .addInterest ("set_channelCount__", this);
|
|
100613
|
-
this ._channelCountMode .addInterest ("set_channelCountMode__", this);
|
|
100614
|
-
this ._channelInterpretation .addInterest ("set_channelInterpretation__", this);
|
|
100615
|
-
|
|
100616
|
-
this .gainNode .connect (this .getSoundDestination ());
|
|
100617
|
-
|
|
100618
|
-
this .set_channelCount__ ();
|
|
100619
|
-
this .set_channelCountMode__ ();
|
|
100620
|
-
this .set_channelInterpretation__ ();
|
|
100621
|
-
}
|
|
100603
|
+
this .audioDestination .connect (this .getSoundDestination ());
|
|
100622
100604
|
else
|
|
100623
|
-
|
|
100624
|
-
this ._channelCount .removeInterest ("set_channelCount__", this);
|
|
100625
|
-
this ._channelCountMode .removeInterest ("set_channelCountMode__", this);
|
|
100626
|
-
this ._channelInterpretation .removeInterest ("set_channelInterpretation__", this);
|
|
100627
|
-
|
|
100628
|
-
this .gainNode .disconnect ();
|
|
100629
|
-
}
|
|
100605
|
+
this .audioDestination .disconnect ();
|
|
100630
100606
|
|
|
100631
100607
|
this ._isActive = this ._enabled;
|
|
100632
100608
|
},
|
|
100633
100609
|
set_gain__ ()
|
|
100634
100610
|
{
|
|
100635
|
-
this .
|
|
100611
|
+
this .audioDestination .gain .value = this ._gain .getValue ();
|
|
100636
100612
|
},
|
|
100637
100613
|
set_channelCount__ ()
|
|
100638
100614
|
{
|
|
100639
|
-
this .
|
|
100615
|
+
this .audioDestination .channelCount = Math_Algorithm .clamp (this ._channelCount .getValue (), 1, 32);
|
|
100640
100616
|
},
|
|
100641
100617
|
set_channelCountMode__: (function ()
|
|
100642
100618
|
{
|
|
@@ -100646,7 +100622,7 @@ Object .assign (Object .setPrototypeOf (X3DSoundDestinationNode .prototype, Soun
|
|
|
100646
100622
|
{
|
|
100647
100623
|
const channelCountMode = this ._channelCountMode .getValue () .toLowerCase () .replaceAll ("_", "-");
|
|
100648
100624
|
|
|
100649
|
-
this .
|
|
100625
|
+
this .audioDestination .channelCountMode = channelCountModes .has (channelCountMode) ? channelCountMode : "max";
|
|
100650
100626
|
};
|
|
100651
100627
|
})(),
|
|
100652
100628
|
set_channelInterpretation__: (function ()
|
|
@@ -100657,13 +100633,13 @@ Object .assign (Object .setPrototypeOf (X3DSoundDestinationNode .prototype, Soun
|
|
|
100657
100633
|
{
|
|
100658
100634
|
const channelInterpretation = this ._channelInterpretation .getValue () .toLowerCase ();
|
|
100659
100635
|
|
|
100660
|
-
this .
|
|
100636
|
+
this .audioDestination .channelInterpretation = channelInterpretations .has (channelInterpretation) ? channelInterpretation : "speakers";
|
|
100661
100637
|
};
|
|
100662
100638
|
})(),
|
|
100663
100639
|
set_children__ ()
|
|
100664
100640
|
{
|
|
100665
100641
|
for (const childNode of this .childNodes)
|
|
100666
|
-
|
|
100642
|
+
childNode .getAudioSource () .disconnect (this .audioDestination);
|
|
100667
100643
|
|
|
100668
100644
|
this .childNodes .length = 0;
|
|
100669
100645
|
|
|
@@ -100694,7 +100670,7 @@ Object .assign (Object .setPrototypeOf (X3DSoundDestinationNode .prototype, Soun
|
|
|
100694
100670
|
}
|
|
100695
100671
|
|
|
100696
100672
|
for (const childNode of this .childNodes)
|
|
100697
|
-
|
|
100673
|
+
childNode .getAudioSource () .connect (this .audioDestination);
|
|
100698
100674
|
},
|
|
100699
100675
|
});
|
|
100700
100676
|
|
|
@@ -101211,14 +101187,162 @@ x_ite_Namespace .add ("BufferAudioSource", "x_ite/Components/Sound/BufferAudioSo
|
|
|
101211
101187
|
|
|
101212
101188
|
|
|
101213
101189
|
|
|
101190
|
+
|
|
101191
|
+
|
|
101214
101192
|
function X3DSoundChannelNode (executionContext)
|
|
101215
101193
|
{
|
|
101216
101194
|
Sound_X3DSoundNode .call (this, executionContext);
|
|
101217
101195
|
|
|
101218
101196
|
this .addType (Base_X3DConstants .X3DSoundChannelNode);
|
|
101197
|
+
|
|
101198
|
+
const audioContext = this .getBrowser () .getAudioContext ();
|
|
101199
|
+
|
|
101200
|
+
this .childNodes = [ ];
|
|
101201
|
+
this .audioDestination = new GainNode (audioContext, { gain: 0 });
|
|
101202
|
+
this .audioSource = new GainNode (audioContext, { gain: 1 });
|
|
101219
101203
|
}
|
|
101220
101204
|
|
|
101221
|
-
Object .setPrototypeOf (X3DSoundChannelNode .prototype, Sound_X3DSoundNode .prototype)
|
|
101205
|
+
Object .assign (Object .setPrototypeOf (X3DSoundChannelNode .prototype, Sound_X3DSoundNode .prototype),
|
|
101206
|
+
{
|
|
101207
|
+
initialize ()
|
|
101208
|
+
{
|
|
101209
|
+
Sound_X3DSoundNode .prototype .initialize .call (this);
|
|
101210
|
+
|
|
101211
|
+
this ._enabled .addInterest ("set_enabled__", this);
|
|
101212
|
+
this ._gain .addInterest ("set_gain__", this);
|
|
101213
|
+
this ._channelCount .addInterest ("set_channelCount__", this);
|
|
101214
|
+
this ._channelCountMode .addInterest ("set_channelCountMode__", this);
|
|
101215
|
+
this ._channelInterpretation .addInterest ("set_channelInterpretation__", this);
|
|
101216
|
+
this ._children .addInterest ("set_children__", this);
|
|
101217
|
+
|
|
101218
|
+
this .set_enabled__ ();
|
|
101219
|
+
this .set_gain__ ();
|
|
101220
|
+
this .set_channelCount__ ();
|
|
101221
|
+
this .set_channelCountMode__ ();
|
|
101222
|
+
this .set_channelInterpretation__ ();
|
|
101223
|
+
this .set_children__ ();
|
|
101224
|
+
},
|
|
101225
|
+
getAudioDestination ()
|
|
101226
|
+
{
|
|
101227
|
+
return this .audioDestination;
|
|
101228
|
+
},
|
|
101229
|
+
getAudioSource ()
|
|
101230
|
+
{
|
|
101231
|
+
return this .audioSource;
|
|
101232
|
+
},
|
|
101233
|
+
getSoundProcessor ()
|
|
101234
|
+
{
|
|
101235
|
+
return this .audioSource;
|
|
101236
|
+
},
|
|
101237
|
+
set_enabled__ ()
|
|
101238
|
+
{
|
|
101239
|
+
this .audioDestination .disconnect ();
|
|
101240
|
+
|
|
101241
|
+
if (this ._enabled .getValue ())
|
|
101242
|
+
{
|
|
101243
|
+
this .set_gain__ ();
|
|
101244
|
+
this .set_channelCountMode__ ();
|
|
101245
|
+
this .set_channelInterpretation__ ();
|
|
101246
|
+
|
|
101247
|
+
this .audioDestination .connect (this .getSoundProcessor ());
|
|
101248
|
+
}
|
|
101249
|
+
else
|
|
101250
|
+
{
|
|
101251
|
+
this .audioDestination .gain .value = 1;
|
|
101252
|
+
this .audioDestination .channelCountMode = "max";
|
|
101253
|
+
this .audioDestination .channelInterpretation = "speakers";
|
|
101254
|
+
|
|
101255
|
+
this .audioDestination .connect (this .audioSource);
|
|
101256
|
+
}
|
|
101257
|
+
},
|
|
101258
|
+
set_gain__ ()
|
|
101259
|
+
{
|
|
101260
|
+
if (!this ._enabled .getValue ())
|
|
101261
|
+
return;
|
|
101262
|
+
|
|
101263
|
+
this .audioDestination .gain .value = this ._gain .getValue ();
|
|
101264
|
+
},
|
|
101265
|
+
set_channelCount__ ()
|
|
101266
|
+
{
|
|
101267
|
+
this .audioDestination .channelCount = Math_Algorithm .clamp (this ._channelCount .getValue (), 1, 32);
|
|
101268
|
+
},
|
|
101269
|
+
set_channelCountMode__: (function ()
|
|
101270
|
+
{
|
|
101271
|
+
const channelCountModes = new Set (["max", "clamped-max", "explicit"]);
|
|
101272
|
+
|
|
101273
|
+
return function ()
|
|
101274
|
+
{
|
|
101275
|
+
if (!this ._enabled .getValue ())
|
|
101276
|
+
return;
|
|
101277
|
+
|
|
101278
|
+
const channelCountMode = this ._channelCountMode .getValue () .toLowerCase () .replaceAll ("_", "-");
|
|
101279
|
+
|
|
101280
|
+
this .audioDestination .channelCountMode = channelCountModes .has (channelCountMode) ? channelCountMode : "max";
|
|
101281
|
+
};
|
|
101282
|
+
})(),
|
|
101283
|
+
set_channelInterpretation__: (function ()
|
|
101284
|
+
{
|
|
101285
|
+
const channelInterpretations = new Set (["speakers", "discrete"]);
|
|
101286
|
+
|
|
101287
|
+
return function ()
|
|
101288
|
+
{
|
|
101289
|
+
if (!this ._enabled .getValue ())
|
|
101290
|
+
return;
|
|
101291
|
+
|
|
101292
|
+
const channelInterpretation = this ._channelInterpretation .getValue () .toLowerCase ();
|
|
101293
|
+
|
|
101294
|
+
this .audioDestination .channelInterpretation = channelInterpretations .has (channelInterpretation) ? channelInterpretation : "speakers";
|
|
101295
|
+
};
|
|
101296
|
+
})(),
|
|
101297
|
+
set_children__ ()
|
|
101298
|
+
{
|
|
101299
|
+
for (const [i, childNode] of this .childNodes .entries ())
|
|
101300
|
+
this .disconnectChildNode (i, childNode);
|
|
101301
|
+
|
|
101302
|
+
this .childNodes .length = 0;
|
|
101303
|
+
|
|
101304
|
+
for (const child of this ._children)
|
|
101305
|
+
{
|
|
101306
|
+
const childNode = Base_X3DCast (Base_X3DConstants .X3DChildNode, child);
|
|
101307
|
+
|
|
101308
|
+
if (!childNode)
|
|
101309
|
+
continue;
|
|
101310
|
+
|
|
101311
|
+
const type = childNode .getType ();
|
|
101312
|
+
|
|
101313
|
+
for (let t = type .length - 1; t >= 0; -- t)
|
|
101314
|
+
{
|
|
101315
|
+
switch (type [t])
|
|
101316
|
+
{
|
|
101317
|
+
case Base_X3DConstants .X3DSoundChannelNode:
|
|
101318
|
+
case Base_X3DConstants .X3DSoundProcessingNode:
|
|
101319
|
+
case Base_X3DConstants .X3DSoundSourceNode:
|
|
101320
|
+
this .childNodes .push (childNode);
|
|
101321
|
+
break;
|
|
101322
|
+
default:
|
|
101323
|
+
continue;
|
|
101324
|
+
}
|
|
101325
|
+
|
|
101326
|
+
break;
|
|
101327
|
+
}
|
|
101328
|
+
}
|
|
101329
|
+
|
|
101330
|
+
this .setChildNodes (this .childNodes);
|
|
101331
|
+
|
|
101332
|
+
for (const [i, childNode] of this .childNodes .entries ())
|
|
101333
|
+
this .connectChildNode (i, childNode);
|
|
101334
|
+
},
|
|
101335
|
+
setChildNodes (childNodes)
|
|
101336
|
+
{ },
|
|
101337
|
+
connectChildNode (i, childNode)
|
|
101338
|
+
{
|
|
101339
|
+
childNode .getAudioSource () .connect (this .audioDestination);
|
|
101340
|
+
},
|
|
101341
|
+
disconnectChildNode (i, childNode)
|
|
101342
|
+
{
|
|
101343
|
+
childNode .getAudioSource () .disconnect (this .audioDestination);
|
|
101344
|
+
},
|
|
101345
|
+
});
|
|
101222
101346
|
|
|
101223
101347
|
Object .defineProperties (X3DSoundChannelNode,
|
|
101224
101348
|
{
|
|
@@ -101293,6 +101417,7 @@ x_ite_Namespace .add ("X3DSoundChannelNode", "x_ite/Components/Sound/X3DSoundCha
|
|
|
101293
101417
|
|
|
101294
101418
|
|
|
101295
101419
|
|
|
101420
|
+
|
|
101296
101421
|
function ChannelMerger (executionContext)
|
|
101297
101422
|
{
|
|
101298
101423
|
Sound_X3DSoundChannelNode .call (this, executionContext);
|
|
@@ -101300,7 +101425,59 @@ function ChannelMerger (executionContext)
|
|
|
101300
101425
|
this .addType (Base_X3DConstants .ChannelMerger);
|
|
101301
101426
|
}
|
|
101302
101427
|
|
|
101303
|
-
Object .setPrototypeOf (ChannelMerger .prototype, Sound_X3DSoundChannelNode .prototype)
|
|
101428
|
+
Object .assign (Object .setPrototypeOf (ChannelMerger .prototype, Sound_X3DSoundChannelNode .prototype),
|
|
101429
|
+
{
|
|
101430
|
+
initialize ()
|
|
101431
|
+
{
|
|
101432
|
+
Sound_X3DSoundChannelNode .prototype .initialize .call (this);
|
|
101433
|
+
|
|
101434
|
+
this ._enabled .addInterest ("set_children__", this);
|
|
101435
|
+
},
|
|
101436
|
+
setChildNodes (childNodes)
|
|
101437
|
+
{
|
|
101438
|
+
this .channelMergerNode ?.disconnect ();
|
|
101439
|
+
|
|
101440
|
+
if (this ._enabled .getValue ())
|
|
101441
|
+
{
|
|
101442
|
+
const
|
|
101443
|
+
audioContext = this .getBrowser () .getAudioContext (),
|
|
101444
|
+
numberOfInputs = Math_Algorithm .clamp (childNodes .length, 1, 32);
|
|
101445
|
+
|
|
101446
|
+
if (this .channelMergerNode ?.numberOfInputs !== numberOfInputs)
|
|
101447
|
+
this .channelMergerNode = new ChannelMergerNode (audioContext, { numberOfInputs });
|
|
101448
|
+
|
|
101449
|
+
this .channelMergerNode .connect (this .getAudioDestination ());
|
|
101450
|
+
}
|
|
101451
|
+
else
|
|
101452
|
+
{
|
|
101453
|
+
this .channelMergerNode = null;
|
|
101454
|
+
}
|
|
101455
|
+
},
|
|
101456
|
+
connectChildNode (i, childNode)
|
|
101457
|
+
{
|
|
101458
|
+
if (this .channelMergerNode)
|
|
101459
|
+
{
|
|
101460
|
+
if (i < 32)
|
|
101461
|
+
childNode .getAudioSource () .connect (this .channelMergerNode, 0, i);
|
|
101462
|
+
}
|
|
101463
|
+
else
|
|
101464
|
+
{
|
|
101465
|
+
childNode .getAudioSource () .connect (this .getAudioDestination ());
|
|
101466
|
+
}
|
|
101467
|
+
},
|
|
101468
|
+
disconnectChildNode (i, childNode)
|
|
101469
|
+
{
|
|
101470
|
+
if (this .channelMergerNode)
|
|
101471
|
+
{
|
|
101472
|
+
if (i < 32)
|
|
101473
|
+
childNode .getAudioSource () .disconnect (this .channelMergerNode, 0, i);
|
|
101474
|
+
}
|
|
101475
|
+
else
|
|
101476
|
+
{
|
|
101477
|
+
childNode .getAudioSource () .disconnect (this .getAudioDestination ());
|
|
101478
|
+
}
|
|
101479
|
+
},
|
|
101480
|
+
});
|
|
101304
101481
|
|
|
101305
101482
|
Object .defineProperties (ChannelMerger,
|
|
101306
101483
|
{
|
|
@@ -101327,9 +101504,9 @@ Object .defineProperties (ChannelMerger,
|
|
|
101327
101504
|
fieldDefinitions:
|
|
101328
101505
|
{
|
|
101329
101506
|
value: new Base_FieldDefinitionArray ([
|
|
101330
|
-
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "metadata",
|
|
101331
|
-
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "description",
|
|
101332
|
-
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "enabled",
|
|
101507
|
+
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "metadata", new x_ite_Fields .SFNode ()),
|
|
101508
|
+
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "description", new x_ite_Fields .SFString ()),
|
|
101509
|
+
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "enabled", new x_ite_Fields .SFBool (true)),
|
|
101333
101510
|
|
|
101334
101511
|
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "gain", new x_ite_Fields .SFFloat (1)),
|
|
101335
101512
|
|
|
@@ -101402,14 +101579,49 @@ x_ite_Namespace .add ("ChannelMerger", "x_ite/Components/Sound/ChannelMerger", C
|
|
|
101402
101579
|
|
|
101403
101580
|
|
|
101404
101581
|
|
|
101582
|
+
|
|
101405
101583
|
function ChannelSelector (executionContext)
|
|
101406
101584
|
{
|
|
101407
101585
|
Sound_X3DSoundChannelNode .call (this, executionContext);
|
|
101408
101586
|
|
|
101409
101587
|
this .addType (Base_X3DConstants .ChannelSelector);
|
|
101588
|
+
|
|
101589
|
+
const audioContext = this .getBrowser () .getAudioContext ();
|
|
101590
|
+
|
|
101591
|
+
this .channelSplitterNode = new ChannelSplitterNode (audioContext);
|
|
101410
101592
|
}
|
|
101411
101593
|
|
|
101412
|
-
Object .setPrototypeOf (ChannelSelector .prototype, Sound_X3DSoundChannelNode .prototype)
|
|
101594
|
+
Object .assign (Object .setPrototypeOf (ChannelSelector .prototype, Sound_X3DSoundChannelNode .prototype),
|
|
101595
|
+
{
|
|
101596
|
+
initialize ()
|
|
101597
|
+
{
|
|
101598
|
+
Sound_X3DSoundChannelNode .prototype .initialize .call (this);
|
|
101599
|
+
|
|
101600
|
+
this ._channelSelection .addInterest ("set_channelSelection__", this);
|
|
101601
|
+
|
|
101602
|
+
this .set_channelSelection__ ();
|
|
101603
|
+
},
|
|
101604
|
+
getSoundProcessor ()
|
|
101605
|
+
{
|
|
101606
|
+
return this .channelSplitterNode;
|
|
101607
|
+
},
|
|
101608
|
+
set_channelSelection__ ()
|
|
101609
|
+
{
|
|
101610
|
+
const
|
|
101611
|
+
audioContext = this .getBrowser () .getAudioContext (),
|
|
101612
|
+
channelSelection = Math_Algorithm .clamp (this ._channelSelection .getValue (), 0, 31),
|
|
101613
|
+
numberOfOutputs = channelSelection + 1;
|
|
101614
|
+
|
|
101615
|
+
this .channelSplitterNode .disconnect ();
|
|
101616
|
+
|
|
101617
|
+
if (this .channelSplitterNode .numberOfOutputs !== numberOfOutputs)
|
|
101618
|
+
this .channelSplitterNode = new ChannelSplitterNode (audioContext, { numberOfOutputs });
|
|
101619
|
+
|
|
101620
|
+
this .channelSplitterNode .connect (this .getAudioSource (), channelSelection);
|
|
101621
|
+
|
|
101622
|
+
this .set_enabled__ ();
|
|
101623
|
+
},
|
|
101624
|
+
});
|
|
101413
101625
|
|
|
101414
101626
|
Object .defineProperties (ChannelSelector,
|
|
101415
101627
|
{
|
|
@@ -101436,9 +101648,9 @@ Object .defineProperties (ChannelSelector,
|
|
|
101436
101648
|
fieldDefinitions:
|
|
101437
101649
|
{
|
|
101438
101650
|
value: new Base_FieldDefinitionArray ([
|
|
101439
|
-
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "metadata",
|
|
101440
|
-
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "description",
|
|
101441
|
-
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "enabled",
|
|
101651
|
+
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "metadata", new x_ite_Fields .SFNode ()),
|
|
101652
|
+
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "description", new x_ite_Fields .SFString ()),
|
|
101653
|
+
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "enabled", new x_ite_Fields .SFBool (true)),
|
|
101442
101654
|
|
|
101443
101655
|
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "gain", new x_ite_Fields .SFFloat (1)),
|
|
101444
101656
|
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "channelSelection", new x_ite_Fields .SFInt32 (0)),
|
|
@@ -101512,14 +101724,101 @@ x_ite_Namespace .add ("ChannelSelector", "x_ite/Components/Sound/ChannelSelector
|
|
|
101512
101724
|
|
|
101513
101725
|
|
|
101514
101726
|
|
|
101727
|
+
|
|
101728
|
+
|
|
101515
101729
|
function ChannelSplitter (executionContext)
|
|
101516
101730
|
{
|
|
101517
101731
|
Sound_X3DSoundChannelNode .call (this, executionContext);
|
|
101518
101732
|
|
|
101519
101733
|
this .addType (Base_X3DConstants .ChannelSplitter);
|
|
101734
|
+
|
|
101735
|
+
this .outputNodes = [ ];
|
|
101520
101736
|
}
|
|
101521
101737
|
|
|
101522
|
-
Object .setPrototypeOf (ChannelSplitter .prototype, Sound_X3DSoundChannelNode .prototype)
|
|
101738
|
+
Object .assign (Object .setPrototypeOf (ChannelSplitter .prototype, Sound_X3DSoundChannelNode .prototype),
|
|
101739
|
+
{
|
|
101740
|
+
initialize ()
|
|
101741
|
+
{
|
|
101742
|
+
Sound_X3DSoundChannelNode .prototype .initialize .call (this);
|
|
101743
|
+
|
|
101744
|
+
this ._enabled .addInterest ("set_outputs__", this);
|
|
101745
|
+
this ._outputs .addInterest ("set_outputs__", this);
|
|
101746
|
+
|
|
101747
|
+
this .set_outputs__ ();
|
|
101748
|
+
},
|
|
101749
|
+
set_outputs__ ()
|
|
101750
|
+
{
|
|
101751
|
+
if (this .channelSplitterNode)
|
|
101752
|
+
{
|
|
101753
|
+
this .channelSplitterNode .disconnect ();
|
|
101754
|
+
}
|
|
101755
|
+
else
|
|
101756
|
+
{
|
|
101757
|
+
for (const outputNode of this .outputNodes)
|
|
101758
|
+
this .getAudioSource () .disconnect (outputNode .getAudioDestination ());
|
|
101759
|
+
}
|
|
101760
|
+
|
|
101761
|
+
this .outputNodes .length = 0;
|
|
101762
|
+
|
|
101763
|
+
for (const child of this ._outputs)
|
|
101764
|
+
{
|
|
101765
|
+
const outputNode = Base_X3DCast (Base_X3DConstants .X3DChildNode, child);
|
|
101766
|
+
|
|
101767
|
+
if (!outputNode)
|
|
101768
|
+
continue;
|
|
101769
|
+
|
|
101770
|
+
const type = outputNode .getType ();
|
|
101771
|
+
|
|
101772
|
+
for (let t = type .length - 1; t >= 0; -- t)
|
|
101773
|
+
{
|
|
101774
|
+
switch (type [t])
|
|
101775
|
+
{
|
|
101776
|
+
case Base_X3DConstants .X3DSoundChannelNode:
|
|
101777
|
+
case Base_X3DConstants .X3DSoundDestinationNode:
|
|
101778
|
+
case Base_X3DConstants .X3DSoundProcessingNode:
|
|
101779
|
+
this .outputNodes .push (outputNode);
|
|
101780
|
+
break;
|
|
101781
|
+
default:
|
|
101782
|
+
continue;
|
|
101783
|
+
}
|
|
101784
|
+
|
|
101785
|
+
break;
|
|
101786
|
+
}
|
|
101787
|
+
}
|
|
101788
|
+
|
|
101789
|
+
if (this .channelSplitterNode)
|
|
101790
|
+
this .getAudioSource () .disconnect (this .channelSplitterNode);
|
|
101791
|
+
|
|
101792
|
+
if (this ._enabled .getValue ())
|
|
101793
|
+
{
|
|
101794
|
+
const
|
|
101795
|
+
audioContext = this .getBrowser () .getAudioContext (),
|
|
101796
|
+
numberOfOutputs = Math_Algorithm .clamp (this .outputNodes .length, 1, 32);
|
|
101797
|
+
|
|
101798
|
+
if (this .channelSplitterNode ?.numberOfOutputs !== numberOfOutputs)
|
|
101799
|
+
this .channelSplitterNode = new ChannelSplitterNode (audioContext, { numberOfOutputs });
|
|
101800
|
+
|
|
101801
|
+
this .getAudioSource () .connect (this .channelSplitterNode);
|
|
101802
|
+
}
|
|
101803
|
+
else
|
|
101804
|
+
{
|
|
101805
|
+
this .channelSplitterNode = null;
|
|
101806
|
+
}
|
|
101807
|
+
|
|
101808
|
+
if (this .channelSplitterNode)
|
|
101809
|
+
{
|
|
101810
|
+
const length = Math .min (this .outputNodes .length, 32);
|
|
101811
|
+
|
|
101812
|
+
for (let i = 0; i < length; ++ i)
|
|
101813
|
+
this .channelSplitterNode .connect (this .outputNodes [i] .getAudioDestination (), i);
|
|
101814
|
+
}
|
|
101815
|
+
else
|
|
101816
|
+
{
|
|
101817
|
+
for (const outputNode of this .outputNodes)
|
|
101818
|
+
this .getAudioSource () .connect (outputNode .getAudioDestination ());
|
|
101819
|
+
}
|
|
101820
|
+
},
|
|
101821
|
+
});
|
|
101523
101822
|
|
|
101524
101823
|
Object .defineProperties (ChannelSplitter,
|
|
101525
101824
|
{
|
|
@@ -101546,9 +101845,9 @@ Object .defineProperties (ChannelSplitter,
|
|
|
101546
101845
|
fieldDefinitions:
|
|
101547
101846
|
{
|
|
101548
101847
|
value: new Base_FieldDefinitionArray ([
|
|
101549
|
-
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "metadata",
|
|
101550
|
-
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "description",
|
|
101551
|
-
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "enabled",
|
|
101848
|
+
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "metadata", new x_ite_Fields .SFNode ()),
|
|
101849
|
+
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "description", new x_ite_Fields .SFString ()),
|
|
101850
|
+
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "enabled", new x_ite_Fields .SFBool (true)),
|
|
101552
101851
|
|
|
101553
101852
|
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "gain", new x_ite_Fields .SFFloat (1)),
|
|
101554
101853
|
|
|
@@ -102171,7 +102470,7 @@ const ListenerPointSource_default_ = ListenerPointSource;
|
|
|
102171
102470
|
x_ite_Namespace .add ("ListenerPointSource", "x_ite/Components/Sound/ListenerPointSource", ListenerPointSource_default_);
|
|
102172
102471
|
/* harmony default export */ const Sound_ListenerPointSource = (ListenerPointSource_default_);
|
|
102173
102472
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/MicrophoneSource.js
|
|
102174
|
-
/* provided dependency */ var MicrophoneSource_$ = __webpack_require__(
|
|
102473
|
+
/* provided dependency */ var MicrophoneSource_$ = __webpack_require__(183);
|
|
102175
102474
|
/*******************************************************************************
|
|
102176
102475
|
*
|
|
102177
102476
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -102454,7 +102753,6 @@ function OscillatorSource (executionContext)
|
|
|
102454
102753
|
const audioContext = this .getBrowser () .getAudioContext ();
|
|
102455
102754
|
|
|
102456
102755
|
this .oscillatorNode = new OscillatorNode (audioContext);
|
|
102457
|
-
this .mergerNode = new ChannelMergerNode (audioContext, { numberOfInputs: 2 });
|
|
102458
102756
|
}
|
|
102459
102757
|
|
|
102460
102758
|
Object .assign (Object .setPrototypeOf (OscillatorSource .prototype, Sound_X3DSoundSourceNode .prototype),
|
|
@@ -102500,11 +102798,11 @@ Object .assign (Object .setPrototypeOf (OscillatorSource .prototype, Sound_X3DSo
|
|
|
102500
102798
|
})(),
|
|
102501
102799
|
set_frequency__ ()
|
|
102502
102800
|
{
|
|
102503
|
-
this .oscillatorNode .frequency .value = this ._frequency .getValue ();
|
|
102801
|
+
this .oscillatorNode .frequency .value = Math .max (this ._frequency .getValue (), 0);
|
|
102504
102802
|
},
|
|
102505
102803
|
set_detune__ ()
|
|
102506
102804
|
{
|
|
102507
|
-
this .oscillatorNode .detune .value = this ._detune .getValue ();
|
|
102805
|
+
this .oscillatorNode .detune .value = Math .max (this ._detune .getValue (), 0);
|
|
102508
102806
|
},
|
|
102509
102807
|
set_periodicWave__ ()
|
|
102510
102808
|
{
|
|
@@ -102531,19 +102829,16 @@ Object .assign (Object .setPrototypeOf (OscillatorSource .prototype, Sound_X3DSo
|
|
|
102531
102829
|
this .set_frequency__ ();
|
|
102532
102830
|
this .set_detune__ ();
|
|
102533
102831
|
|
|
102534
|
-
this .oscillatorNode .connect (this .
|
|
102535
|
-
this .oscillatorNode .connect (this .mergerNode, 0, 1);
|
|
102536
|
-
this .mergerNode .connect (this .getAudioSource ());
|
|
102537
|
-
|
|
102832
|
+
this .oscillatorNode .connect (this .getAudioSource ());
|
|
102538
102833
|
this .oscillatorNode .start ();
|
|
102539
102834
|
},
|
|
102540
102835
|
set_pause ()
|
|
102541
102836
|
{
|
|
102542
|
-
this .
|
|
102837
|
+
this .oscillatorNode .disconnect ();
|
|
102543
102838
|
},
|
|
102544
102839
|
set_resume ()
|
|
102545
102840
|
{
|
|
102546
|
-
this .
|
|
102841
|
+
this .oscillatorNode .connect (this .getAudioSource ());
|
|
102547
102842
|
},
|
|
102548
102843
|
set_stop ()
|
|
102549
102844
|
{
|
|
@@ -102819,28 +103114,37 @@ Object .assign (Object .setPrototypeOf (Sound .prototype, Sound_X3DSoundNode .pr
|
|
|
102819
103114
|
|
|
102820
103115
|
const
|
|
102821
103116
|
audioContext = this .getBrowser () .getAudioContext (),
|
|
103117
|
+
gainNode = new GainNode (audioContext, { gain: 0 }),
|
|
102822
103118
|
splitterNode = new ChannelSplitterNode (audioContext, { numberOfOutputs: 2 }),
|
|
102823
103119
|
mergerNode = new ChannelMergerNode (audioContext, { numberOfInputs: 2 }),
|
|
102824
103120
|
gainLeftNode = new GainNode (audioContext, { gain: 0 }),
|
|
102825
103121
|
gainRightNode = new GainNode (audioContext, { gain: 0 });
|
|
102826
103122
|
|
|
102827
|
-
|
|
103123
|
+
gainNode .channelCount = 2;
|
|
103124
|
+
gainNode .channelCountMode = "explicit";
|
|
103125
|
+
gainNode .channelInterpretation = "speakers";
|
|
103126
|
+
|
|
103127
|
+
gainNode .connect (splitterNode);
|
|
103128
|
+
splitterNode .connect (gainLeftNode, 0);
|
|
102828
103129
|
splitterNode .connect (gainRightNode, 1);
|
|
102829
103130
|
gainLeftNode .connect (mergerNode, 0, 0);
|
|
102830
103131
|
gainRightNode .connect (mergerNode, 0, 1);
|
|
102831
103132
|
mergerNode .connect (audioContext .destination);
|
|
102832
103133
|
|
|
103134
|
+
this .gainNode = gainNode;
|
|
102833
103135
|
this .splitterNode = splitterNode;
|
|
102834
103136
|
this .gainLeftNode = gainLeftNode;
|
|
102835
103137
|
this .gainRightNode = gainRightNode;
|
|
102836
103138
|
|
|
102837
|
-
this .getLive ()
|
|
103139
|
+
this .getLive () .addInterest ("set_live__", this);
|
|
102838
103140
|
this ._traversed .addInterest ("set_live__", this);
|
|
102839
103141
|
|
|
102840
|
-
this .
|
|
102841
|
-
this .
|
|
103142
|
+
this ._intensity .addInterest ("set_intensity__", this);
|
|
103143
|
+
this ._source .addInterest ("set_children__", this);
|
|
103144
|
+
this ._children .addInterest ("set_children__", this);
|
|
102842
103145
|
|
|
102843
103146
|
this .set_live__ ();
|
|
103147
|
+
this .set_intensity__ ();
|
|
102844
103148
|
this .set_children__ ();
|
|
102845
103149
|
},
|
|
102846
103150
|
setTraversed (value)
|
|
@@ -102862,10 +103166,10 @@ Object .assign (Object .setPrototypeOf (Sound .prototype, Sound_X3DSoundNode .pr
|
|
|
102862
103166
|
{
|
|
102863
103167
|
return this .currentTraversed;
|
|
102864
103168
|
},
|
|
102865
|
-
|
|
103169
|
+
setGain (gain, pan = 0.5)
|
|
102866
103170
|
{
|
|
102867
|
-
this .gainLeftNode .gain .value =
|
|
102868
|
-
this .gainRightNode .gain .value =
|
|
103171
|
+
this .gainLeftNode .gain .value = gain * (1 - pan ** 2);
|
|
103172
|
+
this .gainRightNode .gain .value = gain * (1 - (1 - pan) ** 2);
|
|
102869
103173
|
},
|
|
102870
103174
|
set_live__ ()
|
|
102871
103175
|
{
|
|
@@ -102876,13 +103180,17 @@ Object .assign (Object .setPrototypeOf (Sound .prototype, Sound_X3DSoundNode .pr
|
|
|
102876
103180
|
else
|
|
102877
103181
|
{
|
|
102878
103182
|
this .getBrowser () .sensorEvents () .removeInterest ("update", this);
|
|
102879
|
-
this .
|
|
103183
|
+
this .setGain (0);
|
|
102880
103184
|
}
|
|
102881
103185
|
},
|
|
103186
|
+
set_intensity__ ()
|
|
103187
|
+
{
|
|
103188
|
+
this .gainNode .gain .value = Math_Algorithm .clamp (this ._intensity .getValue (), 0, 1);
|
|
103189
|
+
},
|
|
102882
103190
|
set_children__ ()
|
|
102883
103191
|
{
|
|
102884
103192
|
for (const childNode of this .childNodes)
|
|
102885
|
-
childNode .getAudioSource () .disconnect (this .
|
|
103193
|
+
childNode .getAudioSource () .disconnect (this .gainNode);
|
|
102886
103194
|
|
|
102887
103195
|
this .childNodes .length = 0;
|
|
102888
103196
|
|
|
@@ -102918,12 +103226,12 @@ Object .assign (Object .setPrototypeOf (Sound .prototype, Sound_X3DSoundNode .pr
|
|
|
102918
103226
|
}
|
|
102919
103227
|
|
|
102920
103228
|
for (const childNode of this .childNodes)
|
|
102921
|
-
childNode .getAudioSource () .connect (this .
|
|
103229
|
+
childNode .getAudioSource () .connect (this .gainNode);
|
|
102922
103230
|
},
|
|
102923
103231
|
update ()
|
|
102924
103232
|
{
|
|
102925
103233
|
if (!this .getTraversed ())
|
|
102926
|
-
this .
|
|
103234
|
+
this .setGain (0);
|
|
102927
103235
|
|
|
102928
103236
|
this .setTraversed (false);
|
|
102929
103237
|
},
|
|
@@ -102964,23 +103272,21 @@ Object .assign (Object .setPrototypeOf (Sound .prototype, Sound_X3DSoundNode .pr
|
|
|
102964
103272
|
|
|
102965
103273
|
if (min .distance < 1) // Radius of normalized sphere is 1.
|
|
102966
103274
|
{
|
|
102967
|
-
this .
|
|
103275
|
+
this .setGain (1, pan);
|
|
102968
103276
|
}
|
|
102969
103277
|
else
|
|
102970
103278
|
{
|
|
102971
103279
|
const
|
|
102972
|
-
d1
|
|
102973
|
-
d2
|
|
102974
|
-
d
|
|
102975
|
-
intensity = Math_Algorithm .clamp (this ._intensity .getValue (), 0, 1),
|
|
102976
|
-
volume = intensity * d;
|
|
103280
|
+
d1 = max .intersection .magnitude (), // Viewer is here at (0, 0, 0)
|
|
103281
|
+
d2 = max .intersection .distance (min .intersection),
|
|
103282
|
+
d = Math .min (d1 / d2, 1);
|
|
102977
103283
|
|
|
102978
|
-
this .
|
|
103284
|
+
this .setGain (d, pan);
|
|
102979
103285
|
}
|
|
102980
103286
|
}
|
|
102981
103287
|
else
|
|
102982
103288
|
{
|
|
102983
|
-
this .
|
|
103289
|
+
this .setGain (0);
|
|
102984
103290
|
}
|
|
102985
103291
|
};
|
|
102986
103292
|
})(),
|
|
@@ -103840,8 +104146,8 @@ const GifMedia_default_ = GifMedia;
|
|
|
103840
104146
|
x_ite_Namespace .add ("GifMedia", "x_ite/Browser/Texturing/GifMedia", GifMedia_default_);
|
|
103841
104147
|
/* harmony default export */ const Texturing_GifMedia = (GifMedia_default_);
|
|
103842
104148
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/MovieTexture.js
|
|
103843
|
-
/* provided dependency */ var MovieTexture_$ = __webpack_require__(
|
|
103844
|
-
/* provided dependency */ var SuperGif = __webpack_require__(
|
|
104149
|
+
/* provided dependency */ var MovieTexture_$ = __webpack_require__(183);
|
|
104150
|
+
/* provided dependency */ var SuperGif = __webpack_require__(432);
|
|
103845
104151
|
/*******************************************************************************
|
|
103846
104152
|
*
|
|
103847
104153
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -107120,7 +107426,7 @@ const gettext_default_ = gettext;
|
|
|
107120
107426
|
x_ite_Namespace .add ("gettext", "locale/gettext", gettext_default_);
|
|
107121
107427
|
/* harmony default export */ const locale_gettext = (gettext_default_);
|
|
107122
107428
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserTimings.js
|
|
107123
|
-
/* provided dependency */ var BrowserTimings_$ = __webpack_require__(
|
|
107429
|
+
/* provided dependency */ var BrowserTimings_$ = __webpack_require__(183);
|
|
107124
107430
|
/*******************************************************************************
|
|
107125
107431
|
*
|
|
107126
107432
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -107550,7 +107856,7 @@ const TextureQuality_default_ = TextureQuality;
|
|
|
107550
107856
|
x_ite_Namespace .add ("TextureQuality", "x_ite/Browser/Core/TextureQuality", TextureQuality_default_);
|
|
107551
107857
|
/* harmony default export */ const Core_TextureQuality = (TextureQuality_default_);
|
|
107552
107858
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserOptions.js
|
|
107553
|
-
/* provided dependency */ var BrowserOptions_$ = __webpack_require__(
|
|
107859
|
+
/* provided dependency */ var BrowserOptions_$ = __webpack_require__(183);
|
|
107554
107860
|
/*******************************************************************************
|
|
107555
107861
|
*
|
|
107556
107862
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -107918,6 +108224,8 @@ Object .defineProperties (BrowserOptions,
|
|
|
107918
108224
|
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "QualityWhenMoving", new x_ite_Fields .SFString ("SAME")),
|
|
107919
108225
|
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "Shading", new x_ite_Fields .SFString ("GOURAUD")),
|
|
107920
108226
|
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "MotionBlur", new x_ite_Fields .SFBool ()),
|
|
108227
|
+
// Always update geometries, even if browser is not live.
|
|
108228
|
+
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "AlwaysUpdateGeometries", new x_ite_Fields .SFBool ()),
|
|
107921
108229
|
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "AutoUpdate", new x_ite_Fields .SFBool ()),
|
|
107922
108230
|
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "Cache", new x_ite_Fields .SFBool (true)),
|
|
107923
108231
|
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "ContentScale", new x_ite_Fields .SFDouble (1)),
|
|
@@ -107926,6 +108234,7 @@ Object .defineProperties (BrowserOptions,
|
|
|
107926
108234
|
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "Gravity", new x_ite_Fields .SFDouble (9.80665)),
|
|
107927
108235
|
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "LoadUrlObjects", new x_ite_Fields .SFBool (true)),
|
|
107928
108236
|
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "LogarithmicDepthBuffer", new x_ite_Fields .SFBool ()),
|
|
108237
|
+
// A string, which is set to the *reference* field of metadata nodes, when they are created.
|
|
107929
108238
|
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "MetadataReference", new x_ite_Fields .SFString ()),
|
|
107930
108239
|
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "Multisampling", new x_ite_Fields .SFInt32 (4)),
|
|
107931
108240
|
new Base_X3DFieldDefinition (Base_X3DConstants .inputOutput, "Notifications", new x_ite_Fields .SFBool (true)),
|
|
@@ -108141,7 +108450,7 @@ const RenderingProperties_default_ = RenderingProperties;
|
|
|
108141
108450
|
x_ite_Namespace .add ("RenderingProperties", "x_ite/Browser/Core/RenderingProperties", RenderingProperties_default_);
|
|
108142
108451
|
/* harmony default export */ const Core_RenderingProperties = (RenderingProperties_default_);
|
|
108143
108452
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/Notification.js
|
|
108144
|
-
/* provided dependency */ var Notification_$ = __webpack_require__(
|
|
108453
|
+
/* provided dependency */ var Notification_$ = __webpack_require__(183);
|
|
108145
108454
|
/*******************************************************************************
|
|
108146
108455
|
*
|
|
108147
108456
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -108264,8 +108573,8 @@ const Notification_default_ = Notification;
|
|
|
108264
108573
|
x_ite_Namespace .add ("Notification", "x_ite/Browser/Core/Notification", Notification_default_);
|
|
108265
108574
|
/* harmony default export */ const Core_Notification = (Notification_default_);
|
|
108266
108575
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/ContextMenu.js
|
|
108267
|
-
/* provided dependency */ var jquery_fullscreen = __webpack_require__(
|
|
108268
|
-
/* provided dependency */ var ContextMenu_$ = __webpack_require__(
|
|
108576
|
+
/* provided dependency */ var jquery_fullscreen = __webpack_require__(403);
|
|
108577
|
+
/* provided dependency */ var ContextMenu_$ = __webpack_require__(183);
|
|
108269
108578
|
/*******************************************************************************
|
|
108270
108579
|
*
|
|
108271
108580
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -110946,14 +111255,12 @@ const DataStorage_handler =
|
|
|
110946
111255
|
if (property !== undefined)
|
|
110947
111256
|
return property;
|
|
110948
111257
|
|
|
110949
|
-
const
|
|
111258
|
+
const value = target .getStorage () [target .getNameSpace () + key];
|
|
110950
111259
|
|
|
110951
|
-
if (
|
|
111260
|
+
if (String (value) .match (/^(?:undefined|null)$/))
|
|
110952
111261
|
return target .getDefaultValue (key);
|
|
110953
111262
|
|
|
110954
|
-
|
|
110955
|
-
|
|
110956
|
-
return value;
|
|
111263
|
+
return JSON .parse (value);
|
|
110957
111264
|
},
|
|
110958
111265
|
set (target, key, value)
|
|
110959
111266
|
{
|
|
@@ -111022,7 +111329,7 @@ const DataStorage_default_ = DataStorage;
|
|
|
111022
111329
|
x_ite_Namespace .add ("DataStorage", "standard/Utility/DataStorage", DataStorage_default_);
|
|
111023
111330
|
/* harmony default export */ const Utility_DataStorage = (DataStorage_default_);
|
|
111024
111331
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/X3DCoreContext.js
|
|
111025
|
-
/* provided dependency */ var X3DCoreContext_$ = __webpack_require__(
|
|
111332
|
+
/* provided dependency */ var X3DCoreContext_$ = __webpack_require__(183);
|
|
111026
111333
|
/*******************************************************************************
|
|
111027
111334
|
*
|
|
111028
111335
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -113545,8 +113852,8 @@ const X3DViewer_default_ = X3DViewer;
|
|
|
113545
113852
|
x_ite_Namespace .add ("X3DViewer", "x_ite/Browser/Navigation/X3DViewer", X3DViewer_default_);
|
|
113546
113853
|
/* harmony default export */ const Navigation_X3DViewer = (X3DViewer_default_);
|
|
113547
113854
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/ExamineViewer.js
|
|
113548
|
-
/* provided dependency */ var jquery_mousewheel = __webpack_require__(
|
|
113549
|
-
/* provided dependency */ var ExamineViewer_$ = __webpack_require__(
|
|
113855
|
+
/* provided dependency */ var jquery_mousewheel = __webpack_require__(287);
|
|
113856
|
+
/* provided dependency */ var ExamineViewer_$ = __webpack_require__(183);
|
|
113550
113857
|
/*******************************************************************************
|
|
113551
113858
|
*
|
|
113552
113859
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -114418,8 +114725,8 @@ const ExamineViewer_default_ = ExamineViewer;
|
|
|
114418
114725
|
x_ite_Namespace .add ("ExamineViewer", "x_ite/Browser/Navigation/ExamineViewer", ExamineViewer_default_);
|
|
114419
114726
|
/* harmony default export */ const Navigation_ExamineViewer = (ExamineViewer_default_);
|
|
114420
114727
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/X3DFlyViewer.js
|
|
114421
|
-
/* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(
|
|
114422
|
-
/* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(
|
|
114728
|
+
/* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(287);
|
|
114729
|
+
/* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(183);
|
|
114423
114730
|
/*******************************************************************************
|
|
114424
114731
|
*
|
|
114425
114732
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -115428,8 +115735,8 @@ const FlyViewer_default_ = FlyViewer;
|
|
|
115428
115735
|
x_ite_Namespace .add ("FlyViewer", "x_ite/Browser/Navigation/FlyViewer", FlyViewer_default_);
|
|
115429
115736
|
/* harmony default export */ const Navigation_FlyViewer = (FlyViewer_default_);
|
|
115430
115737
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/PlaneViewer.js
|
|
115431
|
-
/* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(
|
|
115432
|
-
/* provided dependency */ var PlaneViewer_$ = __webpack_require__(
|
|
115738
|
+
/* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(287);
|
|
115739
|
+
/* provided dependency */ var PlaneViewer_$ = __webpack_require__(183);
|
|
115433
115740
|
/*******************************************************************************
|
|
115434
115741
|
*
|
|
115435
115742
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -115760,8 +116067,8 @@ const NoneViewer_default_ = NoneViewer;
|
|
|
115760
116067
|
x_ite_Namespace .add ("NoneViewer", "x_ite/Browser/Navigation/NoneViewer", NoneViewer_default_);
|
|
115761
116068
|
/* harmony default export */ const Navigation_NoneViewer = (NoneViewer_default_);
|
|
115762
116069
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/LookAtViewer.js
|
|
115763
|
-
/* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(
|
|
115764
|
-
/* provided dependency */ var LookAtViewer_$ = __webpack_require__(
|
|
116070
|
+
/* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(287);
|
|
116071
|
+
/* provided dependency */ var LookAtViewer_$ = __webpack_require__(183);
|
|
115765
116072
|
/*******************************************************************************
|
|
115766
116073
|
*
|
|
115767
116074
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -116900,8 +117207,8 @@ const X3DPickingContext_default_ = X3DPickingContext;
|
|
|
116900
117207
|
x_ite_Namespace .add ("X3DPickingContext", "x_ite/Browser/Picking/X3DPickingContext", X3DPickingContext_default_);
|
|
116901
117208
|
/* harmony default export */ const Picking_X3DPickingContext = (X3DPickingContext_default_);
|
|
116902
117209
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js
|
|
116903
|
-
/* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(
|
|
116904
|
-
/* provided dependency */ var PointingDevice_$ = __webpack_require__(
|
|
117210
|
+
/* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(287);
|
|
117211
|
+
/* provided dependency */ var PointingDevice_$ = __webpack_require__(183);
|
|
116905
117212
|
/*******************************************************************************
|
|
116906
117213
|
*
|
|
116907
117214
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -117560,11 +117867,11 @@ Object .assign (X3DPointingDeviceSensorContext .prototype,
|
|
|
117560
117867
|
{
|
|
117561
117868
|
return this [_hit];
|
|
117562
117869
|
},
|
|
117563
|
-
addPointingShape (
|
|
117870
|
+
addPointingShape (pointingContext)
|
|
117564
117871
|
{
|
|
117565
117872
|
const id = ++ this [_id];
|
|
117566
117873
|
|
|
117567
|
-
this [_pointingContexts] [id] =
|
|
117874
|
+
this [_pointingContexts] [id] = pointingContext;
|
|
117568
117875
|
|
|
117569
117876
|
return id;
|
|
117570
117877
|
},
|
|
@@ -117641,18 +117948,18 @@ Object .assign (X3DPointingDeviceSensorContext .prototype,
|
|
|
117641
117948
|
if (Number .isInteger (hit .id) && hit .id > 0 && hit .id <= this [_id])
|
|
117642
117949
|
{
|
|
117643
117950
|
const
|
|
117644
|
-
|
|
117645
|
-
shapeNode =
|
|
117951
|
+
pointingContext = this [_pointingContexts] [hit .id],
|
|
117952
|
+
shapeNode = pointingContext .shapeNode,
|
|
117646
117953
|
appearanceNode = shapeNode .getAppearance (),
|
|
117647
117954
|
geometryContext = shapeNode .getGeometryContext ();
|
|
117648
117955
|
|
|
117649
|
-
hit .hitRay =
|
|
117650
|
-
hit .sensors =
|
|
117651
|
-
hit .layerNode =
|
|
117956
|
+
hit .hitRay = pointingContext .renderObject .getHitRay ();
|
|
117957
|
+
hit .sensors = pointingContext .sensors .slice ();
|
|
117958
|
+
hit .layerNode = pointingContext .renderObject;
|
|
117652
117959
|
hit .shapeNode = shapeNode;
|
|
117653
117960
|
|
|
117654
|
-
hit .viewMatrix .assign (
|
|
117655
|
-
hit .modelViewMatrix .assign (
|
|
117961
|
+
hit .viewMatrix .assign (pointingContext .renderObject .getViewpoint () .getViewMatrix ());
|
|
117962
|
+
hit .modelViewMatrix .assign (pointingContext .modelViewMatrix);
|
|
117656
117963
|
|
|
117657
117964
|
// A ParticleSystem has only a geometry context.
|
|
117658
117965
|
|
|
@@ -118192,7 +118499,7 @@ const MultiSampleFrameBuffer_default_ = MultiSampleFrameBuffer;
|
|
|
118192
118499
|
x_ite_Namespace .add ("MultiSampleFrameBuffer", "x_ite/Rendering/MultiSampleFrameBuffer", MultiSampleFrameBuffer_default_);
|
|
118193
118500
|
/* harmony default export */ const Rendering_MultiSampleFrameBuffer = (MultiSampleFrameBuffer_default_);
|
|
118194
118501
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Rendering/X3DRenderingContext.js
|
|
118195
|
-
/* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(
|
|
118502
|
+
/* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(183);
|
|
118196
118503
|
/*******************************************************************************
|
|
118197
118504
|
*
|
|
118198
118505
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -119094,7 +119401,7 @@ const X3DSoundContext_default_ = X3DSoundContext;
|
|
|
119094
119401
|
x_ite_Namespace .add ("X3DSoundContext", "x_ite/Browser/Sound/X3DSoundContext", X3DSoundContext_default_);
|
|
119095
119402
|
/* harmony default export */ const Sound_X3DSoundContext = (X3DSoundContext_default_);
|
|
119096
119403
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Texturing/KTXDecoder.js
|
|
119097
|
-
/* provided dependency */ var KTXDecoder_$ = __webpack_require__(
|
|
119404
|
+
/* provided dependency */ var KTXDecoder_$ = __webpack_require__(183);
|
|
119098
119405
|
const KTXDecoder_default_ = class KTXDecoder
|
|
119099
119406
|
{
|
|
119100
119407
|
constructor (gl, externalKtxlib, scriptDir)
|
|
@@ -120647,7 +120954,7 @@ const Components_default_ = Components;
|
|
|
120647
120954
|
x_ite_Namespace .add ("Components", "x_ite/Components", Components_default_);
|
|
120648
120955
|
/* harmony default export */ const x_ite_Components = ((/* unused pure expression or super */ null && (Components_default_)));
|
|
120649
120956
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/DOMIntegration.js
|
|
120650
|
-
/* provided dependency */ var DOMIntegration_$ = __webpack_require__(
|
|
120957
|
+
/* provided dependency */ var DOMIntegration_$ = __webpack_require__(183);
|
|
120651
120958
|
/*******************************************************************************
|
|
120652
120959
|
* MIT License
|
|
120653
120960
|
*
|
|
@@ -121778,7 +122085,7 @@ const SupportedProfiles_default_ = SupportedProfiles;
|
|
|
121778
122085
|
x_ite_Namespace .add ("SupportedProfiles", "x_ite/Configuration/SupportedProfiles", SupportedProfiles_default_);
|
|
121779
122086
|
/* harmony default export */ const Configuration_SupportedProfiles = (SupportedProfiles_default_);
|
|
121780
122087
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/X3DBrowser.js
|
|
121781
|
-
/* provided dependency */ var X3DBrowser_$ = __webpack_require__(
|
|
122088
|
+
/* provided dependency */ var X3DBrowser_$ = __webpack_require__(183);
|
|
121782
122089
|
/*******************************************************************************
|
|
121783
122090
|
*
|
|
121784
122091
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -122231,6 +122538,7 @@ Object .assign (Object .setPrototypeOf (X3DBrowser .prototype, Browser_X3DBrowse
|
|
|
122231
122538
|
return;
|
|
122232
122539
|
|
|
122233
122540
|
loadCount .removeInterest ("checkLoadCount", this);
|
|
122541
|
+
this .touch (0, 0);
|
|
122234
122542
|
this .setBrowserLoading (false);
|
|
122235
122543
|
this .initialized () .set (this .getCurrentTime ());
|
|
122236
122544
|
this .initialized () .processInterests ();
|
|
@@ -122869,7 +123177,7 @@ const X3DBrowser_default_ = X3DBrowser;
|
|
|
122869
123177
|
x_ite_Namespace .add ("X3DBrowser", "x_ite/Browser/X3DBrowser", X3DBrowser_default_);
|
|
122870
123178
|
/* harmony default export */ const Browser_X3DBrowser = (X3DBrowser_default_);
|
|
122871
123179
|
;// CONCATENATED MODULE: ./src/x_ite/X3DCanvasElement.js
|
|
122872
|
-
/* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(
|
|
123180
|
+
/* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(183);
|
|
122873
123181
|
/*******************************************************************************
|
|
122874
123182
|
*
|
|
122875
123183
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -123006,8 +123314,8 @@ const X3DCanvasElement_default_ = X3DCanvasElement;
|
|
|
123006
123314
|
x_ite_Namespace .add ("X3DCanvasElement", "x_ite/X3DCanvasElement", X3DCanvasElement_default_);
|
|
123007
123315
|
/* harmony default export */ const x_ite_X3DCanvasElement = (X3DCanvasElement_default_);
|
|
123008
123316
|
;// CONCATENATED MODULE: ./src/lib/jquery.js
|
|
123009
|
-
/* provided dependency */ var jquery_$ = __webpack_require__(
|
|
123010
|
-
/* provided dependency */ var pako = __webpack_require__(
|
|
123317
|
+
/* provided dependency */ var jquery_$ = __webpack_require__(183);
|
|
123318
|
+
/* provided dependency */ var pako = __webpack_require__(935);
|
|
123011
123319
|
Object .assign (jquery_$,
|
|
123012
123320
|
{
|
|
123013
123321
|
decodeText (input)
|
|
@@ -123084,14 +123392,14 @@ const jquery_default_ = jquery_$;
|
|
|
123084
123392
|
x_ite_Namespace .add ("jquery", "lib/jquery", jquery_default_);
|
|
123085
123393
|
/* harmony default export */ const jquery = ((/* unused pure expression or super */ null && (jquery_default_)));
|
|
123086
123394
|
;// CONCATENATED MODULE: ./src/lib/libtess.js
|
|
123087
|
-
/* provided dependency */ var libtess_libtess = __webpack_require__(
|
|
123395
|
+
/* provided dependency */ var libtess_libtess = __webpack_require__(972);
|
|
123088
123396
|
const libtess_default_ = libtess_libtess;
|
|
123089
123397
|
;
|
|
123090
123398
|
|
|
123091
123399
|
x_ite_Namespace .add ("libtess", "lib/libtess", libtess_default_);
|
|
123092
123400
|
/* harmony default export */ const lib_libtess = ((/* unused pure expression or super */ null && (libtess_default_)));
|
|
123093
123401
|
;// CONCATENATED MODULE: ./src/x_ite/X3D.js
|
|
123094
|
-
/* provided dependency */ var X3D_$ = __webpack_require__(
|
|
123402
|
+
/* provided dependency */ var X3D_$ = __webpack_require__(183);
|
|
123095
123403
|
/*******************************************************************************
|
|
123096
123404
|
*
|
|
123097
123405
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -123399,7 +123707,7 @@ Object .assign (X3D,
|
|
|
123399
123707
|
|
|
123400
123708
|
// Assign X3D to global namespace.
|
|
123401
123709
|
|
|
123402
|
-
window [Symbol .for ("X_ITE.X3D-9.3.
|
|
123710
|
+
window [Symbol .for ("X_ITE.X3D-9.3.2")] = x_ite_X3D;
|
|
123403
123711
|
|
|
123404
123712
|
customElements .define ("x3d-canvas", x_ite_X3DCanvasElement);
|
|
123405
123713
|
|