x_ite 8.7.0 → 8.7.1
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 +22 -22
- 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 +18 -18
- package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
- package/dist/assets/components/Scripting.js +28 -28
- 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 +1694 -1125
- 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/x_ite.css +1 -1
- package/dist/x_ite.js +79 -79
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.zip +0 -0
- package/docs/_config.yml +1 -1
- package/package.json +2 -2
- package/src/x_ite/Browser/Legacy.js +1 -1
- package/src/x_ite/Browser/VERSION.js +1 -1
- package/src/x_ite/Components/Shape/Material.js +10 -10
- package/src/x_ite/Components/Shape/PhysicalMaterial.js +6 -6
- package/src/x_ite/Components/Shape/X3DMaterialNode.js +1 -1
- package/src/x_ite/Components/Shape/X3DOneSidedMaterialNode.js +4 -4
package/dist/x_ite.zip
CHANGED
|
Binary file
|
package/docs/_config.yml
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x_ite",
|
|
3
|
-
"version": "8.7.
|
|
3
|
+
"version": "8.7.1",
|
|
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>",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"css-element-queries": "^1.2.3",
|
|
60
60
|
"dicom-parser": "^1.8.21",
|
|
61
61
|
"jpeg-js": "^0.4.4",
|
|
62
|
-
"jpeg-lossless-decoder-js": "
|
|
62
|
+
"jpeg-lossless-decoder-js": "2.0.4",
|
|
63
63
|
"jquery": "^3.6.4",
|
|
64
64
|
"jquery-fullscreen-plugin": "^1.1.5",
|
|
65
65
|
"jquery-mousewheel": "^3.1.13",
|
|
@@ -58,7 +58,7 @@ function legacy ()
|
|
|
58
58
|
this .attributeChangedCallback ("url", undefined, element .attr ("url"));
|
|
59
59
|
|
|
60
60
|
// Make element focusable.
|
|
61
|
-
element .attr ("tabindex", element .attr ("tabindex")
|
|
61
|
+
element .attr ("tabindex", element .attr ("tabindex") ?? 0);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
export default legacy;
|
|
@@ -315,8 +315,8 @@ Material .prototype = Object .assign (Object .create (X3DOneSidedMaterialNode .p
|
|
|
315
315
|
|
|
316
316
|
this .ambientTextureNode .setShaderUniforms (gl, shaderObject, renderObject, ambientTexture);
|
|
317
317
|
|
|
318
|
-
gl .uniform1i (ambientTexture .textureTransformMapping, textureTransformMapping .get (ambientTextureMapping)
|
|
319
|
-
gl .uniform1i (ambientTexture .textureCoordinateMapping, textureCoordinateMapping .get (ambientTextureMapping)
|
|
318
|
+
gl .uniform1i (ambientTexture .textureTransformMapping, textureTransformMapping .get (ambientTextureMapping) ?? 0);
|
|
319
|
+
gl .uniform1i (ambientTexture .textureCoordinateMapping, textureCoordinateMapping .get (ambientTextureMapping) ?? 0);
|
|
320
320
|
}
|
|
321
321
|
|
|
322
322
|
// Diffuse parameters
|
|
@@ -329,8 +329,8 @@ Material .prototype = Object .assign (Object .create (X3DOneSidedMaterialNode .p
|
|
|
329
329
|
|
|
330
330
|
this .diffuseTextureNode .setShaderUniforms (gl, shaderObject, renderObject, diffuseTexture);
|
|
331
331
|
|
|
332
|
-
gl .uniform1i (diffuseTexture .textureTransformMapping, textureTransformMapping .get (diffuseTextureMapping)
|
|
333
|
-
gl .uniform1i (diffuseTexture .textureCoordinateMapping, textureCoordinateMapping .get (diffuseTextureMapping)
|
|
332
|
+
gl .uniform1i (diffuseTexture .textureTransformMapping, textureTransformMapping .get (diffuseTextureMapping) ?? 0);
|
|
333
|
+
gl .uniform1i (diffuseTexture .textureCoordinateMapping, textureCoordinateMapping .get (diffuseTextureMapping) ?? 0);
|
|
334
334
|
}
|
|
335
335
|
|
|
336
336
|
// Specular parameters
|
|
@@ -343,8 +343,8 @@ Material .prototype = Object .assign (Object .create (X3DOneSidedMaterialNode .p
|
|
|
343
343
|
|
|
344
344
|
this .specularTextureNode .setShaderUniforms (gl, shaderObject, renderObject, specularTexture);
|
|
345
345
|
|
|
346
|
-
gl .uniform1i (specularTexture .textureTransformMapping, textureTransformMapping .get (specularTextureMapping)
|
|
347
|
-
gl .uniform1i (specularTexture .textureCoordinateMapping, textureCoordinateMapping .get (specularTextureMapping)
|
|
346
|
+
gl .uniform1i (specularTexture .textureTransformMapping, textureTransformMapping .get (specularTextureMapping) ?? 0);
|
|
347
|
+
gl .uniform1i (specularTexture .textureCoordinateMapping, textureCoordinateMapping .get (specularTextureMapping) ?? 0);
|
|
348
348
|
}
|
|
349
349
|
|
|
350
350
|
// Shininess parameters
|
|
@@ -357,8 +357,8 @@ Material .prototype = Object .assign (Object .create (X3DOneSidedMaterialNode .p
|
|
|
357
357
|
|
|
358
358
|
this .shininessTextureNode .setShaderUniforms (gl, shaderObject, renderObject, shininessTexture);
|
|
359
359
|
|
|
360
|
-
gl .uniform1i (shininessTexture .textureTransformMapping, textureTransformMapping .get (shininessTextureMapping)
|
|
361
|
-
gl .uniform1i (shininessTexture .textureCoordinateMapping, textureCoordinateMapping .get (shininessTextureMapping)
|
|
360
|
+
gl .uniform1i (shininessTexture .textureTransformMapping, textureTransformMapping .get (shininessTextureMapping) ?? 0);
|
|
361
|
+
gl .uniform1i (shininessTexture .textureCoordinateMapping, textureCoordinateMapping .get (shininessTextureMapping) ?? 0);
|
|
362
362
|
}
|
|
363
363
|
|
|
364
364
|
// Occlusion parameters
|
|
@@ -373,8 +373,8 @@ Material .prototype = Object .assign (Object .create (X3DOneSidedMaterialNode .p
|
|
|
373
373
|
|
|
374
374
|
this .occlusionTextureNode .setShaderUniforms (gl, shaderObject, renderObject, occlusionTexture);
|
|
375
375
|
|
|
376
|
-
gl .uniform1i (occlusionTexture .textureTransformMapping, textureTransformMapping .get (occlusionTextureMapping)
|
|
377
|
-
gl .uniform1i (occlusionTexture .textureCoordinateMapping, textureCoordinateMapping .get (occlusionTextureMapping)
|
|
376
|
+
gl .uniform1i (occlusionTexture .textureTransformMapping, textureTransformMapping .get (occlusionTextureMapping) ?? 0);
|
|
377
|
+
gl .uniform1i (occlusionTexture .textureCoordinateMapping, textureCoordinateMapping .get (occlusionTextureMapping) ?? 0);
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
380
|
},
|
|
@@ -257,8 +257,8 @@ PhysicalMaterial .prototype = Object .assign (Object .create (X3DOneSidedMateria
|
|
|
257
257
|
|
|
258
258
|
this .baseTextureNode .setShaderUniforms (gl, shaderObject, renderObject, baseTexture);
|
|
259
259
|
|
|
260
|
-
gl .uniform1i (baseTexture .textureTransformMapping, textureTransformMapping .get (baseTextureMapping)
|
|
261
|
-
gl .uniform1i (baseTexture .textureCoordinateMapping, textureCoordinateMapping .get (baseTextureMapping)
|
|
260
|
+
gl .uniform1i (baseTexture .textureTransformMapping, textureTransformMapping .get (baseTextureMapping) ?? 0);
|
|
261
|
+
gl .uniform1i (baseTexture .textureCoordinateMapping, textureCoordinateMapping .get (baseTextureMapping) ?? 0);
|
|
262
262
|
}
|
|
263
263
|
|
|
264
264
|
// Metallic roughness parameters
|
|
@@ -271,8 +271,8 @@ PhysicalMaterial .prototype = Object .assign (Object .create (X3DOneSidedMateria
|
|
|
271
271
|
|
|
272
272
|
this .metallicRoughnessTextureNode .setShaderUniforms (gl, shaderObject, renderObject, metallicRoughnessTexture);
|
|
273
273
|
|
|
274
|
-
gl .uniform1i (metallicRoughnessTexture .textureTransformMapping, textureTransformMapping .get (metallicRoughnessTextureMapping)
|
|
275
|
-
gl .uniform1i (metallicRoughnessTexture .textureCoordinateMapping, textureCoordinateMapping .get (metallicRoughnessTextureMapping)
|
|
274
|
+
gl .uniform1i (metallicRoughnessTexture .textureTransformMapping, textureTransformMapping .get (metallicRoughnessTextureMapping) ?? 0);
|
|
275
|
+
gl .uniform1i (metallicRoughnessTexture .textureCoordinateMapping, textureCoordinateMapping .get (metallicRoughnessTextureMapping) ?? 0);
|
|
276
276
|
}
|
|
277
277
|
|
|
278
278
|
// Occlusion parameters
|
|
@@ -287,8 +287,8 @@ PhysicalMaterial .prototype = Object .assign (Object .create (X3DOneSidedMateria
|
|
|
287
287
|
|
|
288
288
|
this .occlusionTextureNode .setShaderUniforms (gl, shaderObject, renderObject, occlusionTexture);
|
|
289
289
|
|
|
290
|
-
gl .uniform1i (occlusionTexture .textureTransformMapping, textureTransformMapping .get (occlusionTextureMapping)
|
|
291
|
-
gl .uniform1i (occlusionTexture .textureCoordinateMapping, textureCoordinateMapping .get (occlusionTextureMapping)
|
|
290
|
+
gl .uniform1i (occlusionTexture .textureTransformMapping, textureTransformMapping .get (occlusionTextureMapping) ?? 0);
|
|
291
|
+
gl .uniform1i (occlusionTexture .textureCoordinateMapping, textureCoordinateMapping .get (occlusionTextureMapping) ?? 0);
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
294
|
},
|
|
@@ -152,7 +152,7 @@ X3DMaterialNode .prototype = Object .assign (Object .create (X3DAppearanceChildN
|
|
|
152
152
|
key += textureNode ? 1 : 0;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
return this .shaderNodes .get (key)
|
|
155
|
+
return this .shaderNodes .get (key) ?? this .createShader (key, geometryContext, renderContext);
|
|
156
156
|
},
|
|
157
157
|
getShaderOptions: function (geometryContext, renderContext)
|
|
158
158
|
{
|
|
@@ -175,8 +175,8 @@ X3DOneSidedMaterialNode .prototype = Object .assign (Object .create (X3DMaterial
|
|
|
175
175
|
|
|
176
176
|
this .emissiveTextureNode .setShaderUniforms (gl, shaderObject, renderObject, emissiveTexture);
|
|
177
177
|
|
|
178
|
-
gl .uniform1i (emissiveTexture .textureTransformMapping, textureTransformMapping .get (emissiveTextureMapping)
|
|
179
|
-
gl .uniform1i (emissiveTexture .textureCoordinateMapping, textureCoordinateMapping .get (emissiveTextureMapping)
|
|
178
|
+
gl .uniform1i (emissiveTexture .textureTransformMapping, textureTransformMapping .get (emissiveTextureMapping) ?? 0);
|
|
179
|
+
gl .uniform1i (emissiveTexture .textureCoordinateMapping, textureCoordinateMapping .get (emissiveTextureMapping) ?? 0);
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
// Normal parameters
|
|
@@ -191,8 +191,8 @@ X3DOneSidedMaterialNode .prototype = Object .assign (Object .create (X3DMaterial
|
|
|
191
191
|
|
|
192
192
|
this .normalTextureNode .setShaderUniforms (gl, shaderObject, renderObject, normalTexture);
|
|
193
193
|
|
|
194
|
-
gl .uniform1i (normalTexture .textureTransformMapping, textureTransformMapping .get (normalTextureMapping)
|
|
195
|
-
gl .uniform1i (normalTexture .textureCoordinateMapping, textureCoordinateMapping .get (normalTextureMapping)
|
|
194
|
+
gl .uniform1i (normalTexture .textureTransformMapping, textureTransformMapping .get (normalTextureMapping) ?? 0);
|
|
195
|
+
gl .uniform1i (normalTexture .textureCoordinateMapping, textureCoordinateMapping .get (normalTextureMapping) ?? 0);
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
},
|