x_ite 8.7.8 → 8.7.9
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 +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 +27 -33
- package/dist/assets/components/NURBS.min.js +1 -1
- package/dist/assets/components/ParticleSystems.js +22 -22
- 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 +18 -18
- package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
- package/dist/assets/components/Scripting.js +35 -35
- 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/TextureProjector.js +14 -14
- package/dist/assets/components/TextureProjector.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 +9 -9
- package/dist/assets/components/X_ITE.min.js +1 -1
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.js +516 -458
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.zip +0 -0
- package/docs/_config.yml +1 -1
- package/package.json +1 -1
- package/src/assets/shaders/webgl1/include/Shadow.glsl.js +21 -25
- package/src/assets/shaders/webgl2/include/Shadow.glsl.js +23 -27
- package/src/x_ite/Base/X3DBaseNode.js +4 -5
- package/src/x_ite/Base/X3DObject.js +1 -1
- package/src/x_ite/Base/X3DObjectArrayField.js +7 -38
- package/src/x_ite/Base/X3DTypedArrayField.js +2 -2
- package/src/x_ite/Browser/VERSION.js +1 -1
- package/src/x_ite/Browser/X3DBrowser.js +10 -2
- package/src/x_ite/Components/Core/X3DNode.js +15 -15
- package/src/x_ite/Components/Core.js +2 -2
- package/src/x_ite/Components/EnvironmentalEffects.js +2 -2
- package/src/x_ite/Components/EnvironmentalSensor.js +2 -2
- package/src/x_ite/Components/Followers.js +2 -2
- package/src/x_ite/Components/Geometry3D.js +2 -2
- package/src/x_ite/Components/Grouping/X3DGroupingNode.js +1 -3
- package/src/x_ite/Components/Grouping.js +2 -2
- package/src/x_ite/Components/Interpolation.js +2 -2
- package/src/x_ite/Components/Layering.js +2 -2
- package/src/x_ite/Components/Lighting.js +2 -2
- package/src/x_ite/Components/NURBS/Contour2D.js +1 -3
- package/src/x_ite/Components/NURBS/NurbsSet.js +1 -3
- package/src/x_ite/Components/NURBS/NurbsTrimmedSurface.js +1 -3
- package/src/x_ite/Components/Navigation.js +2 -2
- package/src/x_ite/Components/Networking.js +2 -2
- package/src/x_ite/Components/PointingDeviceSensor.js +2 -2
- package/src/x_ite/Components/Rendering.js +2 -2
- package/src/x_ite/Components/Scripting/Script.js +7 -7
- package/src/x_ite/Components/Shaders.js +2 -2
- package/src/x_ite/Components/Shape.js +2 -2
- package/src/x_ite/Components/Sound.js +2 -2
- package/src/x_ite/Components/Texturing.js +2 -2
- package/src/x_ite/Components/Time.js +2 -2
- package/src/x_ite/Components.js +2 -2
- package/src/x_ite/Configuration/NodeTypeArray.js +68 -0
- package/src/x_ite/Configuration/SupportedNodes.js +13 -20
- package/src/x_ite/Execution/X3DExecutionContext.js +67 -49
- package/src/x_ite/Execution/X3DScene.js +1 -1
- package/src/x_ite/Execution/X3DWorld.js +1 -1
- package/src/x_ite/InputOutput/FileLoader.js +1 -1
- package/src/x_ite/Prototype/X3DExternProtoDeclaration.js +1 -1
- package/src/x_ite/Prototype/X3DProtoDeclaration.js +1 -1
- package/src/x_ite/Prototype/X3DProtoDeclarationNode.js +1 -1
- package/src/x_ite/Routing/X3DRoute.js +8 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/* X_ITE v8.7.
|
|
1
|
+
/* X_ITE v8.7.9 */(() => { // webpackBootstrap
|
|
2
2
|
/******/ "use strict";
|
|
3
3
|
/******/ var __webpack_modules__ = ({
|
|
4
4
|
|
|
5
5
|
/***/ 355:
|
|
6
6
|
/***/ ((module) => {
|
|
7
7
|
|
|
8
|
-
module.exports = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
8
|
+
module.exports = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("lib/jquery");
|
|
9
9
|
|
|
10
10
|
/***/ })
|
|
11
11
|
|
|
@@ -73,70 +73,70 @@ var __webpack_exports__ = {};
|
|
|
73
73
|
// UNUSED EXPORTS: default
|
|
74
74
|
|
|
75
75
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components\")"
|
|
76
|
-
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
76
|
+
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Components");
|
|
77
77
|
var Components_default = /*#__PURE__*/__webpack_require__.n(Components_namespaceObject);
|
|
78
78
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
|
|
79
|
-
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
79
|
+
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Base/X3DFieldDefinition");
|
|
80
80
|
var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
|
|
81
81
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
|
|
82
|
-
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
82
|
+
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Base/FieldDefinitionArray");
|
|
83
83
|
var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
|
|
84
84
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DField\")"
|
|
85
|
-
const X3DField_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
85
|
+
const X3DField_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Base/X3DField");
|
|
86
86
|
var X3DField_default = /*#__PURE__*/__webpack_require__.n(X3DField_namespaceObject);
|
|
87
87
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DArrayField\")"
|
|
88
|
-
const X3DArrayField_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
88
|
+
const X3DArrayField_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Base/X3DArrayField");
|
|
89
89
|
var X3DArrayField_default = /*#__PURE__*/__webpack_require__.n(X3DArrayField_namespaceObject);
|
|
90
90
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
|
|
91
|
-
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
91
|
+
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Fields");
|
|
92
92
|
var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
|
|
93
93
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Browser/X3DBrowser\")"
|
|
94
|
-
const X3DBrowser_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
94
|
+
const X3DBrowser_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Browser/X3DBrowser");
|
|
95
95
|
var X3DBrowser_default = /*#__PURE__*/__webpack_require__.n(X3DBrowser_namespaceObject);
|
|
96
96
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Configuration/ComponentInfo\")"
|
|
97
|
-
const ComponentInfo_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
97
|
+
const ComponentInfo_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Configuration/ComponentInfo");
|
|
98
98
|
var ComponentInfo_default = /*#__PURE__*/__webpack_require__.n(ComponentInfo_namespaceObject);
|
|
99
99
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Configuration/ComponentInfoArray\")"
|
|
100
|
-
const ComponentInfoArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
100
|
+
const ComponentInfoArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Configuration/ComponentInfoArray");
|
|
101
101
|
var ComponentInfoArray_default = /*#__PURE__*/__webpack_require__.n(ComponentInfoArray_namespaceObject);
|
|
102
102
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Configuration/ProfileInfo\")"
|
|
103
|
-
const ProfileInfo_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
103
|
+
const ProfileInfo_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Configuration/ProfileInfo");
|
|
104
104
|
var ProfileInfo_default = /*#__PURE__*/__webpack_require__.n(ProfileInfo_namespaceObject);
|
|
105
105
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Configuration/ProfileInfoArray\")"
|
|
106
|
-
const ProfileInfoArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
106
|
+
const ProfileInfoArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Configuration/ProfileInfoArray");
|
|
107
107
|
var ProfileInfoArray_default = /*#__PURE__*/__webpack_require__.n(ProfileInfoArray_namespaceObject);
|
|
108
108
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Configuration/UnitInfo\")"
|
|
109
|
-
const UnitInfo_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
109
|
+
const UnitInfo_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Configuration/UnitInfo");
|
|
110
110
|
var UnitInfo_default = /*#__PURE__*/__webpack_require__.n(UnitInfo_namespaceObject);
|
|
111
111
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Configuration/UnitInfoArray\")"
|
|
112
|
-
const UnitInfoArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
112
|
+
const UnitInfoArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Configuration/UnitInfoArray");
|
|
113
113
|
var UnitInfoArray_default = /*#__PURE__*/__webpack_require__.n(UnitInfoArray_namespaceObject);
|
|
114
114
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Execution/X3DExecutionContext\")"
|
|
115
|
-
const X3DExecutionContext_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
115
|
+
const X3DExecutionContext_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Execution/X3DExecutionContext");
|
|
116
116
|
var X3DExecutionContext_default = /*#__PURE__*/__webpack_require__.n(X3DExecutionContext_namespaceObject);
|
|
117
117
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Execution/X3DScene\")"
|
|
118
|
-
const X3DScene_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
118
|
+
const X3DScene_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Execution/X3DScene");
|
|
119
119
|
var X3DScene_default = /*#__PURE__*/__webpack_require__.n(X3DScene_namespaceObject);
|
|
120
120
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Prototype/ExternProtoDeclarationArray\")"
|
|
121
|
-
const ExternProtoDeclarationArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
121
|
+
const ExternProtoDeclarationArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Prototype/ExternProtoDeclarationArray");
|
|
122
122
|
var ExternProtoDeclarationArray_default = /*#__PURE__*/__webpack_require__.n(ExternProtoDeclarationArray_namespaceObject);
|
|
123
123
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Prototype/ProtoDeclarationArray\")"
|
|
124
|
-
const ProtoDeclarationArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
124
|
+
const ProtoDeclarationArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Prototype/ProtoDeclarationArray");
|
|
125
125
|
var ProtoDeclarationArray_default = /*#__PURE__*/__webpack_require__.n(ProtoDeclarationArray_namespaceObject);
|
|
126
126
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Prototype/X3DExternProtoDeclaration\")"
|
|
127
|
-
const X3DExternProtoDeclaration_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
127
|
+
const X3DExternProtoDeclaration_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Prototype/X3DExternProtoDeclaration");
|
|
128
128
|
var X3DExternProtoDeclaration_default = /*#__PURE__*/__webpack_require__.n(X3DExternProtoDeclaration_namespaceObject);
|
|
129
129
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Prototype/X3DProtoDeclaration\")"
|
|
130
|
-
const X3DProtoDeclaration_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
130
|
+
const X3DProtoDeclaration_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Prototype/X3DProtoDeclaration");
|
|
131
131
|
var X3DProtoDeclaration_default = /*#__PURE__*/__webpack_require__.n(X3DProtoDeclaration_namespaceObject);
|
|
132
132
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Routing/RouteArray\")"
|
|
133
|
-
const RouteArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
133
|
+
const RouteArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Routing/RouteArray");
|
|
134
134
|
var RouteArray_default = /*#__PURE__*/__webpack_require__.n(RouteArray_namespaceObject);
|
|
135
135
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Routing/X3DRoute\")"
|
|
136
|
-
const X3DRoute_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
136
|
+
const X3DRoute_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Routing/X3DRoute");
|
|
137
137
|
var X3DRoute_default = /*#__PURE__*/__webpack_require__.n(X3DRoute_namespaceObject);
|
|
138
138
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
|
|
139
|
-
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
139
|
+
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Namespace");
|
|
140
140
|
var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
|
|
141
141
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Scripting/evaluate.js
|
|
142
142
|
/*******************************************************************************
|
|
@@ -203,13 +203,13 @@ const __default__ = evaluate;
|
|
|
203
203
|
Namespace_default().set ("x_ite/Browser/Scripting/evaluate", __default__);
|
|
204
204
|
/* harmony default export */ const Scripting_evaluate = (__default__);
|
|
205
205
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DChildNode\")"
|
|
206
|
-
const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
206
|
+
const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Components/Core/X3DChildNode");
|
|
207
207
|
var X3DChildNode_default = /*#__PURE__*/__webpack_require__.n(X3DChildNode_namespaceObject);
|
|
208
208
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Networking/X3DUrlObject\")"
|
|
209
|
-
const X3DUrlObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
209
|
+
const X3DUrlObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Components/Networking/X3DUrlObject");
|
|
210
210
|
var X3DUrlObject_default = /*#__PURE__*/__webpack_require__.n(X3DUrlObject_namespaceObject);
|
|
211
211
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
|
|
212
|
-
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
212
|
+
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Base/X3DConstants");
|
|
213
213
|
var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
|
|
214
214
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Scripting/X3DScriptNode.js
|
|
215
215
|
/*******************************************************************************
|
|
@@ -293,7 +293,7 @@ const X3DScriptNode_default_ = X3DScriptNode;
|
|
|
293
293
|
Namespace_default().set ("x_ite/Components/Scripting/X3DScriptNode", X3DScriptNode_default_);
|
|
294
294
|
/* harmony default export */ const Scripting_X3DScriptNode = (X3DScriptNode_default_);
|
|
295
295
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/InputOutput/FileLoader\")"
|
|
296
|
-
const FileLoader_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
296
|
+
const FileLoader_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/InputOutput/FileLoader");
|
|
297
297
|
var FileLoader_default = /*#__PURE__*/__webpack_require__.n(FileLoader_namespaceObject);
|
|
298
298
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Scripting/Script.js
|
|
299
299
|
/* provided dependency */ var $ = __webpack_require__(355);
|
|
@@ -652,13 +652,6 @@ Script .prototype = Object .assign (Object .create (Scripting_X3DScriptNode.prot
|
|
|
652
652
|
|
|
653
653
|
this .context = this .getContext (sourceText);
|
|
654
654
|
|
|
655
|
-
// Call initialize function.
|
|
656
|
-
|
|
657
|
-
const initialize = this .context .get ("initialize");
|
|
658
|
-
|
|
659
|
-
if (typeof initialize === "function")
|
|
660
|
-
this .call__ (initialize, "initialize");
|
|
661
|
-
|
|
662
655
|
// Connect shutdown.
|
|
663
656
|
|
|
664
657
|
const shutdown = this .context .get ("shutdown");
|
|
@@ -706,6 +699,13 @@ Script .prototype = Object .assign (Object .create (Scripting_X3DScriptNode.prot
|
|
|
706
699
|
}
|
|
707
700
|
}
|
|
708
701
|
}
|
|
702
|
+
|
|
703
|
+
// Call initialize function.
|
|
704
|
+
|
|
705
|
+
const initialize = this .context .get ("initialize");
|
|
706
|
+
|
|
707
|
+
if (typeof initialize === "function")
|
|
708
|
+
this .call__ (initialize, "initialize");
|
|
709
709
|
},
|
|
710
710
|
call__: function (callback, name)
|
|
711
711
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/* X_ITE v8.7.8 */(()=>{"use strict";var e={355:e=>{e.exports=window[Symbol.for("X_ITE.X3D-8.7.8")].require("lib/jquery")}},t={};function o(i){var n=t[i];if(void 0!==n)return n.exports;var r=t[i]={exports:{}};return e[i](r,r.exports,o),r.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{const e=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Components");var t=o.n(e);const i=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Base/X3DFieldDefinition");var n=o.n(i);const r=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Base/FieldDefinitionArray");var a=o.n(r);const s=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Base/X3DField");var l=o.n(s);const c=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Base/X3DArrayField");var u=o.n(c);const d=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Fields");var f=o.n(d);const p=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Browser/X3DBrowser");var v=o.n(p);const F=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Configuration/ComponentInfo");var S=o.n(F);const _=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Configuration/ComponentInfoArray");var h=o.n(_);const w=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Configuration/ProfileInfo");var g=o.n(w);const y=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Configuration/ProfileInfoArray");var m=o.n(y);const D=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Configuration/UnitInfo");var X=o.n(D);const x=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Configuration/UnitInfoArray");var I=o.n(x);const M=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Execution/X3DExecutionContext");var E=o.n(M);const b=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Execution/X3DScene");var T=o.n(b);const C=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Prototype/ExternProtoDeclarationArray");var O=o.n(C);const A=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Prototype/ProtoDeclarationArray");var q=o.n(A);const V=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Prototype/X3DExternProtoDeclaration");var N=o.n(V);const B=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Prototype/X3DProtoDeclaration");var P=o.n(B);const R=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Routing/RouteArray");var L=o.n(R);const U=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Routing/X3DRoute");var j=o.n(U);const z=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Namespace");var k=o.n(z);const G=function(e,t){return Function(`with (arguments [0])\n {\n delete arguments [0];\n arguments .length = 0;\n ${t}\n }`)(e)};k().set("x_ite/Browser/Scripting/evaluate",G);const $=G,H=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Components/Core/X3DChildNode");var J=o.n(H);const W=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Components/Networking/X3DUrlObject");var K=o.n(W);const Q=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Base/X3DConstants");var Y=o.n(Q);function Z(e){J().call(this,e),K().call(this,e),this.addType(Y().X3DScriptNode)}Z.prototype=Object.assign(Object.create(J().prototype),K().prototype,{constructor:Z,initialize:function(){J().prototype.initialize.call(this),K().prototype.initialize.call(this)},dispose:function(){K().prototype.dispose.call(this),J().prototype.dispose.call(this)}});const ee=Z;k().set("x_ite/Components/Scripting/X3DScriptNode",ee);const te=ee,oe=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/InputOutput/FileLoader");var ie=o.n(oe),ne=o(355);function re(e){te.call(this,e),this.addType(Y().Script)}re.prototype=Object.assign(Object.create(te.prototype),{constructor:re,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(n())(Y().inputOutput,"metadata",new(f().SFNode)),new(n())(Y().inputOutput,"description",new(f().SFString)),new(n())(Y().inputOutput,"load",new(f().SFBool)(!0)),new(n())(Y().inputOutput,"url",new(f().MFString)),new(n())(Y().inputOutput,"autoRefresh",new(f().SFTime)),new(n())(Y().inputOutput,"autoRefreshTimeLimit",new(f().SFTime)(3600)),new(n())(Y().initializeOnly,"directOutput",new(f().SFBool)),new(n())(Y().initializeOnly,"mustEvaluate",new(f().SFBool))]),getTypeName:function(){return"Script"},getComponentName:function(){return"Scripting"},getContainerField:function(){return"children"},getSpecificationRange:function(){return["2.0","Infinity"]},initialize:function(){te.prototype.initialize.call(this),this.requestImmediateLoad().catch(Function.prototype)},getExtendedEventHandling:function(){return!1},canUserDefinedFields:function(){return!0},addUserDefinedField:function(e,t,o){te.prototype.addUserDefinedField.call(this,e,t,o),this.isInitialized()&&(this.setLoadState(Y().NOT_STARTED_STATE),this.requestImmediateLoad().catch(Function.prototype))},removeUserDefinedField:function(e){this.getUserDefinedFields().get(e)?.removeInterest("set_field__",this),te.prototype.removeUserDefinedField.call(this,e),this.isInitialized()&&(this.setLoadState(Y().NOT_STARTED_STATE),this.requestImmediateLoad().catch(Function.prototype))},getSourceText:function(){return this._url},unloadData:function(){this.initialize__("")},loadData:function(){new(ie())(this).loadDocument(this._url,(e=>{null===e?this.setLoadState(Y().FAILED_STATE):(this.initialize__(ne.decodeText(e)),this.setLoadState(Y().COMPLETE_STATE))}))},getContext:function(e){try{const t=["initialize","prepareEvents","eventsProcessed","shutdown"];for(const e of this.getUserDefinedFields())switch(e.getAccessType()){case Y().inputOnly:t.push(e.getName());break;case Y().inputOutput:t.push("set_"+e.getName())}e+="\nreturn ["+t.map((function(e){return`typeof ${e} !== "undefined" ? ${e} : undefined`})).join(",")+"];",this.globalObject=this.getGlobalObject();const o=$(this.globalObject,e),i=new Map;for(let e=0;e<t.length;++e)i.set(t[e],o[e]);return i}catch(e){return this.setError("while evaluating script source",e),new Map}},evaluate:function(e){return $(this.globalObject,`return (${e})`)},getGlobalObject:function(){const e=this.getBrowser(),t=this.getExecutionContext(),o=this.getLive();function i(i){const n=e.createX3DFromString(String(i)),r=n.getRootNodes();if(o.addFieldInterest(n.getLive()),n.setLive(o.getValue()),n.setPrivate(t.isPrivate()),n.setExecutionContext(t),r.length&&r[0])return r[0];throw new Error("SFNode.new: invalid argument, must be 'string' is 'undefined'.")}i.prototype=f().SFNode.prototype;const r={NULL:{value:null},FALSE:{value:!1},TRUE:{value:!0},print:{value:e.println.bind(e)},trace:{value:e.println.bind(e)},Browser:{value:e},X3DConstants:{value:Y()},X3DBrowser:{value:v()},X3DExecutionContext:{value:E()},X3DScene:{value:T()},ComponentInfo:{value:S()},ComponentInfoArray:{value:h()},ProfileInfo:{value:g()},ProfileInfoArray:{value:m()},UnitInfo:{value:X()},UnitInfoArray:{value:I()},ExternProtoDeclarationArray:{value:O()},ProtoDeclarationArray:{value:q()},X3DExternProtoDeclaration:{value:N()},X3DProtoDeclaration:{value:P()},RouteArray:{value:L()},X3DRoute:{value:j()},X3DFieldDefinition:{value:n()},FieldDefinitionArray:{value:a()},X3DField:{value:l()},X3DArrayField:{value:u()},SFColor:{value:f().SFColor},SFColorRGBA:{value:f().SFColorRGBA},SFImage:{value:f().SFImage},SFMatrix3d:{value:f().SFMatrix3d},SFMatrix3f:{value:f().SFMatrix3f},SFMatrix4d:{value:f().SFMatrix4d},SFMatrix4f:{value:f().SFMatrix4f},SFNode:{value:i},SFRotation:{value:f().SFRotation},SFVec2d:{value:f().SFVec2d},SFVec2f:{value:f().SFVec2f},SFVec3d:{value:f().SFVec3d},SFVec3f:{value:f().SFVec3f},SFVec4d:{value:f().SFVec4d},SFVec4f:{value:f().SFVec4f},VrmlMatrix:{value:f().VrmlMatrix},MFBool:{value:f().MFBool},MFColor:{value:f().MFColor},MFColorRGBA:{value:f().MFColorRGBA},MFDouble:{value:f().MFDouble},MFFloat:{value:f().MFFloat},MFImage:{value:f().MFImage},MFInt32:{value:f().MFInt32},MFMatrix3d:{value:f().MFMatrix3d},MFMatrix3f:{value:f().MFMatrix3f},MFMatrix4d:{value:f().MFMatrix4d},MFMatrix4f:{value:f().MFMatrix4f},MFNode:{value:f().MFNode},MFRotation:{value:f().MFRotation},MFString:{value:f().MFString},MFTime:{value:f().MFTime},MFVec2d:{value:f().MFVec2d},MFVec2f:{value:f().MFVec2f},MFVec3d:{value:f().MFVec3d},MFVec3f:{value:f().MFVec3f},MFVec4d:{value:f().MFVec4d},MFVec4f:{value:f().MFVec4f}};for(const e of this.getUserDefinedFields()){const t=e.getName();e.getAccessType()!==Y().inputOnly&&(t in r||(r[t]={get:e.valueOf.bind(e),set:e.setValue.bind(e)}),e.getAccessType()===Y().inputOutput&&(r[t+"_changed"]={get:e.valueOf.bind(e),set:e.setValue.bind(e)}))}return Object.create(Object.prototype,r)},initialize__:function(e){this.disconnect();const t=this.getBrowser();this.context=this.getContext(e);const o=this.context.get("initialize");"function"==typeof o&&this.call__(o,"initialize");const i=this.context.get("shutdown");"function"==typeof i&&ne(window).on("unload.Script"+this.getId(),this.call__.bind(this,i,"shutdown"));const n=this.context.get("prepareEvents");"function"==typeof n&&t.prepareEvents().addInterest("call__",this,n,"prepareEvents");const r=this.context.get("eventsProcessed");"function"==typeof r&&this.addInterest("call__",this,r,"eventsProcessed");for(const e of this.getUserDefinedFields())switch(e.getAccessType()){case Y().inputOnly:{const t=this.context.get(e.getName());"function"==typeof t&&e.addInterest("set_field__",this,t);break}case Y().inputOutput:{const t=this.context.get("set_"+e.getName());"function"==typeof t&&e.addInterest("set_field__",this,t);break}}},call__:function(e,t){const o=this.getBrowser();o.getScriptStack().push(this);try{e(o.getCurrentTime())}catch(e){this.setError(`in function '${t}'`,e)}o.getScriptStack().pop()},set_field__:function(e,t){const o=this.getBrowser();t.setTainted(!0),o.getScriptStack().push(this);try{e(t.valueOf(),o.getCurrentTime())}catch(e){this.setError("in function '"+t.getName()+"'",e)}o.getScriptStack().pop(),t.setTainted(!1)},setError:function(e,t){console.error("JavaScript Error in Script '"+this.getName()+"', "+e+"\nworld url is '"+this.getExecutionContext().getWorldURL()+"':"),console.error(t)},disconnect:function(){const e=this.context?.get("shutdown");"function"==typeof e&&this.call__(e,"shutdown"),ne(window).off(".Script"+this.getId()),this.getBrowser().prepareEvents().removeInterest("call__",this),this.removeInterest("call__",this);for(const e of this.getUserDefinedFields())e.removeInterest("set_field__",this)},dispose:function(){this.disconnect(),te.prototype.dispose.call(this)}});const ae=re;k().set("x_ite/Components/Scripting/Script",ae);const se=ae;t().addComponent({name:"Scripting",types:{Script:se},abstractTypes:{X3DScriptNode:te}});const le=void 0;k().set("assets/components/Scripting",le)})()})();
|
|
1
|
+
/* X_ITE v8.7.9 */(()=>{"use strict";var e={355:e=>{e.exports=window[Symbol.for("X_ITE.X3D-8.7.9")].require("lib/jquery")}},t={};function o(i){var n=t[i];if(void 0!==n)return n.exports;var r=t[i]={exports:{}};return e[i](r,r.exports,o),r.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{const e=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Components");var t=o.n(e);const i=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Base/X3DFieldDefinition");var n=o.n(i);const r=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Base/FieldDefinitionArray");var a=o.n(r);const s=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Base/X3DField");var l=o.n(s);const c=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Base/X3DArrayField");var u=o.n(c);const d=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Fields");var f=o.n(d);const p=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Browser/X3DBrowser");var v=o.n(p);const F=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Configuration/ComponentInfo");var S=o.n(F);const _=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Configuration/ComponentInfoArray");var h=o.n(_);const w=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Configuration/ProfileInfo");var g=o.n(w);const y=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Configuration/ProfileInfoArray");var m=o.n(y);const D=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Configuration/UnitInfo");var X=o.n(D);const x=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Configuration/UnitInfoArray");var I=o.n(x);const M=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Execution/X3DExecutionContext");var E=o.n(M);const b=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Execution/X3DScene");var T=o.n(b);const C=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Prototype/ExternProtoDeclarationArray");var O=o.n(C);const A=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Prototype/ProtoDeclarationArray");var q=o.n(A);const V=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Prototype/X3DExternProtoDeclaration");var N=o.n(V);const B=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Prototype/X3DProtoDeclaration");var P=o.n(B);const R=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Routing/RouteArray");var L=o.n(R);const U=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Routing/X3DRoute");var j=o.n(U);const z=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Namespace");var k=o.n(z);const G=function(e,t){return Function(`with (arguments [0])\n {\n delete arguments [0];\n arguments .length = 0;\n ${t}\n }`)(e)};k().set("x_ite/Browser/Scripting/evaluate",G);const $=G,H=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Components/Core/X3DChildNode");var J=o.n(H);const W=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Components/Networking/X3DUrlObject");var K=o.n(W);const Q=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Base/X3DConstants");var Y=o.n(Q);function Z(e){J().call(this,e),K().call(this,e),this.addType(Y().X3DScriptNode)}Z.prototype=Object.assign(Object.create(J().prototype),K().prototype,{constructor:Z,initialize:function(){J().prototype.initialize.call(this),K().prototype.initialize.call(this)},dispose:function(){K().prototype.dispose.call(this),J().prototype.dispose.call(this)}});const ee=Z;k().set("x_ite/Components/Scripting/X3DScriptNode",ee);const te=ee,oe=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/InputOutput/FileLoader");var ie=o.n(oe),ne=o(355);function re(e){te.call(this,e),this.addType(Y().Script)}re.prototype=Object.assign(Object.create(te.prototype),{constructor:re,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(n())(Y().inputOutput,"metadata",new(f().SFNode)),new(n())(Y().inputOutput,"description",new(f().SFString)),new(n())(Y().inputOutput,"load",new(f().SFBool)(!0)),new(n())(Y().inputOutput,"url",new(f().MFString)),new(n())(Y().inputOutput,"autoRefresh",new(f().SFTime)),new(n())(Y().inputOutput,"autoRefreshTimeLimit",new(f().SFTime)(3600)),new(n())(Y().initializeOnly,"directOutput",new(f().SFBool)),new(n())(Y().initializeOnly,"mustEvaluate",new(f().SFBool))]),getTypeName:function(){return"Script"},getComponentName:function(){return"Scripting"},getContainerField:function(){return"children"},getSpecificationRange:function(){return["2.0","Infinity"]},initialize:function(){te.prototype.initialize.call(this),this.requestImmediateLoad().catch(Function.prototype)},getExtendedEventHandling:function(){return!1},canUserDefinedFields:function(){return!0},addUserDefinedField:function(e,t,o){te.prototype.addUserDefinedField.call(this,e,t,o),this.isInitialized()&&(this.setLoadState(Y().NOT_STARTED_STATE),this.requestImmediateLoad().catch(Function.prototype))},removeUserDefinedField:function(e){this.getUserDefinedFields().get(e)?.removeInterest("set_field__",this),te.prototype.removeUserDefinedField.call(this,e),this.isInitialized()&&(this.setLoadState(Y().NOT_STARTED_STATE),this.requestImmediateLoad().catch(Function.prototype))},getSourceText:function(){return this._url},unloadData:function(){this.initialize__("")},loadData:function(){new(ie())(this).loadDocument(this._url,(e=>{null===e?this.setLoadState(Y().FAILED_STATE):(this.initialize__(ne.decodeText(e)),this.setLoadState(Y().COMPLETE_STATE))}))},getContext:function(e){try{const t=["initialize","prepareEvents","eventsProcessed","shutdown"];for(const e of this.getUserDefinedFields())switch(e.getAccessType()){case Y().inputOnly:t.push(e.getName());break;case Y().inputOutput:t.push("set_"+e.getName())}e+="\nreturn ["+t.map((function(e){return`typeof ${e} !== "undefined" ? ${e} : undefined`})).join(",")+"];",this.globalObject=this.getGlobalObject();const o=$(this.globalObject,e),i=new Map;for(let e=0;e<t.length;++e)i.set(t[e],o[e]);return i}catch(e){return this.setError("while evaluating script source",e),new Map}},evaluate:function(e){return $(this.globalObject,`return (${e})`)},getGlobalObject:function(){const e=this.getBrowser(),t=this.getExecutionContext(),o=this.getLive();function i(i){const n=e.createX3DFromString(String(i)),r=n.getRootNodes();if(o.addFieldInterest(n.getLive()),n.setLive(o.getValue()),n.setPrivate(t.isPrivate()),n.setExecutionContext(t),r.length&&r[0])return r[0];throw new Error("SFNode.new: invalid argument, must be 'string' is 'undefined'.")}i.prototype=f().SFNode.prototype;const r={NULL:{value:null},FALSE:{value:!1},TRUE:{value:!0},print:{value:e.println.bind(e)},trace:{value:e.println.bind(e)},Browser:{value:e},X3DConstants:{value:Y()},X3DBrowser:{value:v()},X3DExecutionContext:{value:E()},X3DScene:{value:T()},ComponentInfo:{value:S()},ComponentInfoArray:{value:h()},ProfileInfo:{value:g()},ProfileInfoArray:{value:m()},UnitInfo:{value:X()},UnitInfoArray:{value:I()},ExternProtoDeclarationArray:{value:O()},ProtoDeclarationArray:{value:q()},X3DExternProtoDeclaration:{value:N()},X3DProtoDeclaration:{value:P()},RouteArray:{value:L()},X3DRoute:{value:j()},X3DFieldDefinition:{value:n()},FieldDefinitionArray:{value:a()},X3DField:{value:l()},X3DArrayField:{value:u()},SFColor:{value:f().SFColor},SFColorRGBA:{value:f().SFColorRGBA},SFImage:{value:f().SFImage},SFMatrix3d:{value:f().SFMatrix3d},SFMatrix3f:{value:f().SFMatrix3f},SFMatrix4d:{value:f().SFMatrix4d},SFMatrix4f:{value:f().SFMatrix4f},SFNode:{value:i},SFRotation:{value:f().SFRotation},SFVec2d:{value:f().SFVec2d},SFVec2f:{value:f().SFVec2f},SFVec3d:{value:f().SFVec3d},SFVec3f:{value:f().SFVec3f},SFVec4d:{value:f().SFVec4d},SFVec4f:{value:f().SFVec4f},VrmlMatrix:{value:f().VrmlMatrix},MFBool:{value:f().MFBool},MFColor:{value:f().MFColor},MFColorRGBA:{value:f().MFColorRGBA},MFDouble:{value:f().MFDouble},MFFloat:{value:f().MFFloat},MFImage:{value:f().MFImage},MFInt32:{value:f().MFInt32},MFMatrix3d:{value:f().MFMatrix3d},MFMatrix3f:{value:f().MFMatrix3f},MFMatrix4d:{value:f().MFMatrix4d},MFMatrix4f:{value:f().MFMatrix4f},MFNode:{value:f().MFNode},MFRotation:{value:f().MFRotation},MFString:{value:f().MFString},MFTime:{value:f().MFTime},MFVec2d:{value:f().MFVec2d},MFVec2f:{value:f().MFVec2f},MFVec3d:{value:f().MFVec3d},MFVec3f:{value:f().MFVec3f},MFVec4d:{value:f().MFVec4d},MFVec4f:{value:f().MFVec4f}};for(const e of this.getUserDefinedFields()){const t=e.getName();e.getAccessType()!==Y().inputOnly&&(t in r||(r[t]={get:e.valueOf.bind(e),set:e.setValue.bind(e)}),e.getAccessType()===Y().inputOutput&&(r[t+"_changed"]={get:e.valueOf.bind(e),set:e.setValue.bind(e)}))}return Object.create(Object.prototype,r)},initialize__:function(e){this.disconnect();const t=this.getBrowser();this.context=this.getContext(e);const o=this.context.get("shutdown");"function"==typeof o&&ne(window).on("unload.Script"+this.getId(),this.call__.bind(this,o,"shutdown"));const i=this.context.get("prepareEvents");"function"==typeof i&&t.prepareEvents().addInterest("call__",this,i,"prepareEvents");const n=this.context.get("eventsProcessed");"function"==typeof n&&this.addInterest("call__",this,n,"eventsProcessed");for(const e of this.getUserDefinedFields())switch(e.getAccessType()){case Y().inputOnly:{const t=this.context.get(e.getName());"function"==typeof t&&e.addInterest("set_field__",this,t);break}case Y().inputOutput:{const t=this.context.get("set_"+e.getName());"function"==typeof t&&e.addInterest("set_field__",this,t);break}}const r=this.context.get("initialize");"function"==typeof r&&this.call__(r,"initialize")},call__:function(e,t){const o=this.getBrowser();o.getScriptStack().push(this);try{e(o.getCurrentTime())}catch(e){this.setError(`in function '${t}'`,e)}o.getScriptStack().pop()},set_field__:function(e,t){const o=this.getBrowser();t.setTainted(!0),o.getScriptStack().push(this);try{e(t.valueOf(),o.getCurrentTime())}catch(e){this.setError("in function '"+t.getName()+"'",e)}o.getScriptStack().pop(),t.setTainted(!1)},setError:function(e,t){console.error("JavaScript Error in Script '"+this.getName()+"', "+e+"\nworld url is '"+this.getExecutionContext().getWorldURL()+"':"),console.error(t)},disconnect:function(){const e=this.context?.get("shutdown");"function"==typeof e&&this.call__(e,"shutdown"),ne(window).off(".Script"+this.getId()),this.getBrowser().prepareEvents().removeInterest("call__",this),this.removeInterest("call__",this);for(const e of this.getUserDefinedFields())e.removeInterest("set_field__",this)},dispose:function(){this.disconnect(),te.prototype.dispose.call(this)}});const ae=re;k().set("x_ite/Components/Scripting/Script",ae);const se=ae;t().addComponent({name:"Scripting",types:{Script:se},abstractTypes:{X3DScriptNode:te}});const le=void 0;k().set("assets/components/Scripting",le)})()})();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/* X_ITE v8.7.
|
|
1
|
+
/* X_ITE v8.7.9 */(() => { // webpackBootstrap
|
|
2
2
|
/******/ var __webpack_modules__ = ({
|
|
3
3
|
|
|
4
|
-
/***/
|
|
4
|
+
/***/ 475:
|
|
5
5
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -14488,7 +14488,7 @@
|
|
|
14488
14488
|
/***/ ((module) => {
|
|
14489
14489
|
|
|
14490
14490
|
"use strict";
|
|
14491
|
-
module.exports = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
14491
|
+
module.exports = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("lib/jquery");
|
|
14492
14492
|
|
|
14493
14493
|
/***/ }),
|
|
14494
14494
|
|
|
@@ -14564,25 +14564,25 @@ var __webpack_exports__ = {};
|
|
|
14564
14564
|
// UNUSED EXPORTS: default
|
|
14565
14565
|
|
|
14566
14566
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components\")"
|
|
14567
|
-
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
14567
|
+
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Components");
|
|
14568
14568
|
var Components_default = /*#__PURE__*/__webpack_require__.n(Components_namespaceObject);
|
|
14569
14569
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
|
|
14570
|
-
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
14570
|
+
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Fields");
|
|
14571
14571
|
var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
|
|
14572
14572
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
|
|
14573
|
-
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
14573
|
+
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Base/X3DFieldDefinition");
|
|
14574
14574
|
var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
|
|
14575
14575
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
|
|
14576
|
-
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
14576
|
+
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Base/FieldDefinitionArray");
|
|
14577
14577
|
var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
|
|
14578
14578
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DNode\")"
|
|
14579
|
-
const X3DNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
14579
|
+
const X3DNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Components/Core/X3DNode");
|
|
14580
14580
|
var X3DNode_default = /*#__PURE__*/__webpack_require__.n(X3DNode_namespaceObject);
|
|
14581
14581
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Networking/X3DUrlObject\")"
|
|
14582
|
-
const X3DUrlObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
14582
|
+
const X3DUrlObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Components/Networking/X3DUrlObject");
|
|
14583
14583
|
var X3DUrlObject_default = /*#__PURE__*/__webpack_require__.n(X3DUrlObject_namespaceObject);
|
|
14584
14584
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
|
|
14585
|
-
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
14585
|
+
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Namespace");
|
|
14586
14586
|
var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
|
|
14587
14587
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Text/TextAlignment.js
|
|
14588
14588
|
/*******************************************************************************
|
|
@@ -14648,13 +14648,13 @@ const __default__ = TextAlignment;
|
|
|
14648
14648
|
Namespace_default().set ("x_ite/Browser/Text/TextAlignment", __default__);
|
|
14649
14649
|
/* harmony default export */ const Text_TextAlignment = (__default__);
|
|
14650
14650
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/InputOutput/FileLoader\")"
|
|
14651
|
-
const FileLoader_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
14651
|
+
const FileLoader_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/InputOutput/FileLoader");
|
|
14652
14652
|
var FileLoader_default = /*#__PURE__*/__webpack_require__.n(FileLoader_namespaceObject);
|
|
14653
14653
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
|
|
14654
|
-
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
14654
|
+
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Base/X3DConstants");
|
|
14655
14655
|
var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
|
|
14656
14656
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Browser/Networking/URLs\")"
|
|
14657
|
-
const URLs_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
14657
|
+
const URLs_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Browser/Networking/URLs");
|
|
14658
14658
|
var URLs_default = /*#__PURE__*/__webpack_require__.n(URLs_namespaceObject);
|
|
14659
14659
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Text/X3DFontStyleNode.js
|
|
14660
14660
|
/*******************************************************************************
|
|
@@ -14922,19 +14922,19 @@ const X3DFontStyleNode_default_ = X3DFontStyleNode;
|
|
|
14922
14922
|
Namespace_default().set ("x_ite/Components/Text/X3DFontStyleNode", X3DFontStyleNode_default_);
|
|
14923
14923
|
/* harmony default export */ const Text_X3DFontStyleNode = (X3DFontStyleNode_default_);
|
|
14924
14924
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Browser/Core/PrimitiveQuality\")"
|
|
14925
|
-
const PrimitiveQuality_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
14925
|
+
const PrimitiveQuality_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Browser/Core/PrimitiveQuality");
|
|
14926
14926
|
var PrimitiveQuality_default = /*#__PURE__*/__webpack_require__.n(PrimitiveQuality_namespaceObject);
|
|
14927
14927
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Geometry/Box2\")"
|
|
14928
|
-
const Box2_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
14928
|
+
const Box2_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("standard/Math/Geometry/Box2");
|
|
14929
14929
|
var Box2_default = /*#__PURE__*/__webpack_require__.n(Box2_namespaceObject);
|
|
14930
14930
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Geometry/Box3\")"
|
|
14931
|
-
const Box3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
14931
|
+
const Box3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("standard/Math/Geometry/Box3");
|
|
14932
14932
|
var Box3_default = /*#__PURE__*/__webpack_require__.n(Box3_namespaceObject);
|
|
14933
14933
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector2\")"
|
|
14934
|
-
const Vector2_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
14934
|
+
const Vector2_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("standard/Math/Numbers/Vector2");
|
|
14935
14935
|
var Vector2_default = /*#__PURE__*/__webpack_require__.n(Vector2_namespaceObject);
|
|
14936
14936
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector3\")"
|
|
14937
|
-
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
14937
|
+
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("standard/Math/Numbers/Vector3");
|
|
14938
14938
|
var Vector3_default = /*#__PURE__*/__webpack_require__.n(Vector3_namespaceObject);
|
|
14939
14939
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Text/X3DTextGeometry.js
|
|
14940
14940
|
/*******************************************************************************
|
|
@@ -15557,16 +15557,16 @@ const X3DTextGeometry_default_ = X3DTextGeometry;
|
|
|
15557
15557
|
Namespace_default().set ("x_ite/Browser/Text/X3DTextGeometry", X3DTextGeometry_default_);
|
|
15558
15558
|
/* harmony default export */ const Text_X3DTextGeometry = (X3DTextGeometry_default_);
|
|
15559
15559
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Rendering/X3DGeometryNode\")"
|
|
15560
|
-
const X3DGeometryNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
15560
|
+
const X3DGeometryNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Components/Rendering/X3DGeometryNode");
|
|
15561
15561
|
var X3DGeometryNode_default = /*#__PURE__*/__webpack_require__.n(X3DGeometryNode_namespaceObject);
|
|
15562
15562
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Matrix4\")"
|
|
15563
|
-
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
15563
|
+
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("standard/Math/Numbers/Matrix4");
|
|
15564
15564
|
var Matrix4_default = /*#__PURE__*/__webpack_require__.n(Matrix4_namespaceObject);
|
|
15565
15565
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Algorithms/Bezier\")"
|
|
15566
|
-
const Bezier_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
15566
|
+
const Bezier_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("standard/Math/Algorithms/Bezier");
|
|
15567
15567
|
var Bezier_default = /*#__PURE__*/__webpack_require__.n(Bezier_namespaceObject);
|
|
15568
15568
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"lib/libtess\")"
|
|
15569
|
-
const libtess_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
15569
|
+
const libtess_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("lib/libtess");
|
|
15570
15570
|
var libtess_default = /*#__PURE__*/__webpack_require__.n(libtess_namespaceObject);
|
|
15571
15571
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Text/PolygonText.js
|
|
15572
15572
|
/*******************************************************************************
|
|
@@ -16046,7 +16046,7 @@ Namespace_default().set ("x_ite/Components/Text/FontStyle", FontStyle_default_);
|
|
|
16046
16046
|
/* harmony default export */ const Text_FontStyle = (FontStyle_default_);
|
|
16047
16047
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Text/X3DTextContext.js
|
|
16048
16048
|
/* provided dependency */ var $ = __webpack_require__(355);
|
|
16049
|
-
/* provided dependency */ var opentype = __webpack_require__(
|
|
16049
|
+
/* provided dependency */ var opentype = __webpack_require__(475);
|
|
16050
16050
|
/*******************************************************************************
|
|
16051
16051
|
*
|
|
16052
16052
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -16170,7 +16170,7 @@ const X3DTextContext_default_ = X3DTextContext;
|
|
|
16170
16170
|
Namespace_default().set ("x_ite/Browser/Text/X3DTextContext", X3DTextContext_default_);
|
|
16171
16171
|
/* harmony default export */ const Text_X3DTextContext = (X3DTextContext_default_);
|
|
16172
16172
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DCast\")"
|
|
16173
|
-
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
16173
|
+
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Base/X3DCast");
|
|
16174
16174
|
var X3DCast_default = /*#__PURE__*/__webpack_require__.n(X3DCast_namespaceObject);
|
|
16175
16175
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Text/Text.js
|
|
16176
16176
|
/*******************************************************************************
|