x_ite 9.4.0 → 9.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.
- package/README.md +29 -0
- package/dist/assets/components/Annotation.js +13 -13
- package/dist/assets/components/Annotation.min.js +1 -1
- package/dist/assets/components/CADGeometry.js +14 -14
- package/dist/assets/components/CADGeometry.min.js +1 -1
- package/dist/assets/components/CubeMapTexturing.js +25 -25
- package/dist/assets/components/CubeMapTexturing.min.js +1 -1
- package/dist/assets/components/DIS.js +13 -13
- package/dist/assets/components/DIS.min.js +1 -1
- package/dist/assets/components/EventUtilities.js +9 -9
- package/dist/assets/components/EventUtilities.min.js +1 -1
- package/dist/assets/components/Geometry2D.js +22 -26
- package/dist/assets/components/Geometry2D.min.js +1 -1
- package/dist/assets/components/Geospatial.js +75 -149
- package/dist/assets/components/Geospatial.min.js +1 -1
- package/dist/assets/components/HAnim.js +23 -23
- package/dist/assets/components/HAnim.min.js +1 -1
- package/dist/assets/components/KeyDeviceSensor.js +10 -12
- package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
- package/dist/assets/components/Layout.js +42 -44
- package/dist/assets/components/Layout.min.js +1 -1
- package/dist/assets/components/NURBS.js +40 -44
- package/dist/assets/components/NURBS.min.js +1 -1
- package/dist/assets/components/ParticleSystems.js +51 -53
- package/dist/assets/components/ParticleSystems.min.js +1 -1
- package/dist/assets/components/Picking.js +110 -110
- package/dist/assets/components/Picking.min.js +1 -1
- package/dist/assets/components/RigidBodyPhysics.js +56 -56
- package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
- package/dist/assets/components/Scripting.js +38 -38
- package/dist/assets/components/Scripting.min.js +1 -1
- package/dist/assets/components/Text.js +44 -44
- package/dist/assets/components/Text.min.js +1 -1
- package/dist/assets/components/TextureProjection.js +19 -19
- package/dist/assets/components/TextureProjection.min.js +1 -1
- package/dist/assets/components/Texturing3D.js +34 -35
- package/dist/assets/components/Texturing3D.min.js +1 -1
- package/dist/assets/components/VolumeRendering.js +21 -23
- package/dist/assets/components/VolumeRendering.min.js +1 -1
- package/dist/assets/components/X_ITE.js +8 -8
- package/dist/assets/components/X_ITE.min.js +1 -1
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.js +712 -686
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.min.mjs +1 -1
- package/dist/x_ite.mjs +712 -686
- package/dist/x_ite.zip +0 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* X_ITE v9.4.
|
|
1
|
+
/* X_ITE v9.4.2 */(() => { // webpackBootstrap
|
|
2
2
|
/******/ "use strict";
|
|
3
3
|
/******/ // The require scope
|
|
4
4
|
/******/ var __webpack_require__ = {};
|
|
@@ -39,37 +39,37 @@ var __webpack_exports__ = {};
|
|
|
39
39
|
// UNUSED EXPORTS: default
|
|
40
40
|
|
|
41
41
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components\")"
|
|
42
|
-
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
42
|
+
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.2")] .require ("x_ite/Components");
|
|
43
43
|
var Components_default = /*#__PURE__*/__webpack_require__.n(Components_namespaceObject);
|
|
44
44
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
|
|
45
|
-
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
45
|
+
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.2")] .require ("x_ite/Fields");
|
|
46
46
|
var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
|
|
47
47
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
|
|
48
|
-
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
48
|
+
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.2")] .require ("x_ite/Base/X3DFieldDefinition");
|
|
49
49
|
var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
|
|
50
50
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
|
|
51
|
-
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
51
|
+
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.2")] .require ("x_ite/Base/FieldDefinitionArray");
|
|
52
52
|
var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
|
|
53
53
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Lighting/X3DLightNode\")"
|
|
54
|
-
const X3DLightNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
54
|
+
const X3DLightNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.2")] .require ("x_ite/Components/Lighting/X3DLightNode");
|
|
55
55
|
var X3DLightNode_default = /*#__PURE__*/__webpack_require__.n(X3DLightNode_namespaceObject);
|
|
56
56
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
|
|
57
|
-
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
57
|
+
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.2")] .require ("x_ite/Base/X3DConstants");
|
|
58
58
|
var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
|
|
59
59
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DCast\")"
|
|
60
|
-
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
60
|
+
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.2")] .require ("x_ite/Base/X3DCast");
|
|
61
61
|
var X3DCast_default = /*#__PURE__*/__webpack_require__.n(X3DCast_namespaceObject);
|
|
62
62
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector3\")"
|
|
63
|
-
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
63
|
+
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.2")] .require ("standard/Math/Numbers/Vector3");
|
|
64
64
|
var Vector3_default = /*#__PURE__*/__webpack_require__.n(Vector3_namespaceObject);
|
|
65
65
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Rotation4\")"
|
|
66
|
-
const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
66
|
+
const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.2")] .require ("standard/Math/Numbers/Rotation4");
|
|
67
67
|
var Rotation4_default = /*#__PURE__*/__webpack_require__.n(Rotation4_namespaceObject);
|
|
68
68
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Matrix4\")"
|
|
69
|
-
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
69
|
+
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.2")] .require ("standard/Math/Numbers/Matrix4");
|
|
70
70
|
var Matrix4_default = /*#__PURE__*/__webpack_require__.n(Matrix4_namespaceObject);
|
|
71
71
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
|
|
72
|
-
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
72
|
+
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.2")] .require ("x_ite/Namespace");
|
|
73
73
|
var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
|
|
74
74
|
;// CONCATENATED MODULE: ./src/x_ite/Components/TextureProjection/X3DTextureProjectorNode.js
|
|
75
75
|
/*******************************************************************************
|
|
@@ -260,13 +260,13 @@ const __default__ = X3DTextureProjectorNode;
|
|
|
260
260
|
Namespace_default().add ("X3DTextureProjectorNode", "x_ite/Components/TextureProjection/X3DTextureProjectorNode", __default__);
|
|
261
261
|
/* harmony default export */ const TextureProjection_X3DTextureProjectorNode = (__default__);
|
|
262
262
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Geometry/Camera\")"
|
|
263
|
-
const Camera_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
263
|
+
const Camera_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.2")] .require ("standard/Math/Geometry/Camera");
|
|
264
264
|
var Camera_default = /*#__PURE__*/__webpack_require__.n(Camera_namespaceObject);
|
|
265
265
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Utility/MatrixStack\")"
|
|
266
|
-
const MatrixStack_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
266
|
+
const MatrixStack_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.2")] .require ("standard/Math/Utility/MatrixStack");
|
|
267
267
|
var MatrixStack_default = /*#__PURE__*/__webpack_require__.n(MatrixStack_namespaceObject);
|
|
268
268
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Utility/ObjectCache\")"
|
|
269
|
-
const ObjectCache_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
269
|
+
const ObjectCache_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.2")] .require ("standard/Utility/ObjectCache");
|
|
270
270
|
var ObjectCache_default = /*#__PURE__*/__webpack_require__.n(ObjectCache_namespaceObject);
|
|
271
271
|
;// CONCATENATED MODULE: ./src/x_ite/Components/TextureProjection/TextureProjector.js
|
|
272
272
|
/*******************************************************************************
|
|
@@ -337,9 +337,9 @@ function TextureProjectorContainer ()
|
|
|
337
337
|
this .modelMatrix = new (Matrix4_default()) ();
|
|
338
338
|
this .invTextureSpaceMatrix = new (Matrix4_default()) ();
|
|
339
339
|
this .invTextureSpaceProjectionMatrix = new (Matrix4_default()) ();
|
|
340
|
-
this .location = new (Vector3_default()) (
|
|
340
|
+
this .location = new (Vector3_default()) ();
|
|
341
341
|
this .locationArray = new Float32Array (3);
|
|
342
|
-
this .direction = new (Vector3_default()) (
|
|
342
|
+
this .direction = new (Vector3_default()) ();
|
|
343
343
|
this .rotation = new (Rotation4_default()) ();
|
|
344
344
|
this .matrix = new (Matrix4_default()) ();
|
|
345
345
|
this .matrixArray = new Float32Array (16);
|
|
@@ -586,10 +586,10 @@ function TextureProjectorParallelContainer ()
|
|
|
586
586
|
this .modelViewMatrix = new (MatrixStack_default()) ((Matrix4_default()));
|
|
587
587
|
this .modelMatrix = new (Matrix4_default()) ();
|
|
588
588
|
this .invTextureSpaceMatrix = new (Matrix4_default()) ();
|
|
589
|
-
this .location = new (Vector3_default()) (
|
|
589
|
+
this .location = new (Vector3_default()) ();
|
|
590
590
|
this .locationArray = new Float32Array (3);
|
|
591
591
|
this .invTextureSpaceProjectionMatrix = new (Matrix4_default()) ();
|
|
592
|
-
this .direction = new (Vector3_default()) (
|
|
592
|
+
this .direction = new (Vector3_default()) ();
|
|
593
593
|
this .rotation = new (Rotation4_default()) ();
|
|
594
594
|
this .matrix = new (Matrix4_default()) ();
|
|
595
595
|
this .matrixArray = new Float32Array (16);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/* X_ITE v9.4.0 */(()=>{"use strict";var t={n:e=>{var i=e&&e.__esModule?()=>e.default:()=>e;return t.d(i,{a:i}),i},d:(e,i)=>{for(var r in i)t.o(i,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:i[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)};const e=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Components");var i=t.n(e);const r=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Fields");var n=t.n(r);const o=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Base/X3DFieldDefinition");var a=t.n(o);const s=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Base/FieldDefinitionArray");var u=t.n(s);const l=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Components/Lighting/X3DLightNode");var h=t.n(l);const c=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Base/X3DConstants");var x=t.n(c);const w=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Base/X3DCast");var m=t.n(w);const d=window[Symbol.for("X_ITE.X3D-9.4.0")].require("standard/Math/Numbers/Vector3");var p=t.n(d);const g=window[Symbol.for("X_ITE.X3D-9.4.0")].require("standard/Math/Numbers/Rotation4");var f=t.n(g);const _=window[Symbol.for("X_ITE.X3D-9.4.0")].require("standard/Math/Numbers/Matrix4");var T=t.n(_);const b=window[Symbol.for("X_ITE.X3D-9.4.0")].require("x_ite/Namespace");var O=t.n(b);function S(t){h().call(this,t),this.addType(x().X3DTextureProjectorNode),this._location.setUnit("length"),this._farDistance.setUnit("length"),this._location.setUnit("length")}Object.assign(Object.setPrototypeOf(S.prototype,h().prototype),{initialize(){h().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(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_aspectRatio__",this),this.textureNode=m()(x().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(S,{typeName:{value:"X3DTextureProjectorNode",enumerable:!0},componentInfo:{value:Object.freeze({name:"TextureProjection",level:4}),enumerable:!0}});const y=S;O().add("X3DTextureProjectorNode","x_ite/Components/TextureProjection/X3DTextureProjectorNode",y);const F=y,M=window[Symbol.for("X_ITE.X3D-9.4.0")].require("standard/Math/Geometry/Camera");var j=t.n(M);const P=window[Symbol.for("X_ITE.X3D-9.4.0")].require("standard/Math/Utility/MatrixStack");var D=t.n(P);const v=window[Symbol.for("X_ITE.X3D-9.4.0")].require("standard/Utility/ObjectCache");var X=t.n(v);const V=X()(I);function I(){this.projectionMatrix=new(T()),this.modelViewMatrix=new(D())(T()),this.modelMatrix=new(T()),this.invTextureSpaceMatrix=new(T()),this.invTextureSpaceProjectionMatrix=new(T()),this.location=new(p())(0,0,0),this.locationArray=new Float32Array(3),this.direction=new(p())(0,0,0),this.rotation=new(f()),this.matrix=new(T()),this.matrixArray=new Float32Array(16),this.textureMatrix=new(T())}function N(t){F.call(this,t),this.addType(x().TextureProjector),this._fieldOfView.setUnit("angle")}Object.assign(I.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:T().Identity);this.rotation.setFromToVec(p().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(),l=e.getFieldOfView();j().perspective(l,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,V.push(this)}}),Object.assign(Object.setPrototypeOf(N.prototype,F.prototype),{initialize(){F.prototype.initialize.call(this)},getFieldOfView(){const t=this._fieldOfView.getValue();return t>0&&t<Math.PI?t:Math.PI/4},getLights:()=>V}),Object.defineProperties(N,{typeName:{value:"TextureProjector",enumerable:!0},componentInfo:{value:Object.freeze({name:"TextureProjection",level:2}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"4.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(u())([new(a())(x().inputOutput,"metadata",new(n().SFNode)),new(a())(x().inputOutput,"description",new(n().SFString)),new(a())(x().inputOutput,"global",new(n().SFBool)(!0)),new(a())(x().inputOutput,"on",new(n().SFBool)(!0)),new(a())(x().inputOutput,"color",new(n().SFColor)(1,1,1)),new(a())(x().inputOutput,"intensity",new(n().SFFloat)(1)),new(a())(x().inputOutput,"ambientIntensity",new(n().SFFloat)),new(a())(x().inputOutput,"location",new(n().SFVec3f)),new(a())(x().inputOutput,"direction",new(n().SFVec3f)(0,0,1)),new(a())(x().inputOutput,"upVector",new(n().SFVec3f)(0,0,1)),new(a())(x().inputOutput,"fieldOfView",new(n().SFFloat)(.785398)),new(a())(x().inputOutput,"nearDistance",new(n().SFFloat)(-1)),new(a())(x().inputOutput,"farDistance",new(n().SFFloat)(-1)),new(a())(x().outputOnly,"aspectRatio",new(n().SFFloat)),new(a())(x().inputOutput,"texture",new(n().SFNode)),new(a())(x().inputOutput,"shadows",new(n().SFBool)),new(a())(x().inputOutput,"shadowColor",new(n().SFColor)),new(a())(x().inputOutput,"shadowIntensity",new(n().SFFloat)(1)),new(a())(x().inputOutput,"shadowBias",new(n().SFFloat)(.005)),new(a())(x().initializeOnly,"shadowMapSize",new(n().SFInt32)(1024))]),enumerable:!0}});const z=N;O().add("TextureProjector","x_ite/Components/TextureProjection/TextureProjector",z);const U=z,R=X()(E);function E(){this.projectionMatrix=new(T()),this.modelViewMatrix=new(D())(T()),this.modelMatrix=new(T()),this.invTextureSpaceMatrix=new(T()),this.location=new(p())(0,0,0),this.locationArray=new Float32Array(3),this.invTextureSpaceProjectionMatrix=new(T()),this.direction=new(p())(0,0,0),this.rotation=new(f()),this.matrix=new(T()),this.matrixArray=new Float32Array(16),this.textureMatrix=new(T())}function C(t){F.call(this,t),this.addType(x().TextureProjectorParallel),this._fieldOfView.setUnit("length")}Object.assign(E.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:T().Identity);this.rotation.setFromToVec(p().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(),l=e.getMaximumY(),h=e.getSizeX(),c=e.getSizeY(),x=e.getNearDistance(),w=e.getFarDistance();if(o>h/c){const t=(a+s)/2,e=c*o/2;j().ortho(t-e,t+e,u,l,x,w,this.projectionMatrix)}else{const t=(u+l)/2,e=h/o/2;j().ortho(a,s,t-e,t+e,x,w,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,R.push(this)}}),Object.assign(Object.setPrototypeOf(C.prototype,F.prototype),{initialize(){F.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:()=>R}),Object.defineProperties(C,{typeName:{value:"TextureProjectorParallel",enumerable:!0},componentInfo:{value:Object.freeze({name:"TextureProjection",level:2}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"4.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(u())([new(a())(x().inputOutput,"metadata",new(n().SFNode)),new(a())(x().inputOutput,"description",new(n().SFString)),new(a())(x().inputOutput,"global",new(n().SFBool)(!0)),new(a())(x().inputOutput,"on",new(n().SFBool)(!0)),new(a())(x().inputOutput,"color",new(n().SFColor)(1,1,1)),new(a())(x().inputOutput,"intensity",new(n().SFFloat)(1)),new(a())(x().inputOutput,"ambientIntensity",new(n().SFFloat)),new(a())(x().inputOutput,"location",new(n().SFVec3f)),new(a())(x().inputOutput,"direction",new(n().SFVec3f)(0,0,1)),new(a())(x().inputOutput,"upVector",new(n().SFVec3f)(0,0,1)),new(a())(x().inputOutput,"fieldOfView",new(n().MFFloat)(-1,-1,1,1)),new(a())(x().inputOutput,"nearDistance",new(n().SFFloat)(-1)),new(a())(x().inputOutput,"farDistance",new(n().SFFloat)(-1)),new(a())(x().outputOnly,"aspectRatio",new(n().SFFloat)),new(a())(x().inputOutput,"texture",new(n().SFNode)),new(a())(x().inputOutput,"shadows",new(n().SFBool)),new(a())(x().inputOutput,"shadowColor",new(n().SFColor)),new(a())(x().inputOutput,"shadowIntensity",new(n().SFFloat)(1)),new(a())(x().inputOutput,"shadowBias",new(n().SFFloat)(.005)),new(a())(x().initializeOnly,"shadowMapSize",new(n().SFInt32)(1024))]),enumerable:!0}});const A=C;O().add("TextureProjectorParallel","x_ite/Components/TextureProjection/TextureProjectorParallel",A);const B=A;i().add({name:"TextureProjection",concreteNodes:[U,B],abstractNodes:[F]});const q=void 0;O().add("TextureProjection","assets/components/TextureProjection",q)})();
|
|
1
|
+
/* X_ITE v9.4.2 */(()=>{"use strict";var t={n:e=>{var i=e&&e.__esModule?()=>e.default:()=>e;return t.d(i,{a:i}),i},d:(e,i)=>{for(var r in i)t.o(i,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:i[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)};const e=window[Symbol.for("X_ITE.X3D-9.4.2")].require("x_ite/Components");var i=t.n(e);const r=window[Symbol.for("X_ITE.X3D-9.4.2")].require("x_ite/Fields");var n=t.n(r);const o=window[Symbol.for("X_ITE.X3D-9.4.2")].require("x_ite/Base/X3DFieldDefinition");var a=t.n(o);const s=window[Symbol.for("X_ITE.X3D-9.4.2")].require("x_ite/Base/FieldDefinitionArray");var u=t.n(s);const l=window[Symbol.for("X_ITE.X3D-9.4.2")].require("x_ite/Components/Lighting/X3DLightNode");var h=t.n(l);const c=window[Symbol.for("X_ITE.X3D-9.4.2")].require("x_ite/Base/X3DConstants");var x=t.n(c);const w=window[Symbol.for("X_ITE.X3D-9.4.2")].require("x_ite/Base/X3DCast");var m=t.n(w);const d=window[Symbol.for("X_ITE.X3D-9.4.2")].require("standard/Math/Numbers/Vector3");var p=t.n(d);const g=window[Symbol.for("X_ITE.X3D-9.4.2")].require("standard/Math/Numbers/Rotation4");var f=t.n(g);const _=window[Symbol.for("X_ITE.X3D-9.4.2")].require("standard/Math/Numbers/Matrix4");var T=t.n(_);const b=window[Symbol.for("X_ITE.X3D-9.4.2")].require("x_ite/Namespace");var O=t.n(b);function S(t){h().call(this,t),this.addType(x().X3DTextureProjectorNode),this._location.setUnit("length"),this._farDistance.setUnit("length"),this._location.setUnit("length")}Object.assign(Object.setPrototypeOf(S.prototype,h().prototype),{initialize(){h().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(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_aspectRatio__",this),this.textureNode=m()(x().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(S,{typeName:{value:"X3DTextureProjectorNode",enumerable:!0},componentInfo:{value:Object.freeze({name:"TextureProjection",level:4}),enumerable:!0}});const y=S;O().add("X3DTextureProjectorNode","x_ite/Components/TextureProjection/X3DTextureProjectorNode",y);const F=y,M=window[Symbol.for("X_ITE.X3D-9.4.2")].require("standard/Math/Geometry/Camera");var j=t.n(M);const P=window[Symbol.for("X_ITE.X3D-9.4.2")].require("standard/Math/Utility/MatrixStack");var D=t.n(P);const v=window[Symbol.for("X_ITE.X3D-9.4.2")].require("standard/Utility/ObjectCache");var X=t.n(v);const V=X()(I);function I(){this.projectionMatrix=new(T()),this.modelViewMatrix=new(D())(T()),this.modelMatrix=new(T()),this.invTextureSpaceMatrix=new(T()),this.invTextureSpaceProjectionMatrix=new(T()),this.location=new(p()),this.locationArray=new Float32Array(3),this.direction=new(p()),this.rotation=new(f()),this.matrix=new(T()),this.matrixArray=new Float32Array(16),this.textureMatrix=new(T())}function N(t){F.call(this,t),this.addType(x().TextureProjector),this._fieldOfView.setUnit("angle")}Object.assign(I.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:T().Identity);this.rotation.setFromToVec(p().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(),l=e.getFieldOfView();j().perspective(l,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,V.push(this)}}),Object.assign(Object.setPrototypeOf(N.prototype,F.prototype),{initialize(){F.prototype.initialize.call(this)},getFieldOfView(){const t=this._fieldOfView.getValue();return t>0&&t<Math.PI?t:Math.PI/4},getLights:()=>V}),Object.defineProperties(N,{typeName:{value:"TextureProjector",enumerable:!0},componentInfo:{value:Object.freeze({name:"TextureProjection",level:2}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"4.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(u())([new(a())(x().inputOutput,"metadata",new(n().SFNode)),new(a())(x().inputOutput,"description",new(n().SFString)),new(a())(x().inputOutput,"global",new(n().SFBool)(!0)),new(a())(x().inputOutput,"on",new(n().SFBool)(!0)),new(a())(x().inputOutput,"color",new(n().SFColor)(1,1,1)),new(a())(x().inputOutput,"intensity",new(n().SFFloat)(1)),new(a())(x().inputOutput,"ambientIntensity",new(n().SFFloat)),new(a())(x().inputOutput,"location",new(n().SFVec3f)),new(a())(x().inputOutput,"direction",new(n().SFVec3f)(0,0,1)),new(a())(x().inputOutput,"upVector",new(n().SFVec3f)(0,0,1)),new(a())(x().inputOutput,"fieldOfView",new(n().SFFloat)(.785398)),new(a())(x().inputOutput,"nearDistance",new(n().SFFloat)(-1)),new(a())(x().inputOutput,"farDistance",new(n().SFFloat)(-1)),new(a())(x().outputOnly,"aspectRatio",new(n().SFFloat)),new(a())(x().inputOutput,"texture",new(n().SFNode)),new(a())(x().inputOutput,"shadows",new(n().SFBool)),new(a())(x().inputOutput,"shadowColor",new(n().SFColor)),new(a())(x().inputOutput,"shadowIntensity",new(n().SFFloat)(1)),new(a())(x().inputOutput,"shadowBias",new(n().SFFloat)(.005)),new(a())(x().initializeOnly,"shadowMapSize",new(n().SFInt32)(1024))]),enumerable:!0}});const z=N;O().add("TextureProjector","x_ite/Components/TextureProjection/TextureProjector",z);const U=z,R=X()(E);function E(){this.projectionMatrix=new(T()),this.modelViewMatrix=new(D())(T()),this.modelMatrix=new(T()),this.invTextureSpaceMatrix=new(T()),this.location=new(p()),this.locationArray=new Float32Array(3),this.invTextureSpaceProjectionMatrix=new(T()),this.direction=new(p()),this.rotation=new(f()),this.matrix=new(T()),this.matrixArray=new Float32Array(16),this.textureMatrix=new(T())}function C(t){F.call(this,t),this.addType(x().TextureProjectorParallel),this._fieldOfView.setUnit("length")}Object.assign(E.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:T().Identity);this.rotation.setFromToVec(p().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(),l=e.getMaximumY(),h=e.getSizeX(),c=e.getSizeY(),x=e.getNearDistance(),w=e.getFarDistance();if(o>h/c){const t=(a+s)/2,e=c*o/2;j().ortho(t-e,t+e,u,l,x,w,this.projectionMatrix)}else{const t=(u+l)/2,e=h/o/2;j().ortho(a,s,t-e,t+e,x,w,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,R.push(this)}}),Object.assign(Object.setPrototypeOf(C.prototype,F.prototype),{initialize(){F.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:()=>R}),Object.defineProperties(C,{typeName:{value:"TextureProjectorParallel",enumerable:!0},componentInfo:{value:Object.freeze({name:"TextureProjection",level:2}),enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze({from:"4.0",to:"Infinity"}),enumerable:!0},fieldDefinitions:{value:new(u())([new(a())(x().inputOutput,"metadata",new(n().SFNode)),new(a())(x().inputOutput,"description",new(n().SFString)),new(a())(x().inputOutput,"global",new(n().SFBool)(!0)),new(a())(x().inputOutput,"on",new(n().SFBool)(!0)),new(a())(x().inputOutput,"color",new(n().SFColor)(1,1,1)),new(a())(x().inputOutput,"intensity",new(n().SFFloat)(1)),new(a())(x().inputOutput,"ambientIntensity",new(n().SFFloat)),new(a())(x().inputOutput,"location",new(n().SFVec3f)),new(a())(x().inputOutput,"direction",new(n().SFVec3f)(0,0,1)),new(a())(x().inputOutput,"upVector",new(n().SFVec3f)(0,0,1)),new(a())(x().inputOutput,"fieldOfView",new(n().MFFloat)(-1,-1,1,1)),new(a())(x().inputOutput,"nearDistance",new(n().SFFloat)(-1)),new(a())(x().inputOutput,"farDistance",new(n().SFFloat)(-1)),new(a())(x().outputOnly,"aspectRatio",new(n().SFFloat)),new(a())(x().inputOutput,"texture",new(n().SFNode)),new(a())(x().inputOutput,"shadows",new(n().SFBool)),new(a())(x().inputOutput,"shadowColor",new(n().SFColor)),new(a())(x().inputOutput,"shadowIntensity",new(n().SFFloat)(1)),new(a())(x().inputOutput,"shadowBias",new(n().SFFloat)(.005)),new(a())(x().initializeOnly,"shadowMapSize",new(n().SFInt32)(1024))]),enumerable:!0}});const A=C;O().add("TextureProjectorParallel","x_ite/Components/TextureProjection/TextureProjectorParallel",A);const B=A;i().add({name:"TextureProjection",concreteNodes:[U,B],abstractNodes:[F]});const q=void 0;O().add("TextureProjection","assets/components/TextureProjection",q)})();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/* X_ITE v9.4.
|
|
1
|
+
/* X_ITE v9.4.2 */(() => { // webpackBootstrap
|
|
2
2
|
/******/ var __webpack_modules__ = ({
|
|
3
3
|
|
|
4
|
-
/***/
|
|
4
|
+
/***/ 159:
|
|
5
5
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
6
6
|
|
|
7
7
|
var __dirname = "/";
|
|
@@ -38,7 +38,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,
|
|
|
38
38
|
|
|
39
39
|
/***/ }),
|
|
40
40
|
|
|
41
|
-
/***/
|
|
41
|
+
/***/ 689:
|
|
42
42
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
43
43
|
|
|
44
44
|
var __dirname = "/";
|
|
@@ -72,7 +72,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,
|
|
|
72
72
|
|
|
73
73
|
/***/ }),
|
|
74
74
|
|
|
75
|
-
/***/
|
|
75
|
+
/***/ 141:
|
|
76
76
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
77
77
|
|
|
78
78
|
/*! dicom-parser - 1.8.12 - 2023-02-20 | (c) 2017 Chris Hafey | https://github.com/cornerstonejs/dicomParser */
|
|
@@ -4028,7 +4028,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_zlib__;
|
|
|
4028
4028
|
|
|
4029
4029
|
/***/ }),
|
|
4030
4030
|
|
|
4031
|
-
/***/
|
|
4031
|
+
/***/ 137:
|
|
4032
4032
|
/***/ ((module) => {
|
|
4033
4033
|
|
|
4034
4034
|
/* -*- tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- /
|
|
@@ -5183,7 +5183,7 @@ function decode(jpegData, userOpts = {}) {
|
|
|
5183
5183
|
|
|
5184
5184
|
/***/ }),
|
|
5185
5185
|
|
|
5186
|
-
/***/
|
|
5186
|
+
/***/ 229:
|
|
5187
5187
|
/***/ ((module) => {
|
|
5188
5188
|
|
|
5189
5189
|
(function(f){if(true){module.exports=f()}else { var g; }})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c=undefined;if(!f&&c)return require(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u=undefined,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
|
@@ -6952,7 +6952,7 @@ if ((moduleType !== 'undefined') && module.exports) {
|
|
|
6952
6952
|
/***/ ((module) => {
|
|
6953
6953
|
|
|
6954
6954
|
"use strict";
|
|
6955
|
-
module.exports = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
6955
|
+
module.exports = window [Symbol .for ("X_ITE.X3D-9.4.2")] .require ("lib/jquery");
|
|
6956
6956
|
|
|
6957
6957
|
/***/ }),
|
|
6958
6958
|
|
|
@@ -7056,25 +7056,25 @@ var __webpack_exports__ = {};
|
|
|
7056
7056
|
// UNUSED EXPORTS: default
|
|
7057
7057
|
|
|
7058
7058
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components\")"
|
|
7059
|
-
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
7059
|
+
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.2")] .require ("x_ite/Components");
|
|
7060
7060
|
var Components_default = /*#__PURE__*/__webpack_require__.n(Components_namespaceObject);
|
|
7061
7061
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
|
|
7062
|
-
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
7062
|
+
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.2")] .require ("x_ite/Fields");
|
|
7063
7063
|
var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
|
|
7064
7064
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
|
|
7065
|
-
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
7065
|
+
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.2")] .require ("x_ite/Base/X3DFieldDefinition");
|
|
7066
7066
|
var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
|
|
7067
7067
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
|
|
7068
|
-
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
7068
|
+
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.2")] .require ("x_ite/Base/FieldDefinitionArray");
|
|
7069
7069
|
var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
|
|
7070
7070
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Texturing/X3DSingleTextureNode\")"
|
|
7071
|
-
const X3DSingleTextureNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
7071
|
+
const X3DSingleTextureNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.2")] .require ("x_ite/Components/Texturing/X3DSingleTextureNode");
|
|
7072
7072
|
var X3DSingleTextureNode_default = /*#__PURE__*/__webpack_require__.n(X3DSingleTextureNode_namespaceObject);
|
|
7073
7073
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
|
|
7074
|
-
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
7074
|
+
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.2")] .require ("x_ite/Base/X3DConstants");
|
|
7075
7075
|
var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
|
|
7076
7076
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
|
|
7077
|
-
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
7077
|
+
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.2")] .require ("x_ite/Namespace");
|
|
7078
7078
|
var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
|
|
7079
7079
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing3D/X3DTexture3DNode.js
|
|
7080
7080
|
/*******************************************************************************
|
|
@@ -7259,7 +7259,7 @@ const __default__ = X3DTexture3DNode;
|
|
|
7259
7259
|
Namespace_default().add ("X3DTexture3DNode", "x_ite/Components/Texturing3D/X3DTexture3DNode", __default__);
|
|
7260
7260
|
/* harmony default export */ const Texturing3D_X3DTexture3DNode = (__default__);
|
|
7261
7261
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DCast\")"
|
|
7262
|
-
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
7262
|
+
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.2")] .require ("x_ite/Base/X3DCast");
|
|
7263
7263
|
var X3DCast_default = /*#__PURE__*/__webpack_require__.n(X3DCast_namespaceObject);
|
|
7264
7264
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing3D/ComposedTexture3D.js
|
|
7265
7265
|
/*******************************************************************************
|
|
@@ -7474,10 +7474,10 @@ const ComposedTexture3D_default_ = ComposedTexture3D;
|
|
|
7474
7474
|
Namespace_default().add ("ComposedTexture3D", "x_ite/Components/Texturing3D/ComposedTexture3D", ComposedTexture3D_default_);
|
|
7475
7475
|
/* harmony default export */ const Texturing3D_ComposedTexture3D = (ComposedTexture3D_default_);
|
|
7476
7476
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Networking/X3DUrlObject\")"
|
|
7477
|
-
const X3DUrlObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
7477
|
+
const X3DUrlObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.2")] .require ("x_ite/Components/Networking/X3DUrlObject");
|
|
7478
7478
|
var X3DUrlObject_default = /*#__PURE__*/__webpack_require__.n(X3DUrlObject_namespaceObject);
|
|
7479
7479
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Parser/Expressions\")"
|
|
7480
|
-
const Expressions_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
7480
|
+
const Expressions_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.2")] .require ("x_ite/Parser/Expressions");
|
|
7481
7481
|
var Expressions_default = /*#__PURE__*/__webpack_require__.n(Expressions_namespaceObject);
|
|
7482
7482
|
// EXTERNAL MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"lib/jquery\")"
|
|
7483
7483
|
var jquery_ = __webpack_require__(823);
|
|
@@ -7694,7 +7694,7 @@ Object .assign (NRRDParser .prototype,
|
|
|
7694
7694
|
}
|
|
7695
7695
|
}
|
|
7696
7696
|
|
|
7697
|
-
throw new Error (
|
|
7697
|
+
throw new Error (`Unsupported NRRD dimension '${result ?.[1]}', must be 1, 2, 3, or 4.`);
|
|
7698
7698
|
},
|
|
7699
7699
|
getSizes (value)
|
|
7700
7700
|
{
|
|
@@ -7946,11 +7946,11 @@ const NRRDParser_default_ = NRRDParser;
|
|
|
7946
7946
|
Namespace_default().add ("NRRDParser", "x_ite/Browser/Texturing3D/NRRDParser", NRRDParser_default_);
|
|
7947
7947
|
/* harmony default export */ const Texturing3D_NRRDParser = (NRRDParser_default_);
|
|
7948
7948
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Texturing3D/DICOMParser.js
|
|
7949
|
-
/* provided dependency */ var dicomParser = __webpack_require__(
|
|
7950
|
-
/* provided dependency */ var JpegImage = __webpack_require__(
|
|
7951
|
-
/* provided dependency */ var jpeg = __webpack_require__(
|
|
7952
|
-
/* provided dependency */ var CharLS = __webpack_require__(
|
|
7953
|
-
/* provided dependency */ var OpenJPEG = __webpack_require__(
|
|
7949
|
+
/* provided dependency */ var dicomParser = __webpack_require__(141);
|
|
7950
|
+
/* provided dependency */ var JpegImage = __webpack_require__(137);
|
|
7951
|
+
/* provided dependency */ var jpeg = __webpack_require__(229);
|
|
7952
|
+
/* provided dependency */ var CharLS = __webpack_require__(159);
|
|
7953
|
+
/* provided dependency */ var OpenJPEG = __webpack_require__(689);
|
|
7954
7954
|
/*******************************************************************************
|
|
7955
7955
|
*
|
|
7956
7956
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -8232,8 +8232,7 @@ Object .assign (DicomParser .prototype,
|
|
|
8232
8232
|
|
|
8233
8233
|
for (var i = 0, length = frame .length; i < length; ++ i, ++ b)
|
|
8234
8234
|
bytes [b] = (frame [i] - normalize .offset) * normalize .factor;
|
|
8235
|
-
}
|
|
8236
|
-
this);
|
|
8235
|
+
});
|
|
8237
8236
|
|
|
8238
8237
|
// Invert MONOCHROME1 pixels.
|
|
8239
8238
|
|
|
@@ -9053,10 +9052,10 @@ const DICOMParser_default_ = DicomParser;
|
|
|
9053
9052
|
Namespace_default().add ("DICOMParser", "x_ite/Browser/Texturing3D/DICOMParser", DICOMParser_default_);
|
|
9054
9053
|
/* harmony default export */ const DICOMParser = (DICOMParser_default_);
|
|
9055
9054
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/InputOutput/FileLoader\")"
|
|
9056
|
-
const FileLoader_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
9055
|
+
const FileLoader_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.2")] .require ("x_ite/InputOutput/FileLoader");
|
|
9057
9056
|
var FileLoader_default = /*#__PURE__*/__webpack_require__.n(FileLoader_namespaceObject);
|
|
9058
9057
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/DEVELOPMENT\")"
|
|
9059
|
-
const DEVELOPMENT_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
9058
|
+
const DEVELOPMENT_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.2")] .require ("x_ite/DEVELOPMENT");
|
|
9060
9059
|
var DEVELOPMENT_default = /*#__PURE__*/__webpack_require__.n(DEVELOPMENT_namespaceObject);
|
|
9061
9060
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing3D/ImageTexture3D.js
|
|
9062
9061
|
/*******************************************************************************
|
|
@@ -9457,7 +9456,7 @@ Object .assign (Object .setPrototypeOf (ImageTextureAtlas .prototype, Texturing3
|
|
|
9457
9456
|
// gl .copyTexSubImage3D (gl .TEXTURE_3D, 0, 0, 0, i, sx, sy, width, height);
|
|
9458
9457
|
|
|
9459
9458
|
gl .readPixels (sx, sy, width, height, gl .RGBA, gl .UNSIGNED_BYTE, data);
|
|
9460
|
-
gl .texSubImage3D (gl .TEXTURE_3D, 0, 0, 0, i, width, height, 1, gl .RGBA, gl.
|
|
9459
|
+
gl .texSubImage3D (gl .TEXTURE_3D, 0, 0, 0, i, width, height, 1, gl .RGBA, gl .UNSIGNED_BYTE, data);
|
|
9461
9460
|
|
|
9462
9461
|
transparent = transparent || this .isImageTransparent (data);
|
|
9463
9462
|
}
|
|
@@ -9757,10 +9756,10 @@ const PixelTexture3D_default_ = PixelTexture3D;
|
|
|
9757
9756
|
Namespace_default().add ("PixelTexture3D", "x_ite/Components/Texturing3D/PixelTexture3D", PixelTexture3D_default_);
|
|
9758
9757
|
/* harmony default export */ const Texturing3D_PixelTexture3D = (PixelTexture3D_default_);
|
|
9759
9758
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Texturing/X3DSingleTextureCoordinateNode\")"
|
|
9760
|
-
const X3DSingleTextureCoordinateNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
9759
|
+
const X3DSingleTextureCoordinateNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.2")] .require ("x_ite/Components/Texturing/X3DSingleTextureCoordinateNode");
|
|
9761
9760
|
var X3DSingleTextureCoordinateNode_default = /*#__PURE__*/__webpack_require__.n(X3DSingleTextureCoordinateNode_namespaceObject);
|
|
9762
9761
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector4\")"
|
|
9763
|
-
const Vector4_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
9762
|
+
const Vector4_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.2")] .require ("standard/Math/Numbers/Vector4");
|
|
9764
9763
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing3D/TextureCoordinate3D.js
|
|
9765
9764
|
/*******************************************************************************
|
|
9766
9765
|
*
|
|
@@ -10064,16 +10063,16 @@ const TextureCoordinate4D_default_ = TextureCoordinate4D;
|
|
|
10064
10063
|
Namespace_default().add ("TextureCoordinate4D", "x_ite/Components/Texturing3D/TextureCoordinate4D", TextureCoordinate4D_default_);
|
|
10065
10064
|
/* harmony default export */ const Texturing3D_TextureCoordinate4D = (TextureCoordinate4D_default_);
|
|
10066
10065
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Texturing/X3DSingleTextureTransformNode\")"
|
|
10067
|
-
const X3DSingleTextureTransformNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
10066
|
+
const X3DSingleTextureTransformNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.2")] .require ("x_ite/Components/Texturing/X3DSingleTextureTransformNode");
|
|
10068
10067
|
var X3DSingleTextureTransformNode_default = /*#__PURE__*/__webpack_require__.n(X3DSingleTextureTransformNode_namespaceObject);
|
|
10069
10068
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector3\")"
|
|
10070
|
-
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
10069
|
+
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.2")] .require ("standard/Math/Numbers/Vector3");
|
|
10071
10070
|
var Vector3_default = /*#__PURE__*/__webpack_require__.n(Vector3_namespaceObject);
|
|
10072
10071
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Rotation4\")"
|
|
10073
|
-
const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
10072
|
+
const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.2")] .require ("standard/Math/Numbers/Rotation4");
|
|
10074
10073
|
var Rotation4_default = /*#__PURE__*/__webpack_require__.n(Rotation4_namespaceObject);
|
|
10075
10074
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Matrix4\")"
|
|
10076
|
-
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.
|
|
10075
|
+
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.4.2")] .require ("standard/Math/Numbers/Matrix4");
|
|
10077
10076
|
var Matrix4_default = /*#__PURE__*/__webpack_require__.n(Matrix4_namespaceObject);
|
|
10078
10077
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Texturing3D/TextureTransform3D.js
|
|
10079
10078
|
/*******************************************************************************
|
|
@@ -10153,7 +10152,7 @@ Object .assign (Object .setPrototypeOf (TextureTransform3D .prototype, (X3DSingl
|
|
|
10153
10152
|
},
|
|
10154
10153
|
eventsProcessed: (() =>
|
|
10155
10154
|
{
|
|
10156
|
-
const vector = new (Vector3_default()) (
|
|
10155
|
+
const vector = new (Vector3_default()) ();
|
|
10157
10156
|
|
|
10158
10157
|
return function ()
|
|
10159
10158
|
{
|