x_ite 16.1.2 → 16.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.
- package/README.md +6 -6
- package/dist/X3DUOM.xml +10 -0
- package/dist/assets/components/AnnotationComponent.js +17 -38
- package/dist/assets/components/AnnotationComponent.min.js +2 -2
- package/dist/assets/components/CADGeometryComponent.js +17 -38
- package/dist/assets/components/CADGeometryComponent.min.js +2 -2
- package/dist/assets/components/CubeMapTexturingComponent.js +17 -38
- package/dist/assets/components/CubeMapTexturingComponent.min.js +2 -2
- package/dist/assets/components/DISComponent.js +17 -38
- package/dist/assets/components/DISComponent.min.js +2 -2
- package/dist/assets/components/EventUtilitiesComponent.js +17 -38
- package/dist/assets/components/EventUtilitiesComponent.min.js +2 -2
- package/dist/assets/components/GaussianSplatsComponent.js +17 -38
- package/dist/assets/components/GaussianSplatsComponent.min.js +2 -2
- package/dist/assets/components/Geometry2DComponent.js +17 -38
- package/dist/assets/components/Geometry2DComponent.min.js +2 -2
- package/dist/assets/components/Geometry3DComponent.js +17 -38
- package/dist/assets/components/Geometry3DComponent.min.js +2 -2
- package/dist/assets/components/GeospatialComponent.js +17 -38
- package/dist/assets/components/GeospatialComponent.min.js +2 -2
- package/dist/assets/components/HAnimComponent.js +17 -38
- package/dist/assets/components/HAnimComponent.min.js +2 -2
- package/dist/assets/components/KeyDeviceSensorComponent.js +17 -38
- package/dist/assets/components/KeyDeviceSensorComponent.min.js +2 -2
- package/dist/assets/components/LayoutComponent.js +17 -38
- package/dist/assets/components/LayoutComponent.min.js +2 -2
- package/dist/assets/components/NURBSComponent.js +18 -39
- package/dist/assets/components/NURBSComponent.min.js +2 -2
- package/dist/assets/components/ParticleSystemsComponent.js +17 -38
- package/dist/assets/components/ParticleSystemsComponent.min.js +2 -2
- package/dist/assets/components/PickingComponent.js +17 -38
- package/dist/assets/components/PickingComponent.min.js +2 -2
- package/dist/assets/components/RigidBodyPhysicsComponent.js +28 -39
- package/dist/assets/components/RigidBodyPhysicsComponent.min.js +2 -2
- package/dist/assets/components/ScriptingComponent.js +17 -38
- package/dist/assets/components/ScriptingComponent.min.js +2 -2
- package/dist/assets/components/TextComponent.js +17 -38
- package/dist/assets/components/TextComponent.min.js +2 -2
- package/dist/assets/components/TextureProjectionComponent.js +17 -38
- package/dist/assets/components/TextureProjectionComponent.min.js +2 -2
- package/dist/assets/components/Texturing3DComponent.js +27 -46
- package/dist/assets/components/Texturing3DComponent.min.js +2 -2
- package/dist/assets/components/VolumeRenderingComponent.js +17 -38
- package/dist/assets/components/VolumeRenderingComponent.min.js +2 -2
- package/dist/assets/components/WebXRComponent.js +17 -38
- package/dist/assets/components/WebXRComponent.min.js +2 -2
- package/dist/assets/components/X_ITEComponent.js +22 -39
- package/dist/assets/components/X_ITEComponent.min.js +2 -2
- package/dist/example.html +1 -1
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.d.ts +129 -8
- package/dist/x_ite.js +443 -264
- package/dist/x_ite.min.js +2 -2
- package/dist/x_ite.min.mjs +2 -2
- package/dist/x_ite.mjs +443 -264
- package/dist/x_ite.zip +0 -0
- package/package.json +8 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* X_ITE v16.
|
|
1
|
+
/* X_ITE v16.2.0 */
|
|
2
2
|
const __X_ITE_X3D__ = window [Symbol .for ("X_ITE.X3D")];
|
|
3
3
|
/******/ (() => { // webpackBootstrap
|
|
4
4
|
/******/ "use strict";
|
|
@@ -7,48 +7,27 @@ const __X_ITE_X3D__ = window [Symbol .for ("X_ITE.X3D")];
|
|
|
7
7
|
/******/
|
|
8
8
|
/************************************************************************/
|
|
9
9
|
/******/ /* webpack/runtime/compat get default export */
|
|
10
|
-
/******/
|
|
11
|
-
/******/
|
|
12
|
-
/******/
|
|
13
|
-
/******/
|
|
14
|
-
/******/
|
|
15
|
-
/******/
|
|
16
|
-
/******/
|
|
17
|
-
/******/
|
|
18
|
-
/******/ };
|
|
19
|
-
/******/ })();
|
|
10
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
11
|
+
/******/ __webpack_require__.n = (module) => {
|
|
12
|
+
/******/ const getter = module && module.__esModule ?
|
|
13
|
+
/******/ () => (module['default']) :
|
|
14
|
+
/******/ () => (module);
|
|
15
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
16
|
+
/******/ return getter;
|
|
17
|
+
/******/ };
|
|
20
18
|
/******/
|
|
21
19
|
/******/ /* webpack/runtime/define property getters */
|
|
22
|
-
/******/
|
|
23
|
-
/******/
|
|
24
|
-
/******/
|
|
25
|
-
/******/ if(
|
|
26
|
-
/******/
|
|
27
|
-
/******/ while(i < definition.length) {
|
|
28
|
-
/******/ var key = definition[i++];
|
|
29
|
-
/******/ var binding = definition[i++];
|
|
30
|
-
/******/ if(!__webpack_require__.o(exports, key)) {
|
|
31
|
-
/******/ if(binding === 0) {
|
|
32
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
|
|
33
|
-
/******/ } else {
|
|
34
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
|
|
35
|
-
/******/ }
|
|
36
|
-
/******/ } else if(binding === 0) { i++; }
|
|
37
|
-
/******/ }
|
|
38
|
-
/******/ } else {
|
|
39
|
-
/******/ for(var key in definition) {
|
|
40
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
41
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
42
|
-
/******/ }
|
|
43
|
-
/******/ }
|
|
20
|
+
/******/ // define getter/value functions for harmony exports
|
|
21
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
22
|
+
/******/ for(var key in definition) {
|
|
23
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
24
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
44
25
|
/******/ }
|
|
45
|
-
/******/ }
|
|
46
|
-
/******/ }
|
|
26
|
+
/******/ }
|
|
27
|
+
/******/ };
|
|
47
28
|
/******/
|
|
48
29
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
49
|
-
/******/ (
|
|
50
|
-
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
51
|
-
/******/ })();
|
|
30
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop));
|
|
52
31
|
/******/
|
|
53
32
|
/************************************************************************/
|
|
54
33
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* X_ITE v16.
|
|
2
|
-
const t=window[Symbol.for("X_ITE.X3D")];(()=>{const e={n:t=>{const i=t&&t.__esModule?()=>t.default:()=>t;return e.d(i,{a:i}),i},d:(t,i)=>{if(Array.isArray(i))for(var r=0;r<i.length;){var n=i[r++],a=i[r++];e.o(t,n)?0===a&&r++:0===a?Object.defineProperty(t,n,{enumerable:!0,value:i[r++]}):Object.defineProperty(t,n,{enumerable:!0,get:a})}else for(var n in i)e.o(i,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:i[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},i=t.Components;var r=e.n(i);const n=t.Fields;var a=e.n(n);const s=t.X3DFieldDefinition;var o=e.n(s);const u=t.FieldDefinitionArray;var h=e.n(u);const l=t.X3DNode;var c=e.n(l);const p=t.X3DLightNode;var g=e.n(p);const w=t.X3DConstants;var d=e.n(w);const x=t.X3DCast;var m=e.n(x);const f=t.TraverseType;var _=e.n(f);const S=t.Matrix4;var O=e.n(S);const M=t.Namespace;var T=e.n(M);function F(t){g().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,g().prototype),{initialize(){g().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(O())(.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){g().prototype.push.call(this,t,e),this.textureNode?.traverse(_().DISPLAY,t)}}),Object.defineProperties(F,c().getStaticProperties("X3DTextureProjectorNode","TextureProjection",4));const y=F,V=T().add("X3DTextureProjectorNode",y),b=t.Camera;var P=e.n(b);const v=t.Vector3;var D=e.n(v);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(O()),this.modelViewMatrix=new(I())(O()),this.modelMatrix=new(O()),this.invTextureSpaceMatrix=new(O()),this.invTextureSpaceProjectionMatrix=new(O()),this.location=new(D()),this.locationArray=new Float32Array(3),this.direction=new(D()),this.rotation=new(N()),this.matrix=new(O()),this.matrixArray=new Float32Array(16),this.textureMatrix=new(O())}function Y(t){V.call(this,t),this.addType(d().TextureProjector),this._fieldOfView.setUnit("angle"),t.getSpecificationVersion()<=4&&(this._upVector=new(D())(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.getCameraSpaceMatrix().get(),r=this.modelMatrix.assign(this.modelViewMatrix.get()).multRight(i),n=this.invTextureSpaceMatrix.assign(this.global?r:O().IDENTITY);this.rotation.setVectors(D().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(),s=e.getTexture().getHeight(),o=e.getNearDistance(),u=e.getFarDistance(),h=e.getFieldOfView();P().perspective(h,o,u,a,s,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??O().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,s=a.getTexture(),o=this.global?this.textureUnit??=this.browser.popGlobalTextureUnit():this.browser.popTextureUnit();if(t.activeTexture(t.TEXTURE0+o),t.bindTexture(t.TEXTURE_2D,s.getTexture()),t.uniform1i(n.texture,o),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(o())(d().inputOutput,"metadata",new(a().SFNode)),new(o())(d().inputOutput,"description",new(a().SFString)),new(o())(d().inputOutput,"global",new(a().SFBool)(!0)),new(o())(d().inputOutput,"on",new(a().SFBool)(!0)),new(o())(d().inputOutput,"color",new(a().SFColor)(1,1,1)),new(o())(d().inputOutput,"intensity",new(a().SFFloat)(1)),new(o())(d().inputOutput,"ambientIntensity",new(a().SFFloat)),new(o())(d().inputOutput,"location",new(a().SFVec3f)),new(o())(d().inputOutput,"direction",new(a().SFVec3f)(0,0,1)),new(o())(d().inputOutput,"upVector",new(a().SFVec3f)(0,1,0)),new(o())(d().inputOutput,"fieldOfView",new(a().SFFloat)(.785398)),new(o())(d().inputOutput,"nearDistance",new(a().SFFloat)(-1)),new(o())(d().inputOutput,"farDistance",new(a().SFFloat)(-1)),new(o())(d().outputOnly,"aspectRatio",new(a().SFFloat)),new(o())(d().inputOutput,"texture",new(a().SFNode)),new(o())(d().inputOutput,"shadows",new(a().SFBool)),new(o())(d().inputOutput,"shadowColor",new(a().SFColor)),new(o())(d().inputOutput,"shadowIntensity",new(a().SFFloat)(1)),new(o())(d().inputOutput,"shadowBias",new(a().SFFloat)(.005)),new(o())(d().initializeOnly,"shadowMapSize",new(a().SFInt32)(1024))]),enumerable:!0}});const C=Y,E=T().add("TextureProjector",C),B=A()(L);function L(){this.projectionMatrix=new(O()),this.modelViewMatrix=new(I())(O()),this.modelMatrix=new(O()),this.invTextureSpaceMatrix=new(O()),this.location=new(D()),this.locationArray=new Float32Array(3),this.invTextureSpaceProjectionMatrix=new(O()),this.direction=new(D()),this.rotation=new(N()),this.matrix=new(O()),this.matrixArray=new Float32Array(16),this.textureMatrix=new(O())}function G(t){V.call(this,t),this.addType(d().TextureProjectorParallel),this._fieldOfView.setUnit("length"),t.getSpecificationVersion()<=4&&(this._upVector=new(D())(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.getCameraSpaceMatrix().get(),r=this.modelMatrix.assign(this.modelViewMatrix.get()).multRight(i),n=this.invTextureSpaceMatrix.assign(this.global?r:O().IDENTITY);this.rotation.setVectors(D().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(),s=e.getMinimumX(),o=e.getMaximumX(),u=e.getMinimumY(),h=e.getMaximumY(),l=e.getSizeX(),c=e.getSizeY(),p=e.getNearDistance(),g=e.getFarDistance();if(a>l/c){const t=(s+o)/2,e=c*a/2;P().ortho(t-e,t+e,u,h,p,g,this.projectionMatrix)}else{const t=(u+h)/2,e=l/a/2;P().ortho(s,o,t-e,t+e,p,g,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??O().IDENTITY).multRight(t.getCameraSpaceMatrixArray()).multRight(this.invTextureSpaceProjectionMatrix),this.matrixArray.set(this.matrix)},setShaderUniforms(t,e){const i=e.numTextureProjectors++,r=e.x3d_TextureProjector[i];if(!r)return;const n=this.lightNode,a=n.getTexture(),s=this.global?this.textureUnit??=this.browser.popGlobalTextureUnit():this.browser.popTextureUnit();if(t.activeTexture(t.TEXTURE0+s),t.bindTexture(t.TEXTURE_2D,a.getTexture()),t.uniform1i(r.texture,s),e.hasTextureProjector(i,this))return;const o=n.getNearParameter(),u=n.getFarParameter();t.uniform3f(r.color,...n.getColor()),t.uniform1f(r.intensity,n.getIntensity()),t.uniform3fv(r.location,this.locationArray),t.uniform2f(r.params,o,u),t.uniformMatrix4fv(r.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(o())(d().inputOutput,"metadata",new(a().SFNode)),new(o())(d().inputOutput,"description",new(a().SFString)),new(o())(d().inputOutput,"global",new(a().SFBool)(!0)),new(o())(d().inputOutput,"on",new(a().SFBool)(!0)),new(o())(d().inputOutput,"color",new(a().SFColor)(1,1,1)),new(o())(d().inputOutput,"intensity",new(a().SFFloat)(1)),new(o())(d().inputOutput,"ambientIntensity",new(a().SFFloat)),new(o())(d().inputOutput,"location",new(a().SFVec3f)),new(o())(d().inputOutput,"direction",new(a().SFVec3f)(0,0,1)),new(o())(d().inputOutput,"upVector",new(a().SFVec3f)(0,1,0)),new(o())(d().inputOutput,"fieldOfView",new(a().SFVec4f)(-1,-1,1,1)),new(o())(d().inputOutput,"nearDistance",new(a().SFFloat)(-1)),new(o())(d().inputOutput,"farDistance",new(a().SFFloat)(-1)),new(o())(d().outputOnly,"aspectRatio",new(a().SFFloat)),new(o())(d().inputOutput,"texture",new(a().SFNode)),new(o())(d().inputOutput,"shadows",new(a().SFBool)),new(o())(d().inputOutput,"shadowColor",new(a().SFColor)),new(o())(d().inputOutput,"shadowIntensity",new(a().SFFloat)(1)),new(o())(d().inputOutput,"shadowBias",new(a().SFFloat)(.005)),new(o())(d().initializeOnly,"shadowMapSize",new(a().SFInt32)(1024))]),enumerable:!0}});const H=G,K=T().add("TextureProjectorParallel",H);r().add({name:"TextureProjection",concreteNodes:[E,K],abstractNodes:[V]});T().add("TextureProjectionComponent",void 0)})();
|
|
1
|
+
/* X_ITE v16.2.0 */
|
|
2
|
+
const t=window[Symbol.for("X_ITE.X3D")];(()=>{const e={n:t=>{const 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)},i=t.Components;var r=e.n(i);const n=t.Fields;var a=e.n(n);const s=t.X3DFieldDefinition;var o=e.n(s);const u=t.FieldDefinitionArray;var h=e.n(u);const l=t.X3DNode;var c=e.n(l);const p=t.X3DLightNode;var g=e.n(p);const w=t.X3DConstants;var d=e.n(w);const x=t.X3DCast;var m=e.n(x);const f=t.TraverseType;var _=e.n(f);const S=t.Matrix4;var M=e.n(S);const O=t.Namespace;var T=e.n(O);function F(t){g().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,g().prototype),{initialize(){g().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(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_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){g().prototype.push.call(this,t,e),this.textureNode?.traverse(_().DISPLAY,t)}}),Object.defineProperties(F,c().getStaticProperties("X3DTextureProjectorNode","TextureProjection",4));const y=F,V=T().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(M()),this.modelViewMatrix=new(I())(M()),this.modelMatrix=new(M()),this.invTextureSpaceMatrix=new(M()),this.invTextureSpaceProjectionMatrix=new(M()),this.location=new(v()),this.locationArray=new Float32Array(3),this.direction=new(v()),this.rotation=new(N()),this.matrix=new(M()),this.matrixArray=new Float32Array(16),this.textureMatrix=new(M())}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.getCameraSpaceMatrix().get(),r=this.modelMatrix.assign(this.modelViewMatrix.get()).multRight(i),n=this.invTextureSpaceMatrix.assign(this.global?r:M().IDENTITY);this.rotation.setVectors(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(),s=e.getTexture().getHeight(),o=e.getNearDistance(),u=e.getFarDistance(),h=e.getFieldOfView();b().perspective(h,o,u,a,s,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??M().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,s=a.getTexture(),o=this.global?this.textureUnit??=this.browser.popGlobalTextureUnit():this.browser.popTextureUnit();if(t.activeTexture(t.TEXTURE0+o),t.bindTexture(t.TEXTURE_2D,s.getTexture()),t.uniform1i(n.texture,o),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(o())(d().inputOutput,"metadata",new(a().SFNode)),new(o())(d().inputOutput,"description",new(a().SFString)),new(o())(d().inputOutput,"global",new(a().SFBool)(!0)),new(o())(d().inputOutput,"on",new(a().SFBool)(!0)),new(o())(d().inputOutput,"color",new(a().SFColor)(1,1,1)),new(o())(d().inputOutput,"intensity",new(a().SFFloat)(1)),new(o())(d().inputOutput,"ambientIntensity",new(a().SFFloat)),new(o())(d().inputOutput,"location",new(a().SFVec3f)),new(o())(d().inputOutput,"direction",new(a().SFVec3f)(0,0,1)),new(o())(d().inputOutput,"upVector",new(a().SFVec3f)(0,1,0)),new(o())(d().inputOutput,"fieldOfView",new(a().SFFloat)(.785398)),new(o())(d().inputOutput,"nearDistance",new(a().SFFloat)(-1)),new(o())(d().inputOutput,"farDistance",new(a().SFFloat)(-1)),new(o())(d().outputOnly,"aspectRatio",new(a().SFFloat)),new(o())(d().inputOutput,"texture",new(a().SFNode)),new(o())(d().inputOutput,"shadows",new(a().SFBool)),new(o())(d().inputOutput,"shadowColor",new(a().SFColor)),new(o())(d().inputOutput,"shadowIntensity",new(a().SFFloat)(1)),new(o())(d().inputOutput,"shadowBias",new(a().SFFloat)(.005)),new(o())(d().initializeOnly,"shadowMapSize",new(a().SFInt32)(1024))]),enumerable:!0}});const C=Y,E=T().add("TextureProjector",C),B=A()(L);function L(){this.projectionMatrix=new(M()),this.modelViewMatrix=new(I())(M()),this.modelMatrix=new(M()),this.invTextureSpaceMatrix=new(M()),this.location=new(v()),this.locationArray=new Float32Array(3),this.invTextureSpaceProjectionMatrix=new(M()),this.direction=new(v()),this.rotation=new(N()),this.matrix=new(M()),this.matrixArray=new Float32Array(16),this.textureMatrix=new(M())}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.getCameraSpaceMatrix().get(),r=this.modelMatrix.assign(this.modelViewMatrix.get()).multRight(i),n=this.invTextureSpaceMatrix.assign(this.global?r:M().IDENTITY);this.rotation.setVectors(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(),s=e.getMinimumX(),o=e.getMaximumX(),u=e.getMinimumY(),h=e.getMaximumY(),l=e.getSizeX(),c=e.getSizeY(),p=e.getNearDistance(),g=e.getFarDistance();if(a>l/c){const t=(s+o)/2,e=c*a/2;b().ortho(t-e,t+e,u,h,p,g,this.projectionMatrix)}else{const t=(u+h)/2,e=l/a/2;b().ortho(s,o,t-e,t+e,p,g,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??M().IDENTITY).multRight(t.getCameraSpaceMatrixArray()).multRight(this.invTextureSpaceProjectionMatrix),this.matrixArray.set(this.matrix)},setShaderUniforms(t,e){const i=e.numTextureProjectors++,r=e.x3d_TextureProjector[i];if(!r)return;const n=this.lightNode,a=n.getTexture(),s=this.global?this.textureUnit??=this.browser.popGlobalTextureUnit():this.browser.popTextureUnit();if(t.activeTexture(t.TEXTURE0+s),t.bindTexture(t.TEXTURE_2D,a.getTexture()),t.uniform1i(r.texture,s),e.hasTextureProjector(i,this))return;const o=n.getNearParameter(),u=n.getFarParameter();t.uniform3f(r.color,...n.getColor()),t.uniform1f(r.intensity,n.getIntensity()),t.uniform3fv(r.location,this.locationArray),t.uniform2f(r.params,o,u),t.uniformMatrix4fv(r.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(o())(d().inputOutput,"metadata",new(a().SFNode)),new(o())(d().inputOutput,"description",new(a().SFString)),new(o())(d().inputOutput,"global",new(a().SFBool)(!0)),new(o())(d().inputOutput,"on",new(a().SFBool)(!0)),new(o())(d().inputOutput,"color",new(a().SFColor)(1,1,1)),new(o())(d().inputOutput,"intensity",new(a().SFFloat)(1)),new(o())(d().inputOutput,"ambientIntensity",new(a().SFFloat)),new(o())(d().inputOutput,"location",new(a().SFVec3f)),new(o())(d().inputOutput,"direction",new(a().SFVec3f)(0,0,1)),new(o())(d().inputOutput,"upVector",new(a().SFVec3f)(0,1,0)),new(o())(d().inputOutput,"fieldOfView",new(a().SFVec4f)(-1,-1,1,1)),new(o())(d().inputOutput,"nearDistance",new(a().SFFloat)(-1)),new(o())(d().inputOutput,"farDistance",new(a().SFFloat)(-1)),new(o())(d().outputOnly,"aspectRatio",new(a().SFFloat)),new(o())(d().inputOutput,"texture",new(a().SFNode)),new(o())(d().inputOutput,"shadows",new(a().SFBool)),new(o())(d().inputOutput,"shadowColor",new(a().SFColor)),new(o())(d().inputOutput,"shadowIntensity",new(a().SFFloat)(1)),new(o())(d().inputOutput,"shadowBias",new(a().SFFloat)(.005)),new(o())(d().initializeOnly,"shadowMapSize",new(a().SFInt32)(1024))]),enumerable:!0}});const H=G,K=T().add("TextureProjectorParallel",H);r().add({name:"TextureProjection",concreteNodes:[E,K],abstractNodes:[V]});T().add("TextureProjectionComponent",void 0)})();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/* X_ITE v16.
|
|
1
|
+
/* X_ITE v16.2.0 */
|
|
2
2
|
const __X_ITE_X3D__ = window [Symbol .for ("X_ITE.X3D")];
|
|
3
3
|
/******/ (() => { // webpackBootstrap
|
|
4
4
|
/******/ var __webpack_modules__ = ({
|
|
5
5
|
|
|
6
|
-
/***/
|
|
6
|
+
/***/ 683
|
|
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
|
-
/***/
|
|
43
|
+
/***/ 461
|
|
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
|
-
/***/
|
|
80
|
+
/***/ 945
|
|
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
|
-
/***/
|
|
4038
|
+
/***/ 925
|
|
4039
4039
|
(module) {
|
|
4040
4040
|
|
|
4041
4041
|
/* -*- tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- /
|
|
@@ -5254,48 +5254,27 @@ function decode(jpegData, userOpts = {}) {
|
|
|
5254
5254
|
/******/
|
|
5255
5255
|
/************************************************************************/
|
|
5256
5256
|
/******/ /* webpack/runtime/compat get default export */
|
|
5257
|
-
/******/
|
|
5258
|
-
/******/
|
|
5259
|
-
/******/
|
|
5260
|
-
/******/
|
|
5261
|
-
/******/
|
|
5262
|
-
/******/
|
|
5263
|
-
/******/
|
|
5264
|
-
/******/
|
|
5265
|
-
/******/ };
|
|
5266
|
-
/******/ })();
|
|
5257
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
5258
|
+
/******/ __webpack_require__.n = (module) => {
|
|
5259
|
+
/******/ const getter = module && module.__esModule ?
|
|
5260
|
+
/******/ () => (module['default']) :
|
|
5261
|
+
/******/ () => (module);
|
|
5262
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
5263
|
+
/******/ return getter;
|
|
5264
|
+
/******/ };
|
|
5267
5265
|
/******/
|
|
5268
5266
|
/******/ /* webpack/runtime/define property getters */
|
|
5269
|
-
/******/
|
|
5270
|
-
/******/
|
|
5271
|
-
/******/
|
|
5272
|
-
/******/ if(
|
|
5273
|
-
/******/
|
|
5274
|
-
/******/ while(i < definition.length) {
|
|
5275
|
-
/******/ var key = definition[i++];
|
|
5276
|
-
/******/ var binding = definition[i++];
|
|
5277
|
-
/******/ if(!__webpack_require__.o(exports, key)) {
|
|
5278
|
-
/******/ if(binding === 0) {
|
|
5279
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, value: definition[i++] });
|
|
5280
|
-
/******/ } else {
|
|
5281
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: binding });
|
|
5282
|
-
/******/ }
|
|
5283
|
-
/******/ } else if(binding === 0) { i++; }
|
|
5284
|
-
/******/ }
|
|
5285
|
-
/******/ } else {
|
|
5286
|
-
/******/ for(var key in definition) {
|
|
5287
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
5288
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
5289
|
-
/******/ }
|
|
5290
|
-
/******/ }
|
|
5267
|
+
/******/ // define getter/value functions for harmony exports
|
|
5268
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
5269
|
+
/******/ for(var key in definition) {
|
|
5270
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
5271
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
5291
5272
|
/******/ }
|
|
5292
|
-
/******/ }
|
|
5293
|
-
/******/ }
|
|
5273
|
+
/******/ }
|
|
5274
|
+
/******/ };
|
|
5294
5275
|
/******/
|
|
5295
5276
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
5296
|
-
/******/ (
|
|
5297
|
-
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
5298
|
-
/******/ })();
|
|
5277
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop));
|
|
5299
5278
|
/******/
|
|
5300
5279
|
/************************************************************************/
|
|
5301
5280
|
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
|
@@ -7189,10 +7168,10 @@ var Decoder = class _Decoder {
|
|
|
7189
7168
|
const external_X_ITE_X3D_DEVELOPMENT_namespaceObject = __X_ITE_X3D__ .DEVELOPMENT;
|
|
7190
7169
|
var external_X_ITE_X3D_DEVELOPMENT_default = /*#__PURE__*/__webpack_require__.n(external_X_ITE_X3D_DEVELOPMENT_namespaceObject);
|
|
7191
7170
|
;// ./src/x_ite/Browser/Texturing3D/DICOMParser.js
|
|
7192
|
-
/* provided dependency */ var dicomParser = __webpack_require__(
|
|
7193
|
-
/* provided dependency */ var jpegDecode = __webpack_require__(
|
|
7194
|
-
/* provided dependency */ var CharLS = __webpack_require__(
|
|
7195
|
-
/* provided dependency */ var OpenJPEG = __webpack_require__(
|
|
7171
|
+
/* provided dependency */ var dicomParser = __webpack_require__(945);
|
|
7172
|
+
/* provided dependency */ var jpegDecode = __webpack_require__(925);
|
|
7173
|
+
/* provided dependency */ var CharLS = __webpack_require__(683);
|
|
7174
|
+
/* provided dependency */ var OpenJPEG = __webpack_require__(461);
|
|
7196
7175
|
|
|
7197
7176
|
|
|
7198
7177
|
|
|
@@ -8316,6 +8295,7 @@ Object .assign (Object .setPrototypeOf (ImageTexture3D .prototype, Texturing3D_X
|
|
|
8316
8295
|
unloadData ()
|
|
8317
8296
|
{
|
|
8318
8297
|
this .clearTexture ();
|
|
8298
|
+
this .updateOutputs (0, 0, 0, 0);
|
|
8319
8299
|
},
|
|
8320
8300
|
loadData ()
|
|
8321
8301
|
{
|
|
@@ -8481,6 +8461,7 @@ Object .assign (Object .setPrototypeOf (ImageTextureAtlas .prototype, Texturing3
|
|
|
8481
8461
|
unloadData ()
|
|
8482
8462
|
{
|
|
8483
8463
|
this .clearTexture ();
|
|
8464
|
+
this .updateOutputs (0, 0, 0, 0);
|
|
8484
8465
|
},
|
|
8485
8466
|
loadData ()
|
|
8486
8467
|
{
|