x_ite 8.3.2 → 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/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 +27 -27
- 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 +1492 -1291
- 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 -3
- package/docs/_posts/getting-started.md +147 -441
- package/docs/_posts/reference/scene-services.md +13 -2
- package/docs/_posts/what's-new.md +21 -3
- package/docs/_tabs/playground.html +36 -40
- package/docs/assets/css/style.scss +18 -0
- package/package.json +1 -1
- 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/X3DInfoArray.js +21 -21
- 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/DOMIntegration.js +4 -3
- package/src/x_ite/Browser/VERSION.js +1 -1
- package/src/x_ite/Browser/X3DBrowser.js +43 -28
- package/src/x_ite/Components/Core/X3DNode.js +196 -187
- package/src/x_ite/Components/Core/X3DPrototypeInstance.js +113 -90
- 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/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/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 +2 -2
- 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 +1 -1
- 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,25 +39,25 @@ 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/Rendering/X3DGeometricPropertyNode\")"
|
|
54
|
-
const X3DGeometricPropertyNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.
|
|
54
|
+
const X3DGeometricPropertyNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .require ("x_ite/Components/Rendering/X3DGeometricPropertyNode");
|
|
55
55
|
var X3DGeometricPropertyNode_default = /*#__PURE__*/__webpack_require__.n(X3DGeometricPropertyNode_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/Namespace\")"
|
|
60
|
-
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.
|
|
60
|
+
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .require ("x_ite/Namespace");
|
|
61
61
|
var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
|
|
62
62
|
;// CONCATENATED MODULE: ./src/x_ite/Components/HAnim/HAnimDisplacer.js
|
|
63
63
|
/*******************************************************************************
|
|
@@ -153,28 +153,28 @@ const __default__ = HAnimDisplacer;
|
|
|
153
153
|
Namespace_default().set ("x_ite/Components/HAnim/HAnimDisplacer", __default__);
|
|
154
154
|
/* harmony default export */ const HAnim_HAnimDisplacer = (__default__);
|
|
155
155
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DChildNode\")"
|
|
156
|
-
const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.
|
|
156
|
+
const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .require ("x_ite/Components/Core/X3DChildNode");
|
|
157
157
|
var X3DChildNode_default = /*#__PURE__*/__webpack_require__.n(X3DChildNode_namespaceObject);
|
|
158
158
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/Group\")"
|
|
159
|
-
const Group_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.
|
|
159
|
+
const Group_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .require ("x_ite/Components/Grouping/Group");
|
|
160
160
|
var Group_default = /*#__PURE__*/__webpack_require__.n(Group_namespaceObject);
|
|
161
161
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/Transform\")"
|
|
162
|
-
const Transform_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.
|
|
162
|
+
const Transform_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .require ("x_ite/Components/Grouping/Transform");
|
|
163
163
|
var Transform_default = /*#__PURE__*/__webpack_require__.n(Transform_namespaceObject);
|
|
164
164
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DBoundedObject\")"
|
|
165
|
-
const X3DBoundedObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.
|
|
165
|
+
const X3DBoundedObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .require ("x_ite/Components/Grouping/X3DBoundedObject");
|
|
166
166
|
var X3DBoundedObject_default = /*#__PURE__*/__webpack_require__.n(X3DBoundedObject_namespaceObject);
|
|
167
167
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Rendering/TraverseType\")"
|
|
168
|
-
const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.
|
|
168
|
+
const TraverseType_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .require ("x_ite/Rendering/TraverseType");
|
|
169
169
|
var TraverseType_default = /*#__PURE__*/__webpack_require__.n(TraverseType_namespaceObject);
|
|
170
170
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DCast\")"
|
|
171
|
-
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.
|
|
171
|
+
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .require ("x_ite/Base/X3DCast");
|
|
172
172
|
var X3DCast_default = /*#__PURE__*/__webpack_require__.n(X3DCast_namespaceObject);
|
|
173
173
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Matrix4\")"
|
|
174
|
-
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.
|
|
174
|
+
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .require ("standard/Math/Numbers/Matrix4");
|
|
175
175
|
var Matrix4_default = /*#__PURE__*/__webpack_require__.n(Matrix4_namespaceObject);
|
|
176
176
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector3\")"
|
|
177
|
-
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.
|
|
177
|
+
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .require ("standard/Math/Numbers/Vector3");
|
|
178
178
|
var Vector3_default = /*#__PURE__*/__webpack_require__.n(Vector3_namespaceObject);
|
|
179
179
|
;// CONCATENATED MODULE: ./src/x_ite/Components/HAnim/HAnimHumanoid.js
|
|
180
180
|
/*******************************************************************************
|
|
@@ -338,6 +338,8 @@ HAnimHumanoid .prototype = Object .assign (Object .create ((X3DChildNode_default
|
|
|
338
338
|
this ._scale .addFieldInterest (this .transformNode ._scale);
|
|
339
339
|
this ._scaleOrientation .addFieldInterest (this .transformNode ._scaleOrientation);
|
|
340
340
|
this ._center .addFieldInterest (this .transformNode ._center);
|
|
341
|
+
this ._visible .addFieldInterest (this .transformNode ._visible);
|
|
342
|
+
this ._bboxDisplay .addFieldInterest (this .transformNode ._bboxDisplay);
|
|
341
343
|
this ._bboxSize .addFieldInterest (this .transformNode ._bboxSize);
|
|
342
344
|
this ._bboxCenter .addFieldInterest (this .transformNode ._bboxCenter);
|
|
343
345
|
|
|
@@ -346,6 +348,8 @@ HAnimHumanoid .prototype = Object .assign (Object .create ((X3DChildNode_default
|
|
|
346
348
|
this .transformNode ._scale = this ._scale;
|
|
347
349
|
this .transformNode ._scaleOrientation = this ._scaleOrientation;
|
|
348
350
|
this .transformNode ._center = this ._center;
|
|
351
|
+
this .transformNode ._visible = this ._visible;
|
|
352
|
+
this .transformNode ._bboxDisplay = this ._bboxDisplay;
|
|
349
353
|
this .transformNode ._bboxSize = this ._bboxSize;
|
|
350
354
|
this .transformNode ._bboxCenter = this ._bboxCenter;
|
|
351
355
|
this .transformNode ._children = [ this .viewpointsNode, this .skeletonNode, this .skinNode ];
|
|
@@ -379,13 +383,13 @@ HAnimHumanoid .prototype = Object .assign (Object .create ((X3DChildNode_default
|
|
|
379
383
|
},
|
|
380
384
|
set_joints__: function ()
|
|
381
385
|
{
|
|
382
|
-
|
|
386
|
+
const jointNodes = this .jointNodes;
|
|
383
387
|
|
|
384
388
|
jointNodes .length = 0;
|
|
385
389
|
|
|
386
|
-
for (
|
|
390
|
+
for (const node of this ._joints)
|
|
387
391
|
{
|
|
388
|
-
|
|
392
|
+
const jointNode = X3DCast_default() ((X3DConstants_default()).HAnimJoint, node);
|
|
389
393
|
|
|
390
394
|
if (jointNode)
|
|
391
395
|
jointNodes .push (jointNode);
|
|
@@ -411,12 +415,14 @@ HAnimHumanoid .prototype = Object .assign (Object .create ((X3DChildNode_default
|
|
|
411
415
|
},
|
|
412
416
|
traverse: function (type, renderObject)
|
|
413
417
|
{
|
|
418
|
+
renderObject .getJoints () .length = 0;
|
|
419
|
+
|
|
414
420
|
this .transformNode .traverse (type, renderObject);
|
|
415
421
|
this .skinning (type, renderObject);
|
|
416
422
|
},
|
|
417
423
|
skinning: (function ()
|
|
418
424
|
{
|
|
419
|
-
|
|
425
|
+
const
|
|
420
426
|
invModelMatrix = new (Matrix4_default()) (),
|
|
421
427
|
vector = new (Vector3_default()) (0, 0, 0),
|
|
422
428
|
rest = new (Vector3_default()) (0, 0, 0),
|
|
@@ -431,8 +437,8 @@ HAnimHumanoid .prototype = Object .assign (Object .create ((X3DChildNode_default
|
|
|
431
437
|
if (! this .skinCoordNode)
|
|
432
438
|
return;
|
|
433
439
|
|
|
434
|
-
|
|
435
|
-
jointNodes = this .jointNodes,
|
|
440
|
+
const
|
|
441
|
+
jointNodes = this .jointNodes .length ? this .jointNodes : renderObject .getJoints (),
|
|
436
442
|
skinNormalNode = this .skinNormalNode,
|
|
437
443
|
skinCoordNode = this .skinCoordNode,
|
|
438
444
|
restNormalNode = this .restNormalNode,
|
|
@@ -451,32 +457,25 @@ HAnimHumanoid .prototype = Object .assign (Object .create ((X3DChildNode_default
|
|
|
451
457
|
|
|
452
458
|
// Apply joint transformations.
|
|
453
459
|
|
|
454
|
-
for (
|
|
460
|
+
for (const jointNode of jointNodes)
|
|
455
461
|
{
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
if (skinCoordIndexLength === 0)
|
|
461
|
-
continue;
|
|
462
|
+
const
|
|
463
|
+
skinCoordIndexLength = jointNode ._skinCoordIndex .length,
|
|
464
|
+
jointMatrix = jointNode .getModelMatrix () .multRight (invModelMatrix),
|
|
465
|
+
displacerNodes = jointNode .getDisplacers ();
|
|
462
466
|
|
|
463
|
-
|
|
464
|
-
jointMatrix = jointNode .getModelMatrix () .multRight (invModelMatrix),
|
|
465
|
-
displacerNodes = jointNode .getDisplacers ();
|
|
466
|
-
|
|
467
|
-
for (var d = 0, displacerNodesLength = displacerNodes .length; d < displacerNodesLength; ++ d)
|
|
467
|
+
for (const displacerNode of displacerNodes)
|
|
468
468
|
{
|
|
469
|
-
|
|
470
|
-
displacerNode = displacerNodes [d],
|
|
469
|
+
const
|
|
471
470
|
coordIndex = displacerNode ._coordIndex .getValue (),
|
|
472
471
|
coordIndexLength = displacerNode ._coordIndex .length,
|
|
473
472
|
weight = displacerNode ._weight .getValue (),
|
|
474
473
|
displacements = displacerNode ._displacements .getValue (),
|
|
475
474
|
displacementsLength = displacerNode ._displacements .length;
|
|
476
475
|
|
|
477
|
-
for (
|
|
476
|
+
for (let i = 0; i < coordIndexLength; ++ i)
|
|
478
477
|
{
|
|
479
|
-
|
|
478
|
+
const
|
|
480
479
|
i3 = i * 3,
|
|
481
480
|
index = coordIndex [i],
|
|
482
481
|
displacement = i < displacementsLength ? point .set (displacements [i3], displacements [i3 + 1], displacements [i3 + 2]) : point .assign ((Vector3_default()).Zero);
|
|
@@ -487,15 +486,15 @@ HAnimHumanoid .prototype = Object .assign (Object .create ((X3DChildNode_default
|
|
|
487
486
|
}
|
|
488
487
|
}
|
|
489
488
|
|
|
490
|
-
|
|
489
|
+
const
|
|
491
490
|
normalMatrix = skinNormalNode ? jointMatrix .submatrix .transpose () .inverse () : null,
|
|
492
491
|
skinCoordIndex = jointNode ._skinCoordIndex .getValue (),
|
|
493
492
|
skinCoordWeight = jointNode ._skinCoordWeight .getValue (),
|
|
494
493
|
skinCoordWeightLength = jointNode ._skinCoordWeight .length;
|
|
495
494
|
|
|
496
|
-
for (
|
|
495
|
+
for (let i = 0; i < skinCoordIndexLength; ++ i)
|
|
497
496
|
{
|
|
498
|
-
|
|
497
|
+
const
|
|
499
498
|
index = skinCoordIndex [i],
|
|
500
499
|
weight = i < skinCoordWeightLength ? skinCoordWeight [i] : 1;
|
|
501
500
|
|
|
@@ -530,7 +529,7 @@ const HAnimHumanoid_default_ = HAnimHumanoid;
|
|
|
530
529
|
Namespace_default().set ("x_ite/Components/HAnim/HAnimHumanoid", HAnimHumanoid_default_);
|
|
531
530
|
/* harmony default export */ const HAnim_HAnimHumanoid = (HAnimHumanoid_default_);
|
|
532
531
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DTransformNode\")"
|
|
533
|
-
const X3DTransformNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.
|
|
532
|
+
const X3DTransformNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .require ("x_ite/Components/Grouping/X3DTransformNode");
|
|
534
533
|
var X3DTransformNode_default = /*#__PURE__*/__webpack_require__.n(X3DTransformNode_namespaceObject);
|
|
535
534
|
;// CONCATENATED MODULE: ./src/x_ite/Components/HAnim/HAnimJoint.js
|
|
536
535
|
/*******************************************************************************
|
|
@@ -668,54 +667,42 @@ HAnimJoint .prototype = Object .assign (Object .create ((X3DTransformNode_defaul
|
|
|
668
667
|
|
|
669
668
|
displacerNodes .length = 0;
|
|
670
669
|
|
|
671
|
-
for (
|
|
670
|
+
for (const node of this ._displacers)
|
|
672
671
|
{
|
|
673
|
-
const displacerNode = X3DCast_default() ((X3DConstants_default()).HAnimDisplacer,
|
|
672
|
+
const displacerNode = X3DCast_default() ((X3DConstants_default()).HAnimDisplacer, node);
|
|
674
673
|
|
|
675
674
|
if (displacerNode)
|
|
676
675
|
displacerNodes .push (displacerNode);
|
|
677
676
|
}
|
|
678
677
|
},
|
|
679
|
-
|
|
678
|
+
traverse: function traverse (type, renderObject)
|
|
680
679
|
{
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
function traverse (type, renderObject)
|
|
680
|
+
if (type === (TraverseType_default()).CAMERA)
|
|
684
681
|
{
|
|
685
|
-
if (
|
|
686
|
-
|
|
682
|
+
if (this ._skinCoordIndex .length)
|
|
683
|
+
{
|
|
684
|
+
renderObject .getJoints () .push (this);
|
|
687
685
|
|
|
688
|
-
|
|
686
|
+
this .modelMatrix .assign (this .getMatrix ()) .multRight (renderObject .getModelViewMatrix () .get ());
|
|
687
|
+
}
|
|
689
688
|
}
|
|
690
689
|
|
|
691
|
-
|
|
690
|
+
X3DTransformNode_default().prototype.traverse.call (this, type, renderObject);
|
|
691
|
+
},
|
|
692
|
+
groupTraverse: function (type, renderObject)
|
|
693
|
+
{
|
|
694
|
+
if (type === (TraverseType_default()).CAMERA)
|
|
692
695
|
{
|
|
693
696
|
if (this ._skinCoordIndex .length)
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
return base;
|
|
697
|
-
};
|
|
698
|
-
})(),
|
|
699
|
-
getGroupTraverse: (function ()
|
|
700
|
-
{
|
|
701
|
-
const base = X3DTransformNode_default().prototype.getGroupTraverse ();
|
|
697
|
+
{
|
|
698
|
+
renderObject .getJoints () .push (this);
|
|
702
699
|
|
|
703
|
-
function traverse (type, renderObject)
|
|
704
|
-
{
|
|
705
|
-
if (type === (TraverseType_default()).CAMERA)
|
|
706
700
|
this .modelMatrix .assign (renderObject .getModelViewMatrix () .get ());
|
|
707
|
-
|
|
708
|
-
base .call (this, type, renderObject);
|
|
701
|
+
}
|
|
709
702
|
}
|
|
710
703
|
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
if (this ._skinCoordIndex .length)
|
|
714
|
-
return traverse;
|
|
715
|
-
|
|
716
|
-
return base;
|
|
717
|
-
};
|
|
718
|
-
})(),
|
|
704
|
+
X3DTransformNode_default().prototype.groupTraverse.call (this, type, renderObject);
|
|
705
|
+
},
|
|
719
706
|
});
|
|
720
707
|
|
|
721
708
|
const HAnimJoint_default_ = HAnimJoint;
|
|
@@ -832,7 +819,7 @@ const HAnimMotion_default_ = HAnimMotion;
|
|
|
832
819
|
Namespace_default().set ("x_ite/Components/HAnim/HAnimMotion", HAnimMotion_default_);
|
|
833
820
|
/* harmony default export */ const HAnim_HAnimMotion = (HAnimMotion_default_);
|
|
834
821
|
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Grouping/X3DGroupingNode\")"
|
|
835
|
-
const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.
|
|
822
|
+
const X3DGroupingNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .require ("x_ite/Components/Grouping/X3DGroupingNode");
|
|
836
823
|
var X3DGroupingNode_default = /*#__PURE__*/__webpack_require__.n(X3DGroupingNode_namespaceObject);
|
|
837
824
|
;// CONCATENATED MODULE: ./src/x_ite/Components/HAnim/HAnimSegment.js
|
|
838
825
|
/*******************************************************************************
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/* X_ITE v8.3.2 */(()=>{"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.3.2")].require("x_ite/Components");var n=t.n(e);const i=window[Symbol.for("X_ITE.X3D-8.3.2")].require("x_ite/Fields");var o=t.n(i);const s=window[Symbol.for("X_ITE.X3D-8.3.2")].require("x_ite/Base/X3DFieldDefinition");var r=t.n(s);const u=window[Symbol.for("X_ITE.X3D-8.3.2")].require("x_ite/Base/FieldDefinitionArray");var a=t.n(u);const p=window[Symbol.for("X_ITE.X3D-8.3.2")].require("x_ite/Components/Rendering/X3DGeometricPropertyNode");var d=t.n(p);const l=window[Symbol.for("X_ITE.X3D-8.3.2")].require("x_ite/Base/X3DConstants");var w=t.n(l);const c=window[Symbol.for("X_ITE.X3D-8.3.2")].require("x_ite/Namespace");var m=t.n(c);function h(t){d().call(this,t),this.addType(w().HAnimDisplacer),this._displacements.setUnit("length")}h.prototype=Object.assign(Object.create(d().prototype),{constructor:h,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"coordIndex",new(o().MFInt32)),new(r())(w().inputOutput,"weight",new(o().SFFloat)),new(r())(w().inputOutput,"displacements",new(o().MFVec3f))]),getTypeName:function(){return"HAnimDisplacer"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"displacers"}});const _=h;m().set("x_ite/Components/HAnim/HAnimDisplacer",_);const f=_,O=window[Symbol.for("X_ITE.X3D-8.3.2")].require("x_ite/Components/Core/X3DChildNode");var N=t.n(O);const F=window[Symbol.for("X_ITE.X3D-8.3.2")].require("x_ite/Components/Grouping/Group");var S=t.n(F);const g=window[Symbol.for("X_ITE.X3D-8.3.2")].require("x_ite/Components/Grouping/Transform");var b=t.n(g);const y=window[Symbol.for("X_ITE.X3D-8.3.2")].require("x_ite/Components/Grouping/X3DBoundedObject");var C=t.n(y);const x=window[Symbol.for("X_ITE.X3D-8.3.2")].require("x_ite/Rendering/TraverseType");var v=t.n(x);const M=window[Symbol.for("X_ITE.X3D-8.3.2")].require("x_ite/Base/X3DCast");var I=t.n(M);const k=window[Symbol.for("X_ITE.X3D-8.3.2")].require("standard/Math/Numbers/Matrix4");var A=t.n(k);const X=window[Symbol.for("X_ITE.X3D-8.3.2")].require("standard/Math/Numbers/Vector3");var D,T,H,j,B,V=t.n(X);function E(t){N().call(this,t),C().call(this,t),this.addType(w().HAnimHumanoid),this._translation.setUnit("length"),this._center.setUnit("length"),this._bboxSize.setUnit("length"),this._bboxCenter.setUnit("length"),this.viewpointsNode=new(S())(t),this.skeletonNode=new(S())(t),this.skinNode=new(S())(t),this.transformNode=new(b())(t),this.jointNodes=[],this.skinNormalNode=null,this.skinCoordNode=null,this.restNormalNode=null,this.restCoordNode=null}E.prototype=Object.assign(Object.create(N().prototype),C().prototype,{constructor:E,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"version",new(o().SFString)),new(r())(w().inputOutput,"info",new(o().MFString)),new(r())(w().inputOutput,"translation",new(o().SFVec3f)),new(r())(w().inputOutput,"rotation",new(o().SFRotation)),new(r())(w().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(w().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(w().inputOutput,"center",new(o().SFVec3f)),new(r())(w().inputOutput,"jointBindingPositions",new(o().MFVec3f)),new(r())(w().inputOutput,"jointBindingRotations",new(o().MFRotation)),new(r())(w().inputOutput,"jointBindingScales",new(o().MFVec3f)),new(r())(w().inputOutput,"motionsEnabled",new(o().MFBool)),new(r())(w().inputOutput,"loa",new(o().SFInt32)(-1)),new(r())(w().inputOutput,"skeletalConfiguration",new(o().SFString)("BASIC")),new(r())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(w().inputOutput,"viewpoints",new(o().MFNode)),new(r())(w().inputOutput,"sites",new(o().MFNode)),new(r())(w().inputOutput,"joints",new(o().MFNode)),new(r())(w().inputOutput,"segments",new(o().MFNode)),new(r())(w().inputOutput,"motions",new(o().MFNode)),new(r())(w().inputOutput,"skeleton",new(o().MFNode)),new(r())(w().inputOutput,"skinBindingNormal",new(o().SFNode)),new(r())(w().inputOutput,"skinBindingCoord",new(o().SFNode)),new(r())(w().inputOutput,"skinNormal",new(o().SFNode)),new(r())(w().inputOutput,"skinCoord",new(o().SFNode)),new(r())(w().inputOutput,"skin",new(o().MFNode))]),getTypeName:function(){return"HAnimHumanoid"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"children"},initialize:function(){N().prototype.initialize.call(this),C().prototype.initialize.call(this),this.viewpointsNode.setAllowedTypes(w().HAnimSite),this.skeletonNode.setAllowedTypes(w().HAnimJoint,w().HAnimSite),this._viewpoints.addFieldInterest(this.viewpointsNode._children),this._skeleton.addFieldInterest(this.skeletonNode._children),this._skin.addFieldInterest(this.skinNode._children),this.viewpointsNode._children=this._viewpoints,this.skeletonNode._children=this._skeleton,this.skinNode._children=this._skin,this.viewpointsNode.setPrivate(!0),this.skeletonNode.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._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._bboxSize=this._bboxSize,this.transformNode._bboxCenter=this._bboxCenter,this.transformNode._children=[this.viewpointsNode,this.skeletonNode,this.skinNode],this.transformNode._isCameraObject.addFieldInterest(this._isCameraObject),this.transformNode._isPickableObject.addFieldInterest(this._isPickableObject),this.viewpointsNode.setup(),this.skeletonNode.setup(),this.skinNode.setup(),this.transformNode.setup(),this.setCameraObject(this.transformNode.getCameraObject()),this.setPickableObject(this.transformNode.getPickableObject()),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(){var t=this.jointNodes;t.length=0;for(var e=0,n=this._joints.length;e<n;++e){var i=I()(w().HAnimJoint,this._joints[e]);i&&t.push(i)}},set_skinNormal__:function(){this.restNormalNode=null,this.skinNormalNode=I()(w().X3DNormalNode,this._skinNormal),this.skinNormalNode&&(this.restNormalNode=this.skinNormalNode.copy())},set_skinCoord__:function(){this.restCoordNode=null,this.skinCoordNode=I()(w().X3DCoordinateNode,this._skinCoord),this.skinCoordNode&&(this.restCoordNode=this.skinCoordNode.copy())},traverse:function(t,e){this.transformNode.traverse(t,e),this.skinning(t,e)},skinning:(D=new(A()),T=new(V())(0,0,0),H=new(V())(0,0,0),j=new(V())(0,0,0),B=new(V())(0,0,0),function(t,e){if(t===v().CAMERA&&this.skinCoordNode){var n=this.jointNodes,i=this.skinNormalNode,o=this.skinCoordNode,s=this.restNormalNode,r=this.restCoordNode;i&&i._vector.assign(s._vector),o._point.assign(r._point),D.assign(this.transformNode.getMatrix()).multRight(e.getModelViewMatrix().get()).inverse();for(var u=0,a=n.length;u<a;++u){var p=n[u],d=p._skinCoordIndex.length;if(0!==d){for(var l=p.getModelMatrix().multRight(D),w=p.getDisplacers(),c=0,m=w.length;c<m;++c)for(var h=w[c],_=h._coordIndex.getValue(),f=h._coordIndex.length,O=h._weight.getValue(),N=h._displacements.getValue(),F=h._displacements.length,S=0;S<f;++S){var g=3*S,b=_[S],y=S<F?B.set(N[g],N[g+1],N[g+2]):B.assign(V().Zero);o.get1Point(b,j),l.multDirMatrix(y).multiply(O).add(j),o.set1Point(b,y)}var C=i?l.submatrix.transpose().inverse():null,x=p._skinCoordIndex.getValue(),M=p._skinCoordWeight.getValue(),I=p._skinCoordWeight.length;for(S=0;S<d;++S)b=x[S],O=S<I?M[S]:1,i&&(H.assign(s.get1Vector(b,T)),i.get1Vector(b,j),C.multVecMatrix(T).subtract(H).multiply(O).add(j),i.set1Vector(b,T)),H.assign(r.get1Point(b,B)),o.get1Point(b,j),l.multVecMatrix(B).subtract(H).multiply(O).add(j),o.set1Point(b,B)}}}}),dispose:function(){C().prototype.dispose.call(this),N().prototype.dispose.call(this)}});const z=E;m().set("x_ite/Components/HAnim/HAnimHumanoid",z);const q=z,R=window[Symbol.for("X_ITE.X3D-8.3.2")].require("x_ite/Components/Grouping/X3DTransformNode");var P=t.n(R);function G(t){P().call(this,t),this.addType(w().HAnimJoint),this.setAllowedTypes(w().HAnimJoint,w().HAnimSegment,w().HAnimSite),this.displacerNodes=[],this.modelMatrix=new(A())}G.prototype=Object.assign(Object.create(P().prototype),{constructor:G,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"translation",new(o().SFVec3f)),new(r())(w().inputOutput,"rotation",new(o().SFRotation)),new(r())(w().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(w().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(w().inputOutput,"center",new(o().SFVec3f)),new(r())(w().inputOutput,"llimit",new(o().MFFloat)),new(r())(w().inputOutput,"ulimit",new(o().MFFloat)),new(r())(w().inputOutput,"limitOrientation",new(o().SFRotation)),new(r())(w().inputOutput,"stiffness",new(o().MFFloat)(0,0,0)),new(r())(w().inputOutput,"skinCoordIndex",new(o().MFInt32)),new(r())(w().inputOutput,"skinCoordWeight",new(o().MFFloat)),new(r())(w().inputOutput,"displacers",new(o().MFNode)),new(r())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(w().inputOnly,"addChildren",new(o().MFNode)),new(r())(w().inputOnly,"removeChildren",new(o().MFNode)),new(r())(w().inputOutput,"children",new(o().MFNode))]),getTypeName:function(){return"HAnimJoint"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"children"},initialize:function(){P().prototype.initialize.call(this),this._displacers.addInterest("set_displacers__",this),this.set_displacers__()},setCameraObject:function(t){P().prototype.setCameraObject.call(this,t||!!this._skinCoordIndex.length)},getModelMatrix:function(){return this.modelMatrix},getDisplacers:function(){return this.displacerNodes},set_displacers__:function(){const t=this.displacerNodes;t.length=0;for(var e=0,n=this._displacers.length;e<n;++e){const n=I()(w().HAnimDisplacer,this._displacers[e]);n&&t.push(n)}},getTraverse:function(){const t=P().prototype.getTraverse();function e(e,n){e===v().CAMERA&&this.modelMatrix.assign(this.getMatrix()).multRight(n.getModelViewMatrix().get()),t.call(this,e,n)}return function(){return this._skinCoordIndex.length?e:t}}(),getGroupTraverse:function(){const t=P().prototype.getGroupTraverse();function e(e,n){e===v().CAMERA&&this.modelMatrix.assign(n.getModelViewMatrix().get()),t.call(this,e,n)}return function(){return this._skinCoordIndex.length?e:t}}()});const J=G;m().set("x_ite/Components/HAnim/HAnimJoint",J);const U=J;function W(t){N().call(this,t),this.addType(w().HAnimMotion)}W.prototype=Object.assign(Object.create(N().prototype),{constructor:W,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(w().inputOnly,"next",new(o().SFBool)),new(r())(w().inputOnly,"previous",new(o().SFBool)),new(r())(w().inputOutput,"frameDuration",new(o().SFTime)(.1)),new(r())(w().inputOutput,"frameIncrement",new(o().SFInt32)(1)),new(r())(w().inputOutput,"frameIndex",new(o().SFInt32)(0)),new(r())(w().inputOutput,"loop",new(o().SFBool)(!1)),new(r())(w().inputOutput,"channels",new(o().SFString)),new(r())(w().inputOutput,"channelsEnabled",new(o().MFBool)),new(r())(w().inputOutput,"joints",new(o().MFString)),new(r())(w().inputOutput,"loa",new(o().SFInt32)(-1)),new(r())(w().inputOutput,"startFrame",new(o().SFInt32)),new(r())(w().inputOutput,"endFrame",new(o().SFInt32)),new(r())(w().inputOutput,"values",new(o().MFFloat)),new(r())(w().outputOnly,"cycleTime",new(o().SFTime)),new(r())(w().outputOnly,"elapsedTime",new(o().SFTime)),new(r())(w().outputOnly,"frameCount",new(o().SFInt32))]),getTypeName:function(){return"HAnimMotion"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"children"},initialize:function(){N().prototype.initialize.call(this)}});const Z=W;m().set("x_ite/Components/HAnim/HAnimMotion",Z);const K=Z,L=window[Symbol.for("X_ITE.X3D-8.3.2")].require("x_ite/Components/Grouping/X3DGroupingNode");var Q=t.n(L);function Y(t){Q().call(this,t),this.addType(w().HAnimSegment),this._mass.setUnit("mass")}Y.prototype=Object.assign(Object.create(Q().prototype),{constructor:Y,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"mass",new(o().SFFloat)),new(r())(w().inputOutput,"centerOfMass",new(o().SFVec3f)),new(r())(w().inputOutput,"momentsOfInertia",new(o().MFFloat)(0,0,0,0,0,0,0,0,0)),new(r())(w().inputOutput,"displacers",new(o().MFNode)),new(r())(w().inputOutput,"coord",new(o().SFNode)),new(r())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(w().inputOnly,"addChildren",new(o().MFNode)),new(r())(w().inputOnly,"removeChildren",new(o().MFNode)),new(r())(w().inputOutput,"children",new(o().MFNode))]),getTypeName:function(){return"HAnimSegment"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"children"}});const $=Y;m().set("x_ite/Components/HAnim/HAnimSegment",$);const tt=$;function et(t){P().call(this,t),this.addType(w().HAnimSite)}et.prototype=Object.assign(Object.create(P().prototype),{constructor:et,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"translation",new(o().SFVec3f)),new(r())(w().inputOutput,"rotation",new(o().SFRotation)),new(r())(w().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(w().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(w().inputOutput,"center",new(o().SFVec3f)),new(r())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(w().inputOnly,"addChildren",new(o().MFNode)),new(r())(w().inputOnly,"removeChildren",new(o().MFNode)),new(r())(w().inputOutput,"children",new(o().MFNode))]),getTypeName:function(){return"HAnimSite"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"children"}});const nt=et;m().set("x_ite/Components/HAnim/HAnimSite",nt);const it=nt;n().addComponent({name:"HAnim",types:{HAnimDisplacer:f,HAnimHumanoid:q,HAnimJoint:U,HAnimMotion:K,HAnimSegment:tt,HAnimSite:it},abstractTypes:{}});const ot=void 0;m().set("assets/components/HAnim",ot)})();
|
|
1
|
+
/* X_ITE v8.3.3 */(()=>{"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.3.3")].require("x_ite/Components");var n=t.n(e);const i=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Fields");var o=t.n(i);const s=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Base/X3DFieldDefinition");var r=t.n(s);const u=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Base/FieldDefinitionArray");var a=t.n(u);const d=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Components/Rendering/X3DGeometricPropertyNode");var p=t.n(d);const l=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Base/X3DConstants");var w=t.n(l);const c=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Namespace");var m=t.n(c);function h(t){p().call(this,t),this.addType(w().HAnimDisplacer),this._displacements.setUnit("length")}h.prototype=Object.assign(Object.create(p().prototype),{constructor:h,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"coordIndex",new(o().MFInt32)),new(r())(w().inputOutput,"weight",new(o().SFFloat)),new(r())(w().inputOutput,"displacements",new(o().MFVec3f))]),getTypeName:function(){return"HAnimDisplacer"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"displacers"}});const _=h;m().set("x_ite/Components/HAnim/HAnimDisplacer",_);const f=_,N=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Components/Core/X3DChildNode");var O=t.n(N);const F=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Components/Grouping/Group");var S=t.n(F);const g=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Components/Grouping/Transform");var b=t.n(g);const y=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Components/Grouping/X3DBoundedObject");var C=t.n(y);const x=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Rendering/TraverseType");var M=t.n(x);const I=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Base/X3DCast");var k=t.n(I);const v=window[Symbol.for("X_ITE.X3D-8.3.3")].require("standard/Math/Numbers/Matrix4");var D=t.n(v);const A=window[Symbol.for("X_ITE.X3D-8.3.3")].require("standard/Math/Numbers/Vector3");var X=t.n(A);function H(t){O().call(this,t),C().call(this,t),this.addType(w().HAnimHumanoid),this._translation.setUnit("length"),this._center.setUnit("length"),this._bboxSize.setUnit("length"),this._bboxCenter.setUnit("length"),this.viewpointsNode=new(S())(t),this.skeletonNode=new(S())(t),this.skinNode=new(S())(t),this.transformNode=new(b())(t),this.jointNodes=[],this.skinNormalNode=null,this.skinCoordNode=null,this.restNormalNode=null,this.restCoordNode=null}H.prototype=Object.assign(Object.create(O().prototype),C().prototype,{constructor:H,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"version",new(o().SFString)),new(r())(w().inputOutput,"info",new(o().MFString)),new(r())(w().inputOutput,"translation",new(o().SFVec3f)),new(r())(w().inputOutput,"rotation",new(o().SFRotation)),new(r())(w().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(w().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(w().inputOutput,"center",new(o().SFVec3f)),new(r())(w().inputOutput,"jointBindingPositions",new(o().MFVec3f)),new(r())(w().inputOutput,"jointBindingRotations",new(o().MFRotation)),new(r())(w().inputOutput,"jointBindingScales",new(o().MFVec3f)),new(r())(w().inputOutput,"motionsEnabled",new(o().MFBool)),new(r())(w().inputOutput,"loa",new(o().SFInt32)(-1)),new(r())(w().inputOutput,"skeletalConfiguration",new(o().SFString)("BASIC")),new(r())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(w().inputOutput,"viewpoints",new(o().MFNode)),new(r())(w().inputOutput,"sites",new(o().MFNode)),new(r())(w().inputOutput,"joints",new(o().MFNode)),new(r())(w().inputOutput,"segments",new(o().MFNode)),new(r())(w().inputOutput,"motions",new(o().MFNode)),new(r())(w().inputOutput,"skeleton",new(o().MFNode)),new(r())(w().inputOutput,"skinBindingNormal",new(o().SFNode)),new(r())(w().inputOutput,"skinBindingCoord",new(o().SFNode)),new(r())(w().inputOutput,"skinNormal",new(o().SFNode)),new(r())(w().inputOutput,"skinCoord",new(o().SFNode)),new(r())(w().inputOutput,"skin",new(o().MFNode))]),getTypeName:function(){return"HAnimHumanoid"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"children"},initialize:function(){O().prototype.initialize.call(this),C().prototype.initialize.call(this),this.viewpointsNode.setAllowedTypes(w().HAnimSite),this.skeletonNode.setAllowedTypes(w().HAnimJoint,w().HAnimSite),this._viewpoints.addFieldInterest(this.viewpointsNode._children),this._skeleton.addFieldInterest(this.skeletonNode._children),this._skin.addFieldInterest(this.skinNode._children),this.viewpointsNode._children=this._viewpoints,this.skeletonNode._children=this._skeleton,this.skinNode._children=this._skin,this.viewpointsNode.setPrivate(!0),this.skeletonNode.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.viewpointsNode,this.skeletonNode,this.skinNode],this.transformNode._isCameraObject.addFieldInterest(this._isCameraObject),this.transformNode._isPickableObject.addFieldInterest(this._isPickableObject),this.viewpointsNode.setup(),this.skeletonNode.setup(),this.skinNode.setup(),this.transformNode.setup(),this.setCameraObject(this.transformNode.getCameraObject()),this.setPickableObject(this.transformNode.getPickableObject()),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;t.length=0;for(const e of this._joints){const n=k()(w().HAnimJoint,e);n&&t.push(n)}},set_skinNormal__:function(){this.restNormalNode=null,this.skinNormalNode=k()(w().X3DNormalNode,this._skinNormal),this.skinNormalNode&&(this.restNormalNode=this.skinNormalNode.copy())},set_skinCoord__:function(){this.restCoordNode=null,this.skinCoordNode=k()(w().X3DCoordinateNode,this._skinCoord),this.skinCoordNode&&(this.restCoordNode=this.skinCoordNode.copy())},traverse:function(t,e){e.getJoints().length=0,this.transformNode.traverse(t,e),this.skinning(t,e)},skinning:function(){const t=new(D()),e=new(X())(0,0,0),n=new(X())(0,0,0),i=new(X())(0,0,0),o=new(X())(0,0,0);return function(s,r){if(s!==M().CAMERA)return;if(!this.skinCoordNode)return;const u=this.jointNodes.length?this.jointNodes:r.getJoints(),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),w=s.getDisplacers();for(const t of w){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(X().Zero);d.get1Point(p,i),u.multDirMatrix(l).multiply(s).add(i),d.set1Point(p,l)}}const c=a?u.submatrix.transpose().inverse():null,m=s._skinCoordIndex.getValue(),h=s._skinCoordWeight.getValue(),_=s._skinCoordWeight.length;for(let t=0;t<r;++t){const s=m[t],r=t<_?h[t]:1;a&&(n.assign(p.get1Vector(s,e)),a.get1Vector(s,i),c.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)}}}}(),dispose:function(){C().prototype.dispose.call(this),O().prototype.dispose.call(this)}});const T=H;m().set("x_ite/Components/HAnim/HAnimHumanoid",T);const j=T,B=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Components/Grouping/X3DTransformNode");var V=t.n(B);function E(t){V().call(this,t),this.addType(w().HAnimJoint),this.setAllowedTypes(w().HAnimJoint,w().HAnimSegment,w().HAnimSite),this.displacerNodes=[],this.modelMatrix=new(D())}E.prototype=Object.assign(Object.create(V().prototype),{constructor:E,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"translation",new(o().SFVec3f)),new(r())(w().inputOutput,"rotation",new(o().SFRotation)),new(r())(w().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(w().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(w().inputOutput,"center",new(o().SFVec3f)),new(r())(w().inputOutput,"llimit",new(o().MFFloat)),new(r())(w().inputOutput,"ulimit",new(o().MFFloat)),new(r())(w().inputOutput,"limitOrientation",new(o().SFRotation)),new(r())(w().inputOutput,"stiffness",new(o().MFFloat)(0,0,0)),new(r())(w().inputOutput,"skinCoordIndex",new(o().MFInt32)),new(r())(w().inputOutput,"skinCoordWeight",new(o().MFFloat)),new(r())(w().inputOutput,"displacers",new(o().MFNode)),new(r())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(w().inputOnly,"addChildren",new(o().MFNode)),new(r())(w().inputOnly,"removeChildren",new(o().MFNode)),new(r())(w().inputOutput,"children",new(o().MFNode))]),getTypeName:function(){return"HAnimJoint"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"children"},initialize:function(){V().prototype.initialize.call(this),this._displacers.addInterest("set_displacers__",this),this.set_displacers__()},setCameraObject:function(t){V().prototype.setCameraObject.call(this,t||!!this._skinCoordIndex.length)},getModelMatrix:function(){return this.modelMatrix},getDisplacers:function(){return this.displacerNodes},set_displacers__:function(){const t=this.displacerNodes;t.length=0;for(const e of this._displacers){const n=k()(w().HAnimDisplacer,e);n&&t.push(n)}},traverse:function(t,e){t===M().CAMERA&&this._skinCoordIndex.length&&(e.getJoints().push(this),this.modelMatrix.assign(this.getMatrix()).multRight(e.getModelViewMatrix().get())),V().prototype.traverse.call(this,t,e)},groupTraverse:function(t,e){t===M().CAMERA&&this._skinCoordIndex.length&&(e.getJoints().push(this),this.modelMatrix.assign(e.getModelViewMatrix().get())),V().prototype.groupTraverse.call(this,t,e)}});const z=E;m().set("x_ite/Components/HAnim/HAnimJoint",z);const q=z;function R(t){O().call(this,t),this.addType(w().HAnimMotion)}R.prototype=Object.assign(Object.create(O().prototype),{constructor:R,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"enabled",new(o().SFBool)(!0)),new(r())(w().inputOnly,"next",new(o().SFBool)),new(r())(w().inputOnly,"previous",new(o().SFBool)),new(r())(w().inputOutput,"frameDuration",new(o().SFTime)(.1)),new(r())(w().inputOutput,"frameIncrement",new(o().SFInt32)(1)),new(r())(w().inputOutput,"frameIndex",new(o().SFInt32)(0)),new(r())(w().inputOutput,"loop",new(o().SFBool)(!1)),new(r())(w().inputOutput,"channels",new(o().SFString)),new(r())(w().inputOutput,"channelsEnabled",new(o().MFBool)),new(r())(w().inputOutput,"joints",new(o().MFString)),new(r())(w().inputOutput,"loa",new(o().SFInt32)(-1)),new(r())(w().inputOutput,"startFrame",new(o().SFInt32)),new(r())(w().inputOutput,"endFrame",new(o().SFInt32)),new(r())(w().inputOutput,"values",new(o().MFFloat)),new(r())(w().outputOnly,"cycleTime",new(o().SFTime)),new(r())(w().outputOnly,"elapsedTime",new(o().SFTime)),new(r())(w().outputOnly,"frameCount",new(o().SFInt32))]),getTypeName:function(){return"HAnimMotion"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"children"},initialize:function(){O().prototype.initialize.call(this)}});const P=R;m().set("x_ite/Components/HAnim/HAnimMotion",P);const J=P,G=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Components/Grouping/X3DGroupingNode");var U=t.n(G);function W(t){U().call(this,t),this.addType(w().HAnimSegment),this._mass.setUnit("mass")}W.prototype=Object.assign(Object.create(U().prototype),{constructor:W,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"mass",new(o().SFFloat)),new(r())(w().inputOutput,"centerOfMass",new(o().SFVec3f)),new(r())(w().inputOutput,"momentsOfInertia",new(o().MFFloat)(0,0,0,0,0,0,0,0,0)),new(r())(w().inputOutput,"displacers",new(o().MFNode)),new(r())(w().inputOutput,"coord",new(o().SFNode)),new(r())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(w().inputOnly,"addChildren",new(o().MFNode)),new(r())(w().inputOnly,"removeChildren",new(o().MFNode)),new(r())(w().inputOutput,"children",new(o().MFNode))]),getTypeName:function(){return"HAnimSegment"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"children"}});const Z=W;m().set("x_ite/Components/HAnim/HAnimSegment",Z);const K=Z;function L(t){V().call(this,t),this.addType(w().HAnimSite)}L.prototype=Object.assign(Object.create(V().prototype),{constructor:L,[Symbol.for("X_ITE.X3DBaseNode.fieldDefinitions")]:new(a())([new(r())(w().inputOutput,"metadata",new(o().SFNode)),new(r())(w().inputOutput,"description",new(o().SFString)),new(r())(w().inputOutput,"name",new(o().SFString)),new(r())(w().inputOutput,"translation",new(o().SFVec3f)),new(r())(w().inputOutput,"rotation",new(o().SFRotation)),new(r())(w().inputOutput,"scale",new(o().SFVec3f)(1,1,1)),new(r())(w().inputOutput,"scaleOrientation",new(o().SFRotation)),new(r())(w().inputOutput,"center",new(o().SFVec3f)),new(r())(w().inputOutput,"visible",new(o().SFBool)(!0)),new(r())(w().inputOutput,"bboxDisplay",new(o().SFBool)),new(r())(w().initializeOnly,"bboxSize",new(o().SFVec3f)(-1,-1,-1)),new(r())(w().initializeOnly,"bboxCenter",new(o().SFVec3f)),new(r())(w().inputOnly,"addChildren",new(o().MFNode)),new(r())(w().inputOnly,"removeChildren",new(o().MFNode)),new(r())(w().inputOutput,"children",new(o().MFNode))]),getTypeName:function(){return"HAnimSite"},getComponentName:function(){return"HAnim"},getContainerField:function(){return"children"}});const Q=L;m().set("x_ite/Components/HAnim/HAnimSite",Q);const Y=Q;n().addComponent({name:"HAnim",types:{HAnimDisplacer:f,HAnimHumanoid:j,HAnimJoint:q,HAnimMotion:J,HAnimSegment:K,HAnimSite:Y},abstractTypes:{}});const $=void 0;m().set("assets/components/HAnim",$)})();
|
|
@@ -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,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.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/Namespace\")"
|
|
48
|
-
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.
|
|
48
|
+
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
153
|
+
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
156
|
+
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
159
|
+
const X3DSensorNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
162
|
+
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.3.3")] .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.3.
|
|
1
|
+
/* X_ITE v8.3.3 */(()=>{"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.3.3")].require("x_ite/Components");var s=e.n(t);const i=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Fields");var n=e.n(i);const a=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Namespace");var o=e.n(a);const r=Symbol(),c=Symbol(),h=Symbol();function l(){this[r]=new Set}l.prototype={initialize:function(){const e=this.getElement();e.on("keydown.X3DKeyDeviceSensorContext",this[c].bind(this)),e.on("keyup.X3DKeyDeviceSensorContext",this[h].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)},[h]:function(e){for(const t of this[r])t.keyup(e)}};const y=l;o().set("x_ite/Browser/KeyDeviceSensor/X3DKeyDeviceSensorContext",y);const _=y,u=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Base/X3DFieldDefinition");var d=e.n(u);const b=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Base/FieldDefinitionArray");var k=e.n(b);const K=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Components/Core/X3DSensorNode");var p=e.n(K);const f=window[Symbol.for("X_ITE.X3D-8.3.3")].require("x_ite/Base/X3DConstants");var S=e.n(f);function w(e){p().call(this,e),this.addType(S().X3DKeyDeviceSensorNode)}w.prototype=Object.assign(Object.create(p().prototype),{constructor:w,initialize:function(){p().prototype.initialize.call(this),this.isLive().addInterest("set_live__",this),this.set_live__()},set_live__:function(){this.isLive().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 v=w;o().set("x_ite/Components/KeyDeviceSensor/X3DKeyDeviceSensorNode",v);const g=v;function D(e){g.call(this,e),this.addType(S().KeySensor)}D.prototype=Object.assign(Object.create(g.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"},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){g.call(this,e),this.addType(S().StringSensor)}T.prototype=Object.assign(Object.create(g.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"},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 x=P;s().addComponent({name:"KeyDeviceSensor",types:{KeySensor:C,StringSensor:x},abstractTypes:{X3DKeyDeviceSensorNode:g},browserContext:_});const R=void 0;o().set("assets/components/KeyDeviceSensor",R)})();
|