x_ite 8.3.0 → 8.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -2
- package/build/bin/tests.pl +2 -0
- package/dist/assets/components/Annotation.js +13 -13
- package/dist/assets/components/Annotation.min.js +1 -1
- package/dist/assets/components/CADGeometry.js +13 -13
- 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 +18 -18
- 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 +24 -24
- 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 +19 -19
- package/dist/assets/components/Picking.min.js +1 -1
- package/dist/assets/components/ProjectiveTextureMapping.js +14 -14
- package/dist/assets/components/ProjectiveTextureMapping.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 +28 -28
- 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/Texturing3D.js +46 -46
- 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 +9 -9
- package/dist/assets/components/X_ITE.min.js +1 -1
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.js +445 -294
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.zip +0 -0
- package/docs/_config.yml +2 -1
- package/docs/_posts/custom-shaders.md +1 -1
- package/docs/_posts/dom-integration.md +52 -25
- package/docs/_posts/getting-started.md +6 -3
- package/docs/_posts/reference/field-services-and-objects.md +2 -34
- package/docs/_posts/tutorials/basic-nodes.md +2 -2
- package/docs/_posts/tutorials/building-a-x3d-world.md +20 -4
- package/docs/_posts/tutorials/building-primitive-shapes.md +4 -4
- package/docs/_posts/tutorials/creating-new-node-types.md +22 -0
- package/docs/_posts/tutorials/hello-world.md +6 -6
- package/docs/_posts/tutorials/improving-performance.md +2 -2
- package/docs/_posts/tutorials/writing-program-scripts-with-ecmascript.md +2 -2
- package/docs/_tabs/playground.html +74 -17
- package/docs/assets/css/style.scss +7 -1
- package/package.json +2 -2
- package/src/x_ite/Base/X3DArrayField.js +3 -0
- package/src/x_ite/Base/X3DBaseNode.js +4 -0
- package/src/x_ite/Base/X3DInfoArray.js +7 -3
- package/src/x_ite/Browser/Core/ContextMenu.js +5 -7
- package/src/x_ite/Browser/DOMIntegration.js +62 -55
- package/src/x_ite/Browser/VERSION.js +1 -1
- package/src/x_ite/Browser/X3DBrowser.js +1 -1
- package/src/x_ite/Browser/X3DBrowserContext.js +3 -0
- package/src/x_ite/Components/Core/X3DPrototypeInstance.js +1 -1
- package/src/x_ite/Components/Networking/Inline.js +21 -2
- package/src/x_ite/Configuration/SupportedNodes.js +1 -5
- package/src/x_ite/Execution/X3DScene.js +74 -58
- package/src/x_ite/Parser/JSONParser.js +1 -1
- package/src/x_ite/Parser/XMLParser.js +151 -49
- package/src/x_ite.html +2 -2
- package/webpack.config.js +2 -2
package/dist/x_ite.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* X_ITE v8.3.
|
|
1
|
+
/* X_ITE v8.3.2 */(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
2
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
3
|
module.exports = factory();
|
|
4
4
|
else if(typeof define === 'function' && define.amd)
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
|
12
12
|
/******/ var __webpack_modules__ = ({
|
|
13
13
|
|
|
14
|
-
/***/
|
|
14
|
+
/***/ 923:
|
|
15
15
|
/***/ (function(module, exports, __webpack_require__) {
|
|
16
16
|
|
|
17
17
|
"use strict";
|
|
18
|
-
/* provided dependency */ var jQuery = __webpack_require__(
|
|
18
|
+
/* provided dependency */ var jQuery = __webpack_require__(265);
|
|
19
19
|
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;
|
|
20
20
|
|
|
21
21
|
/**
|
|
@@ -387,10 +387,10 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;
|
|
|
387
387
|
|
|
388
388
|
/***/ }),
|
|
389
389
|
|
|
390
|
-
/***/
|
|
390
|
+
/***/ 250:
|
|
391
391
|
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
392
392
|
|
|
393
|
-
/* provided dependency */ var jQuery = __webpack_require__(
|
|
393
|
+
/* provided dependency */ var jQuery = __webpack_require__(265);
|
|
394
394
|
/**
|
|
395
395
|
* @preserve jquery.fullscreen 1.1.5
|
|
396
396
|
* https://github.com/code-lts/jquery-fullscreen-plugin
|
|
@@ -586,7 +586,7 @@ installFullScreenHandlers();
|
|
|
586
586
|
|
|
587
587
|
/***/ }),
|
|
588
588
|
|
|
589
|
-
/***/
|
|
589
|
+
/***/ 895:
|
|
590
590
|
/***/ ((module, exports, __webpack_require__) => {
|
|
591
591
|
|
|
592
592
|
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
@@ -600,7 +600,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
600
600
|
(function (factory) {
|
|
601
601
|
if ( true ) {
|
|
602
602
|
// AMD. Register as an anonymous module.
|
|
603
|
-
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(
|
|
603
|
+
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(265)], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
|
|
604
604
|
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
|
|
605
605
|
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
|
|
606
606
|
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
@@ -811,7 +811,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
811
811
|
|
|
812
812
|
/***/ }),
|
|
813
813
|
|
|
814
|
-
/***/
|
|
814
|
+
/***/ 265:
|
|
815
815
|
/***/ (function(module, exports) {
|
|
816
816
|
|
|
817
817
|
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
|
|
@@ -11728,7 +11728,7 @@ return jQuery;
|
|
|
11728
11728
|
|
|
11729
11729
|
/***/ }),
|
|
11730
11730
|
|
|
11731
|
-
/***/
|
|
11731
|
+
/***/ 36:
|
|
11732
11732
|
/***/ ((module) => {
|
|
11733
11733
|
|
|
11734
11734
|
/**
|
|
@@ -16507,7 +16507,7 @@ if (true) {
|
|
|
16507
16507
|
|
|
16508
16508
|
/***/ }),
|
|
16509
16509
|
|
|
16510
|
-
/***/
|
|
16510
|
+
/***/ 536:
|
|
16511
16511
|
/***/ (function(__unused_webpack_module, exports) {
|
|
16512
16512
|
|
|
16513
16513
|
|
|
@@ -21381,24 +21381,28 @@ X3DInfoArray .prototype = {
|
|
|
21381
21381
|
},
|
|
21382
21382
|
at: Array .prototype .at,
|
|
21383
21383
|
concat: Array .prototype .concat,
|
|
21384
|
-
|
|
21384
|
+
entries: Array .prototype .entries,
|
|
21385
21385
|
every: Array .prototype .every,
|
|
21386
21386
|
fill: Array .prototype .fill,
|
|
21387
21387
|
filter: Array .prototype .filter,
|
|
21388
21388
|
find: Array .prototype .find,
|
|
21389
21389
|
findIndex: Array .prototype .findIndex,
|
|
21390
|
+
findLast: Array .prototype .findLast,
|
|
21391
|
+
findLastIndex: Array .prototype .findLastIndex,
|
|
21392
|
+
flat: Array .prototype .flat,
|
|
21393
|
+
flatMap: Array .prototype .flatMap,
|
|
21390
21394
|
forEach: Array .prototype .forEach,
|
|
21391
21395
|
includes: Array .prototype .includes,
|
|
21392
21396
|
indexOf: Array .prototype .indexOf,
|
|
21393
21397
|
join: Array .prototype .join,
|
|
21394
|
-
keys:
|
|
21398
|
+
keys: Array .prototype .keys,
|
|
21395
21399
|
lastIndexOf: Array .prototype .lastIndexOf,
|
|
21396
21400
|
map: Array .prototype .map,
|
|
21397
21401
|
reduce: Array .prototype .reduce,
|
|
21398
21402
|
reduceRight: Array .prototype .reduceRight,
|
|
21399
21403
|
slice: Array .prototype .slice,
|
|
21400
21404
|
some: Array .prototype .some,
|
|
21401
|
-
values:
|
|
21405
|
+
values: Array .prototype .values,
|
|
21402
21406
|
toString: function (scene)
|
|
21403
21407
|
{
|
|
21404
21408
|
const stream = { string: "" };
|
|
@@ -32516,6 +32520,72 @@ const Fields_default_ = Fields;
|
|
|
32516
32520
|
|
|
32517
32521
|
x_ite_Namespace.set ("x_ite/Fields", Fields_default_);
|
|
32518
32522
|
/* harmony default export */ const x_ite_Fields = (Fields_default_);
|
|
32523
|
+
;// CONCATENATED MODULE: ./src/x_ite/Parser/HTMLSupport.js
|
|
32524
|
+
/*******************************************************************************
|
|
32525
|
+
*
|
|
32526
|
+
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
32527
|
+
*
|
|
32528
|
+
* This file is part of the X_ITE Project.
|
|
32529
|
+
*
|
|
32530
|
+
* NON-MILITARY USE ONLY
|
|
32531
|
+
*
|
|
32532
|
+
* All create3000 software are effectively free software with a non-military use
|
|
32533
|
+
* restriction. It is free. Well commented source is provided. You may reuse the
|
|
32534
|
+
* source in any way you please with the exception anything that uses it must be
|
|
32535
|
+
* marked to indicate is contains "non-military use only" components.
|
|
32536
|
+
*
|
|
32537
|
+
* Copyright 2016 Andreas Plesch.
|
|
32538
|
+
*
|
|
32539
|
+
* X_ITE is free software: you can redistribute it and/or modify it under the
|
|
32540
|
+
* terms of the GNU General Public License version 3 only, as published by the
|
|
32541
|
+
* Free Software Foundation.
|
|
32542
|
+
*
|
|
32543
|
+
* X_ITE is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
32544
|
+
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
32545
|
+
* A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
|
|
32546
|
+
* details (a copy is included in the LICENSE file that accompanied this code).
|
|
32547
|
+
*
|
|
32548
|
+
* You should have received a copy of the GNU General Public License version 3
|
|
32549
|
+
* along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
|
|
32550
|
+
* copy of the GPLv3 License.
|
|
32551
|
+
*
|
|
32552
|
+
* For Silvio, Joy and Adi.
|
|
32553
|
+
*
|
|
32554
|
+
******************************************************************************/
|
|
32555
|
+
|
|
32556
|
+
// Maps are set when component is registered.
|
|
32557
|
+
|
|
32558
|
+
const
|
|
32559
|
+
nodeTypeNames = new Map (), // (TYPENAME -> TypeName)
|
|
32560
|
+
fieldNames = new Map (); // (fieldname -> fieldName)
|
|
32561
|
+
|
|
32562
|
+
const HTMLSupport =
|
|
32563
|
+
{
|
|
32564
|
+
addNodeTypeName: function (typeName)
|
|
32565
|
+
{
|
|
32566
|
+
nodeTypeNames .set (typeName, typeName);
|
|
32567
|
+
nodeTypeNames .set (typeName .toUpperCase (), typeName);
|
|
32568
|
+
},
|
|
32569
|
+
getNodeTypeName: function (typeName)
|
|
32570
|
+
{
|
|
32571
|
+
return nodeTypeNames .get (typeName);
|
|
32572
|
+
},
|
|
32573
|
+
addFieldName: function (name)
|
|
32574
|
+
{
|
|
32575
|
+
fieldNames .set (name, name);
|
|
32576
|
+
fieldNames .set (name .toLowerCase (), name);
|
|
32577
|
+
},
|
|
32578
|
+
getFieldName: function (name)
|
|
32579
|
+
{
|
|
32580
|
+
return fieldNames .get (name);
|
|
32581
|
+
},
|
|
32582
|
+
};
|
|
32583
|
+
|
|
32584
|
+
const HTMLSupport_default_ = HTMLSupport;
|
|
32585
|
+
;
|
|
32586
|
+
|
|
32587
|
+
x_ite_Namespace.set ("x_ite/Parser/HTMLSupport", HTMLSupport_default_);
|
|
32588
|
+
/* harmony default export */ const Parser_HTMLSupport = (HTMLSupport_default_);
|
|
32519
32589
|
;// CONCATENATED MODULE: ./src/x_ite/Base/X3DBaseNode.js
|
|
32520
32590
|
/*******************************************************************************
|
|
32521
32591
|
*
|
|
@@ -32571,6 +32641,7 @@ x_ite_Namespace.set ("x_ite/Fields", Fields_default_);
|
|
|
32571
32641
|
|
|
32572
32642
|
|
|
32573
32643
|
|
|
32644
|
+
|
|
32574
32645
|
const
|
|
32575
32646
|
_executionContext = Symbol (),
|
|
32576
32647
|
_type = Symbol (),
|
|
@@ -32909,6 +32980,9 @@ X3DBaseNode .prototype = Object .assign (Object .create (Base_X3DEventObject.pro
|
|
|
32909
32980
|
enumerable: true,
|
|
32910
32981
|
configurable: false,
|
|
32911
32982
|
});
|
|
32983
|
+
|
|
32984
|
+
if (field .isInitializable ())
|
|
32985
|
+
Parser_HTMLSupport.addFieldName (alias);
|
|
32912
32986
|
},
|
|
32913
32987
|
removeField: function (name)
|
|
32914
32988
|
{
|
|
@@ -33170,7 +33244,7 @@ x_ite_Namespace.set ("x_ite/Base/X3DBaseNode", X3DBaseNode_default_);
|
|
|
33170
33244
|
*
|
|
33171
33245
|
******************************************************************************/
|
|
33172
33246
|
|
|
33173
|
-
const VERSION_default_ = "8.3.
|
|
33247
|
+
const VERSION_default_ = "8.3.2";
|
|
33174
33248
|
;
|
|
33175
33249
|
|
|
33176
33250
|
x_ite_Namespace.set ("x_ite/Browser/VERSION", VERSION_default_);
|
|
@@ -33897,7 +33971,7 @@ const gettext_default_ = gettext;
|
|
|
33897
33971
|
x_ite_Namespace.set ("locale/gettext", gettext_default_);
|
|
33898
33972
|
/* harmony default export */ const locale_gettext = (gettext_default_);
|
|
33899
33973
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/BrowserTimings.js
|
|
33900
|
-
/* provided dependency */ var $ = __webpack_require__(
|
|
33974
|
+
/* provided dependency */ var $ = __webpack_require__(265);
|
|
33901
33975
|
/*******************************************************************************
|
|
33902
33976
|
*
|
|
33903
33977
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -34800,7 +34874,7 @@ const RenderingProperties_default_ = RenderingProperties;
|
|
|
34800
34874
|
x_ite_Namespace.set ("x_ite/Browser/Core/RenderingProperties", RenderingProperties_default_);
|
|
34801
34875
|
/* harmony default export */ const Core_RenderingProperties = (RenderingProperties_default_);
|
|
34802
34876
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/Notification.js
|
|
34803
|
-
/* provided dependency */ var Notification_$ = __webpack_require__(
|
|
34877
|
+
/* provided dependency */ var Notification_$ = __webpack_require__(265);
|
|
34804
34878
|
/*******************************************************************************
|
|
34805
34879
|
*
|
|
34806
34880
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -34922,8 +34996,8 @@ const Notification_default_ = Notification;
|
|
|
34922
34996
|
x_ite_Namespace.set ("x_ite/Browser/Core/Notification", Notification_default_);
|
|
34923
34997
|
/* harmony default export */ const Core_Notification = (Notification_default_);
|
|
34924
34998
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/ContextMenu.js
|
|
34925
|
-
/* provided dependency */ var jquery_fullscreen = __webpack_require__(
|
|
34926
|
-
/* provided dependency */ var ContextMenu_$ = __webpack_require__(
|
|
34999
|
+
/* provided dependency */ var jquery_fullscreen = __webpack_require__(250);
|
|
35000
|
+
/* provided dependency */ var ContextMenu_$ = __webpack_require__(265);
|
|
34927
35001
|
/*******************************************************************************
|
|
34928
35002
|
*
|
|
34929
35003
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -35530,17 +35604,13 @@ ContextMenu .prototype = Object .assign (Object .create (Base_X3DBaseNode.protot
|
|
|
35530
35604
|
|
|
35531
35605
|
// Menu
|
|
35532
35606
|
|
|
35533
|
-
const
|
|
35534
|
-
x = event .pageX - ContextMenu_$(document) .scrollLeft (),
|
|
35535
|
-
y = event .pageY - ContextMenu_$(document) .scrollTop ();
|
|
35536
|
-
|
|
35537
35607
|
const ul = ContextMenu_$("<ul></ul>")
|
|
35538
35608
|
.hide ()
|
|
35609
|
+
.addClass ("context-menu-root")
|
|
35539
35610
|
.addClass ("context-menu-list")
|
|
35540
35611
|
.addClass (menu .className)
|
|
35541
|
-
.
|
|
35542
|
-
.
|
|
35543
|
-
.appendTo (options .appendTo);
|
|
35612
|
+
.appendTo (options .appendTo)
|
|
35613
|
+
.offset ({ "left": event .pageX, "top": event .pageY });
|
|
35544
35614
|
|
|
35545
35615
|
for (const k in menu .items)
|
|
35546
35616
|
ul .append (this .createItem (menu .items [k], "context-menu-root", k, level + 1, hide));
|
|
@@ -35549,6 +35619,8 @@ ContextMenu .prototype = Object .assign (Object .create (Base_X3DBaseNode.protot
|
|
|
35549
35619
|
|
|
35550
35620
|
// Reposition menu if to right or to low.
|
|
35551
35621
|
|
|
35622
|
+
ul .offset ({ "left": event .pageX, "top": event .pageY }); // Do it again!
|
|
35623
|
+
|
|
35552
35624
|
if (ul .offset () .left - ContextMenu_$(document) .scrollLeft () + ul .outerWidth () > ContextMenu_$(window) .width ())
|
|
35553
35625
|
ul .offset ({ "left": ContextMenu_$(document) .scrollLeft () + Math .max (0, ContextMenu_$(window) .width () - ul .outerWidth ()) });
|
|
35554
35626
|
|
|
@@ -35690,72 +35762,6 @@ const ContextMenu_default_ = ContextMenu;
|
|
|
35690
35762
|
|
|
35691
35763
|
x_ite_Namespace.set ("x_ite/Browser/Core/ContextMenu", ContextMenu_default_);
|
|
35692
35764
|
/* harmony default export */ const Core_ContextMenu = (ContextMenu_default_);
|
|
35693
|
-
;// CONCATENATED MODULE: ./src/x_ite/Parser/HTMLSupport.js
|
|
35694
|
-
/*******************************************************************************
|
|
35695
|
-
*
|
|
35696
|
-
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
35697
|
-
*
|
|
35698
|
-
* This file is part of the X_ITE Project.
|
|
35699
|
-
*
|
|
35700
|
-
* NON-MILITARY USE ONLY
|
|
35701
|
-
*
|
|
35702
|
-
* All create3000 software are effectively free software with a non-military use
|
|
35703
|
-
* restriction. It is free. Well commented source is provided. You may reuse the
|
|
35704
|
-
* source in any way you please with the exception anything that uses it must be
|
|
35705
|
-
* marked to indicate is contains "non-military use only" components.
|
|
35706
|
-
*
|
|
35707
|
-
* Copyright 2016 Andreas Plesch.
|
|
35708
|
-
*
|
|
35709
|
-
* X_ITE is free software: you can redistribute it and/or modify it under the
|
|
35710
|
-
* terms of the GNU General Public License version 3 only, as published by the
|
|
35711
|
-
* Free Software Foundation.
|
|
35712
|
-
*
|
|
35713
|
-
* X_ITE is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
35714
|
-
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
|
35715
|
-
* A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
|
|
35716
|
-
* details (a copy is included in the LICENSE file that accompanied this code).
|
|
35717
|
-
*
|
|
35718
|
-
* You should have received a copy of the GNU General Public License version 3
|
|
35719
|
-
* along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
|
|
35720
|
-
* copy of the GPLv3 License.
|
|
35721
|
-
*
|
|
35722
|
-
* For Silvio, Joy and Adi.
|
|
35723
|
-
*
|
|
35724
|
-
******************************************************************************/
|
|
35725
|
-
|
|
35726
|
-
// Maps are set when component is registered.
|
|
35727
|
-
|
|
35728
|
-
const
|
|
35729
|
-
nodeTypeNames = new Map (), // (TYPENAME -> TypeName)
|
|
35730
|
-
fieldNames = new Map (); // (fieldname -> fieldName)
|
|
35731
|
-
|
|
35732
|
-
const HTMLSupport =
|
|
35733
|
-
{
|
|
35734
|
-
addNodeTypeName: function (typeName)
|
|
35735
|
-
{
|
|
35736
|
-
nodeTypeNames .set (typeName, typeName);
|
|
35737
|
-
nodeTypeNames .set (typeName .toUpperCase (), typeName);
|
|
35738
|
-
},
|
|
35739
|
-
getNodeTypeName: function (typeName)
|
|
35740
|
-
{
|
|
35741
|
-
return nodeTypeNames .get (typeName);
|
|
35742
|
-
},
|
|
35743
|
-
addFieldName: function (name)
|
|
35744
|
-
{
|
|
35745
|
-
fieldNames .set (name, name);
|
|
35746
|
-
fieldNames .set (name .toLowerCase (), name);
|
|
35747
|
-
},
|
|
35748
|
-
getFieldName: function (name)
|
|
35749
|
-
{
|
|
35750
|
-
return fieldNames .get (name);
|
|
35751
|
-
},
|
|
35752
|
-
};
|
|
35753
|
-
|
|
35754
|
-
const HTMLSupport_default_ = HTMLSupport;
|
|
35755
|
-
;
|
|
35756
|
-
|
|
35757
|
-
x_ite_Namespace.set ("x_ite/Parser/HTMLSupport", HTMLSupport_default_);
|
|
35758
|
-
/* harmony default export */ const Parser_HTMLSupport = (HTMLSupport_default_);
|
|
35759
35765
|
;// CONCATENATED MODULE: ./src/x_ite/Configuration/SupportedNodes.js
|
|
35760
35766
|
/*******************************************************************************
|
|
35761
35767
|
*
|
|
@@ -35827,12 +35833,8 @@ const SupportedNodes =
|
|
|
35827
35833
|
|
|
35828
35834
|
// HTML Support
|
|
35829
35835
|
|
|
35830
|
-
for (const
|
|
35836
|
+
for (const { name, accessType } of Type .prototype [SupportedNodes_fieldDefinitions])
|
|
35831
35837
|
{
|
|
35832
|
-
const
|
|
35833
|
-
name = fieldDefinition .name,
|
|
35834
|
-
accessType = fieldDefinition .accessType;
|
|
35835
|
-
|
|
35836
35838
|
if (accessType & Base_X3DConstants.initializeOnly)
|
|
35837
35839
|
Parser_HTMLSupport.addFieldName (name)
|
|
35838
35840
|
}
|
|
@@ -37681,7 +37683,7 @@ X3DPrototypeInstance .prototype = Object .assign (Object .create (Core_X3DNode.p
|
|
|
37681
37683
|
},
|
|
37682
37684
|
getInnerNode: function ()
|
|
37683
37685
|
{
|
|
37684
|
-
const rootNodes = this [_body] .getRootNodes ()
|
|
37686
|
+
const rootNodes = this [_body] .getRootNodes ();
|
|
37685
37687
|
|
|
37686
37688
|
if (rootNodes .length)
|
|
37687
37689
|
{
|
|
@@ -41860,7 +41862,7 @@ const VRMLParser_default_ = VRMLParser;
|
|
|
41860
41862
|
x_ite_Namespace.set ("x_ite/Parser/VRMLParser", VRMLParser_default_);
|
|
41861
41863
|
/* harmony default export */ const Parser_VRMLParser = (VRMLParser_default_);
|
|
41862
41864
|
;// CONCATENATED MODULE: ./src/x_ite/Parser/XMLParser.js
|
|
41863
|
-
/* provided dependency */ var XMLParser_$ = __webpack_require__(
|
|
41865
|
+
/* provided dependency */ var XMLParser_$ = __webpack_require__(265);
|
|
41864
41866
|
/*******************************************************************************
|
|
41865
41867
|
*
|
|
41866
41868
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -41936,6 +41938,8 @@ function XMLParser (scene)
|
|
|
41936
41938
|
this .parents = [ ];
|
|
41937
41939
|
this .parser = new Parser_VRMLParser (scene);
|
|
41938
41940
|
this .url = new x_ite_Fields.MFString ();
|
|
41941
|
+
this .protoNames = new Map ();
|
|
41942
|
+
this .protoFields = new WeakMap ();
|
|
41939
41943
|
|
|
41940
41944
|
try
|
|
41941
41945
|
{
|
|
@@ -41965,12 +41969,23 @@ XMLParser .prototype = Object .assign (Object .create (Parser_X3DParser.prototyp
|
|
|
41965
41969
|
xmlElement = XMLParser_$.parseXML (xmlElement);
|
|
41966
41970
|
|
|
41967
41971
|
this .input = xmlElement;
|
|
41972
|
+
this .xml = this .isXML (xmlElement);
|
|
41973
|
+
|
|
41974
|
+
if (! this .xml)
|
|
41975
|
+
Object .assign (this, HTMLParser);
|
|
41968
41976
|
}
|
|
41969
41977
|
catch (error)
|
|
41970
41978
|
{
|
|
41971
41979
|
this .input = undefined;
|
|
41972
41980
|
}
|
|
41973
41981
|
},
|
|
41982
|
+
isXML: function (element)
|
|
41983
|
+
{
|
|
41984
|
+
if (element instanceof HTMLElement)
|
|
41985
|
+
return false;
|
|
41986
|
+
else
|
|
41987
|
+
return true;
|
|
41988
|
+
},
|
|
41974
41989
|
parseIntoScene: function (success, error)
|
|
41975
41990
|
{
|
|
41976
41991
|
this .success = success;
|
|
@@ -41981,16 +41996,6 @@ XMLParser .prototype = Object .assign (Object .create (Parser_X3DParser.prototyp
|
|
|
41981
41996
|
|
|
41982
41997
|
this .xmlElement (this .input);
|
|
41983
41998
|
},
|
|
41984
|
-
parseIntoNode: function (node, xmlElement)
|
|
41985
|
-
{
|
|
41986
|
-
this .pushExecutionContext (node .getExecutionContext ());
|
|
41987
|
-
this .pushParent (node);
|
|
41988
|
-
|
|
41989
|
-
this .childElement (xmlElement);
|
|
41990
|
-
|
|
41991
|
-
this .popParent ();
|
|
41992
|
-
this .popExecutionContext ();
|
|
41993
|
-
},
|
|
41994
41999
|
xmlElement: function (xmlElement)
|
|
41995
42000
|
{
|
|
41996
42001
|
if (xmlElement === null)
|
|
@@ -42343,8 +42348,9 @@ XMLParser .prototype = Object .assign (Object .create (Parser_X3DParser.prototyp
|
|
|
42343
42348
|
var externproto = new Prototype_X3DExternProtoDeclaration (this .getExecutionContext (), this .url);
|
|
42344
42349
|
|
|
42345
42350
|
this .pushParent (externproto);
|
|
42346
|
-
this .protoInterfaceElement (xmlElement);
|
|
42351
|
+
this .protoInterfaceElement (xmlElement);
|
|
42347
42352
|
this .popParent ();
|
|
42353
|
+
this .addProtoFieldNames (externproto);
|
|
42348
42354
|
|
|
42349
42355
|
externproto .setup ();
|
|
42350
42356
|
|
|
@@ -42358,6 +42364,8 @@ XMLParser .prototype = Object .assign (Object .create (Parser_X3DParser.prototyp
|
|
|
42358
42364
|
{ }
|
|
42359
42365
|
|
|
42360
42366
|
this .getExecutionContext () .updateExternProtoDeclaration (name, externproto);
|
|
42367
|
+
|
|
42368
|
+
this .addProtoName (name);
|
|
42361
42369
|
}
|
|
42362
42370
|
},
|
|
42363
42371
|
protoDeclareElement: function (xmlElement)
|
|
@@ -42382,6 +42390,7 @@ XMLParser .prototype = Object .assign (Object .create (Parser_X3DParser.prototyp
|
|
|
42382
42390
|
this .pushParent (proto);
|
|
42383
42391
|
this .protoInterfaceElement (child);
|
|
42384
42392
|
this .popParent ();
|
|
42393
|
+
this .addProtoFieldNames (proto);
|
|
42385
42394
|
break;
|
|
42386
42395
|
}
|
|
42387
42396
|
default:
|
|
@@ -42428,6 +42437,8 @@ XMLParser .prototype = Object .assign (Object .create (Parser_X3DParser.prototyp
|
|
|
42428
42437
|
{ }
|
|
42429
42438
|
|
|
42430
42439
|
this .getExecutionContext () .updateProtoDeclaration (name, proto);
|
|
42440
|
+
|
|
42441
|
+
this .addProtoName (name);
|
|
42431
42442
|
}
|
|
42432
42443
|
},
|
|
42433
42444
|
protoInterfaceElement: function (xmlElement)
|
|
@@ -42578,7 +42589,7 @@ XMLParser .prototype = Object .assign (Object .create (Parser_X3DParser.prototyp
|
|
|
42578
42589
|
if (! node)
|
|
42579
42590
|
throw new Error ("Unknown proto or externproto type '" + name + "'.");
|
|
42580
42591
|
|
|
42581
|
-
|
|
42592
|
+
///DOMIntegration: attach node to DOM xmlElement for access from DOM.
|
|
42582
42593
|
XMLParser_$.data (xmlElement, "node", node);
|
|
42583
42594
|
|
|
42584
42595
|
this .defAttribute (xmlElement, node);
|
|
@@ -42649,12 +42660,19 @@ XMLParser .prototype = Object .assign (Object .create (Parser_X3DParser.prototyp
|
|
|
42649
42660
|
|
|
42650
42661
|
var node = this .getExecutionContext () .createNode (this .nodeNameToCamelCase (xmlElement .nodeName), false);
|
|
42651
42662
|
|
|
42663
|
+
if (! node)
|
|
42664
|
+
var node = this .getExecutionContext () .createProto (this .protoNameToCamelCase (xmlElement .nodeName), false);
|
|
42665
|
+
|
|
42652
42666
|
if (! node)
|
|
42653
42667
|
throw new Error ("Unknown node type '" + xmlElement .nodeName + "', you probably have insufficient component/profile statements.");
|
|
42654
42668
|
|
|
42655
|
-
|
|
42669
|
+
///DOMIntegration: attach node to DOM xmlElement for access from DOM.
|
|
42656
42670
|
XMLParser_$.data (xmlElement, "node", node);
|
|
42657
42671
|
|
|
42672
|
+
//DOMIntegration: Script node support for HTML.
|
|
42673
|
+
if (xmlElement .nodeName === "SCRIPT")
|
|
42674
|
+
this .scriptElement (xmlElement);
|
|
42675
|
+
|
|
42658
42676
|
this .defAttribute (xmlElement, node);
|
|
42659
42677
|
this .addNode (xmlElement, node);
|
|
42660
42678
|
this .pushParent (node);
|
|
@@ -42682,6 +42700,22 @@ XMLParser .prototype = Object .assign (Object .create (Parser_X3DParser.prototyp
|
|
|
42682
42700
|
console .error (error);
|
|
42683
42701
|
}
|
|
42684
42702
|
},
|
|
42703
|
+
scriptElement (element)
|
|
42704
|
+
{
|
|
42705
|
+
const
|
|
42706
|
+
domParser = new DOMParser (),
|
|
42707
|
+
scriptDocument = domParser .parseFromString (element .outerHTML, "application/xml"),
|
|
42708
|
+
childNodes = scriptDocument .children [0] .childNodes;
|
|
42709
|
+
|
|
42710
|
+
element .textContent = "// Content moved into childNodes.";
|
|
42711
|
+
|
|
42712
|
+
for (const childNode of childNodes)
|
|
42713
|
+
{
|
|
42714
|
+
// Add elements and cdata.
|
|
42715
|
+
if (childNode .nodeType === 1 || childNode .nodeType === 4)
|
|
42716
|
+
element .appendChild (childNode);
|
|
42717
|
+
}
|
|
42718
|
+
},
|
|
42685
42719
|
routeElement: function (xmlElement)
|
|
42686
42720
|
{
|
|
42687
42721
|
try
|
|
@@ -42710,7 +42744,7 @@ XMLParser .prototype = Object .assign (Object .create (Parser_X3DParser.prototyp
|
|
|
42710
42744
|
destinationNode = executionContext .getLocalNode (destinationNodeName),
|
|
42711
42745
|
route = executionContext .addRoute (sourceNode, sourceField, destinationNode, destinationField);
|
|
42712
42746
|
|
|
42713
|
-
|
|
42747
|
+
///DOMIntegration: attach node to DOM xmlElement for access from DOM.
|
|
42714
42748
|
XMLParser_$.data (xmlElement, "node", route);
|
|
42715
42749
|
}
|
|
42716
42750
|
catch (error)
|
|
@@ -42851,11 +42885,9 @@ XMLParser .prototype = Object .assign (Object .create (Parser_X3DParser.prototyp
|
|
|
42851
42885
|
{
|
|
42852
42886
|
try
|
|
42853
42887
|
{
|
|
42854
|
-
|
|
42855
|
-
field = node .getField (this .attributeToCamelCase (xmlAttribute .name)),
|
|
42856
|
-
accessType = field .getAccessType ();
|
|
42888
|
+
const field = node .getField (this .attributeToCamelCase (node, xmlAttribute .name));
|
|
42857
42889
|
|
|
42858
|
-
if (
|
|
42890
|
+
if (field .isInitializable ())
|
|
42859
42891
|
this .fieldValue (field, xmlAttribute .value);
|
|
42860
42892
|
}
|
|
42861
42893
|
catch (error)
|
|
@@ -42875,6 +42907,32 @@ XMLParser .prototype = Object .assign (Object .create (Parser_X3DParser.prototyp
|
|
|
42875
42907
|
|
|
42876
42908
|
this .parser .popExecutionContext ();
|
|
42877
42909
|
},
|
|
42910
|
+
id: function (string)
|
|
42911
|
+
{
|
|
42912
|
+
if (string === null)
|
|
42913
|
+
return false;
|
|
42914
|
+
|
|
42915
|
+
if (string .length === 0)
|
|
42916
|
+
return false;
|
|
42917
|
+
|
|
42918
|
+
return true;
|
|
42919
|
+
},
|
|
42920
|
+
getParents: function ()
|
|
42921
|
+
{
|
|
42922
|
+
return this .parents;
|
|
42923
|
+
},
|
|
42924
|
+
getParent: function ()
|
|
42925
|
+
{
|
|
42926
|
+
return this .parents .at (-1);
|
|
42927
|
+
},
|
|
42928
|
+
pushParent: function (parent)
|
|
42929
|
+
{
|
|
42930
|
+
return this .parents .push (parent);
|
|
42931
|
+
},
|
|
42932
|
+
popParent: function ()
|
|
42933
|
+
{
|
|
42934
|
+
this .parents .pop ();
|
|
42935
|
+
},
|
|
42878
42936
|
addNode: function (xmlElement, node)
|
|
42879
42937
|
{
|
|
42880
42938
|
if (this .parents .length === 0 || this .getParent () instanceof Prototype_X3DProtoDeclaration)
|
|
@@ -42933,41 +42991,22 @@ XMLParser .prototype = Object .assign (Object .create (Parser_X3DParser.prototyp
|
|
|
42933
42991
|
//console .warn (error .message);
|
|
42934
42992
|
}
|
|
42935
42993
|
},
|
|
42936
|
-
|
|
42937
|
-
|
|
42938
|
-
|
|
42939
|
-
|
|
42940
|
-
|
|
42941
|
-
|
|
42942
|
-
return this .parents .at (-1);
|
|
42943
|
-
},
|
|
42944
|
-
pushParent: function (parent)
|
|
42945
|
-
{
|
|
42946
|
-
return this .parents .push (parent);
|
|
42947
|
-
},
|
|
42948
|
-
popParent: function ()
|
|
42949
|
-
{
|
|
42950
|
-
this .parents .pop ();
|
|
42951
|
-
},
|
|
42952
|
-
id: function (string)
|
|
42994
|
+
// Overloaded by HTMLParser.
|
|
42995
|
+
addProtoName: function (name)
|
|
42996
|
+
{ },
|
|
42997
|
+
addProtoFieldNames: function (protoNode)
|
|
42998
|
+
{ },
|
|
42999
|
+
protoNameToCamelCase: function (typeName)
|
|
42953
43000
|
{
|
|
42954
|
-
|
|
42955
|
-
return false;
|
|
42956
|
-
|
|
42957
|
-
if (string .length === 0)
|
|
42958
|
-
return false;
|
|
42959
|
-
|
|
42960
|
-
return true;
|
|
43001
|
+
return typeName;
|
|
42961
43002
|
},
|
|
42962
|
-
nodeNameToCamelCase: function (
|
|
43003
|
+
nodeNameToCamelCase: function (typeName)
|
|
42963
43004
|
{
|
|
42964
|
-
|
|
42965
|
-
return Parser_HTMLSupport.getNodeTypeName (nodeName);
|
|
43005
|
+
return typeName;
|
|
42966
43006
|
},
|
|
42967
|
-
attributeToCamelCase: function (name)
|
|
43007
|
+
attributeToCamelCase: function (node, name)
|
|
42968
43008
|
{
|
|
42969
|
-
|
|
42970
|
-
return Parser_HTMLSupport.getFieldName (name);
|
|
43009
|
+
return name;
|
|
42971
43010
|
},
|
|
42972
43011
|
});
|
|
42973
43012
|
|
|
@@ -43020,7 +43059,7 @@ XMLParser .prototype .fieldTypes [Base_X3DConstants.MFVec4f] = Parser_VRMLPa
|
|
|
43020
43059
|
* Lazy parse functions.
|
|
43021
43060
|
*/
|
|
43022
43061
|
|
|
43023
|
-
|
|
43062
|
+
const
|
|
43024
43063
|
infs = /\binf\b/g,
|
|
43025
43064
|
nans = /\bnan\b/g,
|
|
43026
43065
|
trimWhitespaces = /^[\x20\n,\t\r"]+|[\x20\n,\t\r"]+$/g,
|
|
@@ -43117,6 +43156,71 @@ XMLParser .prototype .fieldTypes [Base_X3DConstants.MFString] = function (field)
|
|
|
43117
43156
|
field .setValue (prepareStrings (this .getInput ()));
|
|
43118
43157
|
};
|
|
43119
43158
|
|
|
43159
|
+
// HTML Support
|
|
43160
|
+
|
|
43161
|
+
const HTMLParser =
|
|
43162
|
+
{
|
|
43163
|
+
addProtoName: function (name)
|
|
43164
|
+
{
|
|
43165
|
+
//DOMIntegration: add uppercase versions of proto name.
|
|
43166
|
+
|
|
43167
|
+
this .protoNames .set (name, name);
|
|
43168
|
+
this .protoNames .set (name .toUpperCase (), name);
|
|
43169
|
+
},
|
|
43170
|
+
addProtoFieldNames: (function ()
|
|
43171
|
+
{
|
|
43172
|
+
const reservedAttributes = new Set ();
|
|
43173
|
+
|
|
43174
|
+
for (const reservedAttribute of [
|
|
43175
|
+
"DEF",
|
|
43176
|
+
"USE",
|
|
43177
|
+
"containerField",
|
|
43178
|
+
])
|
|
43179
|
+
{
|
|
43180
|
+
reservedAttributes
|
|
43181
|
+
.add (reservedAttribute)
|
|
43182
|
+
.add (reservedAttribute .toLowerCase ());
|
|
43183
|
+
}
|
|
43184
|
+
|
|
43185
|
+
return function (protoNode)
|
|
43186
|
+
{
|
|
43187
|
+
//DOMIntegration: handle lowercase versions of field names.
|
|
43188
|
+
|
|
43189
|
+
const fields = new Map ();
|
|
43190
|
+
|
|
43191
|
+
this .protoFields .set (protoNode, fields);
|
|
43192
|
+
|
|
43193
|
+
for (const { name } of protoNode .getFieldDefinitions ())
|
|
43194
|
+
{
|
|
43195
|
+
if (reservedAttributes .has (name))
|
|
43196
|
+
continue;
|
|
43197
|
+
|
|
43198
|
+
fields .set (name, name);
|
|
43199
|
+
fields .set (name .toLowerCase (), name);
|
|
43200
|
+
}
|
|
43201
|
+
};
|
|
43202
|
+
})(),
|
|
43203
|
+
protoNameToCamelCase: function (typeName)
|
|
43204
|
+
{
|
|
43205
|
+
//DOMIntegration: handle uppercase versions of node names.
|
|
43206
|
+
return this .protoNames .get (typeName);
|
|
43207
|
+
},
|
|
43208
|
+
nodeNameToCamelCase: function (typeName)
|
|
43209
|
+
{
|
|
43210
|
+
//DOMIntegration: handle uppercase versions of node names.
|
|
43211
|
+
return Parser_HTMLSupport.getNodeTypeName (typeName);
|
|
43212
|
+
},
|
|
43213
|
+
attributeToCamelCase: function (node, name)
|
|
43214
|
+
{
|
|
43215
|
+
//DOMIntegration: handle lowercase versions of field names.
|
|
43216
|
+
|
|
43217
|
+
if (node instanceof Core_X3DPrototypeInstance)
|
|
43218
|
+
return this .protoFields .get (node .getProtoNode ()) .get (name);
|
|
43219
|
+
|
|
43220
|
+
return Parser_HTMLSupport.getFieldName (name);
|
|
43221
|
+
},
|
|
43222
|
+
};
|
|
43223
|
+
|
|
43120
43224
|
const XMLParser_default_ = XMLParser;
|
|
43121
43225
|
;
|
|
43122
43226
|
|
|
@@ -43179,7 +43283,7 @@ function JSONParser (scene)
|
|
|
43179
43283
|
{
|
|
43180
43284
|
Parser_X3DParser.call (this, scene);
|
|
43181
43285
|
|
|
43182
|
-
this .namespace = "
|
|
43286
|
+
this .namespace = "http://www.web3d.org/specifications/x3d-namespace";
|
|
43183
43287
|
}
|
|
43184
43288
|
|
|
43185
43289
|
JSONParser .prototype = Object .assign (Object .create (Parser_X3DParser.prototype),
|
|
@@ -43870,7 +43974,7 @@ const Plane3_default_ = Plane3;
|
|
|
43870
43974
|
x_ite_Namespace.set ("standard/Math/Geometry/Plane3", Plane3_default_);
|
|
43871
43975
|
/* harmony default export */ const Geometry_Plane3 = (Plane3_default_);
|
|
43872
43976
|
;// CONCATENATED MODULE: ./src/standard/Math/Geometry/Triangle3.js
|
|
43873
|
-
/* provided dependency */ var libtess = __webpack_require__(
|
|
43977
|
+
/* provided dependency */ var libtess = __webpack_require__(36);
|
|
43874
43978
|
/*******************************************************************************
|
|
43875
43979
|
*
|
|
43876
43980
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -51205,7 +51309,7 @@ const X3DTexture2DNode_default_ = X3DTexture2DNode;
|
|
|
51205
51309
|
x_ite_Namespace.set ("x_ite/Components/Texturing/X3DTexture2DNode", X3DTexture2DNode_default_);
|
|
51206
51310
|
/* harmony default export */ const Texturing_X3DTexture2DNode = (X3DTexture2DNode_default_);
|
|
51207
51311
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/ImageTexture.js
|
|
51208
|
-
/* provided dependency */ var ImageTexture_$ = __webpack_require__(
|
|
51312
|
+
/* provided dependency */ var ImageTexture_$ = __webpack_require__(265);
|
|
51209
51313
|
/*******************************************************************************
|
|
51210
51314
|
*
|
|
51211
51315
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -55567,8 +55671,8 @@ const BinaryTransport_default_ = BinaryTransport;
|
|
|
55567
55671
|
x_ite_Namespace.set ("standard/Networking/BinaryTransport", BinaryTransport_default_);
|
|
55568
55672
|
/* harmony default export */ const Networking_BinaryTransport = (BinaryTransport_default_);
|
|
55569
55673
|
;// CONCATENATED MODULE: ./src/x_ite/InputOutput/FileLoader.js
|
|
55570
|
-
/* provided dependency */ var FileLoader_$ = __webpack_require__(
|
|
55571
|
-
/* provided dependency */ var pako = __webpack_require__(
|
|
55674
|
+
/* provided dependency */ var FileLoader_$ = __webpack_require__(265);
|
|
55675
|
+
/* provided dependency */ var pako = __webpack_require__(536);
|
|
55572
55676
|
/*******************************************************************************
|
|
55573
55677
|
*
|
|
55574
55678
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -57839,7 +57943,7 @@ const URLs_default_ = URLs;
|
|
|
57839
57943
|
x_ite_Namespace.set ("x_ite/Browser/Networking/URLs", URLs_default_);
|
|
57840
57944
|
/* harmony default export */ const Networking_URLs = (URLs_default_);
|
|
57841
57945
|
;// CONCATENATED MODULE: ./src/x_ite/Configuration/ComponentInfo.js
|
|
57842
|
-
/* provided dependency */ var ComponentInfo_$ = __webpack_require__(
|
|
57946
|
+
/* provided dependency */ var ComponentInfo_$ = __webpack_require__(265);
|
|
57843
57947
|
/*******************************************************************************
|
|
57844
57948
|
*
|
|
57845
57949
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -58806,7 +58910,7 @@ X3DScene .prototype = Object .assign (Object .create (Execution_X3DExecutionCont
|
|
|
58806
58910
|
stream .string += " ";
|
|
58807
58911
|
stream .string += this .getBrowser () .name;
|
|
58808
58912
|
stream .string += " ";
|
|
58809
|
-
stream .string += "
|
|
58913
|
+
stream .string += "V";
|
|
58810
58914
|
stream .string += this .getBrowser () .version;
|
|
58811
58915
|
stream .string += "\n";
|
|
58812
58916
|
stream .string += "\n";
|
|
@@ -58904,7 +59008,7 @@ X3DScene .prototype = Object .assign (Object .create (Execution_X3DExecutionCont
|
|
|
58904
59008
|
stream .string += "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
|
|
58905
59009
|
stream .string += "<!DOCTYPE X3D PUBLIC \"ISO//Web3D//DTD X3D ";
|
|
58906
59010
|
stream .string += LATEST_VERSION;
|
|
58907
|
-
stream .string += "//EN\" \"
|
|
59011
|
+
stream .string += "//EN\" \"http://www.web3d.org/specifications/x3d-";
|
|
58908
59012
|
stream .string += LATEST_VERSION;
|
|
58909
59013
|
stream .string += ".dtd\">\n";
|
|
58910
59014
|
|
|
@@ -58918,92 +59022,108 @@ X3DScene .prototype = Object .assign (Object .create (Execution_X3DExecutionCont
|
|
|
58918
59022
|
stream .string += LATEST_VERSION;
|
|
58919
59023
|
stream .string += "'";
|
|
58920
59024
|
stream .string += " ";
|
|
58921
|
-
stream .string += "xmlns:xsd='
|
|
59025
|
+
stream .string += "xmlns:xsd='http://www.w3.org/2001/XMLSchema-instance'";
|
|
58922
59026
|
stream .string += " ";
|
|
58923
|
-
stream .string += "xsd:noNamespaceSchemaLocation='
|
|
59027
|
+
stream .string += "xsd:noNamespaceSchemaLocation='http://www.web3d.org/specifications/x3d-";
|
|
58924
59028
|
stream .string += LATEST_VERSION;
|
|
58925
59029
|
stream .string += ".xsd'>\n";
|
|
58926
59030
|
|
|
58927
59031
|
generator .IncIndent ();
|
|
58928
59032
|
|
|
58929
|
-
|
|
58930
|
-
|
|
59033
|
+
if (this .getComponents () .length ||
|
|
59034
|
+
this .getUnits () .some (unit => unit .conversionFactor !== 1) ||
|
|
59035
|
+
this .getMetaDatas () .size)
|
|
59036
|
+
{
|
|
59037
|
+
stream .string += generator .Indent ();
|
|
59038
|
+
stream .string += "<head>\n";
|
|
58931
59039
|
|
|
58932
|
-
|
|
59040
|
+
generator .IncIndent ();
|
|
58933
59041
|
|
|
58934
|
-
|
|
59042
|
+
// <head>
|
|
58935
59043
|
|
|
58936
|
-
|
|
59044
|
+
this .getComponents () .toXMLStream (stream);
|
|
58937
59045
|
|
|
58938
|
-
|
|
58939
|
-
{
|
|
58940
|
-
if (unit .conversionFactor !== 1)
|
|
59046
|
+
for (const unit of this .getUnits ())
|
|
58941
59047
|
{
|
|
58942
|
-
unit .
|
|
59048
|
+
if (unit .conversionFactor !== 1)
|
|
59049
|
+
{
|
|
59050
|
+
unit .toXMLStream (stream);
|
|
58943
59051
|
|
|
58944
|
-
|
|
59052
|
+
stream .string += "\n";
|
|
59053
|
+
}
|
|
58945
59054
|
}
|
|
58946
|
-
}
|
|
58947
59055
|
|
|
58948
|
-
|
|
58949
|
-
|
|
58950
|
-
|
|
58951
|
-
|
|
58952
|
-
|
|
58953
|
-
|
|
58954
|
-
|
|
58955
|
-
|
|
58956
|
-
|
|
58957
|
-
|
|
58958
|
-
|
|
58959
|
-
|
|
58960
|
-
|
|
58961
|
-
|
|
59056
|
+
this .getMetaDatas () .forEach (function (value, key)
|
|
59057
|
+
{
|
|
59058
|
+
stream .string += generator .Indent ();
|
|
59059
|
+
stream .string += "<meta";
|
|
59060
|
+
stream .string += " ";
|
|
59061
|
+
stream .string += "name='";
|
|
59062
|
+
stream .string += generator .XMLEncode (key);
|
|
59063
|
+
stream .string += "'";
|
|
59064
|
+
stream .string += " ";
|
|
59065
|
+
stream .string += "content='";
|
|
59066
|
+
stream .string += generator .XMLEncode (value);
|
|
59067
|
+
stream .string += "'";
|
|
59068
|
+
stream .string += "/>\n";
|
|
59069
|
+
});
|
|
58962
59070
|
|
|
58963
|
-
|
|
59071
|
+
// </head>
|
|
58964
59072
|
|
|
58965
|
-
|
|
59073
|
+
generator .DecIndent ();
|
|
58966
59074
|
|
|
58967
|
-
|
|
58968
|
-
|
|
58969
|
-
|
|
58970
|
-
stream .string += "<Scene>\n";
|
|
59075
|
+
stream .string += generator .Indent ();
|
|
59076
|
+
stream .string += "</head>\n";
|
|
59077
|
+
}
|
|
58971
59078
|
|
|
58972
|
-
|
|
59079
|
+
if (this .getExternProtoDeclarations () .length ||
|
|
59080
|
+
this .getProtoDeclarations () .length ||
|
|
59081
|
+
this .getRootNodes () .length)
|
|
59082
|
+
{
|
|
59083
|
+
stream .string += generator .Indent ();
|
|
59084
|
+
stream .string += "<Scene>\n";
|
|
58973
59085
|
|
|
58974
|
-
|
|
59086
|
+
generator .IncIndent ();
|
|
58975
59087
|
|
|
58976
|
-
|
|
59088
|
+
// <Scene>
|
|
58977
59089
|
|
|
58978
|
-
|
|
58979
|
-
generator .EnterScope ();
|
|
58980
|
-
generator .ExportedNodes (exportedNodes);
|
|
59090
|
+
const exportedNodes = this .getExportedNodes ();
|
|
58981
59091
|
|
|
58982
|
-
|
|
59092
|
+
generator .PushExecutionContext (this);
|
|
59093
|
+
generator .EnterScope ();
|
|
59094
|
+
generator .ExportedNodes (exportedNodes);
|
|
58983
59095
|
|
|
58984
|
-
|
|
58985
|
-
{
|
|
58986
|
-
try
|
|
58987
|
-
{
|
|
58988
|
-
exportedNode .toXMLStream (stream);
|
|
59096
|
+
Execution_X3DExecutionContext.prototype.toXMLStream.call (this, stream);
|
|
58989
59097
|
|
|
58990
|
-
|
|
58991
|
-
}
|
|
58992
|
-
catch (error)
|
|
59098
|
+
for (const exportedNode of exportedNodes)
|
|
58993
59099
|
{
|
|
58994
|
-
|
|
59100
|
+
try
|
|
59101
|
+
{
|
|
59102
|
+
exportedNode .toXMLStream (stream);
|
|
59103
|
+
|
|
59104
|
+
stream .string += "\n";
|
|
59105
|
+
}
|
|
59106
|
+
catch (error)
|
|
59107
|
+
{
|
|
59108
|
+
console .error (error);
|
|
59109
|
+
}
|
|
58995
59110
|
}
|
|
58996
|
-
}
|
|
58997
59111
|
|
|
58998
|
-
|
|
58999
|
-
|
|
59112
|
+
generator .LeaveScope ();
|
|
59113
|
+
generator .PopExecutionContext ();
|
|
59000
59114
|
|
|
59001
|
-
|
|
59115
|
+
// </Scene>
|
|
59002
59116
|
|
|
59003
|
-
|
|
59117
|
+
generator .DecIndent ();
|
|
59004
59118
|
|
|
59005
|
-
|
|
59006
|
-
|
|
59119
|
+
stream .string += generator .Indent ();
|
|
59120
|
+
stream .string += "</Scene>\n";
|
|
59121
|
+
}
|
|
59122
|
+
else
|
|
59123
|
+
{
|
|
59124
|
+
stream .string += generator .Indent ();
|
|
59125
|
+
stream .string += "<Scene/>\n";
|
|
59126
|
+
}
|
|
59007
59127
|
|
|
59008
59128
|
generator .DecIndent ();
|
|
59009
59129
|
|
|
@@ -59307,7 +59427,7 @@ const DataStorage_default_ = DataStorage;
|
|
|
59307
59427
|
x_ite_Namespace.set ("standard/Utility/DataStorage", DataStorage_default_);
|
|
59308
59428
|
/* harmony default export */ const Utility_DataStorage = (DataStorage_default_);
|
|
59309
59429
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Core/X3DCoreContext.js
|
|
59310
|
-
/* provided dependency */ var X3DCoreContext_$ = __webpack_require__(
|
|
59430
|
+
/* provided dependency */ var X3DCoreContext_$ = __webpack_require__(265);
|
|
59311
59431
|
/*******************************************************************************
|
|
59312
59432
|
*
|
|
59313
59433
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -66273,8 +66393,8 @@ const OrientationChaser_default_ = OrientationChaser;
|
|
|
66273
66393
|
x_ite_Namespace.set ("x_ite/Components/Followers/OrientationChaser", OrientationChaser_default_);
|
|
66274
66394
|
/* harmony default export */ const Followers_OrientationChaser = (OrientationChaser_default_);
|
|
66275
66395
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/ExamineViewer.js
|
|
66276
|
-
/* provided dependency */ var jquery_mousewheel = __webpack_require__(
|
|
66277
|
-
/* provided dependency */ var ExamineViewer_$ = __webpack_require__(
|
|
66396
|
+
/* provided dependency */ var jquery_mousewheel = __webpack_require__(895);
|
|
66397
|
+
/* provided dependency */ var ExamineViewer_$ = __webpack_require__(265);
|
|
66278
66398
|
/*******************************************************************************
|
|
66279
66399
|
*
|
|
66280
66400
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -67139,8 +67259,8 @@ const ExamineViewer_default_ = ExamineViewer;
|
|
|
67139
67259
|
x_ite_Namespace.set ("x_ite/Browser/Navigation/ExamineViewer", ExamineViewer_default_);
|
|
67140
67260
|
/* harmony default export */ const Navigation_ExamineViewer = (ExamineViewer_default_);
|
|
67141
67261
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/X3DFlyViewer.js
|
|
67142
|
-
/* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(
|
|
67143
|
-
/* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(
|
|
67262
|
+
/* provided dependency */ var X3DFlyViewer_jquery_mousewheel = __webpack_require__(895);
|
|
67263
|
+
/* provided dependency */ var X3DFlyViewer_$ = __webpack_require__(265);
|
|
67144
67264
|
/*******************************************************************************
|
|
67145
67265
|
*
|
|
67146
67266
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -68079,8 +68199,8 @@ const FlyViewer_default_ = FlyViewer;
|
|
|
68079
68199
|
x_ite_Namespace.set ("x_ite/Browser/Navigation/FlyViewer", FlyViewer_default_);
|
|
68080
68200
|
/* harmony default export */ const Navigation_FlyViewer = (FlyViewer_default_);
|
|
68081
68201
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/PlaneViewer.js
|
|
68082
|
-
/* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(
|
|
68083
|
-
/* provided dependency */ var PlaneViewer_$ = __webpack_require__(
|
|
68202
|
+
/* provided dependency */ var PlaneViewer_jquery_mousewheel = __webpack_require__(895);
|
|
68203
|
+
/* provided dependency */ var PlaneViewer_$ = __webpack_require__(265);
|
|
68084
68204
|
/*******************************************************************************
|
|
68085
68205
|
*
|
|
68086
68206
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -68392,8 +68512,8 @@ const NoneViewer_default_ = NoneViewer;
|
|
|
68392
68512
|
x_ite_Namespace.set ("x_ite/Browser/Navigation/NoneViewer", NoneViewer_default_);
|
|
68393
68513
|
/* harmony default export */ const Navigation_NoneViewer = (NoneViewer_default_);
|
|
68394
68514
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Navigation/LookAtViewer.js
|
|
68395
|
-
/* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(
|
|
68396
|
-
/* provided dependency */ var LookAtViewer_$ = __webpack_require__(
|
|
68515
|
+
/* provided dependency */ var LookAtViewer_jquery_mousewheel = __webpack_require__(895);
|
|
68516
|
+
/* provided dependency */ var LookAtViewer_$ = __webpack_require__(265);
|
|
68397
68517
|
/*******************************************************************************
|
|
68398
68518
|
*
|
|
68399
68519
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -69995,8 +70115,8 @@ const X3DPickingContext_default_ = X3DPickingContext;
|
|
|
69995
70115
|
x_ite_Namespace.set ("x_ite/Browser/Picking/X3DPickingContext", X3DPickingContext_default_);
|
|
69996
70116
|
/* harmony default export */ const Picking_X3DPickingContext = (X3DPickingContext_default_);
|
|
69997
70117
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js
|
|
69998
|
-
/* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(
|
|
69999
|
-
/* provided dependency */ var PointingDevice_$ = __webpack_require__(
|
|
70118
|
+
/* provided dependency */ var PointingDevice_jquery_mousewheel = __webpack_require__(895);
|
|
70119
|
+
/* provided dependency */ var PointingDevice_$ = __webpack_require__(265);
|
|
70000
70120
|
/*******************************************************************************
|
|
70001
70121
|
*
|
|
70002
70122
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -70606,8 +70726,8 @@ const X3DPointingDeviceSensorContext_default_ = X3DPointingDeviceSensorContext;
|
|
|
70606
70726
|
x_ite_Namespace.set ("x_ite/Browser/PointingDeviceSensor/X3DPointingDeviceSensorContext", X3DPointingDeviceSensorContext_default_);
|
|
70607
70727
|
/* harmony default export */ const PointingDeviceSensor_X3DPointingDeviceSensorContext = (X3DPointingDeviceSensorContext_default_);
|
|
70608
70728
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Rendering/X3DRenderingContext.js
|
|
70609
|
-
/* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(
|
|
70610
|
-
/* provided dependency */ var ResizeSensor = __webpack_require__(
|
|
70729
|
+
/* provided dependency */ var X3DRenderingContext_$ = __webpack_require__(265);
|
|
70730
|
+
/* provided dependency */ var ResizeSensor = __webpack_require__(923);
|
|
70611
70731
|
/*******************************************************************************
|
|
70612
70732
|
*
|
|
70613
70733
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -81626,7 +81746,7 @@ const X3DRoutingContext_default_ = X3DRoutingContext;
|
|
|
81626
81746
|
x_ite_Namespace.set ("x_ite/Routing/X3DRoutingContext", X3DRoutingContext_default_);
|
|
81627
81747
|
/* harmony default export */ const Routing_X3DRoutingContext = (X3DRoutingContext_default_);
|
|
81628
81748
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/X3DBrowserContext.js
|
|
81629
|
-
/* provided dependency */ var X3DBrowserContext_$ = __webpack_require__(
|
|
81749
|
+
/* provided dependency */ var X3DBrowserContext_$ = __webpack_require__(265);
|
|
81630
81750
|
/*******************************************************************************
|
|
81631
81751
|
*
|
|
81632
81752
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -81967,9 +82087,12 @@ Object .assign (X3DBrowserContext,
|
|
|
81967
82087
|
X3DBrowserContext_$("x3d-canvas, X3DCanvas") .each (function (_, canvas)
|
|
81968
82088
|
{
|
|
81969
82089
|
const
|
|
81970
|
-
X3D = window [Symbol .for ("X_ITE.X3D-8.3.
|
|
82090
|
+
X3D = window [Symbol .for ("X_ITE.X3D-8.3.2")],
|
|
81971
82091
|
browser = X3D .getBrowser (canvas);
|
|
81972
82092
|
|
|
82093
|
+
if (! browser)
|
|
82094
|
+
return;
|
|
82095
|
+
|
|
81973
82096
|
browserContext .call (browser);
|
|
81974
82097
|
|
|
81975
82098
|
if (typeof browserContext .prototype .initialize === "function")
|
|
@@ -93998,18 +94121,28 @@ Inline .prototype = Object .assign (Object .create (Core_X3DChildNode.prototype)
|
|
|
93998
94121
|
},
|
|
93999
94122
|
unLoadNow: function ()
|
|
94000
94123
|
{
|
|
94124
|
+
this .abortLoading ();
|
|
94001
94125
|
this .setInternalScene (this .getBrowser () .getDefaultScene ());
|
|
94002
94126
|
},
|
|
94003
94127
|
loadNow: function ()
|
|
94004
94128
|
{
|
|
94005
|
-
|
|
94129
|
+
this .abortLoading ();
|
|
94130
|
+
this .fileLoader = new InputOutput_FileLoader (this) .createX3DFromURL (this ._url, null, this .setInternalSceneAsync .bind (this));
|
|
94131
|
+
},
|
|
94132
|
+
abortLoading: function ()
|
|
94133
|
+
{
|
|
94134
|
+
this .scene ._loadCount .removeInterest ("checkLoadCount", this);
|
|
94135
|
+
|
|
94136
|
+
if (this .fileLoader)
|
|
94137
|
+
this .fileLoader .abort ();
|
|
94006
94138
|
},
|
|
94007
94139
|
setInternalSceneAsync: function (scene)
|
|
94008
94140
|
{
|
|
94009
94141
|
if (scene)
|
|
94010
94142
|
{
|
|
94143
|
+
scene ._loadCount .addInterest ("checkLoadCount", this);
|
|
94011
94144
|
this .setInternalScene (scene);
|
|
94012
|
-
this .
|
|
94145
|
+
this .checkLoadCount (scene ._loadCount);
|
|
94013
94146
|
}
|
|
94014
94147
|
else
|
|
94015
94148
|
{
|
|
@@ -94017,6 +94150,15 @@ Inline .prototype = Object .assign (Object .create (Core_X3DChildNode.prototype)
|
|
|
94017
94150
|
this .setLoadState (Base_X3DConstants.FAILED_STATE);
|
|
94018
94151
|
}
|
|
94019
94152
|
},
|
|
94153
|
+
checkLoadCount: function (loadCount)
|
|
94154
|
+
{
|
|
94155
|
+
if (loadCount .getValue ())
|
|
94156
|
+
return;
|
|
94157
|
+
|
|
94158
|
+
loadCount .removeInterest ("checkLoadCount", this);
|
|
94159
|
+
|
|
94160
|
+
this .setLoadState (Base_X3DConstants.COMPLETE_STATE);
|
|
94161
|
+
},
|
|
94020
94162
|
setInternalScene: function (scene)
|
|
94021
94163
|
{
|
|
94022
94164
|
this .scene .setLive (false);
|
|
@@ -100724,7 +100866,7 @@ const X3DSoundSourceNode_default_ = X3DSoundSourceNode;
|
|
|
100724
100866
|
x_ite_Namespace.set ("x_ite/Components/Sound/X3DSoundSourceNode", X3DSoundSourceNode_default_);
|
|
100725
100867
|
/* harmony default export */ const Sound_X3DSoundSourceNode = (X3DSoundSourceNode_default_);
|
|
100726
100868
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Sound/AudioClip.js
|
|
100727
|
-
/* provided dependency */ var AudioClip_$ = __webpack_require__(
|
|
100869
|
+
/* provided dependency */ var AudioClip_$ = __webpack_require__(265);
|
|
100728
100870
|
/*******************************************************************************
|
|
100729
100871
|
*
|
|
100730
100872
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -103421,7 +103563,7 @@ const Components_Sound_default_ = undefined;
|
|
|
103421
103563
|
x_ite_Namespace.set ("x_ite/Components/Sound", Components_Sound_default_);
|
|
103422
103564
|
/* harmony default export */ const Components_Sound = ((/* unused pure expression or super */ null && (Components_Sound_default_)));
|
|
103423
103565
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/MovieTexture.js
|
|
103424
|
-
/* provided dependency */ var MovieTexture_$ = __webpack_require__(
|
|
103566
|
+
/* provided dependency */ var MovieTexture_$ = __webpack_require__(265);
|
|
103425
103567
|
/*******************************************************************************
|
|
103426
103568
|
*
|
|
103427
103569
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -104344,7 +104486,7 @@ const MultiTextureTransform_default_ = MultiTextureTransform;
|
|
|
104344
104486
|
x_ite_Namespace.set ("x_ite/Components/Texturing/MultiTextureTransform", MultiTextureTransform_default_);
|
|
104345
104487
|
/* harmony default export */ const Texturing_MultiTextureTransform = (MultiTextureTransform_default_);
|
|
104346
104488
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing/PixelTexture.js
|
|
104347
|
-
/* provided dependency */ var PixelTexture_$ = __webpack_require__(
|
|
104489
|
+
/* provided dependency */ var PixelTexture_$ = __webpack_require__(265);
|
|
104348
104490
|
/*******************************************************************************
|
|
104349
104491
|
*
|
|
104350
104492
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -105047,7 +105189,7 @@ const Components_default_ = Components;
|
|
|
105047
105189
|
x_ite_Namespace.set ("x_ite/Components", Components_default_);
|
|
105048
105190
|
/* harmony default export */ const x_ite_Components = ((/* unused pure expression or super */ null && (Components_default_)));
|
|
105049
105191
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/DOMIntegration.js
|
|
105050
|
-
/* provided dependency */ var DOMIntegration_$ = __webpack_require__(
|
|
105192
|
+
/* provided dependency */ var DOMIntegration_$ = __webpack_require__(265);
|
|
105051
105193
|
/*******************************************************************************
|
|
105052
105194
|
* MIT License
|
|
105053
105195
|
*
|
|
@@ -105076,30 +105218,27 @@ x_ite_Namespace.set ("x_ite/Components", Components_default_);
|
|
|
105076
105218
|
|
|
105077
105219
|
|
|
105078
105220
|
|
|
105079
|
-
|
|
105080
105221
|
class DOMIntegration
|
|
105081
105222
|
{
|
|
105082
105223
|
constructor (browser)
|
|
105083
105224
|
{
|
|
105084
|
-
this .browser
|
|
105085
|
-
this .rootElement
|
|
105225
|
+
this .browser = browser;
|
|
105226
|
+
this .rootElement = undefined;
|
|
105227
|
+
this .canvasObserver = new MutationObserver (() => this .processCanvasMutation (browser));
|
|
105086
105228
|
|
|
105087
|
-
this .canvasObserver
|
|
105088
|
-
{
|
|
105089
|
-
this .observeRoot (this .browser .getElement () .children ("X3D") [0]);
|
|
105090
|
-
});
|
|
105091
|
-
|
|
105092
|
-
this .canvasObserver .observe (this .browser .getElement () [0], {
|
|
105229
|
+
this .canvasObserver .observe (browser .getElement () [0], {
|
|
105093
105230
|
childList: true,
|
|
105094
105231
|
});
|
|
105095
105232
|
|
|
105096
|
-
|
|
105233
|
+
this .processCanvasMutation (browser)
|
|
105234
|
+
}
|
|
105097
105235
|
|
|
105098
|
-
|
|
105099
|
-
|
|
105236
|
+
processCanvasMutation (browser)
|
|
105237
|
+
{
|
|
105238
|
+
this .processRootElement (browser, browser .getElement () .children ("X3D") .get (-1));
|
|
105100
105239
|
}
|
|
105101
105240
|
|
|
105102
|
-
async
|
|
105241
|
+
async processRootElement (browser, rootElement)
|
|
105103
105242
|
{
|
|
105104
105243
|
try
|
|
105105
105244
|
{
|
|
@@ -105112,21 +105251,20 @@ class DOMIntegration
|
|
|
105112
105251
|
{
|
|
105113
105252
|
// Display splash screen.
|
|
105114
105253
|
|
|
105115
|
-
|
|
105116
|
-
|
|
105254
|
+
browser .setBrowserLoading (true);
|
|
105255
|
+
browser .addLoadingObject (this);
|
|
105117
105256
|
|
|
105118
|
-
//
|
|
105257
|
+
// Now also attached node property to each node element.
|
|
105119
105258
|
|
|
105120
|
-
|
|
105121
|
-
this .preprocessScriptElements (rootElement);
|
|
105259
|
+
const scene = browser .createScene ();
|
|
105122
105260
|
|
|
105123
|
-
|
|
105261
|
+
this .parser = new Parser_XMLParser (scene);
|
|
105124
105262
|
|
|
105125
|
-
|
|
105263
|
+
this .parser .setInput (rootElement);
|
|
105126
105264
|
|
|
105127
|
-
this .
|
|
105265
|
+
await new Promise (this .parser .parseIntoScene .bind (this .parser));
|
|
105128
105266
|
|
|
105129
|
-
|
|
105267
|
+
browser .replaceWorld (scene);
|
|
105130
105268
|
|
|
105131
105269
|
// Create an observer instance.
|
|
105132
105270
|
|
|
@@ -105151,11 +105289,11 @@ class DOMIntegration
|
|
|
105151
105289
|
this .processInlineElements (rootElement);
|
|
105152
105290
|
this .addEventDispatchersAll (rootElement);
|
|
105153
105291
|
|
|
105154
|
-
|
|
105292
|
+
browser .removeLoadingObject (this);
|
|
105155
105293
|
}
|
|
105156
105294
|
else
|
|
105157
105295
|
{
|
|
105158
|
-
|
|
105296
|
+
browser .replaceWorld (null);
|
|
105159
105297
|
}
|
|
105160
105298
|
}
|
|
105161
105299
|
catch (error)
|
|
@@ -105164,27 +105302,6 @@ class DOMIntegration
|
|
|
105164
105302
|
}
|
|
105165
105303
|
}
|
|
105166
105304
|
|
|
105167
|
-
preprocessScriptElements (rootElement)
|
|
105168
|
-
{
|
|
105169
|
-
const scriptElements = rootElement .querySelectorAll ("Script");
|
|
105170
|
-
|
|
105171
|
-
for (const scriptElement of scriptElements)
|
|
105172
|
-
this .appendScriptElementChildren (scriptElement);
|
|
105173
|
-
}
|
|
105174
|
-
|
|
105175
|
-
appendScriptElementChildren (scriptElement)
|
|
105176
|
-
{
|
|
105177
|
-
const
|
|
105178
|
-
domParser = new DOMParser (),
|
|
105179
|
-
scriptDoc = domParser .parseFromString (scriptElement .outerHTML, "application/xml"),
|
|
105180
|
-
scriptNodes = scriptDoc .children [0] .childNodes;
|
|
105181
|
-
|
|
105182
|
-
scriptElement .textContent = "// Content moved into childNodes.";
|
|
105183
|
-
|
|
105184
|
-
for (const scriptNode of scriptNodes)
|
|
105185
|
-
scriptElement .appendChild (scriptNode);
|
|
105186
|
-
}
|
|
105187
|
-
|
|
105188
105305
|
processMutation (mutation)
|
|
105189
105306
|
{
|
|
105190
105307
|
switch (mutation .type)
|
|
@@ -105209,13 +105326,15 @@ class DOMIntegration
|
|
|
105209
105326
|
|
|
105210
105327
|
processAttribute (mutation, element)
|
|
105211
105328
|
{
|
|
105329
|
+
const parser = this .parser;
|
|
105330
|
+
|
|
105212
105331
|
if (DOMIntegration_$.data (element, "node"))
|
|
105213
105332
|
{
|
|
105214
105333
|
const
|
|
105215
105334
|
attributeName = mutation .attributeName,
|
|
105216
105335
|
attribute = element .attributes .getNamedItem (attributeName);
|
|
105217
105336
|
|
|
105218
|
-
|
|
105337
|
+
parser .nodeAttribute (attribute, DOMIntegration_$.data (element, "node"));
|
|
105219
105338
|
}
|
|
105220
105339
|
else
|
|
105221
105340
|
{
|
|
@@ -105225,11 +105344,11 @@ class DOMIntegration
|
|
|
105225
105344
|
parentNode = element .parentNode,
|
|
105226
105345
|
node = DOMIntegration_$.data (parentNode, "node");
|
|
105227
105346
|
|
|
105228
|
-
|
|
105229
|
-
|
|
105230
|
-
|
|
105231
|
-
|
|
105232
|
-
|
|
105347
|
+
parser .pushExecutionContext (node .getExecutionContext ());
|
|
105348
|
+
parser .pushParent (node);
|
|
105349
|
+
parser .childElement (element);
|
|
105350
|
+
parser .popParent ();
|
|
105351
|
+
parser .popExecutionContext ();
|
|
105233
105352
|
}
|
|
105234
105353
|
}
|
|
105235
105354
|
|
|
@@ -105252,6 +105371,8 @@ class DOMIntegration
|
|
|
105252
105371
|
|
|
105253
105372
|
if (parentNode .nodeName .match (/^(?:Scene|SCENE)$/))
|
|
105254
105373
|
{
|
|
105374
|
+
// Root scene or Inline scene.
|
|
105375
|
+
|
|
105255
105376
|
const scene = DOMIntegration_$.data (parentNode, "node");
|
|
105256
105377
|
|
|
105257
105378
|
parser .pushExecutionContext (scene);
|
|
@@ -105323,6 +105444,8 @@ class DOMIntegration
|
|
|
105323
105444
|
return;
|
|
105324
105445
|
|
|
105325
105446
|
node ._loadState .addInterest ("appendInlineChildElement", this, element);
|
|
105447
|
+
|
|
105448
|
+
this .appendInlineChildElement (element);
|
|
105326
105449
|
}
|
|
105327
105450
|
|
|
105328
105451
|
appendInlineChildElement (element)
|
|
@@ -105357,9 +105480,33 @@ class DOMIntegration
|
|
|
105357
105480
|
|
|
105358
105481
|
// Add Inline elements, and connect to node events.
|
|
105359
105482
|
|
|
105360
|
-
this .processInlineElements (
|
|
105361
|
-
this .addEventDispatchersAll (
|
|
105483
|
+
this .processInlineElements (X3DElement);
|
|
105484
|
+
this .addEventDispatchersAll (X3DElement);
|
|
105485
|
+
|
|
105486
|
+
break;
|
|
105487
|
+
}
|
|
105488
|
+
}
|
|
105489
|
+
|
|
105490
|
+
switch (node .checkLoadState ())
|
|
105491
|
+
{
|
|
105492
|
+
case Base_X3DConstants.COMPLETE_STATE:
|
|
105493
|
+
{
|
|
105494
|
+
const event = new CustomEvent ("load",
|
|
105495
|
+
{
|
|
105496
|
+
detail: { node: node .valueOf () },
|
|
105497
|
+
});
|
|
105498
|
+
|
|
105499
|
+
element .dispatchEvent (event);
|
|
105500
|
+
break;
|
|
105501
|
+
}
|
|
105502
|
+
case Base_X3DConstants.FAILED_STATE:
|
|
105503
|
+
{
|
|
105504
|
+
const event = new CustomEvent ("error",
|
|
105505
|
+
{
|
|
105506
|
+
detail: { node: node .valueOf () },
|
|
105507
|
+
});
|
|
105362
105508
|
|
|
105509
|
+
element .dispatchEvent (event);
|
|
105363
105510
|
break;
|
|
105364
105511
|
}
|
|
105365
105512
|
}
|
|
@@ -105404,9 +105551,13 @@ class DOMIntegration
|
|
|
105404
105551
|
{
|
|
105405
105552
|
const node = DOMIntegration_$.data (element, "node");
|
|
105406
105553
|
|
|
105407
|
-
|
|
105554
|
+
if (! node)
|
|
105555
|
+
return;
|
|
105556
|
+
|
|
105557
|
+
const event = new CustomEvent (field .getName (),
|
|
105558
|
+
{
|
|
105408
105559
|
detail: {
|
|
105409
|
-
node: node
|
|
105560
|
+
node: node .valueOf (),
|
|
105410
105561
|
value: field .valueOf (),
|
|
105411
105562
|
},
|
|
105412
105563
|
});
|
|
@@ -106268,7 +106419,7 @@ const SupportedProfiles_default_ = SupportedProfiles;
|
|
|
106268
106419
|
x_ite_Namespace.set ("x_ite/Configuration/SupportedProfiles", SupportedProfiles_default_);
|
|
106269
106420
|
/* harmony default export */ const Configuration_SupportedProfiles = (SupportedProfiles_default_);
|
|
106270
106421
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/X3DBrowser.js
|
|
106271
|
-
/* provided dependency */ var X3DBrowser_$ = __webpack_require__(
|
|
106422
|
+
/* provided dependency */ var X3DBrowser_$ = __webpack_require__(265);
|
|
106272
106423
|
/*******************************************************************************
|
|
106273
106424
|
*
|
|
106274
106425
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -106604,7 +106755,7 @@ X3DBrowser .prototype = Object .assign (Object .create (Browser_X3DBrowserContex
|
|
|
106604
106755
|
if (loadCount .getValue ())
|
|
106605
106756
|
return;
|
|
106606
106757
|
|
|
106607
|
-
|
|
106758
|
+
loadCount .removeInterest ("checkLoadCount", this);
|
|
106608
106759
|
this .initialized () .set (this .getCurrentTime ());
|
|
106609
106760
|
this .initialized () .processInterests ();
|
|
106610
106761
|
this .callBrowserCallbacks (Base_X3DConstants.INITIALIZED_EVENT);
|
|
@@ -107153,7 +107304,7 @@ const X3DBrowser_default_ = X3DBrowser;
|
|
|
107153
107304
|
x_ite_Namespace.set ("x_ite/Browser/X3DBrowser", X3DBrowser_default_);
|
|
107154
107305
|
/* harmony default export */ const Browser_X3DBrowser = (X3DBrowser_default_);
|
|
107155
107306
|
;// CONCATENATED MODULE: ./src/x_ite/Fallback.js
|
|
107156
|
-
/* provided dependency */ var Fallback_$ = __webpack_require__(
|
|
107307
|
+
/* provided dependency */ var Fallback_$ = __webpack_require__(265);
|
|
107157
107308
|
/*******************************************************************************
|
|
107158
107309
|
*
|
|
107159
107310
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -107332,14 +107483,14 @@ const MicroTime_default_ = undefined;
|
|
|
107332
107483
|
x_ite_Namespace.set ("standard/Time/MicroTime", MicroTime_default_);
|
|
107333
107484
|
/* harmony default export */ const MicroTime = ((/* unused pure expression or super */ null && (MicroTime_default_)));
|
|
107334
107485
|
;// CONCATENATED MODULE: ./src/lib/jquery.js
|
|
107335
|
-
/* provided dependency */ var jquery_$ = __webpack_require__(
|
|
107486
|
+
/* provided dependency */ var jquery_$ = __webpack_require__(265);
|
|
107336
107487
|
const jquery_default_ = jquery_$;
|
|
107337
107488
|
;
|
|
107338
107489
|
|
|
107339
107490
|
x_ite_Namespace.set ("lib/jquery", jquery_default_);
|
|
107340
107491
|
/* harmony default export */ const jquery = ((/* unused pure expression or super */ null && (jquery_default_)));
|
|
107341
107492
|
;// CONCATENATED MODULE: ./src/x_ite/X3D.js
|
|
107342
|
-
/* provided dependency */ var X3D_$ = __webpack_require__(
|
|
107493
|
+
/* provided dependency */ var X3D_$ = __webpack_require__(265);
|
|
107343
107494
|
/*******************************************************************************
|
|
107344
107495
|
*
|
|
107345
107496
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -107594,7 +107745,7 @@ const X3D_default_ = X3D;
|
|
|
107594
107745
|
x_ite_Namespace.set ("x_ite/X3D", X3D_default_);
|
|
107595
107746
|
/* harmony default export */ const x_ite_X3D = (X3D_default_);
|
|
107596
107747
|
;// CONCATENATED MODULE: ./src/x_ite/X3DCanvas.js
|
|
107597
|
-
/* provided dependency */ var X3DCanvas_$ = __webpack_require__(
|
|
107748
|
+
/* provided dependency */ var X3DCanvas_$ = __webpack_require__(265);
|
|
107598
107749
|
/*******************************************************************************
|
|
107599
107750
|
*
|
|
107600
107751
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -107844,7 +107995,7 @@ x_ite_Namespace.set ("shim", shim_default_);
|
|
|
107844
107995
|
|
|
107845
107996
|
// Assign X3D to global namespace.
|
|
107846
107997
|
|
|
107847
|
-
window [Symbol .for ("X_ITE.X3D-8.3.
|
|
107998
|
+
window [Symbol .for ("X_ITE.X3D-8.3.2")] = x_ite_X3D;
|
|
107848
107999
|
|
|
107849
108000
|
x_ite_X3DCanvas.define ();
|
|
107850
108001
|
|