x_ite 14.1.4 → 14.2.0

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 (55) hide show
  1. package/README.md +32 -32
  2. package/dist/X3DUOM.xml +6 -0
  3. package/dist/assets/components/AnnotationComponent.js +2 -2
  4. package/dist/assets/components/AnnotationComponent.min.js +2 -2
  5. package/dist/assets/components/CADGeometryComponent.js +2 -2
  6. package/dist/assets/components/CADGeometryComponent.min.js +2 -2
  7. package/dist/assets/components/CubeMapTexturingComponent.js +2 -2
  8. package/dist/assets/components/CubeMapTexturingComponent.min.js +2 -2
  9. package/dist/assets/components/DISComponent.js +2 -2
  10. package/dist/assets/components/DISComponent.min.js +2 -2
  11. package/dist/assets/components/EventUtilitiesComponent.js +2 -2
  12. package/dist/assets/components/EventUtilitiesComponent.min.js +2 -2
  13. package/dist/assets/components/Geometry2DComponent.js +2 -2
  14. package/dist/assets/components/Geometry2DComponent.min.js +2 -2
  15. package/dist/assets/components/Geometry3DComponent.js +2 -2
  16. package/dist/assets/components/Geometry3DComponent.min.js +2 -2
  17. package/dist/assets/components/GeospatialComponent.js +2 -2
  18. package/dist/assets/components/GeospatialComponent.min.js +2 -2
  19. package/dist/assets/components/HAnimComponent.js +2 -2
  20. package/dist/assets/components/HAnimComponent.min.js +2 -2
  21. package/dist/assets/components/KeyDeviceSensorComponent.js +2 -2
  22. package/dist/assets/components/KeyDeviceSensorComponent.min.js +2 -2
  23. package/dist/assets/components/LayoutComponent.js +8 -5
  24. package/dist/assets/components/LayoutComponent.min.js +2 -2
  25. package/dist/assets/components/NURBSComponent.js +2 -2
  26. package/dist/assets/components/NURBSComponent.min.js +2 -2
  27. package/dist/assets/components/ParticleSystemsComponent.js +2 -2
  28. package/dist/assets/components/ParticleSystemsComponent.min.js +2 -2
  29. package/dist/assets/components/PickingComponent.js +2 -2
  30. package/dist/assets/components/PickingComponent.min.js +2 -2
  31. package/dist/assets/components/RigidBodyPhysicsComponent.js +2 -2
  32. package/dist/assets/components/RigidBodyPhysicsComponent.min.js +2 -2
  33. package/dist/assets/components/ScriptingComponent.js +3 -3
  34. package/dist/assets/components/ScriptingComponent.min.js +2 -2
  35. package/dist/assets/components/TextComponent.js +48 -29
  36. package/dist/assets/components/TextComponent.min.js +2 -2
  37. package/dist/assets/components/TextureProjectionComponent.js +2 -2
  38. package/dist/assets/components/TextureProjectionComponent.min.js +2 -2
  39. package/dist/assets/components/Texturing3DComponent.js +10 -10
  40. package/dist/assets/components/Texturing3DComponent.min.js +2 -2
  41. package/dist/assets/components/VolumeRenderingComponent.js +2 -2
  42. package/dist/assets/components/VolumeRenderingComponent.min.js +2 -2
  43. package/dist/assets/components/WebXRComponent.js +2 -2
  44. package/dist/assets/components/WebXRComponent.min.js +2 -2
  45. package/dist/assets/components/X_ITEComponent.js +2 -2
  46. package/dist/assets/components/X_ITEComponent.min.js +2 -2
  47. package/dist/example.html +1 -1
  48. package/dist/x_ite.css +1 -1
  49. package/dist/x_ite.d.ts +70 -20
  50. package/dist/x_ite.js +289 -280
  51. package/dist/x_ite.min.js +2 -2
  52. package/dist/x_ite.min.mjs +2 -2
  53. package/dist/x_ite.mjs +288 -278
  54. package/dist/x_ite.zip +0 -0
  55. package/package.json +3 -3
@@ -1,5 +1,5 @@
1
- /* X_ITE v14.1.4 */
2
- const __X_ITE_X3D__ = window [Symbol .for ("X_ITE.X3D-14.1.4")];
1
+ /* X_ITE v14.2.0 */
2
+ const __X_ITE_X3D__ = window [Symbol .for ("X_ITE.X3D-14.2.0")];
3
3
  /******/ (() => { // webpackBootstrap
4
4
  /******/ "use strict";
5
5
  /******/ // The require scope
@@ -1,2 +1,2 @@
1
- /* X_ITE v14.1.4 */
2
- const t=window[Symbol.for("X_ITE.X3D-14.1.4")];(()=>{var e={n:t=>{var i=t&&t.__esModule?()=>t.default:()=>t;return e.d(i,{a:i}),i},d:(t,i)=>{for(var r in i)e.o(i,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:i[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)};const i=t.Components;var r=e.n(i);const n=t.Fields;var a=e.n(n);const o=t.X3DFieldDefinition;var s=e.n(o);const u=t.FieldDefinitionArray;var h=e.n(u);const l=t.X3DNode;var c=e.n(l);const p=t.X3DLightNode;var w=e.n(p);const g=t.X3DConstants;var d=e.n(g);const x=t.X3DCast;var m=e.n(x);const f=t.TraverseType;var _=e.n(f);const S=t.Matrix4;var T=e.n(S);const M=t.Namespace;var O=e.n(M);function F(t){w().call(this,t),this.addType(d().X3DTextureProjectorNode),this._location.setUnit("length"),this._nearDistance.setUnit("length"),this._farDistance.setUnit("length"),this._location.setUnit("length")}Object.assign(Object.setPrototypeOf(F.prototype,w().prototype),{initialize(){w().prototype.initialize.call(this),this._nearDistance.addInterest("set_nearDistance__",this),this._farDistance.addInterest("set_farDistance__",this),this._texture.addInterest("set_texture__",this),this.set_nearDistance__(),this.set_farDistance__(),this.set_texture__()},getLightKey(){return this.lightKey},getGlobal(){return this._global.getValue()},getLocation(){return this._location.getValue()},getDirection(){return this._direction.getValue()},getNearDistance(){return this.nearDistance},getNearParameter(){return this.nearParameter},getFarDistance(){return this.farDistance},getFarParameter(){return this.farParameter},getTexture(){return this.textureNode},getBiasMatrix:(()=>{const t=new(T())(.5,0,0,0,0,.5,0,0,0,0,.5,0,.5,.5,.5,1);return function(){return t}})(),straightenHorizon(t){return t.straighten(this._upVector.getValue())},set_nearDistance__(){const t=this._nearDistance.getValue();this.nearDistance=t<0?.125:t,this.nearParameter=t<0?0:-1},set_farDistance__(){const t=this._farDistance.getValue();this.farDistance=t<0?1e5:t,this.farParameter=t<0?1:2},set_texture__(){this.textureNode?.removeInterest("set_textureNode__",this),this.textureNode=m()(d().X3DTexture2DNode,this._texture),this.textureNode?.addInterest("set_textureNode__",this),this.setEnabled(!!this.textureNode),this.set_textureNode__(),this.set_on__()},set_textureNode__(){this.lightKey=`[3.${this.textureNode?.isLinear()?1:0}]`,this.textureNode?this._aspectRatio=this.textureNode.getWidth()/this.textureNode.getHeight():this._aspectRatio=1},push(t,e){w().prototype.push.call(this,t,e),this.textureNode?.traverse(_().DISPLAY,t)}}),Object.defineProperties(F,c().getStaticProperties("X3DTextureProjectorNode","TextureProjection",4));const y=F,V=O().add("X3DTextureProjectorNode",y),P=t.Camera;var b=e.n(P);const D=t.Vector3;var v=e.n(D);const j=t.Rotation4;var N=e.n(j);const X=t.MatrixStack;var I=e.n(X);const R=t.ObjectCache;var A=e.n(R);const z=A()(U);function U(){this.projectionMatrix=new(T()),this.modelViewMatrix=new(I())(T()),this.modelMatrix=new(T()),this.invTextureSpaceMatrix=new(T()),this.invTextureSpaceProjectionMatrix=new(T()),this.location=new(v()),this.locationArray=new Float32Array(3),this.direction=new(v()),this.rotation=new(N()),this.matrix=new(T()),this.matrixArray=new Float32Array(16),this.textureMatrix=new(T())}function Y(t){V.call(this,t),this.addType(d().TextureProjector),this._fieldOfView.setUnit("angle"),t.getSpecificationVersion()<=4&&(this._upVector=new(v())(0,0,1))}Object.assign(U.prototype,{set(t,e,i){this.browser=t.getBrowser(),this.lightNode=t,this.global=t.getGlobal(),this.shadowMapRendered=!1,this.modelViewMatrix.push(i),this.textureMatrix.assign(t.getTexture().getMatrix())},renderShadowMap(t){if(this.shadowMapRendered)return;this.shadowMapRendered=!0;const e=this.lightNode,i=t.getCameraSpaceMatrixArray(),r=this.modelMatrix.assign(this.modelViewMatrix.get()).multRight(i),n=this.invTextureSpaceMatrix.assign(this.global?r:T().IDENTITY);this.rotation.setFromToVec(v().Z_AXIS,this.direction.assign(e.getDirection()).negate()),e.straightenHorizon(this.rotation),n.translate(e.getLocation()),n.rotate(this.rotation),n.inverse();const a=e.getTexture().getWidth(),o=e.getTexture().getHeight(),s=e.getNearDistance(),u=e.getFarDistance(),h=e.getFieldOfView();b().perspective(h,s,u,a,o,this.projectionMatrix),this.global||n.multLeft(r.inverse()),this.invTextureSpaceProjectionMatrix.assign(n).multRight(this.projectionMatrix).multRight(e.getBiasMatrix()).multRight(this.textureMatrix),this.modelViewMatrix.get().multVecMatrix(this.location.assign(e._location.getValue())),this.locationArray.set(this.location)},setGlobalVariables(t){this.matrix.assign(t.getView()?.inverse??T().IDENTITY).multRight(t.getCameraSpaceMatrixArray()).multRight(this.invTextureSpaceProjectionMatrix),this.matrixArray.set(this.matrix)},setShaderUniforms(t,e,i){const r=e.numTextureProjectors++,n=e.x3d_TextureProjector[r];if(!n)return;const a=this.lightNode,o=a.getTexture(),s=this.global?this.textureUnit??=this.browser.popGlobalTextureUnit():this.browser.popTextureUnit();if(t.activeTexture(t.TEXTURE0+s),t.bindTexture(t.TEXTURE_2D,o.getTexture()),t.uniform1i(n.texture,s),e.hasTextureProjector(r,this))return;const u=a.getNearParameter(),h=a.getFarParameter();t.uniform3f(n.color,...a.getColor()),t.uniform1f(n.intensity,a.getIntensity()),t.uniform3fv(n.location,this.locationArray),t.uniform2f(n.params,u,h),t.uniformMatrix4fv(n.matrix,!1,this.matrixArray)},dispose(){this.global&&(this.textureUnit=void 0),this.modelViewMatrix.clear(),z.push(this)}}),Object.assign(Object.setPrototypeOf(Y.prototype,V.prototype),{initialize(){V.prototype.initialize.call(this)},getFieldOfView(){const t=this._fieldOfView.getValue();return t>0&&t<Math.PI?t:Math.PI/4},getLights:()=>z}),Object.defineProperties(Y,{...c().getStaticProperties("TextureProjector","TextureProjection",2,"children","4.0"),fieldDefinitions:{value:new(h())([new(s())(d().inputOutput,"metadata",new(a().SFNode)),new(s())(d().inputOutput,"description",new(a().SFString)),new(s())(d().inputOutput,"global",new(a().SFBool)(!0)),new(s())(d().inputOutput,"on",new(a().SFBool)(!0)),new(s())(d().inputOutput,"color",new(a().SFColor)(1,1,1)),new(s())(d().inputOutput,"intensity",new(a().SFFloat)(1)),new(s())(d().inputOutput,"ambientIntensity",new(a().SFFloat)),new(s())(d().inputOutput,"location",new(a().SFVec3f)),new(s())(d().inputOutput,"direction",new(a().SFVec3f)(0,0,1)),new(s())(d().inputOutput,"upVector",new(a().SFVec3f)(0,1,0)),new(s())(d().inputOutput,"fieldOfView",new(a().SFFloat)(.785398)),new(s())(d().inputOutput,"nearDistance",new(a().SFFloat)(-1)),new(s())(d().inputOutput,"farDistance",new(a().SFFloat)(-1)),new(s())(d().outputOnly,"aspectRatio",new(a().SFFloat)),new(s())(d().inputOutput,"texture",new(a().SFNode)),new(s())(d().inputOutput,"shadows",new(a().SFBool)),new(s())(d().inputOutput,"shadowColor",new(a().SFColor)),new(s())(d().inputOutput,"shadowIntensity",new(a().SFFloat)(1)),new(s())(d().inputOutput,"shadowBias",new(a().SFFloat)(.005)),new(s())(d().initializeOnly,"shadowMapSize",new(a().SFInt32)(1024))]),enumerable:!0}});const C=Y,E=O().add("TextureProjector",C),B=A()(L);function L(){this.projectionMatrix=new(T()),this.modelViewMatrix=new(I())(T()),this.modelMatrix=new(T()),this.invTextureSpaceMatrix=new(T()),this.location=new(v()),this.locationArray=new Float32Array(3),this.invTextureSpaceProjectionMatrix=new(T()),this.direction=new(v()),this.rotation=new(N()),this.matrix=new(T()),this.matrixArray=new Float32Array(16),this.textureMatrix=new(T())}function G(t){V.call(this,t),this.addType(d().TextureProjectorParallel),this._fieldOfView.setUnit("length"),t.getSpecificationVersion()<=4&&(this._upVector=new(v())(0,0,1))}Object.assign(L.prototype,{set(t,e,i){this.browser=t.getBrowser(),this.lightNode=t,this.global=t.getGlobal(),this.shadowMapRendered=!1,this.modelViewMatrix.push(i),this.textureMatrix.assign(t.getTexture().getMatrix())},renderShadowMap(t){if(this.shadowMapRendered)return;this.shadowMapRendered=!0;const e=this.lightNode,i=t.getCameraSpaceMatrixArray(),r=this.modelMatrix.assign(this.modelViewMatrix.get()).multRight(i),n=this.invTextureSpaceMatrix.assign(this.global?r:T().IDENTITY);this.rotation.setFromToVec(v().Z_AXIS,this.direction.assign(e.getDirection()).negate()),e.straightenHorizon(this.rotation),n.translate(e.getLocation()),n.rotate(this.rotation),n.inverse();const a=e.getTexture().getWidth()/e.getTexture().getHeight(),o=e.getMinimumX(),s=e.getMaximumX(),u=e.getMinimumY(),h=e.getMaximumY(),l=e.getSizeX(),c=e.getSizeY(),p=e.getNearDistance(),w=e.getFarDistance();if(a>l/c){const t=(o+s)/2,e=c*a/2;b().ortho(t-e,t+e,u,h,p,w,this.projectionMatrix)}else{const t=(u+h)/2,e=l/a/2;b().ortho(o,s,t-e,t+e,p,w,this.projectionMatrix)}this.global||n.multLeft(r.inverse()),this.invTextureSpaceProjectionMatrix.assign(n).multRight(this.projectionMatrix).multRight(e.getBiasMatrix()).multRight(this.textureMatrix),this.modelViewMatrix.get().multVecMatrix(this.location.assign(e._location.getValue())),this.locationArray.set(this.location)},setGlobalVariables(t){this.matrix.assign(t.getView()?.inverse??T().IDENTITY).multRight(t.getCameraSpaceMatrixArray()).multRight(this.invTextureSpaceProjectionMatrix),this.matrixArray.set(this.matrix)},setShaderUniforms(t,e,i){const r=e.numTextureProjectors++,n=e.x3d_TextureProjector[r];if(!n)return;const a=this.lightNode,o=a.getTexture(),s=this.global?this.textureUnit??=this.browser.popGlobalTextureUnit():this.browser.popTextureUnit();if(t.activeTexture(t.TEXTURE0+s),t.bindTexture(t.TEXTURE_2D,o.getTexture()),t.uniform1i(n.texture,s),e.hasTextureProjector(r,this))return;const u=a.getNearParameter(),h=a.getFarParameter();t.uniform3f(n.color,...a.getColor()),t.uniform1f(n.intensity,a.getIntensity()),t.uniform3fv(n.location,this.locationArray),t.uniform2f(n.params,u,h),t.uniformMatrix4fv(n.matrix,!1,this.matrixArray)},dispose(){this.global&&(this.textureUnit=void 0),this.modelViewMatrix.clear(),B.push(this)}}),Object.assign(Object.setPrototypeOf(G.prototype,V.prototype),{initialize(){V.prototype.initialize.call(this),this._fieldOfView.addInterest("set_fieldOfView___",this),this.set_fieldOfView___()},set_fieldOfView___(){this.minimumX=this._fieldOfView[0],this.minimumY=this._fieldOfView[1],this.maximumX=this._fieldOfView[2],this.maximumY=this._fieldOfView[3],this.sizeX=this.maximumX-this.minimumX,this.sizeY=this.maximumY-this.minimumY},getMinimumX(){return this.minimumX},getMinimumY(){return this.minimumY},getMaximumX(){return this.maximumX},getMaximumY(){return this.maximumY},getSizeX(){return this.sizeX},getSizeY(){return this.sizeY},getLights:()=>B}),Object.defineProperties(G,{...c().getStaticProperties("TextureProjectorParallel","TextureProjection",2,"children","4.0"),fieldDefinitions:{value:new(h())([new(s())(d().inputOutput,"metadata",new(a().SFNode)),new(s())(d().inputOutput,"description",new(a().SFString)),new(s())(d().inputOutput,"global",new(a().SFBool)(!0)),new(s())(d().inputOutput,"on",new(a().SFBool)(!0)),new(s())(d().inputOutput,"color",new(a().SFColor)(1,1,1)),new(s())(d().inputOutput,"intensity",new(a().SFFloat)(1)),new(s())(d().inputOutput,"ambientIntensity",new(a().SFFloat)),new(s())(d().inputOutput,"location",new(a().SFVec3f)),new(s())(d().inputOutput,"direction",new(a().SFVec3f)(0,0,1)),new(s())(d().inputOutput,"upVector",new(a().SFVec3f)(0,1,0)),new(s())(d().inputOutput,"fieldOfView",new(a().SFVec4f)(-1,-1,1,1)),new(s())(d().inputOutput,"nearDistance",new(a().SFFloat)(-1)),new(s())(d().inputOutput,"farDistance",new(a().SFFloat)(-1)),new(s())(d().outputOnly,"aspectRatio",new(a().SFFloat)),new(s())(d().inputOutput,"texture",new(a().SFNode)),new(s())(d().inputOutput,"shadows",new(a().SFBool)),new(s())(d().inputOutput,"shadowColor",new(a().SFColor)),new(s())(d().inputOutput,"shadowIntensity",new(a().SFFloat)(1)),new(s())(d().inputOutput,"shadowBias",new(a().SFFloat)(.005)),new(s())(d().initializeOnly,"shadowMapSize",new(a().SFInt32)(1024))]),enumerable:!0}});const H=G,K=O().add("TextureProjectorParallel",H);r().add({name:"TextureProjection",concreteNodes:[E,K],abstractNodes:[V]});O().add("TextureProjectionComponent",void 0)})();
1
+ /* X_ITE v14.2.0 */
2
+ const t=window[Symbol.for("X_ITE.X3D-14.2.0")];(()=>{var e={n:t=>{var i=t&&t.__esModule?()=>t.default:()=>t;return e.d(i,{a:i}),i},d:(t,i)=>{for(var r in i)e.o(i,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:i[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)};const i=t.Components;var r=e.n(i);const n=t.Fields;var a=e.n(n);const o=t.X3DFieldDefinition;var s=e.n(o);const u=t.FieldDefinitionArray;var h=e.n(u);const l=t.X3DNode;var c=e.n(l);const p=t.X3DLightNode;var w=e.n(p);const g=t.X3DConstants;var d=e.n(g);const x=t.X3DCast;var m=e.n(x);const f=t.TraverseType;var _=e.n(f);const S=t.Matrix4;var T=e.n(S);const M=t.Namespace;var O=e.n(M);function F(t){w().call(this,t),this.addType(d().X3DTextureProjectorNode),this._location.setUnit("length"),this._nearDistance.setUnit("length"),this._farDistance.setUnit("length"),this._location.setUnit("length")}Object.assign(Object.setPrototypeOf(F.prototype,w().prototype),{initialize(){w().prototype.initialize.call(this),this._nearDistance.addInterest("set_nearDistance__",this),this._farDistance.addInterest("set_farDistance__",this),this._texture.addInterest("set_texture__",this),this.set_nearDistance__(),this.set_farDistance__(),this.set_texture__()},getLightKey(){return this.lightKey},getGlobal(){return this._global.getValue()},getLocation(){return this._location.getValue()},getDirection(){return this._direction.getValue()},getNearDistance(){return this.nearDistance},getNearParameter(){return this.nearParameter},getFarDistance(){return this.farDistance},getFarParameter(){return this.farParameter},getTexture(){return this.textureNode},getBiasMatrix:(()=>{const t=new(T())(.5,0,0,0,0,.5,0,0,0,0,.5,0,.5,.5,.5,1);return function(){return t}})(),straightenHorizon(t){return t.straighten(this._upVector.getValue())},set_nearDistance__(){const t=this._nearDistance.getValue();this.nearDistance=t<0?.125:t,this.nearParameter=t<0?0:-1},set_farDistance__(){const t=this._farDistance.getValue();this.farDistance=t<0?1e5:t,this.farParameter=t<0?1:2},set_texture__(){this.textureNode?.removeInterest("set_textureNode__",this),this.textureNode=m()(d().X3DTexture2DNode,this._texture),this.textureNode?.addInterest("set_textureNode__",this),this.setEnabled(!!this.textureNode),this.set_textureNode__(),this.set_on__()},set_textureNode__(){this.lightKey=`[3.${this.textureNode?.isLinear()?1:0}]`,this.textureNode?this._aspectRatio=this.textureNode.getWidth()/this.textureNode.getHeight():this._aspectRatio=1},push(t,e){w().prototype.push.call(this,t,e),this.textureNode?.traverse(_().DISPLAY,t)}}),Object.defineProperties(F,c().getStaticProperties("X3DTextureProjectorNode","TextureProjection",4));const y=F,V=O().add("X3DTextureProjectorNode",y),P=t.Camera;var b=e.n(P);const D=t.Vector3;var v=e.n(D);const j=t.Rotation4;var N=e.n(j);const X=t.MatrixStack;var I=e.n(X);const R=t.ObjectCache;var A=e.n(R);const z=A()(U);function U(){this.projectionMatrix=new(T()),this.modelViewMatrix=new(I())(T()),this.modelMatrix=new(T()),this.invTextureSpaceMatrix=new(T()),this.invTextureSpaceProjectionMatrix=new(T()),this.location=new(v()),this.locationArray=new Float32Array(3),this.direction=new(v()),this.rotation=new(N()),this.matrix=new(T()),this.matrixArray=new Float32Array(16),this.textureMatrix=new(T())}function Y(t){V.call(this,t),this.addType(d().TextureProjector),this._fieldOfView.setUnit("angle"),t.getSpecificationVersion()<=4&&(this._upVector=new(v())(0,0,1))}Object.assign(U.prototype,{set(t,e,i){this.browser=t.getBrowser(),this.lightNode=t,this.global=t.getGlobal(),this.shadowMapRendered=!1,this.modelViewMatrix.push(i),this.textureMatrix.assign(t.getTexture().getMatrix())},renderShadowMap(t){if(this.shadowMapRendered)return;this.shadowMapRendered=!0;const e=this.lightNode,i=t.getCameraSpaceMatrixArray(),r=this.modelMatrix.assign(this.modelViewMatrix.get()).multRight(i),n=this.invTextureSpaceMatrix.assign(this.global?r:T().IDENTITY);this.rotation.setFromToVec(v().Z_AXIS,this.direction.assign(e.getDirection()).negate()),e.straightenHorizon(this.rotation),n.translate(e.getLocation()),n.rotate(this.rotation),n.inverse();const a=e.getTexture().getWidth(),o=e.getTexture().getHeight(),s=e.getNearDistance(),u=e.getFarDistance(),h=e.getFieldOfView();b().perspective(h,s,u,a,o,this.projectionMatrix),this.global||n.multLeft(r.inverse()),this.invTextureSpaceProjectionMatrix.assign(n).multRight(this.projectionMatrix).multRight(e.getBiasMatrix()).multRight(this.textureMatrix),this.modelViewMatrix.get().multVecMatrix(this.location.assign(e._location.getValue())),this.locationArray.set(this.location)},setGlobalVariables(t){this.matrix.assign(t.getView()?.inverse??T().IDENTITY).multRight(t.getCameraSpaceMatrixArray()).multRight(this.invTextureSpaceProjectionMatrix),this.matrixArray.set(this.matrix)},setShaderUniforms(t,e,i){const r=e.numTextureProjectors++,n=e.x3d_TextureProjector[r];if(!n)return;const a=this.lightNode,o=a.getTexture(),s=this.global?this.textureUnit??=this.browser.popGlobalTextureUnit():this.browser.popTextureUnit();if(t.activeTexture(t.TEXTURE0+s),t.bindTexture(t.TEXTURE_2D,o.getTexture()),t.uniform1i(n.texture,s),e.hasTextureProjector(r,this))return;const u=a.getNearParameter(),h=a.getFarParameter();t.uniform3f(n.color,...a.getColor()),t.uniform1f(n.intensity,a.getIntensity()),t.uniform3fv(n.location,this.locationArray),t.uniform2f(n.params,u,h),t.uniformMatrix4fv(n.matrix,!1,this.matrixArray)},dispose(){this.global&&(this.textureUnit=void 0),this.modelViewMatrix.clear(),z.push(this)}}),Object.assign(Object.setPrototypeOf(Y.prototype,V.prototype),{initialize(){V.prototype.initialize.call(this)},getFieldOfView(){const t=this._fieldOfView.getValue();return t>0&&t<Math.PI?t:Math.PI/4},getLights:()=>z}),Object.defineProperties(Y,{...c().getStaticProperties("TextureProjector","TextureProjection",2,"children","4.0"),fieldDefinitions:{value:new(h())([new(s())(d().inputOutput,"metadata",new(a().SFNode)),new(s())(d().inputOutput,"description",new(a().SFString)),new(s())(d().inputOutput,"global",new(a().SFBool)(!0)),new(s())(d().inputOutput,"on",new(a().SFBool)(!0)),new(s())(d().inputOutput,"color",new(a().SFColor)(1,1,1)),new(s())(d().inputOutput,"intensity",new(a().SFFloat)(1)),new(s())(d().inputOutput,"ambientIntensity",new(a().SFFloat)),new(s())(d().inputOutput,"location",new(a().SFVec3f)),new(s())(d().inputOutput,"direction",new(a().SFVec3f)(0,0,1)),new(s())(d().inputOutput,"upVector",new(a().SFVec3f)(0,1,0)),new(s())(d().inputOutput,"fieldOfView",new(a().SFFloat)(.785398)),new(s())(d().inputOutput,"nearDistance",new(a().SFFloat)(-1)),new(s())(d().inputOutput,"farDistance",new(a().SFFloat)(-1)),new(s())(d().outputOnly,"aspectRatio",new(a().SFFloat)),new(s())(d().inputOutput,"texture",new(a().SFNode)),new(s())(d().inputOutput,"shadows",new(a().SFBool)),new(s())(d().inputOutput,"shadowColor",new(a().SFColor)),new(s())(d().inputOutput,"shadowIntensity",new(a().SFFloat)(1)),new(s())(d().inputOutput,"shadowBias",new(a().SFFloat)(.005)),new(s())(d().initializeOnly,"shadowMapSize",new(a().SFInt32)(1024))]),enumerable:!0}});const C=Y,E=O().add("TextureProjector",C),B=A()(L);function L(){this.projectionMatrix=new(T()),this.modelViewMatrix=new(I())(T()),this.modelMatrix=new(T()),this.invTextureSpaceMatrix=new(T()),this.location=new(v()),this.locationArray=new Float32Array(3),this.invTextureSpaceProjectionMatrix=new(T()),this.direction=new(v()),this.rotation=new(N()),this.matrix=new(T()),this.matrixArray=new Float32Array(16),this.textureMatrix=new(T())}function G(t){V.call(this,t),this.addType(d().TextureProjectorParallel),this._fieldOfView.setUnit("length"),t.getSpecificationVersion()<=4&&(this._upVector=new(v())(0,0,1))}Object.assign(L.prototype,{set(t,e,i){this.browser=t.getBrowser(),this.lightNode=t,this.global=t.getGlobal(),this.shadowMapRendered=!1,this.modelViewMatrix.push(i),this.textureMatrix.assign(t.getTexture().getMatrix())},renderShadowMap(t){if(this.shadowMapRendered)return;this.shadowMapRendered=!0;const e=this.lightNode,i=t.getCameraSpaceMatrixArray(),r=this.modelMatrix.assign(this.modelViewMatrix.get()).multRight(i),n=this.invTextureSpaceMatrix.assign(this.global?r:T().IDENTITY);this.rotation.setFromToVec(v().Z_AXIS,this.direction.assign(e.getDirection()).negate()),e.straightenHorizon(this.rotation),n.translate(e.getLocation()),n.rotate(this.rotation),n.inverse();const a=e.getTexture().getWidth()/e.getTexture().getHeight(),o=e.getMinimumX(),s=e.getMaximumX(),u=e.getMinimumY(),h=e.getMaximumY(),l=e.getSizeX(),c=e.getSizeY(),p=e.getNearDistance(),w=e.getFarDistance();if(a>l/c){const t=(o+s)/2,e=c*a/2;b().ortho(t-e,t+e,u,h,p,w,this.projectionMatrix)}else{const t=(u+h)/2,e=l/a/2;b().ortho(o,s,t-e,t+e,p,w,this.projectionMatrix)}this.global||n.multLeft(r.inverse()),this.invTextureSpaceProjectionMatrix.assign(n).multRight(this.projectionMatrix).multRight(e.getBiasMatrix()).multRight(this.textureMatrix),this.modelViewMatrix.get().multVecMatrix(this.location.assign(e._location.getValue())),this.locationArray.set(this.location)},setGlobalVariables(t){this.matrix.assign(t.getView()?.inverse??T().IDENTITY).multRight(t.getCameraSpaceMatrixArray()).multRight(this.invTextureSpaceProjectionMatrix),this.matrixArray.set(this.matrix)},setShaderUniforms(t,e,i){const r=e.numTextureProjectors++,n=e.x3d_TextureProjector[r];if(!n)return;const a=this.lightNode,o=a.getTexture(),s=this.global?this.textureUnit??=this.browser.popGlobalTextureUnit():this.browser.popTextureUnit();if(t.activeTexture(t.TEXTURE0+s),t.bindTexture(t.TEXTURE_2D,o.getTexture()),t.uniform1i(n.texture,s),e.hasTextureProjector(r,this))return;const u=a.getNearParameter(),h=a.getFarParameter();t.uniform3f(n.color,...a.getColor()),t.uniform1f(n.intensity,a.getIntensity()),t.uniform3fv(n.location,this.locationArray),t.uniform2f(n.params,u,h),t.uniformMatrix4fv(n.matrix,!1,this.matrixArray)},dispose(){this.global&&(this.textureUnit=void 0),this.modelViewMatrix.clear(),B.push(this)}}),Object.assign(Object.setPrototypeOf(G.prototype,V.prototype),{initialize(){V.prototype.initialize.call(this),this._fieldOfView.addInterest("set_fieldOfView___",this),this.set_fieldOfView___()},set_fieldOfView___(){this.minimumX=this._fieldOfView[0],this.minimumY=this._fieldOfView[1],this.maximumX=this._fieldOfView[2],this.maximumY=this._fieldOfView[3],this.sizeX=this.maximumX-this.minimumX,this.sizeY=this.maximumY-this.minimumY},getMinimumX(){return this.minimumX},getMinimumY(){return this.minimumY},getMaximumX(){return this.maximumX},getMaximumY(){return this.maximumY},getSizeX(){return this.sizeX},getSizeY(){return this.sizeY},getLights:()=>B}),Object.defineProperties(G,{...c().getStaticProperties("TextureProjectorParallel","TextureProjection",2,"children","4.0"),fieldDefinitions:{value:new(h())([new(s())(d().inputOutput,"metadata",new(a().SFNode)),new(s())(d().inputOutput,"description",new(a().SFString)),new(s())(d().inputOutput,"global",new(a().SFBool)(!0)),new(s())(d().inputOutput,"on",new(a().SFBool)(!0)),new(s())(d().inputOutput,"color",new(a().SFColor)(1,1,1)),new(s())(d().inputOutput,"intensity",new(a().SFFloat)(1)),new(s())(d().inputOutput,"ambientIntensity",new(a().SFFloat)),new(s())(d().inputOutput,"location",new(a().SFVec3f)),new(s())(d().inputOutput,"direction",new(a().SFVec3f)(0,0,1)),new(s())(d().inputOutput,"upVector",new(a().SFVec3f)(0,1,0)),new(s())(d().inputOutput,"fieldOfView",new(a().SFVec4f)(-1,-1,1,1)),new(s())(d().inputOutput,"nearDistance",new(a().SFFloat)(-1)),new(s())(d().inputOutput,"farDistance",new(a().SFFloat)(-1)),new(s())(d().outputOnly,"aspectRatio",new(a().SFFloat)),new(s())(d().inputOutput,"texture",new(a().SFNode)),new(s())(d().inputOutput,"shadows",new(a().SFBool)),new(s())(d().inputOutput,"shadowColor",new(a().SFColor)),new(s())(d().inputOutput,"shadowIntensity",new(a().SFFloat)(1)),new(s())(d().inputOutput,"shadowBias",new(a().SFFloat)(.005)),new(s())(d().initializeOnly,"shadowMapSize",new(a().SFInt32)(1024))]),enumerable:!0}});const H=G,K=O().add("TextureProjectorParallel",H);r().add({name:"TextureProjection",concreteNodes:[E,K],abstractNodes:[V]});O().add("TextureProjectionComponent",void 0)})();
@@ -1,9 +1,9 @@
1
- /* X_ITE v14.1.4 */
2
- const __X_ITE_X3D__ = window [Symbol .for ("X_ITE.X3D-14.1.4")];
1
+ /* X_ITE v14.2.0 */
2
+ const __X_ITE_X3D__ = window [Symbol .for ("X_ITE.X3D-14.2.0")];
3
3
  /******/ (() => { // webpackBootstrap
4
4
  /******/ var __webpack_modules__ = ({
5
5
 
6
- /***/ 734
6
+ /***/ 168
7
7
  (module, __unused_webpack_exports, __webpack_require__) {
8
8
 
9
9
  var __webpack_dirname__ = "/";
@@ -40,7 +40,7 @@ var Ib=[cx,_q,cr,Yr,as,fs,hs,Hu,Su,cx,cx,cx,cx,cx,cx,cx];var Jb=[dx,si,gi,Wh,Kh,
40
40
 
41
41
  /***/ },
42
42
 
43
- /***/ 40
43
+ /***/ 674
44
44
  (module, __unused_webpack_exports, __webpack_require__) {
45
45
 
46
46
  var __webpack_dirname__ = "/";
@@ -77,7 +77,7 @@ var _a=[yj,od,ef,yj];var $a=[zj,Li,di,bi,Kb,Lb,Mb,Nb,Rc,Sc,Uc,jd,xd,Ye,lf,yd,zd,
77
77
 
78
78
  /***/ },
79
79
 
80
- /***/ 820
80
+ /***/ 514
81
81
  (module, __unused_webpack_exports, __webpack_require__) {
82
82
 
83
83
  /*! dicom-parser - 1.8.12 - 2023-02-20 | (c) 2017 Chris Hafey | https://github.com/cornerstonejs/dicomParser */
@@ -4035,7 +4035,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_zlib__;
4035
4035
 
4036
4036
  /***/ },
4037
4037
 
4038
- /***/ 256
4038
+ /***/ 234
4039
4039
  (module) {
4040
4040
 
4041
4041
  /* -*- tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- /
@@ -7179,10 +7179,10 @@ var Decoder = class _Decoder {
7179
7179
  const external_X_ITE_X3D_DEVELOPMENT_namespaceObject = __X_ITE_X3D__ .DEVELOPMENT;
7180
7180
  var external_X_ITE_X3D_DEVELOPMENT_default = /*#__PURE__*/__webpack_require__.n(external_X_ITE_X3D_DEVELOPMENT_namespaceObject);
7181
7181
  ;// ./src/x_ite/Browser/Texturing3D/DICOMParser.js
7182
- /* provided dependency */ var dicomParser = __webpack_require__(820);
7183
- /* provided dependency */ var jpegDecode = __webpack_require__(256);
7184
- /* provided dependency */ var CharLS = __webpack_require__(734);
7185
- /* provided dependency */ var OpenJPEG = __webpack_require__(40);
7182
+ /* provided dependency */ var dicomParser = __webpack_require__(514);
7183
+ /* provided dependency */ var jpegDecode = __webpack_require__(234);
7184
+ /* provided dependency */ var CharLS = __webpack_require__(168);
7185
+ /* provided dependency */ var OpenJPEG = __webpack_require__(674);
7186
7186
 
7187
7187
 
7188
7188