x_ite 8.9.4 → 8.9.5

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 (52) hide show
  1. package/dist/assets/components/Annotation.js +13 -13
  2. package/dist/assets/components/Annotation.min.js +1 -1
  3. package/dist/assets/components/CADGeometry.js +13 -13
  4. package/dist/assets/components/CADGeometry.min.js +1 -1
  5. package/dist/assets/components/CubeMapTexturing.js +25 -25
  6. package/dist/assets/components/CubeMapTexturing.min.js +1 -1
  7. package/dist/assets/components/DIS.js +13 -13
  8. package/dist/assets/components/DIS.min.js +1 -1
  9. package/dist/assets/components/EventUtilities.js +9 -9
  10. package/dist/assets/components/EventUtilities.min.js +1 -1
  11. package/dist/assets/components/Geometry2D.js +19 -19
  12. package/dist/assets/components/Geometry2D.min.js +1 -1
  13. package/dist/assets/components/Geospatial.js +33 -33
  14. package/dist/assets/components/Geospatial.min.js +1 -1
  15. package/dist/assets/components/HAnim.js +19 -19
  16. package/dist/assets/components/HAnim.min.js +1 -1
  17. package/dist/assets/components/KeyDeviceSensor.js +8 -8
  18. package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
  19. package/dist/assets/components/Layout.js +27 -27
  20. package/dist/assets/components/Layout.min.js +1 -1
  21. package/dist/assets/components/NURBS.js +24 -24
  22. package/dist/assets/components/NURBS.min.js +1 -1
  23. package/dist/assets/components/ParticleSystems.js +23 -23
  24. package/dist/assets/components/ParticleSystems.min.js +1 -1
  25. package/dist/assets/components/Picking.js +18 -18
  26. package/dist/assets/components/Picking.min.js +1 -1
  27. package/dist/assets/components/RigidBodyPhysics.js +17 -17
  28. package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
  29. package/dist/assets/components/Scripting.js +37 -37
  30. package/dist/assets/components/Scripting.min.js +1 -1
  31. package/dist/assets/components/Text.js +24 -24
  32. package/dist/assets/components/Text.min.js +1 -1
  33. package/dist/assets/components/TextureProjector.js +14 -14
  34. package/dist/assets/components/TextureProjector.min.js +1 -1
  35. package/dist/assets/components/Texturing3D.js +30 -30
  36. package/dist/assets/components/Texturing3D.min.js +1 -1
  37. package/dist/assets/components/VolumeRendering.js +18 -18
  38. package/dist/assets/components/VolumeRendering.min.js +1 -1
  39. package/dist/assets/components/X_ITE.js +9 -9
  40. package/dist/assets/components/X_ITE.min.js +1 -1
  41. package/dist/x_ite.css +1 -1
  42. package/dist/x_ite.js +76 -68
  43. package/dist/x_ite.min.js +1 -1
  44. package/dist/x_ite.zip +0 -0
  45. package/docs/_config.yml +1 -1
  46. package/package.json +1 -1
  47. package/src/x_ite/Browser/Navigation/X3DViewer.js +5 -5
  48. package/src/x_ite/Browser/PointingDeviceSensor/PointingDevice.js +5 -5
  49. package/src/x_ite/Browser/VERSION.js +1 -1
  50. package/src/x_ite/Components/Core/X3DPrototypeInstance.js +8 -0
  51. package/src/x_ite.html +12 -10
  52. package/x_ite.min.html +12 -10
package/dist/x_ite.zip CHANGED
Binary file
package/docs/_config.yml CHANGED
@@ -20,7 +20,7 @@ timezone:
20
20
  # ↓ --------------------------
21
21
 
22
22
  title: X_ITE X3D Browser # the main title
23
- version: 8.9.4 # x_ite latest version
23
+ version: 8.9.5 # x_ite latest version
24
24
  size: 286 # size in kb
25
25
  x3d_latest_version: 4.0 # x3d latest version
26
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x_ite",
3
- "version": "8.9.4",
3
+ "version": "8.9.5",
4
4
  "description": "X_ITE X3D Browser, view and manipulate X3D and VRML scenes in HTML.",
5
5
  "homepage": "https://create3000.github.io/x_ite/",
6
6
  "author": "Holger Seelig <holger.seelig@gmail.com>",
@@ -98,11 +98,11 @@ Object .assign (Object .setPrototypeOf (X3DViewer .prototype, X3DBaseNode .proto
98
98
  getPointer (event)
99
99
  {
100
100
  const
101
- browser = this .getBrowser (),
102
- contentScale = browser .getRenderingProperty ("ContentScale"),
103
- offset = browser .getSurface () .offset (),
104
- x = (event .pageX - offset .left) * contentScale,
105
- y = browser .getViewport () [3] - (event .pageY - offset .top) * contentScale;
101
+ browser = this .getBrowser (),
102
+ rect = browser .getSurface () [0] .getBoundingClientRect (),
103
+ viewport = browser .getViewport (),
104
+ x = (event .pageX - rect .left) / rect .width * viewport [2],
105
+ y = (rect .height - (event .pageY - rect .top)) / 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 = this .getBrowser (),
83
- contentScale = browser .getRenderingProperty ("ContentScale"),
84
- offset = browser .getSurface () .offset (),
85
- x = (event .pageX - offset .left) * contentScale,
86
- y = browser .getViewport () [3] - (event .pageY - offset .top) * contentScale;
82
+ browser = this .getBrowser (),
83
+ rect = browser .getSurface () [0] .getBoundingClientRect (),
84
+ viewport = browser .getViewport (),
85
+ x = (event .pageX - rect .left) / rect .width * viewport [2],
86
+ y = (rect .height - (event .pageY - rect .top)) / rect .height * viewport [3];
87
87
 
88
88
  return [x, y];
89
89
  },
@@ -45,4 +45,4 @@
45
45
  *
46
46
  ******************************************************************************/
47
47
 
48
- export default "8.9.4";
48
+ export default "8.9.5";
@@ -235,7 +235,15 @@ 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);
245
+
246
+ return;
239
247
  }
240
248
  else
241
249
  {
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
- <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">
406
- <p class="fallback">
407
- Sorry,<br/>
408
- it wasn't me!<br/>
409
- <br/>
410
- Your browser may not support all features required by X_ITE! You can use Firefox, Chrome,
411
- or Microsoft Edge, because this is currently the choice of the choice. We will continuously
412
- keep you informed on technical developments and as soon as X_ITE is running in other browser too.
413
- </p>
414
- </x3d-canvas>
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
- <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">
387
- <p class="fallback">
388
- Sorry,<br/>
389
- it wasn't me!<br/>
390
- <br/>
391
- Your browser may not support all features required by X_ITE! You can use Firefox, Chrome,
392
- or Microsoft Edge, because this is currently the choice of the choice. We will continuously
393
- keep you informed on technical developments and as soon as X_ITE is running in other browser too.
394
- </p>
395
- </x3d-canvas>
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"/>