x_ite 9.1.9 → 9.1.11
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 +19 -19
- 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 +23 -23
- 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 +24 -24
- 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 +19 -19
- 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 +797 -691
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.min.mjs +1 -1
- package/dist/x_ite.mjs +797 -691
- package/dist/x_ite.zip +0 -0
- package/package.json +2 -2
package/dist/x_ite.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* X_ITE v9.1.
|
|
1
|
+
/* X_ITE v9.1.11 */(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
|
+
/***/ 561:
|
|
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__(831);
|
|
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
|
+
/***/ 471:
|
|
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__(831)], __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
|
+
/***/ 831:
|
|
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
|
+
/***/ 864:
|
|
11163
11163
|
/***/ ((module) => {
|
|
11164
11164
|
|
|
11165
11165
|
/**
|
|
@@ -15938,7 +15938,7 @@ if (true) {
|
|
|
15938
15938
|
|
|
15939
15939
|
/***/ }),
|
|
15940
15940
|
|
|
15941
|
-
/***/
|
|
15941
|
+
/***/ 295:
|
|
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
|
+
/***/ 698:
|
|
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.1.
|
|
20314
|
+
const X3D = window [Symbol .for ("X_ITE.X3D-9.1.11")];
|
|
20315
20315
|
|
|
20316
20316
|
if (X3D)
|
|
20317
20317
|
X3D [name] = module;
|
|
@@ -21223,27 +21223,27 @@ Object .assign (Generator .prototype,
|
|
|
21223
21223
|
if (baseNode .hasRoutes ())
|
|
21224
21224
|
return true;
|
|
21225
21225
|
|
|
21226
|
+
const executionContext = baseNode .getExecutionContext ();
|
|
21227
|
+
|
|
21228
|
+
if (this .importedNodesIndex .get (executionContext) ?.has (baseNode))
|
|
21229
|
+
return true;
|
|
21230
|
+
|
|
21231
|
+
if (this .exportedNodesIndex .get (executionContext) ?.has (baseNode))
|
|
21232
|
+
return true;
|
|
21233
|
+
|
|
21234
|
+
return false;
|
|
21235
|
+
},
|
|
21236
|
+
ImportedName (name)
|
|
21237
|
+
{
|
|
21226
21238
|
const
|
|
21227
|
-
|
|
21228
|
-
|
|
21239
|
+
names = this .names .get (this .ExecutionContext ()),
|
|
21240
|
+
newName = getUniqueName (names, name);
|
|
21229
21241
|
|
|
21230
|
-
|
|
21231
|
-
{
|
|
21232
|
-
if (index .has (baseNode))
|
|
21233
|
-
return true;
|
|
21234
|
-
}
|
|
21235
|
-
else
|
|
21236
|
-
{
|
|
21237
|
-
const index = this .exportedNodesIndex .get (executionContext);
|
|
21242
|
+
// Add to indices.
|
|
21238
21243
|
|
|
21239
|
-
|
|
21240
|
-
{
|
|
21241
|
-
if (index .has (baseNode))
|
|
21242
|
-
return true;
|
|
21243
|
-
}
|
|
21244
|
+
names .add (newName);
|
|
21244
21245
|
|
|
21245
|
-
|
|
21246
|
-
}
|
|
21246
|
+
return newName;
|
|
21247
21247
|
},
|
|
21248
21248
|
LocalName (baseNode)
|
|
21249
21249
|
{
|
|
@@ -30830,6 +30830,92 @@ const SFVec4_default_ = SFVec4;
|
|
|
30830
30830
|
|
|
30831
30831
|
x_ite_Namespace .add ("SFVec4", "x_ite/Fields/SFVec4", SFVec4_default_);
|
|
30832
30832
|
/* harmony default export */ const Fields_SFVec4 = (SFVec4_default_);
|
|
30833
|
+
;// CONCATENATED MODULE: ./src/shim.js
|
|
30834
|
+
/*******************************************************************************
|
|
30835
|
+
*
|
|
30836
|
+
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
30837
|
+
*
|
|
30838
|
+
* Copyright create3000, Scheffelstraße 31a, Leipzig, Germany 2011 - 2022.
|
|
30839
|
+
*
|
|
30840
|
+
* All rights reserved. Holger Seelig <holger.seelig@yahoo.de>.
|
|
30841
|
+
*
|
|
30842
|
+
* The copyright notice above does not evidence any actual of intended
|
|
30843
|
+
* publication of such source code, and is an unpublished work by create3000.
|
|
30844
|
+
* This material contains CONFIDENTIAL INFORMATION that is the property of
|
|
30845
|
+
* create3000.
|
|
30846
|
+
*
|
|
30847
|
+
* No permission is granted to copy, distribute, or create derivative works from
|
|
30848
|
+
* the contents of this software, in whole or in part, without the prior written
|
|
30849
|
+
* permission of create3000.
|
|
30850
|
+
*
|
|
30851
|
+
* NON-MILITARY USE ONLY
|
|
30852
|
+
*
|
|
30853
|
+
* All create3000 software are effectively free software with a non-military use
|
|
30854
|
+
* restriction. It is free. Well commented source is provided. You may reuse the
|
|
30855
|
+
* source in any way you please with the exception anything that uses it must be
|
|
30856
|
+
* marked to indicate is contains 'non-military use only' components.
|
|
30857
|
+
*
|
|
30858
|
+
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
30859
|
+
*
|
|
30860
|
+
* Copyright 2011 - 2022, Holger Seelig <holger.seelig@yahoo.de>.
|
|
30861
|
+
*
|
|
30862
|
+
* This file is part of the X_ITE Project.
|
|
30863
|
+
*
|
|
30864
|
+
* X_ITE is free software: you can redistribute it and/or modify it under the
|
|
30865
|
+
* terms of the GNU General Public License version 3 only, as published by the
|
|
30866
|
+
* Free Software Foundation.
|
|
30867
|
+
*
|
|
30868
|
+
* X_ITE is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
30869
|
+
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
30870
|
+
* A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
|
|
30871
|
+
* details (a copy is included in the LICENSE file that accompanied this code).
|
|
30872
|
+
*
|
|
30873
|
+
* You should have received a copy of the GNU General Public License version 3
|
|
30874
|
+
* along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
|
|
30875
|
+
* copy of the GPLv3 License.
|
|
30876
|
+
*
|
|
30877
|
+
* For Silvio, Joy and Adi.
|
|
30878
|
+
*
|
|
30879
|
+
******************************************************************************/
|
|
30880
|
+
|
|
30881
|
+
(() =>
|
|
30882
|
+
{
|
|
30883
|
+
// Added at February 2022
|
|
30884
|
+
// https://github.com/tc39/proposal-relative-indexing-method#polyfill
|
|
30885
|
+
|
|
30886
|
+
function at (n)
|
|
30887
|
+
{
|
|
30888
|
+
// ToInteger() abstract op
|
|
30889
|
+
n = Math.trunc(n) || 0;
|
|
30890
|
+
// Allow negative indexing from the end
|
|
30891
|
+
if (n < 0) n += this.length;
|
|
30892
|
+
// OOB access is guaranteed to return undefined
|
|
30893
|
+
if (n < 0 || n >= this.length) return undefined;
|
|
30894
|
+
// Otherwise, this is just normal property access
|
|
30895
|
+
return this[n];
|
|
30896
|
+
}
|
|
30897
|
+
|
|
30898
|
+
const TypedArray = Reflect .getPrototypeOf (Int8Array);
|
|
30899
|
+
for (const C of [Array, String, TypedArray])
|
|
30900
|
+
{
|
|
30901
|
+
if (C .prototype .at === undefined)
|
|
30902
|
+
{
|
|
30903
|
+
Object .defineProperty (C .prototype, "at",
|
|
30904
|
+
{
|
|
30905
|
+
value: at,
|
|
30906
|
+
writable: true,
|
|
30907
|
+
enumerable: false,
|
|
30908
|
+
configurable: true,
|
|
30909
|
+
});
|
|
30910
|
+
}
|
|
30911
|
+
}
|
|
30912
|
+
})();
|
|
30913
|
+
|
|
30914
|
+
const shim_default_ = undefined;
|
|
30915
|
+
;
|
|
30916
|
+
|
|
30917
|
+
x_ite_Namespace .add ("shim", "shim", shim_default_);
|
|
30918
|
+
/* harmony default export */ const shim = ((/* unused pure expression or super */ null && (shim_default_)));
|
|
30833
30919
|
;// CONCATENATED MODULE: ./src/x_ite/Base/X3DArrayField.js
|
|
30834
30920
|
/*******************************************************************************
|
|
30835
30921
|
*
|
|
@@ -30880,6 +30966,7 @@ x_ite_Namespace .add ("SFVec4", "x_ite/Fields/SFVec4", SFVec4_default_);
|
|
|
30880
30966
|
|
|
30881
30967
|
|
|
30882
30968
|
|
|
30969
|
+
|
|
30883
30970
|
function X3DArrayField (value)
|
|
30884
30971
|
{
|
|
30885
30972
|
Base_X3DField .call (this, value);
|
|
@@ -34256,7 +34343,7 @@ const X3DBaseNode_default_ = X3DBaseNode;
|
|
|
34256
34343
|
x_ite_Namespace .add ("X3DBaseNode", "x_ite/Base/X3DBaseNode", X3DBaseNode_default_);
|
|
34257
34344
|
/* harmony default export */ const Base_X3DBaseNode = (X3DBaseNode_default_);
|
|
34258
34345
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Legacy.js
|
|
34259
|
-
/* provided dependency */ var $ = __webpack_require__(
|
|
34346
|
+
/* provided dependency */ var $ = __webpack_require__(831);
|
|
34260
34347
|
/*******************************************************************************
|
|
34261
34348
|
*
|
|
34262
34349
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -34393,7 +34480,7 @@ x_ite_Namespace .add ("Legacy", "x_ite/Browser/Legacy", Legacy_default_);
|
|
|
34393
34480
|
*
|
|
34394
34481
|
******************************************************************************/
|
|
34395
34482
|
|
|
34396
|
-
const BROWSER_VERSION_default_ = "9.1.
|
|
34483
|
+
const BROWSER_VERSION_default_ = "9.1.11";
|
|
34397
34484
|
;
|
|
34398
34485
|
|
|
34399
34486
|
x_ite_Namespace .add ("BROWSER_VERSION", "x_ite/BROWSER_VERSION", BROWSER_VERSION_default_);
|
|
@@ -37213,31 +37300,36 @@ x_ite_Namespace .add ("NamedNodesArray", "x_ite/Execution/NamedNodesArray", Name
|
|
|
37213
37300
|
|
|
37214
37301
|
|
|
37215
37302
|
|
|
37216
|
-
|
|
37217
37303
|
const
|
|
37218
|
-
|
|
37219
|
-
|
|
37220
|
-
|
|
37221
|
-
|
|
37304
|
+
X3DImportedNode_executionContext = Symbol (),
|
|
37305
|
+
_inlineNode = Symbol (),
|
|
37306
|
+
_exportedName = Symbol (),
|
|
37307
|
+
_importedName = Symbol (),
|
|
37308
|
+
_routes = Symbol (),
|
|
37309
|
+
_real = Symbol ();
|
|
37222
37310
|
|
|
37223
37311
|
function X3DImportedNode (executionContext, inlineNode, exportedName, importedName)
|
|
37224
37312
|
{
|
|
37225
|
-
|
|
37313
|
+
Base_X3DObject .call (this);
|
|
37226
37314
|
|
|
37227
|
-
this [
|
|
37228
|
-
this [
|
|
37229
|
-
this [
|
|
37230
|
-
this [
|
|
37315
|
+
this [X3DImportedNode_executionContext] = executionContext;
|
|
37316
|
+
this [_inlineNode] = inlineNode;
|
|
37317
|
+
this [_exportedName] = exportedName;
|
|
37318
|
+
this [_importedName] = importedName;
|
|
37319
|
+
this [_routes] = [ ];
|
|
37231
37320
|
|
|
37232
37321
|
this .getInlineNode () ._loadState .addInterest ("set_loadState__", this);
|
|
37233
37322
|
}
|
|
37234
37323
|
|
|
37235
|
-
|
|
37236
|
-
Object .assign (Object .setPrototypeOf (X3DImportedNode .prototype, Core_X3DNode .prototype),
|
|
37324
|
+
Object .assign (Object .setPrototypeOf (X3DImportedNode .prototype, Base_X3DObject .prototype),
|
|
37237
37325
|
{
|
|
37326
|
+
getExecutionContext ()
|
|
37327
|
+
{
|
|
37328
|
+
return this [X3DImportedNode_executionContext];
|
|
37329
|
+
},
|
|
37238
37330
|
getInlineNode ()
|
|
37239
37331
|
{
|
|
37240
|
-
return this [_inlineNode]
|
|
37332
|
+
return this [_inlineNode];
|
|
37241
37333
|
},
|
|
37242
37334
|
getExportedName ()
|
|
37243
37335
|
{
|
|
@@ -37253,29 +37345,21 @@ Object .assign (Object .setPrototypeOf (X3DImportedNode .prototype, Core_X3DNode
|
|
|
37253
37345
|
},
|
|
37254
37346
|
hasRoutes (baseNode)
|
|
37255
37347
|
{
|
|
37256
|
-
|
|
37257
|
-
|
|
37258
|
-
if (route .sourceNode === baseNode)
|
|
37259
|
-
return true;
|
|
37260
|
-
|
|
37261
|
-
if (route .destinationNode === baseNode)
|
|
37262
|
-
return true;
|
|
37263
|
-
}
|
|
37264
|
-
|
|
37265
|
-
return false;
|
|
37348
|
+
return this [_routes]
|
|
37349
|
+
.some (route => route .sourceNode === baseNode || route .destinationNode === baseNode)
|
|
37266
37350
|
},
|
|
37267
37351
|
addRoute (sourceNode, sourceField, destinationNode, destinationField)
|
|
37268
37352
|
{
|
|
37269
37353
|
// Add route.
|
|
37270
37354
|
|
|
37271
37355
|
const route = {
|
|
37272
|
-
sourceNode
|
|
37273
|
-
sourceField
|
|
37274
|
-
destinationNode
|
|
37275
|
-
destinationField
|
|
37356
|
+
sourceNode,
|
|
37357
|
+
sourceField,
|
|
37358
|
+
destinationNode,
|
|
37359
|
+
destinationField,
|
|
37276
37360
|
};
|
|
37277
37361
|
|
|
37278
|
-
this [_routes] .
|
|
37362
|
+
this [_routes] .push (route);
|
|
37279
37363
|
|
|
37280
37364
|
// Try to resolve source or destination node routes.
|
|
37281
37365
|
|
|
@@ -37286,16 +37370,11 @@ Object .assign (Object .setPrototypeOf (X3DImportedNode .prototype, Core_X3DNode
|
|
|
37286
37370
|
{
|
|
37287
37371
|
try
|
|
37288
37372
|
{
|
|
37289
|
-
const
|
|
37290
|
-
sourceField = route .sourceField,
|
|
37291
|
-
destinationField = route .destinationField;
|
|
37373
|
+
const { sourceField, destinationField } = route;
|
|
37292
37374
|
|
|
37293
|
-
let
|
|
37294
|
-
sourceNode = route .sourceNode,
|
|
37295
|
-
destinationNode = route .destinationNode;
|
|
37375
|
+
let { sourceNode, destinationNode } = route;
|
|
37296
37376
|
|
|
37297
|
-
|
|
37298
|
-
route .real .dispose ();
|
|
37377
|
+
route [_real] ?.dispose ();
|
|
37299
37378
|
|
|
37300
37379
|
if (sourceNode instanceof X3DImportedNode)
|
|
37301
37380
|
sourceNode = sourceNode .getExportedNode ();
|
|
@@ -37303,7 +37382,7 @@ Object .assign (Object .setPrototypeOf (X3DImportedNode .prototype, Core_X3DNode
|
|
|
37303
37382
|
if (destinationNode instanceof X3DImportedNode)
|
|
37304
37383
|
destinationNode = destinationNode .getExportedNode ();
|
|
37305
37384
|
|
|
37306
|
-
route
|
|
37385
|
+
route [_real] = this .getExecutionContext () .addSimpleRoute (sourceNode, sourceField, destinationNode, destinationField);
|
|
37307
37386
|
}
|
|
37308
37387
|
catch (error)
|
|
37309
37388
|
{
|
|
@@ -37312,25 +37391,38 @@ Object .assign (Object .setPrototypeOf (X3DImportedNode .prototype, Core_X3DNode
|
|
|
37312
37391
|
},
|
|
37313
37392
|
deleteRoute (real)
|
|
37314
37393
|
{
|
|
37315
|
-
|
|
37316
|
-
{
|
|
37317
|
-
if (route .real === real)
|
|
37318
|
-
this [_routes] .delete (route);
|
|
37319
|
-
}
|
|
37394
|
+
this [_routes] = this [_routes] .filter (route => route [_real] !== real);
|
|
37320
37395
|
},
|
|
37321
|
-
|
|
37396
|
+
deleteRealRoutes ()
|
|
37322
37397
|
{
|
|
37323
37398
|
for (const route of this [_routes])
|
|
37324
37399
|
{
|
|
37325
|
-
const real = route
|
|
37400
|
+
const real = route [_real]
|
|
37326
37401
|
|
|
37327
|
-
if (real)
|
|
37328
|
-
|
|
37329
|
-
|
|
37330
|
-
|
|
37331
|
-
|
|
37402
|
+
if (!real)
|
|
37403
|
+
continue;
|
|
37404
|
+
|
|
37405
|
+
delete route [_real];
|
|
37406
|
+
|
|
37407
|
+
this .getExecutionContext () .deleteSimpleRoute (real);
|
|
37332
37408
|
}
|
|
37333
37409
|
},
|
|
37410
|
+
getRoutes ()
|
|
37411
|
+
{
|
|
37412
|
+
return this [_routes] .map (({ sourceNode, sourceField, destinationNode, destinationField }) =>
|
|
37413
|
+
{
|
|
37414
|
+
return {
|
|
37415
|
+
sourceNode: sourceNode instanceof X3DImportedNode
|
|
37416
|
+
? sourceNode
|
|
37417
|
+
: Fields_SFNodeCache .get (sourceNode),
|
|
37418
|
+
sourceField,
|
|
37419
|
+
destinationNode: destinationNode instanceof X3DImportedNode
|
|
37420
|
+
? destinationNode
|
|
37421
|
+
: Fields_SFNodeCache .get (destinationNode),
|
|
37422
|
+
destinationField,
|
|
37423
|
+
};
|
|
37424
|
+
});
|
|
37425
|
+
},
|
|
37334
37426
|
set_loadState__ ()
|
|
37335
37427
|
{
|
|
37336
37428
|
switch (this .getInlineNode () .checkLoadState ())
|
|
@@ -37338,12 +37430,12 @@ Object .assign (Object .setPrototypeOf (X3DImportedNode .prototype, Core_X3DNode
|
|
|
37338
37430
|
case Base_X3DConstants .NOT_STARTED_STATE:
|
|
37339
37431
|
case Base_X3DConstants .FAILED_STATE:
|
|
37340
37432
|
{
|
|
37341
|
-
this .
|
|
37433
|
+
this .deleteRealRoutes ();
|
|
37342
37434
|
break;
|
|
37343
37435
|
}
|
|
37344
37436
|
case Base_X3DConstants .COMPLETE_STATE:
|
|
37345
37437
|
{
|
|
37346
|
-
this .
|
|
37438
|
+
this .deleteRealRoutes ();
|
|
37347
37439
|
|
|
37348
37440
|
for (const route of this [_routes])
|
|
37349
37441
|
this .resolveRoute (route);
|
|
@@ -37352,14 +37444,12 @@ Object .assign (Object .setPrototypeOf (X3DImportedNode .prototype, Core_X3DNode
|
|
|
37352
37444
|
}
|
|
37353
37445
|
}
|
|
37354
37446
|
},
|
|
37355
|
-
toStream (generator)
|
|
37356
|
-
{
|
|
37357
|
-
Base_X3DObject .prototype .toStream .call (this, generator);
|
|
37358
|
-
},
|
|
37359
37447
|
toVRMLStream (generator)
|
|
37360
37448
|
{
|
|
37361
37449
|
if (generator .ExistsNode (this .getInlineNode ()))
|
|
37362
37450
|
{
|
|
37451
|
+
const importedName = generator .ImportedName (this .getImportedName ());
|
|
37452
|
+
|
|
37363
37453
|
generator .string += generator .Indent ();
|
|
37364
37454
|
generator .string += "IMPORT";
|
|
37365
37455
|
generator .string += generator .Space ();
|
|
@@ -37367,31 +37457,25 @@ Object .assign (Object .setPrototypeOf (X3DImportedNode .prototype, Core_X3DNode
|
|
|
37367
37457
|
generator .string += ".";
|
|
37368
37458
|
generator .string += this .getExportedName ();
|
|
37369
37459
|
|
|
37370
|
-
if (
|
|
37460
|
+
if (importedName !== this .getExportedName ())
|
|
37371
37461
|
{
|
|
37372
37462
|
generator .string += generator .Space ();
|
|
37373
37463
|
generator .string += "AS";
|
|
37374
37464
|
generator .string += generator .Space ();
|
|
37375
|
-
generator .string +=
|
|
37465
|
+
generator .string += importedName;
|
|
37376
37466
|
}
|
|
37377
37467
|
|
|
37378
37468
|
try
|
|
37379
37469
|
{
|
|
37380
37470
|
generator .AddRouteNode (this);
|
|
37381
|
-
generator .AddImportedNode (this .getExportedNode (),
|
|
37471
|
+
generator .AddImportedNode (this .getExportedNode (), importedName);
|
|
37382
37472
|
}
|
|
37383
37473
|
catch
|
|
37384
37474
|
{
|
|
37385
37475
|
// Output unresolved routes.
|
|
37386
37476
|
|
|
37387
|
-
for (const
|
|
37477
|
+
for (const { sourceNode, sourceField, destinationNode, destinationField } of this [_routes])
|
|
37388
37478
|
{
|
|
37389
|
-
const
|
|
37390
|
-
sourceNode = route .sourceNode,
|
|
37391
|
-
sourceField = route .sourceField,
|
|
37392
|
-
destinationNode = route .destinationNode,
|
|
37393
|
-
destinationField = route .destinationField;
|
|
37394
|
-
|
|
37395
37479
|
if (generator .ExistsRouteNode (sourceNode) && generator .ExistsRouteNode (destinationNode))
|
|
37396
37480
|
{
|
|
37397
37481
|
const sourceNodeName = sourceNode instanceof X3DImportedNode
|
|
@@ -37428,6 +37512,8 @@ Object .assign (Object .setPrototypeOf (X3DImportedNode .prototype, Core_X3DNode
|
|
|
37428
37512
|
{
|
|
37429
37513
|
if (generator .ExistsNode (this .getInlineNode ()))
|
|
37430
37514
|
{
|
|
37515
|
+
const importedName = generator .ImportedName (this .getImportedName ());
|
|
37516
|
+
|
|
37431
37517
|
generator .string += generator .Indent ();
|
|
37432
37518
|
generator .string += "<IMPORT";
|
|
37433
37519
|
generator .string += generator .Space ();
|
|
@@ -37439,11 +37525,11 @@ Object .assign (Object .setPrototypeOf (X3DImportedNode .prototype, Core_X3DNode
|
|
|
37439
37525
|
generator .string += generator .XMLEncode (this .getExportedName ());
|
|
37440
37526
|
generator .string += "'";
|
|
37441
37527
|
|
|
37442
|
-
if (
|
|
37528
|
+
if (importedName !== this .getExportedName ())
|
|
37443
37529
|
{
|
|
37444
37530
|
generator .string += generator .Space ();
|
|
37445
37531
|
generator .string += "AS='";
|
|
37446
|
-
generator .string += generator .XMLEncode (
|
|
37532
|
+
generator .string += generator .XMLEncode (importedName);
|
|
37447
37533
|
generator .string += "'";
|
|
37448
37534
|
}
|
|
37449
37535
|
|
|
@@ -37452,20 +37538,14 @@ Object .assign (Object .setPrototypeOf (X3DImportedNode .prototype, Core_X3DNode
|
|
|
37452
37538
|
try
|
|
37453
37539
|
{
|
|
37454
37540
|
generator .AddRouteNode (this);
|
|
37455
|
-
generator .AddImportedNode (this .getExportedNode (),
|
|
37541
|
+
generator .AddImportedNode (this .getExportedNode (), importedName);
|
|
37456
37542
|
}
|
|
37457
37543
|
catch
|
|
37458
37544
|
{
|
|
37459
37545
|
// Output unresolved routes.
|
|
37460
37546
|
|
|
37461
|
-
for (const
|
|
37547
|
+
for (const { sourceNode, sourceField, destinationNode, destinationField } of this [_routes])
|
|
37462
37548
|
{
|
|
37463
|
-
const
|
|
37464
|
-
sourceNode = route .sourceNode,
|
|
37465
|
-
sourceField = route .sourceField,
|
|
37466
|
-
destinationNode = route .destinationNode,
|
|
37467
|
-
destinationField = route .destinationField;
|
|
37468
|
-
|
|
37469
37549
|
if (generator .ExistsRouteNode (sourceNode) && generator .ExistsRouteNode (destinationNode))
|
|
37470
37550
|
{
|
|
37471
37551
|
const sourceNodeName = sourceNode instanceof X3DImportedNode
|
|
@@ -37509,6 +37589,8 @@ Object .assign (Object .setPrototypeOf (X3DImportedNode .prototype, Core_X3DNode
|
|
|
37509
37589
|
{
|
|
37510
37590
|
if (generator .ExistsNode (this .getInlineNode ()))
|
|
37511
37591
|
{
|
|
37592
|
+
const importedName = generator .ImportedName (this .getImportedName ());
|
|
37593
|
+
|
|
37512
37594
|
generator .string += generator .Indent ();
|
|
37513
37595
|
generator .string += '{';
|
|
37514
37596
|
generator .string += generator .TidySpace ();
|
|
@@ -37545,7 +37627,7 @@ Object .assign (Object .setPrototypeOf (X3DImportedNode .prototype, Core_X3DNode
|
|
|
37545
37627
|
generator .string += generator .JSONEncode (this .getExportedName ());
|
|
37546
37628
|
generator .string += '"';
|
|
37547
37629
|
|
|
37548
|
-
if (
|
|
37630
|
+
if (importedName !== this .getExportedName ())
|
|
37549
37631
|
{
|
|
37550
37632
|
generator .string += ',';
|
|
37551
37633
|
generator .string += generator .TidyBreak ();
|
|
@@ -37556,7 +37638,7 @@ Object .assign (Object .setPrototypeOf (X3DImportedNode .prototype, Core_X3DNode
|
|
|
37556
37638
|
generator .string += ':';
|
|
37557
37639
|
generator .string += generator .TidySpace ();
|
|
37558
37640
|
generator .string += '"';
|
|
37559
|
-
generator .string += generator .JSONEncode (
|
|
37641
|
+
generator .string += generator .JSONEncode (importedName);
|
|
37560
37642
|
generator .string += '"';
|
|
37561
37643
|
generator .string += generator .TidyBreak ();
|
|
37562
37644
|
}
|
|
@@ -37576,20 +37658,14 @@ Object .assign (Object .setPrototypeOf (X3DImportedNode .prototype, Core_X3DNode
|
|
|
37576
37658
|
try
|
|
37577
37659
|
{
|
|
37578
37660
|
generator .AddRouteNode (this);
|
|
37579
|
-
generator .AddImportedNode (this .getExportedNode (),
|
|
37661
|
+
generator .AddImportedNode (this .getExportedNode (), importedName);
|
|
37580
37662
|
}
|
|
37581
37663
|
catch
|
|
37582
37664
|
{
|
|
37583
37665
|
// Output unresolved routes.
|
|
37584
37666
|
|
|
37585
|
-
for (const
|
|
37667
|
+
for (const { sourceNode, sourceField, destinationNode, destinationField } of this [_routes])
|
|
37586
37668
|
{
|
|
37587
|
-
const
|
|
37588
|
-
sourceNode = route .sourceNode,
|
|
37589
|
-
sourceField = route .sourceField,
|
|
37590
|
-
destinationNode = route .destinationNode,
|
|
37591
|
-
destinationField = route .destinationField;
|
|
37592
|
-
|
|
37593
37669
|
if (generator .ExistsRouteNode (sourceNode) && generator .ExistsRouteNode (destinationNode))
|
|
37594
37670
|
{
|
|
37595
37671
|
const sourceNodeName = sourceNode instanceof X3DImportedNode
|
|
@@ -37683,9 +37759,9 @@ Object .assign (Object .setPrototypeOf (X3DImportedNode .prototype, Core_X3DNode
|
|
|
37683
37759
|
{
|
|
37684
37760
|
this .getInlineNode () ._loadState .removeInterest ("set_loadState__", this);
|
|
37685
37761
|
|
|
37686
|
-
this .
|
|
37762
|
+
this .deleteRealRoutes ();
|
|
37687
37763
|
|
|
37688
|
-
|
|
37764
|
+
Base_X3DObject .prototype .dispose .call (this);
|
|
37689
37765
|
},
|
|
37690
37766
|
});
|
|
37691
37767
|
|
|
@@ -37698,7 +37774,7 @@ Object .defineProperties (X3DImportedNode .prototype,
|
|
|
37698
37774
|
{
|
|
37699
37775
|
get ()
|
|
37700
37776
|
{
|
|
37701
|
-
return this [_inlineNode];
|
|
37777
|
+
return Fields_SFNodeCache .get (this [_inlineNode]);
|
|
37702
37778
|
},
|
|
37703
37779
|
enumerable: true,
|
|
37704
37780
|
},
|
|
@@ -38243,254 +38319,6 @@ const X3DProtoDeclarationNode_default_ = X3DProtoDeclarationNode;
|
|
|
38243
38319
|
|
|
38244
38320
|
x_ite_Namespace .add ("X3DProtoDeclarationNode", "x_ite/Prototype/X3DProtoDeclarationNode", X3DProtoDeclarationNode_default_);
|
|
38245
38321
|
/* harmony default export */ const Prototype_X3DProtoDeclarationNode = (X3DProtoDeclarationNode_default_);
|
|
38246
|
-
;// CONCATENATED MODULE: ./src/x_ite/Parser/X3DParser.js
|
|
38247
|
-
/* provided dependency */ var X3DParser_$ = __webpack_require__(604);
|
|
38248
|
-
/*******************************************************************************
|
|
38249
|
-
*
|
|
38250
|
-
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
38251
|
-
*
|
|
38252
|
-
* Copyright create3000, Scheffelstraße 31a, Leipzig, Germany 2011 - 2022.
|
|
38253
|
-
*
|
|
38254
|
-
* All rights reserved. Holger Seelig <holger.seelig@yahoo.de>.
|
|
38255
|
-
*
|
|
38256
|
-
* The copyright notice above does not evidence any actual of intended
|
|
38257
|
-
* publication of such source code, and is an unpublished work by create3000.
|
|
38258
|
-
* This material contains CONFIDENTIAL INFORMATION that is the property of
|
|
38259
|
-
* create3000.
|
|
38260
|
-
*
|
|
38261
|
-
* No permission is granted to copy, distribute, or create derivative works from
|
|
38262
|
-
* the contents of this software, in whole or in part, without the prior written
|
|
38263
|
-
* permission of create3000.
|
|
38264
|
-
*
|
|
38265
|
-
* NON-MILITARY USE ONLY
|
|
38266
|
-
*
|
|
38267
|
-
* All create3000 software are effectively free software with a non-military use
|
|
38268
|
-
* restriction. It is free. Well commented source is provided. You may reuse the
|
|
38269
|
-
* source in any way you please with the exception anything that uses it must be
|
|
38270
|
-
* marked to indicate is contains 'non-military use only' components.
|
|
38271
|
-
*
|
|
38272
|
-
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
38273
|
-
*
|
|
38274
|
-
* Copyright 2011 - 2022, Holger Seelig <holger.seelig@yahoo.de>.
|
|
38275
|
-
*
|
|
38276
|
-
* This file is part of the X_ITE Project.
|
|
38277
|
-
*
|
|
38278
|
-
* X_ITE is free software: you can redistribute it and/or modify it under the
|
|
38279
|
-
* terms of the GNU General Public License version 3 only, as published by the
|
|
38280
|
-
* Free Software Foundation.
|
|
38281
|
-
*
|
|
38282
|
-
* X_ITE is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
38283
|
-
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
38284
|
-
* A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
|
|
38285
|
-
* details (a copy is included in the LICENSE file that accompanied this code).
|
|
38286
|
-
*
|
|
38287
|
-
* You should have received a copy of the GNU General Public License version 3
|
|
38288
|
-
* along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
|
|
38289
|
-
* copy of the GPLv3 License.
|
|
38290
|
-
*
|
|
38291
|
-
* For Silvio, Joy and Adi.
|
|
38292
|
-
*
|
|
38293
|
-
******************************************************************************/
|
|
38294
|
-
|
|
38295
|
-
function X3DParser (scene)
|
|
38296
|
-
{
|
|
38297
|
-
this .scene = scene;
|
|
38298
|
-
this .executionContexts = [ scene ];
|
|
38299
|
-
this .prototypes = [ ];
|
|
38300
|
-
}
|
|
38301
|
-
|
|
38302
|
-
Object .assign (X3DParser .prototype,
|
|
38303
|
-
{
|
|
38304
|
-
getBrowser ()
|
|
38305
|
-
{
|
|
38306
|
-
return this .scene .getBrowser ();
|
|
38307
|
-
},
|
|
38308
|
-
getScene ()
|
|
38309
|
-
{
|
|
38310
|
-
return this .scene;
|
|
38311
|
-
},
|
|
38312
|
-
getExecutionContext ()
|
|
38313
|
-
{
|
|
38314
|
-
return this .executionContexts .at (-1);
|
|
38315
|
-
},
|
|
38316
|
-
pushExecutionContext (executionContext)
|
|
38317
|
-
{
|
|
38318
|
-
return this .executionContexts .push (executionContext);
|
|
38319
|
-
},
|
|
38320
|
-
popExecutionContext ()
|
|
38321
|
-
{
|
|
38322
|
-
this .executionContexts .pop ();
|
|
38323
|
-
},
|
|
38324
|
-
getPrototype ()
|
|
38325
|
-
{
|
|
38326
|
-
return this .prototypes .at (-1);
|
|
38327
|
-
},
|
|
38328
|
-
pushPrototype (prototype)
|
|
38329
|
-
{
|
|
38330
|
-
return this .prototypes .push (prototype);
|
|
38331
|
-
},
|
|
38332
|
-
popPrototype ()
|
|
38333
|
-
{
|
|
38334
|
-
this .prototypes .pop ();
|
|
38335
|
-
},
|
|
38336
|
-
isInsideProtoDefinition ()
|
|
38337
|
-
{
|
|
38338
|
-
return !! this .prototypes .length;
|
|
38339
|
-
},
|
|
38340
|
-
loadComponents ()
|
|
38341
|
-
{
|
|
38342
|
-
const
|
|
38343
|
-
browser = this .getBrowser (),
|
|
38344
|
-
scene = this .getScene ();
|
|
38345
|
-
|
|
38346
|
-
return Promise .all ([
|
|
38347
|
-
browser .loadComponents (scene .getProfile () || browser .getProfile ("Full")),
|
|
38348
|
-
browser .loadComponents (scene .getComponents ()),
|
|
38349
|
-
]);
|
|
38350
|
-
},
|
|
38351
|
-
setUnits (units)
|
|
38352
|
-
{
|
|
38353
|
-
if (units)
|
|
38354
|
-
delete this .fromUnit;
|
|
38355
|
-
else
|
|
38356
|
-
this .fromUnit = function (category, value) { return value; };
|
|
38357
|
-
},
|
|
38358
|
-
fromUnit (category, value)
|
|
38359
|
-
{
|
|
38360
|
-
return this .scene .fromUnit (category, value);
|
|
38361
|
-
},
|
|
38362
|
-
convertColor (value, defaultColor = "white")
|
|
38363
|
-
{
|
|
38364
|
-
const
|
|
38365
|
-
wrap = X3DParser_$("<div></div>") .hide () .css ("color", defaultColor) .appendTo (X3DParser_$("body")),
|
|
38366
|
-
div = X3DParser_$("<div></div>").css ("color", value) .appendTo (wrap),
|
|
38367
|
-
rgb = window .getComputedStyle (div [0]) .color,
|
|
38368
|
-
values = rgb .replace (/^rgba?\(|\)$/g, "") .split (/[\s,]+/) .map (s => parseFloat (s));
|
|
38369
|
-
|
|
38370
|
-
wrap .remove ();
|
|
38371
|
-
|
|
38372
|
-
values [0] /= 255;
|
|
38373
|
-
values [1] /= 255;
|
|
38374
|
-
values [2] /= 255;
|
|
38375
|
-
|
|
38376
|
-
if (typeof values [3] !== "number")
|
|
38377
|
-
values [3] = 1;
|
|
38378
|
-
|
|
38379
|
-
return values;
|
|
38380
|
-
},
|
|
38381
|
-
sanitizeName (name = "")
|
|
38382
|
-
{
|
|
38383
|
-
// NonIdFirstChar
|
|
38384
|
-
name = name .replace (/^[\x30-\x39\x00-\x20\x22\x23\x27\x2b\x2c\x2d\x2e\x5b\x5c\x5d\x7b\x7d\x7f]*/, "");
|
|
38385
|
-
|
|
38386
|
-
// NonIdChars
|
|
38387
|
-
name = name .replace (/[\x00-\x20\x22\x23\x27\x2c\x2e\x5b\x5c\x5d\x7b\x7d\x7f]+/g, "-");
|
|
38388
|
-
|
|
38389
|
-
// Spaces
|
|
38390
|
-
name = name .trim () .replace (/[\s_-]+/g, "-");
|
|
38391
|
-
|
|
38392
|
-
// Trim
|
|
38393
|
-
name = name .replace (/^-+|-+$/g, "");
|
|
38394
|
-
|
|
38395
|
-
return name;
|
|
38396
|
-
},
|
|
38397
|
-
});
|
|
38398
|
-
|
|
38399
|
-
const X3DParser_default_ = X3DParser;
|
|
38400
|
-
;
|
|
38401
|
-
|
|
38402
|
-
x_ite_Namespace .add ("X3DParser", "x_ite/Parser/X3DParser", X3DParser_default_);
|
|
38403
|
-
/* harmony default export */ const Parser_X3DParser = (X3DParser_default_);
|
|
38404
|
-
;// CONCATENATED MODULE: ./src/x_ite/Parser/Expressions.js
|
|
38405
|
-
/*******************************************************************************
|
|
38406
|
-
*
|
|
38407
|
-
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
38408
|
-
*
|
|
38409
|
-
* Copyright create3000, Scheffelstraße 31a, Leipzig, Germany 2011 - 2022.
|
|
38410
|
-
*
|
|
38411
|
-
* All rights reserved. Holger Seelig <holger.seelig@yahoo.de>.
|
|
38412
|
-
*
|
|
38413
|
-
* The copyright notice above does not evidence any actual of intended
|
|
38414
|
-
* publication of such source code, and is an unpublished work by create3000.
|
|
38415
|
-
* This material contains CONFIDENTIAL INFORMATION that is the property of
|
|
38416
|
-
* create3000.
|
|
38417
|
-
*
|
|
38418
|
-
* No permission is granted to copy, distribute, or create derivative works from
|
|
38419
|
-
* the contents of this software, in whole or in part, without the prior written
|
|
38420
|
-
* permission of create3000.
|
|
38421
|
-
*
|
|
38422
|
-
* NON-MILITARY USE ONLY
|
|
38423
|
-
*
|
|
38424
|
-
* All create3000 software are effectively free software with a non-military use
|
|
38425
|
-
* restriction. It is free. Well commented source is provided. You may reuse the
|
|
38426
|
-
* source in any way you please with the exception anything that uses it must be
|
|
38427
|
-
* marked to indicate is contains 'non-military use only' components.
|
|
38428
|
-
*
|
|
38429
|
-
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
38430
|
-
*
|
|
38431
|
-
* Copyright 2011 - 2022, Holger Seelig <holger.seelig@yahoo.de>.
|
|
38432
|
-
*
|
|
38433
|
-
* This file is part of the X_ITE Project.
|
|
38434
|
-
*
|
|
38435
|
-
* X_ITE is free software: you can redistribute it and/or modify it under the
|
|
38436
|
-
* terms of the GNU General Public License version 3 only, as published by the
|
|
38437
|
-
* Free Software Foundation.
|
|
38438
|
-
*
|
|
38439
|
-
* X_ITE is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
38440
|
-
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
38441
|
-
* A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
|
|
38442
|
-
* details (a copy is included in the LICENSE file that accompanied this code).
|
|
38443
|
-
*
|
|
38444
|
-
* You should have received a copy of the GNU General Public License version 3
|
|
38445
|
-
* along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
|
|
38446
|
-
* copy of the GPLv3 License.
|
|
38447
|
-
*
|
|
38448
|
-
* For Silvio, Joy and Adi.
|
|
38449
|
-
*
|
|
38450
|
-
******************************************************************************/
|
|
38451
|
-
|
|
38452
|
-
function parse (parser)
|
|
38453
|
-
{
|
|
38454
|
-
this .lastIndex = parser .lastIndex;
|
|
38455
|
-
|
|
38456
|
-
parser .result = this .exec (parser .input);
|
|
38457
|
-
|
|
38458
|
-
if (parser .result)
|
|
38459
|
-
{
|
|
38460
|
-
parser .lastIndex = this .lastIndex;
|
|
38461
|
-
return true;
|
|
38462
|
-
}
|
|
38463
|
-
|
|
38464
|
-
return false;
|
|
38465
|
-
}
|
|
38466
|
-
|
|
38467
|
-
function lookahead (parser)
|
|
38468
|
-
{
|
|
38469
|
-
const
|
|
38470
|
-
lastIndex = parser .lastIndex,
|
|
38471
|
-
result = this .parse (parser);
|
|
38472
|
-
|
|
38473
|
-
parser .lastIndex = lastIndex;
|
|
38474
|
-
|
|
38475
|
-
return result;
|
|
38476
|
-
}
|
|
38477
|
-
|
|
38478
|
-
function Expressions (Grammar)
|
|
38479
|
-
{
|
|
38480
|
-
for (const value of Object .values (Grammar))
|
|
38481
|
-
{
|
|
38482
|
-
value .parse = parse;
|
|
38483
|
-
value .lookahead = lookahead;
|
|
38484
|
-
}
|
|
38485
|
-
|
|
38486
|
-
return Grammar;
|
|
38487
|
-
}
|
|
38488
|
-
|
|
38489
|
-
const Expressions_default_ = Expressions;
|
|
38490
|
-
;
|
|
38491
|
-
|
|
38492
|
-
x_ite_Namespace .add ("Expressions", "x_ite/Parser/Expressions", Expressions_default_);
|
|
38493
|
-
/* harmony default export */ const Parser_Expressions = (Expressions_default_);
|
|
38494
38322
|
;// CONCATENATED MODULE: ./src/x_ite/Prototype/X3DProtoDeclaration.js
|
|
38495
38323
|
/*******************************************************************************
|
|
38496
38324
|
*
|
|
@@ -39068,8 +38896,250 @@ const X3DProtoDeclaration_default_ = X3DProtoDeclaration;
|
|
|
39068
38896
|
|
|
39069
38897
|
x_ite_Namespace .add ("X3DProtoDeclaration", "x_ite/Prototype/X3DProtoDeclaration", X3DProtoDeclaration_default_);
|
|
39070
38898
|
/* harmony default export */ const Prototype_X3DProtoDeclaration = (X3DProtoDeclaration_default_);
|
|
38899
|
+
;// CONCATENATED MODULE: ./src/x_ite/Parser/X3DParser.js
|
|
38900
|
+
/* provided dependency */ var X3DParser_$ = __webpack_require__(831);
|
|
38901
|
+
/*******************************************************************************
|
|
38902
|
+
*
|
|
38903
|
+
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
38904
|
+
*
|
|
38905
|
+
* Copyright create3000, Scheffelstraße 31a, Leipzig, Germany 2011 - 2022.
|
|
38906
|
+
*
|
|
38907
|
+
* All rights reserved. Holger Seelig <holger.seelig@yahoo.de>.
|
|
38908
|
+
*
|
|
38909
|
+
* The copyright notice above does not evidence any actual of intended
|
|
38910
|
+
* publication of such source code, and is an unpublished work by create3000.
|
|
38911
|
+
* This material contains CONFIDENTIAL INFORMATION that is the property of
|
|
38912
|
+
* create3000.
|
|
38913
|
+
*
|
|
38914
|
+
* No permission is granted to copy, distribute, or create derivative works from
|
|
38915
|
+
* the contents of this software, in whole or in part, without the prior written
|
|
38916
|
+
* permission of create3000.
|
|
38917
|
+
*
|
|
38918
|
+
* NON-MILITARY USE ONLY
|
|
38919
|
+
*
|
|
38920
|
+
* All create3000 software are effectively free software with a non-military use
|
|
38921
|
+
* restriction. It is free. Well commented source is provided. You may reuse the
|
|
38922
|
+
* source in any way you please with the exception anything that uses it must be
|
|
38923
|
+
* marked to indicate is contains 'non-military use only' components.
|
|
38924
|
+
*
|
|
38925
|
+
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
38926
|
+
*
|
|
38927
|
+
* Copyright 2011 - 2022, Holger Seelig <holger.seelig@yahoo.de>.
|
|
38928
|
+
*
|
|
38929
|
+
* This file is part of the X_ITE Project.
|
|
38930
|
+
*
|
|
38931
|
+
* X_ITE is free software: you can redistribute it and/or modify it under the
|
|
38932
|
+
* terms of the GNU General Public License version 3 only, as published by the
|
|
38933
|
+
* Free Software Foundation.
|
|
38934
|
+
*
|
|
38935
|
+
* X_ITE is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
38936
|
+
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
38937
|
+
* A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
|
|
38938
|
+
* details (a copy is included in the LICENSE file that accompanied this code).
|
|
38939
|
+
*
|
|
38940
|
+
* You should have received a copy of the GNU General Public License version 3
|
|
38941
|
+
* along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
|
|
38942
|
+
* copy of the GPLv3 License.
|
|
38943
|
+
*
|
|
38944
|
+
* For Silvio, Joy and Adi.
|
|
38945
|
+
*
|
|
38946
|
+
******************************************************************************/
|
|
38947
|
+
|
|
38948
|
+
|
|
38949
|
+
|
|
38950
|
+
function X3DParser (scene)
|
|
38951
|
+
{
|
|
38952
|
+
this .scene = scene;
|
|
38953
|
+
this .executionContexts = [ scene ];
|
|
38954
|
+
this .prototypes = [ ];
|
|
38955
|
+
}
|
|
38956
|
+
|
|
38957
|
+
Object .assign (X3DParser .prototype,
|
|
38958
|
+
{
|
|
38959
|
+
getBrowser ()
|
|
38960
|
+
{
|
|
38961
|
+
return this .scene .getBrowser ();
|
|
38962
|
+
},
|
|
38963
|
+
getScene ()
|
|
38964
|
+
{
|
|
38965
|
+
return this .scene;
|
|
38966
|
+
},
|
|
38967
|
+
getExecutionContext ()
|
|
38968
|
+
{
|
|
38969
|
+
return this .executionContexts .at (-1);
|
|
38970
|
+
},
|
|
38971
|
+
pushExecutionContext (executionContext)
|
|
38972
|
+
{
|
|
38973
|
+
return this .executionContexts .push (executionContext);
|
|
38974
|
+
},
|
|
38975
|
+
popExecutionContext ()
|
|
38976
|
+
{
|
|
38977
|
+
this .executionContexts .pop ();
|
|
38978
|
+
},
|
|
38979
|
+
getOuterNode ()
|
|
38980
|
+
{
|
|
38981
|
+
return this .getExecutionContext () .getOuterNode ();
|
|
38982
|
+
},
|
|
38983
|
+
isInsideProtoDeclaration ()
|
|
38984
|
+
{
|
|
38985
|
+
return this .getExecutionContext () .getOuterNode () instanceof Prototype_X3DProtoDeclaration;
|
|
38986
|
+
},
|
|
38987
|
+
loadComponents ()
|
|
38988
|
+
{
|
|
38989
|
+
const
|
|
38990
|
+
browser = this .getBrowser (),
|
|
38991
|
+
scene = this .getScene ();
|
|
38992
|
+
|
|
38993
|
+
return Promise .all ([
|
|
38994
|
+
browser .loadComponents (scene .getProfile () || browser .getProfile ("Full")),
|
|
38995
|
+
browser .loadComponents (scene .getComponents ()),
|
|
38996
|
+
]);
|
|
38997
|
+
},
|
|
38998
|
+
setUnits (units)
|
|
38999
|
+
{
|
|
39000
|
+
if (units)
|
|
39001
|
+
delete this .fromUnit;
|
|
39002
|
+
else
|
|
39003
|
+
this .fromUnit = function (category, value) { return value; };
|
|
39004
|
+
},
|
|
39005
|
+
fromUnit (category, value)
|
|
39006
|
+
{
|
|
39007
|
+
return this .scene .fromUnit (category, value);
|
|
39008
|
+
},
|
|
39009
|
+
convertColor (value, defaultColor = "white")
|
|
39010
|
+
{
|
|
39011
|
+
const
|
|
39012
|
+
wrap = X3DParser_$("<div></div>") .hide () .css ("color", defaultColor) .appendTo (X3DParser_$("body")),
|
|
39013
|
+
div = X3DParser_$("<div></div>").css ("color", value) .appendTo (wrap),
|
|
39014
|
+
rgb = window .getComputedStyle (div [0]) .color,
|
|
39015
|
+
values = rgb .replace (/^rgba?\(|\)$/g, "") .split (/[\s,]+/) .map (s => parseFloat (s));
|
|
39016
|
+
|
|
39017
|
+
wrap .remove ();
|
|
39018
|
+
|
|
39019
|
+
values [0] /= 255;
|
|
39020
|
+
values [1] /= 255;
|
|
39021
|
+
values [2] /= 255;
|
|
39022
|
+
|
|
39023
|
+
if (typeof values [3] !== "number")
|
|
39024
|
+
values [3] = 1;
|
|
39025
|
+
|
|
39026
|
+
return values;
|
|
39027
|
+
},
|
|
39028
|
+
sanitizeName (name = "")
|
|
39029
|
+
{
|
|
39030
|
+
// NonIdFirstChar
|
|
39031
|
+
name = name .replace (/^[\x30-\x39\x00-\x20\x22\x23\x27\x2b\x2c\x2d\x2e\x5b\x5c\x5d\x7b\x7d\x7f]*/, "");
|
|
39032
|
+
|
|
39033
|
+
// NonIdChars
|
|
39034
|
+
name = name .replace (/[\x00-\x20\x22\x23\x27\x2c\x2e\x5b\x5c\x5d\x7b\x7d\x7f]+/g, "-");
|
|
39035
|
+
|
|
39036
|
+
// Spaces
|
|
39037
|
+
name = name .trim () .replace (/[\s_-]+/g, "-");
|
|
39038
|
+
|
|
39039
|
+
// Trim
|
|
39040
|
+
name = name .replace (/^-+|-+$/g, "");
|
|
39041
|
+
|
|
39042
|
+
return name;
|
|
39043
|
+
},
|
|
39044
|
+
});
|
|
39045
|
+
|
|
39046
|
+
const X3DParser_default_ = X3DParser;
|
|
39047
|
+
;
|
|
39048
|
+
|
|
39049
|
+
x_ite_Namespace .add ("X3DParser", "x_ite/Parser/X3DParser", X3DParser_default_);
|
|
39050
|
+
/* harmony default export */ const Parser_X3DParser = (X3DParser_default_);
|
|
39051
|
+
;// CONCATENATED MODULE: ./src/x_ite/Parser/Expressions.js
|
|
39052
|
+
/*******************************************************************************
|
|
39053
|
+
*
|
|
39054
|
+
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
39055
|
+
*
|
|
39056
|
+
* Copyright create3000, Scheffelstraße 31a, Leipzig, Germany 2011 - 2022.
|
|
39057
|
+
*
|
|
39058
|
+
* All rights reserved. Holger Seelig <holger.seelig@yahoo.de>.
|
|
39059
|
+
*
|
|
39060
|
+
* The copyright notice above does not evidence any actual of intended
|
|
39061
|
+
* publication of such source code, and is an unpublished work by create3000.
|
|
39062
|
+
* This material contains CONFIDENTIAL INFORMATION that is the property of
|
|
39063
|
+
* create3000.
|
|
39064
|
+
*
|
|
39065
|
+
* No permission is granted to copy, distribute, or create derivative works from
|
|
39066
|
+
* the contents of this software, in whole or in part, without the prior written
|
|
39067
|
+
* permission of create3000.
|
|
39068
|
+
*
|
|
39069
|
+
* NON-MILITARY USE ONLY
|
|
39070
|
+
*
|
|
39071
|
+
* All create3000 software are effectively free software with a non-military use
|
|
39072
|
+
* restriction. It is free. Well commented source is provided. You may reuse the
|
|
39073
|
+
* source in any way you please with the exception anything that uses it must be
|
|
39074
|
+
* marked to indicate is contains 'non-military use only' components.
|
|
39075
|
+
*
|
|
39076
|
+
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
39077
|
+
*
|
|
39078
|
+
* Copyright 2011 - 2022, Holger Seelig <holger.seelig@yahoo.de>.
|
|
39079
|
+
*
|
|
39080
|
+
* This file is part of the X_ITE Project.
|
|
39081
|
+
*
|
|
39082
|
+
* X_ITE is free software: you can redistribute it and/or modify it under the
|
|
39083
|
+
* terms of the GNU General Public License version 3 only, as published by the
|
|
39084
|
+
* Free Software Foundation.
|
|
39085
|
+
*
|
|
39086
|
+
* X_ITE is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
39087
|
+
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
39088
|
+
* A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
|
|
39089
|
+
* details (a copy is included in the LICENSE file that accompanied this code).
|
|
39090
|
+
*
|
|
39091
|
+
* You should have received a copy of the GNU General Public License version 3
|
|
39092
|
+
* along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
|
|
39093
|
+
* copy of the GPLv3 License.
|
|
39094
|
+
*
|
|
39095
|
+
* For Silvio, Joy and Adi.
|
|
39096
|
+
*
|
|
39097
|
+
******************************************************************************/
|
|
39098
|
+
|
|
39099
|
+
function parse (parser)
|
|
39100
|
+
{
|
|
39101
|
+
this .lastIndex = parser .lastIndex;
|
|
39102
|
+
|
|
39103
|
+
parser .result = this .exec (parser .input);
|
|
39104
|
+
|
|
39105
|
+
if (parser .result)
|
|
39106
|
+
{
|
|
39107
|
+
parser .lastIndex = this .lastIndex;
|
|
39108
|
+
return true;
|
|
39109
|
+
}
|
|
39110
|
+
|
|
39111
|
+
return false;
|
|
39112
|
+
}
|
|
39113
|
+
|
|
39114
|
+
function lookahead (parser)
|
|
39115
|
+
{
|
|
39116
|
+
const
|
|
39117
|
+
lastIndex = parser .lastIndex,
|
|
39118
|
+
result = this .parse (parser);
|
|
39119
|
+
|
|
39120
|
+
parser .lastIndex = lastIndex;
|
|
39121
|
+
|
|
39122
|
+
return result;
|
|
39123
|
+
}
|
|
39124
|
+
|
|
39125
|
+
function Expressions (Grammar)
|
|
39126
|
+
{
|
|
39127
|
+
for (const value of Object .values (Grammar))
|
|
39128
|
+
{
|
|
39129
|
+
value .parse = parse;
|
|
39130
|
+
value .lookahead = lookahead;
|
|
39131
|
+
}
|
|
39132
|
+
|
|
39133
|
+
return Grammar;
|
|
39134
|
+
}
|
|
39135
|
+
|
|
39136
|
+
const Expressions_default_ = Expressions;
|
|
39137
|
+
;
|
|
39138
|
+
|
|
39139
|
+
x_ite_Namespace .add ("Expressions", "x_ite/Parser/Expressions", Expressions_default_);
|
|
39140
|
+
/* harmony default export */ const Parser_Expressions = (Expressions_default_);
|
|
39071
39141
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/VRMLParser.js
|
|
39072
|
-
/* provided dependency */ var VRMLParser_$ = __webpack_require__(
|
|
39142
|
+
/* provided dependency */ var VRMLParser_$ = __webpack_require__(831);
|
|
39073
39143
|
/*******************************************************************************
|
|
39074
39144
|
*
|
|
39075
39145
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -39259,6 +39329,7 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
39259
39329
|
SQRT1_2: Math .SQRT1_2,
|
|
39260
39330
|
SQRT2: Math .SQRT2,
|
|
39261
39331
|
},
|
|
39332
|
+
unknownLevel: 0,
|
|
39262
39333
|
getEncoding ()
|
|
39263
39334
|
{
|
|
39264
39335
|
return "STRING";
|
|
@@ -39292,13 +39363,6 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
39292
39363
|
throw new Error (this .getError (error));
|
|
39293
39364
|
}
|
|
39294
39365
|
},
|
|
39295
|
-
throwOrWarn (string)
|
|
39296
|
-
{
|
|
39297
|
-
if (this .getBrowser () .isStrict ())
|
|
39298
|
-
throw new Error (string);
|
|
39299
|
-
|
|
39300
|
-
console .warn (string);
|
|
39301
|
-
},
|
|
39302
39366
|
getError (error)
|
|
39303
39367
|
{
|
|
39304
39368
|
if (DEVELOPMENT)
|
|
@@ -39570,7 +39634,7 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
39570
39634
|
}
|
|
39571
39635
|
catch (error)
|
|
39572
39636
|
{
|
|
39573
|
-
console .warn (error .message);
|
|
39637
|
+
console .warn (`Parser error at line ${this .lineNumber}: ${error .message}`);
|
|
39574
39638
|
return true;
|
|
39575
39639
|
}
|
|
39576
39640
|
}
|
|
@@ -39816,13 +39880,11 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
39816
39880
|
for (const field of interfaceDeclarations)
|
|
39817
39881
|
proto .addUserDefinedField (field .getAccessType (), field .getName (), field);
|
|
39818
39882
|
|
|
39819
|
-
this .pushPrototype (proto);
|
|
39820
39883
|
this .pushExecutionContext (proto .getBody ());
|
|
39821
39884
|
|
|
39822
39885
|
this .protoBody (proto .getBody () .rootNodes);
|
|
39823
39886
|
|
|
39824
39887
|
this .popExecutionContext ();
|
|
39825
|
-
this .popPrototype ();
|
|
39826
39888
|
|
|
39827
39889
|
this .comments ();
|
|
39828
39890
|
|
|
@@ -39935,7 +39997,7 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
39935
39997
|
throw new Error ("Expected a name for field.");
|
|
39936
39998
|
}
|
|
39937
39999
|
|
|
39938
|
-
this .Id ()
|
|
40000
|
+
this .Id ();
|
|
39939
40001
|
|
|
39940
40002
|
throw new Error (`Unknown event or field type: '${this .result [1]}'.`);
|
|
39941
40003
|
}
|
|
@@ -39960,7 +40022,7 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
39960
40022
|
throw new Error ("Expected a name for field.");
|
|
39961
40023
|
}
|
|
39962
40024
|
|
|
39963
|
-
this .Id ()
|
|
40025
|
+
this .Id ();
|
|
39964
40026
|
|
|
39965
40027
|
throw new Error (`Unknown event or field type: '${this .result [1]}'.`);
|
|
39966
40028
|
}
|
|
@@ -39990,7 +40052,7 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
39990
40052
|
throw new Error ("Expected a name for field.");
|
|
39991
40053
|
}
|
|
39992
40054
|
|
|
39993
|
-
this .Id ()
|
|
40055
|
+
this .Id ();
|
|
39994
40056
|
|
|
39995
40057
|
throw new Error (`Unknown event or field type: '${this .result [1]}'.`);
|
|
39996
40058
|
}
|
|
@@ -40260,7 +40322,7 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
40260
40322
|
}
|
|
40261
40323
|
catch (error)
|
|
40262
40324
|
{
|
|
40263
|
-
|
|
40325
|
+
console .warn (`Parser error at line ${this .lineNumber}: ${error .message}`);
|
|
40264
40326
|
|
|
40265
40327
|
return true;
|
|
40266
40328
|
}
|
|
@@ -40299,7 +40361,32 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
40299
40361
|
?? this .getExecutionContext () .createProto (nodeTypeId, false);
|
|
40300
40362
|
|
|
40301
40363
|
if (!baseNode)
|
|
40302
|
-
|
|
40364
|
+
{
|
|
40365
|
+
// Parse unknown node.
|
|
40366
|
+
|
|
40367
|
+
if (!this .unknownLevel)
|
|
40368
|
+
{
|
|
40369
|
+
console .warn (`Parser error at line ${this .lineNumber}: Unknown node type or proto '${nodeTypeId}', you probably have insufficient component/profile statements, and/or an inappropriate specification version.`);
|
|
40370
|
+
}
|
|
40371
|
+
|
|
40372
|
+
this .comments ();
|
|
40373
|
+
|
|
40374
|
+
if (Grammar .OpenBrace .parse (this))
|
|
40375
|
+
{
|
|
40376
|
+
++ this .unknownLevel;
|
|
40377
|
+
|
|
40378
|
+
this .nodeBody (this .getExecutionContext () .createNode ("WorldInfo", false));
|
|
40379
|
+
|
|
40380
|
+
-- this .unknownLevel;
|
|
40381
|
+
|
|
40382
|
+
this .comments ();
|
|
40383
|
+
|
|
40384
|
+
if (Grammar .CloseBrace .parse (this))
|
|
40385
|
+
return null;
|
|
40386
|
+
}
|
|
40387
|
+
|
|
40388
|
+
return false;
|
|
40389
|
+
}
|
|
40303
40390
|
|
|
40304
40391
|
if (nodeNameId .length)
|
|
40305
40392
|
{
|
|
@@ -40329,7 +40416,7 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
40329
40416
|
|
|
40330
40417
|
if (Grammar .CloseBrace .parse (this))
|
|
40331
40418
|
{
|
|
40332
|
-
if (!this .
|
|
40419
|
+
if (!this .isInsideProtoDeclaration ())
|
|
40333
40420
|
baseNode .setup ();
|
|
40334
40421
|
|
|
40335
40422
|
return baseNode;
|
|
@@ -40372,7 +40459,7 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
40372
40459
|
|
|
40373
40460
|
if (Grammar .IS .parse (this))
|
|
40374
40461
|
{
|
|
40375
|
-
if (this .
|
|
40462
|
+
if (this .isInsideProtoDeclaration ())
|
|
40376
40463
|
{
|
|
40377
40464
|
if (this .Id ())
|
|
40378
40465
|
{
|
|
@@ -40380,11 +40467,11 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
40380
40467
|
|
|
40381
40468
|
try
|
|
40382
40469
|
{
|
|
40383
|
-
var reference = this .
|
|
40470
|
+
var reference = this .getOuterNode () .getField (isId);
|
|
40384
40471
|
}
|
|
40385
40472
|
catch
|
|
40386
40473
|
{
|
|
40387
|
-
|
|
40474
|
+
console .warn (`Parser error at line ${this .lineNumber}: No such event or field '${isId}' inside PROTO ${this .getOuterNode () .getName ()} interface declaration.`);
|
|
40388
40475
|
|
|
40389
40476
|
return true;
|
|
40390
40477
|
}
|
|
@@ -40411,10 +40498,10 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
40411
40498
|
throw new Error (`Couldn't add field '${fieldId}', field already exists with different access type or data type.`);
|
|
40412
40499
|
}
|
|
40413
40500
|
|
|
40414
|
-
throw new Error (`Field '${fieldId}' and '${reference .getName ()}' in PROTO '${this .
|
|
40501
|
+
throw new Error (`Field '${fieldId}' and '${reference .getName ()}' in PROTO '${this .getOuterNode () .getName ()}' are incompatible as an IS mapping.`);
|
|
40415
40502
|
}
|
|
40416
40503
|
|
|
40417
|
-
throw new Error (`Field '${fieldId}' and '${reference .getName ()}' in PROTO '${this .
|
|
40504
|
+
throw new Error (`Field '${fieldId}' and '${reference .getName ()}' in PROTO '${this .getOuterNode () .getName ()}' have different types.`);
|
|
40418
40505
|
}
|
|
40419
40506
|
|
|
40420
40507
|
throw new Error ("No name give after IS statement.");
|
|
@@ -40476,6 +40563,20 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
40476
40563
|
}
|
|
40477
40564
|
catch
|
|
40478
40565
|
{
|
|
40566
|
+
// Parse unknown field value.
|
|
40567
|
+
|
|
40568
|
+
const lineNumber = this .lineNumber;
|
|
40569
|
+
|
|
40570
|
+
if (this .unknownValue ())
|
|
40571
|
+
{
|
|
40572
|
+
if (!this .unknownLevel)
|
|
40573
|
+
{
|
|
40574
|
+
console .warn (`Parser error at line ${lineNumber}: Unknown field '${fieldId}' in class '${baseNode .getTypeName ()}'.`);
|
|
40575
|
+
}
|
|
40576
|
+
|
|
40577
|
+
return true;
|
|
40578
|
+
}
|
|
40579
|
+
|
|
40479
40580
|
throw new Error (`Unknown field '${fieldId}' in class '${baseNode .getTypeName ()}'.`);
|
|
40480
40581
|
}
|
|
40481
40582
|
|
|
@@ -40483,7 +40584,7 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
40483
40584
|
|
|
40484
40585
|
if (Grammar .IS .parse (this))
|
|
40485
40586
|
{
|
|
40486
|
-
if (this .
|
|
40587
|
+
if (this .isInsideProtoDeclaration ())
|
|
40487
40588
|
{
|
|
40488
40589
|
if (this .Id ())
|
|
40489
40590
|
{
|
|
@@ -40491,11 +40592,11 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
40491
40592
|
|
|
40492
40593
|
try
|
|
40493
40594
|
{
|
|
40494
|
-
var reference = this .
|
|
40595
|
+
var reference = this .getOuterNode () .getField (isId);
|
|
40495
40596
|
}
|
|
40496
40597
|
catch
|
|
40497
40598
|
{
|
|
40498
|
-
|
|
40599
|
+
console .warn (`Parser error at line ${this .lineNumber}: No such event or field '${isId}' inside PROTO ${this .getOuterNode () .getName ()}`);
|
|
40499
40600
|
|
|
40500
40601
|
return true;
|
|
40501
40602
|
}
|
|
@@ -40508,10 +40609,10 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
40508
40609
|
return true;
|
|
40509
40610
|
}
|
|
40510
40611
|
|
|
40511
|
-
throw new Error (`Field '${field .getName ()}' and '${reference .getName ()}' in PROTO ${this .
|
|
40612
|
+
throw new Error (`Field '${field .getName ()}' and '${reference .getName ()}' in PROTO ${this .getOuterNode () .getName ()} are incompatible as an IS mapping.`);
|
|
40512
40613
|
}
|
|
40513
40614
|
|
|
40514
|
-
throw new Error (`Field '${field .getName ()}' and '${reference .getName ()}' in PROTO ${this .
|
|
40615
|
+
throw new Error (`Field '${field .getName ()}' and '${reference .getName ()}' in PROTO ${this .getOuterNode () .getName ()} have different types.`);
|
|
40515
40616
|
}
|
|
40516
40617
|
|
|
40517
40618
|
throw new Error("No name give after IS statement.");
|
|
@@ -40669,10 +40770,13 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
40669
40770
|
sfboolValues (field)
|
|
40670
40771
|
{
|
|
40671
40772
|
field .length = 0;
|
|
40672
|
-
|
|
40773
|
+
|
|
40774
|
+
const target = field .getTarget ();
|
|
40673
40775
|
|
|
40674
40776
|
while (this .bool ())
|
|
40675
|
-
|
|
40777
|
+
target .push (this .value);
|
|
40778
|
+
|
|
40779
|
+
return field .length !== 0;
|
|
40676
40780
|
},
|
|
40677
40781
|
sfcolorValue (field)
|
|
40678
40782
|
{
|
|
@@ -40741,12 +40845,15 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
40741
40845
|
sfcolorValues (field)
|
|
40742
40846
|
{
|
|
40743
40847
|
field .length = 0;
|
|
40744
|
-
field = field .getTarget ();
|
|
40745
40848
|
|
|
40746
|
-
const
|
|
40849
|
+
const
|
|
40850
|
+
target = field .getTarget (),
|
|
40851
|
+
value = this .Color3;
|
|
40747
40852
|
|
|
40748
40853
|
while (this .sfcolorValue (value))
|
|
40749
|
-
|
|
40854
|
+
target .push (value);
|
|
40855
|
+
|
|
40856
|
+
return field .length !== 0;
|
|
40750
40857
|
},
|
|
40751
40858
|
sfcolorrgbaValue (field)
|
|
40752
40859
|
{
|
|
@@ -40822,12 +40929,15 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
40822
40929
|
sfcolorrgbaValues (field)
|
|
40823
40930
|
{
|
|
40824
40931
|
field .length = 0;
|
|
40825
|
-
field = field .getTarget ();
|
|
40826
40932
|
|
|
40827
|
-
const
|
|
40933
|
+
const
|
|
40934
|
+
target = field .getTarget (),
|
|
40935
|
+
value = this .Color4;
|
|
40828
40936
|
|
|
40829
40937
|
while (this .sfcolorrgbaValue (value))
|
|
40830
|
-
|
|
40938
|
+
target .push (value);
|
|
40939
|
+
|
|
40940
|
+
return field .length !== 0;
|
|
40831
40941
|
},
|
|
40832
40942
|
sfdoubleValue (field)
|
|
40833
40943
|
{
|
|
@@ -40864,12 +40974,15 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
40864
40974
|
sfdoubleValues (field)
|
|
40865
40975
|
{
|
|
40866
40976
|
field .length = 0;
|
|
40867
|
-
field = field .getTarget ();
|
|
40868
40977
|
|
|
40869
|
-
const
|
|
40978
|
+
const
|
|
40979
|
+
target = field .getTarget (),
|
|
40980
|
+
unit = target .getUnit ();
|
|
40870
40981
|
|
|
40871
40982
|
while (this .double ())
|
|
40872
|
-
|
|
40983
|
+
target .push (this .fromUnit (unit, this .value));
|
|
40984
|
+
|
|
40985
|
+
return field .length !== 0;
|
|
40873
40986
|
},
|
|
40874
40987
|
sfimageValue (field)
|
|
40875
40988
|
{
|
|
@@ -40936,12 +41049,15 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
40936
41049
|
sfimageValues (field)
|
|
40937
41050
|
{
|
|
40938
41051
|
field .length = 0;
|
|
40939
|
-
field = field .getTarget ();
|
|
40940
41052
|
|
|
40941
|
-
const
|
|
41053
|
+
const
|
|
41054
|
+
target = field .getTarget (),
|
|
41055
|
+
value = this .SFImage;
|
|
40942
41056
|
|
|
40943
41057
|
while (this .sfimageValue (value))
|
|
40944
|
-
|
|
41058
|
+
target .push (value);
|
|
41059
|
+
|
|
41060
|
+
return field .length !== 0;
|
|
40945
41061
|
},
|
|
40946
41062
|
sfint32Value (field)
|
|
40947
41063
|
{
|
|
@@ -40978,10 +41094,13 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
40978
41094
|
sfint32Values (field)
|
|
40979
41095
|
{
|
|
40980
41096
|
field .length = 0;
|
|
40981
|
-
|
|
41097
|
+
|
|
41098
|
+
const target = field .getTarget ();
|
|
40982
41099
|
|
|
40983
41100
|
while (this .int32 ())
|
|
40984
|
-
|
|
41101
|
+
target .push (this .value);
|
|
41102
|
+
|
|
41103
|
+
return field .length !== 0;
|
|
40985
41104
|
},
|
|
40986
41105
|
sfmatrix3Value (field)
|
|
40987
41106
|
{
|
|
@@ -41069,12 +41188,15 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
41069
41188
|
sfmatrix3Values (field)
|
|
41070
41189
|
{
|
|
41071
41190
|
field .length = 0;
|
|
41072
|
-
field = field .getTarget ();
|
|
41073
41191
|
|
|
41074
|
-
const
|
|
41192
|
+
const
|
|
41193
|
+
target = field .getTarget (),
|
|
41194
|
+
value = this .Matrix3;
|
|
41075
41195
|
|
|
41076
41196
|
while (this .sfmatrix3Value (value))
|
|
41077
|
-
|
|
41197
|
+
target .push (value);
|
|
41198
|
+
|
|
41199
|
+
return field .length !== 0;
|
|
41078
41200
|
},
|
|
41079
41201
|
sfmatrix4Value (field)
|
|
41080
41202
|
{
|
|
@@ -41204,12 +41326,15 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
41204
41326
|
sfmatrix4Values (field)
|
|
41205
41327
|
{
|
|
41206
41328
|
field .length = 0;
|
|
41207
|
-
field = field .getTarget ();
|
|
41208
41329
|
|
|
41209
|
-
const
|
|
41330
|
+
const
|
|
41331
|
+
target = field .getTarget (),
|
|
41332
|
+
value = this .Matrix4;
|
|
41210
41333
|
|
|
41211
41334
|
while (this .sfmatrix4Value (value))
|
|
41212
|
-
|
|
41335
|
+
target .push (value);
|
|
41336
|
+
|
|
41337
|
+
return field .length !== 0;
|
|
41213
41338
|
},
|
|
41214
41339
|
sfnodeValue (field)
|
|
41215
41340
|
{
|
|
@@ -41316,12 +41441,15 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
41316
41441
|
sfrotationValues (field)
|
|
41317
41442
|
{
|
|
41318
41443
|
field .length = 0;
|
|
41319
|
-
field = field .getTarget ();
|
|
41320
41444
|
|
|
41321
|
-
const
|
|
41445
|
+
const
|
|
41446
|
+
target = field .getTarget (),
|
|
41447
|
+
value = this .Rotation4;
|
|
41322
41448
|
|
|
41323
41449
|
while (this .sfrotationValue (value))
|
|
41324
|
-
|
|
41450
|
+
target .push (value);
|
|
41451
|
+
|
|
41452
|
+
return field .length !== 0;
|
|
41325
41453
|
},
|
|
41326
41454
|
sfstringValue (field)
|
|
41327
41455
|
{
|
|
@@ -41358,10 +41486,13 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
41358
41486
|
sfstringValues (field)
|
|
41359
41487
|
{
|
|
41360
41488
|
field .length = 0;
|
|
41361
|
-
|
|
41489
|
+
|
|
41490
|
+
const target = field .getTarget ();
|
|
41362
41491
|
|
|
41363
41492
|
while (this .string ())
|
|
41364
|
-
|
|
41493
|
+
target .push (this .value);
|
|
41494
|
+
|
|
41495
|
+
return field .length !== 0;
|
|
41365
41496
|
},
|
|
41366
41497
|
sfvec2Value (field, unit)
|
|
41367
41498
|
{
|
|
@@ -41407,14 +41538,16 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
41407
41538
|
sfvec2Values (field)
|
|
41408
41539
|
{
|
|
41409
41540
|
field .length = 0;
|
|
41410
|
-
field = field .getTarget ();
|
|
41411
41541
|
|
|
41412
41542
|
const
|
|
41413
|
-
|
|
41414
|
-
|
|
41543
|
+
target = field .getTarget (),
|
|
41544
|
+
value = this .Vector2,
|
|
41545
|
+
unit = target .getUnit ();
|
|
41415
41546
|
|
|
41416
41547
|
while (this .sfvec2Value (value, unit))
|
|
41417
|
-
|
|
41548
|
+
target .push (value);
|
|
41549
|
+
|
|
41550
|
+
return field .length !== 0;
|
|
41418
41551
|
},
|
|
41419
41552
|
sfvec3Value (field, unit)
|
|
41420
41553
|
{
|
|
@@ -41466,14 +41599,16 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
41466
41599
|
sfvec3Values (field)
|
|
41467
41600
|
{
|
|
41468
41601
|
field .length = 0;
|
|
41469
|
-
field = field .getTarget ();
|
|
41470
41602
|
|
|
41471
41603
|
const
|
|
41472
|
-
|
|
41473
|
-
|
|
41604
|
+
target = field .getTarget (),
|
|
41605
|
+
value = this .Vector3,
|
|
41606
|
+
unit = target .getUnit ();
|
|
41474
41607
|
|
|
41475
41608
|
while (this .sfvec3Value (value, unit))
|
|
41476
|
-
|
|
41609
|
+
target .push (value);
|
|
41610
|
+
|
|
41611
|
+
return field .length !== 0;
|
|
41477
41612
|
},
|
|
41478
41613
|
sfvec4Value (field, unit)
|
|
41479
41614
|
{
|
|
@@ -41531,14 +41666,79 @@ Object .assign (Object .setPrototypeOf (VRMLParser .prototype, Parser_X3DParser
|
|
|
41531
41666
|
sfvec4Values (field)
|
|
41532
41667
|
{
|
|
41533
41668
|
field .length = 0;
|
|
41534
|
-
field = field .getTarget ();
|
|
41535
41669
|
|
|
41536
41670
|
const
|
|
41537
|
-
|
|
41538
|
-
|
|
41671
|
+
target = field .getTarget (),
|
|
41672
|
+
value = this .Vector4,
|
|
41673
|
+
unit = target .getUnit ();
|
|
41539
41674
|
|
|
41540
41675
|
while (this .sfvec4Value (value, unit))
|
|
41541
|
-
|
|
41676
|
+
target .push (value);
|
|
41677
|
+
|
|
41678
|
+
return field .length !== 0;
|
|
41679
|
+
},
|
|
41680
|
+
unknownValue ()
|
|
41681
|
+
{
|
|
41682
|
+
try
|
|
41683
|
+
{
|
|
41684
|
+
++ this .unknownLevel;
|
|
41685
|
+
|
|
41686
|
+
if (Grammar .IS .parse (this))
|
|
41687
|
+
{
|
|
41688
|
+
if (this .isInsideProtoDeclaration ())
|
|
41689
|
+
{
|
|
41690
|
+
if (this .Id ())
|
|
41691
|
+
return true;
|
|
41692
|
+
}
|
|
41693
|
+
}
|
|
41694
|
+
|
|
41695
|
+
if (this .mfunknownValue ())
|
|
41696
|
+
return true;
|
|
41697
|
+
|
|
41698
|
+
return false;
|
|
41699
|
+
}
|
|
41700
|
+
finally
|
|
41701
|
+
{
|
|
41702
|
+
-- this .unknownLevel;
|
|
41703
|
+
}
|
|
41704
|
+
},
|
|
41705
|
+
sfunknownValue ()
|
|
41706
|
+
{
|
|
41707
|
+
if (this .sfboolValue (new x_ite_Fields .SFBool ()))
|
|
41708
|
+
return true;
|
|
41709
|
+
|
|
41710
|
+
if (this .sfdoubleValues (new x_ite_Fields .MFFloat ()))
|
|
41711
|
+
return true;
|
|
41712
|
+
|
|
41713
|
+
if (this .sfstringValue (new x_ite_Fields .SFString ()))
|
|
41714
|
+
return true;
|
|
41715
|
+
|
|
41716
|
+
if (this .sfnodeValue (new x_ite_Fields .SFNode ()))
|
|
41717
|
+
return true;
|
|
41718
|
+
|
|
41719
|
+
return false;
|
|
41720
|
+
},
|
|
41721
|
+
mfunknownValue ()
|
|
41722
|
+
{
|
|
41723
|
+
if (this .sfunknownValue ())
|
|
41724
|
+
return true;
|
|
41725
|
+
|
|
41726
|
+
if (Grammar .OpenBracket .parse (this))
|
|
41727
|
+
{
|
|
41728
|
+
this .sfunknownValues ();
|
|
41729
|
+
|
|
41730
|
+
if (Grammar .CloseBracket .parse (this))
|
|
41731
|
+
return true;
|
|
41732
|
+
|
|
41733
|
+
throw new Error ("Expected ']'.");
|
|
41734
|
+
}
|
|
41735
|
+
|
|
41736
|
+
return false;
|
|
41737
|
+
},
|
|
41738
|
+
sfunknownValues ()
|
|
41739
|
+
{
|
|
41740
|
+
while (this .sfunknownValue ())
|
|
41741
|
+
;
|
|
41542
41742
|
},
|
|
41543
41743
|
accessTypeToString (accessType)
|
|
41544
41744
|
{
|
|
@@ -41622,7 +41822,7 @@ const VRMLParser_default_ = VRMLParser;
|
|
|
41622
41822
|
x_ite_Namespace .add ("VRMLParser", "x_ite/Parser/VRMLParser", VRMLParser_default_);
|
|
41623
41823
|
/* harmony default export */ const Parser_VRMLParser = (VRMLParser_default_);
|
|
41624
41824
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/XMLParser.js
|
|
41625
|
-
/* provided dependency */ var XMLParser_$ = __webpack_require__(
|
|
41825
|
+
/* provided dependency */ var XMLParser_$ = __webpack_require__(831);
|
|
41626
41826
|
/*******************************************************************************
|
|
41627
41827
|
*
|
|
41628
41828
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -42117,13 +42317,11 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
|
|
|
42117
42317
|
case "ProtoBody":
|
|
42118
42318
|
case "PROTOBODY":
|
|
42119
42319
|
{
|
|
42120
|
-
this .pushPrototype (proto);
|
|
42121
42320
|
this .pushExecutionContext (proto .getBody ());
|
|
42122
42321
|
this .pushParent (proto);
|
|
42123
42322
|
this .protoBodyElement (childNode);
|
|
42124
42323
|
this .popParent ();
|
|
42125
42324
|
this .popExecutionContext ();
|
|
42126
|
-
this .popPrototype ();
|
|
42127
42325
|
break;
|
|
42128
42326
|
}
|
|
42129
42327
|
default:
|
|
@@ -42215,7 +42413,7 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
|
|
|
42215
42413
|
},
|
|
42216
42414
|
isElement (xmlElement)
|
|
42217
42415
|
{
|
|
42218
|
-
if (this .
|
|
42416
|
+
if (this .isInsideProtoDeclaration ())
|
|
42219
42417
|
{
|
|
42220
42418
|
for (const childNode of xmlElement .childNodes)
|
|
42221
42419
|
this .isElementChild (childNode);
|
|
@@ -42250,7 +42448,7 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
|
|
|
42250
42448
|
|
|
42251
42449
|
const
|
|
42252
42450
|
node = this .getParent (),
|
|
42253
|
-
proto = this .
|
|
42451
|
+
proto = this .getOuterNode ();
|
|
42254
42452
|
|
|
42255
42453
|
if (!(node instanceof Core_X3DNode))
|
|
42256
42454
|
return;
|
|
@@ -42298,7 +42496,7 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
|
|
|
42298
42496
|
this .pushParent (node);
|
|
42299
42497
|
this .childrenElements (xmlElement);
|
|
42300
42498
|
|
|
42301
|
-
if (!this .
|
|
42499
|
+
if (!this .isInsideProtoDeclaration ())
|
|
42302
42500
|
node .setup ();
|
|
42303
42501
|
|
|
42304
42502
|
this .popParent ();
|
|
@@ -42378,7 +42576,7 @@ Object .assign (Object .setPrototypeOf (XMLParser .prototype, Parser_X3DParser .
|
|
|
42378
42576
|
this .nodeAttributes (xmlElement, node);
|
|
42379
42577
|
this .childrenElements (xmlElement);
|
|
42380
42578
|
|
|
42381
|
-
if (!this .
|
|
42579
|
+
if (!this .isInsideProtoDeclaration ())
|
|
42382
42580
|
node .setup ();
|
|
42383
42581
|
|
|
42384
42582
|
this .popParent ();
|
|
@@ -43715,7 +43913,7 @@ const URLs_default_ = URLs;
|
|
|
43715
43913
|
x_ite_Namespace .add ("URLs", "x_ite/Browser/Networking/URLs", URLs_default_);
|
|
43716
43914
|
/* harmony default export */ const Networking_URLs = (URLs_default_);
|
|
43717
43915
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/GLTF2Parser.js
|
|
43718
|
-
/* provided dependency */ var GLTF2Parser_$ = __webpack_require__(
|
|
43916
|
+
/* provided dependency */ var GLTF2Parser_$ = __webpack_require__(831);
|
|
43719
43917
|
/*******************************************************************************
|
|
43720
43918
|
*
|
|
43721
43919
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -47016,7 +47214,7 @@ const GLTF2Parser_default_ = GLTF2Parser;
|
|
|
47016
47214
|
x_ite_Namespace .add ("GLTF2Parser", "x_ite/Parser/GLTF2Parser", GLTF2Parser_default_);
|
|
47017
47215
|
/* harmony default export */ const Parser_GLTF2Parser = (GLTF2Parser_default_);
|
|
47018
47216
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/GLB2Parser.js
|
|
47019
|
-
/* provided dependency */ var GLB2Parser_$ = __webpack_require__(
|
|
47217
|
+
/* provided dependency */ var GLB2Parser_$ = __webpack_require__(831);
|
|
47020
47218
|
/*******************************************************************************
|
|
47021
47219
|
*
|
|
47022
47220
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -47168,7 +47366,7 @@ const GLB2Parser_default_ = GLB2Parser;
|
|
|
47168
47366
|
x_ite_Namespace .add ("GLB2Parser", "x_ite/Parser/GLB2Parser", GLB2Parser_default_);
|
|
47169
47367
|
/* harmony default export */ const Parser_GLB2Parser = (GLB2Parser_default_);
|
|
47170
47368
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/OBJParser.js
|
|
47171
|
-
/* provided dependency */ var OBJParser_$ = __webpack_require__(
|
|
47369
|
+
/* provided dependency */ var OBJParser_$ = __webpack_require__(831);
|
|
47172
47370
|
/*******************************************************************************
|
|
47173
47371
|
*
|
|
47174
47372
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -50523,8 +50721,8 @@ const MatrixStack_default_ = MatrixStack;
|
|
|
50523
50721
|
x_ite_Namespace .add ("MatrixStack", "standard/Math/Utility/MatrixStack", MatrixStack_default_);
|
|
50524
50722
|
/* harmony default export */ const Utility_MatrixStack = (MatrixStack_default_);
|
|
50525
50723
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/SVGParser.js
|
|
50526
|
-
/* provided dependency */ var SVGParser_$ = __webpack_require__(
|
|
50527
|
-
/* provided dependency */ var libtess = __webpack_require__(
|
|
50724
|
+
/* provided dependency */ var SVGParser_$ = __webpack_require__(831);
|
|
50725
|
+
/* provided dependency */ var libtess = __webpack_require__(864);
|
|
50528
50726
|
/*******************************************************************************
|
|
50529
50727
|
*
|
|
50530
50728
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -53292,7 +53490,7 @@ const SVGParser_default_ = SVGParser;
|
|
|
53292
53490
|
x_ite_Namespace .add ("SVGParser", "x_ite/Parser/SVGParser", SVGParser_default_);
|
|
53293
53491
|
/* harmony default export */ const Parser_SVGParser = (SVGParser_default_);
|
|
53294
53492
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/GoldenGate.js
|
|
53295
|
-
/* provided dependency */ var GoldenGate_$ = __webpack_require__(
|
|
53493
|
+
/* provided dependency */ var GoldenGate_$ = __webpack_require__(831);
|
|
53296
53494
|
/*******************************************************************************
|
|
53297
53495
|
*
|
|
53298
53496
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -53629,7 +53827,7 @@ const Plane3_default_ = Plane3;
|
|
|
53629
53827
|
x_ite_Namespace .add ("Plane3", "standard/Math/Geometry/Plane3", Plane3_default_);
|
|
53630
53828
|
/* harmony default export */ const Geometry_Plane3 = (Plane3_default_);
|
|
53631
53829
|
;// CONCATENATED MODULE: ./src/standard/Math/Geometry/Triangle3.js
|
|
53632
|
-
/* provided dependency */ var Triangle3_libtess = __webpack_require__(
|
|
53830
|
+
/* provided dependency */ var Triangle3_libtess = __webpack_require__(864);
|
|
53633
53831
|
/*******************************************************************************
|
|
53634
53832
|
*
|
|
53635
53833
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -61136,7 +61334,7 @@ const X3DTexture2DNode_default_ = X3DTexture2DNode;
|
|
|
61136
61334
|
x_ite_Namespace .add ("X3DTexture2DNode", "x_ite/Components/Texturing/X3DTexture2DNode", X3DTexture2DNode_default_);
|
|
61137
61335
|
/* harmony default export */ const Texturing_X3DTexture2DNode = (X3DTexture2DNode_default_);
|
|
61138
61336
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/ImageTexture.js
|
|
61139
|
-
/* provided dependency */ var ImageTexture_$ = __webpack_require__(
|
|
61337
|
+
/* provided dependency */ var ImageTexture_$ = __webpack_require__(831);
|
|
61140
61338
|
/*******************************************************************************
|
|
61141
61339
|
*
|
|
61142
61340
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -61277,7 +61475,7 @@ Object .assign (Object .setPrototypeOf (ImageTexture .prototype, Texturing_X3DTe
|
|
|
61277
61475
|
|
|
61278
61476
|
this .loadNext ();
|
|
61279
61477
|
},
|
|
61280
|
-
|
|
61478
|
+
setKTXTexture (texture)
|
|
61281
61479
|
{
|
|
61282
61480
|
if (texture .target !== this .getTarget ())
|
|
61283
61481
|
return this .setError ({ type: "Invalid KTX texture target, must be 'TEXTURE_2D'." });
|
|
@@ -61304,7 +61502,7 @@ Object .assign (Object .setPrototypeOf (ImageTexture .prototype, Texturing_X3DTe
|
|
|
61304
61502
|
this .setError ({ type: error .message });
|
|
61305
61503
|
}
|
|
61306
61504
|
},
|
|
61307
|
-
|
|
61505
|
+
setImage ()
|
|
61308
61506
|
{
|
|
61309
61507
|
if (DEVELOPMENT)
|
|
61310
61508
|
{
|
|
@@ -61362,7 +61560,7 @@ Object .assign (Object .setPrototypeOf (ImageTexture .prototype, Texturing_X3DTe
|
|
|
61362
61560
|
// Upload image to GPU.
|
|
61363
61561
|
|
|
61364
61562
|
this .setTextureFromData (width, height, this ._colorSpaceConversion .getValue (), this .isTransparent (), image);
|
|
61365
|
-
this .setTransparent (this .isImageTransparent (
|
|
61563
|
+
this .setTransparent (this .isImageTransparent (this .getTextureData (this .getTexture (), width, height)));
|
|
61366
61564
|
this .setLoadState (Base_X3DConstants .COMPLETE_STATE);
|
|
61367
61565
|
this .addNodeEvent ();
|
|
61368
61566
|
}
|
|
@@ -61373,7 +61571,7 @@ Object .assign (Object .setPrototypeOf (ImageTexture .prototype, Texturing_X3DTe
|
|
|
61373
61571
|
this .setError ({ type: error .message });
|
|
61374
61572
|
}
|
|
61375
61573
|
},
|
|
61376
|
-
|
|
61574
|
+
getTextureData (texture, width, height)
|
|
61377
61575
|
{
|
|
61378
61576
|
const
|
|
61379
61577
|
gl = this .getBrowser () .getContext (),
|
|
@@ -61382,7 +61580,7 @@ Object .assign (Object .setPrototypeOf (ImageTexture .prototype, Texturing_X3DTe
|
|
|
61382
61580
|
|
|
61383
61581
|
gl .bindFramebuffer (gl .FRAMEBUFFER, framebuffer);
|
|
61384
61582
|
gl .framebufferTexture2D (gl .FRAMEBUFFER, gl .COLOR_ATTACHMENT0, gl .TEXTURE_2D, texture, 0);
|
|
61385
|
-
|
|
61583
|
+
gl .readPixels (0, 0, width, height, gl .RGBA, gl .UNSIGNED_BYTE, data);
|
|
61386
61584
|
gl .deleteFramebuffer (framebuffer);
|
|
61387
61585
|
|
|
61388
61586
|
return data;
|
|
@@ -65723,7 +65921,7 @@ const X3DWorld_default_ = X3DWorld;
|
|
|
65723
65921
|
x_ite_Namespace .add ("X3DWorld", "x_ite/Execution/X3DWorld", X3DWorld_default_);
|
|
65724
65922
|
/* harmony default export */ const Execution_X3DWorld = (X3DWorld_default_);
|
|
65725
65923
|
;// CONCATENATED MODULE: ./src/x_ite/InputOutput/FileLoader.js
|
|
65726
|
-
/* provided dependency */ var FileLoader_$ = __webpack_require__(
|
|
65924
|
+
/* provided dependency */ var FileLoader_$ = __webpack_require__(831);
|
|
65727
65925
|
/*******************************************************************************
|
|
65728
65926
|
*
|
|
65729
65927
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -66717,9 +66915,9 @@ function X3DRoute (executionContext, sourceNode, sourceField, destinationNode, d
|
|
|
66717
66915
|
Base_X3DObject .call (this, executionContext);
|
|
66718
66916
|
|
|
66719
66917
|
this [X3DRoute_executionContext] = executionContext;
|
|
66720
|
-
this [_sourceNode] =
|
|
66918
|
+
this [_sourceNode] = sourceNode;
|
|
66721
66919
|
this [_sourceField] = sourceField;
|
|
66722
|
-
this [_destinationNode] =
|
|
66920
|
+
this [_destinationNode] = destinationNode;
|
|
66723
66921
|
this [_destinationField] = destinationField;
|
|
66724
66922
|
|
|
66725
66923
|
// Must connect in every context, to make X3DBaseNode.hasRoutes work.
|
|
@@ -66743,7 +66941,7 @@ Object .assign (Object .setPrototypeOf (X3DRoute .prototype, Base_X3DObject .pro
|
|
|
66743
66941
|
getSourceNode ()
|
|
66744
66942
|
{
|
|
66745
66943
|
/// SAI
|
|
66746
|
-
return this [_sourceNode]
|
|
66944
|
+
return this [_sourceNode];
|
|
66747
66945
|
},
|
|
66748
66946
|
getSourceField ()
|
|
66749
66947
|
{
|
|
@@ -66753,7 +66951,7 @@ Object .assign (Object .setPrototypeOf (X3DRoute .prototype, Base_X3DObject .pro
|
|
|
66753
66951
|
getDestinationNode ()
|
|
66754
66952
|
{
|
|
66755
66953
|
/// SAI
|
|
66756
|
-
return this [_destinationNode]
|
|
66954
|
+
return this [_destinationNode];
|
|
66757
66955
|
},
|
|
66758
66956
|
getDestinationField ()
|
|
66759
66957
|
{
|
|
@@ -66922,7 +67120,7 @@ Object .defineProperties (X3DRoute .prototype,
|
|
|
66922
67120
|
{
|
|
66923
67121
|
get ()
|
|
66924
67122
|
{
|
|
66925
|
-
return this [_sourceNode];
|
|
67123
|
+
return Fields_SFNodeCache .get (this [_sourceNode]);
|
|
66926
67124
|
},
|
|
66927
67125
|
enumerable: true,
|
|
66928
67126
|
},
|
|
@@ -66938,7 +67136,7 @@ Object .defineProperties (X3DRoute .prototype,
|
|
|
66938
67136
|
{
|
|
66939
67137
|
get ()
|
|
66940
67138
|
{
|
|
66941
|
-
return this [_destinationNode];
|
|
67139
|
+
return Fields_SFNodeCache .get (this [_destinationNode]);
|
|
66942
67140
|
},
|
|
66943
67141
|
enumerable: true,
|
|
66944
67142
|
},
|
|
@@ -67437,6 +67635,10 @@ Object .assign (Object .setPrototypeOf (X3DExecutionContext .prototype, Base_X3D
|
|
|
67437
67635
|
{
|
|
67438
67636
|
return this [_importedNodes];
|
|
67439
67637
|
},
|
|
67638
|
+
getUniqueImportName (name)
|
|
67639
|
+
{
|
|
67640
|
+
return getUniqueName (this [_importedNodes], name);
|
|
67641
|
+
},
|
|
67440
67642
|
getLocalNode (name)
|
|
67441
67643
|
{
|
|
67442
67644
|
name = String (name);
|
|
@@ -67450,7 +67652,7 @@ Object .assign (Object .setPrototypeOf (X3DExecutionContext .prototype, Base_X3D
|
|
|
67450
67652
|
const importedNode = this [_importedNodes] .get (name);
|
|
67451
67653
|
|
|
67452
67654
|
if (importedNode)
|
|
67453
|
-
return
|
|
67655
|
+
return importedNode;
|
|
67454
67656
|
|
|
67455
67657
|
throw new Error (`Unknown named or imported node '${name}'.`);
|
|
67456
67658
|
}
|
|
@@ -67631,28 +67833,28 @@ Object .assign (Object .setPrototypeOf (X3DExecutionContext .prototype, Base_X3D
|
|
|
67631
67833
|
},
|
|
67632
67834
|
addRoute (sourceNode, sourceField, destinationNode, destinationField)
|
|
67633
67835
|
{
|
|
67836
|
+
let
|
|
67837
|
+
importedSourceNode = sourceNode instanceof Execution_X3DImportedNode ? sourceNode : null,
|
|
67838
|
+
importedDestinationNode = destinationNode instanceof Execution_X3DImportedNode ? destinationNode : null;
|
|
67839
|
+
|
|
67634
67840
|
sourceNode = Base_X3DCast (Base_X3DConstants .X3DNode, sourceNode, false);
|
|
67635
67841
|
sourceField = String (sourceField);
|
|
67636
67842
|
destinationNode = Base_X3DCast (Base_X3DConstants .X3DNode, destinationNode, false);
|
|
67637
67843
|
destinationField = String (destinationField);
|
|
67638
67844
|
|
|
67639
|
-
if (!sourceNode)
|
|
67845
|
+
if (!(sourceNode || importedSourceNode))
|
|
67640
67846
|
throw new Error ("Bad ROUTE specification: source node must be of type X3DNode.");
|
|
67641
67847
|
|
|
67642
|
-
if (!destinationNode)
|
|
67848
|
+
if (!(destinationNode || importedDestinationNode))
|
|
67643
67849
|
throw new Error ("Bad ROUTE specification: destination node must be of type X3DNode.");
|
|
67644
67850
|
|
|
67645
67851
|
// Imported nodes handling.
|
|
67646
67852
|
|
|
67647
|
-
let
|
|
67648
|
-
importedSourceNode = sourceNode instanceof Execution_X3DImportedNode ? sourceNode : null,
|
|
67649
|
-
importedDestinationNode = destinationNode instanceof Execution_X3DImportedNode ? destinationNode : null;
|
|
67650
|
-
|
|
67651
67853
|
try
|
|
67652
67854
|
{
|
|
67653
67855
|
// If sourceNode is shared node try to find the corresponding X3DImportedNode.
|
|
67654
|
-
if (sourceNode .getExecutionContext () !== this)
|
|
67655
|
-
importedSourceNode = this .getLocalNode (this .getLocalName (sourceNode))
|
|
67856
|
+
if (sourceNode && sourceNode .getExecutionContext () !== this)
|
|
67857
|
+
importedSourceNode = this .getLocalNode (this .getLocalName (sourceNode));
|
|
67656
67858
|
}
|
|
67657
67859
|
catch
|
|
67658
67860
|
{
|
|
@@ -67662,8 +67864,8 @@ Object .assign (Object .setPrototypeOf (X3DExecutionContext .prototype, Base_X3D
|
|
|
67662
67864
|
try
|
|
67663
67865
|
{
|
|
67664
67866
|
// If destinationNode is shared node try to find the corresponding X3DImportedNode.
|
|
67665
|
-
if (destinationNode .getExecutionContext () !== this)
|
|
67666
|
-
importedDestinationNode = this .getLocalNode (this .getLocalName (destinationNode))
|
|
67867
|
+
if (destinationNode && destinationNode .getExecutionContext () !== this)
|
|
67868
|
+
importedDestinationNode = this .getLocalNode (this .getLocalName (destinationNode));
|
|
67667
67869
|
}
|
|
67668
67870
|
catch
|
|
67669
67871
|
{
|
|
@@ -67683,21 +67885,17 @@ Object .assign (Object .setPrototypeOf (X3DExecutionContext .prototype, Base_X3D
|
|
|
67683
67885
|
{
|
|
67684
67886
|
importedDestinationNode .addRoute (sourceNode, sourceField, importedDestinationNode, destinationField);
|
|
67685
67887
|
}
|
|
67686
|
-
|
|
67687
|
-
|
|
67688
|
-
|
|
67689
|
-
return;
|
|
67690
|
-
|
|
67691
|
-
// Create route and return.
|
|
67692
|
-
|
|
67693
|
-
return this .addSimpleRoute (sourceNode, sourceField, destinationNode, destinationField);
|
|
67888
|
+
else
|
|
67889
|
+
{
|
|
67890
|
+
// Create route and return.
|
|
67891
|
+
return this .addSimpleRoute (sourceNode, sourceField, destinationNode, destinationField);
|
|
67892
|
+
}
|
|
67694
67893
|
},
|
|
67695
67894
|
addSimpleRoute (sourceNode, sourceField, destinationNode, destinationField)
|
|
67696
67895
|
{
|
|
67697
|
-
// Source and dest node are here X3DBaseNode.
|
|
67698
|
-
|
|
67699
67896
|
try
|
|
67700
67897
|
{
|
|
67898
|
+
// Source and dest node must be here X3DNode, no check here.
|
|
67701
67899
|
// Private function.
|
|
67702
67900
|
// Create route and return.
|
|
67703
67901
|
|
|
@@ -67768,7 +67966,7 @@ Object .assign (Object .setPrototypeOf (X3DExecutionContext .prototype, Base_X3D
|
|
|
67768
67966
|
{
|
|
67769
67967
|
// If sourceNode is shared node try to find the corresponding X3DImportedNode.
|
|
67770
67968
|
if (sourceNode .getValue () .getExecutionContext () !== this)
|
|
67771
|
-
importedSourceNode = this .getLocalNode (this .getLocalName (sourceNode))
|
|
67969
|
+
importedSourceNode = this .getLocalNode (this .getLocalName (sourceNode));
|
|
67772
67970
|
}
|
|
67773
67971
|
catch
|
|
67774
67972
|
{
|
|
@@ -67779,7 +67977,7 @@ Object .assign (Object .setPrototypeOf (X3DExecutionContext .prototype, Base_X3D
|
|
|
67779
67977
|
{
|
|
67780
67978
|
// If destinationNode is shared node try to find the corresponding X3DImportedNode.
|
|
67781
67979
|
if (destinationNode .getValue () .getExecutionContext () !== this)
|
|
67782
|
-
importedDestinationNode = this .getLocalNode (this .getLocalName (destinationNode))
|
|
67980
|
+
importedDestinationNode = this .getLocalNode (this .getLocalName (destinationNode));
|
|
67783
67981
|
}
|
|
67784
67982
|
catch
|
|
67785
67983
|
{
|
|
@@ -89413,7 +89611,7 @@ const X3DShaderNode_default_ = X3DShaderNode;
|
|
|
89413
89611
|
x_ite_Namespace .add ("X3DShaderNode", "x_ite/Components/Shaders/X3DShaderNode", X3DShaderNode_default_);
|
|
89414
89612
|
/* harmony default export */ const Shaders_X3DShaderNode = (X3DShaderNode_default_);
|
|
89415
89613
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js
|
|
89416
|
-
/* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(
|
|
89614
|
+
/* provided dependency */ var X3DProgrammableShaderObject_$ = __webpack_require__(831);
|
|
89417
89615
|
/*******************************************************************************
|
|
89418
89616
|
*
|
|
89419
89617
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -95054,7 +95252,7 @@ const ShaderCompiler_default_ = ShaderCompiler;
|
|
|
95054
95252
|
x_ite_Namespace .add ("ShaderCompiler", "x_ite/Browser/Shaders/ShaderCompiler", ShaderCompiler_default_);
|
|
95055
95253
|
/* harmony default export */ const Shaders_ShaderCompiler = (ShaderCompiler_default_);
|
|
95056
95254
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Shaders/ShaderPart.js
|
|
95057
|
-
/* provided dependency */ var ShaderPart_$ = __webpack_require__(
|
|
95255
|
+
/* provided dependency */ var ShaderPart_$ = __webpack_require__(831);
|
|
95058
95256
|
/*******************************************************************************
|
|
95059
95257
|
*
|
|
95060
95258
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -95711,7 +95909,7 @@ const X3DAppearanceNode_default_ = X3DAppearanceNode;
|
|
|
95711
95909
|
x_ite_Namespace .add ("X3DAppearanceNode", "x_ite/Components/Shape/X3DAppearanceNode", X3DAppearanceNode_default_);
|
|
95712
95910
|
/* harmony default export */ const Shape_X3DAppearanceNode = (X3DAppearanceNode_default_);
|
|
95713
95911
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Shape/Appearance.js
|
|
95714
|
-
/* provided dependency */ var Appearance_$ = __webpack_require__(
|
|
95912
|
+
/* provided dependency */ var Appearance_$ = __webpack_require__(831);
|
|
95715
95913
|
/*******************************************************************************
|
|
95716
95914
|
*
|
|
95717
95915
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -99129,7 +99327,7 @@ const Components_Shape_default_ = {
|
|
|
99129
99327
|
x_ite_Namespace .add ("Shape", "x_ite/Components/Shape", Components_Shape_default_);
|
|
99130
99328
|
/* harmony default export */ const Components_Shape = (Components_Shape_default_);
|
|
99131
99329
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/X3DSoundProcessingNode.js
|
|
99132
|
-
/* provided dependency */ var X3DSoundProcessingNode_$ = __webpack_require__(
|
|
99330
|
+
/* provided dependency */ var X3DSoundProcessingNode_$ = __webpack_require__(831);
|
|
99133
99331
|
/*******************************************************************************
|
|
99134
99332
|
*
|
|
99135
99333
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -99769,7 +99967,7 @@ const X3DSoundSourceNode_default_ = X3DSoundSourceNode;
|
|
|
99769
99967
|
x_ite_Namespace .add ("X3DSoundSourceNode", "x_ite/Components/Sound/X3DSoundSourceNode", X3DSoundSourceNode_default_);
|
|
99770
99968
|
/* harmony default export */ const Sound_X3DSoundSourceNode = (X3DSoundSourceNode_default_);
|
|
99771
99969
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/AudioClip.js
|
|
99772
|
-
/* provided dependency */ var AudioClip_$ = __webpack_require__(
|
|
99970
|
+
/* provided dependency */ var AudioClip_$ = __webpack_require__(831);
|
|
99773
99971
|
/*******************************************************************************
|
|
99774
99972
|
*
|
|
99775
99973
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -100071,7 +100269,7 @@ const X3DSoundNode_default_ = X3DSoundNode;
|
|
|
100071
100269
|
x_ite_Namespace .add ("X3DSoundNode", "x_ite/Components/Sound/X3DSoundNode", X3DSoundNode_default_);
|
|
100072
100270
|
/* harmony default export */ const Sound_X3DSoundNode = (X3DSoundNode_default_);
|
|
100073
100271
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/X3DSoundDestinationNode.js
|
|
100074
|
-
/* provided dependency */ var X3DSoundDestinationNode_$ = __webpack_require__(
|
|
100272
|
+
/* provided dependency */ var X3DSoundDestinationNode_$ = __webpack_require__(831);
|
|
100075
100273
|
/*******************************************************************************
|
|
100076
100274
|
*
|
|
100077
100275
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -101721,7 +101919,7 @@ const ListenerPointSource_default_ = ListenerPointSource;
|
|
|
101721
101919
|
x_ite_Namespace .add ("ListenerPointSource", "x_ite/Components/Sound/ListenerPointSource", ListenerPointSource_default_);
|
|
101722
101920
|
/* harmony default export */ const Sound_ListenerPointSource = (ListenerPointSource_default_);
|
|
101723
101921
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/MicrophoneSource.js
|
|
101724
|
-
/* provided dependency */ var MicrophoneSource_$ = __webpack_require__(
|
|
101922
|
+
/* provided dependency */ var MicrophoneSource_$ = __webpack_require__(831);
|
|
101725
101923
|
/*******************************************************************************
|
|
101726
101924
|
*
|
|
101727
101925
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -103390,8 +103588,8 @@ const GifMedia_default_ = GifMedia;
|
|
|
103390
103588
|
x_ite_Namespace .add ("GifMedia", "x_ite/Browser/Texturing/GifMedia", GifMedia_default_);
|
|
103391
103589
|
/* harmony default export */ const Texturing_GifMedia = (GifMedia_default_);
|
|
103392
103590
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/MovieTexture.js
|
|
103393
|
-
/* provided dependency */ var MovieTexture_$ = __webpack_require__(
|
|
103394
|
-
/* provided dependency */ var SuperGif = __webpack_require__(
|
|
103591
|
+
/* provided dependency */ var MovieTexture_$ = __webpack_require__(831);
|
|
103592
|
+
/* provided dependency */ var SuperGif = __webpack_require__(698);
|
|
103395
103593
|
/*******************************************************************************
|
|
103396
103594
|
*
|
|
103397
103595
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -106089,74 +106287,74 @@ const Context =
|
|
|
106089
106287
|
});
|
|
106090
106288
|
}
|
|
106091
106289
|
|
|
106092
|
-
// Async functions
|
|
106290
|
+
// // Async functions, DOES'NT WORK WELL WITH OPERA!!!
|
|
106093
106291
|
|
|
106094
|
-
Object .assign (gl, gl .getVersion () === 1
|
|
106095
|
-
?
|
|
106096
|
-
{
|
|
106097
|
-
|
|
106098
|
-
}
|
|
106099
|
-
:
|
|
106100
|
-
{
|
|
106101
|
-
|
|
106102
|
-
|
|
106103
|
-
|
|
106104
|
-
|
|
106105
|
-
|
|
106106
|
-
|
|
106107
|
-
|
|
106108
|
-
|
|
106109
|
-
|
|
106110
|
-
|
|
106111
|
-
|
|
106112
|
-
|
|
106113
|
-
|
|
106114
|
-
|
|
106115
|
-
|
|
106116
|
-
|
|
106117
|
-
|
|
106118
|
-
|
|
106119
|
-
|
|
106120
|
-
|
|
106121
|
-
|
|
106122
|
-
|
|
106123
|
-
|
|
106124
|
-
|
|
106125
|
-
|
|
106126
|
-
|
|
106127
|
-
|
|
106128
|
-
|
|
106129
|
-
|
|
106130
|
-
|
|
106131
|
-
|
|
106132
|
-
|
|
106133
|
-
|
|
106134
|
-
|
|
106135
|
-
|
|
106136
|
-
|
|
106137
|
-
|
|
106138
|
-
|
|
106139
|
-
|
|
106140
|
-
|
|
106141
|
-
|
|
106142
|
-
|
|
106143
|
-
|
|
106144
|
-
|
|
106145
|
-
|
|
106146
|
-
|
|
106147
|
-
|
|
106148
|
-
|
|
106149
|
-
|
|
106150
|
-
|
|
106151
|
-
|
|
106152
|
-
|
|
106153
|
-
|
|
106154
|
-
|
|
106155
|
-
|
|
106156
|
-
|
|
106157
|
-
|
|
106158
|
-
|
|
106159
|
-
});
|
|
106292
|
+
// Object .assign (gl, gl .getVersion () === 1
|
|
106293
|
+
// ?
|
|
106294
|
+
// {
|
|
106295
|
+
// readPixelsAsync: gl .readPixels,
|
|
106296
|
+
// }
|
|
106297
|
+
// :
|
|
106298
|
+
// {
|
|
106299
|
+
// clientWaitAsync (sync, flags, timeout)
|
|
106300
|
+
// {
|
|
106301
|
+
// return new Promise ((resolve, reject) =>
|
|
106302
|
+
// {
|
|
106303
|
+
// const check = () =>
|
|
106304
|
+
// {
|
|
106305
|
+
// const result = this .clientWaitSync (sync, flags, 0);
|
|
106306
|
+
|
|
106307
|
+
// switch (result)
|
|
106308
|
+
// {
|
|
106309
|
+
// case this .WAIT_FAILED:
|
|
106310
|
+
// {
|
|
106311
|
+
// reject (new Error ("clientWaitSync: WAIT_FAILED"));
|
|
106312
|
+
// return;
|
|
106313
|
+
// }
|
|
106314
|
+
// case this .TIMEOUT_EXPIRED:
|
|
106315
|
+
// {
|
|
106316
|
+
// setTimeout (check, timeout);
|
|
106317
|
+
// return;
|
|
106318
|
+
// }
|
|
106319
|
+
// default:
|
|
106320
|
+
// {
|
|
106321
|
+
// resolve ();
|
|
106322
|
+
// return;
|
|
106323
|
+
// }
|
|
106324
|
+
// }
|
|
106325
|
+
// };
|
|
106326
|
+
|
|
106327
|
+
// setTimeout (check);
|
|
106328
|
+
// });
|
|
106329
|
+
// },
|
|
106330
|
+
// getBufferSubDataAsync: async function (target, buffer, srcByteOffset, dstBuffer, /* optional */ dstOffset, /* optional */ length)
|
|
106331
|
+
// {
|
|
106332
|
+
// const sync = this .fenceSync (this .SYNC_GPU_COMMANDS_COMPLETE, 0);
|
|
106333
|
+
|
|
106334
|
+
// this .flush ();
|
|
106335
|
+
|
|
106336
|
+
// await this .clientWaitAsync (sync, 0, 10);
|
|
106337
|
+
|
|
106338
|
+
// this .deleteSync (sync);
|
|
106339
|
+
|
|
106340
|
+
// this .bindBuffer (target, buffer);
|
|
106341
|
+
// this .getBufferSubData (target, srcByteOffset, dstBuffer, dstOffset, length);
|
|
106342
|
+
// this .bindBuffer (target, null);
|
|
106343
|
+
// },
|
|
106344
|
+
// readPixelsAsync: async function (x, y, w, h, format, type, dest, dstOffset)
|
|
106345
|
+
// {
|
|
106346
|
+
// const buffer = this .createBuffer ();
|
|
106347
|
+
|
|
106348
|
+
// this .bindBuffer (this .PIXEL_PACK_BUFFER, buffer);
|
|
106349
|
+
// this .bufferData (this .PIXEL_PACK_BUFFER, dest .byteLength, this .STREAM_READ);
|
|
106350
|
+
// this .readPixels (x, y, w, h, format, type, 0);
|
|
106351
|
+
// this .bindBuffer (this .PIXEL_PACK_BUFFER, null);
|
|
106352
|
+
|
|
106353
|
+
// await this .getBufferSubDataAsync (this .PIXEL_PACK_BUFFER, buffer, 0, dest, dstOffset);
|
|
106354
|
+
|
|
106355
|
+
// this .deleteBuffer (buffer);
|
|
106356
|
+
// },
|
|
106357
|
+
// });
|
|
106160
106358
|
|
|
106161
106359
|
// Return context.
|
|
106162
106360
|
|
|
@@ -106666,7 +106864,7 @@ const gettext_default_ = gettext;
|
|
|
106666
106864
|
x_ite_Namespace .add ("gettext", "locale/gettext", gettext_default_);
|
|
106667
106865
|
/* harmony default export */ const locale_gettext = (gettext_default_);
|
|
106668
106866
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserTimings.js
|
|
106669
|
-
/* provided dependency */ var BrowserTimings_$ = __webpack_require__(
|
|
106867
|
+
/* provided dependency */ var BrowserTimings_$ = __webpack_require__(831);
|
|
106670
106868
|
/*******************************************************************************
|
|
106671
106869
|
*
|
|
106672
106870
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -107096,7 +107294,7 @@ const TextureQuality_default_ = TextureQuality;
|
|
|
107096
107294
|
x_ite_Namespace .add ("TextureQuality", "x_ite/Browser/Core/TextureQuality", TextureQuality_default_);
|
|
107097
107295
|
/* harmony default export */ const Core_TextureQuality = (TextureQuality_default_);
|
|
107098
107296
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserOptions.js
|
|
107099
|
-
/* provided dependency */ var BrowserOptions_$ = __webpack_require__(
|
|
107297
|
+
/* provided dependency */ var BrowserOptions_$ = __webpack_require__(831);
|
|
107100
107298
|
/*******************************************************************************
|
|
107101
107299
|
*
|
|
107102
107300
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -107686,7 +107884,7 @@ const RenderingProperties_default_ = RenderingProperties;
|
|
|
107686
107884
|
x_ite_Namespace .add ("RenderingProperties", "x_ite/Browser/Core/RenderingProperties", RenderingProperties_default_);
|
|
107687
107885
|
/* harmony default export */ const Core_RenderingProperties = (RenderingProperties_default_);
|
|
107688
107886
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/Notification.js
|
|
107689
|
-
/* provided dependency */ var Notification_$ = __webpack_require__(
|
|
107887
|
+
/* provided dependency */ var Notification_$ = __webpack_require__(831);
|
|
107690
107888
|
/*******************************************************************************
|
|
107691
107889
|
*
|
|
107692
107890
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -107809,8 +108007,8 @@ const Notification_default_ = Notification;
|
|
|
107809
108007
|
x_ite_Namespace .add ("Notification", "x_ite/Browser/Core/Notification", Notification_default_);
|
|
107810
108008
|
/* harmony default export */ const Core_Notification = (Notification_default_);
|
|
107811
108009
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/ContextMenu.js
|
|
107812
|
-
/* provided dependency */ var jquery_fullscreen = __webpack_require__(
|
|
107813
|
-
/* provided dependency */ var ContextMenu_$ = __webpack_require__(
|
|
108010
|
+
/* provided dependency */ var jquery_fullscreen = __webpack_require__(561);
|
|
108011
|
+
/* provided dependency */ var ContextMenu_$ = __webpack_require__(831);
|
|
107814
108012
|
/*******************************************************************************
|
|
107815
108013
|
*
|
|
107816
108014
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -109054,26 +109252,32 @@ x_ite_Namespace .add ("UnitInfoArray", "x_ite/Configuration/UnitInfoArray", Unit
|
|
|
109054
109252
|
|
|
109055
109253
|
|
|
109056
109254
|
const
|
|
109057
|
-
|
|
109058
|
-
|
|
109255
|
+
X3DExportedNode_executionContext = Symbol (),
|
|
109256
|
+
X3DExportedNode_exportedName = Symbol (),
|
|
109257
|
+
_localNode = Symbol ();
|
|
109059
109258
|
|
|
109060
|
-
function X3DExportedNode (exportedName, localNode)
|
|
109259
|
+
function X3DExportedNode (executionContext, exportedName, localNode)
|
|
109061
109260
|
{
|
|
109062
109261
|
Base_X3DObject .call (this);
|
|
109063
109262
|
|
|
109064
|
-
this [
|
|
109065
|
-
this [
|
|
109263
|
+
this [X3DExportedNode_executionContext] = executionContext;
|
|
109264
|
+
this [X3DExportedNode_exportedName] = exportedName;
|
|
109265
|
+
this [_localNode] = localNode;
|
|
109066
109266
|
}
|
|
109067
109267
|
|
|
109068
109268
|
Object .assign (Object .setPrototypeOf (X3DExportedNode .prototype, Base_X3DObject .prototype),
|
|
109069
109269
|
{
|
|
109270
|
+
getExecutionContext ()
|
|
109271
|
+
{
|
|
109272
|
+
return this [X3DExportedNode_executionContext];
|
|
109273
|
+
},
|
|
109070
109274
|
getExportedName ()
|
|
109071
109275
|
{
|
|
109072
109276
|
return this [X3DExportedNode_exportedName];
|
|
109073
109277
|
},
|
|
109074
109278
|
getLocalNode ()
|
|
109075
109279
|
{
|
|
109076
|
-
return this [_localNode]
|
|
109280
|
+
return this [_localNode];
|
|
109077
109281
|
},
|
|
109078
109282
|
toVRMLStream (generator)
|
|
109079
109283
|
{
|
|
@@ -109188,7 +109392,7 @@ Object .defineProperties (X3DExportedNode .prototype,
|
|
|
109188
109392
|
{
|
|
109189
109393
|
get ()
|
|
109190
109394
|
{
|
|
109191
|
-
return this [_localNode];
|
|
109395
|
+
return Fields_SFNodeCache .get (this [_localNode]);
|
|
109192
109396
|
},
|
|
109193
109397
|
enumerable: true,
|
|
109194
109398
|
},
|
|
@@ -109642,7 +109846,7 @@ Object .assign (Object .setPrototypeOf (X3DScene .prototype, Execution_X3DExecut
|
|
|
109642
109846
|
|
|
109643
109847
|
this .removeExportedNode (exportedName);
|
|
109644
109848
|
|
|
109645
|
-
const exportedNode = new Execution_X3DExportedNode (exportedName, node);
|
|
109849
|
+
const exportedNode = new Execution_X3DExportedNode (this, exportedName, node);
|
|
109646
109850
|
|
|
109647
109851
|
this [_exportedNodes] .add (exportedName, exportedNode);
|
|
109648
109852
|
|
|
@@ -110558,7 +110762,7 @@ const DataStorage_default_ = DataStorage;
|
|
|
110558
110762
|
x_ite_Namespace .add ("DataStorage", "standard/Utility/DataStorage", DataStorage_default_);
|
|
110559
110763
|
/* harmony default export */ const Utility_DataStorage = (DataStorage_default_);
|
|
110560
110764
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/X3DCoreContext.js
|
|
110561
|
-
/* provided dependency */ var X3DCoreContext_$ = __webpack_require__(
|
|
110765
|
+
/* provided dependency */ var X3DCoreContext_$ = __webpack_require__(831);
|
|
110562
110766
|
/*******************************************************************************
|
|
110563
110767
|
*
|
|
110564
110768
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -110769,10 +110973,6 @@ Object .assign (X3DCoreContext .prototype,
|
|
|
110769
110973
|
{
|
|
110770
110974
|
return this [_instanceId];
|
|
110771
110975
|
},
|
|
110772
|
-
isStrict ()
|
|
110773
|
-
{
|
|
110774
|
-
return false;
|
|
110775
|
-
},
|
|
110776
110976
|
getElement ()
|
|
110777
110977
|
{
|
|
110778
110978
|
return this [_element];
|
|
@@ -113085,8 +113285,8 @@ const X3DViewer_default_ = X3DViewer;
|
|
|
113085
113285
|
x_ite_Namespace .add ("X3DViewer", "x_ite/Browser/Navigation/X3DViewer", X3DViewer_default_);
|
|
113086
113286
|
/* harmony default export */ const Navigation_X3DViewer = (X3DViewer_default_);
|
|
113087
113287
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/ExamineViewer.js
|
|
113088
|
-
/* provided dependency */ var jquery_mousewheel = __webpack_require__(
|
|
113089
|
-
/* provided dependency */ var ExamineViewer_$ = __webpack_require__(
|
|
113288
|
+
/* provided dependency */ var jquery_mousewheel = __webpack_require__(471);
|
|
113289
|
+
/* provided dependency */ var ExamineViewer_$ = __webpack_require__(831);
|
|
113090
113290
|
/*******************************************************************************
|
|
113091
113291
|
*
|
|
113092
113292
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -113958,8 +114158,8 @@ const ExamineViewer_default_ = ExamineViewer;
|
|
|
113958
114158
|
x_ite_Namespace .add ("ExamineViewer", "x_ite/Browser/Navigation/ExamineViewer", ExamineViewer_default_);
|
|
113959
114159
|
/* harmony default export */ const Navigation_ExamineViewer = (ExamineViewer_default_);
|
|
113960
114160
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/X3DFlyViewer.js
|
|
113961
|
-
/* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(
|
|
113962
|
-
/* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(
|
|
114161
|
+
/* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(471);
|
|
114162
|
+
/* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(831);
|
|
113963
114163
|
/*******************************************************************************
|
|
113964
114164
|
*
|
|
113965
114165
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -114968,8 +115168,8 @@ const FlyViewer_default_ = FlyViewer;
|
|
|
114968
115168
|
x_ite_Namespace .add ("FlyViewer", "x_ite/Browser/Navigation/FlyViewer", FlyViewer_default_);
|
|
114969
115169
|
/* harmony default export */ const Navigation_FlyViewer = (FlyViewer_default_);
|
|
114970
115170
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/PlaneViewer.js
|
|
114971
|
-
/* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(
|
|
114972
|
-
/* provided dependency */ var PlaneViewer_$ = __webpack_require__(
|
|
115171
|
+
/* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(471);
|
|
115172
|
+
/* provided dependency */ var PlaneViewer_$ = __webpack_require__(831);
|
|
114973
115173
|
/*******************************************************************************
|
|
114974
115174
|
*
|
|
114975
115175
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -115300,8 +115500,8 @@ const NoneViewer_default_ = NoneViewer;
|
|
|
115300
115500
|
x_ite_Namespace .add ("NoneViewer", "x_ite/Browser/Navigation/NoneViewer", NoneViewer_default_);
|
|
115301
115501
|
/* harmony default export */ const Navigation_NoneViewer = (NoneViewer_default_);
|
|
115302
115502
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/LookAtViewer.js
|
|
115303
|
-
/* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(
|
|
115304
|
-
/* provided dependency */ var LookAtViewer_$ = __webpack_require__(
|
|
115503
|
+
/* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(471);
|
|
115504
|
+
/* provided dependency */ var LookAtViewer_$ = __webpack_require__(831);
|
|
115305
115505
|
/*******************************************************************************
|
|
115306
115506
|
*
|
|
115307
115507
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -116440,8 +116640,8 @@ const X3DPickingContext_default_ = X3DPickingContext;
|
|
|
116440
116640
|
x_ite_Namespace .add ("X3DPickingContext", "x_ite/Browser/Picking/X3DPickingContext", X3DPickingContext_default_);
|
|
116441
116641
|
/* harmony default export */ const Picking_X3DPickingContext = (X3DPickingContext_default_);
|
|
116442
116642
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js
|
|
116443
|
-
/* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(
|
|
116444
|
-
/* provided dependency */ var PointingDevice_$ = __webpack_require__(
|
|
116643
|
+
/* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(471);
|
|
116644
|
+
/* provided dependency */ var PointingDevice_$ = __webpack_require__(831);
|
|
116445
116645
|
/*******************************************************************************
|
|
116446
116646
|
*
|
|
116447
116647
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -117720,7 +117920,7 @@ const MultiSampleFrameBuffer_default_ = MultiSampleFrameBuffer;
|
|
|
117720
117920
|
x_ite_Namespace .add ("MultiSampleFrameBuffer", "x_ite/Rendering/MultiSampleFrameBuffer", MultiSampleFrameBuffer_default_);
|
|
117721
117921
|
/* harmony default export */ const Rendering_MultiSampleFrameBuffer = (MultiSampleFrameBuffer_default_);
|
|
117722
117922
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Rendering/X3DRenderingContext.js
|
|
117723
|
-
/* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(
|
|
117923
|
+
/* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(831);
|
|
117724
117924
|
/*******************************************************************************
|
|
117725
117925
|
*
|
|
117726
117926
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -118623,7 +118823,7 @@ const X3DSoundContext_default_ = X3DSoundContext;
|
|
|
118623
118823
|
x_ite_Namespace .add ("X3DSoundContext", "x_ite/Browser/Sound/X3DSoundContext", X3DSoundContext_default_);
|
|
118624
118824
|
/* harmony default export */ const Sound_X3DSoundContext = (X3DSoundContext_default_);
|
|
118625
118825
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Texturing/KTXDecoder.js
|
|
118626
|
-
/* provided dependency */ var KTXDecoder_$ = __webpack_require__(
|
|
118826
|
+
/* provided dependency */ var KTXDecoder_$ = __webpack_require__(831);
|
|
118627
118827
|
const KTXDecoder_default_ = class KTXDecoder
|
|
118628
118828
|
{
|
|
118629
118829
|
constructor (gl, externalKtxlib, scriptDir)
|
|
@@ -120176,7 +120376,7 @@ const Components_default_ = Components;
|
|
|
120176
120376
|
x_ite_Namespace .add ("Components", "x_ite/Components", Components_default_);
|
|
120177
120377
|
/* harmony default export */ const x_ite_Components = ((/* unused pure expression or super */ null && (Components_default_)));
|
|
120178
120378
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/DOMIntegration.js
|
|
120179
|
-
/* provided dependency */ var DOMIntegration_$ = __webpack_require__(
|
|
120379
|
+
/* provided dependency */ var DOMIntegration_$ = __webpack_require__(831);
|
|
120180
120380
|
/*******************************************************************************
|
|
120181
120381
|
* MIT License
|
|
120182
120382
|
*
|
|
@@ -120614,13 +120814,14 @@ x_ite_Namespace .add ("DOMIntegration", "x_ite/Browser/DOMIntegration", DOMInteg
|
|
|
120614
120814
|
|
|
120615
120815
|
|
|
120616
120816
|
|
|
120817
|
+
|
|
120617
120818
|
function ProfileInfo (name, title, providerURL, components)
|
|
120618
120819
|
{
|
|
120619
120820
|
Object .defineProperties (this,
|
|
120620
120821
|
{
|
|
120621
120822
|
name: { value: name, enumerable: true },
|
|
120622
120823
|
title: { value: title, enumerable: true },
|
|
120623
|
-
providerURL: { value: providerURL, enumerable: true },
|
|
120824
|
+
providerURL: { value: providerURL || Networking_URLs .getProviderURL (), enumerable: true },
|
|
120624
120825
|
components: { value: components, enumerable: true },
|
|
120625
120826
|
});
|
|
120626
120827
|
}
|
|
@@ -121115,13 +121316,11 @@ x_ite_Namespace .add ("SupportedComponents", "x_ite/Configuration/SupportedCompo
|
|
|
121115
121316
|
|
|
121116
121317
|
|
|
121117
121318
|
|
|
121118
|
-
|
|
121119
121319
|
const SupportedProfiles = new Configuration_ProfileInfoArray ();
|
|
121120
121320
|
|
|
121121
121321
|
SupportedProfiles .add ("CADInterchange",
|
|
121122
121322
|
{
|
|
121123
121323
|
title: "Computer-Aided Design (CAD) interchange",
|
|
121124
|
-
providerURL: Networking_URLs .getProviderURL (),
|
|
121125
121324
|
components: [
|
|
121126
121325
|
Configuration_SupportedComponents .get ("CADGeometry"),
|
|
121127
121326
|
Configuration_SupportedComponents .get ("Core"),
|
|
@@ -121139,7 +121338,6 @@ SupportedProfiles .add ("CADInterchange",
|
|
|
121139
121338
|
SupportedProfiles .add ("Core",
|
|
121140
121339
|
{
|
|
121141
121340
|
title: "Core",
|
|
121142
|
-
providerURL: Networking_URLs .getProviderURL (),
|
|
121143
121341
|
components: [
|
|
121144
121342
|
Configuration_SupportedComponents .get ("Core"),
|
|
121145
121343
|
],
|
|
@@ -121148,7 +121346,6 @@ SupportedProfiles .add ("Core",
|
|
|
121148
121346
|
SupportedProfiles .add ("Full",
|
|
121149
121347
|
{
|
|
121150
121348
|
title: "Full",
|
|
121151
|
-
providerURL: Networking_URLs .getProviderURL (),
|
|
121152
121349
|
components: [
|
|
121153
121350
|
//SupportedComponents .get ("Annotation"),
|
|
121154
121351
|
Configuration_SupportedComponents .get ("CADGeometry"),
|
|
@@ -121193,7 +121390,6 @@ SupportedProfiles .add ("Full",
|
|
|
121193
121390
|
SupportedProfiles .add ("Immersive",
|
|
121194
121391
|
{
|
|
121195
121392
|
title: "Immersive",
|
|
121196
|
-
providerURL: Networking_URLs .getProviderURL (),
|
|
121197
121393
|
components: [
|
|
121198
121394
|
Configuration_SupportedComponents .get ("Core"),
|
|
121199
121395
|
Configuration_SupportedComponents .get ("EnvironmentalEffects"),
|
|
@@ -121221,7 +121417,6 @@ SupportedProfiles .add ("Immersive",
|
|
|
121221
121417
|
SupportedProfiles .add ("Interactive",
|
|
121222
121418
|
{
|
|
121223
121419
|
title: "Interactive",
|
|
121224
|
-
providerURL: Networking_URLs .getProviderURL (),
|
|
121225
121420
|
components: [
|
|
121226
121421
|
Configuration_SupportedComponents .get ("Core"),
|
|
121227
121422
|
Configuration_SupportedComponents .get ("EnvironmentalEffects"),
|
|
@@ -121245,7 +121440,6 @@ SupportedProfiles .add ("Interactive",
|
|
|
121245
121440
|
SupportedProfiles .add ("Interchange",
|
|
121246
121441
|
{
|
|
121247
121442
|
title: "Interchange",
|
|
121248
|
-
providerURL: Networking_URLs .getProviderURL (),
|
|
121249
121443
|
components: [
|
|
121250
121444
|
Configuration_SupportedComponents .get ("Core"),
|
|
121251
121445
|
Configuration_SupportedComponents .get ("EnvironmentalEffects"),
|
|
@@ -121265,7 +121459,6 @@ SupportedProfiles .add ("Interchange",
|
|
|
121265
121459
|
SupportedProfiles .add ("MedicalInterchange",
|
|
121266
121460
|
{
|
|
121267
121461
|
title: "Medical interchange",
|
|
121268
|
-
providerURL: Networking_URLs .getProviderURL (),
|
|
121269
121462
|
components: [
|
|
121270
121463
|
Configuration_SupportedComponents .get ("Core"),
|
|
121271
121464
|
Configuration_SupportedComponents .get ("EnvironmentalEffects"),
|
|
@@ -121290,7 +121483,6 @@ SupportedProfiles .add ("MedicalInterchange",
|
|
|
121290
121483
|
SupportedProfiles .add ("MPEG-4",
|
|
121291
121484
|
{
|
|
121292
121485
|
title: "MPEG-4 interactive",
|
|
121293
|
-
providerURL: Networking_URLs .getProviderURL (),
|
|
121294
121486
|
components: [
|
|
121295
121487
|
Configuration_SupportedComponents .get ("Core"),
|
|
121296
121488
|
Configuration_SupportedComponents .get ("EnvironmentalEffects"),
|
|
@@ -121315,7 +121507,7 @@ const SupportedProfiles_default_ = SupportedProfiles;
|
|
|
121315
121507
|
x_ite_Namespace .add ("SupportedProfiles", "x_ite/Configuration/SupportedProfiles", SupportedProfiles_default_);
|
|
121316
121508
|
/* harmony default export */ const Configuration_SupportedProfiles = (SupportedProfiles_default_);
|
|
121317
121509
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/X3DBrowser.js
|
|
121318
|
-
/* provided dependency */ var X3DBrowser_$ = __webpack_require__(
|
|
121510
|
+
/* provided dependency */ var X3DBrowser_$ = __webpack_require__(831);
|
|
121319
121511
|
/*******************************************************************************
|
|
121320
121512
|
*
|
|
121321
121513
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -122396,7 +122588,7 @@ const X3DBrowser_default_ = X3DBrowser;
|
|
|
122396
122588
|
x_ite_Namespace .add ("X3DBrowser", "x_ite/Browser/X3DBrowser", X3DBrowser_default_);
|
|
122397
122589
|
/* harmony default export */ const Browser_X3DBrowser = (X3DBrowser_default_);
|
|
122398
122590
|
;// CONCATENATED MODULE: ./src/x_ite/X3DCanvasElement.js
|
|
122399
|
-
/* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(
|
|
122591
|
+
/* provided dependency */ var X3DCanvasElement_$ = __webpack_require__(831);
|
|
122400
122592
|
/*******************************************************************************
|
|
122401
122593
|
*
|
|
122402
122594
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -122528,8 +122720,8 @@ const X3DCanvasElement_default_ = X3DCanvasElement;
|
|
|
122528
122720
|
x_ite_Namespace .add ("X3DCanvasElement", "x_ite/X3DCanvasElement", X3DCanvasElement_default_);
|
|
122529
122721
|
/* harmony default export */ const x_ite_X3DCanvasElement = (X3DCanvasElement_default_);
|
|
122530
122722
|
;// CONCATENATED MODULE: ./src/lib/jquery.js
|
|
122531
|
-
/* provided dependency */ var jquery_$ = __webpack_require__(
|
|
122532
|
-
/* provided dependency */ var pako = __webpack_require__(
|
|
122723
|
+
/* provided dependency */ var jquery_$ = __webpack_require__(831);
|
|
122724
|
+
/* provided dependency */ var pako = __webpack_require__(295);
|
|
122533
122725
|
Object .assign (jquery_$,
|
|
122534
122726
|
{
|
|
122535
122727
|
decodeText (input)
|
|
@@ -122606,14 +122798,14 @@ const jquery_default_ = jquery_$;
|
|
|
122606
122798
|
x_ite_Namespace .add ("jquery", "lib/jquery", jquery_default_);
|
|
122607
122799
|
/* harmony default export */ const jquery = ((/* unused pure expression or super */ null && (jquery_default_)));
|
|
122608
122800
|
;// CONCATENATED MODULE: ./src/lib/libtess.js
|
|
122609
|
-
/* provided dependency */ var libtess_libtess = __webpack_require__(
|
|
122801
|
+
/* provided dependency */ var libtess_libtess = __webpack_require__(864);
|
|
122610
122802
|
const libtess_default_ = libtess_libtess;
|
|
122611
122803
|
;
|
|
122612
122804
|
|
|
122613
122805
|
x_ite_Namespace .add ("libtess", "lib/libtess", libtess_default_);
|
|
122614
122806
|
/* harmony default export */ const lib_libtess = ((/* unused pure expression or super */ null && (libtess_default_)));
|
|
122615
122807
|
;// CONCATENATED MODULE: ./src/x_ite/X3D.js
|
|
122616
|
-
/* provided dependency */ var X3D_$ = __webpack_require__(
|
|
122808
|
+
/* provided dependency */ var X3D_$ = __webpack_require__(831);
|
|
122617
122809
|
/*******************************************************************************
|
|
122618
122810
|
*
|
|
122619
122811
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -122867,92 +123059,6 @@ Object .assign (X3D,
|
|
|
122867
123059
|
|
|
122868
123060
|
/* harmony default export */ const x_ite_X3D = (X3D);
|
|
122869
123061
|
|
|
122870
|
-
;// CONCATENATED MODULE: ./src/shim.js
|
|
122871
|
-
/*******************************************************************************
|
|
122872
|
-
*
|
|
122873
|
-
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
122874
|
-
*
|
|
122875
|
-
* Copyright create3000, Scheffelstraße 31a, Leipzig, Germany 2011 - 2022.
|
|
122876
|
-
*
|
|
122877
|
-
* All rights reserved. Holger Seelig <holger.seelig@yahoo.de>.
|
|
122878
|
-
*
|
|
122879
|
-
* The copyright notice above does not evidence any actual of intended
|
|
122880
|
-
* publication of such source code, and is an unpublished work by create3000.
|
|
122881
|
-
* This material contains CONFIDENTIAL INFORMATION that is the property of
|
|
122882
|
-
* create3000.
|
|
122883
|
-
*
|
|
122884
|
-
* No permission is granted to copy, distribute, or create derivative works from
|
|
122885
|
-
* the contents of this software, in whole or in part, without the prior written
|
|
122886
|
-
* permission of create3000.
|
|
122887
|
-
*
|
|
122888
|
-
* NON-MILITARY USE ONLY
|
|
122889
|
-
*
|
|
122890
|
-
* All create3000 software are effectively free software with a non-military use
|
|
122891
|
-
* restriction. It is free. Well commented source is provided. You may reuse the
|
|
122892
|
-
* source in any way you please with the exception anything that uses it must be
|
|
122893
|
-
* marked to indicate is contains 'non-military use only' components.
|
|
122894
|
-
*
|
|
122895
|
-
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
122896
|
-
*
|
|
122897
|
-
* Copyright 2011 - 2022, Holger Seelig <holger.seelig@yahoo.de>.
|
|
122898
|
-
*
|
|
122899
|
-
* This file is part of the X_ITE Project.
|
|
122900
|
-
*
|
|
122901
|
-
* X_ITE is free software: you can redistribute it and/or modify it under the
|
|
122902
|
-
* terms of the GNU General Public License version 3 only, as published by the
|
|
122903
|
-
* Free Software Foundation.
|
|
122904
|
-
*
|
|
122905
|
-
* X_ITE is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
122906
|
-
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
122907
|
-
* A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
|
|
122908
|
-
* details (a copy is included in the LICENSE file that accompanied this code).
|
|
122909
|
-
*
|
|
122910
|
-
* You should have received a copy of the GNU General Public License version 3
|
|
122911
|
-
* along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
|
|
122912
|
-
* copy of the GPLv3 License.
|
|
122913
|
-
*
|
|
122914
|
-
* For Silvio, Joy and Adi.
|
|
122915
|
-
*
|
|
122916
|
-
******************************************************************************/
|
|
122917
|
-
|
|
122918
|
-
(() =>
|
|
122919
|
-
{
|
|
122920
|
-
// Added at February 2022
|
|
122921
|
-
// https://github.com/tc39/proposal-relative-indexing-method#polyfill
|
|
122922
|
-
|
|
122923
|
-
function at (n)
|
|
122924
|
-
{
|
|
122925
|
-
// ToInteger() abstract op
|
|
122926
|
-
n = Math.trunc(n) || 0;
|
|
122927
|
-
// Allow negative indexing from the end
|
|
122928
|
-
if (n < 0) n += this.length;
|
|
122929
|
-
// OOB access is guaranteed to return undefined
|
|
122930
|
-
if (n < 0 || n >= this.length) return undefined;
|
|
122931
|
-
// Otherwise, this is just normal property access
|
|
122932
|
-
return this[n];
|
|
122933
|
-
}
|
|
122934
|
-
|
|
122935
|
-
const TypedArray = Reflect .getPrototypeOf (Int8Array);
|
|
122936
|
-
for (const C of [Array, String, TypedArray])
|
|
122937
|
-
{
|
|
122938
|
-
if (C .prototype .at === undefined)
|
|
122939
|
-
{
|
|
122940
|
-
Object .defineProperty (C .prototype, "at",
|
|
122941
|
-
{
|
|
122942
|
-
value: at,
|
|
122943
|
-
writable: true,
|
|
122944
|
-
enumerable: false,
|
|
122945
|
-
configurable: true,
|
|
122946
|
-
});
|
|
122947
|
-
}
|
|
122948
|
-
}
|
|
122949
|
-
})();
|
|
122950
|
-
|
|
122951
|
-
const shim_default_ = undefined;
|
|
122952
|
-
;
|
|
122953
|
-
|
|
122954
|
-
x_ite_Namespace .add ("shim", "shim", shim_default_);
|
|
122955
|
-
/* harmony default export */ const shim = ((/* unused pure expression or super */ null && (shim_default_)));
|
|
122956
123062
|
;// CONCATENATED MODULE: ./src/x_ite.js
|
|
122957
123063
|
/*******************************************************************************
|
|
122958
123064
|
*
|
|
@@ -123007,7 +123113,7 @@ x_ite_Namespace .add ("shim", "shim", shim_default_);
|
|
|
123007
123113
|
|
|
123008
123114
|
// Assign X3D to global namespace.
|
|
123009
123115
|
|
|
123010
|
-
window [Symbol .for ("X_ITE.X3D-9.1.
|
|
123116
|
+
window [Symbol .for ("X_ITE.X3D-9.1.11")] = x_ite_X3D;
|
|
123011
123117
|
|
|
123012
123118
|
customElements .define ("x3d-canvas", x_ite_X3DCanvasElement);
|
|
123013
123119
|
|