x_ite 10.2.0 → 10.3.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.
Files changed (74) hide show
  1. package/README.md +4 -4
  2. package/dist/LICENSE.md +4 -0
  3. package/dist/assets/components/{Annotation.js → AnnotationComponent.js} +138 -260
  4. package/dist/assets/components/AnnotationComponent.min.js +2 -0
  5. package/dist/assets/components/{CADGeometry.js → CADGeometryComponent.js} +177 -299
  6. package/dist/assets/components/CADGeometryComponent.min.js +2 -0
  7. package/dist/assets/components/{CubeMapTexturing.js → CubeMapTexturingComponent.js} +204 -255
  8. package/dist/assets/components/CubeMapTexturingComponent.min.js +2 -0
  9. package/dist/assets/components/DISComponent.js +994 -0
  10. package/dist/assets/components/DISComponent.min.js +2 -0
  11. package/dist/assets/components/{EventUtilities.js → EventUtilitiesComponent.js} +121 -274
  12. package/dist/assets/components/EventUtilitiesComponent.min.js +2 -0
  13. package/dist/assets/components/{Geometry2D.js → Geometry2DComponent.js} +202 -356
  14. package/dist/assets/components/Geometry2DComponent.min.js +2 -0
  15. package/dist/assets/components/{Geospatial.js → GeospatialComponent.js} +449 -676
  16. package/dist/assets/components/GeospatialComponent.min.js +2 -0
  17. package/dist/assets/components/{HAnim.js → HAnimComponent.js} +277 -387
  18. package/dist/assets/components/HAnimComponent.min.js +2 -0
  19. package/dist/assets/components/{KeyDeviceSensor.js → KeyDeviceSensorComponent.js} +71 -114
  20. package/dist/assets/components/KeyDeviceSensorComponent.min.js +2 -0
  21. package/dist/assets/components/{Layout.js → LayoutComponent.js} +234 -339
  22. package/dist/assets/components/LayoutComponent.min.js +2 -0
  23. package/dist/assets/components/{NURBS.js → NURBSComponent.js} +349 -652
  24. package/dist/assets/components/NURBSComponent.min.js +2 -0
  25. package/dist/assets/components/{ParticleSystems.js → ParticleSystemsComponent.js} +345 -674
  26. package/dist/assets/components/ParticleSystemsComponent.min.js +2 -0
  27. package/dist/assets/components/{Picking.js → PickingComponent.js} +245 -472
  28. package/dist/assets/components/PickingComponent.min.js +2 -0
  29. package/dist/assets/components/{RigidBodyPhysics.js → RigidBodyPhysicsComponent.js} +496 -804
  30. package/dist/assets/components/RigidBodyPhysicsComponent.min.js +2 -0
  31. package/dist/assets/components/ScriptingComponent.js +899 -0
  32. package/dist/assets/components/ScriptingComponent.min.js +2 -0
  33. package/dist/assets/components/{Text.js → TextComponent.js} +200 -250
  34. package/dist/assets/components/TextComponent.min.js +2 -0
  35. package/dist/assets/components/{TextureProjection.js → TextureProjectionComponent.js} +144 -190
  36. package/dist/assets/components/TextureProjectionComponent.min.js +2 -0
  37. package/dist/assets/components/{Texturing3D.js → Texturing3DComponent.js} +223 -385
  38. package/dist/assets/components/Texturing3DComponent.min.js +2 -0
  39. package/dist/assets/components/{VolumeRendering.js → VolumeRenderingComponent.js} +316 -603
  40. package/dist/assets/components/VolumeRenderingComponent.min.js +2 -0
  41. package/dist/assets/components/{X_ITE.js → X_ITEComponent.js} +301 -599
  42. package/dist/assets/components/X_ITEComponent.min.js +2 -0
  43. package/dist/assets/images/XR.svg +74 -0
  44. package/dist/example.html +1 -1
  45. package/dist/x_ite.css +1 -1
  46. package/dist/x_ite.d.ts +68 -11
  47. package/dist/x_ite.js +2768 -5722
  48. package/dist/x_ite.min.js +2 -1
  49. package/dist/x_ite.min.mjs +2 -1
  50. package/dist/x_ite.mjs +2768 -5722
  51. package/dist/x_ite.zip +0 -0
  52. package/package.json +7 -5
  53. package/dist/assets/components/Annotation.min.js +0 -1
  54. package/dist/assets/components/CADGeometry.min.js +0 -1
  55. package/dist/assets/components/CubeMapTexturing.min.js +0 -1
  56. package/dist/assets/components/DIS.js +0 -1104
  57. package/dist/assets/components/DIS.min.js +0 -1
  58. package/dist/assets/components/EventUtilities.min.js +0 -1
  59. package/dist/assets/components/Geometry2D.min.js +0 -1
  60. package/dist/assets/components/Geospatial.min.js +0 -1
  61. package/dist/assets/components/HAnim.min.js +0 -1
  62. package/dist/assets/components/KeyDeviceSensor.min.js +0 -1
  63. package/dist/assets/components/Layout.min.js +0 -1
  64. package/dist/assets/components/NURBS.min.js +0 -1
  65. package/dist/assets/components/ParticleSystems.min.js +0 -1
  66. package/dist/assets/components/Picking.min.js +0 -1
  67. package/dist/assets/components/RigidBodyPhysics.min.js +0 -1
  68. package/dist/assets/components/Scripting.js +0 -927
  69. package/dist/assets/components/Scripting.min.js +0 -1
  70. package/dist/assets/components/Text.min.js +0 -1
  71. package/dist/assets/components/TextureProjection.min.js +0 -1
  72. package/dist/assets/components/Texturing3D.min.js +0 -1
  73. package/dist/assets/components/VolumeRendering.min.js +0 -1
  74. package/dist/assets/components/X_ITE.min.js +0 -1
@@ -1,927 +0,0 @@
1
- /* X_ITE v10.2.0 */(() => { // webpackBootstrap
2
- /******/ "use strict";
3
- /******/ var __webpack_modules__ = ({
4
-
5
- /***/ 823:
6
- /***/ ((module) => {
7
-
8
- module.exports = window [Symbol .for ("X_ITE.X3D-10.2.0")] .require ("lib/jquery");
9
-
10
- /***/ })
11
-
12
- /******/ });
13
- /************************************************************************/
14
- /******/ // The module cache
15
- /******/ var __webpack_module_cache__ = {};
16
- /******/
17
- /******/ // The require function
18
- /******/ function __webpack_require__(moduleId) {
19
- /******/ // Check if module is in cache
20
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
21
- /******/ if (cachedModule !== undefined) {
22
- /******/ return cachedModule.exports;
23
- /******/ }
24
- /******/ // Create a new module (and put it into the cache)
25
- /******/ var module = __webpack_module_cache__[moduleId] = {
26
- /******/ // no module.id needed
27
- /******/ // no module.loaded needed
28
- /******/ exports: {}
29
- /******/ };
30
- /******/
31
- /******/ // Execute the module function
32
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
33
- /******/
34
- /******/ // Return the exports of the module
35
- /******/ return module.exports;
36
- /******/ }
37
- /******/
38
- /************************************************************************/
39
- /******/ /* webpack/runtime/compat get default export */
40
- /******/ (() => {
41
- /******/ // getDefaultExport function for compatibility with non-harmony modules
42
- /******/ __webpack_require__.n = (module) => {
43
- /******/ var getter = module && module.__esModule ?
44
- /******/ () => (module['default']) :
45
- /******/ () => (module);
46
- /******/ __webpack_require__.d(getter, { a: getter });
47
- /******/ return getter;
48
- /******/ };
49
- /******/ })();
50
- /******/
51
- /******/ /* webpack/runtime/define property getters */
52
- /******/ (() => {
53
- /******/ // define getter functions for harmony exports
54
- /******/ __webpack_require__.d = (exports, definition) => {
55
- /******/ for(var key in definition) {
56
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
57
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
58
- /******/ }
59
- /******/ }
60
- /******/ };
61
- /******/ })();
62
- /******/
63
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
64
- /******/ (() => {
65
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
66
- /******/ })();
67
- /******/
68
- /************************************************************************/
69
-
70
- // UNUSED EXPORTS: default
71
-
72
- ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components\")"
73
- const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.2.0")] .require ("x_ite/Components");
74
- var Components_default = /*#__PURE__*/__webpack_require__.n(Components_namespaceObject);
75
- ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DBaseNode\")"
76
- const X3DBaseNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.2.0")] .require ("x_ite/Base/X3DBaseNode");
77
- var X3DBaseNode_default = /*#__PURE__*/__webpack_require__.n(X3DBaseNode_namespaceObject);
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-10.2.0")] .require ("x_ite/Base/X3DFieldDefinition");
80
- var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
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-10.2.0")] .require ("x_ite/Base/FieldDefinitionArray");
83
- var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
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-10.2.0")] .require ("x_ite/Base/X3DField");
86
- var X3DField_default = /*#__PURE__*/__webpack_require__.n(X3DField_namespaceObject);
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-10.2.0")] .require ("x_ite/Base/X3DArrayField");
89
- var X3DArrayField_default = /*#__PURE__*/__webpack_require__.n(X3DArrayField_namespaceObject);
90
- ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
91
- const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.2.0")] .require ("x_ite/Fields");
92
- var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
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-10.2.0")] .require ("x_ite/Browser/X3DBrowser");
95
- var X3DBrowser_default = /*#__PURE__*/__webpack_require__.n(X3DBrowser_namespaceObject);
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-10.2.0")] .require ("x_ite/Configuration/ComponentInfo");
98
- var ComponentInfo_default = /*#__PURE__*/__webpack_require__.n(ComponentInfo_namespaceObject);
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-10.2.0")] .require ("x_ite/Configuration/ComponentInfoArray");
101
- var ComponentInfoArray_default = /*#__PURE__*/__webpack_require__.n(ComponentInfoArray_namespaceObject);
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-10.2.0")] .require ("x_ite/Configuration/ProfileInfo");
104
- var ProfileInfo_default = /*#__PURE__*/__webpack_require__.n(ProfileInfo_namespaceObject);
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-10.2.0")] .require ("x_ite/Configuration/ProfileInfoArray");
107
- var ProfileInfoArray_default = /*#__PURE__*/__webpack_require__.n(ProfileInfoArray_namespaceObject);
108
- ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Configuration/ConcreteNodesArray\")"
109
- const ConcreteNodesArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.2.0")] .require ("x_ite/Configuration/ConcreteNodesArray");
110
- var ConcreteNodesArray_default = /*#__PURE__*/__webpack_require__.n(ConcreteNodesArray_namespaceObject);
111
- ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Configuration/AbstractNodesArray\")"
112
- const AbstractNodesArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.2.0")] .require ("x_ite/Configuration/AbstractNodesArray");
113
- var AbstractNodesArray_default = /*#__PURE__*/__webpack_require__.n(AbstractNodesArray_namespaceObject);
114
- ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Configuration/UnitInfo\")"
115
- const UnitInfo_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.2.0")] .require ("x_ite/Configuration/UnitInfo");
116
- var UnitInfo_default = /*#__PURE__*/__webpack_require__.n(UnitInfo_namespaceObject);
117
- ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Configuration/UnitInfoArray\")"
118
- const UnitInfoArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.2.0")] .require ("x_ite/Configuration/UnitInfoArray");
119
- var UnitInfoArray_default = /*#__PURE__*/__webpack_require__.n(UnitInfoArray_namespaceObject);
120
- ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Execution/NamedNodesArray\")"
121
- const NamedNodesArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.2.0")] .require ("x_ite/Execution/NamedNodesArray");
122
- var NamedNodesArray_default = /*#__PURE__*/__webpack_require__.n(NamedNodesArray_namespaceObject);
123
- ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Execution/ImportedNodesArray\")"
124
- const ImportedNodesArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.2.0")] .require ("x_ite/Execution/ImportedNodesArray");
125
- var ImportedNodesArray_default = /*#__PURE__*/__webpack_require__.n(ImportedNodesArray_namespaceObject);
126
- ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Execution/X3DImportedNode\")"
127
- const X3DImportedNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.2.0")] .require ("x_ite/Execution/X3DImportedNode");
128
- var X3DImportedNode_default = /*#__PURE__*/__webpack_require__.n(X3DImportedNode_namespaceObject);
129
- ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Execution/ExportedNodesArray\")"
130
- const ExportedNodesArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.2.0")] .require ("x_ite/Execution/ExportedNodesArray");
131
- var ExportedNodesArray_default = /*#__PURE__*/__webpack_require__.n(ExportedNodesArray_namespaceObject);
132
- ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Execution/X3DExportedNode\")"
133
- const X3DExportedNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.2.0")] .require ("x_ite/Execution/X3DExportedNode");
134
- var X3DExportedNode_default = /*#__PURE__*/__webpack_require__.n(X3DExportedNode_namespaceObject);
135
- ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Execution/X3DExecutionContext\")"
136
- const X3DExecutionContext_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.2.0")] .require ("x_ite/Execution/X3DExecutionContext");
137
- var X3DExecutionContext_default = /*#__PURE__*/__webpack_require__.n(X3DExecutionContext_namespaceObject);
138
- ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Execution/X3DScene\")"
139
- const X3DScene_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.2.0")] .require ("x_ite/Execution/X3DScene");
140
- var X3DScene_default = /*#__PURE__*/__webpack_require__.n(X3DScene_namespaceObject);
141
- ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Prototype/ExternProtoDeclarationArray\")"
142
- const ExternProtoDeclarationArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.2.0")] .require ("x_ite/Prototype/ExternProtoDeclarationArray");
143
- var ExternProtoDeclarationArray_default = /*#__PURE__*/__webpack_require__.n(ExternProtoDeclarationArray_namespaceObject);
144
- ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Prototype/ProtoDeclarationArray\")"
145
- const ProtoDeclarationArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.2.0")] .require ("x_ite/Prototype/ProtoDeclarationArray");
146
- var ProtoDeclarationArray_default = /*#__PURE__*/__webpack_require__.n(ProtoDeclarationArray_namespaceObject);
147
- ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Prototype/X3DExternProtoDeclaration\")"
148
- const X3DExternProtoDeclaration_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.2.0")] .require ("x_ite/Prototype/X3DExternProtoDeclaration");
149
- var X3DExternProtoDeclaration_default = /*#__PURE__*/__webpack_require__.n(X3DExternProtoDeclaration_namespaceObject);
150
- ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Prototype/X3DProtoDeclaration\")"
151
- const X3DProtoDeclaration_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.2.0")] .require ("x_ite/Prototype/X3DProtoDeclaration");
152
- var X3DProtoDeclaration_default = /*#__PURE__*/__webpack_require__.n(X3DProtoDeclaration_namespaceObject);
153
- ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Prototype/X3DProtoDeclarationNode\")"
154
- const X3DProtoDeclarationNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.2.0")] .require ("x_ite/Prototype/X3DProtoDeclarationNode");
155
- var X3DProtoDeclarationNode_default = /*#__PURE__*/__webpack_require__.n(X3DProtoDeclarationNode_namespaceObject);
156
- ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Routing/RouteArray\")"
157
- const RouteArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.2.0")] .require ("x_ite/Routing/RouteArray");
158
- var RouteArray_default = /*#__PURE__*/__webpack_require__.n(RouteArray_namespaceObject);
159
- ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Routing/X3DRoute\")"
160
- const X3DRoute_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.2.0")] .require ("x_ite/Routing/X3DRoute");
161
- var X3DRoute_default = /*#__PURE__*/__webpack_require__.n(X3DRoute_namespaceObject);
162
- ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
163
- const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.2.0")] .require ("x_ite/Namespace");
164
- var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
165
- ;// CONCATENATED MODULE: ./src/x_ite/Browser/Scripting/evaluate.js
166
- /*******************************************************************************
167
- *
168
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
169
- *
170
- * Copyright create3000, Scheffelstraße 31a, Leipzig, Germany 2011 - 2022.
171
- *
172
- * All rights reserved. Holger Seelig <holger.seelig@yahoo.de>.
173
- *
174
- * The copyright notice above does not evidence any actual of intended
175
- * publication of such source code, and is an unpublished work by create3000.
176
- * This material contains CONFIDENTIAL INFORMATION that is the property of
177
- * create3000.
178
- *
179
- * No permission is granted to copy, distribute, or create derivative works from
180
- * the contents of this software, in whole or in part, without the prior written
181
- * permission of create3000.
182
- *
183
- * NON-MILITARY USE ONLY
184
- *
185
- * All create3000 software are effectively free software with a non-military use
186
- * restriction. It is free. Well commented source is provided. You may reuse the
187
- * source in any way you please with the exception anything that uses it must be
188
- * marked to indicate is contains 'non-military use only' components.
189
- *
190
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
191
- *
192
- * Copyright 2011 - 2022, Holger Seelig <holger.seelig@yahoo.de>.
193
- *
194
- * This file is part of the X_ITE Project.
195
- *
196
- * X_ITE is free software: you can redistribute it and/or modify it under the
197
- * terms of the GNU General Public License version 3 only, as published by the
198
- * Free Software Foundation.
199
- *
200
- * X_ITE is distributed in the hope that it will be useful, but WITHOUT ANY
201
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
202
- * A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
203
- * details (a copy is included in the LICENSE file that accompanied this code).
204
- *
205
- * You should have received a copy of the GNU General Public License version 3
206
- * along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
207
- * copy of the GPLv3 License.
208
- *
209
- * For Silvio, Joy and Adi.
210
- *
211
- ******************************************************************************/
212
-
213
- function evaluate (thisArg, globalObject, sourceText)
214
- {
215
- return new Function (/* js */ `with (arguments [0])
216
- {
217
- return eval ((() =>
218
- {
219
- const sourceText = arguments [1];
220
-
221
- delete arguments [0];
222
- delete arguments [1];
223
-
224
- arguments .length = 0;
225
-
226
- return sourceText;
227
- })
228
- ());
229
- }`)
230
- .call (thisArg, globalObject, sourceText);
231
- }
232
-
233
- const __default__ = evaluate;
234
- ;
235
-
236
- Namespace_default().add ("evaluate", "x_ite/Browser/Scripting/evaluate", __default__);
237
- /* harmony default export */ const Scripting_evaluate = (__default__);
238
- ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DChildNode\")"
239
- const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.2.0")] .require ("x_ite/Components/Core/X3DChildNode");
240
- var X3DChildNode_default = /*#__PURE__*/__webpack_require__.n(X3DChildNode_namespaceObject);
241
- ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Networking/X3DUrlObject\")"
242
- const X3DUrlObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.2.0")] .require ("x_ite/Components/Networking/X3DUrlObject");
243
- var X3DUrlObject_default = /*#__PURE__*/__webpack_require__.n(X3DUrlObject_namespaceObject);
244
- ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
245
- const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.2.0")] .require ("x_ite/Base/X3DConstants");
246
- var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
247
- ;// CONCATENATED MODULE: ./src/x_ite/Components/Scripting/X3DScriptNode.js
248
- /*******************************************************************************
249
- *
250
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
251
- *
252
- * Copyright create3000, Scheffelstraße 31a, Leipzig, Germany 2011 - 2022.
253
- *
254
- * All rights reserved. Holger Seelig <holger.seelig@yahoo.de>.
255
- *
256
- * The copyright notice above does not evidence any actual of intended
257
- * publication of such source code, and is an unpublished work by create3000.
258
- * This material contains CONFIDENTIAL INFORMATION that is the property of
259
- * create3000.
260
- *
261
- * No permission is granted to copy, distribute, or create derivative works from
262
- * the contents of this software, in whole or in part, without the prior written
263
- * permission of create3000.
264
- *
265
- * NON-MILITARY USE ONLY
266
- *
267
- * All create3000 software are effectively free software with a non-military use
268
- * restriction. It is free. Well commented source is provided. You may reuse the
269
- * source in any way you please with the exception anything that uses it must be
270
- * marked to indicate is contains 'non-military use only' components.
271
- *
272
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
273
- *
274
- * Copyright 2011 - 2022, Holger Seelig <holger.seelig@yahoo.de>.
275
- *
276
- * This file is part of the X_ITE Project.
277
- *
278
- * X_ITE is free software: you can redistribute it and/or modify it under the
279
- * terms of the GNU General Public License version 3 only, as published by the
280
- * Free Software Foundation.
281
- *
282
- * X_ITE is distributed in the hope that it will be useful, but WITHOUT ANY
283
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
284
- * A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
285
- * details (a copy is included in the LICENSE file that accompanied this code).
286
- *
287
- * You should have received a copy of the GNU General Public License version 3
288
- * along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
289
- * copy of the GPLv3 License.
290
- *
291
- * For Silvio, Joy and Adi.
292
- *
293
- ******************************************************************************/
294
-
295
-
296
-
297
-
298
-
299
- function X3DScriptNode (executionContext)
300
- {
301
- X3DChildNode_default().call (this, executionContext);
302
- X3DUrlObject_default().call (this, executionContext);
303
-
304
- this .addType ((X3DConstants_default()).X3DScriptNode);
305
- }
306
-
307
- Object .assign (Object .setPrototypeOf (X3DScriptNode .prototype, (X3DChildNode_default()).prototype),
308
- (X3DUrlObject_default()).prototype,
309
- {
310
- initialize ()
311
- {
312
- X3DChildNode_default().prototype .initialize .call (this);
313
- X3DUrlObject_default().prototype .initialize .call (this);
314
- },
315
- dispose ()
316
- {
317
- X3DUrlObject_default().prototype .dispose .call (this);
318
- X3DChildNode_default().prototype .dispose .call (this);
319
- },
320
- });
321
-
322
- Object .defineProperties (X3DScriptNode,
323
- {
324
- typeName:
325
- {
326
- value: "X3DScriptNode",
327
- enumerable: true,
328
- },
329
- componentInfo:
330
- {
331
- value: Object .freeze ({ name: "Scripting", level: 1 }),
332
- enumerable: true,
333
- },
334
- });
335
-
336
- const X3DScriptNode_default_ = X3DScriptNode;
337
- ;
338
-
339
- Namespace_default().add ("X3DScriptNode", "x_ite/Components/Scripting/X3DScriptNode", X3DScriptNode_default_);
340
- /* harmony default export */ const Scripting_X3DScriptNode = (X3DScriptNode_default_);
341
- ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/InputOutput/FileLoader\")"
342
- const FileLoader_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.2.0")] .require ("x_ite/InputOutput/FileLoader");
343
- var FileLoader_default = /*#__PURE__*/__webpack_require__.n(FileLoader_namespaceObject);
344
- ;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields/SFNodeCache\")"
345
- const SFNodeCache_namespaceObject = window [Symbol .for ("X_ITE.X3D-10.2.0")] .require ("x_ite/Fields/SFNodeCache");
346
- var SFNodeCache_default = /*#__PURE__*/__webpack_require__.n(SFNodeCache_namespaceObject);
347
- ;// CONCATENATED MODULE: ./src/x_ite/Components/Scripting/Script.js
348
- /* provided dependency */ var $ = __webpack_require__(823);
349
- /*******************************************************************************
350
- *
351
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
352
- *
353
- * Copyright create3000, Scheffelstraße 31a, Leipzig, Germany 2011 - 2022.
354
- *
355
- * All rights reserved. Holger Seelig <holger.seelig@yahoo.de>.
356
- *
357
- * The copyright notice above does not evidence any actual of intended
358
- * publication of such source code, and is an unpublished work by create3000.
359
- * This material contains CONFIDENTIAL INFORMATION that is the property of
360
- * create3000.
361
- *
362
- * No permission is granted to copy, distribute, or create derivative works from
363
- * the contents of this software, in whole or in part, without the prior written
364
- * permission of create3000.
365
- *
366
- * NON-MILITARY USE ONLY
367
- *
368
- * All create3000 software are effectively free software with a non-military use
369
- * restriction. It is free. Well commented source is provided. You may reuse the
370
- * source in any way you please with the exception anything that uses it must be
371
- * marked to indicate is contains 'non-military use only' components.
372
- *
373
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
374
- *
375
- * Copyright 2011 - 2022, Holger Seelig <holger.seelig@yahoo.de>.
376
- *
377
- * This file is part of the X_ITE Project.
378
- *
379
- * X_ITE is free software: you can redistribute it and/or modify it under the
380
- * terms of the GNU General Public License version 3 only, as published by the
381
- * Free Software Foundation.
382
- *
383
- * X_ITE is distributed in the hope that it will be useful, but WITHOUT ANY
384
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
385
- * A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
386
- * details (a copy is included in the LICENSE file that accompanied this code).
387
- *
388
- * You should have received a copy of the GNU General Public License version 3
389
- * along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
390
- * copy of the GPLv3 License.
391
- *
392
- * For Silvio, Joy and Adi.
393
- *
394
- ******************************************************************************/
395
-
396
-
397
-
398
-
399
-
400
-
401
-
402
-
403
-
404
-
405
-
406
-
407
-
408
-
409
-
410
-
411
-
412
-
413
-
414
-
415
-
416
-
417
-
418
-
419
-
420
-
421
-
422
-
423
-
424
-
425
-
426
-
427
-
428
-
429
-
430
-
431
- function Script (executionContext)
432
- {
433
- Scripting_X3DScriptNode .call (this, executionContext);
434
-
435
- this .addType ((X3DConstants_default()).Script);
436
- }
437
-
438
- Object .assign (Object .setPrototypeOf (Script .prototype, Scripting_X3DScriptNode .prototype),
439
- {
440
- initialize ()
441
- {
442
- Scripting_X3DScriptNode .prototype .initialize .call (this);
443
-
444
- this .requestImmediateLoad () .catch (Function .prototype);
445
- },
446
- getExtendedEventHandling ()
447
- {
448
- return false;
449
- },
450
- canUserDefinedFields ()
451
- {
452
- return true;
453
- },
454
- addUserDefinedField (accessType, name, field)
455
- {
456
- Scripting_X3DScriptNode .prototype .addUserDefinedField .call (this, accessType, name, field);
457
-
458
- if (!this .isInitialized ())
459
- return;
460
-
461
- this .setLoadState ((X3DConstants_default()).NOT_STARTED_STATE);
462
- this .requestImmediateLoad () .catch (Function .prototype);
463
- },
464
- removeUserDefinedField (name)
465
- {
466
- this .getUserDefinedFields () .get (name) ?.removeInterest ("set_field__", this);
467
-
468
- Scripting_X3DScriptNode .prototype .removeUserDefinedField .call (this, name);
469
-
470
- if (!this .isInitialized ())
471
- return;
472
-
473
- this .setLoadState ((X3DConstants_default()).NOT_STARTED_STATE);
474
- this .requestImmediateLoad () .catch (Function .prototype);
475
- },
476
- getSourceText ()
477
- {
478
- return this ._url;
479
- },
480
- unloadData ()
481
- {
482
- // Call shutdown.
483
-
484
- const shutdown = this .context ?.get ("shutdown");
485
-
486
- if (typeof shutdown === "function")
487
- this .call__ (shutdown, "shutdown");
488
-
489
- // Disconnect shutdown.
490
-
491
- $(window) .off (`.Script${this .getId ()}`);
492
-
493
- // Disconnect prepareEvents.
494
-
495
- this .getBrowser () .prepareEvents () .removeInterest ("call__", this);
496
-
497
- // Disconnect eventsProcessed.
498
-
499
- this .removeInterest ("call__", this);
500
-
501
- // Disconnect fields.
502
-
503
- for (const field of this .getUserDefinedFields ())
504
- field .removeInterest ("set_field__", this);
505
- },
506
- async loadData ()
507
- {
508
- // See: 29.2.2 Script execution
509
- await this .unloadData ();
510
-
511
- new (FileLoader_default()) (this) .loadDocument (this ._url, data =>
512
- {
513
- if (data === null)
514
- {
515
- // No URL could be loaded.
516
- this .setLoadState ((X3DConstants_default()).FAILED_STATE);
517
- }
518
- else
519
- {
520
- this .initialize__ ($.decodeText (data));
521
- this .setLoadState ((X3DConstants_default()).COMPLETE_STATE);
522
- }
523
- });
524
- },
525
- createGlobalObject ()
526
- {
527
- const getScriptNode = () => this;
528
-
529
- const handler =
530
- {
531
- get (target, key)
532
- {
533
- switch (key)
534
- {
535
- case "getScriptNode":
536
- return getScriptNode;
537
- case "currentScene":
538
- return getScriptNode () .getExecutionContext ();
539
- default:
540
- return target [key];
541
- }
542
- },
543
- };
544
-
545
- const browser = new Proxy (this .getBrowser (), handler);
546
-
547
- function SFNode (vrmlSyntax)
548
- {
549
- const nodes = browser .createVrmlFromString (vrmlSyntax);
550
-
551
- if (nodes .length && nodes [0])
552
- return nodes [0];
553
-
554
- throw new Error ("SFNode.new: invalid argument.");
555
- }
556
-
557
- SFNode .prototype = (Fields_default()).SFNode .prototype;
558
-
559
- const globalObject =
560
- {
561
- NULL: { value: null },
562
- FALSE: { value: false },
563
- TRUE: { value: true },
564
- print: { value: browser .println .bind (browser) },
565
- trace: { value: browser .println .bind (browser) },
566
-
567
- Browser: { value: browser },
568
-
569
- X3DConstants: { value: (X3DConstants_default()) },
570
- X3DBrowser: { value: (X3DBrowser_default()) },
571
- X3DExecutionContext: { value: (X3DExecutionContext_default()) },
572
- X3DScene: { value: (X3DScene_default()) },
573
- ComponentInfo: { value: (ComponentInfo_default()) },
574
- ComponentInfoArray: { value: (ComponentInfoArray_default()) },
575
- ProfileInfo: { value: (ProfileInfo_default()) },
576
- ProfileInfoArray: { value: (ProfileInfoArray_default()) },
577
- ConcreteNodesArray: { value: (ConcreteNodesArray_default()) }, // non-standard
578
- AbstractNodesArray: { value: (AbstractNodesArray_default()) }, // non-standard
579
- UnitInfo: { value: (UnitInfo_default()) },
580
- UnitInfoArray: { value: (UnitInfoArray_default()) },
581
- NamedNodesArray: { value: (NamedNodesArray_default()) }, // non-standard
582
- ImportedNodesArray: { value: (ImportedNodesArray_default()) }, // non-standard
583
- X3DImportedNode: { value: (X3DImportedNode_default()) }, // non-standard
584
- ExportedNodesArray: { value: (ExportedNodesArray_default()) }, // non-standard
585
- X3DExportedNode: { value: (X3DExportedNode_default()) }, // non-standard
586
- ExternProtoDeclarationArray: { value: (ExternProtoDeclarationArray_default()) },
587
- ProtoDeclarationArray: { value: (ProtoDeclarationArray_default()) },
588
- X3DExternProtoDeclaration: { value: (X3DExternProtoDeclaration_default()) },
589
- X3DProtoDeclaration: { value: (X3DProtoDeclaration_default()) },
590
- X3DProtoDeclarationNode: { value: (X3DProtoDeclarationNode_default()) }, // non-standard
591
- RouteArray: { value: (RouteArray_default()) },
592
- X3DRoute: { value: (X3DRoute_default()) },
593
-
594
- X3DBaseNode: { value: (X3DBaseNode_default()) }, // non-standard
595
-
596
- X3DFieldDefinition: { value: (X3DFieldDefinition_default()) },
597
- FieldDefinitionArray: { value: (FieldDefinitionArray_default()) },
598
-
599
- X3DField: { value: (X3DField_default()) },
600
- X3DArrayField: { value: (X3DArrayField_default()) },
601
-
602
- SFColor: { value: (Fields_default()).SFColor },
603
- SFColorRGBA: { value: (Fields_default()).SFColorRGBA },
604
- SFImage: { value: (Fields_default()).SFImage },
605
- SFMatrix3d: { value: (Fields_default()).SFMatrix3d },
606
- SFMatrix3f: { value: (Fields_default()).SFMatrix3f },
607
- SFMatrix4d: { value: (Fields_default()).SFMatrix4d },
608
- SFMatrix4f: { value: (Fields_default()).SFMatrix4f },
609
- SFNode: { value: SFNode },
610
- SFRotation: { value: (Fields_default()).SFRotation },
611
- SFString: { value: (Fields_default()).SFString },
612
- SFVec2d: { value: (Fields_default()).SFVec2d },
613
- SFVec2f: { value: (Fields_default()).SFVec2f },
614
- SFVec3d: { value: (Fields_default()).SFVec3d },
615
- SFVec3f: { value: (Fields_default()).SFVec3f },
616
- SFVec4d: { value: (Fields_default()).SFVec4d },
617
- SFVec4f: { value: (Fields_default()).SFVec4f },
618
- VrmlMatrix: { value: (Fields_default()).VrmlMatrix },
619
-
620
- MFBool: { value: (Fields_default()).MFBool },
621
- MFColor: { value: (Fields_default()).MFColor },
622
- MFColorRGBA: { value: (Fields_default()).MFColorRGBA },
623
- MFDouble: { value: (Fields_default()).MFDouble },
624
- MFFloat: { value: (Fields_default()).MFFloat },
625
- MFImage: { value: (Fields_default()).MFImage },
626
- MFInt32: { value: (Fields_default()).MFInt32 },
627
- MFMatrix3d: { value: (Fields_default()).MFMatrix3d },
628
- MFMatrix3f: { value: (Fields_default()).MFMatrix3f },
629
- MFMatrix4d: { value: (Fields_default()).MFMatrix4d },
630
- MFMatrix4f: { value: (Fields_default()).MFMatrix4f },
631
- MFNode: { value: (Fields_default()).MFNode },
632
- MFRotation: { value: (Fields_default()).MFRotation },
633
- MFString: { value: (Fields_default()).MFString },
634
- MFTime: { value: (Fields_default()).MFTime },
635
- MFVec2d: { value: (Fields_default()).MFVec2d },
636
- MFVec2f: { value: (Fields_default()).MFVec2f },
637
- MFVec3d: { value: (Fields_default()).MFVec3d },
638
- MFVec3f: { value: (Fields_default()).MFVec3f },
639
- MFVec4d: { value: (Fields_default()).MFVec4d },
640
- MFVec4f: { value: (Fields_default()).MFVec4f },
641
- };
642
-
643
- for (const field of this .getUserDefinedFields ())
644
- {
645
- if (field .getAccessType () === (X3DConstants_default()).inputOnly)
646
- continue;
647
-
648
- const names = [field .getName ()];
649
-
650
- if (field .getAccessType () === (X3DConstants_default()).inputOutput)
651
- names .push (field .getName () + "_changed");
652
-
653
- for (const name of names)
654
- {
655
- if (name in globalObject)
656
- continue;
657
-
658
- globalObject [name] =
659
- {
660
- get: field .valueOf .bind (field),
661
- set: field .setValue .bind (field),
662
- };
663
- }
664
- }
665
-
666
- return Object .create (Object .prototype, globalObject);
667
- },
668
- createContext (sourceText)
669
- {
670
- const callbacks = ["initialize", "prepareEvents", "eventsProcessed", "shutdown"];
671
-
672
- for (const field of this .getUserDefinedFields ())
673
- {
674
- switch (field .getAccessType ())
675
- {
676
- case (X3DConstants_default()).inputOnly:
677
- callbacks .push (field .getName ());
678
- break;
679
- case (X3DConstants_default()).inputOutput:
680
- callbacks .push ("set_" + field .getName ());
681
- break;
682
- }
683
- }
684
-
685
- sourceText += ";\n[" + callbacks .map (c => `typeof ${c} !== "undefined" ? ${c} : undefined`) .join (",") + "];";
686
-
687
- const
688
- result = this .evaluate (sourceText),
689
- context = new Map ();
690
-
691
- for (let i = 0; i < callbacks .length; ++ i)
692
- context .set (callbacks [i], result [i]);
693
-
694
- return context;
695
- },
696
- evaluate (sourceText)
697
- {
698
- if (!this .globalObject)
699
- this .globalObject = this .createGlobalObject ();
700
-
701
- return Scripting_evaluate (SFNodeCache_default().get (this), this .globalObject, sourceText);
702
- },
703
- async initialize__ (sourceText)
704
- {
705
- const browser = this .getBrowser ();
706
-
707
- // Create context.
708
-
709
- this .globalObject = this .createGlobalObject ();
710
- this .context = this .createContext (sourceText);
711
-
712
- // Connect shutdown.
713
-
714
- const shutdown = this .context .get ("shutdown");
715
-
716
- if (typeof shutdown === "function")
717
- $(window) .on (`unload.Script${this .getId ()}`, () => this .call__ (shutdown, "shutdown"));
718
-
719
- // Connect prepareEvents.
720
-
721
- const prepareEvents = this .context .get ("prepareEvents");
722
-
723
- if (typeof prepareEvents === "function")
724
- browser .prepareEvents () .addInterest ("call__", this, prepareEvents, "prepareEvents");
725
-
726
- // Connect eventsProcessed.
727
-
728
- const eventsProcessed = this .context .get ("eventsProcessed");
729
-
730
- if (typeof eventsProcessed === "function")
731
- this .addInterest ("call__", this, eventsProcessed, "eventsProcessed");
732
-
733
- // Connect fields.
734
-
735
- for (const field of this .getUserDefinedFields ())
736
- {
737
- switch (field .getAccessType ())
738
- {
739
- case (X3DConstants_default()).inputOnly:
740
- {
741
- const callback = this .context .get (field .getName ());
742
-
743
- if (typeof callback === "function")
744
- field .addInterest ("set_field__", this, callback, [ ]);
745
-
746
- break;
747
- }
748
- case (X3DConstants_default()).inputOutput:
749
- {
750
- const callback = this .context .get ("set_" + field .getName ());
751
-
752
- if (typeof callback === "function")
753
- field .addInterest ("set_field__", this, callback, [ ]);
754
-
755
- break;
756
- }
757
- }
758
- }
759
-
760
- // Call initialize function.
761
-
762
- const initialize = this .context .get ("initialize");
763
-
764
- if (typeof initialize === "function")
765
- await this .call__ (initialize, "initialize");
766
- },
767
- async call__ (callback, name)
768
- {
769
- try
770
- {
771
- await callback .call (SFNodeCache_default().get (this), this .getBrowser () .getCurrentTime ());
772
- }
773
- catch (error)
774
- {
775
- this .setError (`in function '${name}'`, error);
776
- }
777
- },
778
- async set_field__ (callback, cache, field)
779
- {
780
- const copy = cache .pop () ?? field .create ();
781
-
782
- try
783
- {
784
- copy .assign (field);
785
-
786
- await callback .call (SFNodeCache_default().get (this), copy .valueOf (), this .getBrowser () .getCurrentTime ());
787
- }
788
- catch (error)
789
- {
790
- this .setError (`in function '${field .getName ()}'`, error);
791
- }
792
- finally
793
- {
794
- cache .push (copy);
795
- }
796
- },
797
- setError (reason, error)
798
- {
799
- const worldURL = this .getExecutionContext () .getWorldURL () .startsWith ("data:")
800
- ? "data:"
801
- : this .getExecutionContext () .getWorldURL ();
802
-
803
- console .error (`JavaScript Error in Script '${this .getName ()}', ${reason}\nworld url is '${worldURL}':`);
804
- console .error (error);
805
- },
806
- dispose ()
807
- {
808
- this .unloadData ();
809
-
810
- Scripting_X3DScriptNode .prototype .dispose .call (this);
811
- },
812
- });
813
-
814
- Object .defineProperties (Script,
815
- {
816
- typeName:
817
- {
818
- value: "Script",
819
- enumerable: true,
820
- },
821
- componentInfo:
822
- {
823
- value: Object .freeze ({ name: "Scripting", level: 1 }),
824
- enumerable: true,
825
- },
826
- containerField:
827
- {
828
- value: "children",
829
- enumerable: true,
830
- },
831
- specificationRange:
832
- {
833
- value: Object .freeze ({ from: "2.0", to: "Infinity" }),
834
- enumerable: true,
835
- },
836
- fieldDefinitions:
837
- {
838
- value: new (FieldDefinitionArray_default()) ([
839
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
840
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "description", new (Fields_default()).SFString ()),
841
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "load", new (Fields_default()).SFBool (true)),
842
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "url", new (Fields_default()).MFString ()),
843
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "autoRefresh", new (Fields_default()).SFTime ()),
844
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "autoRefreshTimeLimit", new (Fields_default()).SFTime (3600)),
845
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "directOutput", new (Fields_default()).SFBool ()),
846
- new (X3DFieldDefinition_default()) ((X3DConstants_default()).initializeOnly, "mustEvaluate", new (Fields_default()).SFBool ()),
847
- ]),
848
- enumerable: true,
849
- },
850
- });
851
-
852
- const Script_default_ = Script;
853
- ;
854
-
855
- Namespace_default().add ("Script", "x_ite/Components/Scripting/Script", Script_default_);
856
- /* harmony default export */ const Scripting_Script = (Script_default_);
857
- ;// CONCATENATED MODULE: ./src/assets/components/Scripting.js
858
- /*******************************************************************************
859
- *
860
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
861
- *
862
- * Copyright create3000, Scheffelstraße 31a, Leipzig, Germany 2011 - 2022.
863
- *
864
- * All rights reserved. Holger Seelig <holger.seelig@yahoo.de>.
865
- *
866
- * The copyright notice above does not evidence any actual of intended
867
- * publication of such source code, and is an unpublished work by create3000.
868
- * This material contains CONFIDENTIAL INFORMATION that is the property of
869
- * create3000.
870
- *
871
- * No permission is granted to copy, distribute, or create derivative works from
872
- * the contents of this software, in whole or in part, without the prior written
873
- * permission of create3000.
874
- *
875
- * NON-MILITARY USE ONLY
876
- *
877
- * All create3000 software are effectively free software with a non-military use
878
- * restriction. It is free. Well commented source is provided. You may reuse the
879
- * source in any way you please with the exception anything that uses it must be
880
- * marked to indicate is contains 'non-military use only' components.
881
- *
882
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
883
- *
884
- * Copyright 2011 - 2022, Holger Seelig <holger.seelig@yahoo.de>.
885
- *
886
- * This file is part of the X_ITE Project.
887
- *
888
- * X_ITE is free software: you can redistribute it and/or modify it under the
889
- * terms of the GNU General Public License version 3 only, as published by the
890
- * Free Software Foundation.
891
- *
892
- * X_ITE is distributed in the hope that it will be useful, but WITHOUT ANY
893
- * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
894
- * A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
895
- * details (a copy is included in the LICENSE file that accompanied this code).
896
- *
897
- * You should have received a copy of the GNU General Public License version 3
898
- * along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
899
- * copy of the GPLv3 License.
900
- *
901
- * For Silvio, Joy and Adi.
902
- *
903
- ******************************************************************************/
904
-
905
-
906
-
907
-
908
-
909
- Components_default().add ({
910
- name: "Scripting",
911
- concreteNodes:
912
- [
913
- Scripting_Script,
914
- ],
915
- abstractNodes:
916
- [
917
- Scripting_X3DScriptNode,
918
- ],
919
- });
920
-
921
- const Scripting_default_ = undefined;
922
- ;
923
-
924
- Namespace_default().add ("Scripting", "assets/components/Scripting", Scripting_default_);
925
- /* harmony default export */ const Scripting = ((/* unused pure expression or super */ null && (Scripting_default_)));
926
- /******/ })()
927
- ;