x_ite 8.6.18 → 8.6.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/components/Annotation.js +13 -13
- package/dist/assets/components/Annotation.min.js +1 -1
- package/dist/assets/components/CADGeometry.js +13 -13
- package/dist/assets/components/CADGeometry.min.js +1 -1
- package/dist/assets/components/CubeMapTexturing.js +25 -25
- package/dist/assets/components/CubeMapTexturing.min.js +1 -1
- package/dist/assets/components/DIS.js +13 -13
- package/dist/assets/components/DIS.min.js +1 -1
- package/dist/assets/components/EventUtilities.js +9 -9
- package/dist/assets/components/EventUtilities.min.js +1 -1
- package/dist/assets/components/Geometry2D.js +19 -19
- package/dist/assets/components/Geometry2D.min.js +1 -1
- package/dist/assets/components/Geospatial.js +33 -33
- package/dist/assets/components/Geospatial.min.js +1 -1
- package/dist/assets/components/HAnim.js +18 -18
- package/dist/assets/components/HAnim.min.js +1 -1
- package/dist/assets/components/KeyDeviceSensor.js +8 -8
- package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
- package/dist/assets/components/Layout.js +27 -27
- package/dist/assets/components/Layout.min.js +1 -1
- package/dist/assets/components/NURBS.js +24 -24
- package/dist/assets/components/NURBS.min.js +1 -1
- package/dist/assets/components/ParticleSystems.js +23 -25
- package/dist/assets/components/ParticleSystems.min.js +1 -1
- package/dist/assets/components/Picking.js +19 -21
- 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 +30 -32
- package/dist/assets/components/Scripting.min.js +1 -1
- package/dist/assets/components/Text.js +24 -24
- package/dist/assets/components/Text.min.js +1 -1
- package/dist/assets/components/TextureProjector.js +14 -14
- package/dist/assets/components/TextureProjector.min.js +1 -1
- package/dist/assets/components/Texturing3D.js +30 -30
- package/dist/assets/components/Texturing3D.min.js +1 -1
- package/dist/assets/components/VolumeRendering.js +19 -19
- package/dist/assets/components/VolumeRendering.min.js +1 -1
- package/dist/assets/components/X_ITE.js +9 -9
- package/dist/assets/components/X_ITE.min.js +1 -1
- package/dist/example.html +1 -1
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.js +172 -182
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.zip +0 -0
- package/docs/_config.yml +1 -1
- package/docs/_posts/getting-started.md +1 -1
- package/docs/_posts/setup-a-localhost-server.md +2 -2
- package/package.json +4 -4
- package/src/example.html +1 -1
- package/src/standard/Math/Algorithm.js +1 -1
- package/src/standard/Math/Algorithms/MergeSort.js +7 -5
- package/src/standard/Math/Algorithms/PartialSort.js +3 -1
- package/src/standard/Math/Algorithms/QuickSort.js +1 -3
- package/src/standard/Math/Geometry/Box2.js +1 -1
- package/src/standard/Math/Geometry/Box3.js +1 -1
- package/src/standard/Math/Numbers/Quaternion.js +4 -3
- package/src/standard/Math/Numbers/Rotation4.js +4 -3
- package/src/x_ite/Base/X3DBaseNode.js +1 -1
- package/src/x_ite/Base/X3DEventObject.js +3 -2
- package/src/x_ite/Base/X3DField.js +2 -2
- package/src/x_ite/Browser/Core/Context.js +1 -1
- package/src/x_ite/Browser/Navigation/ExamineViewer.js +1 -1
- package/src/x_ite/Browser/Networking/X3DNetworkingContext.js +10 -7
- package/src/x_ite/Browser/VERSION.js +1 -1
- package/src/x_ite/Browser/X3DBrowser.js +33 -44
- package/src/x_ite/Browser/X3DBrowserContext.js +3 -3
- package/src/x_ite/Components/Scripting/Script.js +2 -4
- package/src/x_ite/Components/Shaders/X3DProgrammableShaderObject.js +1 -1
- package/src/x_ite/Components/Sound/AudioClip.js +3 -3
- package/src/x_ite/Components/Sound/DynamicsCompressor.js +4 -4
- package/src/x_ite/Components/Texturing/MovieTexture.js +3 -3
- package/src/x_ite/Execution/Scene.js +1 -1
- package/src/x_ite/Fields/SFNode.js +5 -3
- package/src/x_ite/Fields/SFRotation.js +2 -4
- package/src/x_ite/Fields/SFVecPrototypeTemplate.js +3 -3
- package/src/x_ite/InputOutput/FileLoader.js +3 -4
- package/src/x_ite/InputOutput/Generator.js +1 -1
- package/src/x_ite/Parser/X3DParser.js +4 -4
- package/src/x_ite/Parser/XMLParser.js +13 -19
- package/docs/_tabs/imprint.md +0 -52
|
@@ -49,9 +49,7 @@ import X3DField from "../Base/X3DField.js";
|
|
|
49
49
|
import SFVec3 from "./SFVec3.js";
|
|
50
50
|
import SFMatrix3 from "./SFMatrix3.js";
|
|
51
51
|
import X3DConstants from "../Base/X3DConstants.js";
|
|
52
|
-
import Vector3 from "../../standard/Math/Numbers/Vector3.js";
|
|
53
52
|
import Rotation4 from "../../standard/Math/Numbers/Rotation4.js";
|
|
54
|
-
import Matrix3 from "../../standard/Math/Numbers/Matrix3.js";
|
|
55
53
|
|
|
56
54
|
const
|
|
57
55
|
SFVec3f = SFVec3 .SFVec3f,
|
|
@@ -126,7 +124,7 @@ SFRotation .prototype = Object .assign (Object .create (X3DField .prototype),
|
|
|
126
124
|
},
|
|
127
125
|
getAxis: function ()
|
|
128
126
|
{
|
|
129
|
-
return new SFVec3f (this .getValue () .getAxis (
|
|
127
|
+
return new SFVec3f (this .getValue () .getAxis ());
|
|
130
128
|
},
|
|
131
129
|
setMatrix: function (matrix)
|
|
132
130
|
{
|
|
@@ -135,7 +133,7 @@ SFRotation .prototype = Object .assign (Object .create (X3DField .prototype),
|
|
|
135
133
|
},
|
|
136
134
|
getMatrix: function ()
|
|
137
135
|
{
|
|
138
|
-
return new SFMatrix3f (this .getValue () .getMatrix (
|
|
136
|
+
return new SFMatrix3f (this .getValue () .getMatrix ());
|
|
139
137
|
},
|
|
140
138
|
inverse: function ()
|
|
141
139
|
{
|
|
@@ -181,9 +181,9 @@ function SFVecPrototypeTemplate (TypeName, Type, ValueType, double)
|
|
|
181
181
|
toJSONStreamValue: function (generator)
|
|
182
182
|
{
|
|
183
183
|
const
|
|
184
|
-
value
|
|
185
|
-
last
|
|
186
|
-
category
|
|
184
|
+
value = this .getValue (),
|
|
185
|
+
last = value .length - 1,
|
|
186
|
+
category = generator .Unit (this .getUnit ());
|
|
187
187
|
|
|
188
188
|
for (let i = 0; i < last; ++ i)
|
|
189
189
|
{
|
|
@@ -55,7 +55,7 @@ const
|
|
|
55
55
|
ECMAScript = /^\s*(?:vrmlscript|javascript|ecmascript)\:(.*)$/s,
|
|
56
56
|
dataURL = /^data:(.*?)(?:;charset=(.*?))?(?:;(base64))?,(.*)$/s;
|
|
57
57
|
|
|
58
|
-
const foreignExtensions = new RegExp ("\.(?:html|xhtml)$");
|
|
58
|
+
const foreignExtensions = new RegExp ("\.(?:html|htm|xhtml)$");
|
|
59
59
|
|
|
60
60
|
const foreign = {
|
|
61
61
|
"text/html": true,
|
|
@@ -167,7 +167,7 @@ FileLoader .prototype = Object .assign (Object .create (X3DObject .prototype),
|
|
|
167
167
|
|
|
168
168
|
// Wait for instances to be created.
|
|
169
169
|
|
|
170
|
-
setTimeout (
|
|
170
|
+
setTimeout (() =>
|
|
171
171
|
{
|
|
172
172
|
try
|
|
173
173
|
{
|
|
@@ -180,8 +180,7 @@ FileLoader .prototype = Object .assign (Object .create (X3DObject .prototype),
|
|
|
180
180
|
else
|
|
181
181
|
throw exception;
|
|
182
182
|
}
|
|
183
|
-
}
|
|
184
|
-
0);
|
|
183
|
+
});
|
|
185
184
|
|
|
186
185
|
if (DEBUG)
|
|
187
186
|
{
|
|
@@ -72,7 +72,7 @@ function Generator ({ style = "TIDY", precision = 7, doublePrecision = 15 })
|
|
|
72
72
|
this .units = true;
|
|
73
73
|
this .unitCategories = [ ];
|
|
74
74
|
|
|
75
|
-
this .names .set (null, new Set ());
|
|
75
|
+
this .names .set (null, Object .assign (new Set (), { index: 0 }));
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
Generator .prototype =
|
|
@@ -54,14 +54,14 @@ function X3DParser (scene)
|
|
|
54
54
|
|
|
55
55
|
X3DParser .prototype = {
|
|
56
56
|
constructor: X3DParser,
|
|
57
|
-
getScene: function ()
|
|
58
|
-
{
|
|
59
|
-
return this .scene;
|
|
60
|
-
},
|
|
61
57
|
getBrowser: function ()
|
|
62
58
|
{
|
|
63
59
|
return this .scene .getBrowser ();
|
|
64
60
|
},
|
|
61
|
+
getScene: function ()
|
|
62
|
+
{
|
|
63
|
+
return this .scene;
|
|
64
|
+
},
|
|
65
65
|
getExecutionContext: function ()
|
|
66
66
|
{
|
|
67
67
|
return this .executionContexts .at (-1);
|
|
@@ -146,18 +146,16 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
146
146
|
{
|
|
147
147
|
if (this .success)
|
|
148
148
|
{
|
|
149
|
-
this .loadComponents () .then (
|
|
149
|
+
this .loadComponents () .then (() =>
|
|
150
150
|
{
|
|
151
151
|
this .childrenElements (xmlElement);
|
|
152
152
|
this .success (this .getScene ());
|
|
153
|
-
}
|
|
154
|
-
.
|
|
155
|
-
.catch (function (error)
|
|
153
|
+
})
|
|
154
|
+
.catch ((error) =>
|
|
156
155
|
{
|
|
157
156
|
if (this .error)
|
|
158
157
|
this .error (error);
|
|
159
|
-
}
|
|
160
|
-
.bind (this));
|
|
158
|
+
});
|
|
161
159
|
}
|
|
162
160
|
else
|
|
163
161
|
{
|
|
@@ -177,18 +175,16 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
177
175
|
{
|
|
178
176
|
if (this .success)
|
|
179
177
|
{
|
|
180
|
-
this .loadComponents () .then (
|
|
178
|
+
this .loadComponents () .then (() =>
|
|
181
179
|
{
|
|
182
180
|
this .sceneElement (xmlElement);
|
|
183
181
|
this .success (this .getScene ());
|
|
184
|
-
}
|
|
185
|
-
.
|
|
186
|
-
.catch (function (error)
|
|
182
|
+
})
|
|
183
|
+
.catch ((error) =>
|
|
187
184
|
{
|
|
188
185
|
if (this .error)
|
|
189
186
|
this .error (error);
|
|
190
|
-
}
|
|
191
|
-
.bind (this));
|
|
187
|
+
});
|
|
192
188
|
}
|
|
193
189
|
else
|
|
194
190
|
{
|
|
@@ -201,18 +197,16 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
201
197
|
{
|
|
202
198
|
if (this .success)
|
|
203
199
|
{
|
|
204
|
-
this .loadComponents () .then (
|
|
200
|
+
this .loadComponents () .then (() =>
|
|
205
201
|
{
|
|
206
202
|
this .childrenElements (xmlElement);
|
|
207
203
|
this .success (this .getScene ());
|
|
208
|
-
}
|
|
209
|
-
.
|
|
210
|
-
.catch (function (error)
|
|
204
|
+
})
|
|
205
|
+
.catch ((error) =>
|
|
211
206
|
{
|
|
212
207
|
if (this .error)
|
|
213
208
|
this .error (error);
|
|
214
|
-
}
|
|
215
|
-
.bind (this));
|
|
209
|
+
});
|
|
216
210
|
}
|
|
217
211
|
else
|
|
218
212
|
{
|
|
@@ -835,7 +829,7 @@ XMLParser .prototype = Object .assign (Object .create (X3DParser .prototype),
|
|
|
835
829
|
{
|
|
836
830
|
// Add elements and cdata.
|
|
837
831
|
if (childNode .nodeType === 1 || childNode .nodeType === 4)
|
|
838
|
-
|
|
832
|
+
element .appendChild (childNode);
|
|
839
833
|
}
|
|
840
834
|
},
|
|
841
835
|
routeElement: function (xmlElement)
|
package/docs/_tabs/imprint.md
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
# the default layout is 'page'
|
|
3
|
-
title: Imprint
|
|
4
|
-
icon: fas fa-info-circle
|
|
5
|
-
order: 7
|
|
6
|
-
---
|
|
7
|
-
## Contact
|
|
8
|
-
|
|
9
|
-
**Holger Seelig**<br/>
|
|
10
|
-
Scheffelstraße 31a<br/>
|
|
11
|
-
04277 Leipzig<br/>
|
|
12
|
-
Germany
|
|
13
|
-
|
|
14
|
-
**Phone**<br/>
|
|
15
|
-
[+49 176 42 04 79 37](tel:+4917642047937)
|
|
16
|
-
|
|
17
|
-
**E-Mail**<br/>
|
|
18
|
-
<holger.seelig@gmail.com>
|
|
19
|
-
|
|
20
|
-
## Copyright
|
|
21
|
-
|
|
22
|
-
X_ITE and all its publication like this website are free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 3 only, as published by the Free Software Foundation.
|
|
23
|
-
|
|
24
|
-
X_ITE is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more details (a copy is included in the LICENSE file that accompanied this code).
|
|
25
|
-
|
|
26
|
-
You should have received a copy of the GNU General Public License version 3 along with X_ITE. If not, see <http://www.gnu.org/licenses/gpl.html> for a copy of the GPLv3 License.
|
|
27
|
-
|
|
28
|
-
## Non-military use only
|
|
29
|
-
|
|
30
|
-
All create3000 software are effectively free software with a non-military use restriction. It is free. Well commented source is provided. You may reuse the source in any way you please with the exception anything that uses it must be marked to indicate is contains »non-military use only« components.
|
|
31
|
-
|
|
32
|
-
## Content
|
|
33
|
-
|
|
34
|
-
The author reserves the right not to be responsible for the topicality, correctness, completeness or quality of the information provided. Liability claims regarding damage caused by the use of any information provided, including any kind of information which is incomplete or incorrect, will therefore be rejected.
|
|
35
|
-
|
|
36
|
-
All offers are not-binding and without obligation. Parts of the pages or the complete publication including all offers and information might be extended, changed or partly or completely deleted by the author without separate announcement.
|
|
37
|
-
|
|
38
|
-
## Referrals and links
|
|
39
|
-
|
|
40
|
-
The author is not responsible for any contents linked or referred to from his pages — unless he has full knowledge of illegal contents and would be able to prevent the visitors of his site from viewing those pages. If any damage occurs by the use of information presented there, only the author of the respective pages might be liable, not the one who has linked to these pages. Furthermore the author is not liable for any postings or messages published by users of discussion boards, guestbooks or mailinglists provided on his page.
|
|
41
|
-
|
|
42
|
-
## Privacy policy
|
|
43
|
-
|
|
44
|
-
If the opportunity for the input of personal or business data (email addresses, name, addresses) is given, the input of these data takes place voluntarily. The use and payment of all offered services are permitted — if and so far technically possible and reasonable - without specification of any personal data or under specification of anonymized data or an alias. The use of published postal addresses, telephone or fax numbers and email addresses for marketing purposes is prohibited, offenders sending unwanted spam messages will be punished.
|
|
45
|
-
|
|
46
|
-
## Legal validity of this disclaimer
|
|
47
|
-
|
|
48
|
-
This disclaimer is to be regarded as part of the internet publication which you were referred from. If sections or individual terms of this statement are not legal or correct, the content or validity of the other parts remain uninfluenced by this fact.
|
|
49
|
-
|
|
50
|
-
## Responsibility
|
|
51
|
-
|
|
52
|
-
(see above)
|