x_ite 8.7.8 → 8.7.9
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/dist/assets/components/Annotation.js +13 -13
- package/dist/assets/components/Annotation.min.js +1 -1
- package/dist/assets/components/CADGeometry.js +13 -13
- 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 +19 -19
- 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 +18 -18
- 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 +27 -27
- package/dist/assets/components/Layout.min.js +1 -1
- package/dist/assets/components/NURBS.js +27 -33
- package/dist/assets/components/NURBS.min.js +1 -1
- package/dist/assets/components/ParticleSystems.js +22 -22
- 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 +18 -18
- package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
- package/dist/assets/components/Scripting.js +35 -35
- package/dist/assets/components/Scripting.min.js +1 -1
- package/dist/assets/components/Text.js +24 -24
- package/dist/assets/components/Text.min.js +1 -1
- package/dist/assets/components/TextureProjector.js +14 -14
- package/dist/assets/components/TextureProjector.min.js +1 -1
- package/dist/assets/components/Texturing3D.js +30 -30
- package/dist/assets/components/Texturing3D.min.js +1 -1
- package/dist/assets/components/VolumeRendering.js +19 -19
- 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/x_ite.css +1 -1
- package/dist/x_ite.js +516 -458
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.zip +0 -0
- package/docs/_config.yml +1 -1
- package/package.json +1 -1
- package/src/assets/shaders/webgl1/include/Shadow.glsl.js +21 -25
- package/src/assets/shaders/webgl2/include/Shadow.glsl.js +23 -27
- package/src/x_ite/Base/X3DBaseNode.js +4 -5
- package/src/x_ite/Base/X3DObject.js +1 -1
- package/src/x_ite/Base/X3DObjectArrayField.js +7 -38
- package/src/x_ite/Base/X3DTypedArrayField.js +2 -2
- package/src/x_ite/Browser/VERSION.js +1 -1
- package/src/x_ite/Browser/X3DBrowser.js +10 -2
- package/src/x_ite/Components/Core/X3DNode.js +15 -15
- package/src/x_ite/Components/Core.js +2 -2
- package/src/x_ite/Components/EnvironmentalEffects.js +2 -2
- package/src/x_ite/Components/EnvironmentalSensor.js +2 -2
- package/src/x_ite/Components/Followers.js +2 -2
- package/src/x_ite/Components/Geometry3D.js +2 -2
- package/src/x_ite/Components/Grouping/X3DGroupingNode.js +1 -3
- package/src/x_ite/Components/Grouping.js +2 -2
- package/src/x_ite/Components/Interpolation.js +2 -2
- package/src/x_ite/Components/Layering.js +2 -2
- package/src/x_ite/Components/Lighting.js +2 -2
- package/src/x_ite/Components/NURBS/Contour2D.js +1 -3
- package/src/x_ite/Components/NURBS/NurbsSet.js +1 -3
- package/src/x_ite/Components/NURBS/NurbsTrimmedSurface.js +1 -3
- package/src/x_ite/Components/Navigation.js +2 -2
- package/src/x_ite/Components/Networking.js +2 -2
- package/src/x_ite/Components/PointingDeviceSensor.js +2 -2
- package/src/x_ite/Components/Rendering.js +2 -2
- package/src/x_ite/Components/Scripting/Script.js +7 -7
- package/src/x_ite/Components/Shaders.js +2 -2
- package/src/x_ite/Components/Shape.js +2 -2
- package/src/x_ite/Components/Sound.js +2 -2
- package/src/x_ite/Components/Texturing.js +2 -2
- package/src/x_ite/Components/Time.js +2 -2
- package/src/x_ite/Components.js +2 -2
- package/src/x_ite/Configuration/NodeTypeArray.js +68 -0
- package/src/x_ite/Configuration/SupportedNodes.js +13 -20
- package/src/x_ite/Execution/X3DExecutionContext.js +67 -49
- package/src/x_ite/Execution/X3DScene.js +1 -1
- package/src/x_ite/Execution/X3DWorld.js +1 -1
- package/src/x_ite/InputOutput/FileLoader.js +1 -1
- package/src/x_ite/Prototype/X3DExternProtoDeclaration.js +1 -1
- package/src/x_ite/Prototype/X3DProtoDeclaration.js +1 -1
- package/src/x_ite/Prototype/X3DProtoDeclarationNode.js +1 -1
- package/src/x_ite/Routing/X3DRoute.js +8 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
/* X_ITE v8.7.8 */(()=>{"use strict";var t={n:e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},d:(e,n)=>{for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)};const e=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Components");var n=t.n(e);const i=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Fields");var o=t.n(i);const s=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Base/X3DFieldDefinition");var r=t.n(s);const u=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Base/FieldDefinitionArray");var a=t.n(u);const d=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Components/Rendering/X3DGeometricPropertyNode");var p=t.n(d);const l=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Base/X3DConstants");var c=t.n(l);const w=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Namespace");var h=t.n(w);function m(t){p().call(this,t),this.addType(c().HAnimDisplacer),this._displacements.setUnit("length")}m.prototype=Object.assign(Object.create(p().prototype),{constructor:m,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(c().inputOutput,"metadata",new(o().SFNode)),new(r())(c().inputOutput,"description",new(o().SFString)),new(r())(c().inputOutput,"name",new(o().SFString)),new(r())(c().inputOutput,"coordIndex",new(o().MFInt32)),new(r())(c().inputOutput,"weight",new(o().SFFloat)),new(r())(c().inputOutput,"displacements",new(o().MFVec3f))]),getTypeName:function(){return"HAnimDisplacer"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"displacers"},getSpecificationRange:function(){return["3.0","Infinity"]}});const _=m;h().set("x_ite/Components/HAnim/HAnimDisplacer",_);const f=_,N=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Components/Core/X3DChildNode");var S=t.n(N);const O=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Components/Grouping/Group");var F=t.n(O);const g=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Components/Grouping/Transform");var b=t.n(g);const y=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Components/Grouping/X3DBoundedObject");var C=t.n(y);const x=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Rendering/TraverseType");var k=t.n(x);const I=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Base/X3DCast");var M=t.n(I);const v=window[Symbol.for("X_ITE.X3D-8.7.8")].require("standard/Math/Numbers/Matrix4");var D=t.n(v);const X=window[Symbol.for("X_ITE.X3D-8.7.8")].require("standard/Math/Numbers/Vector3");var A=t.n(X);function H(t){S().call(this,t),C().call(this,t),this.addType(c().HAnimHumanoid),this._translation.setUnit("length"),this._center.setUnit("length"),this._bboxSize.setUnit("length"),this._bboxCenter.setUnit("length"),this.skeletonNode=new(F())(t),this.viewpointsNode=new(F())(t),this.skinNode=new(F())(t),this.transformNode=new(b())(t),this.jointNodes=[],this.skinNormalNode=null,this.skinCoordNode=null,this.restNormalNode=null,this.restCoordNode=null,this.changed=!1}H.prototype=Object.assign(Object.create(S().prototype),C().prototype,{constructor:H,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(c().inputOutput,"metadata",new(o().SFNode)),new(r())(c().inputOutput,"description",new(o().SFString)),new(r())(c().inputOutput,"name",new(o().SFString)),new(r())(c().inputOutput,"version",new(o().SFString)),new(r())(c().inputOutput,"info",new(o().MFString)),new(r())(c().inputOutput,"translation",new(o().SFVec3f)),new(r())(c().inputOutput,"rotation",new(o().SFRotation)),new(r())(c().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(c().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(c().inputOutput,"center",new(o().SFVec3f)),new(r())(c().inputOutput,"jointBindingPositions",new(o().MFVec3f)),new(r())(c().inputOutput,"jointBindingRotations",new(o().MFRotation)),new(r())(c().inputOutput,"jointBindingScales",new(o().MFVec3f)),new(r())(c().inputOutput,"motionsEnabled",new(o().MFBool)),new(r())(c().inputOutput,"loa",new(o().SFInt32)(-1)),new(r())(c().inputOutput,"skeletalConfiguration",new(o().SFString)("BASIC")),new(r())(c().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(c().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(c().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(c().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(c().inputOutput,"skeleton",new(o().MFNode)),new(r())(c().inputOutput,"viewpoints",new(o().MFNode)),new(r())(c().inputOutput,"sites",new(o().MFNode)),new(r())(c().inputOutput,"segments",new(o().MFNode)),new(r())(c().inputOutput,"joints",new(o().MFNode)),new(r())(c().inputOutput,"motions",new(o().MFNode)),new(r())(c().inputOutput,"skinBindingNormal",new(o().SFNode)),new(r())(c().inputOutput,"skinBindingCoord",new(o().SFNode)),new(r())(c().inputOutput,"skinNormal",new(o().SFNode)),new(r())(c().inputOutput,"skinCoord",new(o().SFNode)),new(r())(c().inputOutput,"skin",new(o().MFNode))]),getTypeName:function(){return"HAnimHumanoid"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"children"},getSpecificationRange:function(){return["3.0","Infinity"]},initialize:function(){S().prototype.initialize.call(this),C().prototype.initialize.call(this),this.skeletonNode.setAllowedTypes(c().HAnimJoint,c().HAnimSite),this.viewpointsNode.setAllowedTypes(c().HAnimSite),this._skeleton.addFieldInterest(this.skeletonNode._children),this._viewpoints.addFieldInterest(this.viewpointsNode._children),this._skin.addFieldInterest(this.skinNode._children),this.skeletonNode._children=this._skeleton,this.viewpointsNode._children=this._viewpoints,this.skinNode._children=this._skin,this.skeletonNode.setPrivate(!0),this.viewpointsNode.setPrivate(!0),this.skinNode.setPrivate(!0),this._translation.addFieldInterest(this.transformNode._translation),this._rotation.addFieldInterest(this.transformNode._rotation),this._scale.addFieldInterest(this.transformNode._scale),this._scaleOrientation.addFieldInterest(this.transformNode._scaleOrientation),this._center.addFieldInterest(this.transformNode._center),this._visible.addFieldInterest(this.transformNode._visible),this._bboxDisplay.addFieldInterest(this.transformNode._bboxDisplay),this._bboxSize.addFieldInterest(this.transformNode._bboxSize),this._bboxCenter.addFieldInterest(this.transformNode._bboxCenter),this.transformNode._translation=this._translation,this.transformNode._rotation=this._rotation,this.transformNode._scale=this._scale,this.transformNode._scaleOrientation=this._scaleOrientation,this.transformNode._center=this._center,this.transformNode._visible=this._visible,this.transformNode._bboxDisplay=this._bboxDisplay,this.transformNode._bboxSize=this._bboxSize,this.transformNode._bboxCenter=this._bboxCenter,this.transformNode._children=[this.skeletonNode,this.viewpointsNode,this.skinNode],this.transformNode._isCameraObject.addFieldInterest(this._isCameraObject),this.transformNode._isPickableObject.addFieldInterest(this._isPickableObject),this.skeletonNode.setup(),this.viewpointsNode.setup(),this.skinNode.setup(),this.transformNode.setup(),this.setCameraObject(this.transformNode.isCameraObject()),this.setPickableObject(this.transformNode.isPickableObject()),this._joints.addInterest("set_joints__",this),this._skinNormal.addInterest("set_skinNormal__",this),this._skinCoord.addInterest("set_skinCoord__",this),this.set_joints__(),this.set_skinNormal__(),this.set_skinCoord__()},getBBox:function(t,e){return this.transformNode.getBBox(t,e)},set_joints__:function(){const t=this.jointNodes;for(const e of t)e.removeInterest("set_joint__",this);t.length=0;for(const e of this._joints){const n=M()(c().HAnimJoint,e);n&&t.push(n)}for(const e of t)e.addInterest("set_joint__",this);this.set_joint__()},set_joint__:function(){this.changed=!0},set_skinNormal__:function(){this.restNormalNode=null,this.skinNormalNode=M()(c().X3DNormalNode,this._skinNormal),this.skinNormalNode&&(this.restNormalNode=this.skinNormalNode.copy()),this.changed=!0},set_skinCoord__:function(){this.restCoordNode=null,this.skinCoordNode=M()(c().X3DCoordinateNode,this._skinCoord),this.skinCoordNode?(this.restCoordNode=this.skinCoordNode.copy(),delete this.skinning):this.skinning=Function.prototype,this.changed=!0},traverse:function(t,e){this.transformNode.traverse(t,e),this.skinning(t,e)},skinning:function(){const t=new(D()),e=new(A())(0,0,0),n=new(A())(0,0,0),i=new(A())(0,0,0),o=new(A())(0,0,0);return function(s,r){if(s!==k().CAMERA)return;if(!this.changed)return;this.changed=!1;const u=this.jointNodes,a=this.skinNormalNode,d=this.skinCoordNode,p=this.restNormalNode,l=this.restCoordNode;a&&a._vector.assign(p._vector),d._point.assign(l._point),t.assign(this.transformNode.getMatrix()).multRight(r.getModelViewMatrix().get()).inverse();for(const s of u){const r=s._skinCoordIndex.length,u=s.getModelMatrix().multRight(t),c=s.getDisplacers();for(const t of c){const e=t._coordIndex.getValue(),n=t._coordIndex.length,s=t._weight.getValue(),r=t._displacements.getValue(),a=t._displacements.length;for(let t=0;t<n;++t){const n=3*t,p=e[t],l=t<a?o.set(r[n],r[n+1],r[n+2]):o.assign(A().Zero);d.get1Point(p,i),u.multDirMatrix(l).multiply(s).add(i),d.set1Point(p,l)}}const w=a?u.submatrix.transpose().inverse():null,h=s._skinCoordIndex.getValue(),m=s._skinCoordWeight.getValue(),_=s._skinCoordWeight.length;for(let t=0;t<r;++t){const s=h[t],r=t<_?m[t]:1;a&&(n.assign(p.get1Vector(s,e)),a.get1Vector(s,i),w.multVecMatrix(e).subtract(n).multiply(r).add(i),a.set1Vector(s,e)),n.assign(l.get1Point(s,o)),d.get1Point(s,i),u.multVecMatrix(o).subtract(n).multiply(r).add(i),d.set1Point(s,o)}}}}(),toVRMLStream:function(t){this.skinCoordNode&&(this.skinCoordNode._point=this.restCoordNode._point),this.skinNormalNode&&(this.skinNormalNode._vector=this.restNormalNode._vector),S().prototype.toVRMLStream.call(this,t)},toXMLStream:function(t){this.skinCoordNode&&(this.skinCoordNode._point=this.restCoordNode._point),this.skinNormalNode&&(this.skinNormalNode._vector=this.restNormalNode._vector),S().prototype.toXMLStream.call(this,t)},toJSONStream:function(t){this.skinCoordNode&&(this.skinCoordNode._point=this.restCoordNode._point),this.skinNormalNode&&(this.skinNormalNode._vector=this.restNormalNode._vector),S().prototype.toJSONStream.call(this,t)},dispose:function(){C().prototype.dispose.call(this),S().prototype.dispose.call(this)}});const T=H;h().set("x_ite/Components/HAnim/HAnimHumanoid",T);const j=T,V=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Components/Grouping/X3DTransformNode");var B=t.n(V);function E(t){B().call(this,t),this.addType(c().HAnimJoint),this.setAllowedTypes(c().HAnimJoint,c().HAnimSegment,c().HAnimSite),this.displacerNodes=[],this.modelMatrix=new(D())}E.prototype=Object.assign(Object.create(B().prototype),{constructor:E,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(c().inputOutput,"metadata",new(o().SFNode)),new(r())(c().inputOutput,"description",new(o().SFString)),new(r())(c().inputOutput,"name",new(o().SFString)),new(r())(c().inputOutput,"translation",new(o().SFVec3f)),new(r())(c().inputOutput,"rotation",new(o().SFRotation)),new(r())(c().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(c().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(c().inputOutput,"center",new(o().SFVec3f)),new(r())(c().inputOutput,"llimit",new(o().MFFloat)),new(r())(c().inputOutput,"ulimit",new(o().MFFloat)),new(r())(c().inputOutput,"limitOrientation",new(o().SFRotation)),new(r())(c().inputOutput,"stiffness",new(o().MFFloat)(0,0,0)),new(r())(c().inputOutput,"skinCoordIndex",new(o().MFInt32)),new(r())(c().inputOutput,"skinCoordWeight",new(o().MFFloat)),new(r())(c().inputOutput,"displacers",new(o().MFNode)),new(r())(c().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(c().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(c().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(c().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(c().inputOnly,"addChildren",new(o().MFNode)),new(r())(c().inputOnly,"removeChildren",new(o().MFNode)),new(r())(c().inputOutput,"children",new(o().MFNode))]),getTypeName:function(){return"HAnimJoint"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"children"},getSpecificationRange:function(){return["3.0","Infinity"]},initialize:function(){B().prototype.initialize.call(this),this._skinCoordIndex.addInterest("set_skinCoordIndex__",this),this._displacers.addInterest("set_displacers__",this),this.set_displacers__()},setCameraObject:function(t){B().prototype.setCameraObject.call(this,t||!!this._skinCoordIndex.length)},getModelMatrix:function(){return this.modelMatrix},getDisplacers:function(){return this.displacerNodes},set_skinCoordIndex__:function(){this.set_cameraObjects__()},set_displacers__:function(){const t=this.displacerNodes;t.length=0;for(const e of this._displacers){const n=M()(c().HAnimDisplacer,e);n&&t.push(n)}},traverse:function(t,e){t===k().CAMERA&&this._skinCoordIndex.length&&this.modelMatrix.assign(this.getMatrix()).multRight(e.getModelViewMatrix().get()),B().prototype.traverse.call(this,t,e)},groupTraverse:function(t,e){t===k().CAMERA&&this._skinCoordIndex.length&&this.modelMatrix.assign(e.getModelViewMatrix().get()),B().prototype.groupTraverse.call(this,t,e)}});const R=E;h().set("x_ite/Components/HAnim/HAnimJoint",R);const z=R;function q(t){S().call(this,t),this.addType(c().HAnimMotion)}q.prototype=Object.assign(Object.create(S().prototype),{constructor:q,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(c().inputOutput,"metadata",new(o().SFNode)),new(r())(c().inputOutput,"description",new(o().SFString)),new(r())(c().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(c().inputOnly,"next",new(o().SFBool)),new(r())(c().inputOnly,"previous",new(o().SFBool)),new(r())(c().inputOutput,"frameDuration",new(o().SFTime)(.1)),new(r())(c().inputOutput,"frameIncrement",new(o().SFInt32)(1)),new(r())(c().inputOutput,"frameIndex",new(o().SFInt32)(0)),new(r())(c().inputOutput,"loop",new(o().SFBool)),new(r())(c().inputOutput,"channels",new(o().SFString)),new(r())(c().inputOutput,"channelsEnabled",new(o().MFBool)),new(r())(c().inputOutput,"joints",new(o().MFString)),new(r())(c().inputOutput,"loa",new(o().SFInt32)(-1)),new(r())(c().inputOutput,"startFrame",new(o().SFInt32)),new(r())(c().inputOutput,"endFrame",new(o().SFInt32)),new(r())(c().inputOutput,"values",new(o().MFFloat)),new(r())(c().outputOnly,"cycleTime",new(o().SFTime)),new(r())(c().outputOnly,"elapsedTime",new(o().SFTime)),new(r())(c().outputOnly,"frameCount",new(o().SFInt32))]),getTypeName:function(){return"HAnimMotion"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"children"},getSpecificationRange:function(){return["4.0","Infinity"]},initialize:function(){S().prototype.initialize.call(this)}});const P=q;h().set("x_ite/Components/HAnim/HAnimMotion",P);const J=P,G=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Components/Grouping/X3DGroupingNode");var U=t.n(G);function L(t){U().call(this,t),this.addType(c().HAnimSegment),this._mass.setUnit("mass")}L.prototype=Object.assign(Object.create(U().prototype),{constructor:L,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(c().inputOutput,"metadata",new(o().SFNode)),new(r())(c().inputOutput,"description",new(o().SFString)),new(r())(c().inputOutput,"name",new(o().SFString)),new(r())(c().inputOutput,"mass",new(o().SFFloat)),new(r())(c().inputOutput,"centerOfMass",new(o().SFVec3f)),new(r())(c().inputOutput,"momentsOfInertia",new(o().MFFloat)(0,0,0,0,0,0,0,0,0)),new(r())(c().inputOutput,"displacers",new(o().MFNode)),new(r())(c().inputOutput,"coord",new(o().SFNode)),new(r())(c().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(c().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(c().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(c().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(c().inputOnly,"addChildren",new(o().MFNode)),new(r())(c().inputOnly,"removeChildren",new(o().MFNode)),new(r())(c().inputOutput,"children",new(o().MFNode))]),getTypeName:function(){return"HAnimSegment"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"children"},getSpecificationRange:function(){return["3.0","Infinity"]}});const W=L;h().set("x_ite/Components/HAnim/HAnimSegment",W);const Z=W;function K(t){B().call(this,t),this.addType(c().HAnimSite)}K.prototype=Object.assign(Object.create(B().prototype),{constructor:K,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(c().inputOutput,"metadata",new(o().SFNode)),new(r())(c().inputOutput,"description",new(o().SFString)),new(r())(c().inputOutput,"name",new(o().SFString)),new(r())(c().inputOutput,"translation",new(o().SFVec3f)),new(r())(c().inputOutput,"rotation",new(o().SFRotation)),new(r())(c().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(c().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(c().inputOutput,"center",new(o().SFVec3f)),new(r())(c().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(c().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(c().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(c().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(c().inputOnly,"addChildren",new(o().MFNode)),new(r())(c().inputOnly,"removeChildren",new(o().MFNode)),new(r())(c().inputOutput,"children",new(o().MFNode))]),getTypeName:function(){return"HAnimSite"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"children"},getSpecificationRange:function(){return["3.0","Infinity"]}});const Q=K;h().set("x_ite/Components/HAnim/HAnimSite",Q);const Y=Q;n().addComponent({name:"HAnim",types:{HAnimDisplacer:f,HAnimHumanoid:j,HAnimJoint:z,HAnimMotion:J,HAnimSegment:Z,HAnimSite:Y},abstractTypes:{}});const $=void 0;h().set("assets/components/HAnim",$)})();
|
|
1
|
+
/* X_ITE v8.7.9 */(()=>{"use strict";var t={n:e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},d:(e,n)=>{for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)};const e=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Components");var n=t.n(e);const i=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Fields");var o=t.n(i);const s=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Base/X3DFieldDefinition");var r=t.n(s);const u=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Base/FieldDefinitionArray");var a=t.n(u);const d=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Components/Rendering/X3DGeometricPropertyNode");var p=t.n(d);const l=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Base/X3DConstants");var c=t.n(l);const w=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Namespace");var h=t.n(w);function m(t){p().call(this,t),this.addType(c().HAnimDisplacer),this._displacements.setUnit("length")}m.prototype=Object.assign(Object.create(p().prototype),{constructor:m,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(c().inputOutput,"metadata",new(o().SFNode)),new(r())(c().inputOutput,"description",new(o().SFString)),new(r())(c().inputOutput,"name",new(o().SFString)),new(r())(c().inputOutput,"coordIndex",new(o().MFInt32)),new(r())(c().inputOutput,"weight",new(o().SFFloat)),new(r())(c().inputOutput,"displacements",new(o().MFVec3f))]),getTypeName:function(){return"HAnimDisplacer"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"displacers"},getSpecificationRange:function(){return["3.0","Infinity"]}});const _=m;h().set("x_ite/Components/HAnim/HAnimDisplacer",_);const f=_,N=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Components/Core/X3DChildNode");var S=t.n(N);const O=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Components/Grouping/Group");var F=t.n(O);const g=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Components/Grouping/Transform");var b=t.n(g);const y=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Components/Grouping/X3DBoundedObject");var C=t.n(y);const x=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Rendering/TraverseType");var k=t.n(x);const I=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Base/X3DCast");var M=t.n(I);const v=window[Symbol.for("X_ITE.X3D-8.7.9")].require("standard/Math/Numbers/Matrix4");var D=t.n(v);const X=window[Symbol.for("X_ITE.X3D-8.7.9")].require("standard/Math/Numbers/Vector3");var A=t.n(X);function H(t){S().call(this,t),C().call(this,t),this.addType(c().HAnimHumanoid),this._translation.setUnit("length"),this._center.setUnit("length"),this._bboxSize.setUnit("length"),this._bboxCenter.setUnit("length"),this.skeletonNode=new(F())(t),this.viewpointsNode=new(F())(t),this.skinNode=new(F())(t),this.transformNode=new(b())(t),this.jointNodes=[],this.skinNormalNode=null,this.skinCoordNode=null,this.restNormalNode=null,this.restCoordNode=null,this.changed=!1}H.prototype=Object.assign(Object.create(S().prototype),C().prototype,{constructor:H,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(c().inputOutput,"metadata",new(o().SFNode)),new(r())(c().inputOutput,"description",new(o().SFString)),new(r())(c().inputOutput,"name",new(o().SFString)),new(r())(c().inputOutput,"version",new(o().SFString)),new(r())(c().inputOutput,"info",new(o().MFString)),new(r())(c().inputOutput,"translation",new(o().SFVec3f)),new(r())(c().inputOutput,"rotation",new(o().SFRotation)),new(r())(c().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(c().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(c().inputOutput,"center",new(o().SFVec3f)),new(r())(c().inputOutput,"jointBindingPositions",new(o().MFVec3f)),new(r())(c().inputOutput,"jointBindingRotations",new(o().MFRotation)),new(r())(c().inputOutput,"jointBindingScales",new(o().MFVec3f)),new(r())(c().inputOutput,"motionsEnabled",new(o().MFBool)),new(r())(c().inputOutput,"loa",new(o().SFInt32)(-1)),new(r())(c().inputOutput,"skeletalConfiguration",new(o().SFString)("BASIC")),new(r())(c().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(c().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(c().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(c().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(c().inputOutput,"skeleton",new(o().MFNode)),new(r())(c().inputOutput,"viewpoints",new(o().MFNode)),new(r())(c().inputOutput,"sites",new(o().MFNode)),new(r())(c().inputOutput,"segments",new(o().MFNode)),new(r())(c().inputOutput,"joints",new(o().MFNode)),new(r())(c().inputOutput,"motions",new(o().MFNode)),new(r())(c().inputOutput,"skinBindingNormal",new(o().SFNode)),new(r())(c().inputOutput,"skinBindingCoord",new(o().SFNode)),new(r())(c().inputOutput,"skinNormal",new(o().SFNode)),new(r())(c().inputOutput,"skinCoord",new(o().SFNode)),new(r())(c().inputOutput,"skin",new(o().MFNode))]),getTypeName:function(){return"HAnimHumanoid"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"children"},getSpecificationRange:function(){return["3.0","Infinity"]},initialize:function(){S().prototype.initialize.call(this),C().prototype.initialize.call(this),this.skeletonNode.setAllowedTypes(c().HAnimJoint,c().HAnimSite),this.viewpointsNode.setAllowedTypes(c().HAnimSite),this._skeleton.addFieldInterest(this.skeletonNode._children),this._viewpoints.addFieldInterest(this.viewpointsNode._children),this._skin.addFieldInterest(this.skinNode._children),this.skeletonNode._children=this._skeleton,this.viewpointsNode._children=this._viewpoints,this.skinNode._children=this._skin,this.skeletonNode.setPrivate(!0),this.viewpointsNode.setPrivate(!0),this.skinNode.setPrivate(!0),this._translation.addFieldInterest(this.transformNode._translation),this._rotation.addFieldInterest(this.transformNode._rotation),this._scale.addFieldInterest(this.transformNode._scale),this._scaleOrientation.addFieldInterest(this.transformNode._scaleOrientation),this._center.addFieldInterest(this.transformNode._center),this._visible.addFieldInterest(this.transformNode._visible),this._bboxDisplay.addFieldInterest(this.transformNode._bboxDisplay),this._bboxSize.addFieldInterest(this.transformNode._bboxSize),this._bboxCenter.addFieldInterest(this.transformNode._bboxCenter),this.transformNode._translation=this._translation,this.transformNode._rotation=this._rotation,this.transformNode._scale=this._scale,this.transformNode._scaleOrientation=this._scaleOrientation,this.transformNode._center=this._center,this.transformNode._visible=this._visible,this.transformNode._bboxDisplay=this._bboxDisplay,this.transformNode._bboxSize=this._bboxSize,this.transformNode._bboxCenter=this._bboxCenter,this.transformNode._children=[this.skeletonNode,this.viewpointsNode,this.skinNode],this.transformNode._isCameraObject.addFieldInterest(this._isCameraObject),this.transformNode._isPickableObject.addFieldInterest(this._isPickableObject),this.skeletonNode.setup(),this.viewpointsNode.setup(),this.skinNode.setup(),this.transformNode.setup(),this.setCameraObject(this.transformNode.isCameraObject()),this.setPickableObject(this.transformNode.isPickableObject()),this._joints.addInterest("set_joints__",this),this._skinNormal.addInterest("set_skinNormal__",this),this._skinCoord.addInterest("set_skinCoord__",this),this.set_joints__(),this.set_skinNormal__(),this.set_skinCoord__()},getBBox:function(t,e){return this.transformNode.getBBox(t,e)},set_joints__:function(){const t=this.jointNodes;for(const e of t)e.removeInterest("set_joint__",this);t.length=0;for(const e of this._joints){const n=M()(c().HAnimJoint,e);n&&t.push(n)}for(const e of t)e.addInterest("set_joint__",this);this.set_joint__()},set_joint__:function(){this.changed=!0},set_skinNormal__:function(){this.restNormalNode=null,this.skinNormalNode=M()(c().X3DNormalNode,this._skinNormal),this.skinNormalNode&&(this.restNormalNode=this.skinNormalNode.copy()),this.changed=!0},set_skinCoord__:function(){this.restCoordNode=null,this.skinCoordNode=M()(c().X3DCoordinateNode,this._skinCoord),this.skinCoordNode?(this.restCoordNode=this.skinCoordNode.copy(),delete this.skinning):this.skinning=Function.prototype,this.changed=!0},traverse:function(t,e){this.transformNode.traverse(t,e),this.skinning(t,e)},skinning:function(){const t=new(D()),e=new(A())(0,0,0),n=new(A())(0,0,0),i=new(A())(0,0,0),o=new(A())(0,0,0);return function(s,r){if(s!==k().CAMERA)return;if(!this.changed)return;this.changed=!1;const u=this.jointNodes,a=this.skinNormalNode,d=this.skinCoordNode,p=this.restNormalNode,l=this.restCoordNode;a&&a._vector.assign(p._vector),d._point.assign(l._point),t.assign(this.transformNode.getMatrix()).multRight(r.getModelViewMatrix().get()).inverse();for(const s of u){const r=s._skinCoordIndex.length,u=s.getModelMatrix().multRight(t),c=s.getDisplacers();for(const t of c){const e=t._coordIndex.getValue(),n=t._coordIndex.length,s=t._weight.getValue(),r=t._displacements.getValue(),a=t._displacements.length;for(let t=0;t<n;++t){const n=3*t,p=e[t],l=t<a?o.set(r[n],r[n+1],r[n+2]):o.assign(A().Zero);d.get1Point(p,i),u.multDirMatrix(l).multiply(s).add(i),d.set1Point(p,l)}}const w=a?u.submatrix.transpose().inverse():null,h=s._skinCoordIndex.getValue(),m=s._skinCoordWeight.getValue(),_=s._skinCoordWeight.length;for(let t=0;t<r;++t){const s=h[t],r=t<_?m[t]:1;a&&(n.assign(p.get1Vector(s,e)),a.get1Vector(s,i),w.multVecMatrix(e).subtract(n).multiply(r).add(i),a.set1Vector(s,e)),n.assign(l.get1Point(s,o)),d.get1Point(s,i),u.multVecMatrix(o).subtract(n).multiply(r).add(i),d.set1Point(s,o)}}}}(),toVRMLStream:function(t){this.skinCoordNode&&(this.skinCoordNode._point=this.restCoordNode._point),this.skinNormalNode&&(this.skinNormalNode._vector=this.restNormalNode._vector),S().prototype.toVRMLStream.call(this,t)},toXMLStream:function(t){this.skinCoordNode&&(this.skinCoordNode._point=this.restCoordNode._point),this.skinNormalNode&&(this.skinNormalNode._vector=this.restNormalNode._vector),S().prototype.toXMLStream.call(this,t)},toJSONStream:function(t){this.skinCoordNode&&(this.skinCoordNode._point=this.restCoordNode._point),this.skinNormalNode&&(this.skinNormalNode._vector=this.restNormalNode._vector),S().prototype.toJSONStream.call(this,t)},dispose:function(){C().prototype.dispose.call(this),S().prototype.dispose.call(this)}});const T=H;h().set("x_ite/Components/HAnim/HAnimHumanoid",T);const j=T,V=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Components/Grouping/X3DTransformNode");var B=t.n(V);function E(t){B().call(this,t),this.addType(c().HAnimJoint),this.setAllowedTypes(c().HAnimJoint,c().HAnimSegment,c().HAnimSite),this.displacerNodes=[],this.modelMatrix=new(D())}E.prototype=Object.assign(Object.create(B().prototype),{constructor:E,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(c().inputOutput,"metadata",new(o().SFNode)),new(r())(c().inputOutput,"description",new(o().SFString)),new(r())(c().inputOutput,"name",new(o().SFString)),new(r())(c().inputOutput,"translation",new(o().SFVec3f)),new(r())(c().inputOutput,"rotation",new(o().SFRotation)),new(r())(c().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(c().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(c().inputOutput,"center",new(o().SFVec3f)),new(r())(c().inputOutput,"llimit",new(o().MFFloat)),new(r())(c().inputOutput,"ulimit",new(o().MFFloat)),new(r())(c().inputOutput,"limitOrientation",new(o().SFRotation)),new(r())(c().inputOutput,"stiffness",new(o().MFFloat)(0,0,0)),new(r())(c().inputOutput,"skinCoordIndex",new(o().MFInt32)),new(r())(c().inputOutput,"skinCoordWeight",new(o().MFFloat)),new(r())(c().inputOutput,"displacers",new(o().MFNode)),new(r())(c().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(c().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(c().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(c().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(c().inputOnly,"addChildren",new(o().MFNode)),new(r())(c().inputOnly,"removeChildren",new(o().MFNode)),new(r())(c().inputOutput,"children",new(o().MFNode))]),getTypeName:function(){return"HAnimJoint"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"children"},getSpecificationRange:function(){return["3.0","Infinity"]},initialize:function(){B().prototype.initialize.call(this),this._skinCoordIndex.addInterest("set_skinCoordIndex__",this),this._displacers.addInterest("set_displacers__",this),this.set_displacers__()},setCameraObject:function(t){B().prototype.setCameraObject.call(this,t||!!this._skinCoordIndex.length)},getModelMatrix:function(){return this.modelMatrix},getDisplacers:function(){return this.displacerNodes},set_skinCoordIndex__:function(){this.set_cameraObjects__()},set_displacers__:function(){const t=this.displacerNodes;t.length=0;for(const e of this._displacers){const n=M()(c().HAnimDisplacer,e);n&&t.push(n)}},traverse:function(t,e){t===k().CAMERA&&this._skinCoordIndex.length&&this.modelMatrix.assign(this.getMatrix()).multRight(e.getModelViewMatrix().get()),B().prototype.traverse.call(this,t,e)},groupTraverse:function(t,e){t===k().CAMERA&&this._skinCoordIndex.length&&this.modelMatrix.assign(e.getModelViewMatrix().get()),B().prototype.groupTraverse.call(this,t,e)}});const R=E;h().set("x_ite/Components/HAnim/HAnimJoint",R);const z=R;function q(t){S().call(this,t),this.addType(c().HAnimMotion)}q.prototype=Object.assign(Object.create(S().prototype),{constructor:q,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(c().inputOutput,"metadata",new(o().SFNode)),new(r())(c().inputOutput,"description",new(o().SFString)),new(r())(c().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(c().inputOnly,"next",new(o().SFBool)),new(r())(c().inputOnly,"previous",new(o().SFBool)),new(r())(c().inputOutput,"frameDuration",new(o().SFTime)(.1)),new(r())(c().inputOutput,"frameIncrement",new(o().SFInt32)(1)),new(r())(c().inputOutput,"frameIndex",new(o().SFInt32)(0)),new(r())(c().inputOutput,"loop",new(o().SFBool)),new(r())(c().inputOutput,"channels",new(o().SFString)),new(r())(c().inputOutput,"channelsEnabled",new(o().MFBool)),new(r())(c().inputOutput,"joints",new(o().MFString)),new(r())(c().inputOutput,"loa",new(o().SFInt32)(-1)),new(r())(c().inputOutput,"startFrame",new(o().SFInt32)),new(r())(c().inputOutput,"endFrame",new(o().SFInt32)),new(r())(c().inputOutput,"values",new(o().MFFloat)),new(r())(c().outputOnly,"cycleTime",new(o().SFTime)),new(r())(c().outputOnly,"elapsedTime",new(o().SFTime)),new(r())(c().outputOnly,"frameCount",new(o().SFInt32))]),getTypeName:function(){return"HAnimMotion"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"children"},getSpecificationRange:function(){return["4.0","Infinity"]},initialize:function(){S().prototype.initialize.call(this)}});const P=q;h().set("x_ite/Components/HAnim/HAnimMotion",P);const J=P,G=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Components/Grouping/X3DGroupingNode");var U=t.n(G);function L(t){U().call(this,t),this.addType(c().HAnimSegment),this._mass.setUnit("mass")}L.prototype=Object.assign(Object.create(U().prototype),{constructor:L,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(c().inputOutput,"metadata",new(o().SFNode)),new(r())(c().inputOutput,"description",new(o().SFString)),new(r())(c().inputOutput,"name",new(o().SFString)),new(r())(c().inputOutput,"mass",new(o().SFFloat)),new(r())(c().inputOutput,"centerOfMass",new(o().SFVec3f)),new(r())(c().inputOutput,"momentsOfInertia",new(o().MFFloat)(0,0,0,0,0,0,0,0,0)),new(r())(c().inputOutput,"displacers",new(o().MFNode)),new(r())(c().inputOutput,"coord",new(o().SFNode)),new(r())(c().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(c().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(c().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(c().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(c().inputOnly,"addChildren",new(o().MFNode)),new(r())(c().inputOnly,"removeChildren",new(o().MFNode)),new(r())(c().inputOutput,"children",new(o().MFNode))]),getTypeName:function(){return"HAnimSegment"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"children"},getSpecificationRange:function(){return["3.0","Infinity"]}});const W=L;h().set("x_ite/Components/HAnim/HAnimSegment",W);const Z=W;function K(t){B().call(this,t),this.addType(c().HAnimSite)}K.prototype=Object.assign(Object.create(B().prototype),{constructor:K,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(c().inputOutput,"metadata",new(o().SFNode)),new(r())(c().inputOutput,"description",new(o().SFString)),new(r())(c().inputOutput,"name",new(o().SFString)),new(r())(c().inputOutput,"translation",new(o().SFVec3f)),new(r())(c().inputOutput,"rotation",new(o().SFRotation)),new(r())(c().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(c().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(c().inputOutput,"center",new(o().SFVec3f)),new(r())(c().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(c().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(c().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(c().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(c().inputOnly,"addChildren",new(o().MFNode)),new(r())(c().inputOnly,"removeChildren",new(o().MFNode)),new(r())(c().inputOutput,"children",new(o().MFNode))]),getTypeName:function(){return"HAnimSite"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"children"},getSpecificationRange:function(){return["3.0","Infinity"]}});const Q=K;h().set("x_ite/Components/HAnim/HAnimSite",Q);const Y=Q;n().addComponent({name:"HAnim",types:{HAnimDisplacer:f,HAnimHumanoid:j,HAnimJoint:z,HAnimMotion:J,HAnimSegment:Z,HAnimSite:Y},abstractTypes:{}});const $=void 0;h().set("assets/components/HAnim",$)})();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* X_ITE v8.7.
|
|
1
|
+
/* X_ITE v8.7.9 */(() => { // webpackBootstrap
|
|
2
2
|
/******/ "use strict";
|
|
3
3
|
/******/ // The require scope
|
|
4
4
|
/******/ var __webpack_require__ = {};
|
|
@@ -39,13 +39,13 @@ 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-8.7.
|
|
42
|
+
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .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-8.7.
|
|
45
|
+
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .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/Namespace\")"
|
|
48
|
-
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
48
|
+
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Namespace");
|
|
49
49
|
var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
|
|
50
50
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/KeyDeviceSensor/X3DKeyDeviceSensorContext.js
|
|
51
51
|
/*******************************************************************************
|
|
@@ -150,16 +150,16 @@ const __default__ = X3DKeyDeviceSensorContext;
|
|
|
150
150
|
Namespace_default().set ("x_ite/Browser/KeyDeviceSensor/X3DKeyDeviceSensorContext", __default__);
|
|
151
151
|
/* harmony default export */ const KeyDeviceSensor_X3DKeyDeviceSensorContext = (__default__);
|
|
152
152
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
|
|
153
|
-
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
153
|
+
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Base/X3DFieldDefinition");
|
|
154
154
|
var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
|
|
155
155
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
|
|
156
|
-
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
156
|
+
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Base/FieldDefinitionArray");
|
|
157
157
|
var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
|
|
158
158
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DSensorNode\")"
|
|
159
|
-
const X3DSensorNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
159
|
+
const X3DSensorNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Components/Core/X3DSensorNode");
|
|
160
160
|
var X3DSensorNode_default = /*#__PURE__*/__webpack_require__.n(X3DSensorNode_namespaceObject);
|
|
161
161
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
|
|
162
|
-
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
162
|
+
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Base/X3DConstants");
|
|
163
163
|
var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
|
|
164
164
|
;// CONCATENATED MODULE: ./src/x_ite/Components/KeyDeviceSensor/X3DKeyDeviceSensorNode.js
|
|
165
165
|
/*******************************************************************************
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/* X_ITE v8.7.
|
|
1
|
+
/* X_ITE v8.7.9 */(()=>{"use strict";var e={n:t=>{var s=t&&t.__esModule?()=>t.default:()=>t;return e.d(s,{a:s}),s},d:(t,s)=>{for(var i in s)e.o(s,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:s[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Components");var s=e.n(t);const i=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Fields");var n=e.n(i);const a=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Namespace");var o=e.n(a);const r=Symbol(),c=Symbol(),y=Symbol();function h(){this[r]=new Set}h.prototype={initialize:function(){const e=this.getElement();e.on("keydown.X3DKeyDeviceSensorContext",this[c].bind(this)),e.on("keyup.X3DKeyDeviceSensorContext",this[y].bind(this))},addKeyDeviceSensorNode:function(e){this[r].add(e)},removeKeyDeviceSensorNode:function(e){this[r].delete(e)},getKeyDeviceSensorNodes:function(){return this[r]},[c]:function(e){for(const t of this[r])t.keydown(e)},[y]:function(e){for(const t of this[r])t.keyup(e)}};const l=h;o().set("x_ite/Browser/KeyDeviceSensor/X3DKeyDeviceSensorContext",l);const _=l,u=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Base/X3DFieldDefinition");var d=e.n(u);const b=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Base/FieldDefinitionArray");var k=e.n(b);const K=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Components/Core/X3DSensorNode");var f=e.n(K);const p=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Base/X3DConstants");var S=e.n(p);function w(e){f().call(this,e),this.addType(S().X3DKeyDeviceSensorNode)}w.prototype=Object.assign(Object.create(f().prototype),{constructor:w,initialize:function(){f().prototype.initialize.call(this),this.getLive().addInterest("set_live__",this),this.set_live__()},set_live__:function(){this.getLive().getValue()?(this._enabled.addInterest("set_enabled__",this),this._enabled.getValue()&&this.enable()):(this._enabled.removeInterest("set_enabled__",this),this.disable())},set_enabled__:function(){this._enabled.getValue()?this.enable():this.disable()},enable:function(){this.getBrowser().addKeyDeviceSensorNode(this)},disable:function(){this.getBrowser().removeKeyDeviceSensorNode(this),this.release()},keydown:function(){},keyup:function(){},release:function(){}});const g=w;o().set("x_ite/Components/KeyDeviceSensor/X3DKeyDeviceSensorNode",g);const v=g;function D(e){v.call(this,e),this.addType(S().KeySensor)}D.prototype=Object.assign(Object.create(v.prototype),{constructor:D,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(k())([new(d())(S().inputOutput,"metadata",new(n().SFNode)),new(d())(S().inputOutput,"enabled",new(n().SFBool)(!0)),new(d())(S().outputOnly,"controlKey",new(n().SFBool)),new(d())(S().outputOnly,"shiftKey",new(n().SFBool)),new(d())(S().outputOnly,"altKey",new(n().SFBool)),new(d())(S().outputOnly,"actionKeyPress",new(n().SFInt32)),new(d())(S().outputOnly,"actionKeyRelease",new(n().SFInt32)),new(d())(S().outputOnly,"keyPress",new(n().SFString)),new(d())(S().outputOnly,"keyRelease",new(n().SFString)),new(d())(S().outputOnly,"isActive",new(n().SFBool))]),getTypeName:function(){return"KeySensor"},getComponentName:function(){return"KeyDeviceSensor"},getContainerField:function(){return"children"},getSpecificationRange:function(){return["3.0","Infinity"]},keydown:function(e){switch(e.preventDefault(),this._isActive.getValue()||(this._isActive=!0),e.which){case 16:this._shiftKey=!0;break;case 17:this._controlKey=!0;break;case 18:this._altKey=!0;break;case 112:this._actionKeyPress=1;break;case 113:this._actionKeyPress=2;break;case 114:this._actionKeyPress=3;break;case 115:this._actionKeyPress=4;break;case 116:this._actionKeyPress=5;break;case 117:this._actionKeyPress=6;break;case 118:this._actionKeyPress=7;break;case 119:this._actionKeyPress=8;break;case 120:this._actionKeyPress=9;break;case 121:this._actionKeyPress=10;break;case 122:this._actionKeyPress=11;break;case 123:this._actionKeyPress=12;break;case 36:this._actionKeyPress=13;break;case 35:this._actionKeyPress=14;break;case 33:this._actionKeyPress=15;break;case 34:this._actionKeyPress=16;break;case 38:this._actionKeyPress=17;break;case 40:this._actionKeyPress=18;break;case 37:this._actionKeyPress=19;break;case 39:this._actionKeyPress=20;break;default:if(e.charCode||e.keyCode)switch(e.key){case"AltGraph":case"CapsLock":case"Insert":break;case"Backspace":this._keyPress=String.fromCharCode(8);break;case"Delete":this._keyPress=String.fromCharCode(127);break;case"Enter":this._keyPress="\n";break;case"Escape":this._keyPress=String.fromCharCode(27);break;case"Tab":this._keyPress="\t";break;default:1===e.key.length&&(this._keyPress=e.key)}}},keyup:function(e){switch(e.preventDefault(),e.which){case 16:this._shiftKey=!1;break;case 17:this._controlKey=!1;break;case 18:this._altKey=!1;break;case 112:this._actionKeyRelease=1;break;case 113:this._actionKeyRelease=2;break;case 114:this._actionKeyRelease=3;break;case 115:this._actionKeyRelease=4;break;case 116:this._actionKeyRelease=5;break;case 117:this._actionKeyRelease=6;break;case 118:this._actionKeyRelease=7;break;case 119:this._actionKeyRelease=8;break;case 120:this._actionKeyRelease=9;break;case 121:this._actionKeyRelease=10;break;case 122:this._actionKeyRelease=11;break;case 123:this._actionKeyRelease=12;break;case 36:this._actionKeyRelease=13;break;case 35:this._actionKeyRelease=14;break;case 33:this._actionKeyRelease=15;break;case 34:this._actionKeyRelease=16;break;case 38:this._actionKeyRelease=17;break;case 40:this._actionKeyRelease=18;break;case 37:this._actionKeyRelease=19;break;case 39:this._actionKeyRelease=20;break;default:if(e.charCode||e.keyCode)switch(e.key){case"AltGraph":case"CapsLock":case"Insert":break;case"Backspace":this._keyRelease=String.fromCharCode(8);break;case"Delete":this._keyRelease=String.fromCharCode(127);break;case"Enter":this._keyRelease="\n";break;case"Escape":this._keyRelease=String.fromCharCode(27);break;case"Tab":this._keyRelease="\t";break;default:1===e.key.length&&(this._keyRelease=e.key)}}this._isActive.getValue()&&(this._isActive=!1)},release:function(){this._shiftKey.getValue()&&(this._shiftKey=!1),this._controlKey.getValue()&&(this._controlKey=!1),this._altKey.getValue()&&(this._altKey=!1)}});const m=D;o().set("x_ite/Components/KeyDeviceSensor/KeySensor",m);const C=m;function T(e){v.call(this,e),this.addType(S().StringSensor)}T.prototype=Object.assign(Object.create(v.prototype),{constructor:T,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(k())([new(d())(S().inputOutput,"metadata",new(n().SFNode)),new(d())(S().inputOutput,"enabled",new(n().SFBool)(!0)),new(d())(S().inputOutput,"deletionAllowed",new(n().SFBool)(!0)),new(d())(S().outputOnly,"enteredText",new(n().SFString)),new(d())(S().outputOnly,"finalText",new(n().SFString)),new(d())(S().outputOnly,"isActive",new(n().SFBool))]),getTypeName:function(){return"StringSensor"},getComponentName:function(){return"KeyDeviceSensor"},getContainerField:function(){return"children"},getSpecificationRange:function(){return["3.0","Infinity"]},keydown:function(e){switch(e.preventDefault(),e.key){case"Backspace":this._isActive.getValue()&&this._deletionAllowed.getValue()&&this._enteredText.length&&(this._enteredText=this._enteredText.getValue().substr(0,this._enteredText.length-1));break;case"Enter":this._finalText=this._enteredText,this._enteredText.set(""),this._isActive.getValue()&&(this._isActive=!1);break;case"Escape":this._enteredText.set(""),this._isActive.getValue()&&(this._isActive=!1);break;case"Tab":break;default:(e.charCode||e.keyCode)&&1===e.key.length&&(this._isActive.getValue()||(this._isActive=!0,this._enteredText=""),this._enteredText=this._enteredText.getValue()+e.key)}}});const P=T;o().set("x_ite/Components/KeyDeviceSensor/StringSensor",P);const R=P;s().addComponent({name:"KeyDeviceSensor",types:{KeySensor:C,StringSensor:R},abstractTypes:{X3DKeyDeviceSensorNode:v},browserContext:_});const x=void 0;o().set("assets/components/KeyDeviceSensor",x)})();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
/* X_ITE v8.7.
|
|
1
|
+
/* X_ITE v8.7.9 */(() => { // webpackBootstrap
|
|
2
2
|
/******/ "use strict";
|
|
3
3
|
/******/ var __webpack_modules__ = ({
|
|
4
4
|
|
|
5
5
|
/***/ 355:
|
|
6
6
|
/***/ ((module) => {
|
|
7
7
|
|
|
8
|
-
module.exports = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
8
|
+
module.exports = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("lib/jquery");
|
|
9
9
|
|
|
10
10
|
/***/ })
|
|
11
11
|
|
|
@@ -73,22 +73,22 @@ var __webpack_exports__ = {};
|
|
|
73
73
|
// UNUSED EXPORTS: default
|
|
74
74
|
|
|
75
75
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components\")"
|
|
76
|
-
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
76
|
+
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Components");
|
|
77
77
|
var Components_default = /*#__PURE__*/__webpack_require__.n(Components_namespaceObject);
|
|
78
78
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Texturing/TextureProperties\")"
|
|
79
|
-
const TextureProperties_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
79
|
+
const TextureProperties_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Components/Texturing/TextureProperties");
|
|
80
80
|
var TextureProperties_default = /*#__PURE__*/__webpack_require__.n(TextureProperties_namespaceObject);
|
|
81
81
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector3\")"
|
|
82
|
-
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
82
|
+
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("standard/Math/Numbers/Vector3");
|
|
83
83
|
var Vector3_default = /*#__PURE__*/__webpack_require__.n(Vector3_namespaceObject);
|
|
84
84
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Matrix4\")"
|
|
85
|
-
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
85
|
+
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("standard/Math/Numbers/Matrix4");
|
|
86
86
|
var Matrix4_default = /*#__PURE__*/__webpack_require__.n(Matrix4_namespaceObject);
|
|
87
87
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Geometry/ViewVolume\")"
|
|
88
|
-
const ViewVolume_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
88
|
+
const ViewVolume_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("standard/Math/Geometry/ViewVolume");
|
|
89
89
|
var ViewVolume_default = /*#__PURE__*/__webpack_require__.n(ViewVolume_namespaceObject);
|
|
90
90
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
|
|
91
|
-
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
91
|
+
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Namespace");
|
|
92
92
|
var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
|
|
93
93
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Layout/X3DLayoutContext.js
|
|
94
94
|
/*******************************************************************************
|
|
@@ -227,19 +227,19 @@ const __default__ = X3DLayoutContext;
|
|
|
227
227
|
Namespace_default().set ("x_ite/Browser/Layout/X3DLayoutContext", __default__);
|
|
228
228
|
/* harmony default export */ const Layout_X3DLayoutContext = (__default__);
|
|
229
229
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
|
|
230
|
-
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
230
|
+
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Fields");
|
|
231
231
|
var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
|
|
232
232
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
|
|
233
|
-
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
233
|
+
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Base/X3DFieldDefinition");
|
|
234
234
|
var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
|
|
235
235
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
|
|
236
|
-
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
236
|
+
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Base/FieldDefinitionArray");
|
|
237
237
|
var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
|
|
238
238
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DChildNode\")"
|
|
239
|
-
const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
239
|
+
const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Components/Core/X3DChildNode");
|
|
240
240
|
var X3DChildNode_default = /*#__PURE__*/__webpack_require__.n(X3DChildNode_namespaceObject);
|
|
241
241
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
|
|
242
|
-
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
242
|
+
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Base/X3DConstants");
|
|
243
243
|
var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
|
|
244
244
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Layout/X3DLayoutNode.js
|
|
245
245
|
/*******************************************************************************
|
|
@@ -310,13 +310,13 @@ const X3DLayoutNode_default_ = X3DLayoutNode;
|
|
|
310
310
|
Namespace_default().set ("x_ite/Components/Layout/X3DLayoutNode", X3DLayoutNode_default_);
|
|
311
311
|
/* harmony default export */ const Layout_X3DLayoutNode = (X3DLayoutNode_default_);
|
|
312
312
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DCast\")"
|
|
313
|
-
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
313
|
+
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Base/X3DCast");
|
|
314
314
|
var X3DCast_default = /*#__PURE__*/__webpack_require__.n(X3DCast_namespaceObject);
|
|
315
315
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector2\")"
|
|
316
|
-
const Vector2_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
316
|
+
const Vector2_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("standard/Math/Numbers/Vector2");
|
|
317
317
|
var Vector2_default = /*#__PURE__*/__webpack_require__.n(Vector2_namespaceObject);
|
|
318
318
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Rotation4\")"
|
|
319
|
-
const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
319
|
+
const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("standard/Math/Numbers/Rotation4");
|
|
320
320
|
var Rotation4_default = /*#__PURE__*/__webpack_require__.n(Rotation4_namespaceObject);
|
|
321
321
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Layout/Layout.js
|
|
322
322
|
/*******************************************************************************
|
|
@@ -955,10 +955,10 @@ const Layout_default_ = Layout;
|
|
|
955
955
|
Namespace_default().set ("x_ite/Components/Layout/Layout", Layout_default_);
|
|
956
956
|
/* harmony default export */ const Layout_Layout = (Layout_default_);
|
|
957
957
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DGroupingNode\")"
|
|
958
|
-
const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
958
|
+
const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Components/Grouping/X3DGroupingNode");
|
|
959
959
|
var X3DGroupingNode_default = /*#__PURE__*/__webpack_require__.n(X3DGroupingNode_namespaceObject);
|
|
960
960
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Rendering/TraverseType\")"
|
|
961
|
-
const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
961
|
+
const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Rendering/TraverseType");
|
|
962
962
|
var TraverseType_default = /*#__PURE__*/__webpack_require__.n(TraverseType_namespaceObject);
|
|
963
963
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Layout/LayoutGroup.js
|
|
964
964
|
/*******************************************************************************
|
|
@@ -1143,10 +1143,10 @@ const LayoutGroup_default_ = LayoutGroup;
|
|
|
1143
1143
|
Namespace_default().set ("x_ite/Components/Layout/LayoutGroup", LayoutGroup_default_);
|
|
1144
1144
|
/* harmony default export */ const Layout_LayoutGroup = (LayoutGroup_default_);
|
|
1145
1145
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Layering/X3DLayerNode\")"
|
|
1146
|
-
const X3DLayerNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
1146
|
+
const X3DLayerNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Components/Layering/X3DLayerNode");
|
|
1147
1147
|
var X3DLayerNode_default = /*#__PURE__*/__webpack_require__.n(X3DLayerNode_namespaceObject);
|
|
1148
1148
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Navigation/OrthoViewpoint\")"
|
|
1149
|
-
const OrthoViewpoint_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
1149
|
+
const OrthoViewpoint_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Components/Navigation/OrthoViewpoint");
|
|
1150
1150
|
var OrthoViewpoint_default = /*#__PURE__*/__webpack_require__.n(OrthoViewpoint_namespaceObject);
|
|
1151
1151
|
;// CONCATENATED MODULE: ./src/x_ite/Components/Layout/LayoutLayer.js
|
|
1152
1152
|
/*******************************************************************************
|
|
@@ -1267,25 +1267,25 @@ const LayoutLayer_default_ = LayoutLayer;
|
|
|
1267
1267
|
Namespace_default().set ("x_ite/Components/Layout/LayoutLayer", LayoutLayer_default_);
|
|
1268
1268
|
/* harmony default export */ const Layout_LayoutLayer = (LayoutLayer_default_);
|
|
1269
1269
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Text/X3DFontStyleNode\")"
|
|
1270
|
-
const X3DFontStyleNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
1270
|
+
const X3DFontStyleNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Components/Text/X3DFontStyleNode");
|
|
1271
1271
|
var X3DFontStyleNode_default = /*#__PURE__*/__webpack_require__.n(X3DFontStyleNode_namespaceObject);
|
|
1272
1272
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Browser/Text/X3DTextGeometry\")"
|
|
1273
|
-
const X3DTextGeometry_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
1273
|
+
const X3DTextGeometry_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Browser/Text/X3DTextGeometry");
|
|
1274
1274
|
var X3DTextGeometry_default = /*#__PURE__*/__webpack_require__.n(X3DTextGeometry_namespaceObject);
|
|
1275
1275
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Browser/Text/TextAlignment\")"
|
|
1276
|
-
const TextAlignment_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
1276
|
+
const TextAlignment_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Browser/Text/TextAlignment");
|
|
1277
1277
|
var TextAlignment_default = /*#__PURE__*/__webpack_require__.n(TextAlignment_namespaceObject);
|
|
1278
1278
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Texturing/PixelTexture\")"
|
|
1279
|
-
const PixelTexture_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
1279
|
+
const PixelTexture_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Components/Texturing/PixelTexture");
|
|
1280
1280
|
var PixelTexture_default = /*#__PURE__*/__webpack_require__.n(PixelTexture_namespaceObject);
|
|
1281
1281
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Rendering/X3DGeometryNode\")"
|
|
1282
|
-
const X3DGeometryNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
1282
|
+
const X3DGeometryNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("x_ite/Components/Rendering/X3DGeometryNode");
|
|
1283
1283
|
var X3DGeometryNode_default = /*#__PURE__*/__webpack_require__.n(X3DGeometryNode_namespaceObject);
|
|
1284
1284
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Geometry/Box3\")"
|
|
1285
|
-
const Box3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
1285
|
+
const Box3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("standard/Math/Geometry/Box3");
|
|
1286
1286
|
var Box3_default = /*#__PURE__*/__webpack_require__.n(Box3_namespaceObject);
|
|
1287
1287
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Algorithm\")"
|
|
1288
|
-
const Algorithm_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.
|
|
1288
|
+
const Algorithm_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.7.9")] .require ("standard/Math/Algorithm");
|
|
1289
1289
|
var Algorithm_default = /*#__PURE__*/__webpack_require__.n(Algorithm_namespaceObject);
|
|
1290
1290
|
;// CONCATENATED MODULE: ./src/x_ite/Browser/Layout/ScreenText.js
|
|
1291
1291
|
/* provided dependency */ var $ = __webpack_require__(355);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/* X_ITE v8.7.8 */(()=>{"use strict";var t={355:t=>{t.exports=window[Symbol.for("X_ITE.X3D-8.7.8")].require("lib/jquery")}},e={};function i(n){var s=e[n];if(void 0!==s)return s.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,i),o.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{const t=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Components");var e=i.n(t);const n=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Components/Texturing/TextureProperties");var s=i.n(n);const o=window[Symbol.for("X_ITE.X3D-8.7.8")].require("standard/Math/Numbers/Vector3");var r=i.n(o);const a=window[Symbol.for("X_ITE.X3D-8.7.8")].require("standard/Math/Numbers/Matrix4");var u=i.n(a);const h=window[Symbol.for("X_ITE.X3D-8.7.8")].require("standard/Math/Geometry/ViewVolume");var c=i.n(h);const l=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Namespace");var d=i.n(l);const f=Symbol();function p(){}p.prototype={getScreenTextureProperties:function(){return this[f]=new(s())(this.getPrivateScene()),this[f]._boundaryModeS="CLAMP_TO_EDGE",this[f]._boundaryModeT="CLAMP_TO_EDGE",this[f]._boundaryModeR="CLAMP_TO_EDGE",this[f]._minificationFilter="NEAREST_PIXEL",this[f]._magnificationFilter="NEAREST_PIXEL",this[f]._generateMipMaps=!1,this[f]._textureCompression="DEFAULT",this[f].setup(),this.getScreenTextureProperties=function(){return this[f]},Object.defineProperty(this,"getScreenTextureProperties",{enumerable:!1}),this[f]},getScreenScaleMatrix:function(){const t=new(r())(0,0,0),e=new(r())(0,0,0),i=new(u());return function(n,s){const o=n.getModelViewMatrix().get(),a=n.getProjectionMatrix().get(),u=n.getViewVolume().getViewport();n.getViewpoint().getScreenScale(o.origin,u,t);const h=o.xAxis.normalize().multiply(t.x),l=o.yAxis.normalize().multiply(t.y),d=o.zAxis.normalize().multiply(t.x);i.set(h.x,h.y,h.z,0,l.x,l.y,l.z,0,d.x,d.y,d.z,0,o[12],o[13],o[14],1),c().projectPoint(r().Zero,i,a,u,e),e.x=Math.round(e.x),e.y=Math.round(e.y),c().unProjectPoint(e.x,e.y,e.z,i,a,u,e),e.z=0,i.translate(e),s.assign(o).inverse().multLeft(i)}}()};const y=p;d().set("x_ite/Browser/Layout/X3DLayoutContext",y);const g=y,w=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Fields");var x=i.n(w);const _=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Base/X3DFieldDefinition");var S=i.n(_);const m=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Base/FieldDefinitionArray");var X=i.n(m);const M=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Components/Core/X3DChildNode");var T=i.n(M);const b=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Base/X3DConstants");var z=i.n(b);function N(t){T().call(this,t),this.addType(z().X3DLayoutNode)}N.prototype=Object.assign(Object.create(T().prototype),{constructor:N});const O=N;d().set("x_ite/Components/Layout/X3DLayoutNode",O);const v=O,F=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Base/X3DCast");var I=i.n(F);const C=window[Symbol.for("X_ITE.X3D-8.7.8")].require("standard/Math/Numbers/Vector2");var E=i.n(C);const L=window[Symbol.for("X_ITE.X3D-8.7.8")].require("standard/Math/Numbers/Rotation4");var D=i.n(L);let U=0;const B=U++,Y=U++,P=U++,R=U++,G=U++,V=U++,A=U++,q=U++,j=U++,k=U++;function W(t){v.call(this,t),this.addType(z().Layout),this.alignX=Y,this.alignY=Y,this.offsetUnitX=V,this.offsetUnitY=V,this.offsetX=0,this.offsetY=0,this.sizeUnitX=V,this.sizeUnitY=V,this.sizeX=1,this.sizeY=1,this.scaleModeX=j,this.scaleModeY=j,this.parent=null,this.rectangleCenter=new(E())(0,0),this.rectangleSize=new(E())(0,0),this.matrix=new(u())}W.prototype=Object.assign(Object.create(v.prototype),{constructor:W,viewportPixel:new(E())(0,0),pixelSize:new(E())(0,0),translation:new(r())(0,0,0),offset:new(r())(0,0,0),scale:new(r())(1,1,1),currentTranslation:new(r())(0,0,0),currentRotation:new(D()),currentScale:new(r())(0,0,0),modelViewMatrix:new(u()),[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(X())([new(S())(z().inputOutput,"metadata",new(x().SFNode)),new(S())(z().inputOutput,"align",new(x().MFString)("CENTER","CENTER")),new(S())(z().inputOutput,"offsetUnits",new(x().MFString)("WORLD","WORLD")),new(S())(z().inputOutput,"offset",new(x().MFFloat)(0,0)),new(S())(z().inputOutput,"sizeUnits",new(x().MFString)("WORLD","WORLD")),new(S())(z().inputOutput,"size",new(x().MFFloat)(1,1)),new(S())(z().inputOutput,"scaleMode",new(x().MFString)("NONE","NONE"))]),getTypeName:function(){return"Layout"},getComponentName:function(){return"Layout"},getContainerField:function(){return"layout"},getSpecificationRange:function(){return["3.2","Infinity"]},initialize:function(){v.prototype.initialize.call(this),this._align.addInterest("set_align__",this),this._offsetUnits.addInterest("set_offsetUnits__",this),this._offset.addInterest("set_offset__",this),this._sizeUnits.addInterest("set_sizeUnits__",this),this._size.addInterest("set_size__",this),this._scaleMode.addInterest("set_scaleMode__",this),this.set_align__(),this.set_offsetUnits__(),this.set_offset__(),this.set_sizeUnits__(),this.set_size__(),this.set_scaleMode__()},set_align__:function(){this._align.length>0?"LEFT"===this._align[0]?this.alignX=B:"RIGHT"===this._align[0]?this.alignX=P:this.alignX=Y:this.alignX=Y,this._align.length>1?"BOTTOM"===this._align[1]?this.alignY=R:"TOP"===this._align[1]?this.alignY=G:this.alignY=Y:this.alignY=Y},set_offsetUnits__:function(){this._offsetUnits.length>0?("FRACTION"===this._offsetUnits[0]?this.offsetUnitX=A:"PIXEL"===this._offsetUnits[0]?this.offsetUnitX=q:this.offsetUnitX=V,this._offsetUnits.length>1?"FRACTION"===this._offsetUnits[1]?this.offsetUnitY=A:"PIXEL"===this._offsetUnits[1]?this.offsetUnitY=q:this.offsetUnitY=V:this.offsetUnitY=this.offsetUnitX):(this.offsetUnitX=V,this.offsetUnitY=V)},set_offset__:function(){this._offset.length>0?(this.offsetX=this._offset[0],this._offset.length>1?this.offsetY=this._offset[1]:this.offsetY=offsetX):(this.offsetX=0,this.offsetY=0)},set_sizeUnits__:function(){this._sizeUnits.length>0?("FRACTION"===this._sizeUnits[0]?this.sizeUnitX=A:"PIXEL"===this._sizeUnits[0]?this.sizeUnitX=q:this.sizeUnitX=V,this._sizeUnits.length>1?"FRACTION"===this._sizeUnits[1]?this.sizeUnitY=A:"PIXEL"===this._sizeUnits[1]?this.sizeUnitY=q:this.sizeUnitY=V:this.sizeUnitY=this.sizeUnitX):(this.sizeUnitX=V,this.sizeUnitY=V)},set_size__:function(){this._size.length>0?(this.sizeX=this._size[0],this._size.length>1?this.sizeY=this._size[1]:this.sizeY=this.sizeX):(this.sizeX=0,this.sizeY=0)},set_scaleMode__:function(){this._scaleMode.length>0?("FRACTION"===this._scaleMode[0]?this.scaleModeX=A:"PIXEL"===this._scaleMode[0]?this.scaleModeX=q:"STRETCH"===this._scaleMode[0]?this.scaleModeX=k:this.scaleModeX=j,this._scaleMode.length>1?"FRACTION"===this._scaleMode[1]?this.scaleModeY=A:"PIXEL"===this._scaleMode[1]?this.scaleModeY=q:"STRETCH"===this._scaleMode[1]?this.scaleModeY=k:this.scaleModeY=j:this.scaleModeY=this.scaleModeX):(this.scaleModeX=j,this.scaleModeY=j)},getRectangleCenter:function(){return this.rectangleCenter},getRectangleSize:function(){return this.rectangleSize},getAlignX:function(){return this.alignX},getAlignY:function(){return this.alignY},getOffsetUnitX:function(){return this.offsetUnitX===V?this.parent?this.parent.getOffsetUnitX():A:this.offsetUnitX},getOffsetUnitY:function(){return this.offsetUnitY===V?this.parent?this.parent.getOffsetUnitY():A:this.offsetUnitY},getOffsetX:function(){return this.offsetX},getOffsetY:function(){return this.offsetY},getSizeUnitX:function(){return this.sizeUnitX===V?this.parent?this.parent.getSizeUnitX():A:this.sizeUnitX},getSizeUnitY:function(){return this.sizeUnitY===V?this.parent?this.parent.getSizeUnitY():A:this.sizeUnitY},getSizeX:function(){return this.sizeX},getSizeY:function(){return this.sizeY},getScaleModeX:function(){return this.parent?this.scaleModeX:this.scaleModeX===j?A:this.scaleModeX},getScaleModeY:function(){return this.parent?this.scaleModeY:this.scaleModeY===j?A:this.scaleModeY},transform:function(t,e){const i=this.parent=e.getParentLayout(),n=this.getBrowser().getRenderingProperty("ContentScale"),s=this.matrix,o=e.getViewpoint(),r=e.getNavigationInfo().getNearValue(),a=e.getViewVolume().getScissor(),u=o.getViewportSize(a,r),h=this.viewportPixel,c=this.pixelSize,l=i?i.getRectangleSize():u,d=this.rectangleSize,f=this.rectangleCenter;switch(h.set(a[2],a[3]).divide(n),c.assign(u).divVec(h),this.getSizeUnitX()){case A:d.x=this.sizeX*l.x;break;case q:d.x=this.sizeX*c.x}switch(this.getSizeUnitY()){case A:d.y=this.sizeY*l.y;break;case q:d.y=this.sizeY*c.y}const p=this.translation.set(0,0,0);switch(this.getAlignX()){case B:p.x=-(l.x-d.x)/2;break;case Y:this.getSizeUnitX()===q&&1&h.x&&(p.x=-c.x/2);break;case P:p.x=(l.x-d.x)/2}switch(this.getAlignY()){case R:p.y=-(l.y-d.y)/2;break;case Y:this.getSizeUnitX===q&&1&h.y&&(p.y=-c.y/2);break;case G:p.y=(l.y-d.y)/2}const y=this.offset.set(0,0,0);switch(this.getOffsetUnitX()){case A:y.x=this.offsetX*l.x;break;case q:y.x=this.offsetX*u.x/h.x}switch(this.getOffsetUnitY()){case A:y.y=this.offsetY*l.y;break;case q:y.y=this.offsetY*u.y/h.y}const g=this.scale.set(1,1,1),w=this.currentTranslation,x=this.currentRotation,_=this.currentScale;switch(e.getModelViewMatrix().get().get(w,x,_),this.getScaleModeX()){case j:g.x=_.x;break;case A:g.x=d.x;break;case k:break;case q:g.x=u.x/h.x}switch(this.getScaleModeY()){case j:g.y=_.y;break;case A:g.y=d.y;break;case k:break;case q:g.y=u.y/h.y}return this.getScaleModeX()===k?this.getScaleModeY()===k?d.x>d.y?(g.x=d.x,g.y=g.x):(g.y=d.y,g.x=g.y):g.x=g.y:this.getScaleModeY()===k&&(g.y=g.x),f.assign(p.add(y)),s.set(w,x),s.translate(p),s.scale(g),s}});const H=W;d().set("x_ite/Components/Layout/Layout",H);const K=H,Z=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Components/Grouping/X3DGroupingNode");var Q=i.n(Z);const J=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Rendering/TraverseType");var $=i.n(J);function tt(t){Q().call(this,t),this.addType(z().LayoutGroup),this.viewportNode=null,this.layoutNode=null,this.matrix=new(u()),this.modelViewMatrix=new(u()),this.screenMatrix=new(u())}tt.prototype=Object.assign(Object.create(Q().prototype),{constructor:tt,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(X())([new(S())(z().inputOutput,"metadata",new(x().SFNode)),new(S())(z().inputOutput,"layout",new(x().SFNode)),new(S())(z().inputOutput,"viewport",new(x().SFNode)),new(S())(z().inputOutput,"visible",new(x().SFBool)(!0)),new(S())(z().inputOutput,"bboxDisplay",new(x().SFBool)),new(S())(z().initializeOnly,"bboxSize",new(x().SFVec3f)(-1,-1,-1)),new(S())(z().initializeOnly,"bboxCenter",new(x().SFVec3f)),new(S())(z().inputOnly,"addChildren",new(x().MFNode)),new(S())(z().inputOnly,"removeChildren",new(x().MFNode)),new(S())(z().inputOutput,"children",new(x().MFNode))]),getTypeName:function(){return"LayoutGroup"},getComponentName:function(){return"Layout"},getContainerField:function(){return"children"},getSpecificationRange:function(){return["3.2","Infinity"]},initialize:function(){Q().prototype.initialize.call(this),this._viewport.addInterest("set_viewport__",this),this._layout.addInterest("set_layout__",this),this.set_viewport__(),this.set_layout__()},set_viewport__:function(){this.viewportNode=I()(z().X3DViewportNode,this._viewport)},set_layout__:function(){this.layoutNode=I()(z().X3DLayoutNode,this._layout)},getBBox:function(t,e){return Q().prototype.getBBox.call(this,t,e).multRight(this.getMatrix())},getMatrix:function(){return this.layoutNode?this.matrix.assign(this.modelViewMatrix).inverse().multLeft(this.screenMatrix):this.matrix.identity()},getLayout:function(){return this.layoutNode},traverse:function(t,e){if(t!==$().COLLISION){if(this.viewportNode&&this.viewportNode.push(),this.layoutNode){const i=e.getModelViewMatrix();this.modelViewMatrix.assign(i.get()),this.screenMatrix.assign(this.layoutNode.transform(t,e)),i.pushMatrix(this.screenMatrix),e.getLayouts().push(this.layoutNode),Q().prototype.traverse.call(this,t,e),e.getLayouts().pop(),i.pop()}else Q().prototype.traverse.call(this,t,e);this.viewportNode&&this.viewportNode.pop()}}});const et=tt;d().set("x_ite/Components/Layout/LayoutGroup",et);const it=et,nt=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Components/Layering/X3DLayerNode");var st=i.n(nt);const ot=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Components/Navigation/OrthoViewpoint");var rt=i.n(ot);function at(t){st().call(this,t,new(rt())(t),new it(t)),this.addType(z().LayoutLayer)}at.prototype=Object.assign(Object.create(st().prototype),{constructor:at,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(X())([new(S())(z().inputOutput,"metadata",new(x().SFNode)),new(S())(z().inputOutput,"pickable",new(x().SFBool)(!0)),new(S())(z().inputOutput,"objectType",new(x().MFString)("ALL")),new(S())(z().inputOutput,"visible",new(x().SFBool)(!0)),new(S())(z().inputOutput,"layout",new(x().SFNode)),new(S())(z().inputOutput,"viewport",new(x().SFNode)),new(S())(z().inputOnly,"addChildren",new(x().MFNode)),new(S())(z().inputOnly,"removeChildren",new(x().MFNode)),new(S())(z().inputOutput,"children",new(x().MFNode))]),getTypeName:function(){return"LayoutLayer"},getComponentName:function(){return"Layout"},getContainerField:function(){return"layers"},getSpecificationRange:function(){return["3.2","Infinity"]},initialize:function(){st().prototype.initialize.call(this),this._layout.addFieldInterest(this.getGroup()._layout),this._addChildren.addFieldInterest(this.getGroup()._addChildren),this._removeChildren.addFieldInterest(this.getGroup()._removeChildren),this._children.addFieldInterest(this.getGroup()._children),this.getGroup()._layout=this._layout,this.getGroup()._children=this._children,this.getGroup().setPrivate(!0),this.getGroup().setup()}});const ut=at;d().set("x_ite/Components/Layout/LayoutLayer",ut);const ht=ut,ct=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Components/Text/X3DFontStyleNode");var lt=i.n(ct);const dt=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Browser/Text/X3DTextGeometry");var ft=i.n(dt);const pt=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Browser/Text/TextAlignment");var yt=i.n(pt);const gt=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Components/Texturing/PixelTexture");var wt=i.n(gt);const xt=window[Symbol.for("X_ITE.X3D-8.7.8")].require("x_ite/Components/Rendering/X3DGeometryNode");var _t=i.n(xt);const St=window[Symbol.for("X_ITE.X3D-8.7.8")].require("standard/Math/Geometry/Box3");var mt=i.n(St);const Xt=window[Symbol.for("X_ITE.X3D-8.7.8")].require("standard/Math/Algorithm");var Mt=i.n(Xt),Tt=i(355);function bt(t,e){ft().call(this,t,e),t.setTransparent(!0),this.texCoordArray=_t().createArray(),this.textureNode=new(wt())(t.getExecutionContext()),this.canvas=Tt("<canvas></canvas>"),this.context=this.canvas[0].getContext("2d",{willReadFrequently:!0}),this.matrix=new(u()),this.textureNode._textureProperties=e.getBrowser().getScreenTextureProperties(),this.textureNode.setup()}bt.prototype=Object.assign(Object.create(ft().prototype),{constructor:bt,modelViewMatrix:new(u()),isTransparent:function(){return!0},getMatrix:function(){return this.matrix},update:function(){const t=new(r())(0,0,0),e=new(r())(1,1,0);return function(){ft().prototype.update.call(this);const i=this.getFontStyle(),n=this.getText();switch(n._textBounds.x=Math.ceil(n._textBounds.x)+1,n._textBounds.y=Math.ceil(n._textBounds.y)+1,this.getBBox().getExtents(t,e),t.x-=1,t.y-=1,i.getMajorAlignment()){case yt().BEGIN:case yt().FIRST:t.x=Math.floor(t.x),e.x=t.x+n._textBounds.x;break;case yt().MIDDLE:t.x=Math.round(t.x),e.x=t.x+n._textBounds.x;break;case yt().END:e.x=Math.ceil(e.x),t.x=e.x-n._textBounds.x}switch(i.getMinorAlignment()){case yt().BEGIN:case yt().FIRST:e.y=Math.ceil(e.y),t.y=e.y-n._textBounds.y;break;case yt().MIDDLE:e.y=Math.round(e.y),t.y=e.y-n._textBounds.y;break;case yt().END:t.y=Math.floor(t.y),e.y=t.y+n._textBounds.y}n._origin.x=t.x,n._origin.y=e.y,this.getBBox().setExtents(t,e)}}(),build:function(){const t=new(r())(0,0,0),e=new(r())(1,1,0);return function(){const i=this.getFontStyle(),n=i.getFont();if(!n)return;const s=this.getText(),o=this.getGlyphs(),r=this.getMinorAlignment(),a=this.getTranslations(),u=this.getCharSpacings(),h=i.getScale(),c=h/n.unitsPerEm,l=this.texCoordArray,d=s.getNormals(),f=s.getVertices(),p=this.canvas[0],y=this.context;l.length=0,s.getMultiTexCoords().push(l),this.getBBox().getExtents(t,e),d.push(0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1),f.push(t.x,t.y,0,1,e.x,t.y,0,1,e.x,e.y,0,1,t.x,t.y,0,1,e.x,e.y,0,1,t.x,e.y,0,1);const g=s._textBounds.x,w=s._textBounds.y;p.width=Mt().nextPowerOfTwo(g),p.height=Mt().nextPowerOfTwo(w);const x=g/p.width,_=1-w/p.height;if(l.push(0,_,0,1,x,_,0,1,x,1,0,1,0,_,0,1,x,1,0,1,0,1,0,1),y.fillStyle="rgba(255,255,255,0)",y.fillRect(0,0,p.width,p.height),y.fillStyle="rgba(255,255,255,1)",y.save(),y.translate(0,p.height),y.scale(1,-1),i._horizontal.getValue())for(let i=0,s=o.length;i<s;++i){const s=o[i],l=u[i],d=a[i];let f=0;for(let i=0,o=s.length;i<o;++i){const o=s[i],a=r.x+d.x+f+i*l-t.x,u=r.y+d.y-e.y;this.drawGlyph(y,n,o,a,u,h);let p=0;i+1<s.length&&(p=n.getKerningValue(o,s[i+1])),f+=(o.advanceWidth+p)*c}}else{const u=i._leftToRight.getValue(),c=i._topToBottom.getValue(),l=u?0:s._string.length-1,d=u?s._string.length:-1,f=u?1:-1;for(let i=l,s=0;i!==d;i+=f){const u=o[i],l=u.length,d=c?l:-1,f=c?1:-1;for(let i=c?0:l-1;i!==d;i+=f,++s){const o=a[s],c=r.x+o.x-t.x,l=r.y+o.y-e.y;this.drawGlyph(y,n,u[i],c,l,h)}}}y.restore();const S=y.getImageData(0,0,p.width,p.height);S?this.textureNode.setTexture(p.width,p.height,!0,new Uint8Array(S.data.buffer),!1):this.textureNode.clear()}}(),drawGlyph:function(t,e,i,n,s,o){const r=i.getPath(n,-s,o),a=r.commands;t.beginPath();for(let e=0,i=a.length;e<i;++e){const i=a[e];switch(i.type){case"M":t.moveTo(i.x,i.y);continue;case"Z":t.closePath();continue;case"L":t.lineTo(i.x,i.y);continue;case"Q":t.quadraticCurveTo(i.x1,i.y1,i.x,i.y);continue;case"C":t.bezierCurveTo(i.x1,i.y1,i.x2,i.y2,i.x,i.y);continue}}r.fill&&t.fill(),r.stroke&&(t.lineWidth=r.strokeWidth,t.stroke())},getGlyphExtents:function(t,e,i,n,s){const o=t.unitsPerEm;n.set((e.xMin||0)/o,(e.yMin||0)/o,0),s.set((e.xMax||0)/o,(e.yMax||0)/o,0)},traverse:function(){const t=new(mt());return function(e,i){this.getBrowser().getScreenScaleMatrix(i,this.matrix),t.assign(this.getBBox()).multRight(this.matrix),this.getText().setBBox(t)}}(),display:function(t,e){u().prototype.multLeft.call(e.modelViewMatrix,this.matrix),e.textureNode=this.textureNode},transformLine:function(){const t=new(u());return function(e){return e.multLineMatrix(t.assign(this.matrix).inverse())}}(),transformMatrix:function(t){return t.multLeft(this.matrix)}});const zt=bt;d().set("x_ite/Browser/Layout/ScreenText",zt);const Nt=zt;function Ot(t){lt().call(this,t),this.addType(z().ScreenFontStyle)}Ot.prototype=Object.assign(Object.create(lt().prototype),{constructor:Ot,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(X())([new(S())(z().inputOutput,"metadata",new(x().SFNode)),new(S())(z().inputOutput,"language",new(x().SFString)),new(S())(z().inputOutput,"family",new(x().MFString)("SERIF")),new(S())(z().inputOutput,"style",new(x().SFString)("PLAIN")),new(S())(z().inputOutput,"pointSize",new(x().SFFloat)(12)),new(S())(z().inputOutput,"spacing",new(x().SFFloat)(1)),new(S())(z().inputOutput,"horizontal",new(x().SFBool)(!0)),new(S())(z().inputOutput,"leftToRight",new(x().SFBool)(!0)),new(S())(z().inputOutput,"topToBottom",new(x().SFBool)(!0)),new(S())(z().inputOutput,"justify",new(x().MFString)("BEGIN"))]),getTypeName:function(){return"ScreenFontStyle"},getComponentName:function(){return"Layout"},getContainerField:function(){return"fontStyle"},getSpecificationRange:function(){return["3.2","Infinity"]},initialize:function(){lt().prototype.initialize.call(this),this.getBrowser().getRenderingProperties()._ContentScale.addInterest("addNodeEvent",this)},getTextGeometry:function(t){return new Nt(t,this)},getScale:function(){return this._pointSize.getValue()*this.getBrowser().getPixelPerPoint()}});const vt=Ot;d().set("x_ite/Components/Layout/ScreenFontStyle",vt);const Ft=vt;function It(t){Q().call(this,t),this.addType(z().ScreenGroup),this.matrix=new(u())}It.prototype=Object.assign(Object.create(Q().prototype),{constructor:It,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(X())([new(S())(z().inputOutput,"metadata",new(x().SFNode)),new(S())(z().inputOutput,"visible",new(x().SFBool)(!0)),new(S())(z().inputOutput,"bboxDisplay",new(x().SFBool)),new(S())(z().initializeOnly,"bboxSize",new(x().SFVec3f)(-1,-1,-1)),new(S())(z().initializeOnly,"bboxCenter",new(x().SFVec3f)),new(S())(z().inputOnly,"addChildren",new(x().MFNode)),new(S())(z().inputOnly,"removeChildren",new(x().MFNode)),new(S())(z().inputOutput,"children",new(x().MFNode))]),getTypeName:function(){return"ScreenGroup"},getComponentName:function(){return"Layout"},getContainerField:function(){return"children"},getSpecificationRange:function(){return["3.2","Infinity"]},getBBox:function(t,e){return this.getSubBBox(t,e).multRight(this.matrix)},getMatrix:function(){return this.matrix},traverse:function(t,e){switch(t){case $().CAMERA:case $().PICKING:case $().SHADOW:break;default:this.getBrowser().getScreenScaleMatrix(e,this.matrix)}const i=e.getModelViewMatrix();i.push(),i.multLeft(this.matrix),Q().prototype.traverse.call(this,t,e),i.pop()}});const Ct=It;d().set("x_ite/Components/Layout/ScreenGroup",Ct);const Et=Ct;e().addComponent({name:"Layout",types:{Layout:K,LayoutGroup:it,LayoutLayer:ht,ScreenFontStyle:Ft,ScreenGroup:Et},abstractTypes:{X3DLayoutNode:v},browserContext:g});const Lt=void 0;d().set("assets/components/Layout",Lt)})()})();
|
|
1
|
+
/* X_ITE v8.7.9 */(()=>{"use strict";var t={355:t=>{t.exports=window[Symbol.for("X_ITE.X3D-8.7.9")].require("lib/jquery")}},e={};function i(n){var s=e[n];if(void 0!==s)return s.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,i),o.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{const t=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Components");var e=i.n(t);const n=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Components/Texturing/TextureProperties");var s=i.n(n);const o=window[Symbol.for("X_ITE.X3D-8.7.9")].require("standard/Math/Numbers/Vector3");var r=i.n(o);const a=window[Symbol.for("X_ITE.X3D-8.7.9")].require("standard/Math/Numbers/Matrix4");var u=i.n(a);const h=window[Symbol.for("X_ITE.X3D-8.7.9")].require("standard/Math/Geometry/ViewVolume");var c=i.n(h);const l=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Namespace");var d=i.n(l);const f=Symbol();function p(){}p.prototype={getScreenTextureProperties:function(){return this[f]=new(s())(this.getPrivateScene()),this[f]._boundaryModeS="CLAMP_TO_EDGE",this[f]._boundaryModeT="CLAMP_TO_EDGE",this[f]._boundaryModeR="CLAMP_TO_EDGE",this[f]._minificationFilter="NEAREST_PIXEL",this[f]._magnificationFilter="NEAREST_PIXEL",this[f]._generateMipMaps=!1,this[f]._textureCompression="DEFAULT",this[f].setup(),this.getScreenTextureProperties=function(){return this[f]},Object.defineProperty(this,"getScreenTextureProperties",{enumerable:!1}),this[f]},getScreenScaleMatrix:function(){const t=new(r())(0,0,0),e=new(r())(0,0,0),i=new(u());return function(n,s){const o=n.getModelViewMatrix().get(),a=n.getProjectionMatrix().get(),u=n.getViewVolume().getViewport();n.getViewpoint().getScreenScale(o.origin,u,t);const h=o.xAxis.normalize().multiply(t.x),l=o.yAxis.normalize().multiply(t.y),d=o.zAxis.normalize().multiply(t.x);i.set(h.x,h.y,h.z,0,l.x,l.y,l.z,0,d.x,d.y,d.z,0,o[12],o[13],o[14],1),c().projectPoint(r().Zero,i,a,u,e),e.x=Math.round(e.x),e.y=Math.round(e.y),c().unProjectPoint(e.x,e.y,e.z,i,a,u,e),e.z=0,i.translate(e),s.assign(o).inverse().multLeft(i)}}()};const y=p;d().set("x_ite/Browser/Layout/X3DLayoutContext",y);const g=y,w=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Fields");var x=i.n(w);const _=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Base/X3DFieldDefinition");var S=i.n(_);const m=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Base/FieldDefinitionArray");var X=i.n(m);const M=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Components/Core/X3DChildNode");var T=i.n(M);const b=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Base/X3DConstants");var z=i.n(b);function N(t){T().call(this,t),this.addType(z().X3DLayoutNode)}N.prototype=Object.assign(Object.create(T().prototype),{constructor:N});const O=N;d().set("x_ite/Components/Layout/X3DLayoutNode",O);const v=O,F=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Base/X3DCast");var I=i.n(F);const C=window[Symbol.for("X_ITE.X3D-8.7.9")].require("standard/Math/Numbers/Vector2");var E=i.n(C);const L=window[Symbol.for("X_ITE.X3D-8.7.9")].require("standard/Math/Numbers/Rotation4");var D=i.n(L);let U=0;const B=U++,Y=U++,P=U++,R=U++,G=U++,V=U++,A=U++,q=U++,j=U++,k=U++;function W(t){v.call(this,t),this.addType(z().Layout),this.alignX=Y,this.alignY=Y,this.offsetUnitX=V,this.offsetUnitY=V,this.offsetX=0,this.offsetY=0,this.sizeUnitX=V,this.sizeUnitY=V,this.sizeX=1,this.sizeY=1,this.scaleModeX=j,this.scaleModeY=j,this.parent=null,this.rectangleCenter=new(E())(0,0),this.rectangleSize=new(E())(0,0),this.matrix=new(u())}W.prototype=Object.assign(Object.create(v.prototype),{constructor:W,viewportPixel:new(E())(0,0),pixelSize:new(E())(0,0),translation:new(r())(0,0,0),offset:new(r())(0,0,0),scale:new(r())(1,1,1),currentTranslation:new(r())(0,0,0),currentRotation:new(D()),currentScale:new(r())(0,0,0),modelViewMatrix:new(u()),[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(X())([new(S())(z().inputOutput,"metadata",new(x().SFNode)),new(S())(z().inputOutput,"align",new(x().MFString)("CENTER","CENTER")),new(S())(z().inputOutput,"offsetUnits",new(x().MFString)("WORLD","WORLD")),new(S())(z().inputOutput,"offset",new(x().MFFloat)(0,0)),new(S())(z().inputOutput,"sizeUnits",new(x().MFString)("WORLD","WORLD")),new(S())(z().inputOutput,"size",new(x().MFFloat)(1,1)),new(S())(z().inputOutput,"scaleMode",new(x().MFString)("NONE","NONE"))]),getTypeName:function(){return"Layout"},getComponentName:function(){return"Layout"},getContainerField:function(){return"layout"},getSpecificationRange:function(){return["3.2","Infinity"]},initialize:function(){v.prototype.initialize.call(this),this._align.addInterest("set_align__",this),this._offsetUnits.addInterest("set_offsetUnits__",this),this._offset.addInterest("set_offset__",this),this._sizeUnits.addInterest("set_sizeUnits__",this),this._size.addInterest("set_size__",this),this._scaleMode.addInterest("set_scaleMode__",this),this.set_align__(),this.set_offsetUnits__(),this.set_offset__(),this.set_sizeUnits__(),this.set_size__(),this.set_scaleMode__()},set_align__:function(){this._align.length>0?"LEFT"===this._align[0]?this.alignX=B:"RIGHT"===this._align[0]?this.alignX=P:this.alignX=Y:this.alignX=Y,this._align.length>1?"BOTTOM"===this._align[1]?this.alignY=R:"TOP"===this._align[1]?this.alignY=G:this.alignY=Y:this.alignY=Y},set_offsetUnits__:function(){this._offsetUnits.length>0?("FRACTION"===this._offsetUnits[0]?this.offsetUnitX=A:"PIXEL"===this._offsetUnits[0]?this.offsetUnitX=q:this.offsetUnitX=V,this._offsetUnits.length>1?"FRACTION"===this._offsetUnits[1]?this.offsetUnitY=A:"PIXEL"===this._offsetUnits[1]?this.offsetUnitY=q:this.offsetUnitY=V:this.offsetUnitY=this.offsetUnitX):(this.offsetUnitX=V,this.offsetUnitY=V)},set_offset__:function(){this._offset.length>0?(this.offsetX=this._offset[0],this._offset.length>1?this.offsetY=this._offset[1]:this.offsetY=offsetX):(this.offsetX=0,this.offsetY=0)},set_sizeUnits__:function(){this._sizeUnits.length>0?("FRACTION"===this._sizeUnits[0]?this.sizeUnitX=A:"PIXEL"===this._sizeUnits[0]?this.sizeUnitX=q:this.sizeUnitX=V,this._sizeUnits.length>1?"FRACTION"===this._sizeUnits[1]?this.sizeUnitY=A:"PIXEL"===this._sizeUnits[1]?this.sizeUnitY=q:this.sizeUnitY=V:this.sizeUnitY=this.sizeUnitX):(this.sizeUnitX=V,this.sizeUnitY=V)},set_size__:function(){this._size.length>0?(this.sizeX=this._size[0],this._size.length>1?this.sizeY=this._size[1]:this.sizeY=this.sizeX):(this.sizeX=0,this.sizeY=0)},set_scaleMode__:function(){this._scaleMode.length>0?("FRACTION"===this._scaleMode[0]?this.scaleModeX=A:"PIXEL"===this._scaleMode[0]?this.scaleModeX=q:"STRETCH"===this._scaleMode[0]?this.scaleModeX=k:this.scaleModeX=j,this._scaleMode.length>1?"FRACTION"===this._scaleMode[1]?this.scaleModeY=A:"PIXEL"===this._scaleMode[1]?this.scaleModeY=q:"STRETCH"===this._scaleMode[1]?this.scaleModeY=k:this.scaleModeY=j:this.scaleModeY=this.scaleModeX):(this.scaleModeX=j,this.scaleModeY=j)},getRectangleCenter:function(){return this.rectangleCenter},getRectangleSize:function(){return this.rectangleSize},getAlignX:function(){return this.alignX},getAlignY:function(){return this.alignY},getOffsetUnitX:function(){return this.offsetUnitX===V?this.parent?this.parent.getOffsetUnitX():A:this.offsetUnitX},getOffsetUnitY:function(){return this.offsetUnitY===V?this.parent?this.parent.getOffsetUnitY():A:this.offsetUnitY},getOffsetX:function(){return this.offsetX},getOffsetY:function(){return this.offsetY},getSizeUnitX:function(){return this.sizeUnitX===V?this.parent?this.parent.getSizeUnitX():A:this.sizeUnitX},getSizeUnitY:function(){return this.sizeUnitY===V?this.parent?this.parent.getSizeUnitY():A:this.sizeUnitY},getSizeX:function(){return this.sizeX},getSizeY:function(){return this.sizeY},getScaleModeX:function(){return this.parent?this.scaleModeX:this.scaleModeX===j?A:this.scaleModeX},getScaleModeY:function(){return this.parent?this.scaleModeY:this.scaleModeY===j?A:this.scaleModeY},transform:function(t,e){const i=this.parent=e.getParentLayout(),n=this.getBrowser().getRenderingProperty("ContentScale"),s=this.matrix,o=e.getViewpoint(),r=e.getNavigationInfo().getNearValue(),a=e.getViewVolume().getScissor(),u=o.getViewportSize(a,r),h=this.viewportPixel,c=this.pixelSize,l=i?i.getRectangleSize():u,d=this.rectangleSize,f=this.rectangleCenter;switch(h.set(a[2],a[3]).divide(n),c.assign(u).divVec(h),this.getSizeUnitX()){case A:d.x=this.sizeX*l.x;break;case q:d.x=this.sizeX*c.x}switch(this.getSizeUnitY()){case A:d.y=this.sizeY*l.y;break;case q:d.y=this.sizeY*c.y}const p=this.translation.set(0,0,0);switch(this.getAlignX()){case B:p.x=-(l.x-d.x)/2;break;case Y:this.getSizeUnitX()===q&&1&h.x&&(p.x=-c.x/2);break;case P:p.x=(l.x-d.x)/2}switch(this.getAlignY()){case R:p.y=-(l.y-d.y)/2;break;case Y:this.getSizeUnitX===q&&1&h.y&&(p.y=-c.y/2);break;case G:p.y=(l.y-d.y)/2}const y=this.offset.set(0,0,0);switch(this.getOffsetUnitX()){case A:y.x=this.offsetX*l.x;break;case q:y.x=this.offsetX*u.x/h.x}switch(this.getOffsetUnitY()){case A:y.y=this.offsetY*l.y;break;case q:y.y=this.offsetY*u.y/h.y}const g=this.scale.set(1,1,1),w=this.currentTranslation,x=this.currentRotation,_=this.currentScale;switch(e.getModelViewMatrix().get().get(w,x,_),this.getScaleModeX()){case j:g.x=_.x;break;case A:g.x=d.x;break;case k:break;case q:g.x=u.x/h.x}switch(this.getScaleModeY()){case j:g.y=_.y;break;case A:g.y=d.y;break;case k:break;case q:g.y=u.y/h.y}return this.getScaleModeX()===k?this.getScaleModeY()===k?d.x>d.y?(g.x=d.x,g.y=g.x):(g.y=d.y,g.x=g.y):g.x=g.y:this.getScaleModeY()===k&&(g.y=g.x),f.assign(p.add(y)),s.set(w,x),s.translate(p),s.scale(g),s}});const H=W;d().set("x_ite/Components/Layout/Layout",H);const K=H,Z=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Components/Grouping/X3DGroupingNode");var Q=i.n(Z);const J=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Rendering/TraverseType");var $=i.n(J);function tt(t){Q().call(this,t),this.addType(z().LayoutGroup),this.viewportNode=null,this.layoutNode=null,this.matrix=new(u()),this.modelViewMatrix=new(u()),this.screenMatrix=new(u())}tt.prototype=Object.assign(Object.create(Q().prototype),{constructor:tt,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(X())([new(S())(z().inputOutput,"metadata",new(x().SFNode)),new(S())(z().inputOutput,"layout",new(x().SFNode)),new(S())(z().inputOutput,"viewport",new(x().SFNode)),new(S())(z().inputOutput,"visible",new(x().SFBool)(!0)),new(S())(z().inputOutput,"bboxDisplay",new(x().SFBool)),new(S())(z().initializeOnly,"bboxSize",new(x().SFVec3f)(-1,-1,-1)),new(S())(z().initializeOnly,"bboxCenter",new(x().SFVec3f)),new(S())(z().inputOnly,"addChildren",new(x().MFNode)),new(S())(z().inputOnly,"removeChildren",new(x().MFNode)),new(S())(z().inputOutput,"children",new(x().MFNode))]),getTypeName:function(){return"LayoutGroup"},getComponentName:function(){return"Layout"},getContainerField:function(){return"children"},getSpecificationRange:function(){return["3.2","Infinity"]},initialize:function(){Q().prototype.initialize.call(this),this._viewport.addInterest("set_viewport__",this),this._layout.addInterest("set_layout__",this),this.set_viewport__(),this.set_layout__()},set_viewport__:function(){this.viewportNode=I()(z().X3DViewportNode,this._viewport)},set_layout__:function(){this.layoutNode=I()(z().X3DLayoutNode,this._layout)},getBBox:function(t,e){return Q().prototype.getBBox.call(this,t,e).multRight(this.getMatrix())},getMatrix:function(){return this.layoutNode?this.matrix.assign(this.modelViewMatrix).inverse().multLeft(this.screenMatrix):this.matrix.identity()},getLayout:function(){return this.layoutNode},traverse:function(t,e){if(t!==$().COLLISION){if(this.viewportNode&&this.viewportNode.push(),this.layoutNode){const i=e.getModelViewMatrix();this.modelViewMatrix.assign(i.get()),this.screenMatrix.assign(this.layoutNode.transform(t,e)),i.pushMatrix(this.screenMatrix),e.getLayouts().push(this.layoutNode),Q().prototype.traverse.call(this,t,e),e.getLayouts().pop(),i.pop()}else Q().prototype.traverse.call(this,t,e);this.viewportNode&&this.viewportNode.pop()}}});const et=tt;d().set("x_ite/Components/Layout/LayoutGroup",et);const it=et,nt=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Components/Layering/X3DLayerNode");var st=i.n(nt);const ot=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Components/Navigation/OrthoViewpoint");var rt=i.n(ot);function at(t){st().call(this,t,new(rt())(t),new it(t)),this.addType(z().LayoutLayer)}at.prototype=Object.assign(Object.create(st().prototype),{constructor:at,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(X())([new(S())(z().inputOutput,"metadata",new(x().SFNode)),new(S())(z().inputOutput,"pickable",new(x().SFBool)(!0)),new(S())(z().inputOutput,"objectType",new(x().MFString)("ALL")),new(S())(z().inputOutput,"visible",new(x().SFBool)(!0)),new(S())(z().inputOutput,"layout",new(x().SFNode)),new(S())(z().inputOutput,"viewport",new(x().SFNode)),new(S())(z().inputOnly,"addChildren",new(x().MFNode)),new(S())(z().inputOnly,"removeChildren",new(x().MFNode)),new(S())(z().inputOutput,"children",new(x().MFNode))]),getTypeName:function(){return"LayoutLayer"},getComponentName:function(){return"Layout"},getContainerField:function(){return"layers"},getSpecificationRange:function(){return["3.2","Infinity"]},initialize:function(){st().prototype.initialize.call(this),this._layout.addFieldInterest(this.getGroup()._layout),this._addChildren.addFieldInterest(this.getGroup()._addChildren),this._removeChildren.addFieldInterest(this.getGroup()._removeChildren),this._children.addFieldInterest(this.getGroup()._children),this.getGroup()._layout=this._layout,this.getGroup()._children=this._children,this.getGroup().setPrivate(!0),this.getGroup().setup()}});const ut=at;d().set("x_ite/Components/Layout/LayoutLayer",ut);const ht=ut,ct=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Components/Text/X3DFontStyleNode");var lt=i.n(ct);const dt=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Browser/Text/X3DTextGeometry");var ft=i.n(dt);const pt=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Browser/Text/TextAlignment");var yt=i.n(pt);const gt=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Components/Texturing/PixelTexture");var wt=i.n(gt);const xt=window[Symbol.for("X_ITE.X3D-8.7.9")].require("x_ite/Components/Rendering/X3DGeometryNode");var _t=i.n(xt);const St=window[Symbol.for("X_ITE.X3D-8.7.9")].require("standard/Math/Geometry/Box3");var mt=i.n(St);const Xt=window[Symbol.for("X_ITE.X3D-8.7.9")].require("standard/Math/Algorithm");var Mt=i.n(Xt),Tt=i(355);function bt(t,e){ft().call(this,t,e),t.setTransparent(!0),this.texCoordArray=_t().createArray(),this.textureNode=new(wt())(t.getExecutionContext()),this.canvas=Tt("<canvas></canvas>"),this.context=this.canvas[0].getContext("2d",{willReadFrequently:!0}),this.matrix=new(u()),this.textureNode._textureProperties=e.getBrowser().getScreenTextureProperties(),this.textureNode.setup()}bt.prototype=Object.assign(Object.create(ft().prototype),{constructor:bt,modelViewMatrix:new(u()),isTransparent:function(){return!0},getMatrix:function(){return this.matrix},update:function(){const t=new(r())(0,0,0),e=new(r())(1,1,0);return function(){ft().prototype.update.call(this);const i=this.getFontStyle(),n=this.getText();switch(n._textBounds.x=Math.ceil(n._textBounds.x)+1,n._textBounds.y=Math.ceil(n._textBounds.y)+1,this.getBBox().getExtents(t,e),t.x-=1,t.y-=1,i.getMajorAlignment()){case yt().BEGIN:case yt().FIRST:t.x=Math.floor(t.x),e.x=t.x+n._textBounds.x;break;case yt().MIDDLE:t.x=Math.round(t.x),e.x=t.x+n._textBounds.x;break;case yt().END:e.x=Math.ceil(e.x),t.x=e.x-n._textBounds.x}switch(i.getMinorAlignment()){case yt().BEGIN:case yt().FIRST:e.y=Math.ceil(e.y),t.y=e.y-n._textBounds.y;break;case yt().MIDDLE:e.y=Math.round(e.y),t.y=e.y-n._textBounds.y;break;case yt().END:t.y=Math.floor(t.y),e.y=t.y+n._textBounds.y}n._origin.x=t.x,n._origin.y=e.y,this.getBBox().setExtents(t,e)}}(),build:function(){const t=new(r())(0,0,0),e=new(r())(1,1,0);return function(){const i=this.getFontStyle(),n=i.getFont();if(!n)return;const s=this.getText(),o=this.getGlyphs(),r=this.getMinorAlignment(),a=this.getTranslations(),u=this.getCharSpacings(),h=i.getScale(),c=h/n.unitsPerEm,l=this.texCoordArray,d=s.getNormals(),f=s.getVertices(),p=this.canvas[0],y=this.context;l.length=0,s.getMultiTexCoords().push(l),this.getBBox().getExtents(t,e),d.push(0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1),f.push(t.x,t.y,0,1,e.x,t.y,0,1,e.x,e.y,0,1,t.x,t.y,0,1,e.x,e.y,0,1,t.x,e.y,0,1);const g=s._textBounds.x,w=s._textBounds.y;p.width=Mt().nextPowerOfTwo(g),p.height=Mt().nextPowerOfTwo(w);const x=g/p.width,_=1-w/p.height;if(l.push(0,_,0,1,x,_,0,1,x,1,0,1,0,_,0,1,x,1,0,1,0,1,0,1),y.fillStyle="rgba(255,255,255,0)",y.fillRect(0,0,p.width,p.height),y.fillStyle="rgba(255,255,255,1)",y.save(),y.translate(0,p.height),y.scale(1,-1),i._horizontal.getValue())for(let i=0,s=o.length;i<s;++i){const s=o[i],l=u[i],d=a[i];let f=0;for(let i=0,o=s.length;i<o;++i){const o=s[i],a=r.x+d.x+f+i*l-t.x,u=r.y+d.y-e.y;this.drawGlyph(y,n,o,a,u,h);let p=0;i+1<s.length&&(p=n.getKerningValue(o,s[i+1])),f+=(o.advanceWidth+p)*c}}else{const u=i._leftToRight.getValue(),c=i._topToBottom.getValue(),l=u?0:s._string.length-1,d=u?s._string.length:-1,f=u?1:-1;for(let i=l,s=0;i!==d;i+=f){const u=o[i],l=u.length,d=c?l:-1,f=c?1:-1;for(let i=c?0:l-1;i!==d;i+=f,++s){const o=a[s],c=r.x+o.x-t.x,l=r.y+o.y-e.y;this.drawGlyph(y,n,u[i],c,l,h)}}}y.restore();const S=y.getImageData(0,0,p.width,p.height);S?this.textureNode.setTexture(p.width,p.height,!0,new Uint8Array(S.data.buffer),!1):this.textureNode.clear()}}(),drawGlyph:function(t,e,i,n,s,o){const r=i.getPath(n,-s,o),a=r.commands;t.beginPath();for(let e=0,i=a.length;e<i;++e){const i=a[e];switch(i.type){case"M":t.moveTo(i.x,i.y);continue;case"Z":t.closePath();continue;case"L":t.lineTo(i.x,i.y);continue;case"Q":t.quadraticCurveTo(i.x1,i.y1,i.x,i.y);continue;case"C":t.bezierCurveTo(i.x1,i.y1,i.x2,i.y2,i.x,i.y);continue}}r.fill&&t.fill(),r.stroke&&(t.lineWidth=r.strokeWidth,t.stroke())},getGlyphExtents:function(t,e,i,n,s){const o=t.unitsPerEm;n.set((e.xMin||0)/o,(e.yMin||0)/o,0),s.set((e.xMax||0)/o,(e.yMax||0)/o,0)},traverse:function(){const t=new(mt());return function(e,i){this.getBrowser().getScreenScaleMatrix(i,this.matrix),t.assign(this.getBBox()).multRight(this.matrix),this.getText().setBBox(t)}}(),display:function(t,e){u().prototype.multLeft.call(e.modelViewMatrix,this.matrix),e.textureNode=this.textureNode},transformLine:function(){const t=new(u());return function(e){return e.multLineMatrix(t.assign(this.matrix).inverse())}}(),transformMatrix:function(t){return t.multLeft(this.matrix)}});const zt=bt;d().set("x_ite/Browser/Layout/ScreenText",zt);const Nt=zt;function Ot(t){lt().call(this,t),this.addType(z().ScreenFontStyle)}Ot.prototype=Object.assign(Object.create(lt().prototype),{constructor:Ot,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(X())([new(S())(z().inputOutput,"metadata",new(x().SFNode)),new(S())(z().inputOutput,"language",new(x().SFString)),new(S())(z().inputOutput,"family",new(x().MFString)("SERIF")),new(S())(z().inputOutput,"style",new(x().SFString)("PLAIN")),new(S())(z().inputOutput,"pointSize",new(x().SFFloat)(12)),new(S())(z().inputOutput,"spacing",new(x().SFFloat)(1)),new(S())(z().inputOutput,"horizontal",new(x().SFBool)(!0)),new(S())(z().inputOutput,"leftToRight",new(x().SFBool)(!0)),new(S())(z().inputOutput,"topToBottom",new(x().SFBool)(!0)),new(S())(z().inputOutput,"justify",new(x().MFString)("BEGIN"))]),getTypeName:function(){return"ScreenFontStyle"},getComponentName:function(){return"Layout"},getContainerField:function(){return"fontStyle"},getSpecificationRange:function(){return["3.2","Infinity"]},initialize:function(){lt().prototype.initialize.call(this),this.getBrowser().getRenderingProperties()._ContentScale.addInterest("addNodeEvent",this)},getTextGeometry:function(t){return new Nt(t,this)},getScale:function(){return this._pointSize.getValue()*this.getBrowser().getPixelPerPoint()}});const vt=Ot;d().set("x_ite/Components/Layout/ScreenFontStyle",vt);const Ft=vt;function It(t){Q().call(this,t),this.addType(z().ScreenGroup),this.matrix=new(u())}It.prototype=Object.assign(Object.create(Q().prototype),{constructor:It,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(X())([new(S())(z().inputOutput,"metadata",new(x().SFNode)),new(S())(z().inputOutput,"visible",new(x().SFBool)(!0)),new(S())(z().inputOutput,"bboxDisplay",new(x().SFBool)),new(S())(z().initializeOnly,"bboxSize",new(x().SFVec3f)(-1,-1,-1)),new(S())(z().initializeOnly,"bboxCenter",new(x().SFVec3f)),new(S())(z().inputOnly,"addChildren",new(x().MFNode)),new(S())(z().inputOnly,"removeChildren",new(x().MFNode)),new(S())(z().inputOutput,"children",new(x().MFNode))]),getTypeName:function(){return"ScreenGroup"},getComponentName:function(){return"Layout"},getContainerField:function(){return"children"},getSpecificationRange:function(){return["3.2","Infinity"]},getBBox:function(t,e){return this.getSubBBox(t,e).multRight(this.matrix)},getMatrix:function(){return this.matrix},traverse:function(t,e){switch(t){case $().CAMERA:case $().PICKING:case $().SHADOW:break;default:this.getBrowser().getScreenScaleMatrix(e,this.matrix)}const i=e.getModelViewMatrix();i.push(),i.multLeft(this.matrix),Q().prototype.traverse.call(this,t,e),i.pop()}});const Ct=It;d().set("x_ite/Components/Layout/ScreenGroup",Ct);const Et=Ct;e().addComponent({name:"Layout",types:{Layout:K,LayoutGroup:it,LayoutLayer:ht,ScreenFontStyle:Ft,ScreenGroup:Et},abstractTypes:{X3DLayoutNode:v},browserContext:g});const Lt=void 0;d().set("assets/components/Layout",Lt)})()})();
|