x_ite 16.0.2 → 16.0.3
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/README.md +5 -5
- package/dist/assets/components/AnnotationComponent.js +1 -1
- package/dist/assets/components/AnnotationComponent.min.js +1 -1
- package/dist/assets/components/CADGeometryComponent.js +1 -1
- package/dist/assets/components/CADGeometryComponent.min.js +1 -1
- package/dist/assets/components/CubeMapTexturingComponent.js +3 -4
- package/dist/assets/components/CubeMapTexturingComponent.min.js +2 -2
- package/dist/assets/components/DISComponent.js +1 -1
- package/dist/assets/components/DISComponent.min.js +1 -1
- package/dist/assets/components/EventUtilitiesComponent.js +1 -1
- package/dist/assets/components/EventUtilitiesComponent.min.js +1 -1
- package/dist/assets/components/GaussianSplatsComponent.js +1 -1
- package/dist/assets/components/GaussianSplatsComponent.min.js +1 -1
- package/dist/assets/components/Geometry2DComponent.js +1 -1
- package/dist/assets/components/Geometry2DComponent.min.js +1 -1
- package/dist/assets/components/Geometry3DComponent.js +1 -1
- package/dist/assets/components/Geometry3DComponent.min.js +1 -1
- package/dist/assets/components/GeospatialComponent.js +1 -1
- package/dist/assets/components/GeospatialComponent.min.js +1 -1
- package/dist/assets/components/HAnimComponent.js +1 -1
- package/dist/assets/components/HAnimComponent.min.js +1 -1
- package/dist/assets/components/KeyDeviceSensorComponent.js +1 -1
- package/dist/assets/components/KeyDeviceSensorComponent.min.js +1 -1
- package/dist/assets/components/LayoutComponent.js +1 -1
- package/dist/assets/components/LayoutComponent.min.js +1 -1
- package/dist/assets/components/NURBSComponent.js +1 -1
- package/dist/assets/components/NURBSComponent.min.js +1 -1
- package/dist/assets/components/ParticleSystemsComponent.js +1 -1
- package/dist/assets/components/ParticleSystemsComponent.min.js +1 -1
- package/dist/assets/components/PickingComponent.js +1 -1
- package/dist/assets/components/PickingComponent.min.js +1 -1
- package/dist/assets/components/RigidBodyPhysicsComponent.js +1 -1
- package/dist/assets/components/RigidBodyPhysicsComponent.min.js +1 -1
- package/dist/assets/components/ScriptingComponent.js +1 -1
- package/dist/assets/components/ScriptingComponent.min.js +1 -1
- package/dist/assets/components/TextComponent.js +1 -1
- package/dist/assets/components/TextComponent.min.js +1 -1
- package/dist/assets/components/TextureProjectionComponent.js +1 -1
- package/dist/assets/components/TextureProjectionComponent.min.js +1 -1
- package/dist/assets/components/Texturing3DComponent.js +9 -10
- package/dist/assets/components/Texturing3DComponent.min.js +2 -2
- package/dist/assets/components/VolumeRenderingComponent.js +1 -1
- package/dist/assets/components/VolumeRenderingComponent.min.js +1 -1
- package/dist/assets/components/WebXRComponent.js +1 -1
- package/dist/assets/components/WebXRComponent.min.js +1 -1
- package/dist/assets/components/X_ITEComponent.js +1 -1
- package/dist/assets/components/X_ITEComponent.min.js +1 -1
- package/dist/example.html +1 -1
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.js +28 -45
- package/dist/x_ite.min.js +2 -2
- package/dist/x_ite.min.mjs +2 -2
- package/dist/x_ite.mjs +28 -45
- package/dist/x_ite.zip +0 -0
- package/package.json +3 -3
package/dist/x_ite.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/* X_ITE v16.0.
|
|
1
|
+
/* X_ITE v16.0.3 */
|
|
2
2
|
var __webpack_modules__ = ({
|
|
3
3
|
|
|
4
|
-
/***/
|
|
4
|
+
/***/ 521
|
|
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
|
-
/***/
|
|
1009
|
+
/***/ 939
|
|
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
|
-
/***/
|
|
2005
|
+
/***/ 159
|
|
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.
|
|
18829
|
+
const BROWSER_VERSION_default_ = "16.0.3";
|
|
18830
18830
|
;
|
|
18831
18831
|
|
|
18832
18832
|
/* harmony default export */ const BROWSER_VERSION = (x_ite_Namespace .add ("BROWSER_VERSION", BROWSER_VERSION_default_));
|
|
@@ -31113,7 +31113,7 @@ const Plane3_default_ = Plane3;
|
|
|
31113
31113
|
|
|
31114
31114
|
/* harmony default export */ const Geometry_Plane3 = (x_ite_Namespace .add ("Plane3", Plane3_default_));
|
|
31115
31115
|
;// ./src/standard/Math/Geometry/Triangle3.js
|
|
31116
|
-
/* provided dependency */ var libtess = __webpack_require__(
|
|
31116
|
+
/* provided dependency */ var libtess = __webpack_require__(159);
|
|
31117
31117
|
|
|
31118
31118
|
|
|
31119
31119
|
const Triangle3 =
|
|
@@ -47743,7 +47743,7 @@ const Bezier_default_ = Bezier;
|
|
|
47743
47743
|
|
|
47744
47744
|
/* harmony default export */ const Algorithms_Bezier = (x_ite_Namespace .add ("Bezier", Bezier_default_));
|
|
47745
47745
|
;// ./src/x_ite/Parser/SVGParser.js
|
|
47746
|
-
/* provided dependency */ var SVGParser_libtess = __webpack_require__(
|
|
47746
|
+
/* provided dependency */ var SVGParser_libtess = __webpack_require__(159);
|
|
47747
47747
|
|
|
47748
47748
|
|
|
47749
47749
|
|
|
@@ -54425,7 +54425,7 @@ function X3DCoreContext (element)
|
|
|
54425
54425
|
</div>
|
|
54426
54426
|
</div>`;
|
|
54427
54427
|
|
|
54428
|
-
if (element .
|
|
54428
|
+
if (element .shadowRoot)
|
|
54429
54429
|
{
|
|
54430
54430
|
this [_shadow] = element .shadowRoot;
|
|
54431
54431
|
|
|
@@ -54435,7 +54435,7 @@ function X3DCoreContext (element)
|
|
|
54435
54435
|
{
|
|
54436
54436
|
const link = document .createElement ("link");
|
|
54437
54437
|
|
|
54438
|
-
link .integrity = "sha384-
|
|
54438
|
+
link .integrity = "sha384-kJEneJ/A3x8UCAr9atGL38mNOYbyOsYx1KrBl+f1Al3bK4S1tzl/AYvqtxknYzkx";
|
|
54439
54439
|
link .rel = "stylesheet";
|
|
54440
54440
|
link .crossOrigin = "anonymous";
|
|
54441
54441
|
link .onload = resolve;
|
|
@@ -59454,19 +59454,18 @@ Object .assign (X3DLightingContext .prototype,
|
|
|
59454
59454
|
// Render the texture.
|
|
59455
59455
|
|
|
59456
59456
|
const
|
|
59457
|
-
gl
|
|
59458
|
-
executionContext
|
|
59459
|
-
|
|
59460
|
-
|
|
59461
|
-
|
|
59462
|
-
|
|
59463
|
-
size = texture .getSize (),
|
|
59464
|
-
filtered = cachedNode ?? executionContext .createNode ("ImageCubeMapTexture", false);
|
|
59457
|
+
gl = this .getContext (),
|
|
59458
|
+
executionContext = texture .getExecutionContext (),
|
|
59459
|
+
shaderNode = this .getEnvironmentTextureShader (),
|
|
59460
|
+
framebuffer = this [_filterFrameBuffer] ??= gl .createFramebuffer (),
|
|
59461
|
+
size = texture .getSize (),
|
|
59462
|
+
filtered = cachedNode ?? executionContext .createNode ("ImageCubeMapTexture", false);
|
|
59465
59463
|
|
|
59466
59464
|
// Setup texture.
|
|
59467
59465
|
|
|
59468
59466
|
if (!cachedNode)
|
|
59469
59467
|
{
|
|
59468
|
+
filtered .updateTextureParameters = Function .prototype;
|
|
59470
59469
|
filtered .setName (name);
|
|
59471
59470
|
filtered .setPrivate (true);
|
|
59472
59471
|
filtered .setLinear (true);
|
|
@@ -59486,9 +59485,9 @@ Object .assign (X3DLightingContext .prototype,
|
|
|
59486
59485
|
|
|
59487
59486
|
if (roughness .length > 1)
|
|
59488
59487
|
{
|
|
59489
|
-
gl .generateMipmap (
|
|
59490
|
-
gl .texParameteri (
|
|
59491
|
-
gl .texParameteri (
|
|
59488
|
+
gl .generateMipmap (filtered .getTarget ());
|
|
59489
|
+
gl .texParameteri (filtered .getTarget (), gl .TEXTURE_MIN_FILTER, gl .LINEAR_MIPMAP_LINEAR);
|
|
59490
|
+
gl .texParameteri (filtered .getTarget (), gl .TEXTURE_MAG_FILTER, gl .LINEAR);
|
|
59492
59491
|
}
|
|
59493
59492
|
|
|
59494
59493
|
// Setup defaults.
|
|
@@ -59497,14 +59496,13 @@ Object .assign (X3DLightingContext .prototype,
|
|
|
59497
59496
|
gl .disable (gl .DEPTH_TEST);
|
|
59498
59497
|
gl .enable (gl .CULL_FACE);
|
|
59499
59498
|
gl .frontFace (gl .CCW);
|
|
59500
|
-
gl .clearColor (0, 0, 0, 0);
|
|
59501
59499
|
gl .bindVertexArray (this .getFullscreenVertexArrayObject ());
|
|
59502
59500
|
|
|
59503
59501
|
// Setup specular texture uniforms.
|
|
59504
59502
|
|
|
59505
59503
|
gl .useProgram (shaderNode .getProgram ());
|
|
59506
59504
|
gl .activeTexture (gl .TEXTURE0);
|
|
59507
|
-
gl .bindTexture (
|
|
59505
|
+
gl .bindTexture (texture .getTarget (), texture .getTexture ());
|
|
59508
59506
|
gl .uniform1i (shaderNode .x3d_TextureEXT, 0);
|
|
59509
59507
|
gl .uniform1i (shaderNode .x3d_TextureSizeEXT, size);
|
|
59510
59508
|
gl .uniform1i (shaderNode .x3d_TextureLinearEXT, texture .isLinear ());
|
|
@@ -59529,19 +59527,15 @@ Object .assign (X3DLightingContext .prototype,
|
|
|
59529
59527
|
gl .viewport (0, 0, mipSize, mipSize);
|
|
59530
59528
|
gl .scissor (0, 0, mipSize, mipSize);
|
|
59531
59529
|
|
|
59532
|
-
for (
|
|
59530
|
+
for (const [face, target] of filtered .getTargets () .entries ())
|
|
59533
59531
|
{
|
|
59534
|
-
gl .framebufferTexture2D (gl .FRAMEBUFFER, gl .COLOR_ATTACHMENT0,
|
|
59535
|
-
|
|
59536
|
-
gl .clear (gl .COLOR_BUFFER_BIT);
|
|
59537
|
-
gl .uniform1i (shaderNode .x3d_CurrentFaceEXT, i);
|
|
59532
|
+
gl .framebufferTexture2D (gl .FRAMEBUFFER, gl .COLOR_ATTACHMENT0, target, filtered .getTexture (), level);
|
|
59533
|
+
gl .uniform1i (shaderNode .x3d_CurrentFaceEXT, face);
|
|
59538
59534
|
gl .drawArrays (gl .TRIANGLES, 0, 6);
|
|
59539
59535
|
}
|
|
59540
59536
|
}
|
|
59541
59537
|
|
|
59542
59538
|
gl .enable (gl .DEPTH_TEST);
|
|
59543
|
-
gl .useProgram (currentProgram);
|
|
59544
|
-
gl .bindFramebuffer (gl .FRAMEBUFFER, currentFramebuffer);
|
|
59545
59539
|
|
|
59546
59540
|
return filtered;
|
|
59547
59541
|
},
|
|
@@ -72128,10 +72122,8 @@ Object .assign (X3DTexturingContext .prototype,
|
|
|
72128
72122
|
textureProperties ._magnificationFilter = "AVG_PIXEL";
|
|
72129
72123
|
textureProperties ._minificationFilter = "AVG_PIXEL";
|
|
72130
72124
|
textureProperties ._textureCompression = "FASTEST";
|
|
72131
|
-
textureProperties ._generateMipMaps = true;
|
|
72132
72125
|
|
|
72133
72126
|
gl .hint (gl .GENERATE_MIPMAP_HINT, gl .FASTEST);
|
|
72134
|
-
//gl .hint (gl .PERSPECTIVE_CORRECTION_HINT, gl .FASTEST);
|
|
72135
72127
|
break;
|
|
72136
72128
|
}
|
|
72137
72129
|
case TextureQuality .MEDIUM:
|
|
@@ -72139,10 +72131,8 @@ Object .assign (X3DTexturingContext .prototype,
|
|
|
72139
72131
|
textureProperties ._magnificationFilter = "NICEST";
|
|
72140
72132
|
textureProperties ._minificationFilter = "NEAREST_PIXEL_AVG_MIPMAP";
|
|
72141
72133
|
textureProperties ._textureCompression = "NICEST";
|
|
72142
|
-
textureProperties ._generateMipMaps = true;
|
|
72143
72134
|
|
|
72144
72135
|
gl .hint (gl .GENERATE_MIPMAP_HINT, gl .FASTEST);
|
|
72145
|
-
//gl .hint (gl .PERSPECTIVE_CORRECTION_HINT, gl .FASTEST);
|
|
72146
72136
|
break;
|
|
72147
72137
|
}
|
|
72148
72138
|
case TextureQuality .HIGH:
|
|
@@ -72150,10 +72140,8 @@ Object .assign (X3DTexturingContext .prototype,
|
|
|
72150
72140
|
textureProperties ._magnificationFilter = "NICEST";
|
|
72151
72141
|
textureProperties ._minificationFilter = "NICEST";
|
|
72152
72142
|
textureProperties ._textureCompression = "NICEST";
|
|
72153
|
-
textureProperties ._generateMipMaps = true;
|
|
72154
72143
|
|
|
72155
72144
|
gl .hint (gl .GENERATE_MIPMAP_HINT, gl .NICEST);
|
|
72156
|
-
//gl .hint (gl .PERSPECTIVE_CORRECTION_HINT, gl .NICEST);
|
|
72157
72145
|
break;
|
|
72158
72146
|
}
|
|
72159
72147
|
}
|
|
@@ -81290,9 +81278,9 @@ Object .assign (EnvironmentLightContainer .prototype,
|
|
|
81290
81278
|
|
|
81291
81279
|
this .modelViewMatrix .push (modelViewMatrix);
|
|
81292
81280
|
},
|
|
81293
|
-
renderShadowMap (renderObject)
|
|
81281
|
+
renderShadowMap (/* renderObject */)
|
|
81294
81282
|
{ },
|
|
81295
|
-
setGlobalVariables (renderObject)
|
|
81283
|
+
setGlobalVariables (/* renderObject */)
|
|
81296
81284
|
{
|
|
81297
81285
|
this .modelViewMatrix .get () .getTransform (null, this .rotation);
|
|
81298
81286
|
|
|
@@ -81372,11 +81360,6 @@ Object .assign (EnvironmentLightContainer .prototype,
|
|
|
81372
81360
|
gl .uniform1i (uniforms .diffuseTextureLevels, diffuseTexture ?.getLevels () ?? 0);
|
|
81373
81361
|
gl .uniform1i (uniforms .specularTextureLevels, specularTexture ?.getLevels () ?? 0);
|
|
81374
81362
|
|
|
81375
|
-
if (lightNode .traverseSpecular)
|
|
81376
|
-
gl .uniform3f (uniforms .flipX, 1, 1, 1);
|
|
81377
|
-
else
|
|
81378
|
-
gl .uniform3f (uniforms .flipX, -1, 1, 1);
|
|
81379
|
-
|
|
81380
81363
|
if (uniforms .sheenTexture)
|
|
81381
81364
|
{
|
|
81382
81365
|
const sheenTexture = lightNode .getSheenTexture ();
|
|
@@ -90953,8 +90936,8 @@ const PNGMedia_default_ = PNGMedia;
|
|
|
90953
90936
|
|
|
90954
90937
|
/* harmony default export */ const Texturing_PNGMedia = (x_ite_Namespace .add ("PNGMedia", PNGMedia_default_));
|
|
90955
90938
|
;// ./src/x_ite/Components/Texturing/MovieTexture.js
|
|
90956
|
-
/* provided dependency */ var SuperGif = __webpack_require__(
|
|
90957
|
-
/* provided dependency */ var APNG = __webpack_require__(
|
|
90939
|
+
/* provided dependency */ var SuperGif = __webpack_require__(521);
|
|
90940
|
+
/* provided dependency */ var APNG = __webpack_require__(939);
|
|
90958
90941
|
|
|
90959
90942
|
|
|
90960
90943
|
|
|
@@ -93659,7 +93642,7 @@ const QuickSort_default_ = QuickSort;
|
|
|
93659
93642
|
|
|
93660
93643
|
/* harmony default export */ const Algorithms_QuickSort = (x_ite_Namespace .add ("QuickSort", QuickSort_default_));
|
|
93661
93644
|
;// ./src/lib/libtess.js
|
|
93662
|
-
/* provided dependency */ var libtess_libtess = __webpack_require__(
|
|
93645
|
+
/* provided dependency */ var libtess_libtess = __webpack_require__(159);
|
|
93663
93646
|
const libtess_default_ = libtess_libtess;
|
|
93664
93647
|
;
|
|
93665
93648
|
|
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.
|
|
3
|
+
"version": "16.0.3",
|
|
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",
|
|
@@ -137,8 +137,8 @@
|
|
|
137
137
|
"string-replace-webpack-plugin": "^0.1.3",
|
|
138
138
|
"terser": "5.49.0",
|
|
139
139
|
"terser-webpack-plugin": "^5.6.1",
|
|
140
|
-
"webpack": "^5.109.
|
|
141
|
-
"webpack-cli": "^7.2.
|
|
140
|
+
"webpack": "^5.109.2",
|
|
141
|
+
"webpack-cli": "^7.2.2",
|
|
142
142
|
"webpack-shell-plugin-next": "^2.3.3",
|
|
143
143
|
"woff2-encoder": "^2.0.0",
|
|
144
144
|
"wrapper-webpack-plugin": "^2.2.2"
|