x_ite 9.3.2 → 9.4.0
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 +15 -15
- package/dist/assets/components/Annotation.min.js +1 -1
- package/dist/assets/components/CADGeometry.js +14 -14
- package/dist/assets/components/CADGeometry.min.js +1 -1
- package/dist/assets/components/CubeMapTexturing.js +25 -25
- package/dist/assets/components/CubeMapTexturing.min.js +1 -1
- package/dist/assets/components/DIS.js +13 -13
- package/dist/assets/components/DIS.min.js +1 -1
- package/dist/assets/components/EventUtilities.js +9 -9
- package/dist/assets/components/EventUtilities.min.js +1 -1
- package/dist/assets/components/Geometry2D.js +19 -19
- package/dist/assets/components/Geometry2D.min.js +1 -1
- package/dist/assets/components/Geospatial.js +33 -33
- package/dist/assets/components/Geospatial.min.js +1 -1
- package/dist/assets/components/HAnim.js +24 -24
- package/dist/assets/components/HAnim.min.js +1 -1
- package/dist/assets/components/KeyDeviceSensor.js +8 -8
- package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
- package/dist/assets/components/Layout.js +27 -27
- package/dist/assets/components/Layout.min.js +1 -1
- package/dist/assets/components/NURBS.js +23 -23
- package/dist/assets/components/NURBS.min.js +1 -1
- package/dist/assets/components/ParticleSystems.js +23 -23
- package/dist/assets/components/ParticleSystems.min.js +1 -1
- package/dist/assets/components/Picking.js +18 -18
- package/dist/assets/components/Picking.min.js +1 -1
- package/dist/assets/components/RigidBodyPhysics.js +18 -18
- package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
- package/dist/assets/components/Scripting.js +116 -121
- package/dist/assets/components/Scripting.min.js +1 -1
- package/dist/assets/components/Text.js +24 -24
- package/dist/assets/components/Text.min.js +1 -1
- package/dist/assets/components/TextureProjection.js +17 -17
- package/dist/assets/components/TextureProjection.min.js +1 -1
- package/dist/assets/components/Texturing3D.js +30 -30
- package/dist/assets/components/Texturing3D.min.js +1 -1
- package/dist/assets/components/VolumeRendering.js +26 -26
- package/dist/assets/components/VolumeRendering.min.js +1 -1
- package/dist/assets/components/X_ITE.js +8 -8
- package/dist/assets/components/X_ITE.min.js +1 -1
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.d.ts +3 -0
- package/dist/x_ite.js +1403 -478
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.min.mjs +1 -1
- package/dist/x_ite.mjs +1403 -478
- package/dist/x_ite.zip +0 -0
- package/package.json +4 -4
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/* X_ITE v9.
|
|
1
|
+
/* X_ITE v9.4.0 */(() => { // webpackBootstrap
|
|
2
2
|
/******/ "use strict";
|
|
3
3
|
/******/ var __webpack_modules__ = ({
|
|
4
4
|
|
|
5
5
|
/***/ 823:
|
|
6
6
|
/***/ ((module) => {
|
|
7
7
|
|
|
8
|
-
module.exports = window [Symbol .for ("X_ITE.X3D-9.
|
|
8
|
+
module.exports = window [Symbol .for ("X_ITE.X3D-9.4.0")] .require ("lib/jquery");
|
|
9
9
|
|
|
10
10
|
/***/ })
|
|
11
11
|
|
|
@@ -73,97 +73,97 @@ 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-9.
|
|
76
|
+
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.0")] .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/X3DBaseNode\")"
|
|
79
|
-
const X3DBaseNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.
|
|
79
|
+
const X3DBaseNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.0")] .require ("x_ite/Base/X3DBaseNode");
|
|
80
80
|
var X3DBaseNode_default = /*#__PURE__*/__webpack_require__.n(X3DBaseNode_namespaceObject);
|
|
81
81
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
|
|
82
|
-
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.
|
|
82
|
+
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.0")] .require ("x_ite/Base/X3DFieldDefinition");
|
|
83
83
|
var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
|
|
84
84
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
|
|
85
|
-
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.
|
|
85
|
+
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.0")] .require ("x_ite/Base/FieldDefinitionArray");
|
|
86
86
|
var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
|
|
87
87
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DField\")"
|
|
88
|
-
const X3DField_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.
|
|
88
|
+
const X3DField_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.0")] .require ("x_ite/Base/X3DField");
|
|
89
89
|
var X3DField_default = /*#__PURE__*/__webpack_require__.n(X3DField_namespaceObject);
|
|
90
90
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DArrayField\")"
|
|
91
|
-
const X3DArrayField_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.
|
|
91
|
+
const X3DArrayField_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.0")] .require ("x_ite/Base/X3DArrayField");
|
|
92
92
|
var X3DArrayField_default = /*#__PURE__*/__webpack_require__.n(X3DArrayField_namespaceObject);
|
|
93
93
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
|
|
94
|
-
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.
|
|
94
|
+
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.0")] .require ("x_ite/Fields");
|
|
95
95
|
var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
|
|
96
96
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Browser/X3DBrowser\")"
|
|
97
|
-
const X3DBrowser_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.
|
|
97
|
+
const X3DBrowser_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.0")] .require ("x_ite/Browser/X3DBrowser");
|
|
98
98
|
var X3DBrowser_default = /*#__PURE__*/__webpack_require__.n(X3DBrowser_namespaceObject);
|
|
99
99
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Configuration/ComponentInfo\")"
|
|
100
|
-
const ComponentInfo_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.
|
|
100
|
+
const ComponentInfo_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.0")] .require ("x_ite/Configuration/ComponentInfo");
|
|
101
101
|
var ComponentInfo_default = /*#__PURE__*/__webpack_require__.n(ComponentInfo_namespaceObject);
|
|
102
102
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Configuration/ComponentInfoArray\")"
|
|
103
|
-
const ComponentInfoArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.
|
|
103
|
+
const ComponentInfoArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.0")] .require ("x_ite/Configuration/ComponentInfoArray");
|
|
104
104
|
var ComponentInfoArray_default = /*#__PURE__*/__webpack_require__.n(ComponentInfoArray_namespaceObject);
|
|
105
105
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Configuration/ProfileInfo\")"
|
|
106
|
-
const ProfileInfo_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.
|
|
106
|
+
const ProfileInfo_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.0")] .require ("x_ite/Configuration/ProfileInfo");
|
|
107
107
|
var ProfileInfo_default = /*#__PURE__*/__webpack_require__.n(ProfileInfo_namespaceObject);
|
|
108
108
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Configuration/ProfileInfoArray\")"
|
|
109
|
-
const ProfileInfoArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.
|
|
109
|
+
const ProfileInfoArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.0")] .require ("x_ite/Configuration/ProfileInfoArray");
|
|
110
110
|
var ProfileInfoArray_default = /*#__PURE__*/__webpack_require__.n(ProfileInfoArray_namespaceObject);
|
|
111
111
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Configuration/ConcreteNodesArray\")"
|
|
112
|
-
const ConcreteNodesArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.
|
|
112
|
+
const ConcreteNodesArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.0")] .require ("x_ite/Configuration/ConcreteNodesArray");
|
|
113
113
|
var ConcreteNodesArray_default = /*#__PURE__*/__webpack_require__.n(ConcreteNodesArray_namespaceObject);
|
|
114
114
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Configuration/AbstractNodesArray\")"
|
|
115
|
-
const AbstractNodesArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.
|
|
115
|
+
const AbstractNodesArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.0")] .require ("x_ite/Configuration/AbstractNodesArray");
|
|
116
116
|
var AbstractNodesArray_default = /*#__PURE__*/__webpack_require__.n(AbstractNodesArray_namespaceObject);
|
|
117
117
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Configuration/UnitInfo\")"
|
|
118
|
-
const UnitInfo_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.
|
|
118
|
+
const UnitInfo_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.0")] .require ("x_ite/Configuration/UnitInfo");
|
|
119
119
|
var UnitInfo_default = /*#__PURE__*/__webpack_require__.n(UnitInfo_namespaceObject);
|
|
120
120
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Configuration/UnitInfoArray\")"
|
|
121
|
-
const UnitInfoArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.
|
|
121
|
+
const UnitInfoArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.0")] .require ("x_ite/Configuration/UnitInfoArray");
|
|
122
122
|
var UnitInfoArray_default = /*#__PURE__*/__webpack_require__.n(UnitInfoArray_namespaceObject);
|
|
123
123
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Execution/NamedNodesArray\")"
|
|
124
|
-
const NamedNodesArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.
|
|
124
|
+
const NamedNodesArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.0")] .require ("x_ite/Execution/NamedNodesArray");
|
|
125
125
|
var NamedNodesArray_default = /*#__PURE__*/__webpack_require__.n(NamedNodesArray_namespaceObject);
|
|
126
126
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Execution/ImportedNodesArray\")"
|
|
127
|
-
const ImportedNodesArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.
|
|
127
|
+
const ImportedNodesArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.0")] .require ("x_ite/Execution/ImportedNodesArray");
|
|
128
128
|
var ImportedNodesArray_default = /*#__PURE__*/__webpack_require__.n(ImportedNodesArray_namespaceObject);
|
|
129
129
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Execution/X3DImportedNode\")"
|
|
130
|
-
const X3DImportedNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.
|
|
130
|
+
const X3DImportedNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.0")] .require ("x_ite/Execution/X3DImportedNode");
|
|
131
131
|
var X3DImportedNode_default = /*#__PURE__*/__webpack_require__.n(X3DImportedNode_namespaceObject);
|
|
132
132
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Execution/ExportedNodesArray\")"
|
|
133
|
-
const ExportedNodesArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.
|
|
133
|
+
const ExportedNodesArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.0")] .require ("x_ite/Execution/ExportedNodesArray");
|
|
134
134
|
var ExportedNodesArray_default = /*#__PURE__*/__webpack_require__.n(ExportedNodesArray_namespaceObject);
|
|
135
135
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Execution/X3DExportedNode\")"
|
|
136
|
-
const X3DExportedNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.
|
|
136
|
+
const X3DExportedNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.0")] .require ("x_ite/Execution/X3DExportedNode");
|
|
137
137
|
var X3DExportedNode_default = /*#__PURE__*/__webpack_require__.n(X3DExportedNode_namespaceObject);
|
|
138
138
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Execution/X3DExecutionContext\")"
|
|
139
|
-
const X3DExecutionContext_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.
|
|
139
|
+
const X3DExecutionContext_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.0")] .require ("x_ite/Execution/X3DExecutionContext");
|
|
140
140
|
var X3DExecutionContext_default = /*#__PURE__*/__webpack_require__.n(X3DExecutionContext_namespaceObject);
|
|
141
141
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Execution/X3DScene\")"
|
|
142
|
-
const X3DScene_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.
|
|
142
|
+
const X3DScene_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.0")] .require ("x_ite/Execution/X3DScene");
|
|
143
143
|
var X3DScene_default = /*#__PURE__*/__webpack_require__.n(X3DScene_namespaceObject);
|
|
144
144
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Prototype/ExternProtoDeclarationArray\")"
|
|
145
|
-
const ExternProtoDeclarationArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.
|
|
145
|
+
const ExternProtoDeclarationArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.0")] .require ("x_ite/Prototype/ExternProtoDeclarationArray");
|
|
146
146
|
var ExternProtoDeclarationArray_default = /*#__PURE__*/__webpack_require__.n(ExternProtoDeclarationArray_namespaceObject);
|
|
147
147
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Prototype/ProtoDeclarationArray\")"
|
|
148
|
-
const ProtoDeclarationArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.
|
|
148
|
+
const ProtoDeclarationArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.0")] .require ("x_ite/Prototype/ProtoDeclarationArray");
|
|
149
149
|
var ProtoDeclarationArray_default = /*#__PURE__*/__webpack_require__.n(ProtoDeclarationArray_namespaceObject);
|
|
150
150
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Prototype/X3DExternProtoDeclaration\")"
|
|
151
|
-
const X3DExternProtoDeclaration_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.
|
|
151
|
+
const X3DExternProtoDeclaration_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.0")] .require ("x_ite/Prototype/X3DExternProtoDeclaration");
|
|
152
152
|
var X3DExternProtoDeclaration_default = /*#__PURE__*/__webpack_require__.n(X3DExternProtoDeclaration_namespaceObject);
|
|
153
153
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Prototype/X3DProtoDeclaration\")"
|
|
154
|
-
const X3DProtoDeclaration_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.
|
|
154
|
+
const X3DProtoDeclaration_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.0")] .require ("x_ite/Prototype/X3DProtoDeclaration");
|
|
155
155
|
var X3DProtoDeclaration_default = /*#__PURE__*/__webpack_require__.n(X3DProtoDeclaration_namespaceObject);
|
|
156
156
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Prototype/X3DProtoDeclarationNode\")"
|
|
157
|
-
const X3DProtoDeclarationNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.
|
|
157
|
+
const X3DProtoDeclarationNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.0")] .require ("x_ite/Prototype/X3DProtoDeclarationNode");
|
|
158
158
|
var X3DProtoDeclarationNode_default = /*#__PURE__*/__webpack_require__.n(X3DProtoDeclarationNode_namespaceObject);
|
|
159
159
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Routing/RouteArray\")"
|
|
160
|
-
const RouteArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.
|
|
160
|
+
const RouteArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.0")] .require ("x_ite/Routing/RouteArray");
|
|
161
161
|
var RouteArray_default = /*#__PURE__*/__webpack_require__.n(RouteArray_namespaceObject);
|
|
162
162
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Routing/X3DRoute\")"
|
|
163
|
-
const X3DRoute_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.
|
|
163
|
+
const X3DRoute_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.0")] .require ("x_ite/Routing/X3DRoute");
|
|
164
164
|
var X3DRoute_default = /*#__PURE__*/__webpack_require__.n(X3DRoute_namespaceObject);
|
|
165
165
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
|
|
166
|
-
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.
|
|
166
|
+
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.0")] .require ("x_ite/Namespace");
|
|
167
167
|
var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
|
|
168
168
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Scripting/evaluate.js
|
|
169
169
|
/*******************************************************************************
|
|
@@ -239,13 +239,13 @@ const __default__ = evaluate;
|
|
|
239
239
|
Namespace_default().add ("evaluate", "x_ite/Browser/Scripting/evaluate", __default__);
|
|
240
240
|
/* harmony default export */ const Scripting_evaluate = (__default__);
|
|
241
241
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DChildNode\")"
|
|
242
|
-
const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.
|
|
242
|
+
const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.0")] .require ("x_ite/Components/Core/X3DChildNode");
|
|
243
243
|
var X3DChildNode_default = /*#__PURE__*/__webpack_require__.n(X3DChildNode_namespaceObject);
|
|
244
244
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Networking/X3DUrlObject\")"
|
|
245
|
-
const X3DUrlObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.
|
|
245
|
+
const X3DUrlObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.0")] .require ("x_ite/Components/Networking/X3DUrlObject");
|
|
246
246
|
var X3DUrlObject_default = /*#__PURE__*/__webpack_require__.n(X3DUrlObject_namespaceObject);
|
|
247
247
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
|
|
248
|
-
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.
|
|
248
|
+
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.0")] .require ("x_ite/Base/X3DConstants");
|
|
249
249
|
var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
|
|
250
250
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Scripting/X3DScriptNode.js
|
|
251
251
|
/*******************************************************************************
|
|
@@ -342,10 +342,10 @@ const X3DScriptNode_default_ = X3DScriptNode;
|
|
|
342
342
|
Namespace_default().add ("X3DScriptNode", "x_ite/Components/Scripting/X3DScriptNode", X3DScriptNode_default_);
|
|
343
343
|
/* harmony default export */ const Scripting_X3DScriptNode = (X3DScriptNode_default_);
|
|
344
344
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/InputOutput/FileLoader\")"
|
|
345
|
-
const FileLoader_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.
|
|
345
|
+
const FileLoader_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.0")] .require ("x_ite/InputOutput/FileLoader");
|
|
346
346
|
var FileLoader_default = /*#__PURE__*/__webpack_require__.n(FileLoader_namespaceObject);
|
|
347
347
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields/SFNodeCache\")"
|
|
348
|
-
const SFNodeCache_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.
|
|
348
|
+
const SFNodeCache_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.0")] .require ("x_ite/Fields/SFNodeCache");
|
|
349
349
|
var SFNodeCache_default = /*#__PURE__*/__webpack_require__.n(SFNodeCache_namespaceObject);
|
|
350
350
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Scripting/Script.js
|
|
351
351
|
/* provided dependency */ var $ = __webpack_require__(823);
|
|
@@ -480,12 +480,37 @@ Object .assign (Object .setPrototypeOf (Script .prototype, Scripting_X3DScriptNo
|
|
|
480
480
|
{
|
|
481
481
|
return this ._url;
|
|
482
482
|
},
|
|
483
|
-
unloadData ()
|
|
483
|
+
async unloadData ()
|
|
484
484
|
{
|
|
485
|
-
|
|
485
|
+
// Call shutdown.
|
|
486
|
+
|
|
487
|
+
const shutdown = this .context ?.get ("shutdown");
|
|
488
|
+
|
|
489
|
+
if (typeof shutdown === "function")
|
|
490
|
+
await this .call__ (shutdown, "shutdown");
|
|
491
|
+
|
|
492
|
+
// Disconnect shutdown.
|
|
493
|
+
|
|
494
|
+
$(window) .off (`.Script${this .getId ()}`);
|
|
495
|
+
|
|
496
|
+
// Disconnect prepareEvents.
|
|
497
|
+
|
|
498
|
+
this .getBrowser () .prepareEvents () .removeInterest ("call__", this);
|
|
499
|
+
|
|
500
|
+
// Disconnect eventsProcessed.
|
|
501
|
+
|
|
502
|
+
this .removeInterest ("call__", this);
|
|
503
|
+
|
|
504
|
+
// Disconnect fields.
|
|
505
|
+
|
|
506
|
+
for (const field of this .getUserDefinedFields ())
|
|
507
|
+
field .removeInterest ("set_field__", this);
|
|
486
508
|
},
|
|
487
|
-
loadData ()
|
|
509
|
+
async loadData ()
|
|
488
510
|
{
|
|
511
|
+
// See: 29.2.2 Script execution
|
|
512
|
+
await this .unloadData ();
|
|
513
|
+
|
|
489
514
|
new (FileLoader_default()) (this) .loadDocument (this ._url, (data) =>
|
|
490
515
|
{
|
|
491
516
|
if (data === null)
|
|
@@ -502,7 +527,25 @@ Object .assign (Object .setPrototypeOf (Script .prototype, Scripting_X3DScriptNo
|
|
|
502
527
|
},
|
|
503
528
|
createGlobalObject ()
|
|
504
529
|
{
|
|
505
|
-
const
|
|
530
|
+
const getScriptNode = () => this;
|
|
531
|
+
|
|
532
|
+
const handler =
|
|
533
|
+
{
|
|
534
|
+
get (target, key)
|
|
535
|
+
{
|
|
536
|
+
switch (key)
|
|
537
|
+
{
|
|
538
|
+
case "getScriptNode":
|
|
539
|
+
return getScriptNode;
|
|
540
|
+
case "currentScene":
|
|
541
|
+
return getScriptNode () .getExecutionContext ();
|
|
542
|
+
default:
|
|
543
|
+
return target [key];
|
|
544
|
+
}
|
|
545
|
+
},
|
|
546
|
+
};
|
|
547
|
+
|
|
548
|
+
const browser = new Proxy (this .getBrowser (), handler);
|
|
506
549
|
|
|
507
550
|
function SFNode (vrmlSyntax)
|
|
508
551
|
{
|
|
@@ -602,25 +645,22 @@ Object .assign (Object .setPrototypeOf (Script .prototype, Scripting_X3DScriptNo
|
|
|
602
645
|
|
|
603
646
|
for (const field of this .getUserDefinedFields ())
|
|
604
647
|
{
|
|
605
|
-
const name = field .getName ();
|
|
606
|
-
|
|
607
648
|
if (field .getAccessType () === (X3DConstants_default()).inputOnly)
|
|
608
649
|
continue;
|
|
609
650
|
|
|
610
|
-
|
|
611
|
-
{
|
|
612
|
-
globalObject [name] =
|
|
613
|
-
{
|
|
614
|
-
get: field .valueOf .bind (field),
|
|
615
|
-
set: field .setValue .bind (field),
|
|
616
|
-
};
|
|
617
|
-
}
|
|
651
|
+
const names = [field .getName ()];
|
|
618
652
|
|
|
619
653
|
if (field .getAccessType () === (X3DConstants_default()).inputOutput)
|
|
654
|
+
names .push (field .getName () + "_changed");
|
|
655
|
+
|
|
656
|
+
for (const name of names)
|
|
620
657
|
{
|
|
621
|
-
|
|
658
|
+
if (name in globalObject)
|
|
659
|
+
continue;
|
|
660
|
+
|
|
661
|
+
globalObject [name] =
|
|
622
662
|
{
|
|
623
|
-
get: field .valueOf
|
|
663
|
+
get: field .valueOf .bind (field),
|
|
624
664
|
set: field .setValue .bind (field),
|
|
625
665
|
};
|
|
626
666
|
}
|
|
@@ -658,26 +698,13 @@ Object .assign (Object .setPrototypeOf (Script .prototype, Scripting_X3DScriptNo
|
|
|
658
698
|
},
|
|
659
699
|
evaluate (sourceText)
|
|
660
700
|
{
|
|
661
|
-
|
|
701
|
+
if (!this .globalObject)
|
|
702
|
+
this .globalObject = this .createGlobalObject ();
|
|
662
703
|
|
|
663
|
-
|
|
664
|
-
{
|
|
665
|
-
browser .getScriptStack () .push (this);
|
|
666
|
-
|
|
667
|
-
if (!this .globalObject)
|
|
668
|
-
this .globalObject = this .createGlobalObject ();
|
|
669
|
-
|
|
670
|
-
return Scripting_evaluate (SFNodeCache_default().get (this), this .globalObject, sourceText);
|
|
671
|
-
}
|
|
672
|
-
finally
|
|
673
|
-
{
|
|
674
|
-
browser .getScriptStack () .pop ();
|
|
675
|
-
}
|
|
704
|
+
return Scripting_evaluate (SFNodeCache_default().get (this), this .globalObject, sourceText);
|
|
676
705
|
},
|
|
677
|
-
initialize__ (sourceText)
|
|
706
|
+
async initialize__ (sourceText)
|
|
678
707
|
{
|
|
679
|
-
this .disconnect ();
|
|
680
|
-
|
|
681
708
|
const browser = this .getBrowser ();
|
|
682
709
|
|
|
683
710
|
// Create context.
|
|
@@ -690,7 +717,7 @@ Object .assign (Object .setPrototypeOf (Script .prototype, Scripting_X3DScriptNo
|
|
|
690
717
|
const shutdown = this .context .get ("shutdown");
|
|
691
718
|
|
|
692
719
|
if (typeof shutdown === "function")
|
|
693
|
-
$(window) .on (
|
|
720
|
+
$(window) .on (`unload.Script${this .getId ()}`, () => this .call__ (shutdown, "shutdown"));
|
|
694
721
|
|
|
695
722
|
// Connect prepareEvents.
|
|
696
723
|
|
|
@@ -717,7 +744,7 @@ Object .assign (Object .setPrototypeOf (Script .prototype, Scripting_X3DScriptNo
|
|
|
717
744
|
const callback = this .context .get (field .getName ());
|
|
718
745
|
|
|
719
746
|
if (typeof callback === "function")
|
|
720
|
-
field .addInterest ("set_field__", this, callback);
|
|
747
|
+
field .addInterest ("set_field__", this, callback, [ ]);
|
|
721
748
|
|
|
722
749
|
break;
|
|
723
750
|
}
|
|
@@ -726,7 +753,7 @@ Object .assign (Object .setPrototypeOf (Script .prototype, Scripting_X3DScriptNo
|
|
|
726
753
|
const callback = this .context .get ("set_" + field .getName ());
|
|
727
754
|
|
|
728
755
|
if (typeof callback === "function")
|
|
729
|
-
field .addInterest ("set_field__", this, callback);
|
|
756
|
+
field .addInterest ("set_field__", this, callback, [ ]);
|
|
730
757
|
|
|
731
758
|
break;
|
|
732
759
|
}
|
|
@@ -738,43 +765,37 @@ Object .assign (Object .setPrototypeOf (Script .prototype, Scripting_X3DScriptNo
|
|
|
738
765
|
const initialize = this .context .get ("initialize");
|
|
739
766
|
|
|
740
767
|
if (typeof initialize === "function")
|
|
741
|
-
this .call__ (initialize, "initialize");
|
|
768
|
+
await this .call__ (initialize, "initialize");
|
|
742
769
|
},
|
|
743
|
-
call__ (callback, name)
|
|
770
|
+
async call__ (callback, name)
|
|
744
771
|
{
|
|
745
|
-
const browser = this .getBrowser ();
|
|
746
|
-
|
|
747
|
-
browser .getScriptStack () .push (this);
|
|
748
|
-
|
|
749
772
|
try
|
|
750
773
|
{
|
|
751
|
-
callback .call (SFNodeCache_default().get (this),
|
|
774
|
+
await callback .call (SFNodeCache_default().get (this), this .getBrowser () .getCurrentTime ());
|
|
752
775
|
}
|
|
753
776
|
catch (error)
|
|
754
777
|
{
|
|
755
778
|
this .setError (`in function '${name}'`, error);
|
|
756
779
|
}
|
|
757
|
-
|
|
758
|
-
browser .getScriptStack () .pop ();
|
|
759
780
|
},
|
|
760
|
-
set_field__ (callback, field)
|
|
781
|
+
async set_field__ (callback, cache, field)
|
|
761
782
|
{
|
|
762
|
-
const
|
|
763
|
-
|
|
764
|
-
field .setTainted (true);
|
|
765
|
-
browser .getScriptStack () .push (this);
|
|
783
|
+
const copy = cache .pop () ?? field .create ();
|
|
766
784
|
|
|
767
785
|
try
|
|
768
786
|
{
|
|
769
|
-
|
|
787
|
+
copy .assign (field);
|
|
788
|
+
|
|
789
|
+
await callback .call (SFNodeCache_default().get (this), copy .valueOf (), this .getBrowser () .getCurrentTime ());
|
|
770
790
|
}
|
|
771
791
|
catch (error)
|
|
772
792
|
{
|
|
773
|
-
this .setError (`in function '${field .getName()}'`, error);
|
|
793
|
+
this .setError (`in function '${field .getName ()}'`, error);
|
|
794
|
+
}
|
|
795
|
+
finally
|
|
796
|
+
{
|
|
797
|
+
cache .push (copy);
|
|
774
798
|
}
|
|
775
|
-
|
|
776
|
-
browser .getScriptStack () .pop ();
|
|
777
|
-
field .setTainted (false);
|
|
778
799
|
},
|
|
779
800
|
setError (reason, error)
|
|
780
801
|
{
|
|
@@ -785,35 +806,9 @@ Object .assign (Object .setPrototypeOf (Script .prototype, Scripting_X3DScriptNo
|
|
|
785
806
|
console .error (`JavaScript Error in Script '${this .getName ()}', ${reason}\nworld url is '${worldURL}':`);
|
|
786
807
|
console .error (error);
|
|
787
808
|
},
|
|
788
|
-
|
|
789
|
-
{
|
|
790
|
-
// Call shutdown.
|
|
791
|
-
|
|
792
|
-
const shutdown = this .context ?.get ("shutdown");
|
|
793
|
-
|
|
794
|
-
if (typeof shutdown === "function")
|
|
795
|
-
this .call__ (shutdown, "shutdown");
|
|
796
|
-
|
|
797
|
-
// Disconnect shutdown.
|
|
798
|
-
|
|
799
|
-
$(window) .off (".Script" + this .getId ());
|
|
800
|
-
|
|
801
|
-
// Disconnect prepareEvents.
|
|
802
|
-
|
|
803
|
-
this .getBrowser () .prepareEvents () .removeInterest ("call__", this);
|
|
804
|
-
|
|
805
|
-
// Disconnect eventsProcessed.
|
|
806
|
-
|
|
807
|
-
this .removeInterest ("call__", this);
|
|
808
|
-
|
|
809
|
-
// Disconnect fields.
|
|
810
|
-
|
|
811
|
-
for (const field of this .getUserDefinedFields ())
|
|
812
|
-
field .removeInterest ("set_field__", this);
|
|
813
|
-
},
|
|
814
|
-
dispose ()
|
|
809
|
+
async dispose ()
|
|
815
810
|
{
|
|
816
|
-
this .
|
|
811
|
+
await this .unloadData ();
|
|
817
812
|
|
|
818
813
|
Scripting_X3DScriptNode .prototype .dispose .call (this);
|
|
819
814
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/* X_ITE v9.3.2 */(()=>{"use strict";var e={823:e=>{e.exports=window[Symbol.for("X_ITE.X3D-9.3.2")].require("lib/jquery")}},t={};function o(r){var i=t[r];if(void 0!==i)return i.exports;var n=t[r]={exports:{}};return e[r](n,n.exports,o),n.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 r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{const e=window[Symbol.for("X_ITE.X3D-9.3.2")].require("x_ite/Components");var t=o.n(e);const r=window[Symbol.for("X_ITE.X3D-9.3.2")].require("x_ite/Base/X3DBaseNode");var i=o.n(r);const n=window[Symbol.for("X_ITE.X3D-9.3.2")].require("x_ite/Base/X3DFieldDefinition");var a=o.n(n);const s=window[Symbol.for("X_ITE.X3D-9.3.2")].require("x_ite/Base/FieldDefinitionArray");var l=o.n(s);const c=window[Symbol.for("X_ITE.X3D-9.3.2")].require("x_ite/Base/X3DField");var u=o.n(c);const d=window[Symbol.for("X_ITE.X3D-9.3.2")].require("x_ite/Base/X3DArrayField");var p=o.n(d);const f=window[Symbol.for("X_ITE.X3D-9.3.2")].require("x_ite/Fields");var v=o.n(f);const S=window[Symbol.for("X_ITE.X3D-9.3.2")].require("x_ite/Browser/X3DBrowser");var _=o.n(S);const w=window[Symbol.for("X_ITE.X3D-9.3.2")].require("x_ite/Configuration/ComponentInfo");var y=o.n(w);const m=window[Symbol.for("X_ITE.X3D-9.3.2")].require("x_ite/Configuration/ComponentInfoArray");var F=o.n(m);const h=window[Symbol.for("X_ITE.X3D-9.3.2")].require("x_ite/Configuration/ProfileInfo");var X=o.n(h);const D=window[Symbol.for("X_ITE.X3D-9.3.2")].require("x_ite/Configuration/ProfileInfoArray");var g=o.n(D);const x=window[Symbol.for("X_ITE.X3D-9.3.2")].require("x_ite/Configuration/ConcreteNodesArray");var b=o.n(x);const E=window[Symbol.for("X_ITE.X3D-9.3.2")].require("x_ite/Configuration/AbstractNodesArray");var I=o.n(E);const T=window[Symbol.for("X_ITE.X3D-9.3.2")].require("x_ite/Configuration/UnitInfo");var M=o.n(T);const N=window[Symbol.for("X_ITE.X3D-9.3.2")].require("x_ite/Configuration/UnitInfoArray");var O=o.n(N);const A=window[Symbol.for("X_ITE.X3D-9.3.2")].require("x_ite/Execution/NamedNodesArray");var q=o.n(A);const C=window[Symbol.for("X_ITE.X3D-9.3.2")].require("x_ite/Execution/ImportedNodesArray");var P=o.n(C);const V=window[Symbol.for("X_ITE.X3D-9.3.2")].require("x_ite/Execution/X3DImportedNode");var B=o.n(V);const j=window[Symbol.for("X_ITE.X3D-9.3.2")].require("x_ite/Execution/ExportedNodesArray");var R=o.n(j);const U=window[Symbol.for("X_ITE.X3D-9.3.2")].require("x_ite/Execution/X3DExportedNode");var z=o.n(U);const L=window[Symbol.for("X_ITE.X3D-9.3.2")].require("x_ite/Execution/X3DExecutionContext");var k=o.n(L);const G=window[Symbol.for("X_ITE.X3D-9.3.2")].require("x_ite/Execution/X3DScene");var $=o.n(G);const W=window[Symbol.for("X_ITE.X3D-9.3.2")].require("x_ite/Prototype/ExternProtoDeclarationArray");var H=o.n(W);const J=window[Symbol.for("X_ITE.X3D-9.3.2")].require("x_ite/Prototype/ProtoDeclarationArray");var K=o.n(J);const Q=window[Symbol.for("X_ITE.X3D-9.3.2")].require("x_ite/Prototype/X3DExternProtoDeclaration");var Y=o.n(Q);const Z=window[Symbol.for("X_ITE.X3D-9.3.2")].require("x_ite/Prototype/X3DProtoDeclaration");var ee=o.n(Z);const te=window[Symbol.for("X_ITE.X3D-9.3.2")].require("x_ite/Prototype/X3DProtoDeclarationNode");var oe=o.n(te);const re=window[Symbol.for("X_ITE.X3D-9.3.2")].require("x_ite/Routing/RouteArray");var ie=o.n(re);const ne=window[Symbol.for("X_ITE.X3D-9.3.2")].require("x_ite/Routing/X3DRoute");var ae=o.n(ne);const se=window[Symbol.for("X_ITE.X3D-9.3.2")].require("x_ite/Namespace");var le=o.n(se);const ce=function(e,t,o){return new Function("with (arguments [0])\n {\n return eval ((() =>\n {\n const sourceText = arguments [1];\n\n delete arguments [0];\n delete arguments [1];\n\n arguments .length = 0;\n\n return sourceText;\n })\n ());\n }").call(e,t,o)};le().add("evaluate","x_ite/Browser/Scripting/evaluate",ce);const ue=ce,de=window[Symbol.for("X_ITE.X3D-9.3.2")].require("x_ite/Components/Core/X3DChildNode");var pe=o.n(de);const fe=window[Symbol.for("X_ITE.X3D-9.3.2")].require("x_ite/Components/Networking/X3DUrlObject");var ve=o.n(fe);const Se=window[Symbol.for("X_ITE.X3D-9.3.2")].require("x_ite/Base/X3DConstants");var _e=o.n(Se);function we(e){pe().call(this,e),ve().call(this,e),this.addType(_e().X3DScriptNode)}Object.assign(Object.setPrototypeOf(we.prototype,pe().prototype),ve().prototype,{initialize(){pe().prototype.initialize.call(this),ve().prototype.initialize.call(this)},dispose(){ve().prototype.dispose.call(this),pe().prototype.dispose.call(this)}}),Object.defineProperties(we,{typeName:{value:"X3DScriptNode",enumerable:!0},componentInfo:{value:Object.freeze({name:"Scripting",level:1}),enumerable:!0}});const ye=we;le().add("X3DScriptNode","x_ite/Components/Scripting/X3DScriptNode",ye);const me=ye,Fe=window[Symbol.for("X_ITE.X3D-9.3.2")].require("x_ite/InputOutput/FileLoader");var he=o.n(Fe);const Xe=window[Symbol.for("X_ITE.X3D-9.3.2")].require("x_ite/Fields/SFNodeCache");var De=o.n(Xe),ge=o(823);function xe(e){me.call(this,e),this.addType(_e().Script)}Object.assign(Object.setPrototypeOf(xe.prototype,me.prototype),{initialize(){me.prototype.initialize.call(this),this.requestImmediateLoad().catch(Function.prototype)},getExtendedEventHandling:()=>!1,canUserDefinedFields:()=>!0,addUserDefinedField(e,t,o){me.prototype.addUserDefinedField.call(this,e,t,o),this.isInitialized()&&(this.setLoadState(_e().NOT_STARTED_STATE),this.requestImmediateLoad().catch(Function.prototype))},removeUserDefinedField(e){this.getUserDefinedFields().get(e)?.removeInterest("set_field__",this),me.prototype.removeUserDefinedField.call(this,e),this.isInitialized()&&(this.setLoadState(_e().NOT_STARTED_STATE),this.requestImmediateLoad().catch(Function.prototype))},getSourceText(){return this._url},unloadData(){this.initialize__("")},loadData(){new(he())(this).loadDocument(this._url,(e=>{null===e?this.setLoadState(_e().FAILED_STATE):(this.initialize__(ge.decodeText(e)),this.setLoadState(_e().COMPLETE_STATE))}))},createGlobalObject(){const e=this.getBrowser();function t(t){const o=e.createVrmlFromString(t);if(o.length&&o[0])return o[0];throw new Error("SFNode.new: invalid argument.")}t.prototype=v().SFNode.prototype;const o={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:_e()},X3DBrowser:{value:_()},X3DExecutionContext:{value:k()},X3DScene:{value:$()},ComponentInfo:{value:y()},ComponentInfoArray:{value:F()},ProfileInfo:{value:X()},ProfileInfoArray:{value:g()},ConcreteNodesArray:{value:b()},AbstractNodesArray:{value:I()},UnitInfo:{value:M()},UnitInfoArray:{value:O()},NamedNodesArray:{value:q()},ImportedNodesArray:{value:P()},X3DImportedNode:{value:B()},ExportedNodesArray:{value:R()},X3DExportedNode:{value:z()},ExternProtoDeclarationArray:{value:H()},ProtoDeclarationArray:{value:K()},X3DExternProtoDeclaration:{value:Y()},X3DProtoDeclaration:{value:ee()},X3DProtoDeclarationNode:{value:oe()},RouteArray:{value:ie()},X3DRoute:{value:ae()},X3DBaseNode:{value:i()},X3DFieldDefinition:{value:a()},FieldDefinitionArray:{value:l()},X3DField:{value:u()},X3DArrayField:{value:p()},SFColor:{value:v().SFColor},SFColorRGBA:{value:v().SFColorRGBA},SFImage:{value:v().SFImage},SFMatrix3d:{value:v().SFMatrix3d},SFMatrix3f:{value:v().SFMatrix3f},SFMatrix4d:{value:v().SFMatrix4d},SFMatrix4f:{value:v().SFMatrix4f},SFNode:{value:t},SFRotation:{value:v().SFRotation},SFString:{value:v().SFString},SFVec2d:{value:v().SFVec2d},SFVec2f:{value:v().SFVec2f},SFVec3d:{value:v().SFVec3d},SFVec3f:{value:v().SFVec3f},SFVec4d:{value:v().SFVec4d},SFVec4f:{value:v().SFVec4f},VrmlMatrix:{value:v().VrmlMatrix},MFBool:{value:v().MFBool},MFColor:{value:v().MFColor},MFColorRGBA:{value:v().MFColorRGBA},MFDouble:{value:v().MFDouble},MFFloat:{value:v().MFFloat},MFImage:{value:v().MFImage},MFInt32:{value:v().MFInt32},MFMatrix3d:{value:v().MFMatrix3d},MFMatrix3f:{value:v().MFMatrix3f},MFMatrix4d:{value:v().MFMatrix4d},MFMatrix4f:{value:v().MFMatrix4f},MFNode:{value:v().MFNode},MFRotation:{value:v().MFRotation},MFString:{value:v().MFString},MFTime:{value:v().MFTime},MFVec2d:{value:v().MFVec2d},MFVec2f:{value:v().MFVec2f},MFVec3d:{value:v().MFVec3d},MFVec3f:{value:v().MFVec3f},MFVec4d:{value:v().MFVec4d},MFVec4f:{value:v().MFVec4f}};for(const e of this.getUserDefinedFields()){const t=e.getName();e.getAccessType()!==_e().inputOnly&&(t in o||(o[t]={get:e.valueOf.bind(e),set:e.setValue.bind(e)}),e.getAccessType()===_e().inputOutput&&(o[t+"_changed"]={get:e.valueOf.bind(e),set:e.setValue.bind(e)}))}return Object.create(Object.prototype,o)},createContext(e){const t=["initialize","prepareEvents","eventsProcessed","shutdown"];for(const e of this.getUserDefinedFields())switch(e.getAccessType()){case _e().inputOnly:t.push(e.getName());break;case _e().inputOutput:t.push("set_"+e.getName())}e+=";\n["+t.map((e=>`typeof ${e} !== "undefined" ? ${e} : undefined`)).join(",")+"];";const o=this.evaluate(e),r=new Map;for(let e=0;e<t.length;++e)r.set(t[e],o[e]);return r},evaluate(e){const t=this.getBrowser();try{return t.getScriptStack().push(this),this.globalObject||(this.globalObject=this.createGlobalObject()),ue(De().get(this),this.globalObject,e)}finally{t.getScriptStack().pop()}},initialize__(e){this.disconnect();const t=this.getBrowser();this.globalObject=this.createGlobalObject(),this.context=this.createContext(e);const o=this.context.get("shutdown");"function"==typeof o&&ge(window).on("unload.Script"+this.getId(),this.call__.bind(this,o,"shutdown"));const r=this.context.get("prepareEvents");"function"==typeof r&&t.prepareEvents().addInterest("call__",this,r,"prepareEvents");const i=this.context.get("eventsProcessed");"function"==typeof i&&this.addInterest("call__",this,i,"eventsProcessed");for(const e of this.getUserDefinedFields())switch(e.getAccessType()){case _e().inputOnly:{const t=this.context.get(e.getName());"function"==typeof t&&e.addInterest("set_field__",this,t);break}case _e().inputOutput:{const t=this.context.get("set_"+e.getName());"function"==typeof t&&e.addInterest("set_field__",this,t);break}}const n=this.context.get("initialize");"function"==typeof n&&this.call__(n,"initialize")},call__(e,t){const o=this.getBrowser();o.getScriptStack().push(this);try{e.call(De().get(this),o.getCurrentTime())}catch(e){this.setError(`in function '${t}'`,e)}o.getScriptStack().pop()},set_field__(e,t){const o=this.getBrowser();t.setTainted(!0),o.getScriptStack().push(this);try{e.call(De().get(this),t.valueOf(),o.getCurrentTime())}catch(e){this.setError(`in function '${t.getName()}'`,e)}o.getScriptStack().pop(),t.setTainted(!1)},setError(e,t){const o=this.getExecutionContext().getWorldURL().startsWith("data:")?"data:":this.getExecutionContext().getWorldURL();console.error(`JavaScript Error in Script '${this.getName()}', ${e}\nworld url is '${o}':`),console.error(t)},disconnect(){const e=this.context?.get("shutdown");"function"==typeof e&&this.call__(e,"shutdown"),ge(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(){this.disconnect(),me.prototype.dispose.call(this)}}),Object.defineProperties(xe,{typeName:{value:"Script",enumerable:!0},componentInfo:{value:Object.freeze({name:"Scripting",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"2.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(l())([new(a())(_e().inputOutput,"metadata",new(v().SFNode)),new(a())(_e().inputOutput,"description",new(v().SFString)),new(a())(_e().inputOutput,"load",new(v().SFBool)(!0)),new(a())(_e().inputOutput,"url",new(v().MFString)),new(a())(_e().inputOutput,"autoRefresh",new(v().SFTime)),new(a())(_e().inputOutput,"autoRefreshTimeLimit",new(v().SFTime)(3600)),new(a())(_e().initializeOnly,"directOutput",new(v().SFBool)),new(a())(_e().initializeOnly,"mustEvaluate",new(v().SFBool))]),enumerable:!0}});const be=xe;le().add("Script","x_ite/Components/Scripting/Script",be);const Ee=be;t().add({name:"Scripting",concreteNodes:[Ee],abstractNodes:[me]});const Ie=void 0;le().add("Scripting","assets/components/Scripting",Ie)})()})();
|
|
1
|
+
/* X_ITE v9.4.0 */(()=>{"use strict";var e={823:e=>{e.exports=window[Symbol.for("X_ITE.X3D-9.4.0")].require("lib/jquery")}},t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,o),i.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 r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{const e=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Components");var t=o.n(e);const r=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Base/X3DBaseNode");var n=o.n(r);const i=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Base/X3DFieldDefinition");var a=o.n(i);const s=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Base/FieldDefinitionArray");var l=o.n(s);const c=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Base/X3DField");var u=o.n(c);const d=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Base/X3DArrayField");var p=o.n(d);const f=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Fields");var v=o.n(f);const w=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Browser/X3DBrowser");var y=o.n(w);const _=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Configuration/ComponentInfo");var S=o.n(_);const m=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Configuration/ComponentInfoArray");var F=o.n(m);const h=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Configuration/ProfileInfo");var X=o.n(h);const D=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Configuration/ProfileInfoArray");var x=o.n(D);const g=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Configuration/ConcreteNodesArray");var b=o.n(g);const E=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Configuration/AbstractNodesArray");var I=o.n(E);const T=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Configuration/UnitInfo");var M=o.n(T);const N=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Configuration/UnitInfoArray");var O=o.n(N);const A=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Execution/NamedNodesArray");var C=o.n(A);const q=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Execution/ImportedNodesArray");var P=o.n(q);const V=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Execution/X3DImportedNode");var B=o.n(V);const j=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Execution/ExportedNodesArray");var R=o.n(j);const U=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Execution/X3DExportedNode");var z=o.n(U);const L=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Execution/X3DExecutionContext");var $=o.n(L);const G=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Execution/X3DScene");var k=o.n(G);const W=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Prototype/ExternProtoDeclarationArray");var H=o.n(W);const J=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Prototype/ProtoDeclarationArray");var K=o.n(J);const Q=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Prototype/X3DExternProtoDeclaration");var Y=o.n(Q);const Z=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Prototype/X3DProtoDeclaration");var ee=o.n(Z);const te=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Prototype/X3DProtoDeclarationNode");var oe=o.n(te);const re=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Routing/RouteArray");var ne=o.n(re);const ie=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Routing/X3DRoute");var ae=o.n(ie);const se=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Namespace");var le=o.n(se);const ce=function(e,t,o){return new Function("with (arguments [0])\n {\n return eval ((() =>\n {\n const sourceText = arguments [1];\n\n delete arguments [0];\n delete arguments [1];\n\n arguments .length = 0;\n\n return sourceText;\n })\n ());\n }").call(e,t,o)};le().add("evaluate","x_ite/Browser/Scripting/evaluate",ce);const ue=ce,de=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Components/Core/X3DChildNode");var pe=o.n(de);const fe=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Components/Networking/X3DUrlObject");var ve=o.n(fe);const we=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Base/X3DConstants");var ye=o.n(we);function _e(e){pe().call(this,e),ve().call(this,e),this.addType(ye().X3DScriptNode)}Object.assign(Object.setPrototypeOf(_e.prototype,pe().prototype),ve().prototype,{initialize(){pe().prototype.initialize.call(this),ve().prototype.initialize.call(this)},dispose(){ve().prototype.dispose.call(this),pe().prototype.dispose.call(this)}}),Object.defineProperties(_e,{typeName:{value:"X3DScriptNode",enumerable:!0},componentInfo:{value:Object.freeze({name:"Scripting",level:1}),enumerable:!0}});const Se=_e;le().add("X3DScriptNode","x_ite/Components/Scripting/X3DScriptNode",Se);const me=Se,Fe=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/InputOutput/FileLoader");var he=o.n(Fe);const Xe=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Fields/SFNodeCache");var De=o.n(Xe),xe=o(823);function ge(e){me.call(this,e),this.addType(ye().Script)}Object.assign(Object.setPrototypeOf(ge.prototype,me.prototype),{initialize(){me.prototype.initialize.call(this),this.requestImmediateLoad().catch(Function.prototype)},getExtendedEventHandling:()=>!1,canUserDefinedFields:()=>!0,addUserDefinedField(e,t,o){me.prototype.addUserDefinedField.call(this,e,t,o),this.isInitialized()&&(this.setLoadState(ye().NOT_STARTED_STATE),this.requestImmediateLoad().catch(Function.prototype))},removeUserDefinedField(e){this.getUserDefinedFields().get(e)?.removeInterest("set_field__",this),me.prototype.removeUserDefinedField.call(this,e),this.isInitialized()&&(this.setLoadState(ye().NOT_STARTED_STATE),this.requestImmediateLoad().catch(Function.prototype))},getSourceText(){return this._url},async unloadData(){const e=this.context?.get("shutdown");"function"==typeof e&&await this.call__(e,"shutdown"),xe(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)},async loadData(){await this.unloadData(),new(he())(this).loadDocument(this._url,(e=>{null===e?this.setLoadState(ye().FAILED_STATE):(this.initialize__(xe.decodeText(e)),this.setLoadState(ye().COMPLETE_STATE))}))},createGlobalObject(){const e=()=>this,t={get(t,o){switch(o){case"getScriptNode":return e;case"currentScene":return e().getExecutionContext();default:return t[o]}}},o=new Proxy(this.getBrowser(),t);function r(e){const t=o.createVrmlFromString(e);if(t.length&&t[0])return t[0];throw new Error("SFNode.new: invalid argument.")}r.prototype=v().SFNode.prototype;const i={NULL:{value:null},FALSE:{value:!1},TRUE:{value:!0},print:{value:o.println.bind(o)},trace:{value:o.println.bind(o)},Browser:{value:o},X3DConstants:{value:ye()},X3DBrowser:{value:y()},X3DExecutionContext:{value:$()},X3DScene:{value:k()},ComponentInfo:{value:S()},ComponentInfoArray:{value:F()},ProfileInfo:{value:X()},ProfileInfoArray:{value:x()},ConcreteNodesArray:{value:b()},AbstractNodesArray:{value:I()},UnitInfo:{value:M()},UnitInfoArray:{value:O()},NamedNodesArray:{value:C()},ImportedNodesArray:{value:P()},X3DImportedNode:{value:B()},ExportedNodesArray:{value:R()},X3DExportedNode:{value:z()},ExternProtoDeclarationArray:{value:H()},ProtoDeclarationArray:{value:K()},X3DExternProtoDeclaration:{value:Y()},X3DProtoDeclaration:{value:ee()},X3DProtoDeclarationNode:{value:oe()},RouteArray:{value:ne()},X3DRoute:{value:ae()},X3DBaseNode:{value:n()},X3DFieldDefinition:{value:a()},FieldDefinitionArray:{value:l()},X3DField:{value:u()},X3DArrayField:{value:p()},SFColor:{value:v().SFColor},SFColorRGBA:{value:v().SFColorRGBA},SFImage:{value:v().SFImage},SFMatrix3d:{value:v().SFMatrix3d},SFMatrix3f:{value:v().SFMatrix3f},SFMatrix4d:{value:v().SFMatrix4d},SFMatrix4f:{value:v().SFMatrix4f},SFNode:{value:r},SFRotation:{value:v().SFRotation},SFString:{value:v().SFString},SFVec2d:{value:v().SFVec2d},SFVec2f:{value:v().SFVec2f},SFVec3d:{value:v().SFVec3d},SFVec3f:{value:v().SFVec3f},SFVec4d:{value:v().SFVec4d},SFVec4f:{value:v().SFVec4f},VrmlMatrix:{value:v().VrmlMatrix},MFBool:{value:v().MFBool},MFColor:{value:v().MFColor},MFColorRGBA:{value:v().MFColorRGBA},MFDouble:{value:v().MFDouble},MFFloat:{value:v().MFFloat},MFImage:{value:v().MFImage},MFInt32:{value:v().MFInt32},MFMatrix3d:{value:v().MFMatrix3d},MFMatrix3f:{value:v().MFMatrix3f},MFMatrix4d:{value:v().MFMatrix4d},MFMatrix4f:{value:v().MFMatrix4f},MFNode:{value:v().MFNode},MFRotation:{value:v().MFRotation},MFString:{value:v().MFString},MFTime:{value:v().MFTime},MFVec2d:{value:v().MFVec2d},MFVec2f:{value:v().MFVec2f},MFVec3d:{value:v().MFVec3d},MFVec3f:{value:v().MFVec3f},MFVec4d:{value:v().MFVec4d},MFVec4f:{value:v().MFVec4f}};for(const e of this.getUserDefinedFields()){if(e.getAccessType()===ye().inputOnly)continue;const t=[e.getName()];e.getAccessType()===ye().inputOutput&&t.push(e.getName()+"_changed");for(const o of t)o in i||(i[o]={get:e.valueOf.bind(e),set:e.setValue.bind(e)})}return Object.create(Object.prototype,i)},createContext(e){const t=["initialize","prepareEvents","eventsProcessed","shutdown"];for(const e of this.getUserDefinedFields())switch(e.getAccessType()){case ye().inputOnly:t.push(e.getName());break;case ye().inputOutput:t.push("set_"+e.getName())}e+=";\n["+t.map((e=>`typeof ${e} !== "undefined" ? ${e} : undefined`)).join(",")+"];";const o=this.evaluate(e),r=new Map;for(let e=0;e<t.length;++e)r.set(t[e],o[e]);return r},evaluate(e){return this.globalObject||(this.globalObject=this.createGlobalObject()),ue(De().get(this),this.globalObject,e)},async initialize__(e){const t=this.getBrowser();this.globalObject=this.createGlobalObject(),this.context=this.createContext(e);const o=this.context.get("shutdown");"function"==typeof o&&xe(window).on(`unload.Script${this.getId()}`,(()=>this.call__(o,"shutdown")));const r=this.context.get("prepareEvents");"function"==typeof r&&t.prepareEvents().addInterest("call__",this,r,"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 ye().inputOnly:{const t=this.context.get(e.getName());"function"==typeof t&&e.addInterest("set_field__",this,t,[]);break}case ye().inputOutput:{const t=this.context.get("set_"+e.getName());"function"==typeof t&&e.addInterest("set_field__",this,t,[]);break}}const i=this.context.get("initialize");"function"==typeof i&&await this.call__(i,"initialize")},async call__(e,t){try{await e.call(De().get(this),this.getBrowser().getCurrentTime())}catch(e){this.setError(`in function '${t}'`,e)}},async set_field__(e,t,o){const r=t.pop()??o.create();try{r.assign(o),await e.call(De().get(this),r.valueOf(),this.getBrowser().getCurrentTime())}catch(e){this.setError(`in function '${o.getName()}'`,e)}finally{t.push(r)}},setError(e,t){const o=this.getExecutionContext().getWorldURL().startsWith("data:")?"data:":this.getExecutionContext().getWorldURL();console.error(`JavaScript Error in Script '${this.getName()}', ${e}\nworld url is '${o}':`),console.error(t)},async dispose(){await this.unloadData(),me.prototype.dispose.call(this)}}),Object.defineProperties(ge,{typeName:{value:"Script",enumerable:!0},componentInfo:{value:Object.freeze({name:"Scripting",level:1}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"2.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(l())([new(a())(ye().inputOutput,"metadata",new(v().SFNode)),new(a())(ye().inputOutput,"description",new(v().SFString)),new(a())(ye().inputOutput,"load",new(v().SFBool)(!0)),new(a())(ye().inputOutput,"url",new(v().MFString)),new(a())(ye().inputOutput,"autoRefresh",new(v().SFTime)),new(a())(ye().inputOutput,"autoRefreshTimeLimit",new(v().SFTime)(3600)),new(a())(ye().initializeOnly,"directOutput",new(v().SFBool)),new(a())(ye().initializeOnly,"mustEvaluate",new(v().SFBool))]),enumerable:!0}});const be=ge;le().add("Script","x_ite/Components/Scripting/Script",be);const Ee=be;t().add({name:"Scripting",concreteNodes:[Ee],abstractNodes:[me]});const Ie=void 0;le().add("Scripting","assets/components/Scripting",Ie)})()})();
|