x_ite 8.9.4 → 8.9.6
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 +19 -19
- package/dist/assets/components/HAnim.min.js +1 -1
- package/dist/assets/components/KeyDeviceSensor.js +8 -8
- package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
- package/dist/assets/components/Layout.js +27 -27
- package/dist/assets/components/Layout.min.js +1 -1
- package/dist/assets/components/NURBS.js +24 -24
- package/dist/assets/components/NURBS.min.js +1 -1
- package/dist/assets/components/ParticleSystems.js +23 -23
- package/dist/assets/components/ParticleSystems.min.js +1 -1
- package/dist/assets/components/Picking.js +18 -18
- package/dist/assets/components/Picking.min.js +1 -1
- package/dist/assets/components/RigidBodyPhysics.js +17 -17
- package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
- package/dist/assets/components/Scripting.js +37 -37
- 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 +18 -18
- package/dist/assets/components/VolumeRendering.min.js +1 -1
- package/dist/assets/components/X_ITE.js +9 -9
- package/dist/assets/components/X_ITE.min.js +1 -1
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.js +80 -71
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.zip +0 -0
- package/docs/_config.yml +1 -1
- package/package.json +1 -1
- package/src/x_ite/Base/X3DChildObject.js +5 -3
- package/src/x_ite/Browser/Navigation/X3DViewer.js +5 -5
- package/src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js +5 -5
- package/src/x_ite/Browser/VERSION.js +1 -1
- package/src/x_ite/Components/Core/X3DPrototypeInstance.js +6 -0
- package/src/x_ite.html +12 -10
- package/x_ite.min.html +12 -10
package/dist/x_ite.zip
CHANGED
|
Binary file
|
package/docs/_config.yml
CHANGED
package/package.json
CHANGED
|
@@ -100,14 +100,14 @@ if (DEVELOPMENT)
|
|
|
100
100
|
this .setModificationTime (Date .now ());
|
|
101
101
|
|
|
102
102
|
for (const parent of this [_parents] .values ())
|
|
103
|
-
parent .deref ()
|
|
103
|
+
parent .deref () ?.addEvent (this);
|
|
104
104
|
},
|
|
105
105
|
addEventObject (field, event)
|
|
106
106
|
{
|
|
107
107
|
this .setModificationTime (Date .now ());
|
|
108
108
|
|
|
109
109
|
for (const parent of this [_parents] .values ())
|
|
110
|
-
parent .deref ()
|
|
110
|
+
parent .deref () ?.addEventObject (this, event);
|
|
111
111
|
},
|
|
112
112
|
processEvent ()
|
|
113
113
|
{
|
|
@@ -119,7 +119,7 @@ if (DEVELOPMENT)
|
|
|
119
119
|
let cloneCount = 0;
|
|
120
120
|
|
|
121
121
|
for (const weakRef of this [_parents] .values ())
|
|
122
|
-
cloneCount += weakRef .deref ()
|
|
122
|
+
cloneCount += weakRef .deref () ?.collectCloneCount ();
|
|
123
123
|
|
|
124
124
|
return cloneCount;
|
|
125
125
|
},
|
|
@@ -154,6 +154,8 @@ if (DEVELOPMENT)
|
|
|
154
154
|
for (const weakRef of this [_parents] .values ())
|
|
155
155
|
parents .add (weakRef .deref ())
|
|
156
156
|
|
|
157
|
+
parents .delete (undefined);
|
|
158
|
+
|
|
157
159
|
return parents;
|
|
158
160
|
},
|
|
159
161
|
parentsChanged () { },
|
|
@@ -98,11 +98,11 @@ Object .assign (Object .setPrototypeOf (X3DViewer .prototype, X3DBaseNode .proto
|
|
|
98
98
|
getPointer (event)
|
|
99
99
|
{
|
|
100
100
|
const
|
|
101
|
-
browser
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
x
|
|
105
|
-
y
|
|
101
|
+
browser = this .getBrowser (),
|
|
102
|
+
rect = browser .getSurface () [0] .getBoundingClientRect (),
|
|
103
|
+
viewport = browser .getViewport (),
|
|
104
|
+
x = (event .pageX - (rect .left + $(document) .scrollLeft ())) / rect .width * viewport [2],
|
|
105
|
+
y = (rect .height - (event .pageY - (rect .top + $(document) .scrollTop ()))) / rect .height * viewport [3];
|
|
106
106
|
|
|
107
107
|
return [x, y];
|
|
108
108
|
},
|
|
@@ -79,11 +79,11 @@ Object .assign (Object .setPrototypeOf (PointingDevice .prototype, X3DBaseNode .
|
|
|
79
79
|
getPointer (event)
|
|
80
80
|
{
|
|
81
81
|
const
|
|
82
|
-
browser
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
x
|
|
86
|
-
y
|
|
82
|
+
browser = this .getBrowser (),
|
|
83
|
+
rect = browser .getSurface () [0] .getBoundingClientRect (),
|
|
84
|
+
viewport = browser .getViewport (),
|
|
85
|
+
x = (event .pageX - (rect .left + $(document) .scrollLeft ())) / rect .width * viewport [2],
|
|
86
|
+
y = (rect .height - (event .pageY - (rect .top + $(document) .scrollTop ()))) / rect .height * viewport [3];
|
|
87
87
|
|
|
88
88
|
return [x, y];
|
|
89
89
|
},
|
|
@@ -235,7 +235,13 @@ Object .assign (Object .setPrototypeOf (X3DPrototypeInstance .prototype, X3DNode
|
|
|
235
235
|
|
|
236
236
|
if (protoNode .isExternProto && protoNode .checkLoadState () !== X3DConstants .COMPLETE_STATE)
|
|
237
237
|
{
|
|
238
|
+
this [_body] = null;
|
|
239
|
+
|
|
240
|
+
if (this .isInitialized ())
|
|
241
|
+
X3DChildObject .prototype .addEvent .call (this);
|
|
242
|
+
|
|
238
243
|
protoNode ._updateInstances .addInterest ("construct", this);
|
|
244
|
+
protoNode .requestImmediateLoad () .catch (Function .prototype);
|
|
239
245
|
}
|
|
240
246
|
else
|
|
241
247
|
{
|
package/src/x_ite.html
CHANGED
|
@@ -402,16 +402,18 @@ main.color-management #browser {
|
|
|
402
402
|
<main>
|
|
403
403
|
<div>
|
|
404
404
|
<form action="javascript:alert('form submitted')">
|
|
405
|
-
<
|
|
406
|
-
<
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
405
|
+
<div style="transform: matrix(1, 0, 0, 1, 0, 0); transform-origin: 50% 50%;">
|
|
406
|
+
<x3d-canvas id="browser" splashScreen="true" contextMenu="true" cache="false" debug="true" preserveDrawingBuffer="false" oninitialized="$('#file') .addClass ('loaded')" x-baseURL="tests/" x-src="lines.x3d" update="auto">
|
|
407
|
+
<p class="fallback">
|
|
408
|
+
Sorry,<br/>
|
|
409
|
+
it wasn't me!<br/>
|
|
410
|
+
<br/>
|
|
411
|
+
Your browser may not support all features required by X_ITE! You can use Firefox, Chrome,
|
|
412
|
+
or Microsoft Edge, because this is currently the choice of the choice. We will continuously
|
|
413
|
+
keep you informed on technical developments and as soon as X_ITE is running in other browser too.
|
|
414
|
+
</p>
|
|
415
|
+
</x3d-canvas>
|
|
416
|
+
</div>
|
|
415
417
|
</form>
|
|
416
418
|
<div id="location-bar">
|
|
417
419
|
<input id="location-entry" value="https://www.web3d.org/x3d/content/examples/Basic/ChemicalMarkupLanguage/ButanedioicAcid.x3d"/>
|
package/x_ite.min.html
CHANGED
|
@@ -383,16 +383,18 @@ main.color-management #browser {
|
|
|
383
383
|
<main>
|
|
384
384
|
<div>
|
|
385
385
|
<form action="javascript:alert('form submitted')">
|
|
386
|
-
<
|
|
387
|
-
<
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
386
|
+
<div style="transform: matrix(1, 0, 0, 1, 0, 0); transform-origin: 50% 50%;">
|
|
387
|
+
<x3d-canvas id="browser" splashScreen="true" contextMenu="true" cache="false" debug="true" preserveDrawingBuffer="false" oninitialized="$('#file') .addClass ('loaded')" x-baseURL="src/tests/" x-src="lines.x3d" update="auto">
|
|
388
|
+
<p class="fallback">
|
|
389
|
+
Sorry,<br/>
|
|
390
|
+
it wasn't me!<br/>
|
|
391
|
+
<br/>
|
|
392
|
+
Your browser may not support all features required by X_ITE! You can use Firefox, Chrome,
|
|
393
|
+
or Microsoft Edge, because this is currently the choice of the choice. We will continuously
|
|
394
|
+
keep you informed on technical developments and as soon as X_ITE is running in other browser too.
|
|
395
|
+
</p>
|
|
396
|
+
</x3d-canvas>
|
|
397
|
+
</div>
|
|
396
398
|
</form>
|
|
397
399
|
<div id="location-bar">
|
|
398
400
|
<input id="location-entry" value="https://www.web3d.org/x3d/content/examples/Basic/ChemicalMarkupLanguage/ButanedioicAcid.x3d"/>
|