x_ite 10.4.0 → 10.4.2

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 (51) hide show
  1. package/README.md +4 -4
  2. package/dist/X3DUOM.xml +10 -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 +7 -7
  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/GeospatialComponent.js +2 -2
  16. package/dist/assets/components/GeospatialComponent.min.js +2 -2
  17. package/dist/assets/components/HAnimComponent.js +2 -2
  18. package/dist/assets/components/HAnimComponent.min.js +2 -2
  19. package/dist/assets/components/KeyDeviceSensorComponent.js +2 -2
  20. package/dist/assets/components/KeyDeviceSensorComponent.min.js +2 -2
  21. package/dist/assets/components/LayoutComponent.js +3 -3
  22. package/dist/assets/components/LayoutComponent.min.js +2 -2
  23. package/dist/assets/components/NURBSComponent.js +88 -76
  24. package/dist/assets/components/NURBSComponent.min.js +2 -2
  25. package/dist/assets/components/ParticleSystemsComponent.js +2 -2
  26. package/dist/assets/components/ParticleSystemsComponent.min.js +2 -2
  27. package/dist/assets/components/PickingComponent.js +2 -2
  28. package/dist/assets/components/PickingComponent.min.js +2 -2
  29. package/dist/assets/components/RigidBodyPhysicsComponent.js +2 -2
  30. package/dist/assets/components/RigidBodyPhysicsComponent.min.js +2 -2
  31. package/dist/assets/components/ScriptingComponent.js +2 -2
  32. package/dist/assets/components/ScriptingComponent.min.js +2 -2
  33. package/dist/assets/components/TextComponent.js +6 -8
  34. package/dist/assets/components/TextComponent.min.js +2 -2
  35. package/dist/assets/components/TextureProjectionComponent.js +14 -8
  36. package/dist/assets/components/TextureProjectionComponent.min.js +2 -2
  37. package/dist/assets/components/Texturing3DComponent.js +16 -16
  38. package/dist/assets/components/Texturing3DComponent.min.js +2 -2
  39. package/dist/assets/components/VolumeRenderingComponent.js +2 -2
  40. package/dist/assets/components/VolumeRenderingComponent.min.js +2 -2
  41. package/dist/assets/components/X_ITEComponent.js +87 -54
  42. package/dist/assets/components/X_ITEComponent.min.js +2 -2
  43. package/dist/example.html +1 -1
  44. package/dist/x_ite.css +1 -1
  45. package/dist/x_ite.d.ts +12 -0
  46. package/dist/x_ite.js +743 -877
  47. package/dist/x_ite.min.js +2 -2
  48. package/dist/x_ite.min.mjs +2 -2
  49. package/dist/x_ite.mjs +743 -877
  50. package/dist/x_ite.zip +0 -0
  51. package/package.json +3 -3
@@ -1,5 +1,5 @@
1
- /* X_ITE v10.4.0 */
2
- const __X_ITE_X3D__ = window [Symbol .for ("X_ITE.X3D-10.4.0")];
1
+ /* X_ITE v10.4.2 */
2
+ const __X_ITE_X3D__ = window [Symbol .for ("X_ITE.X3D-10.4.2")];
3
3
  /******/ (() => { // webpackBootstrap
4
4
  /******/ "use strict";
5
5
  /******/ // The require scope
@@ -347,7 +347,7 @@ Object .assign (TextureProjectorContainer .prototype,
347
347
  this .lightNode = lightNode;
348
348
  this .global = lightNode .getGlobal ();
349
349
 
350
- this .modelViewMatrix .pushMatrix (modelViewMatrix);
350
+ this .modelViewMatrix .push (modelViewMatrix);
351
351
  this .textureMatrix .set (... lightNode .getTexture () .getMatrix ());
352
352
  },
353
353
  renderShadowMap (renderObject)
@@ -356,7 +356,7 @@ Object .assign (TextureProjectorContainer .prototype,
356
356
  {
357
357
  const
358
358
  lightNode = this .lightNode,
359
- cameraSpaceMatrix = renderObject .getCameraSpaceMatrix () .get (),
359
+ cameraSpaceMatrix = renderObject .getCameraSpaceMatrixArray (),
360
360
  modelMatrix = this .modelMatrix .assign (this .modelViewMatrix .get ()) .multRight (cameraSpaceMatrix),
361
361
  invTextureSpaceMatrix = this .invTextureSpaceMatrix .assign (this .global ? modelMatrix : (external_X_ITE_X3D_Matrix4_default()).Identity);
362
362
 
@@ -379,7 +379,10 @@ Object .assign (TextureProjectorContainer .prototype,
379
379
  if (!this .global)
380
380
  invTextureSpaceMatrix .multLeft (modelMatrix .inverse ());
381
381
 
382
- this .invTextureSpaceProjectionMatrix .assign (invTextureSpaceMatrix) .multRight (this .projectionMatrix) .multRight (lightNode .getBiasMatrix ());
382
+ this .invTextureSpaceProjectionMatrix
383
+ .assign (invTextureSpaceMatrix)
384
+ .multRight (this .projectionMatrix)
385
+ .multRight (lightNode .getBiasMatrix ());
383
386
 
384
387
  this .matrix .assign (cameraSpaceMatrix) .multRight (this .invTextureSpaceProjectionMatrix) .multRight (this .textureMatrix);
385
388
  this .matrixArray .set (this .matrix);
@@ -578,7 +581,7 @@ Object .assign (TextureProjectorParallelContainer .prototype,
578
581
  this .lightNode = lightNode;
579
582
  this .global = lightNode .getGlobal ();
580
583
 
581
- this .modelViewMatrix .pushMatrix (modelViewMatrix);
584
+ this .modelViewMatrix .push (modelViewMatrix);
582
585
  this .textureMatrix .set (... lightNode .getTexture () .getMatrix ());
583
586
  },
584
587
  renderShadowMap (renderObject)
@@ -587,7 +590,7 @@ Object .assign (TextureProjectorParallelContainer .prototype,
587
590
  {
588
591
  const
589
592
  lightNode = this .lightNode,
590
- cameraSpaceMatrix = renderObject .getCameraSpaceMatrix () .get (),
593
+ cameraSpaceMatrix = renderObject .getCameraSpaceMatrixArray (),
591
594
  modelMatrix = this .modelMatrix .assign (this .modelViewMatrix .get ()) .multRight (cameraSpaceMatrix),
592
595
  invTextureSpaceMatrix = this .invTextureSpaceMatrix .assign (this .global ? modelMatrix : (external_X_ITE_X3D_Matrix4_default()).Identity);
593
596
 
@@ -631,7 +634,10 @@ Object .assign (TextureProjectorParallelContainer .prototype,
631
634
  if (!this .global)
632
635
  invTextureSpaceMatrix .multLeft (modelMatrix .inverse ());
633
636
 
634
- this .invTextureSpaceProjectionMatrix .assign (invTextureSpaceMatrix) .multRight (this .projectionMatrix) .multRight (lightNode .getBiasMatrix ());
637
+ this .invTextureSpaceProjectionMatrix
638
+ .assign (invTextureSpaceMatrix)
639
+ .multRight (this .projectionMatrix)
640
+ .multRight (lightNode .getBiasMatrix ());
635
641
 
636
642
  this .matrix .assign (cameraSpaceMatrix) .multRight (this .invTextureSpaceProjectionMatrix) .multRight (this .textureMatrix);
637
643
  this .matrixArray .set (this .matrix);
@@ -1,2 +1,2 @@
1
- /* X_ITE v10.4.0 */
2
- const t=window[Symbol.for("X_ITE.X3D-10.4.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 o=e.n(n);const a=t.X3DFieldDefinition;var s=e.n(a);const u=t.FieldDefinitionArray;var h=e.n(u);const c=t.X3DNode;var l=e.n(c);const x=t.X3DLightNode;var p=e.n(x);const w=t.X3DConstants;var g=e.n(w);const d=t.X3DCast;var m=e.n(d);const f=t.Vector3;var _=e.n(f);const T=t.Rotation4;var O=e.n(T);const F=t.Matrix4;var M=e.n(F);const S=t.Namespace;var P=e.n(S);function j(t){p().call(this,t),this.addType(g().X3DTextureProjectorNode),this._location.setUnit("length"),this._farDistance.setUnit("length"),this._location.setUnit("length")}Object.assign(Object.setPrototypeOf(j.prototype,p().prototype),{initialize(){p().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:()=>3,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(M())(.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_aspectRatio__",this),this.textureNode=m()(g().X3DTexture2DNode,this._texture),this.textureNode?.addInterest("set_aspectRatio__",this),this.setEnabled(!!this.textureNode),this.set_aspectRatio__(),this.set_on__()},set_aspectRatio__(){this.textureNode?this._aspectRatio=this.textureNode.getWidth()/this.textureNode.getHeight():this._aspectRatio=1}}),Object.defineProperties(j,l().getStaticProperties("X3DTextureProjectorNode","TextureProjection",4));const y=j,D=P().add("X3DTextureProjectorNode",y),V=t.Camera;var b=e.n(V);const v=t.MatrixStack;var N=e.n(v);const X=t.ObjectCache;var U=e.n(X);const z=U()(R);function R(){this.projectionMatrix=new(M()),this.modelViewMatrix=new(N())(M()),this.modelMatrix=new(M()),this.invTextureSpaceMatrix=new(M()),this.invTextureSpaceProjectionMatrix=new(M()),this.location=new(_()),this.locationArray=new Float32Array(3),this.direction=new(_()),this.rotation=new(O()),this.matrix=new(M()),this.matrixArray=new Float32Array(16),this.textureMatrix=new(M())}function I(t){D.call(this,t),this.addType(g().TextureProjector),this._fieldOfView.setUnit("angle")}Object.assign(R.prototype,{set(t,e,i){this.browser=t.getBrowser(),this.lightNode=t,this.global=t.getGlobal(),this.modelViewMatrix.pushMatrix(i),this.textureMatrix.set(...t.getTexture().getMatrix())},renderShadowMap(t){},setGlobalVariables(t){const e=this.lightNode,i=t.getCameraSpaceMatrix().get(),r=this.modelMatrix.assign(this.modelViewMatrix.get()).multRight(i),n=this.invTextureSpaceMatrix.assign(this.global?r:M().Identity);this.rotation.setFromToVec(_().zAxis,this.direction.assign(e.getDirection()).negate()),e.straightenHorizon(this.rotation),n.translate(e.getLocation()),n.rotate(this.rotation),n.inverse();const o=e.getTexture().getWidth(),a=e.getTexture().getHeight(),s=e.getNearDistance(),u=e.getFarDistance(),h=e.getFieldOfView();b().perspective(h,s,u,o,a,this.projectionMatrix),this.global||n.multLeft(r.inverse()),this.invTextureSpaceProjectionMatrix.assign(n).multRight(this.projectionMatrix).multRight(e.getBiasMatrix()),this.matrix.assign(i).multRight(this.invTextureSpaceProjectionMatrix).multRight(this.textureMatrix),this.matrixArray.set(this.matrix),this.modelViewMatrix.get().multVecMatrix(this.location.assign(e._location.getValue())),this.locationArray.set(this.location)},setShaderUniforms(t,e,i){const r=e.numTextureProjectors++,n=this.lightNode,o=n.getTexture(),a=this.global?this.textureUnit=this.textureUnit??this.browser.popTexture2DUnit():this.browser.getTexture2DUnit();if(t.activeTexture(t.TEXTURE0+a),t.bindTexture(t.TEXTURE_2D,o.getTexture()),t.uniform1i(e.x3d_TextureProjectorTexture[r],a),e.hasTextureProjector(r,this))return;const s=n.getNearParameter(),u=n.getFarParameter();t.uniform3f(e.x3d_TextureProjectorColor[r],...n.getColor()),t.uniform1f(e.x3d_TextureProjectorIntensity[r],n.getIntensity()),t.uniform3fv(e.x3d_TextureProjectorLocation[r],this.locationArray),t.uniform3f(e.x3d_TextureProjectorParams[r],s,u,o.isLinear()),t.uniformMatrix4fv(e.x3d_TextureProjectorMatrix[r],!1,this.matrixArray)},dispose(){this.browser.pushTexture2DUnit(this.textureUnit),this.modelViewMatrix.clear(),this.textureUnit=void 0,z.push(this)}}),Object.assign(Object.setPrototypeOf(I.prototype,D.prototype),{initialize(){D.prototype.initialize.call(this)},getFieldOfView(){const t=this._fieldOfView.getValue();return t>0&&t<Math.PI?t:Math.PI/4},getLights:()=>z}),Object.defineProperties(I,{...l().getStaticProperties("TextureProjector","TextureProjection",2,"children","4.0"),fieldDefinitions:{value:new(h())([new(s())(g().inputOutput,"metadata",new(o().SFNode)),new(s())(g().inputOutput,"description",new(o().SFString)),new(s())(g().inputOutput,"global",new(o().SFBool)(!0)),new(s())(g().inputOutput,"on",new(o().SFBool)(!0)),new(s())(g().inputOutput,"color",new(o().SFColor)(1,1,1)),new(s())(g().inputOutput,"intensity",new(o().SFFloat)(1)),new(s())(g().inputOutput,"ambientIntensity",new(o().SFFloat)),new(s())(g().inputOutput,"location",new(o().SFVec3f)),new(s())(g().inputOutput,"direction",new(o().SFVec3f)(0,0,1)),new(s())(g().inputOutput,"upVector",new(o().SFVec3f)(0,0,1)),new(s())(g().inputOutput,"fieldOfView",new(o().SFFloat)(.785398)),new(s())(g().inputOutput,"nearDistance",new(o().SFFloat)(-1)),new(s())(g().inputOutput,"farDistance",new(o().SFFloat)(-1)),new(s())(g().outputOnly,"aspectRatio",new(o().SFFloat)),new(s())(g().inputOutput,"texture",new(o().SFNode)),new(s())(g().inputOutput,"shadows",new(o().SFBool)),new(s())(g().inputOutput,"shadowColor",new(o().SFColor)),new(s())(g().inputOutput,"shadowIntensity",new(o().SFFloat)(1)),new(s())(g().inputOutput,"shadowBias",new(o().SFFloat)(.005)),new(s())(g().initializeOnly,"shadowMapSize",new(o().SFInt32)(1024))]),enumerable:!0}});const A=I,C=P().add("TextureProjector",A),Y=U()(B);function B(){this.projectionMatrix=new(M()),this.modelViewMatrix=new(N())(M()),this.modelMatrix=new(M()),this.invTextureSpaceMatrix=new(M()),this.location=new(_()),this.locationArray=new Float32Array(3),this.invTextureSpaceProjectionMatrix=new(M()),this.direction=new(_()),this.rotation=new(O()),this.matrix=new(M()),this.matrixArray=new Float32Array(16),this.textureMatrix=new(M())}function L(t){D.call(this,t),this.addType(g().TextureProjectorParallel),this._fieldOfView.setUnit("length")}Object.assign(B.prototype,{set(t,e,i){this.browser=t.getBrowser(),this.lightNode=t,this.global=t.getGlobal(),this.modelViewMatrix.pushMatrix(i),this.textureMatrix.set(...t.getTexture().getMatrix())},renderShadowMap(t){},setGlobalVariables(t){const e=this.lightNode,i=t.getCameraSpaceMatrix().get(),r=this.modelMatrix.assign(this.modelViewMatrix.get()).multRight(i),n=this.invTextureSpaceMatrix.assign(this.global?r:M().Identity);this.rotation.setFromToVec(_().zAxis,this.direction.assign(e.getDirection()).negate()),e.straightenHorizon(this.rotation),n.translate(e.getLocation()),n.rotate(this.rotation),n.inverse();const o=e.getTexture().getWidth()/e.getTexture().getHeight(),a=e.getMinimumX(),s=e.getMaximumX(),u=e.getMinimumY(),h=e.getMaximumY(),c=e.getSizeX(),l=e.getSizeY(),x=e.getNearDistance(),p=e.getFarDistance();if(o>c/l){const t=(a+s)/2,e=l*o/2;b().ortho(t-e,t+e,u,h,x,p,this.projectionMatrix)}else{const t=(u+h)/2,e=c/o/2;b().ortho(a,s,t-e,t+e,x,p,this.projectionMatrix)}this.global||n.multLeft(r.inverse()),this.invTextureSpaceProjectionMatrix.assign(n).multRight(this.projectionMatrix).multRight(e.getBiasMatrix()),this.matrix.assign(i).multRight(this.invTextureSpaceProjectionMatrix).multRight(this.textureMatrix),this.matrixArray.set(this.matrix),this.modelViewMatrix.get().multVecMatrix(this.location.assign(e._location.getValue())),this.locationArray.set(this.location)},setShaderUniforms(t,e,i){const r=e.numTextureProjectors++,n=this.lightNode,o=n.getTexture(),a=this.global?this.textureUnit=this.textureUnit??this.browser.popTexture2DUnit():this.browser.getTexture2DUnit();if(t.activeTexture(t.TEXTURE0+a),t.bindTexture(t.TEXTURE_2D,o.getTexture()),t.uniform1i(e.x3d_TextureProjectorTexture[r],a),e.hasTextureProjector(r,this))return;const s=n.getNearParameter(),u=n.getFarParameter();t.uniform3f(e.x3d_TextureProjectorColor[r],...n.getColor()),t.uniform1f(e.x3d_TextureProjectorIntensity[r],n.getIntensity()),t.uniform3fv(e.x3d_TextureProjectorLocation[r],this.locationArray),t.uniform3f(e.x3d_TextureProjectorParams[r],s,u,o.isLinear()),t.uniformMatrix4fv(e.x3d_TextureProjectorMatrix[r],!1,this.matrixArray)},dispose(){this.browser.pushTexture2DUnit(this.textureUnit),this.modelViewMatrix.clear(),this.textureUnit=void 0,Y.push(this)}}),Object.assign(Object.setPrototypeOf(L.prototype,D.prototype),{initialize(){D.prototype.initialize.call(this),this._fieldOfView.addInterest("set_fieldOfView___",this),this.set_fieldOfView___()},set_fieldOfView___(){const t=this._fieldOfView.length;this.minimumX=t>0?this._fieldOfView[0]:-1,this.minimumY=t>1?this._fieldOfView[1]:-1,this.maximumX=t>2?this._fieldOfView[2]:1,this.maximumY=t>3?this._fieldOfView[3]:1,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:()=>Y}),Object.defineProperties(L,{...l().getStaticProperties("TextureProjectorParallel","TextureProjection",2,"children","4.0"),fieldDefinitions:{value:new(h())([new(s())(g().inputOutput,"metadata",new(o().SFNode)),new(s())(g().inputOutput,"description",new(o().SFString)),new(s())(g().inputOutput,"global",new(o().SFBool)(!0)),new(s())(g().inputOutput,"on",new(o().SFBool)(!0)),new(s())(g().inputOutput,"color",new(o().SFColor)(1,1,1)),new(s())(g().inputOutput,"intensity",new(o().SFFloat)(1)),new(s())(g().inputOutput,"ambientIntensity",new(o().SFFloat)),new(s())(g().inputOutput,"location",new(o().SFVec3f)),new(s())(g().inputOutput,"direction",new(o().SFVec3f)(0,0,1)),new(s())(g().inputOutput,"upVector",new(o().SFVec3f)(0,0,1)),new(s())(g().inputOutput,"fieldOfView",new(o().MFFloat)(-1,-1,1,1)),new(s())(g().inputOutput,"nearDistance",new(o().SFFloat)(-1)),new(s())(g().inputOutput,"farDistance",new(o().SFFloat)(-1)),new(s())(g().outputOnly,"aspectRatio",new(o().SFFloat)),new(s())(g().inputOutput,"texture",new(o().SFNode)),new(s())(g().inputOutput,"shadows",new(o().SFBool)),new(s())(g().inputOutput,"shadowColor",new(o().SFColor)),new(s())(g().inputOutput,"shadowIntensity",new(o().SFFloat)(1)),new(s())(g().inputOutput,"shadowBias",new(o().SFFloat)(.005)),new(s())(g().initializeOnly,"shadowMapSize",new(o().SFInt32)(1024))]),enumerable:!0}});const E=L,H=P().add("TextureProjectorParallel",E);r().add({name:"TextureProjection",concreteNodes:[C,H],abstractNodes:[D]});P().add("TextureProjectionComponent",undefined)})();
1
+ /* X_ITE v10.4.2 */
2
+ const t=window[Symbol.for("X_ITE.X3D-10.4.2")];(()=>{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 o=e.n(n);const a=t.X3DFieldDefinition;var s=e.n(a);const u=t.FieldDefinitionArray;var h=e.n(u);const c=t.X3DNode;var l=e.n(c);const x=t.X3DLightNode;var p=e.n(x);const w=t.X3DConstants;var g=e.n(w);const d=t.X3DCast;var m=e.n(d);const f=t.Vector3;var _=e.n(f);const T=t.Rotation4;var O=e.n(T);const F=t.Matrix4;var M=e.n(F);const S=t.Namespace;var P=e.n(S);function j(t){p().call(this,t),this.addType(g().X3DTextureProjectorNode),this._location.setUnit("length"),this._farDistance.setUnit("length"),this._location.setUnit("length")}Object.assign(Object.setPrototypeOf(j.prototype,p().prototype),{initialize(){p().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:()=>3,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(M())(.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_aspectRatio__",this),this.textureNode=m()(g().X3DTexture2DNode,this._texture),this.textureNode?.addInterest("set_aspectRatio__",this),this.setEnabled(!!this.textureNode),this.set_aspectRatio__(),this.set_on__()},set_aspectRatio__(){this.textureNode?this._aspectRatio=this.textureNode.getWidth()/this.textureNode.getHeight():this._aspectRatio=1}}),Object.defineProperties(j,l().getStaticProperties("X3DTextureProjectorNode","TextureProjection",4));const y=j,D=P().add("X3DTextureProjectorNode",y),V=t.Camera;var b=e.n(V);const v=t.MatrixStack;var N=e.n(v);const X=t.ObjectCache;var U=e.n(X);const z=U()(R);function R(){this.projectionMatrix=new(M()),this.modelViewMatrix=new(N())(M()),this.modelMatrix=new(M()),this.invTextureSpaceMatrix=new(M()),this.invTextureSpaceProjectionMatrix=new(M()),this.location=new(_()),this.locationArray=new Float32Array(3),this.direction=new(_()),this.rotation=new(O()),this.matrix=new(M()),this.matrixArray=new Float32Array(16),this.textureMatrix=new(M())}function A(t){D.call(this,t),this.addType(g().TextureProjector),this._fieldOfView.setUnit("angle")}Object.assign(R.prototype,{set(t,e,i){this.browser=t.getBrowser(),this.lightNode=t,this.global=t.getGlobal(),this.modelViewMatrix.push(i),this.textureMatrix.set(...t.getTexture().getMatrix())},renderShadowMap(t){},setGlobalVariables(t){const e=this.lightNode,i=t.getCameraSpaceMatrixArray(),r=this.modelMatrix.assign(this.modelViewMatrix.get()).multRight(i),n=this.invTextureSpaceMatrix.assign(this.global?r:M().Identity);this.rotation.setFromToVec(_().zAxis,this.direction.assign(e.getDirection()).negate()),e.straightenHorizon(this.rotation),n.translate(e.getLocation()),n.rotate(this.rotation),n.inverse();const o=e.getTexture().getWidth(),a=e.getTexture().getHeight(),s=e.getNearDistance(),u=e.getFarDistance(),h=e.getFieldOfView();b().perspective(h,s,u,o,a,this.projectionMatrix),this.global||n.multLeft(r.inverse()),this.invTextureSpaceProjectionMatrix.assign(n).multRight(this.projectionMatrix).multRight(e.getBiasMatrix()),this.matrix.assign(i).multRight(this.invTextureSpaceProjectionMatrix).multRight(this.textureMatrix),this.matrixArray.set(this.matrix),this.modelViewMatrix.get().multVecMatrix(this.location.assign(e._location.getValue())),this.locationArray.set(this.location)},setShaderUniforms(t,e,i){const r=e.numTextureProjectors++,n=this.lightNode,o=n.getTexture(),a=this.global?this.textureUnit=this.textureUnit??this.browser.popTexture2DUnit():this.browser.getTexture2DUnit();if(t.activeTexture(t.TEXTURE0+a),t.bindTexture(t.TEXTURE_2D,o.getTexture()),t.uniform1i(e.x3d_TextureProjectorTexture[r],a),e.hasTextureProjector(r,this))return;const s=n.getNearParameter(),u=n.getFarParameter();t.uniform3f(e.x3d_TextureProjectorColor[r],...n.getColor()),t.uniform1f(e.x3d_TextureProjectorIntensity[r],n.getIntensity()),t.uniform3fv(e.x3d_TextureProjectorLocation[r],this.locationArray),t.uniform3f(e.x3d_TextureProjectorParams[r],s,u,o.isLinear()),t.uniformMatrix4fv(e.x3d_TextureProjectorMatrix[r],!1,this.matrixArray)},dispose(){this.browser.pushTexture2DUnit(this.textureUnit),this.modelViewMatrix.clear(),this.textureUnit=void 0,z.push(this)}}),Object.assign(Object.setPrototypeOf(A.prototype,D.prototype),{initialize(){D.prototype.initialize.call(this)},getFieldOfView(){const t=this._fieldOfView.getValue();return t>0&&t<Math.PI?t:Math.PI/4},getLights:()=>z}),Object.defineProperties(A,{...l().getStaticProperties("TextureProjector","TextureProjection",2,"children","4.0"),fieldDefinitions:{value:new(h())([new(s())(g().inputOutput,"metadata",new(o().SFNode)),new(s())(g().inputOutput,"description",new(o().SFString)),new(s())(g().inputOutput,"global",new(o().SFBool)(!0)),new(s())(g().inputOutput,"on",new(o().SFBool)(!0)),new(s())(g().inputOutput,"color",new(o().SFColor)(1,1,1)),new(s())(g().inputOutput,"intensity",new(o().SFFloat)(1)),new(s())(g().inputOutput,"ambientIntensity",new(o().SFFloat)),new(s())(g().inputOutput,"location",new(o().SFVec3f)),new(s())(g().inputOutput,"direction",new(o().SFVec3f)(0,0,1)),new(s())(g().inputOutput,"upVector",new(o().SFVec3f)(0,0,1)),new(s())(g().inputOutput,"fieldOfView",new(o().SFFloat)(.785398)),new(s())(g().inputOutput,"nearDistance",new(o().SFFloat)(-1)),new(s())(g().inputOutput,"farDistance",new(o().SFFloat)(-1)),new(s())(g().outputOnly,"aspectRatio",new(o().SFFloat)),new(s())(g().inputOutput,"texture",new(o().SFNode)),new(s())(g().inputOutput,"shadows",new(o().SFBool)),new(s())(g().inputOutput,"shadowColor",new(o().SFColor)),new(s())(g().inputOutput,"shadowIntensity",new(o().SFFloat)(1)),new(s())(g().inputOutput,"shadowBias",new(o().SFFloat)(.005)),new(s())(g().initializeOnly,"shadowMapSize",new(o().SFInt32)(1024))]),enumerable:!0}});const I=A,C=P().add("TextureProjector",I),Y=U()(B);function B(){this.projectionMatrix=new(M()),this.modelViewMatrix=new(N())(M()),this.modelMatrix=new(M()),this.invTextureSpaceMatrix=new(M()),this.location=new(_()),this.locationArray=new Float32Array(3),this.invTextureSpaceProjectionMatrix=new(M()),this.direction=new(_()),this.rotation=new(O()),this.matrix=new(M()),this.matrixArray=new Float32Array(16),this.textureMatrix=new(M())}function L(t){D.call(this,t),this.addType(g().TextureProjectorParallel),this._fieldOfView.setUnit("length")}Object.assign(B.prototype,{set(t,e,i){this.browser=t.getBrowser(),this.lightNode=t,this.global=t.getGlobal(),this.modelViewMatrix.push(i),this.textureMatrix.set(...t.getTexture().getMatrix())},renderShadowMap(t){},setGlobalVariables(t){const e=this.lightNode,i=t.getCameraSpaceMatrixArray(),r=this.modelMatrix.assign(this.modelViewMatrix.get()).multRight(i),n=this.invTextureSpaceMatrix.assign(this.global?r:M().Identity);this.rotation.setFromToVec(_().zAxis,this.direction.assign(e.getDirection()).negate()),e.straightenHorizon(this.rotation),n.translate(e.getLocation()),n.rotate(this.rotation),n.inverse();const o=e.getTexture().getWidth()/e.getTexture().getHeight(),a=e.getMinimumX(),s=e.getMaximumX(),u=e.getMinimumY(),h=e.getMaximumY(),c=e.getSizeX(),l=e.getSizeY(),x=e.getNearDistance(),p=e.getFarDistance();if(o>c/l){const t=(a+s)/2,e=l*o/2;b().ortho(t-e,t+e,u,h,x,p,this.projectionMatrix)}else{const t=(u+h)/2,e=c/o/2;b().ortho(a,s,t-e,t+e,x,p,this.projectionMatrix)}this.global||n.multLeft(r.inverse()),this.invTextureSpaceProjectionMatrix.assign(n).multRight(this.projectionMatrix).multRight(e.getBiasMatrix()),this.matrix.assign(i).multRight(this.invTextureSpaceProjectionMatrix).multRight(this.textureMatrix),this.matrixArray.set(this.matrix),this.modelViewMatrix.get().multVecMatrix(this.location.assign(e._location.getValue())),this.locationArray.set(this.location)},setShaderUniforms(t,e,i){const r=e.numTextureProjectors++,n=this.lightNode,o=n.getTexture(),a=this.global?this.textureUnit=this.textureUnit??this.browser.popTexture2DUnit():this.browser.getTexture2DUnit();if(t.activeTexture(t.TEXTURE0+a),t.bindTexture(t.TEXTURE_2D,o.getTexture()),t.uniform1i(e.x3d_TextureProjectorTexture[r],a),e.hasTextureProjector(r,this))return;const s=n.getNearParameter(),u=n.getFarParameter();t.uniform3f(e.x3d_TextureProjectorColor[r],...n.getColor()),t.uniform1f(e.x3d_TextureProjectorIntensity[r],n.getIntensity()),t.uniform3fv(e.x3d_TextureProjectorLocation[r],this.locationArray),t.uniform3f(e.x3d_TextureProjectorParams[r],s,u,o.isLinear()),t.uniformMatrix4fv(e.x3d_TextureProjectorMatrix[r],!1,this.matrixArray)},dispose(){this.browser.pushTexture2DUnit(this.textureUnit),this.modelViewMatrix.clear(),this.textureUnit=void 0,Y.push(this)}}),Object.assign(Object.setPrototypeOf(L.prototype,D.prototype),{initialize(){D.prototype.initialize.call(this),this._fieldOfView.addInterest("set_fieldOfView___",this),this.set_fieldOfView___()},set_fieldOfView___(){const t=this._fieldOfView.length;this.minimumX=t>0?this._fieldOfView[0]:-1,this.minimumY=t>1?this._fieldOfView[1]:-1,this.maximumX=t>2?this._fieldOfView[2]:1,this.maximumY=t>3?this._fieldOfView[3]:1,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:()=>Y}),Object.defineProperties(L,{...l().getStaticProperties("TextureProjectorParallel","TextureProjection",2,"children","4.0"),fieldDefinitions:{value:new(h())([new(s())(g().inputOutput,"metadata",new(o().SFNode)),new(s())(g().inputOutput,"description",new(o().SFString)),new(s())(g().inputOutput,"global",new(o().SFBool)(!0)),new(s())(g().inputOutput,"on",new(o().SFBool)(!0)),new(s())(g().inputOutput,"color",new(o().SFColor)(1,1,1)),new(s())(g().inputOutput,"intensity",new(o().SFFloat)(1)),new(s())(g().inputOutput,"ambientIntensity",new(o().SFFloat)),new(s())(g().inputOutput,"location",new(o().SFVec3f)),new(s())(g().inputOutput,"direction",new(o().SFVec3f)(0,0,1)),new(s())(g().inputOutput,"upVector",new(o().SFVec3f)(0,0,1)),new(s())(g().inputOutput,"fieldOfView",new(o().MFFloat)(-1,-1,1,1)),new(s())(g().inputOutput,"nearDistance",new(o().SFFloat)(-1)),new(s())(g().inputOutput,"farDistance",new(o().SFFloat)(-1)),new(s())(g().outputOnly,"aspectRatio",new(o().SFFloat)),new(s())(g().inputOutput,"texture",new(o().SFNode)),new(s())(g().inputOutput,"shadows",new(o().SFBool)),new(s())(g().inputOutput,"shadowColor",new(o().SFColor)),new(s())(g().inputOutput,"shadowIntensity",new(o().SFFloat)(1)),new(s())(g().inputOutput,"shadowBias",new(o().SFFloat)(.005)),new(s())(g().initializeOnly,"shadowMapSize",new(o().SFInt32)(1024))]),enumerable:!0}});const E=L,H=P().add("TextureProjectorParallel",E);r().add({name:"TextureProjection",concreteNodes:[C,H],abstractNodes:[D]});P().add("TextureProjectionComponent",undefined)})();
@@ -1,9 +1,9 @@
1
- /* X_ITE v10.4.0 */
2
- const __X_ITE_X3D__ = window [Symbol .for ("X_ITE.X3D-10.4.0")];
1
+ /* X_ITE v10.4.2 */
2
+ const __X_ITE_X3D__ = window [Symbol .for ("X_ITE.X3D-10.4.2")];
3
3
  /******/ (() => { // webpackBootstrap
4
4
  /******/ var __webpack_modules__ = ({
5
5
 
6
- /***/ 470:
6
+ /***/ 554:
7
7
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
8
8
 
9
9
  var __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
- /***/ 560:
43
+ /***/ 140:
44
44
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
45
45
 
46
46
  var __dirname = "/";
@@ -74,7 +74,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,
74
74
 
75
75
  /***/ }),
76
76
 
77
- /***/ 364:
77
+ /***/ 728:
78
78
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
79
79
 
80
80
  /*! dicom-parser - 1.8.12 - 2023-02-20 | (c) 2017 Chris Hafey | https://github.com/cornerstonejs/dicomParser */
@@ -4030,7 +4030,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_zlib__;
4030
4030
 
4031
4031
  /***/ }),
4032
4032
 
4033
- /***/ 272:
4033
+ /***/ 556:
4034
4034
  /***/ ((module) => {
4035
4035
 
4036
4036
  /* -*- tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- /
@@ -7314,10 +7314,10 @@ var Decoder = class _Decoder {
7314
7314
 
7315
7315
  //#
7316
7316
  ;// CONCATENATED MODULE: ./src/x_ite/Browser/Texturing3D/DICOMParser.js
7317
- /* provided dependency */ var dicomParser = __webpack_require__(364);
7318
- /* provided dependency */ var JpegImage = __webpack_require__(272);
7319
- /* provided dependency */ var CharLS = __webpack_require__(470);
7320
- /* provided dependency */ var OpenJPEG = __webpack_require__(560);
7317
+ /* provided dependency */ var dicomParser = __webpack_require__(728);
7318
+ /* provided dependency */ var JpegImage = __webpack_require__(556);
7319
+ /* provided dependency */ var CharLS = __webpack_require__(554);
7320
+ /* provided dependency */ var OpenJPEG = __webpack_require__(140);
7321
7321
  /*******************************************************************************
7322
7322
  *
7323
7323
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -8814,7 +8814,7 @@ Object .assign (Object .setPrototypeOf (ImageTextureAtlas .prototype, Texturing3
8814
8814
  gl .readPixels (sx, sy, width, height, gl .RGBA, gl .UNSIGNED_BYTE, data);
8815
8815
  gl .texSubImage3D (gl .TEXTURE_3D, 0, 0, 0, i, width, height, 1, gl .RGBA, gl .UNSIGNED_BYTE, data);
8816
8816
 
8817
- transparent = transparent || this .isImageTransparent (data);
8817
+ transparent ||= this .isImageTransparent (data);
8818
8818
  }
8819
8819
  }
8820
8820
 
@@ -9485,19 +9485,19 @@ Object .assign (Object .setPrototypeOf (TextureTransform3D .prototype, (external
9485
9485
 
9486
9486
  matrix4 .identity ();
9487
9487
 
9488
- if (! center .equals ((external_X_ITE_X3D_Vector3_default()).Zero))
9488
+ if (!center .equals ((external_X_ITE_X3D_Vector3_default()).Zero))
9489
9489
  matrix4 .translate (vector .assign (center) .negate ());
9490
9490
 
9491
- if (! scale .equals ((external_X_ITE_X3D_Vector3_default()).One))
9491
+ if (!scale .equals ((external_X_ITE_X3D_Vector3_default()).One))
9492
9492
  matrix4 .scale (scale);
9493
9493
 
9494
- if (! rotation .equals ((external_X_ITE_X3D_Rotation4_default()).Identity))
9494
+ if (!rotation .equals ((external_X_ITE_X3D_Rotation4_default()).Identity))
9495
9495
  matrix4 .rotate (rotation);
9496
9496
 
9497
- if (! center .equals ((external_X_ITE_X3D_Vector3_default()).Zero))
9497
+ if (!center .equals ((external_X_ITE_X3D_Vector3_default()).Zero))
9498
9498
  matrix4 .translate (center);
9499
9499
 
9500
- if (! translation .equals ((external_X_ITE_X3D_Vector3_default()).Zero))
9500
+ if (!translation .equals ((external_X_ITE_X3D_Vector3_default()).Zero))
9501
9501
  matrix4 .translate (translation);
9502
9502
 
9503
9503
  this .setMatrix (matrix4);