x_ite 8.3.1 → 8.3.3
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/.github/workflows/pages-deploy.yml +1 -1
- package/.vscode/settings.json +2 -1
- package/build/bin/tests.pl +2 -0
- package/dist/LICENSE.md +4 -4
- 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 +61 -74
- 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 +24 -24
- package/dist/assets/components/NURBS.min.js +1 -1
- package/dist/assets/components/ParticleSystems.js +23 -23
- package/dist/assets/components/ParticleSystems.min.js +1 -1
- package/dist/assets/components/Picking.js +19 -19
- package/dist/assets/components/Picking.min.js +1 -1
- package/dist/assets/components/RigidBodyPhysics.js +17 -17
- package/dist/assets/components/RigidBodyPhysics.min.js +1 -1
- package/dist/assets/components/Scripting.js +28 -28
- 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/{ProjectiveTextureMapping.js → TextureProjector.js} +39 -39
- package/dist/assets/components/TextureProjector.min.js +1 -0
- package/dist/assets/components/Texturing3D.js +46 -46
- 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 +1904 -1570
- package/dist/x_ite.min.js +1 -1
- package/dist/x_ite.zip +0 -0
- package/docs/Gemfile +1 -4
- package/docs/_config.yml +3 -2
- package/docs/_posts/custom-shaders.md +1 -1
- package/docs/_posts/dom-integration.md +52 -25
- package/docs/_posts/getting-started.md +148 -442
- package/docs/_posts/reference/field-services-and-objects.md +2 -34
- package/docs/_posts/reference/scene-services.md +13 -2
- package/docs/_posts/tutorials/basic-nodes.md +2 -2
- package/docs/_posts/tutorials/building-a-x3d-world.md +20 -4
- package/docs/_posts/tutorials/building-primitive-shapes.md +4 -4
- package/docs/_posts/tutorials/creating-new-node-types.md +22 -0
- package/docs/_posts/tutorials/hello-world.md +6 -6
- package/docs/_posts/tutorials/improving-performance.md +2 -2
- package/docs/_posts/tutorials/writing-program-scripts-with-ecmascript.md +2 -2
- package/docs/_posts/what's-new.md +21 -3
- package/docs/_tabs/playground.html +110 -57
- package/docs/assets/css/style.scss +25 -1
- package/package.json +2 -2
- package/src/assets/components/{ProjectiveTextureMapping.js → TextureProjector.js} +5 -5
- package/src/examples.js +1 -1
- package/src/tests.js +5 -5
- package/src/x_ite/Base/X3DArrayField.js +3 -0
- package/src/x_ite/Base/X3DBaseNode.js +4 -0
- package/src/x_ite/Base/X3DInfoArray.js +28 -24
- package/src/x_ite/Base/X3DObject.js +29 -20
- package/src/x_ite/Base/X3DObjectArrayField.js +27 -26
- package/src/x_ite/Base/X3DTypedArrayField.js +34 -32
- package/src/x_ite/Browser/Core/ContextMenu.js +5 -7
- package/src/x_ite/Browser/DOMIntegration.js +62 -54
- package/src/x_ite/Browser/VERSION.js +1 -1
- package/src/x_ite/Browser/X3DBrowser.js +44 -29
- package/src/x_ite/Browser/X3DBrowserContext.js +3 -0
- package/src/x_ite/Components/Core/X3DNode.js +196 -187
- package/src/x_ite/Components/Core/X3DPrototypeInstance.js +114 -91
- package/src/x_ite/Components/Grouping/X3DTransformMatrix3DNode.js +18 -43
- package/src/x_ite/Components/HAnim/HAnimHumanoid.js +24 -25
- package/src/x_ite/Components/HAnim/HAnimJoint.js +19 -31
- package/src/x_ite/Components/Networking/Inline.js +21 -2
- package/src/x_ite/Components/Sound/X3DSoundProcessingNode.js +14 -1
- package/src/x_ite/Components/Sound/X3DSoundSourceNode.js +0 -1
- package/src/x_ite/Components/{ProjectiveTextureMapping → TextureProjector}/TextureProjector.js +1 -1
- package/src/x_ite/Components/{ProjectiveTextureMapping → TextureProjector}/TextureProjectorParallel.js +1 -1
- package/src/x_ite/Components/{ProjectiveTextureMapping → TextureProjector}/X3DTextureProjectorNode.js +0 -0
- package/src/x_ite/Components/Time/TimeSensor.js +5 -0
- package/src/x_ite/Components/Time/X3DTimeDependentNode.js +1 -0
- package/src/x_ite/Configuration/ComponentInfo.js +20 -23
- package/src/x_ite/Configuration/ProfileInfo.js +6 -6
- package/src/x_ite/Configuration/SupportedComponents.js +22 -20
- package/src/x_ite/Configuration/SupportedNodes.js +1 -5
- package/src/x_ite/Configuration/SupportedProfiles.js +1 -1
- package/src/x_ite/Configuration/UnitInfo.js +24 -27
- package/src/x_ite/Execution/X3DExecutionContext.js +28 -59
- package/src/x_ite/Execution/X3DExportedNode.js +23 -28
- package/src/x_ite/Execution/X3DImportedNode.js +63 -67
- package/src/x_ite/Execution/X3DScene.js +98 -117
- package/src/x_ite/Fields/ArrayFields.js +57 -55
- package/src/x_ite/Fields/SFBool.js +6 -6
- package/src/x_ite/Fields/SFColor.js +10 -12
- package/src/x_ite/Fields/SFDouble.js +7 -10
- package/src/x_ite/Fields/SFFloat.js +7 -10
- package/src/x_ite/Fields/SFImage.js +33 -8
- package/src/x_ite/Fields/SFInt32.js +6 -6
- package/src/x_ite/Fields/SFMatrixPrototypeTemplate.js +13 -13
- package/src/x_ite/Fields/SFNode.js +42 -19
- package/src/x_ite/Fields/SFRotation.js +13 -13
- package/src/x_ite/Fields/SFString.js +6 -7
- package/src/x_ite/Fields/SFTime.js +6 -6
- package/src/x_ite/Fields/SFVecPrototypeTemplate.js +10 -10
- package/src/x_ite/InputOutput/FileLoader.js +1 -1
- package/src/x_ite/InputOutput/Generator.js +117 -17
- package/src/x_ite/Parser/VRMLParser.js +24 -27
- package/src/x_ite/Parser/X3DParser.js +0 -4
- package/src/x_ite/Parser/XMLParser.js +152 -50
- package/src/x_ite/Prototype/X3DExternProtoDeclaration.js +59 -64
- package/src/x_ite/Prototype/X3DProtoDeclaration.js +86 -93
- package/src/x_ite/Rendering/X3DRenderObject.js +6 -1
- package/src/x_ite/Routing/X3DRoute.js +37 -40
- package/src/x_ite.html +3 -3
- package/webpack.config.js +2 -2
- package/x_ite.min.html +1 -1
- package/dist/assets/components/ProjectiveTextureMapping.min.js +0 -1
- package/docs/Gemfile.lock +0 -116
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* X_ITE v8.3.
|
|
1
|
+
/* X_ITE v8.3.3 */(() => { // webpackBootstrap
|
|
2
2
|
/******/ "use strict";
|
|
3
3
|
/******/ // The require scope
|
|
4
4
|
/******/ var __webpack_require__ = {};
|
|
@@ -39,39 +39,39 @@ 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.3.
|
|
42
|
+
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
45
|
+
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .require ("x_ite/Fields");
|
|
46
46
|
var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
|
|
47
47
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
|
|
48
|
-
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.
|
|
48
|
+
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .require ("x_ite/Base/X3DFieldDefinition");
|
|
49
49
|
var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
|
|
50
50
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
|
|
51
|
-
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.
|
|
51
|
+
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .require ("x_ite/Base/FieldDefinitionArray");
|
|
52
52
|
var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
|
|
53
53
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DChildNode\")"
|
|
54
|
-
const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.
|
|
54
|
+
const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .require ("x_ite/Components/Core/X3DChildNode");
|
|
55
55
|
var X3DChildNode_default = /*#__PURE__*/__webpack_require__.n(X3DChildNode_namespaceObject);
|
|
56
56
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
|
|
57
|
-
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.
|
|
57
|
+
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .require ("x_ite/Base/X3DConstants");
|
|
58
58
|
var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
|
|
59
59
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DCast\")"
|
|
60
|
-
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.
|
|
60
|
+
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .require ("x_ite/Base/X3DCast");
|
|
61
61
|
var X3DCast_default = /*#__PURE__*/__webpack_require__.n(X3DCast_namespaceObject);
|
|
62
62
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector3\")"
|
|
63
|
-
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.
|
|
63
|
+
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .require ("standard/Math/Numbers/Vector3");
|
|
64
64
|
var Vector3_default = /*#__PURE__*/__webpack_require__.n(Vector3_namespaceObject);
|
|
65
65
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Rotation4\")"
|
|
66
|
-
const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.
|
|
66
|
+
const Rotation4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .require ("standard/Math/Numbers/Rotation4");
|
|
67
67
|
var Rotation4_default = /*#__PURE__*/__webpack_require__.n(Rotation4_namespaceObject);
|
|
68
68
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Matrix4\")"
|
|
69
|
-
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.
|
|
69
|
+
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .require ("standard/Math/Numbers/Matrix4");
|
|
70
70
|
var Matrix4_default = /*#__PURE__*/__webpack_require__.n(Matrix4_namespaceObject);
|
|
71
71
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
|
|
72
|
-
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.
|
|
72
|
+
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .require ("x_ite/Namespace");
|
|
73
73
|
var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
|
|
74
|
-
;// CONCATENATED MODULE: ./src/x_ite/Components/
|
|
74
|
+
;// CONCATENATED MODULE: ./src/x_ite/Components/TextureProjector/X3DTextureProjectorNode.js
|
|
75
75
|
/*******************************************************************************
|
|
76
76
|
*
|
|
77
77
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -281,15 +281,15 @@ X3DTextureProjectorNode .prototype = Object .assign (Object .create ((X3DChildNo
|
|
|
281
281
|
const __default__ = X3DTextureProjectorNode;
|
|
282
282
|
;
|
|
283
283
|
|
|
284
|
-
Namespace_default().set ("x_ite/Components/
|
|
285
|
-
/* harmony default export */ const
|
|
284
|
+
Namespace_default().set ("x_ite/Components/TextureProjector/X3DTextureProjectorNode", __default__);
|
|
285
|
+
/* harmony default export */ const TextureProjector_X3DTextureProjectorNode = (__default__);
|
|
286
286
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Geometry/Camera\")"
|
|
287
|
-
const Camera_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.
|
|
287
|
+
const Camera_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .require ("standard/Math/Geometry/Camera");
|
|
288
288
|
var Camera_default = /*#__PURE__*/__webpack_require__.n(Camera_namespaceObject);
|
|
289
289
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Utility/ObjectCache\")"
|
|
290
|
-
const ObjectCache_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.
|
|
290
|
+
const ObjectCache_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .require ("standard/Utility/ObjectCache");
|
|
291
291
|
var ObjectCache_default = /*#__PURE__*/__webpack_require__.n(ObjectCache_namespaceObject);
|
|
292
|
-
;// CONCATENATED MODULE: ./src/x_ite/Components/
|
|
292
|
+
;// CONCATENATED MODULE: ./src/x_ite/Components/TextureProjector/TextureProjector.js
|
|
293
293
|
/*******************************************************************************
|
|
294
294
|
*
|
|
295
295
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -444,14 +444,14 @@ TextureProjectorContainer .prototype =
|
|
|
444
444
|
|
|
445
445
|
function TextureProjector (executionContext)
|
|
446
446
|
{
|
|
447
|
-
|
|
447
|
+
TextureProjector_X3DTextureProjectorNode.call (this, executionContext);
|
|
448
448
|
|
|
449
449
|
this .addType ((X3DConstants_default()).TextureProjector);
|
|
450
450
|
|
|
451
451
|
this ._fieldOfView .setUnit ("angle");
|
|
452
452
|
}
|
|
453
453
|
|
|
454
|
-
TextureProjector .prototype = Object .assign (Object .create (
|
|
454
|
+
TextureProjector .prototype = Object .assign (Object .create (TextureProjector_X3DTextureProjectorNode.prototype),
|
|
455
455
|
{
|
|
456
456
|
constructor: TextureProjector,
|
|
457
457
|
[Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
|
|
@@ -474,7 +474,7 @@ TextureProjector .prototype = Object .assign (Object .create (ProjectiveTextureM
|
|
|
474
474
|
},
|
|
475
475
|
getComponentName: function ()
|
|
476
476
|
{
|
|
477
|
-
return "
|
|
477
|
+
return "TextureProjector";
|
|
478
478
|
},
|
|
479
479
|
getContainerField: function ()
|
|
480
480
|
{
|
|
@@ -482,7 +482,7 @@ TextureProjector .prototype = Object .assign (Object .create (ProjectiveTextureM
|
|
|
482
482
|
},
|
|
483
483
|
initialize: function ()
|
|
484
484
|
{
|
|
485
|
-
|
|
485
|
+
TextureProjector_X3DTextureProjectorNode.prototype.initialize.call (this);
|
|
486
486
|
},
|
|
487
487
|
getFieldOfView: function ()
|
|
488
488
|
{
|
|
@@ -499,9 +499,9 @@ TextureProjector .prototype = Object .assign (Object .create (ProjectiveTextureM
|
|
|
499
499
|
const TextureProjector_default_ = TextureProjector;
|
|
500
500
|
;
|
|
501
501
|
|
|
502
|
-
Namespace_default().set ("x_ite/Components/
|
|
503
|
-
/* harmony default export */ const
|
|
504
|
-
;// CONCATENATED MODULE: ./src/x_ite/Components/
|
|
502
|
+
Namespace_default().set ("x_ite/Components/TextureProjector/TextureProjector", TextureProjector_default_);
|
|
503
|
+
/* harmony default export */ const TextureProjector_TextureProjector = (TextureProjector_default_);
|
|
504
|
+
;// CONCATENATED MODULE: ./src/x_ite/Components/TextureProjector/TextureProjectorParallel.js
|
|
505
505
|
/*******************************************************************************
|
|
506
506
|
*
|
|
507
507
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -677,14 +677,14 @@ TextureProjectorParallelContainer .prototype =
|
|
|
677
677
|
|
|
678
678
|
function TextureProjectorParallel (executionContext)
|
|
679
679
|
{
|
|
680
|
-
|
|
680
|
+
TextureProjector_X3DTextureProjectorNode.call (this, executionContext);
|
|
681
681
|
|
|
682
682
|
this .addType ((X3DConstants_default()).TextureProjectorParallel);
|
|
683
683
|
|
|
684
684
|
this ._fieldOfView .setUnit ("length");
|
|
685
685
|
}
|
|
686
686
|
|
|
687
|
-
TextureProjectorParallel .prototype = Object .assign (Object .create (
|
|
687
|
+
TextureProjectorParallel .prototype = Object .assign (Object .create (TextureProjector_X3DTextureProjectorNode.prototype),
|
|
688
688
|
{
|
|
689
689
|
constructor: TextureProjectorParallel,
|
|
690
690
|
[Symbol .for ("X_ITE.X3DBaseNode.fieldDefinitions")]: new (FieldDefinitionArray_default()) ([
|
|
@@ -707,7 +707,7 @@ TextureProjectorParallel .prototype = Object .assign (Object .create (Projective
|
|
|
707
707
|
},
|
|
708
708
|
getComponentName: function ()
|
|
709
709
|
{
|
|
710
|
-
return "
|
|
710
|
+
return "TextureProjector";
|
|
711
711
|
},
|
|
712
712
|
getContainerField: function ()
|
|
713
713
|
{
|
|
@@ -715,7 +715,7 @@ TextureProjectorParallel .prototype = Object .assign (Object .create (Projective
|
|
|
715
715
|
},
|
|
716
716
|
initialize: function ()
|
|
717
717
|
{
|
|
718
|
-
|
|
718
|
+
TextureProjector_X3DTextureProjectorNode.prototype.initialize.call (this);
|
|
719
719
|
|
|
720
720
|
this ._fieldOfView .addInterest ("set_fieldOfView___", this);
|
|
721
721
|
|
|
@@ -766,9 +766,9 @@ TextureProjectorParallel .prototype = Object .assign (Object .create (Projective
|
|
|
766
766
|
const TextureProjectorParallel_default_ = TextureProjectorParallel;
|
|
767
767
|
;
|
|
768
768
|
|
|
769
|
-
Namespace_default().set ("x_ite/Components/
|
|
770
|
-
/* harmony default export */ const
|
|
771
|
-
;// CONCATENATED MODULE: ./src/assets/components/
|
|
769
|
+
Namespace_default().set ("x_ite/Components/TextureProjector/TextureProjectorParallel", TextureProjectorParallel_default_);
|
|
770
|
+
/* harmony default export */ const TextureProjector_TextureProjectorParallel = (TextureProjectorParallel_default_);
|
|
771
|
+
;// CONCATENATED MODULE: ./src/assets/components/TextureProjector.js
|
|
772
772
|
/*******************************************************************************
|
|
773
773
|
*
|
|
774
774
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
@@ -822,22 +822,22 @@ Namespace_default().set ("x_ite/Components/ProjectiveTextureMapping/TextureProje
|
|
|
822
822
|
|
|
823
823
|
|
|
824
824
|
Components_default().addComponent ({
|
|
825
|
-
name: "
|
|
825
|
+
name: "TextureProjector",
|
|
826
826
|
types:
|
|
827
827
|
{
|
|
828
|
-
TextureProjector:
|
|
829
|
-
TextureProjectorParallel:
|
|
828
|
+
TextureProjector: TextureProjector_TextureProjector,
|
|
829
|
+
TextureProjectorParallel: TextureProjector_TextureProjectorParallel,
|
|
830
830
|
},
|
|
831
831
|
abstractTypes:
|
|
832
832
|
{
|
|
833
|
-
X3DTextureProjectorNode:
|
|
833
|
+
X3DTextureProjectorNode: TextureProjector_X3DTextureProjectorNode,
|
|
834
834
|
},
|
|
835
835
|
});
|
|
836
836
|
|
|
837
|
-
const
|
|
837
|
+
const components_TextureProjector_default_ = undefined;
|
|
838
838
|
;
|
|
839
839
|
|
|
840
|
-
Namespace_default().set ("assets/components/
|
|
841
|
-
/* harmony default export */ const
|
|
840
|
+
Namespace_default().set ("assets/components/TextureProjector", components_TextureProjector_default_);
|
|
841
|
+
/* harmony default export */ const components_TextureProjector = ((/* unused pure expression or super */ null && (components_TextureProjector_default_)));
|
|
842
842
|
/******/ })()
|
|
843
843
|
;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/* X_ITE v8.3.3 */(()=>{"use strict";var t={n:e=>{var i=e&&e.__esModule?()=>e.default:()=>e;return t.d(i,{a:i}),i},d:(e,i)=>{for(var r in i)t.o(i,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:i[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)};const e=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Components");var i=t.n(e);const r=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Fields");var o=t.n(r);const n=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Base/X3DFieldDefinition");var s=t.n(n);const a=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Base/FieldDefinitionArray");var u=t.n(a);const c=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Components/Core/X3DChildNode");var h=t.n(c);const l=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Base/X3DConstants");var x=t.n(l);const p=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Base/X3DCast");var d=t.n(p);const g=window[Symbol.for("X_ITE.X3D-8.3.3")].require("standard/Math/Numbers/Vector3");var w=t.n(g);const m=window[Symbol.for("X_ITE.X3D-8.3.3")].require("standard/Math/Numbers/Rotation4");var f=t.n(m);const _=window[Symbol.for("X_ITE.X3D-8.3.3")].require("standard/Math/Numbers/Matrix4");var T=t.n(_);const M=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Namespace");var j,v,y,V,S,b=t.n(M);function X(t){h().call(this,t),this.addType(x().X3DTextureProjectorNode),this._location.setUnit("length"),this._farDistance.setUnit("length"),this._location.setUnit("length")}X.prototype=Object.assign(Object.create(h().prototype),{constructor:X,initialize:function(){h().prototype.initialize.call(this),this._on.addInterest("set_on__",this),this._texture.addInterest("set_texture__",this),this.set_texture__()},getGlobal:function(){return this._global.getValue()},getLocation:function(){return this._location.getValue()},getDirection:function(){return this._direction.getValue()},getNearDistance:function(){return this._nearDistance.getValue()},getFarDistance:function(){return this._farDistance.getValue()},getTexture:function(){return this.textureNode},getBiasMatrix:(S=new(T())(.5,0,0,0,0,.5,0,0,0,0,.5,0,.5,.5,.5,1),function(){return S}),straightenHorizon:(j=new(w())(0,0,0),v=new(w())(0,0,0),y=new(w())(0,0,0),V=new(f())(0,0,1,0),function(t){t.multVecRot(j.assign(w().xAxis).negate()),t.multVecRot(v.assign(w().zAxis)),y.assign(this._upVector.getValue()).normalize();var e=v.cross(y);return Math.abs(v.dot(y))>=1||Math.abs(e.dot(j))>=1?t:(V.setFromToVec(j,e),t.multRight(V))}),set_on__:function(){this._on.getValue()&&this.textureNode?(delete this.push,delete this.pop):(this.push=Function.prototype,this.pop=Function.prototype)},set_texture__:function(){this.textureNode&&this.textureNode.removeInterest("set_aspectRatio__",this),this.textureNode=d()(x().X3DTexture2DNode,this._texture),this.textureNode&&this.textureNode.addInterest("set_aspectRatio__",this),this.set_aspectRatio__(),this.set_on__()},set_aspectRatio__:function(){this.textureNode?this._aspectRatio=this.textureNode.getWidth()/this.textureNode.getHeight():this._aspectRatio=0},push:function(t){var e=this.getTextureProjectors().pop();e.set(this,t.getModelViewMatrix().get()),this._global.getValue()?(t.getGlobalObjects().push(e),t.getTextureProjectors().push(e)):(t.getLocalObjects().push(e),t.getTextureProjectors().push(e),++t.getLocalObjectsCount()[2])},pop:function(t){this._global.getValue()||(t.getLocalObjects().pop(),--t.getLocalObjectsCount()[2])}});const O=X;b().set("x_ite/Components/TextureProjector/X3DTextureProjectorNode",O);const P=O,F=window[Symbol.for("X_ITE.X3D-8.3.3")].require("standard/Math/Geometry/Camera");var D=t.n(F);const N=window[Symbol.for("X_ITE.X3D-8.3.3")].require("standard/Utility/ObjectCache");var I=t.n(N),R=I()(E);function E(){this.projectionMatrix=new(T()),this.modelViewMatrix=new(T()),this.modelMatrix=new(T()),this.invTextureSpaceMatrix=new(T()),this.invTextureSpaceProjectionMatrix=new(T()),this.location=new(w())(0,0,0),this.locationArray=new Float32Array(3),this.direction=new(w())(0,0,0),this.rotation=new(f()),this.projectiveTextureMatrix=new(T()),this.projectiveTextureMatrixArray=new Float32Array(16)}function z(t){P.call(this,t),this.addType(x().TextureProjector),this._fieldOfView.setUnit("angle")}E.prototype={constructor:E,set:function(t,e){this.browser=t.getBrowser(),this.textureProjectorNode=t,this.modelViewMatrix.assign(e)},setGroup:function(t){this.groupNode=t},getModelViewMatrix:function(){return this.modelViewMatrix},setGlobalVariables:function(t){var e=this.textureProjectorNode,i=t.getCameraSpaceMatrix().get(),r=this.modelMatrix.assign(this.modelViewMatrix).multRight(i),o=this.invTextureSpaceMatrix.assign(e.getGlobal()?r:T().Identity);this.rotation.setFromToVec(w().zAxis,this.direction.assign(e.getDirection()).negate()),e.straightenHorizon(this.rotation),o.translate(e.getLocation()),o.rotate(this.rotation),o.inverse();var n=e.getTexture().getWidth(),s=e.getTexture().getHeight(),a=e.getNearDistance(),u=e.getFarDistance(),c=e.getFieldOfView();D().perspective(c,a,u,n,s,this.projectionMatrix),e.getGlobal()||o.multLeft(r.inverse()),this.invTextureSpaceProjectionMatrix.assign(o).multRight(this.projectionMatrix).multRight(e.getBiasMatrix()),this.projectiveTextureMatrix.assign(i).multRight(this.invTextureSpaceProjectionMatrix),this.projectiveTextureMatrixArray.set(this.projectiveTextureMatrix),this.modelViewMatrix.multVecMatrix(this.location.assign(e._location.getValue())),this.locationArray.set(this.location)},setShaderUniforms:function(t,e,i){const r=e.numProjectiveTextures++;if(e.hasTextureProjector(r,this))return;const o=this.textureProjectorNode.getTexture(),n=this.browser.getTexture2DUnit();t.activeTexture(t.TEXTURE0+n),t.bindTexture(t.TEXTURE_2D,o.getTexture()),t.uniform1i(e.x3d_ProjectiveTexture[r],n),t.uniformMatrix4fv(e.x3d_ProjectiveTextureMatrix[r],!1,this.projectiveTextureMatrixArray),t.uniform3fv(e.x3d_ProjectiveTextureLocation[r],this.locationArray)},dispose:function(){R.push(this)}},z.prototype=Object.assign(Object.create(P.prototype),{constructor:z,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(u())([new(s())(x().inputOutput,"metadata",new(o().SFNode)),new(s())(x().inputOutput,"description",new(o().SFString)),new(s())(x().inputOutput,"on",new(o().SFBool)(!0)),new(s())(x().inputOutput,"global",new(o().SFBool)(!0)),new(s())(x().inputOutput,"location",new(o().SFVec3f)(0,0,1)),new(s())(x().inputOutput,"direction",new(o().SFVec3f)(0,0,1)),new(s())(x().inputOutput,"upVector",new(o().SFVec3f)(0,0,1)),new(s())(x().inputOutput,"fieldOfView",new(o().SFFloat)(.7854)),new(s())(x().inputOutput,"nearDistance",new(o().SFFloat)(1)),new(s())(x().inputOutput,"farDistance",new(o().SFFloat)(10)),new(s())(x().outputOnly,"aspectRatio",new(o().SFFloat)),new(s())(x().inputOutput,"texture",new(o().SFNode))]),getTypeName:function(){return"TextureProjector"},getComponentName:function(){return"TextureProjector"},getContainerField:function(){return"children"},initialize:function(){P.prototype.initialize.call(this)},getFieldOfView:function(){var t=this._fieldOfView.getValue();return t>0&&t<Math.PI?t:Math.PI/4},getTextureProjectors:function(){return R}});const A=z;b().set("x_ite/Components/TextureProjector/TextureProjector",A);const C=A;var B=I()(U);function U(){this.projectionMatrix=new(T()),this.modelViewMatrix=new(T()),this.modelMatrix=new(T()),this.invTextureSpaceMatrix=new(T()),this.location=new(w())(0,0,0),this.locationArray=new Float32Array(3),this.invTextureSpaceProjectionMatrix=new(T()),this.direction=new(w())(0,0,0),this.rotation=new(f()),this.projectiveTextureMatrix=new(T()),this.projectiveTextureMatrixArray=new Float32Array(16)}function Y(t){P.call(this,t),this.addType(x().TextureProjectorParallel),this._fieldOfView.setUnit("length")}U.prototype={constructor:U,set:function(t,e){this.browser=t.getBrowser(),this.textureProjectorNode=t,this.modelViewMatrix.assign(e)},setGroup:function(t){this.groupNode=t},getModelViewMatrix:function(){return this.modelViewMatrix},setGlobalVariables:function(t){var e=this.textureProjectorNode,i=t.getCameraSpaceMatrix().get(),r=this.modelMatrix.assign(this.modelViewMatrix).multRight(i),o=this.invTextureSpaceMatrix.assign(e.getGlobal()?r:T().Identity);this.rotation.setFromToVec(w().zAxis,this.direction.assign(e.getDirection()).negate()),e.straightenHorizon(this.rotation),o.translate(e.getLocation()),o.rotate(this.rotation),o.inverse();var n=e.getTexture().getWidth()/e.getTexture().getHeight(),s=e.getMinimumX(),a=e.getMaximumX(),u=e.getMinimumY(),c=e.getMaximumY(),h=e.getSizeX(),l=e.getSizeY(),x=e.getNearDistance(),p=e.getFarDistance();if(n>h/l){var d=(s+a)/2,g=l*n/2;D().ortho(d-g,d+g,u,c,x,p,this.projectionMatrix)}else{d=(u+c)/2,g=h/n/2;D().ortho(s,a,d-g,d+g,x,p,this.projectionMatrix)}e.getGlobal()||o.multLeft(r.inverse()),this.invTextureSpaceProjectionMatrix.assign(o).multRight(this.projectionMatrix).multRight(e.getBiasMatrix()),this.projectiveTextureMatrix.assign(i).multRight(this.invTextureSpaceProjectionMatrix),this.projectiveTextureMatrixArray.set(this.projectiveTextureMatrix),this.modelViewMatrix.multVecMatrix(this.location.assign(e._location.getValue())),this.locationArray.set(this.location)},setShaderUniforms:function(t,e,i){const r=e.numProjectiveTextures++;if(e.hasTextureProjector(r,this))return;const o=this.textureProjectorNode.getTexture(),n=this.browser.getTexture2DUnit();t.activeTexture(t.TEXTURE0+n),t.bindTexture(t.TEXTURE_2D,o.getTexture()),t.uniform1i(e.x3d_ProjectiveTexture[r],n),t.uniformMatrix4fv(e.x3d_ProjectiveTextureMatrix[r],!1,this.projectiveTextureMatrixArray),t.uniform3fv(e.x3d_ProjectiveTextureLocation[r],this.locationArray)},dispose:function(){B.push(this)}},Y.prototype=Object.assign(Object.create(P.prototype),{constructor:Y,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(u())([new(s())(x().inputOutput,"metadata",new(o().SFNode)),new(s())(x().inputOutput,"description",new(o().SFString)),new(s())(x().inputOutput,"on",new(o().SFBool)(!0)),new(s())(x().inputOutput,"global",new(o().SFBool)(!0)),new(s())(x().inputOutput,"location",new(o().SFVec3f)(0,0,1)),new(s())(x().inputOutput,"direction",new(o().SFVec3f)(0,0,1)),new(s())(x().inputOutput,"upVector",new(o().SFVec3f)(0,1,0)),new(s())(x().inputOutput,"fieldOfView",new(o().MFFloat)(-1,-1,1,1)),new(s())(x().inputOutput,"nearDistance",new(o().SFFloat)(1)),new(s())(x().inputOutput,"farDistance",new(o().SFFloat)(10)),new(s())(x().outputOnly,"aspectRatio",new(o().SFFloat)),new(s())(x().inputOutput,"texture",new(o().SFNode))]),getTypeName:function(){return"TextureProjectorParallel"},getComponentName:function(){return"TextureProjector"},getContainerField:function(){return"children"},initialize:function(){P.prototype.initialize.call(this),this._fieldOfView.addInterest("set_fieldOfView___",this),this.set_fieldOfView___()},set_fieldOfView___:function(){var t=this._fieldOfView.length;this.minimumX=t>0?this._fieldOfView[0]:-1,this.minimumY=t>1?this._fieldOfView[1]:-1,this.maximumX=t>2?this._fieldOfView[2]:1,this.maximumY=t>3?this._fieldOfView[3]:1,this.sizeX=this.maximumX-this.minimumX,this.sizeY=this.maximumY-this.minimumY},getMinimumX:function(){return this.minimumX},getMinimumY:function(){return this.minimumY},getMaximumX:function(){return this.maximumX},getMaximumY:function(){return this.maximumY},getSizeX:function(){return this.sizeX},getSizeY:function(){return this.sizeY},getTextureProjectors:function(){return B}});const q=Y;b().set("x_ite/Components/TextureProjector/TextureProjectorParallel",q);const G=q;i().addComponent({name:"TextureProjector",types:{TextureProjector:C,TextureProjectorParallel:G},abstractTypes:{X3DTextureProjectorNode:P}});const L=void 0;b().set("assets/components/TextureProjector",L)})();
|