x_ite 8.12.5 → 9.0.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 +4 -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 +359 -117
- 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 +28 -26
- package/dist/assets/components/Geometry2D.min.js +1 -1
- package/dist/assets/components/Geospatial.js +33 -33
- package/dist/assets/components/Geospatial.min.js +1 -1
- package/dist/assets/components/HAnim.js +23 -23
- package/dist/assets/components/HAnim.min.js +1 -1
- package/dist/assets/components/KeyDeviceSensor.js +8 -8
- package/dist/assets/components/KeyDeviceSensor.min.js +1 -1
- package/dist/assets/components/Layout.js +33 -31
- package/dist/assets/components/Layout.min.js +1 -1
- package/dist/assets/components/NURBS.js +24 -24
- package/dist/assets/components/NURBS.min.js +1 -1
- package/dist/assets/components/ParticleSystems.js +35 -49
- package/dist/assets/components/ParticleSystems.min.js +1 -1
- package/dist/assets/components/Picking.js +18 -18
- package/dist/assets/components/Picking.min.js +1 -1
- package/dist/assets/components/RigidBodyPhysics.js +17 -17
- 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 +27 -27
- package/dist/assets/components/Text.min.js +1 -1
- package/dist/assets/components/{TextureProjector.js → TextureProjection.js} +243 -193
- package/dist/assets/components/TextureProjection.min.js +1 -0
- package/dist/assets/components/Texturing3D.js +175 -136
- package/dist/assets/components/Texturing3D.min.js +1 -1
- package/dist/assets/components/VolumeRendering.js +46 -47
- package/dist/assets/components/VolumeRendering.min.js +1 -1
- package/dist/assets/components/X_ITE.js +9 -9
- package/dist/assets/components/X_ITE.min.js +1 -1
- package/dist/assets/lib/README.md +16 -0
- package/dist/assets/lib/draco_decoder_gltf.js +1 -29
- package/dist/assets/lib/libktx.js +1 -0
- package/dist/assets/lib/libktx.wasm +0 -0
- package/dist/assets/lib/lut_ggx.png +0 -0
- package/dist/x_ite.css +1 -1
- package/dist/x_ite.js +2505 -1767
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.min.mjs +1 -1
- package/dist/x_ite.mjs +2505 -1767
- package/dist/x_ite.zip +0 -0
- package/package.json +3 -2
- package/dist/assets/components/TextureProjector.min.js +0 -1
package/dist/x_ite.zip
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x_ite",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0",
|
|
4
4
|
"description": "X_ITE X3D Browser, view and manipulate X3D and VRML scenes in HTML.",
|
|
5
5
|
"main": "dist/x_ite.js",
|
|
6
6
|
"module": "dist/x_ite.mjs",
|
|
@@ -96,7 +96,8 @@
|
|
|
96
96
|
"opentype.js": "^1.3.4",
|
|
97
97
|
"pako": "^2.1.0",
|
|
98
98
|
"string-replace-webpack-plugin": "^0.1.3",
|
|
99
|
-
"
|
|
99
|
+
"terser": "^5.22.0",
|
|
100
|
+
"webpack": "^5.89.0",
|
|
100
101
|
"webpack-cli": "^5.1.4",
|
|
101
102
|
"webpack-shell-plugin-next": "^2.3.1"
|
|
102
103
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/* X_ITE v8.12.5 */(()=>{"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-8.12.5")].require("x_ite/Components");var i=t.n(e);const r=window[Symbol.for("X_ITE.X3D-8.12.5")].require("x_ite/Fields");var o=t.n(r);const n=window[Symbol.for("X_ITE.X3D-8.12.5")].require("x_ite/Base/X3DFieldDefinition");var s=t.n(n);const a=window[Symbol.for("X_ITE.X3D-8.12.5")].require("x_ite/Base/FieldDefinitionArray");var u=t.n(a);const c=window[Symbol.for("X_ITE.X3D-8.12.5")].require("x_ite/Components/Core/X3DChildNode");var l=t.n(c);const h=window[Symbol.for("X_ITE.X3D-8.12.5")].require("x_ite/Base/X3DConstants");var x=t.n(h);const p=window[Symbol.for("X_ITE.X3D-8.12.5")].require("x_ite/Base/X3DCast");var d=t.n(p);const m=window[Symbol.for("X_ITE.X3D-8.12.5")].require("standard/Math/Numbers/Vector3");var g=t.n(m);const w=window[Symbol.for("X_ITE.X3D-8.12.5")].require("standard/Math/Numbers/Rotation4");var _=t.n(w);const T=window[Symbol.for("X_ITE.X3D-8.12.5")].require("standard/Math/Numbers/Matrix4");var f=t.n(T);const j=window[Symbol.for("X_ITE.X3D-8.12.5")].require("x_ite/Namespace");var b=t.n(j);function M(t){l().call(this,t),this.addType(x().X3DTextureProjectorNode),this._location.setUnit("length"),this._farDistance.setUnit("length"),this._location.setUnit("length")}Object.assign(Object.setPrototypeOf(M.prototype,l().prototype),{initialize(){l().prototype.initialize.call(this),this._on.addInterest("set_on__",this),this._texture.addInterest("set_texture__",this),this.set_texture__()},getGlobal(){return this._global.getValue()},getLocation(){return this._location.getValue()},getDirection(){return this._direction.getValue()},getNearDistance(){const t=this._nearDistance.getValue();return-1===t?.125:t},getFarDistance(){const t=this._farDistance.getValue();return-1===t?1e5:t},getTexture(){return this.textureNode},getBiasMatrix:(()=>{const t=new(f())(.5,0,0,0,0,.5,0,0,0,0,.5,0,.5,.5,.5,1);return function(){return t}})(),straightenHorizon:(()=>{const t=new(g())(0,0,0),e=new(g())(0,0,0),i=new(g())(0,0,0),r=new(_());return function(o){o.multVecRot(t.assign(g().xAxis).negate()),o.multVecRot(e.assign(g().zAxis)),i.assign(this._upVector.getValue()).normalize();const n=e.cross(i);return Math.abs(e.dot(i))>=1||Math.abs(n.dot(t))>=1?o:(r.setFromToVec(t,n),o.multRight(r))}})(),set_on__(){this._on.getValue()&&this.textureNode?(delete this.push,delete this.pop):(this.push=Function.prototype,this.pop=Function.prototype)},set_texture__(){this.textureNode&&this.textureNode.removeInterest("set_aspectRatio__",this),this.textureNode=d()(x().X3DTexture2DNode,this._texture),this.textureNode&&this.textureNode.addInterest("set_aspectRatio__",this),this.set_aspectRatio__(),this.set_on__()},set_aspectRatio__(){this.textureNode?this._aspectRatio=this.textureNode.getWidth()/this.textureNode.getHeight():this._aspectRatio=0},push(t){const e=this.getTextureProjectors().pop();e.set(this,t.getModelViewMatrix().get()),this._global.getValue()?(t.getGlobalObjects().push(e),t.getTextureProjectors().push(e)):(t.getLocalObjects().push(e),t.getTextureProjectors().push(e),++t.getLocalObjectsCount()[2])},pop(t){this._global.getValue()||(t.getLocalObjects().pop(),--t.getLocalObjectsCount()[2])}}),Object.defineProperties(M,{typeName:{value:"X3DTextureProjectorNode",enumerable:!0},componentName:{value:"TextureProjector",enumerable:!0}});const v=M;b().add("X3DTextureProjectorNode","x_ite/Components/TextureProjector/X3DTextureProjectorNode",v);const O=v,y=window[Symbol.for("X_ITE.X3D-8.12.5")].require("standard/Math/Geometry/Camera");var P=t.n(y);const S=window[Symbol.for("X_ITE.X3D-8.12.5")].require("standard/Utility/ObjectCache");var V=t.n(S);const X=V()(F);function F(){this.projectionMatrix=new(f()),this.modelViewMatrix=new(f()),this.modelMatrix=new(f()),this.invTextureSpaceMatrix=new(f()),this.invTextureSpaceProjectionMatrix=new(f()),this.location=new(g())(0,0,0),this.locationArray=new Float32Array(3),this.direction=new(g())(0,0,0),this.rotation=new(_()),this.projectiveTextureMatrix=new(f()),this.projectiveTextureMatrixArray=new Float32Array(16)}function D(t){O.call(this,t),this.addType(x().TextureProjector),this._fieldOfView.setUnit("angle")}Object.assign(F.prototype,{set(t,e){this.browser=t.getBrowser(),this.textureProjectorNode=t,this.modelViewMatrix.assign(e)},setGlobalVariables(t){const e=this.textureProjectorNode,i=t.getCameraSpaceMatrix().get(),r=this.modelMatrix.assign(this.modelViewMatrix).multRight(i),o=this.invTextureSpaceMatrix.assign(e.getGlobal()?r:f().Identity);this.rotation.setFromToVec(g().zAxis,this.direction.assign(e.getDirection()).negate()),e.straightenHorizon(this.rotation),o.translate(e.getLocation()),o.rotate(this.rotation),o.inverse();const n=e.getTexture().getWidth(),s=e.getTexture().getHeight(),a=e.getNearDistance(),u=e.getFarDistance(),c=e.getFieldOfView();P().perspective(c,a,u,n,s,this.projectionMatrix),e.getGlobal()||o.multLeft(r.inverse()),this.invTextureSpaceProjectionMatrix.assign(o).multRight(this.projectionMatrix).multRight(e.getBiasMatrix()),this.projectiveTextureMatrix.assign(i).multRight(this.invTextureSpaceProjectionMatrix),this.projectiveTextureMatrixArray.set(this.projectiveTextureMatrix),this.modelViewMatrix.multVecMatrix(this.location.assign(e._location.getValue())),this.locationArray.set(this.location)},setShaderUniforms(t,e,i){const r=e.numProjectiveTextures++;if(e.hasTextureProjector(r,this))return;const o=this.textureProjectorNode.getTexture(),n=this.browser.getTexture2DUnit();t.activeTexture(t.TEXTURE0+n),t.bindTexture(t.TEXTURE_2D,o.getTexture()),t.uniform1i(e.x3d_ProjectiveTexture[r],n),t.uniformMatrix4fv(e.x3d_ProjectiveTextureMatrix[r],!1,this.projectiveTextureMatrixArray),t.uniform3fv(e.x3d_ProjectiveTextureLocation[r],this.locationArray)},dispose(){X.push(this)}}),Object.assign(Object.setPrototypeOf(D.prototype,O.prototype),{initialize(){O.prototype.initialize.call(this)},getFieldOfView(){const t=this._fieldOfView.getValue();return t>0&&t<Math.PI?t:Math.PI/4},getTextureProjectors:()=>X}),Object.defineProperties(D,{typeName:{value:"TextureProjector",enumerable:!0},componentName:{value:"TextureProjector",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["4.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(u())([new(s())(x().inputOutput,"metadata",new(o().SFNode)),new(s())(x().inputOutput,"description",new(o().SFString)),new(s())(x().inputOutput,"on",new(o().SFBool)(!0)),new(s())(x().inputOutput,"global",new(o().SFBool)(!0)),new(s())(x().inputOutput,"location",new(o().SFVec3f)(0,0,0)),new(s())(x().inputOutput,"direction",new(o().SFVec3f)(0,0,1)),new(s())(x().inputOutput,"upVector",new(o().SFVec3f)(0,0,1)),new(s())(x().inputOutput,"fieldOfView",new(o().SFFloat)(.785398)),new(s())(x().inputOutput,"nearDistance",new(o().SFFloat)(-1)),new(s())(x().inputOutput,"farDistance",new(o().SFFloat)(-1)),new(s())(x().outputOnly,"aspectRatio",new(o().SFFloat)),new(s())(x().inputOutput,"texture",new(o().SFNode))]),enumerable:!0}});const N=D;b().add("TextureProjector","x_ite/Components/TextureProjector/TextureProjector",N);const R=N,I=V()(z);function z(){this.projectionMatrix=new(f()),this.modelViewMatrix=new(f()),this.modelMatrix=new(f()),this.invTextureSpaceMatrix=new(f()),this.location=new(g())(0,0,0),this.locationArray=new Float32Array(3),this.invTextureSpaceProjectionMatrix=new(f()),this.direction=new(g())(0,0,0),this.rotation=new(_()),this.projectiveTextureMatrix=new(f()),this.projectiveTextureMatrixArray=new Float32Array(16)}function A(t){O.call(this,t),this.addType(x().TextureProjectorParallel),this._fieldOfView.setUnit("length")}Object.assign(z.prototype,{set(t,e){this.browser=t.getBrowser(),this.textureProjectorNode=t,this.modelViewMatrix.assign(e)},setGlobalVariables(t){const e=this.textureProjectorNode,i=t.getCameraSpaceMatrix().get(),r=this.modelMatrix.assign(this.modelViewMatrix).multRight(i),o=this.invTextureSpaceMatrix.assign(e.getGlobal()?r:f().Identity);this.rotation.setFromToVec(g().zAxis,this.direction.assign(e.getDirection()).negate()),e.straightenHorizon(this.rotation),o.translate(e.getLocation()),o.rotate(this.rotation),o.inverse();const n=e.getTexture().getWidth()/e.getTexture().getHeight(),s=e.getMinimumX(),a=e.getMaximumX(),u=e.getMinimumY(),c=e.getMaximumY(),l=e.getSizeX(),h=e.getSizeY(),x=e.getNearDistance(),p=e.getFarDistance();if(n>l/h){const t=(s+a)/2,e=h*n/2;P().ortho(t-e,t+e,u,c,x,p,this.projectionMatrix)}else{const t=(u+c)/2,e=l/n/2;P().ortho(s,a,t-e,t+e,x,p,this.projectionMatrix)}e.getGlobal()||o.multLeft(r.inverse()),this.invTextureSpaceProjectionMatrix.assign(o).multRight(this.projectionMatrix).multRight(e.getBiasMatrix()),this.projectiveTextureMatrix.assign(i).multRight(this.invTextureSpaceProjectionMatrix),this.projectiveTextureMatrixArray.set(this.projectiveTextureMatrix),this.modelViewMatrix.multVecMatrix(this.location.assign(e._location.getValue())),this.locationArray.set(this.location)},setShaderUniforms(t,e,i){const r=e.numProjectiveTextures++;if(e.hasTextureProjector(r,this))return;const o=this.textureProjectorNode.getTexture(),n=this.browser.getTexture2DUnit();t.activeTexture(t.TEXTURE0+n),t.bindTexture(t.TEXTURE_2D,o.getTexture()),t.uniform1i(e.x3d_ProjectiveTexture[r],n),t.uniformMatrix4fv(e.x3d_ProjectiveTextureMatrix[r],!1,this.projectiveTextureMatrixArray),t.uniform3fv(e.x3d_ProjectiveTextureLocation[r],this.locationArray)},dispose(){I.push(this)}}),Object.assign(Object.setPrototypeOf(A.prototype,O.prototype),{initialize(){O.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},getTextureProjectors:()=>I}),Object.defineProperties(A,{typeName:{value:"TextureProjectorParallel",enumerable:!0},componentName:{value:"TextureProjector",enumerable:!0},containerField:{value:"children",enumerable:!0},specificationRange:{value:Object.freeze(["4.0","Infinity"]),enumerable:!0},fieldDefinitions:{value:new(u())([new(s())(x().inputOutput,"metadata",new(o().SFNode)),new(s())(x().inputOutput,"description",new(o().SFString)),new(s())(x().inputOutput,"on",new(o().SFBool)(!0)),new(s())(x().inputOutput,"global",new(o().SFBool)(!0)),new(s())(x().inputOutput,"location",new(o().SFVec3f)(0,0,0)),new(s())(x().inputOutput,"direction",new(o().SFVec3f)(0,0,1)),new(s())(x().inputOutput,"upVector",new(o().SFVec3f)(0,0,1)),new(s())(x().inputOutput,"fieldOfView",new(o().MFFloat)(-1,-1,1,1)),new(s())(x().inputOutput,"nearDistance",new(o().SFFloat)(-1)),new(s())(x().inputOutput,"farDistance",new(o().SFFloat)(-1)),new(s())(x().outputOnly,"aspectRatio",new(o().SFFloat)),new(s())(x().inputOutput,"texture",new(o().SFNode))]),enumerable:!0}});const E=A;b().add("TextureProjectorParallel","x_ite/Components/TextureProjector/TextureProjectorParallel",E);const C=E;i().add({name:"TextureProjector",concreteNodes:[R,C],abstractNodes:[O]});const U=void 0;b().add("TextureProjector","assets/components/TextureProjector",U)})();
|