x_ite 16.0.4 → 16.0.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 (57) hide show
  1. package/README.md +6 -6
  2. package/dist/assets/components/AnnotationComponent.js +1 -1
  3. package/dist/assets/components/AnnotationComponent.min.js +1 -1
  4. package/dist/assets/components/CADGeometryComponent.js +1 -1
  5. package/dist/assets/components/CADGeometryComponent.min.js +1 -1
  6. package/dist/assets/components/CubeMapTexturingComponent.js +1 -1
  7. package/dist/assets/components/CubeMapTexturingComponent.min.js +1 -1
  8. package/dist/assets/components/DISComponent.js +1 -1
  9. package/dist/assets/components/DISComponent.min.js +1 -1
  10. package/dist/assets/components/EventUtilitiesComponent.js +1 -1
  11. package/dist/assets/components/EventUtilitiesComponent.min.js +1 -1
  12. package/dist/assets/components/GaussianSplatsComponent.js +1 -1
  13. package/dist/assets/components/GaussianSplatsComponent.min.js +1 -1
  14. package/dist/assets/components/Geometry2DComponent.js +1 -1
  15. package/dist/assets/components/Geometry2DComponent.min.js +1 -1
  16. package/dist/assets/components/Geometry3DComponent.js +1 -1
  17. package/dist/assets/components/Geometry3DComponent.min.js +1 -1
  18. package/dist/assets/components/GeospatialComponent.js +1 -1
  19. package/dist/assets/components/GeospatialComponent.min.js +1 -1
  20. package/dist/assets/components/HAnimComponent.js +1 -1
  21. package/dist/assets/components/HAnimComponent.min.js +1 -1
  22. package/dist/assets/components/KeyDeviceSensorComponent.js +1 -1
  23. package/dist/assets/components/KeyDeviceSensorComponent.min.js +1 -1
  24. package/dist/assets/components/LayoutComponent.js +1 -3
  25. package/dist/assets/components/LayoutComponent.min.js +2 -2
  26. package/dist/assets/components/NURBSComponent.js +1 -1
  27. package/dist/assets/components/NURBSComponent.min.js +1 -1
  28. package/dist/assets/components/ParticleSystemsComponent.js +1 -1
  29. package/dist/assets/components/ParticleSystemsComponent.min.js +1 -1
  30. package/dist/assets/components/PickingComponent.js +1 -1
  31. package/dist/assets/components/PickingComponent.min.js +1 -1
  32. package/dist/assets/components/RigidBodyPhysicsComponent.js +1 -1
  33. package/dist/assets/components/RigidBodyPhysicsComponent.min.js +1 -1
  34. package/dist/assets/components/ScriptingComponent.js +1 -1
  35. package/dist/assets/components/ScriptingComponent.min.js +1 -1
  36. package/dist/assets/components/TextComponent.js +1 -1
  37. package/dist/assets/components/TextComponent.min.js +1 -1
  38. package/dist/assets/components/TextureProjectionComponent.js +1 -1
  39. package/dist/assets/components/TextureProjectionComponent.min.js +1 -1
  40. package/dist/assets/components/Texturing3DComponent.js +9 -9
  41. package/dist/assets/components/Texturing3DComponent.min.js +2 -2
  42. package/dist/assets/components/VolumeRenderingComponent.js +3 -5
  43. package/dist/assets/components/VolumeRenderingComponent.min.js +2 -2
  44. package/dist/assets/components/WebXRComponent.js +1 -1
  45. package/dist/assets/components/WebXRComponent.min.js +1 -1
  46. package/dist/assets/components/X_ITEComponent.js +1 -1
  47. package/dist/assets/components/X_ITEComponent.min.js +1 -1
  48. package/dist/assets/lib/README.md +0 -1
  49. package/dist/example.html +1 -1
  50. package/dist/x_ite.css +1 -1
  51. package/dist/x_ite.d.ts +7 -7
  52. package/dist/x_ite.js +38 -44
  53. package/dist/x_ite.min.js +2 -2
  54. package/dist/x_ite.min.mjs +2 -2
  55. package/dist/x_ite.mjs +38 -44
  56. package/dist/x_ite.zip +0 -0
  57. package/package.json +1 -1
package/dist/x_ite.mjs CHANGED
@@ -1,7 +1,7 @@
1
- /* X_ITE v16.0.4 */
1
+ /* X_ITE v16.0.5 */
2
2
  var __webpack_modules__ = ({
3
3
 
4
- /***/ 72
4
+ /***/ 998
5
5
  (module, exports) {
6
6
 
7
7
  var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*
@@ -1006,7 +1006,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
1006
1006
 
1007
1007
  /***/ },
1008
1008
 
1009
- /***/ 402
1009
+ /***/ 844
1010
1010
  (module) {
1011
1011
 
1012
1012
  (function webpackUniversalModuleDefinition(root, factory) {
@@ -2002,7 +2002,7 @@ return /******/ (function(modules) { // webpackBootstrap
2002
2002
 
2003
2003
  /***/ },
2004
2004
 
2005
- /***/ 258
2005
+ /***/ 728
2006
2006
  (module) {
2007
2007
 
2008
2008
  /**
@@ -18826,7 +18826,7 @@ const Legacy_default_ = Legacy;
18826
18826
 
18827
18827
  /* harmony default export */ const Browser_Legacy = (x_ite_Namespace .add ("Legacy", Legacy_default_));
18828
18828
  ;// ./src/x_ite/BROWSER_VERSION.js
18829
- const BROWSER_VERSION_default_ = "16.0.4";
18829
+ const BROWSER_VERSION_default_ = "16.0.5";
18830
18830
  ;
18831
18831
 
18832
18832
  /* harmony default export */ const BROWSER_VERSION = (x_ite_Namespace .add ("BROWSER_VERSION", BROWSER_VERSION_default_));
@@ -20447,7 +20447,7 @@ Object .assign (Object .setPrototypeOf (ContextMenu .prototype, Base_X3DBaseNode
20447
20447
  layer .addEventListener ("mousedown", () => this .hide ());
20448
20448
  layer .addEventListener ("contextmenu", () => this .hide ());
20449
20449
 
20450
- root .appendChild (layer);
20450
+ root .append (layer);
20451
20451
 
20452
20452
  this [_hide] = () =>
20453
20453
  {
@@ -20476,16 +20476,16 @@ Object .assign (Object .setPrototypeOf (ContextMenu .prototype, Base_X3DBaseNode
20476
20476
 
20477
20477
  ul .addEventListener ("contextmenu", () => this .hide ());
20478
20478
 
20479
- root .appendChild (ul);
20479
+ root .append (ul);
20480
20480
 
20481
20481
  const background = document .createElement ("div");
20482
20482
 
20483
20483
  background .classList .add ("context-menu-background");
20484
20484
 
20485
- ul .appendChild (background);
20485
+ ul .append (background);
20486
20486
 
20487
20487
  for (const k in menu .items)
20488
- ul .appendChild (this .createItem (menu .items [k], "context-menu-root", k, level + 1));
20488
+ ul .append (this .createItem (menu .items [k], "context-menu-root", k, level + 1));
20489
20489
 
20490
20490
  // Show
20491
20491
  // Must animate children because of blurish background.
@@ -30319,8 +30319,8 @@ Object .assign (Object .setPrototypeOf (JSONParser .prototype, Parser_X3DParser
30319
30319
  createCDATA (document, element, str)
30320
30320
  {
30321
30321
  const
30322
- docu = helper.parseXML ("<xml></xml>",),
30323
- cdata = docu .createCDATASection (str);
30322
+ root = helper.parseXML ("<xml></xml>",),
30323
+ cdata = root .createCDATASection (str);
30324
30324
 
30325
30325
  element .append (cdata);
30326
30326
  },
@@ -30365,7 +30365,6 @@ Object .assign (Object .setPrototypeOf (JSONParser .prototype, Parser_X3DParser
30365
30365
  this .convertToDOM (object [key] [childkey], childkey, child);
30366
30366
 
30367
30367
  element .append (child);
30368
- element .append (document .createTextNode ("\n"));
30369
30368
  }
30370
30369
  }
30371
30370
  }
@@ -30376,7 +30375,6 @@ Object .assign (Object .setPrototypeOf (JSONParser .prototype, Parser_X3DParser
30376
30375
  this .convertToDOM (object [key], key, child);
30377
30376
 
30378
30377
  element .append (child);
30379
- element .append (document .createTextNode ("\n"));
30380
30378
  }
30381
30379
  }
30382
30380
  },
@@ -31113,7 +31111,7 @@ const Plane3_default_ = Plane3;
31113
31111
 
31114
31112
  /* harmony default export */ const Geometry_Plane3 = (x_ite_Namespace .add ("Plane3", Plane3_default_));
31115
31113
  ;// ./src/standard/Math/Geometry/Triangle3.js
31116
- /* provided dependency */ var libtess = __webpack_require__(258);
31114
+ /* provided dependency */ var libtess = __webpack_require__(728);
31117
31115
 
31118
31116
 
31119
31117
  const Triangle3 =
@@ -47743,7 +47741,7 @@ const Bezier_default_ = Bezier;
47743
47741
 
47744
47742
  /* harmony default export */ const Algorithms_Bezier = (x_ite_Namespace .add ("Bezier", Bezier_default_));
47745
47743
  ;// ./src/x_ite/Parser/SVGParser.js
47746
- /* provided dependency */ var SVGParser_libtess = __webpack_require__(258);
47744
+ /* provided dependency */ var SVGParser_libtess = __webpack_require__(728);
47747
47745
 
47748
47746
 
47749
47747
 
@@ -54435,7 +54433,7 @@ function X3DCoreContext (element)
54435
54433
  {
54436
54434
  const link = document .createElement ("link");
54437
54435
 
54438
- link .integrity = "sha384-r/Gb5cpjKIPkLAwOrsKEHLP6i0CMS4kHdw86CIUHces4jE1JV+E2ip+Bb42dwD2D";
54436
+ link .integrity = "sha384-z3n/GOGoKsMpVZSKJ93fURwkAP+Pc26L4fyoX8sqfSjRbaqYaOKMzV8xyfYFto4R";
54439
54437
  link .rel = "stylesheet";
54440
54438
  link .crossOrigin = "anonymous";
54441
54439
  link .onload = resolve;
@@ -55226,13 +55224,13 @@ Object .assign (Object .setPrototypeOf (TextureProperties .prototype, Core_X3DNo
55226
55224
  {
55227
55225
  const minificationFilters = new Map ([
55228
55226
  ["AVG_PIXEL_AVG_MIPMAP", ["LINEAR", "LINEAR_MIPMAP_LINEAR"]],
55229
- ["AVG_PIXEL", ["LINEAR", "LINEAR"]],
55230
55227
  ["AVG_PIXEL_NEAREST_MIPMAP", ["LINEAR", "LINEAR_MIPMAP_NEAREST"]],
55231
55228
  ["NEAREST_PIXEL_AVG_MIPMAP", ["NEAREST", "NEAREST_MIPMAP_LINEAR"]],
55232
55229
  ["NEAREST_PIXEL_NEAREST_MIPMAP", ["NEAREST", "NEAREST_MIPMAP_NEAREST"]],
55230
+ ["AVG_PIXEL", ["LINEAR", "LINEAR"]],
55233
55231
  ["NEAREST_PIXEL", ["NEAREST", "NEAREST"]],
55234
55232
  ["NICEST", ["LINEAR", "LINEAR_MIPMAP_LINEAR"]],
55235
- ["FASTEST", ["NEAREST", "NEAREST"]],
55233
+ ["FASTEST", ["NEAREST", "NEAREST_MIPMAP_NEAREST"]],
55236
55234
  ]);
55237
55235
 
55238
55236
  return function (mipMaps = true)
@@ -55329,7 +55327,7 @@ Object .assign (X3DEnvironmentalEffectsContext .prototype,
55329
55327
  backgroundTextureProperties ._boundaryModeR = "CLAMP_TO_EDGE";
55330
55328
  backgroundTextureProperties ._minificationFilter = "NICEST";
55331
55329
  backgroundTextureProperties ._magnificationFilter = "NICEST";
55332
- backgroundTextureProperties ._textureCompression = "DEFAULT";
55330
+
55333
55331
  backgroundTextureProperties .setup ();
55334
55332
 
55335
55333
  return backgroundTextureProperties;
@@ -59340,7 +59338,6 @@ Object .assign (X3DLightingContext .prototype,
59340
59338
  texture = new Texturing_ImageTexture (this .getPrivateScene ()),
59341
59339
  textureProperties = new Texturing_TextureProperties (this .getPrivateScene ());
59342
59340
 
59343
- textureProperties ._generateMipMaps = false;
59344
59341
  textureProperties ._minificationFilter = "AVG_PIXEL";
59345
59342
  textureProperties ._magnificationFilter = "AVG_PIXEL";
59346
59343
  textureProperties ._boundaryModeS = "CLAMP_TO_BOUNDARY";
@@ -59407,7 +59404,7 @@ Object .assign (X3DLightingContext .prototype,
59407
59404
  ],
59408
59405
  });
59409
59406
  },
59410
- filterEnvironmentTexture ({ name, texture, distribution, sampleCount, roughness, flipX, cachedNode })
59407
+ filterEnvironmentTexture ({ name, texture, distribution, sampleCount, roughnesses, flipX, cachedNode })
59411
59408
  {
59412
59409
  // Render the texture.
59413
59410
 
@@ -59441,7 +59438,7 @@ Object .assign (X3DLightingContext .prototype,
59441
59438
  for (const target of filtered .getTargets ())
59442
59439
  gl .texImage2D (target, 0, gl .RGBA, size, size, 0, gl .RGBA, gl .UNSIGNED_BYTE, data);
59443
59440
 
59444
- if (roughness .length > 1)
59441
+ if (roughnesses .length > 1)
59445
59442
  {
59446
59443
  gl .generateMipmap (filtered .getTarget ());
59447
59444
  gl .texParameteri (filtered .getTarget (), gl .TEXTURE_MIN_FILTER, gl .LINEAR_MIPMAP_LINEAR);
@@ -59475,7 +59472,7 @@ Object .assign (X3DLightingContext .prototype,
59475
59472
  gl .uniform1f (shaderNode .x3d_IntensityEXT, 1);
59476
59473
  gl .uniform3f (shaderNode .x3d_FlipEXT, flipX ? -1 : 1, 1, 1);
59477
59474
 
59478
- for (const [level, r] of roughness .entries ())
59475
+ for (const [level, roughness] of roughnesses .entries ())
59479
59476
  {
59480
59477
  const mipSize = size >> level;
59481
59478
 
@@ -59485,7 +59482,7 @@ Object .assign (X3DLightingContext .prototype,
59485
59482
 
59486
59483
  gl .viewport (0, 0, mipSize, mipSize);
59487
59484
  gl .scissor (0, 0, mipSize, mipSize);
59488
- gl .uniform1f (shaderNode .x3d_RoughnessEXT, r);
59485
+ gl .uniform1f (shaderNode .x3d_RoughnessEXT, roughness);
59489
59486
 
59490
59487
  // Generate images.
59491
59488
 
@@ -71278,7 +71275,6 @@ Object .assign (X3DShapeContext .prototype,
71278
71275
 
71279
71276
  lineFillTextureProperties ._minificationFilter = "NEAREST_PIXEL";
71280
71277
  lineFillTextureProperties ._magnificationFilter = "NEAREST_PIXEL";
71281
- lineFillTextureProperties ._textureCompression = "DEFAULT";
71282
71278
 
71283
71279
  lineFillTextureProperties .setup ();
71284
71280
 
@@ -71309,8 +71305,7 @@ Object .assign (X3DShapeContext .prototype,
71309
71305
  ],
71310
71306
  [ ],
71311
71307
  [ ],
71312
- ]
71313
- [pass];
71308
+ ] [pass];
71314
71309
 
71315
71310
  const transformFeedbackVaryings = [
71316
71311
  [
@@ -71328,8 +71323,7 @@ Object .assign (X3DShapeContext .prototype,
71328
71323
  "instanceNormalMatrix1", "tangent1", "normal1",
71329
71324
  "instanceNormalMatrix2", "tangent2", "normal2",
71330
71325
  ],
71331
- ]
71332
- [pass];
71326
+ ] [pass];
71333
71327
 
71334
71328
  return this .createShader ({
71335
71329
  name: `LineTransform${instanced ? "Instanced" : ""}`,
@@ -72122,8 +72116,8 @@ Object .assign (X3DTexturingContext .prototype,
72122
72116
  {
72123
72117
  case TextureQuality .LOW:
72124
72118
  {
72125
- textureProperties ._magnificationFilter = "AVG_PIXEL";
72126
- textureProperties ._minificationFilter = "AVG_PIXEL";
72119
+ textureProperties ._magnificationFilter = "FASTEST";
72120
+ textureProperties ._minificationFilter = "FASTEST";
72127
72121
  textureProperties ._textureCompression = "FASTEST";
72128
72122
 
72129
72123
  gl .hint (gl .GENERATE_MIPMAP_HINT, gl .FASTEST);
@@ -72132,7 +72126,7 @@ Object .assign (X3DTexturingContext .prototype,
72132
72126
  case TextureQuality .MEDIUM:
72133
72127
  {
72134
72128
  textureProperties ._magnificationFilter = "NICEST";
72135
- textureProperties ._minificationFilter = "NEAREST_PIXEL_AVG_MIPMAP";
72129
+ textureProperties ._minificationFilter = "AVG_PIXEL_NEAREST_MIPMAP";
72136
72130
  textureProperties ._textureCompression = "NICEST";
72137
72131
 
72138
72132
  gl .hint (gl .GENERATE_MIPMAP_HINT, gl .FASTEST);
@@ -81466,7 +81460,7 @@ Object .assign (Object .setPrototypeOf (EnvironmentLight .prototype, Lighting_X3
81466
81460
  texture: this .specularTexture,
81467
81461
  distribution: Lighting_Distribution .LAMBERTIAN,
81468
81462
  sampleCount: 2048,
81469
- roughness: [0],
81463
+ roughnesses: [0],
81470
81464
  flipX: !this .traverseSpecular,
81471
81465
  cachedNode: this .generatedDiffuseTexture,
81472
81466
  });
@@ -81485,15 +81479,15 @@ Object .assign (Object .setPrototypeOf (EnvironmentLight .prototype, Lighting_X3
81485
81479
  console .info ("Generating specular texture for EnvironmentLight.");
81486
81480
 
81487
81481
  const
81488
- levels = this .specularTexture .getLevels (),
81489
- roughness = Array .from ({ length: levels + 1 }, (_, i) => i / (levels || 1));
81482
+ levels = this .specularTexture .getLevels (),
81483
+ roughnesses = Array .from ({ length: levels + 1 }, (_, i) => i / (levels || 1));
81490
81484
 
81491
81485
  return browser .filterEnvironmentTexture ({
81492
81486
  name: "GeneratedSpecularTexture",
81493
81487
  texture: this .specularTexture,
81494
81488
  distribution: Lighting_Distribution .GGX,
81495
81489
  sampleCount: 1024,
81496
- roughness,
81490
+ roughnesses,
81497
81491
  flipX: !this .traverseSpecular,
81498
81492
  cachedNode: this .generatedSpecularTexture,
81499
81493
  });
@@ -81512,15 +81506,15 @@ Object .assign (Object .setPrototypeOf (EnvironmentLight .prototype, Lighting_X3
81512
81506
  console .info ("Generating sheen texture for EnvironmentLight.");
81513
81507
 
81514
81508
  const
81515
- levels = this .specularTexture .getLevels (),
81516
- roughness = Array .from ({ length: levels + 1 }, (_, i) => Math .max (i / (levels || 1), 2, 0.000001));
81509
+ levels = this .specularTexture .getLevels (),
81510
+ roughnesses = Array .from ({ length: levels + 1 }, (_, i) => Math .max (i / (levels || 1), 2, 0.000001));
81517
81511
 
81518
81512
  return browser .filterEnvironmentTexture ({
81519
81513
  name: "GeneratedSheenTexture",
81520
81514
  texture: this .specularTexture,
81521
81515
  distribution: Lighting_Distribution .CHARLIE,
81522
81516
  sampleCount: 64,
81523
- roughness: roughness,
81517
+ roughnesses,
81524
81518
  flipX: !this .traverseSpecular,
81525
81519
  cachedNode: this .generatedSheenTexture,
81526
81520
  });
@@ -90939,8 +90933,8 @@ const PNGMedia_default_ = PNGMedia;
90939
90933
 
90940
90934
  /* harmony default export */ const Texturing_PNGMedia = (x_ite_Namespace .add ("PNGMedia", PNGMedia_default_));
90941
90935
  ;// ./src/x_ite/Components/Texturing/MovieTexture.js
90942
- /* provided dependency */ var SuperGif = __webpack_require__(72);
90943
- /* provided dependency */ var APNG = __webpack_require__(402);
90936
+ /* provided dependency */ var SuperGif = __webpack_require__(998);
90937
+ /* provided dependency */ var APNG = __webpack_require__(844);
90944
90938
 
90945
90939
 
90946
90940
 
@@ -93273,7 +93267,7 @@ Object .assign (Object .setPrototypeOf (X3DBrowser .prototype, Browser_X3DBrowse
93273
93267
  console .log (string);
93274
93268
 
93275
93269
  for (const element of this [_console])
93276
- element .append (document .createTextNode (string));
93270
+ element .append (string);
93277
93271
  },
93278
93272
  println (... args)
93279
93273
  {
@@ -93282,7 +93276,7 @@ Object .assign (Object .setPrototypeOf (X3DBrowser .prototype, Browser_X3DBrowse
93282
93276
  console .log (string);
93283
93277
 
93284
93278
  for (const element of this [_console])
93285
- element .append (document .createTextNode (`${string}\n`));
93279
+ element .append (`${string}\n`);
93286
93280
  },
93287
93281
  toVRMLStream (generator)
93288
93282
  {
@@ -93645,7 +93639,7 @@ const QuickSort_default_ = QuickSort;
93645
93639
 
93646
93640
  /* harmony default export */ const Algorithms_QuickSort = (x_ite_Namespace .add ("QuickSort", QuickSort_default_));
93647
93641
  ;// ./src/lib/libtess.js
93648
- /* provided dependency */ var libtess_libtess = __webpack_require__(258);
93642
+ /* provided dependency */ var libtess_libtess = __webpack_require__(728);
93649
93643
  const libtess_default_ = libtess_libtess;
93650
93644
  ;
93651
93645
 
package/dist/x_ite.zip CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x_ite",
3
- "version": "16.0.4",
3
+ "version": "16.0.5",
4
4
  "description": "X_ITE X3D Browser and VRML Viewer — View and Manipulate X3D, VRML, glTF and Other 3D Sources in HTML",
5
5
  "main": "dist/x_ite.js",
6
6
  "module": "dist/x_ite.mjs",