feat: Implement 3D Joyce Applets via JSXGraph
This is a stub/very preliminary implementation of calling JSXGraph for 3D Joyce applets. The only element/construction method implemented so far is a free point. NOTE: This implementation is so far extremely buggy. Loading a page with a 3D applet such as http://aleph0.clarku.edu/~djoyce/java/elements/bookXI/defXI9.html appears to enter a loop in which the div containing the JSXGraph Board progressively grows larger and larger, while using a tremendous amount of cpu.
This commit is contained in:
parent
e742ef3460
commit
4e2375b709
45 changed files with 23637 additions and 20477 deletions
|
@ -1,4 +1,4 @@
|
|||
/* X_ITE v9.2.4 */(() => { // webpackBootstrap
|
||||
/* X_ITE v9.7.0 */(() => { // webpackBootstrap
|
||||
/******/ "use strict";
|
||||
/******/ // The require scope
|
||||
/******/ var __webpack_require__ = {};
|
||||
|
@ -39,25 +39,25 @@ var __webpack_exports__ = {};
|
|||
// UNUSED EXPORTS: default
|
||||
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components\")"
|
||||
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Components");
|
||||
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Components");
|
||||
var Components_default = /*#__PURE__*/__webpack_require__.n(Components_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
|
||||
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Fields");
|
||||
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Fields");
|
||||
var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
|
||||
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Base/X3DFieldDefinition");
|
||||
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Base/X3DFieldDefinition");
|
||||
var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
|
||||
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Base/FieldDefinitionArray");
|
||||
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Base/FieldDefinitionArray");
|
||||
var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DChildNode\")"
|
||||
const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Components/Core/X3DChildNode");
|
||||
const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Components/Core/X3DChildNode");
|
||||
var X3DChildNode_default = /*#__PURE__*/__webpack_require__.n(X3DChildNode_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
|
||||
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Base/X3DConstants");
|
||||
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Base/X3DConstants");
|
||||
var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
|
||||
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Namespace");
|
||||
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Namespace");
|
||||
var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
|
||||
;// CONCATENATED MODULE: ./src/x_ite/Components/EventUtilities/BooleanFilter.js
|
||||
/*******************************************************************************
|
||||
|
@ -183,7 +183,7 @@ const __default__ = BooleanFilter;
|
|||
Namespace_default().add ("BooleanFilter", "x_ite/Components/EventUtilities/BooleanFilter", __default__);
|
||||
/* harmony default export */ const EventUtilities_BooleanFilter = (__default__);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Algorithm\")"
|
||||
const Algorithm_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("standard/Math/Algorithm");
|
||||
const Algorithm_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("standard/Math/Algorithm");
|
||||
var Algorithm_default = /*#__PURE__*/__webpack_require__.n(Algorithm_namespaceObject);
|
||||
;// CONCATENATED MODULE: ./src/x_ite/Components/EventUtilities/X3DSequencerNode.js
|
||||
/*******************************************************************************
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* X_ITE v9.2.4 */(() => { // webpackBootstrap
|
||||
/* X_ITE v9.7.0 */(() => { // webpackBootstrap
|
||||
/******/ "use strict";
|
||||
/******/ // The require scope
|
||||
/******/ var __webpack_require__ = {};
|
||||
|
@ -39,19 +39,19 @@ var __webpack_exports__ = {};
|
|||
// UNUSED EXPORTS: default
|
||||
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components\")"
|
||||
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Components");
|
||||
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Components");
|
||||
var Components_default = /*#__PURE__*/__webpack_require__.n(Components_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DBaseNode\")"
|
||||
const X3DBaseNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Base/X3DBaseNode");
|
||||
const X3DBaseNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Base/X3DBaseNode");
|
||||
var X3DBaseNode_default = /*#__PURE__*/__webpack_require__.n(X3DBaseNode_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
|
||||
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Base/X3DConstants");
|
||||
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Base/X3DConstants");
|
||||
var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
|
||||
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Fields");
|
||||
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Fields");
|
||||
var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
|
||||
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Namespace");
|
||||
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Namespace");
|
||||
var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
|
||||
;// CONCATENATED MODULE: ./src/x_ite/Browser/Geometry2D/Arc2DOptions.js
|
||||
/*******************************************************************************
|
||||
|
@ -204,10 +204,10 @@ const ArcClose2DOptions_default_ = ArcClose2DOptions;
|
|||
Namespace_default().add ("ArcClose2DOptions", "x_ite/Browser/Geometry2D/ArcClose2DOptions", ArcClose2DOptions_default_);
|
||||
/* harmony default export */ const Geometry2D_ArcClose2DOptions = (ArcClose2DOptions_default_);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Rendering/X3DGeometryNode\")"
|
||||
const X3DGeometryNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Components/Rendering/X3DGeometryNode");
|
||||
const X3DGeometryNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Components/Rendering/X3DGeometryNode");
|
||||
var X3DGeometryNode_default = /*#__PURE__*/__webpack_require__.n(X3DGeometryNode_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Complex\")"
|
||||
const Complex_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("standard/Math/Numbers/Complex");
|
||||
const Complex_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("standard/Math/Numbers/Complex");
|
||||
var Complex_default = /*#__PURE__*/__webpack_require__.n(Complex_namespaceObject);
|
||||
;// CONCATENATED MODULE: ./src/x_ite/Browser/Geometry2D/Circle2DOptions.js
|
||||
/*******************************************************************************
|
||||
|
@ -415,10 +415,10 @@ Object .assign (Object .setPrototypeOf (Disk2DOptions .prototype, (X3DBaseNode_d
|
|||
{
|
||||
const
|
||||
half = new (Complex_default()) (0.5, 0.5),
|
||||
texCoord1 = new (Complex_default()) (0, 0),
|
||||
texCoord2 = new (Complex_default()) (0, 0),
|
||||
point1 = new (Complex_default()) (0, 0),
|
||||
point2 = new (Complex_default()) (0, 0);
|
||||
texCoord1 = new (Complex_default()) (),
|
||||
texCoord2 = new (Complex_default()) (),
|
||||
point1 = new (Complex_default()) (),
|
||||
point2 = new (Complex_default()) ();
|
||||
|
||||
return function ()
|
||||
{
|
||||
|
@ -487,13 +487,13 @@ const Disk2DOptions_default_ = Disk2DOptions;
|
|||
Namespace_default().add ("Disk2DOptions", "x_ite/Browser/Geometry2D/Disk2DOptions", Disk2DOptions_default_);
|
||||
/* harmony default export */ const Geometry2D_Disk2DOptions = (Disk2DOptions_default_);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Geometry3D/IndexedFaceSet\")"
|
||||
const IndexedFaceSet_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Components/Geometry3D/IndexedFaceSet");
|
||||
const IndexedFaceSet_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Components/Geometry3D/IndexedFaceSet");
|
||||
var IndexedFaceSet_default = /*#__PURE__*/__webpack_require__.n(IndexedFaceSet_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Rendering/Coordinate\")"
|
||||
const Coordinate_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Components/Rendering/Coordinate");
|
||||
const Coordinate_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Components/Rendering/Coordinate");
|
||||
var Coordinate_default = /*#__PURE__*/__webpack_require__.n(Coordinate_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Texturing/TextureCoordinate\")"
|
||||
const TextureCoordinate_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Components/Texturing/TextureCoordinate");
|
||||
const TextureCoordinate_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Components/Texturing/TextureCoordinate");
|
||||
var TextureCoordinate_default = /*#__PURE__*/__webpack_require__.n(TextureCoordinate_namespaceObject);
|
||||
;// CONCATENATED MODULE: ./src/x_ite/Browser/Geometry2D/Rectangle2DOptions.js
|
||||
/*******************************************************************************
|
||||
|
@ -548,7 +548,6 @@ var TextureCoordinate_default = /*#__PURE__*/__webpack_require__.n(TextureCoordi
|
|||
|
||||
|
||||
|
||||
|
||||
function Rectangle2DOptions (executionContext)
|
||||
{
|
||||
X3DBaseNode_default().call (this, executionContext);
|
||||
|
@ -602,7 +601,7 @@ const Rectangle2DOptions_default_ = Rectangle2DOptions;
|
|||
Namespace_default().add ("Rectangle2DOptions", "x_ite/Browser/Geometry2D/Rectangle2DOptions", Rectangle2DOptions_default_);
|
||||
/* harmony default export */ const Geometry2D_Rectangle2DOptions = (Rectangle2DOptions_default_);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Browser/Core/PrimitiveQuality\")"
|
||||
const PrimitiveQuality_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Browser/Core/PrimitiveQuality");
|
||||
const PrimitiveQuality_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Browser/Core/PrimitiveQuality");
|
||||
var PrimitiveQuality_default = /*#__PURE__*/__webpack_require__.n(PrimitiveQuality_namespaceObject);
|
||||
;// CONCATENATED MODULE: ./src/x_ite/Browser/Geometry2D/X3DGeometry2DContext.js
|
||||
/*******************************************************************************
|
||||
|
@ -744,16 +743,16 @@ const X3DGeometry2DContext_default_ = X3DGeometry2DContext;
|
|||
Namespace_default().add ("X3DGeometry2DContext", "x_ite/Browser/Geometry2D/X3DGeometry2DContext", X3DGeometry2DContext_default_);
|
||||
/* harmony default export */ const Geometry2D_X3DGeometry2DContext = (X3DGeometry2DContext_default_);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
|
||||
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Base/X3DFieldDefinition");
|
||||
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Base/X3DFieldDefinition");
|
||||
var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
|
||||
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Base/FieldDefinitionArray");
|
||||
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Base/FieldDefinitionArray");
|
||||
var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Rendering/X3DLineGeometryNode\")"
|
||||
const X3DLineGeometryNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Components/Rendering/X3DLineGeometryNode");
|
||||
const X3DLineGeometryNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Components/Rendering/X3DLineGeometryNode");
|
||||
var X3DLineGeometryNode_default = /*#__PURE__*/__webpack_require__.n(X3DLineGeometryNode_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Algorithm\")"
|
||||
const Algorithm_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("standard/Math/Algorithm");
|
||||
const Algorithm_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("standard/Math/Algorithm");
|
||||
var Algorithm_default = /*#__PURE__*/__webpack_require__.n(Algorithm_namespaceObject);
|
||||
;// CONCATENATED MODULE: ./src/x_ite/Components/Geometry2D/Arc2D.js
|
||||
/*******************************************************************************
|
||||
|
@ -828,7 +827,9 @@ Object .assign (Object .setPrototypeOf (Arc2D .prototype, (X3DLineGeometryNode_d
|
|||
{
|
||||
X3DLineGeometryNode_default().prototype .set_live__ .call (this);
|
||||
|
||||
if (this .getLive () .getValue ())
|
||||
const alwaysUpdate = this .isLive () && this .getBrowser () .getBrowserOption ("AlwaysUpdateGeometries");
|
||||
|
||||
if (this .getLive () .getValue () || alwaysUpdate)
|
||||
this .getBrowser () .getArc2DOptions () .addInterest ("requestRebuild", this);
|
||||
else
|
||||
this .getBrowser () .getArc2DOptions () .removeInterest ("requestRebuild", this);
|
||||
|
@ -997,7 +998,9 @@ Object .assign (Object .setPrototypeOf (ArcClose2D .prototype, (X3DGeometryNode_
|
|||
{
|
||||
X3DGeometryNode_default().prototype .set_live__ .call (this);
|
||||
|
||||
if (this .getLive () .getValue ())
|
||||
const alwaysUpdate = this .isLive () && this .getBrowser () .getBrowserOption ("AlwaysUpdateGeometries");
|
||||
|
||||
if (this .getLive () .getValue () || alwaysUpdate)
|
||||
this .getBrowser () .getArcClose2DOptions () .addInterest ("requestRebuild", this);
|
||||
else
|
||||
this .getBrowser () .getArcClose2DOptions () .removeInterest ("requestRebuild", this);
|
||||
|
@ -1223,7 +1226,9 @@ Object .assign (Object .setPrototypeOf (Circle2D .prototype, (X3DLineGeometryNod
|
|||
{
|
||||
X3DLineGeometryNode_default().prototype .set_live__ .call (this);
|
||||
|
||||
if (this .getLive () .getValue ())
|
||||
const alwaysUpdate = this .isLive () && this .getBrowser () .getBrowserOption ("AlwaysUpdateGeometries");
|
||||
|
||||
if (this .getLive () .getValue () || alwaysUpdate)
|
||||
this .getBrowser () .getCircle2DOptions () .addInterest ("requestRebuild", this);
|
||||
else
|
||||
this .getBrowser () .getCircle2DOptions () .removeInterest ("requestRebuild", this);
|
||||
|
@ -1290,7 +1295,7 @@ const Circle2D_default_ = Circle2D;
|
|||
Namespace_default().add ("Circle2D", "x_ite/Components/Geometry2D/Circle2D", Circle2D_default_);
|
||||
/* harmony default export */ const Geometry2D_Circle2D = (Circle2D_default_);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Rendering/X3DPointGeometryNode\")"
|
||||
const X3DPointGeometryNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Components/Rendering/X3DPointGeometryNode");
|
||||
const X3DPointGeometryNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Components/Rendering/X3DPointGeometryNode");
|
||||
var X3DPointGeometryNode_default = /*#__PURE__*/__webpack_require__.n(X3DPointGeometryNode_namespaceObject);
|
||||
;// CONCATENATED MODULE: ./src/x_ite/Components/Geometry2D/Disk2D.js
|
||||
/*******************************************************************************
|
||||
|
@ -1368,7 +1373,9 @@ Object .assign (Object .setPrototypeOf (Disk2D .prototype, (X3DGeometryNode_defa
|
|||
{
|
||||
X3DGeometryNode_default().prototype .set_live__ .call (this);
|
||||
|
||||
if (this .getLive () .getValue ())
|
||||
const alwaysUpdate = this .isLive () && this .getBrowser () .getBrowserOption ("AlwaysUpdateGeometries");
|
||||
|
||||
if (this .getLive () .getValue () || alwaysUpdate)
|
||||
this .getBrowser () .getDisk2DOptions () .addInterest ("requestRebuild", this);
|
||||
else
|
||||
this .getBrowser () .getDisk2DOptions () .removeInterest ("requestRebuild", this);
|
||||
|
@ -1509,8 +1516,8 @@ Object .assign (Object .setPrototypeOf (Disk2D .prototype, (X3DGeometryNode_defa
|
|||
this .buildTexCoords = base .prototype .buildTexCoords;
|
||||
this .displaySimple = base .prototype .displaySimple;
|
||||
this .display = base .prototype .display;
|
||||
this .displaySimpleParticles = base .prototype .displaySimpleParticles;
|
||||
this .displayParticles = base .prototype .displayParticles;
|
||||
this .displaySimpleInstanced = base .prototype .displaySimpleInstanced;
|
||||
this .displayInstanced = base .prototype .displayInstanced;
|
||||
},
|
||||
updateRenderFunctions ()
|
||||
{ },
|
||||
|
@ -1787,10 +1794,8 @@ const Polypoint2D_default_ = Polypoint2D;
|
|||
Namespace_default().add ("Polypoint2D", "x_ite/Components/Geometry2D/Polypoint2D", Polypoint2D_default_);
|
||||
/* harmony default export */ const Geometry2D_Polypoint2D = (Polypoint2D_default_);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector2\")"
|
||||
const Vector2_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("standard/Math/Numbers/Vector2");
|
||||
const Vector2_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("standard/Math/Numbers/Vector2");
|
||||
var Vector2_default = /*#__PURE__*/__webpack_require__.n(Vector2_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector3\")"
|
||||
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("standard/Math/Numbers/Vector3");
|
||||
;// CONCATENATED MODULE: ./src/x_ite/Components/Geometry2D/Rectangle2D.js
|
||||
/*******************************************************************************
|
||||
*
|
||||
|
@ -1846,7 +1851,6 @@ const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .requir
|
|||
|
||||
|
||||
|
||||
|
||||
function Rectangle2D (executionContext)
|
||||
{
|
||||
X3DGeometryNode_default().call (this, executionContext);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* X_ITE v9.2.4 */(() => { // webpackBootstrap
|
||||
/* X_ITE v9.7.0 */(() => { // webpackBootstrap
|
||||
/******/ "use strict";
|
||||
/******/ // The require scope
|
||||
/******/ var __webpack_require__ = {};
|
||||
|
@ -39,13 +39,10 @@ var __webpack_exports__ = {};
|
|||
// UNUSED EXPORTS: default
|
||||
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components\")"
|
||||
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Components");
|
||||
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Components");
|
||||
var Components_default = /*#__PURE__*/__webpack_require__.n(Components_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
|
||||
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Fields");
|
||||
var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
|
||||
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Namespace");
|
||||
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Namespace");
|
||||
var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
|
||||
;// CONCATENATED MODULE: ./src/x_ite/Browser/KeyDeviceSensor/X3DKeyDeviceSensorContext.js
|
||||
/*******************************************************************************
|
||||
|
@ -95,8 +92,6 @@ var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceOb
|
|||
*
|
||||
******************************************************************************/
|
||||
|
||||
|
||||
|
||||
const
|
||||
_keyDeviceSensorNodes = Symbol (),
|
||||
_keydown = Symbol (),
|
||||
|
@ -149,17 +144,20 @@ const __default__ = X3DKeyDeviceSensorContext;
|
|||
|
||||
Namespace_default().add ("X3DKeyDeviceSensorContext", "x_ite/Browser/KeyDeviceSensor/X3DKeyDeviceSensorContext", __default__);
|
||||
/* harmony default export */ const KeyDeviceSensor_X3DKeyDeviceSensorContext = (__default__);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
|
||||
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Fields");
|
||||
var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
|
||||
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Base/X3DFieldDefinition");
|
||||
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Base/X3DFieldDefinition");
|
||||
var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
|
||||
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Base/FieldDefinitionArray");
|
||||
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Base/FieldDefinitionArray");
|
||||
var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DSensorNode\")"
|
||||
const X3DSensorNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Components/Core/X3DSensorNode");
|
||||
const X3DSensorNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Components/Core/X3DSensorNode");
|
||||
var X3DSensorNode_default = /*#__PURE__*/__webpack_require__.n(X3DSensorNode_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
|
||||
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Base/X3DConstants");
|
||||
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Base/X3DConstants");
|
||||
var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
|
||||
;// CONCATENATED MODULE: ./src/x_ite/Components/KeyDeviceSensor/X3DKeyDeviceSensorNode.js
|
||||
/*******************************************************************************
|
||||
|
@ -747,7 +745,7 @@ Object .assign (Object .setPrototypeOf (StringSensor .prototype, KeyDeviceSensor
|
|||
if (this ._deletionAllowed .getValue ())
|
||||
{
|
||||
if (this ._enteredText .length)
|
||||
this ._enteredText = this ._enteredText .getValue () .substr (0, this ._enteredText .length - 1);
|
||||
this ._enteredText = this ._enteredText .getValue () .substring (0, this ._enteredText .length - 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
/* X_ITE v9.2.4 */(() => { // webpackBootstrap
|
||||
/* X_ITE v9.7.0 */(() => { // webpackBootstrap
|
||||
/******/ "use strict";
|
||||
/******/ var __webpack_modules__ = ({
|
||||
|
||||
/***/ 72:
|
||||
/***/ 823:
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("lib/jquery");
|
||||
module.exports = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("lib/jquery");
|
||||
|
||||
/***/ })
|
||||
|
||||
|
@ -73,97 +73,97 @@ var __webpack_exports__ = {};
|
|||
// UNUSED EXPORTS: default
|
||||
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components\")"
|
||||
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Components");
|
||||
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Components");
|
||||
var Components_default = /*#__PURE__*/__webpack_require__.n(Components_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DBaseNode\")"
|
||||
const X3DBaseNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Base/X3DBaseNode");
|
||||
const X3DBaseNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Base/X3DBaseNode");
|
||||
var X3DBaseNode_default = /*#__PURE__*/__webpack_require__.n(X3DBaseNode_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
|
||||
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Base/X3DFieldDefinition");
|
||||
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Base/X3DFieldDefinition");
|
||||
var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
|
||||
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Base/FieldDefinitionArray");
|
||||
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Base/FieldDefinitionArray");
|
||||
var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DField\")"
|
||||
const X3DField_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Base/X3DField");
|
||||
const X3DField_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Base/X3DField");
|
||||
var X3DField_default = /*#__PURE__*/__webpack_require__.n(X3DField_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DArrayField\")"
|
||||
const X3DArrayField_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Base/X3DArrayField");
|
||||
const X3DArrayField_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Base/X3DArrayField");
|
||||
var X3DArrayField_default = /*#__PURE__*/__webpack_require__.n(X3DArrayField_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
|
||||
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Fields");
|
||||
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Fields");
|
||||
var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Browser/X3DBrowser\")"
|
||||
const X3DBrowser_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Browser/X3DBrowser");
|
||||
const X3DBrowser_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Browser/X3DBrowser");
|
||||
var X3DBrowser_default = /*#__PURE__*/__webpack_require__.n(X3DBrowser_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Configuration/ComponentInfo\")"
|
||||
const ComponentInfo_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Configuration/ComponentInfo");
|
||||
const ComponentInfo_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Configuration/ComponentInfo");
|
||||
var ComponentInfo_default = /*#__PURE__*/__webpack_require__.n(ComponentInfo_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Configuration/ComponentInfoArray\")"
|
||||
const ComponentInfoArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Configuration/ComponentInfoArray");
|
||||
const ComponentInfoArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Configuration/ComponentInfoArray");
|
||||
var ComponentInfoArray_default = /*#__PURE__*/__webpack_require__.n(ComponentInfoArray_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Configuration/ProfileInfo\")"
|
||||
const ProfileInfo_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Configuration/ProfileInfo");
|
||||
const ProfileInfo_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Configuration/ProfileInfo");
|
||||
var ProfileInfo_default = /*#__PURE__*/__webpack_require__.n(ProfileInfo_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Configuration/ProfileInfoArray\")"
|
||||
const ProfileInfoArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Configuration/ProfileInfoArray");
|
||||
const ProfileInfoArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Configuration/ProfileInfoArray");
|
||||
var ProfileInfoArray_default = /*#__PURE__*/__webpack_require__.n(ProfileInfoArray_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Configuration/ConcreteNodesArray\")"
|
||||
const ConcreteNodesArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Configuration/ConcreteNodesArray");
|
||||
const ConcreteNodesArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Configuration/ConcreteNodesArray");
|
||||
var ConcreteNodesArray_default = /*#__PURE__*/__webpack_require__.n(ConcreteNodesArray_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Configuration/AbstractNodesArray\")"
|
||||
const AbstractNodesArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Configuration/AbstractNodesArray");
|
||||
const AbstractNodesArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Configuration/AbstractNodesArray");
|
||||
var AbstractNodesArray_default = /*#__PURE__*/__webpack_require__.n(AbstractNodesArray_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Configuration/UnitInfo\")"
|
||||
const UnitInfo_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Configuration/UnitInfo");
|
||||
const UnitInfo_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Configuration/UnitInfo");
|
||||
var UnitInfo_default = /*#__PURE__*/__webpack_require__.n(UnitInfo_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Configuration/UnitInfoArray\")"
|
||||
const UnitInfoArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Configuration/UnitInfoArray");
|
||||
const UnitInfoArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Configuration/UnitInfoArray");
|
||||
var UnitInfoArray_default = /*#__PURE__*/__webpack_require__.n(UnitInfoArray_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Execution/NamedNodesArray\")"
|
||||
const NamedNodesArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Execution/NamedNodesArray");
|
||||
const NamedNodesArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Execution/NamedNodesArray");
|
||||
var NamedNodesArray_default = /*#__PURE__*/__webpack_require__.n(NamedNodesArray_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Execution/ImportedNodesArray\")"
|
||||
const ImportedNodesArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Execution/ImportedNodesArray");
|
||||
const ImportedNodesArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Execution/ImportedNodesArray");
|
||||
var ImportedNodesArray_default = /*#__PURE__*/__webpack_require__.n(ImportedNodesArray_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Execution/X3DImportedNode\")"
|
||||
const X3DImportedNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Execution/X3DImportedNode");
|
||||
const X3DImportedNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Execution/X3DImportedNode");
|
||||
var X3DImportedNode_default = /*#__PURE__*/__webpack_require__.n(X3DImportedNode_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Execution/ExportedNodesArray\")"
|
||||
const ExportedNodesArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Execution/ExportedNodesArray");
|
||||
const ExportedNodesArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Execution/ExportedNodesArray");
|
||||
var ExportedNodesArray_default = /*#__PURE__*/__webpack_require__.n(ExportedNodesArray_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Execution/X3DExportedNode\")"
|
||||
const X3DExportedNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Execution/X3DExportedNode");
|
||||
const X3DExportedNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Execution/X3DExportedNode");
|
||||
var X3DExportedNode_default = /*#__PURE__*/__webpack_require__.n(X3DExportedNode_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Execution/X3DExecutionContext\")"
|
||||
const X3DExecutionContext_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Execution/X3DExecutionContext");
|
||||
const X3DExecutionContext_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Execution/X3DExecutionContext");
|
||||
var X3DExecutionContext_default = /*#__PURE__*/__webpack_require__.n(X3DExecutionContext_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Execution/X3DScene\")"
|
||||
const X3DScene_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Execution/X3DScene");
|
||||
const X3DScene_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Execution/X3DScene");
|
||||
var X3DScene_default = /*#__PURE__*/__webpack_require__.n(X3DScene_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Prototype/ExternProtoDeclarationArray\")"
|
||||
const ExternProtoDeclarationArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Prototype/ExternProtoDeclarationArray");
|
||||
const ExternProtoDeclarationArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Prototype/ExternProtoDeclarationArray");
|
||||
var ExternProtoDeclarationArray_default = /*#__PURE__*/__webpack_require__.n(ExternProtoDeclarationArray_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Prototype/ProtoDeclarationArray\")"
|
||||
const ProtoDeclarationArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Prototype/ProtoDeclarationArray");
|
||||
const ProtoDeclarationArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Prototype/ProtoDeclarationArray");
|
||||
var ProtoDeclarationArray_default = /*#__PURE__*/__webpack_require__.n(ProtoDeclarationArray_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Prototype/X3DExternProtoDeclaration\")"
|
||||
const X3DExternProtoDeclaration_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Prototype/X3DExternProtoDeclaration");
|
||||
const X3DExternProtoDeclaration_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Prototype/X3DExternProtoDeclaration");
|
||||
var X3DExternProtoDeclaration_default = /*#__PURE__*/__webpack_require__.n(X3DExternProtoDeclaration_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Prototype/X3DProtoDeclaration\")"
|
||||
const X3DProtoDeclaration_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Prototype/X3DProtoDeclaration");
|
||||
const X3DProtoDeclaration_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Prototype/X3DProtoDeclaration");
|
||||
var X3DProtoDeclaration_default = /*#__PURE__*/__webpack_require__.n(X3DProtoDeclaration_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Prototype/X3DProtoDeclarationNode\")"
|
||||
const X3DProtoDeclarationNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Prototype/X3DProtoDeclarationNode");
|
||||
const X3DProtoDeclarationNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Prototype/X3DProtoDeclarationNode");
|
||||
var X3DProtoDeclarationNode_default = /*#__PURE__*/__webpack_require__.n(X3DProtoDeclarationNode_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Routing/RouteArray\")"
|
||||
const RouteArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Routing/RouteArray");
|
||||
const RouteArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Routing/RouteArray");
|
||||
var RouteArray_default = /*#__PURE__*/__webpack_require__.n(RouteArray_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Routing/X3DRoute\")"
|
||||
const X3DRoute_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Routing/X3DRoute");
|
||||
const X3DRoute_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Routing/X3DRoute");
|
||||
var X3DRoute_default = /*#__PURE__*/__webpack_require__.n(X3DRoute_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
|
||||
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Namespace");
|
||||
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Namespace");
|
||||
var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
|
||||
;// CONCATENATED MODULE: ./src/x_ite/Browser/Scripting/evaluate.js
|
||||
/*******************************************************************************
|
||||
|
@ -239,13 +239,13 @@ const __default__ = evaluate;
|
|||
Namespace_default().add ("evaluate", "x_ite/Browser/Scripting/evaluate", __default__);
|
||||
/* harmony default export */ const Scripting_evaluate = (__default__);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DChildNode\")"
|
||||
const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Components/Core/X3DChildNode");
|
||||
const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Components/Core/X3DChildNode");
|
||||
var X3DChildNode_default = /*#__PURE__*/__webpack_require__.n(X3DChildNode_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Networking/X3DUrlObject\")"
|
||||
const X3DUrlObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Components/Networking/X3DUrlObject");
|
||||
const X3DUrlObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Components/Networking/X3DUrlObject");
|
||||
var X3DUrlObject_default = /*#__PURE__*/__webpack_require__.n(X3DUrlObject_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
|
||||
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Base/X3DConstants");
|
||||
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Base/X3DConstants");
|
||||
var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
|
||||
;// CONCATENATED MODULE: ./src/x_ite/Components/Scripting/X3DScriptNode.js
|
||||
/*******************************************************************************
|
||||
|
@ -342,13 +342,13 @@ const X3DScriptNode_default_ = X3DScriptNode;
|
|||
Namespace_default().add ("X3DScriptNode", "x_ite/Components/Scripting/X3DScriptNode", X3DScriptNode_default_);
|
||||
/* harmony default export */ const Scripting_X3DScriptNode = (X3DScriptNode_default_);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/InputOutput/FileLoader\")"
|
||||
const FileLoader_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/InputOutput/FileLoader");
|
||||
const FileLoader_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/InputOutput/FileLoader");
|
||||
var FileLoader_default = /*#__PURE__*/__webpack_require__.n(FileLoader_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields/SFNodeCache\")"
|
||||
const SFNodeCache_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Fields/SFNodeCache");
|
||||
const SFNodeCache_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Fields/SFNodeCache");
|
||||
var SFNodeCache_default = /*#__PURE__*/__webpack_require__.n(SFNodeCache_namespaceObject);
|
||||
;// CONCATENATED MODULE: ./src/x_ite/Components/Scripting/Script.js
|
||||
/* provided dependency */ var $ = __webpack_require__(72);
|
||||
/* provided dependency */ var $ = __webpack_require__(823);
|
||||
/*******************************************************************************
|
||||
*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
|
@ -482,11 +482,36 @@ Object .assign (Object .setPrototypeOf (Script .prototype, Scripting_X3DScriptNo
|
|||
},
|
||||
unloadData ()
|
||||
{
|
||||
this .initialize__ ("");
|
||||
// Call shutdown.
|
||||
|
||||
const shutdown = this .context ?.get ("shutdown");
|
||||
|
||||
if (typeof shutdown === "function")
|
||||
this .call__ (shutdown, "shutdown");
|
||||
|
||||
// Disconnect shutdown.
|
||||
|
||||
$(window) .off (`.Script${this .getId ()}`);
|
||||
|
||||
// Disconnect prepareEvents.
|
||||
|
||||
this .getBrowser () .prepareEvents () .removeInterest ("call__", this);
|
||||
|
||||
// Disconnect eventsProcessed.
|
||||
|
||||
this .removeInterest ("call__", this);
|
||||
|
||||
// Disconnect fields.
|
||||
|
||||
for (const field of this .getUserDefinedFields ())
|
||||
field .removeInterest ("set_field__", this);
|
||||
},
|
||||
loadData ()
|
||||
async loadData ()
|
||||
{
|
||||
new (FileLoader_default()) (this) .loadDocument (this ._url, (data) =>
|
||||
// See: 29.2.2 Script execution
|
||||
await this .unloadData ();
|
||||
|
||||
new (FileLoader_default()) (this) .loadDocument (this ._url, data =>
|
||||
{
|
||||
if (data === null)
|
||||
{
|
||||
|
@ -502,7 +527,25 @@ Object .assign (Object .setPrototypeOf (Script .prototype, Scripting_X3DScriptNo
|
|||
},
|
||||
createGlobalObject ()
|
||||
{
|
||||
const browser = this .getBrowser ();
|
||||
const getScriptNode = () => this;
|
||||
|
||||
const handler =
|
||||
{
|
||||
get (target, key)
|
||||
{
|
||||
switch (key)
|
||||
{
|
||||
case "getScriptNode":
|
||||
return getScriptNode;
|
||||
case "currentScene":
|
||||
return getScriptNode () .getExecutionContext ();
|
||||
default:
|
||||
return target [key];
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
const browser = new Proxy (this .getBrowser (), handler);
|
||||
|
||||
function SFNode (vrmlSyntax)
|
||||
{
|
||||
|
@ -602,28 +645,25 @@ Object .assign (Object .setPrototypeOf (Script .prototype, Scripting_X3DScriptNo
|
|||
|
||||
for (const field of this .getUserDefinedFields ())
|
||||
{
|
||||
const name = field .getName ();
|
||||
|
||||
if (field .getAccessType () === (X3DConstants_default()).inputOnly)
|
||||
continue;
|
||||
|
||||
if (!(name in globalObject))
|
||||
const names = [field .getName ()];
|
||||
|
||||
if (field .getAccessType () === (X3DConstants_default()).inputOutput)
|
||||
names .push (field .getName () + "_changed");
|
||||
|
||||
for (const name of names)
|
||||
{
|
||||
if (name in globalObject)
|
||||
continue;
|
||||
|
||||
globalObject [name] =
|
||||
{
|
||||
get: field .valueOf .bind (field),
|
||||
set: field .setValue .bind (field),
|
||||
};
|
||||
}
|
||||
|
||||
if (field .getAccessType () === (X3DConstants_default()).inputOutput)
|
||||
{
|
||||
globalObject [name + "_changed"] =
|
||||
{
|
||||
get: field .valueOf .bind (field),
|
||||
set: field .setValue .bind (field),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
return Object .create (Object .prototype, globalObject);
|
||||
|
@ -658,26 +698,13 @@ Object .assign (Object .setPrototypeOf (Script .prototype, Scripting_X3DScriptNo
|
|||
},
|
||||
evaluate (sourceText)
|
||||
{
|
||||
const browser = this .getBrowser ();
|
||||
if (!this .globalObject)
|
||||
this .globalObject = this .createGlobalObject ();
|
||||
|
||||
try
|
||||
{
|
||||
browser .getScriptStack () .push (this);
|
||||
|
||||
if (!this .globalObject)
|
||||
this .globalObject = this .createGlobalObject ();
|
||||
|
||||
return Scripting_evaluate (SFNodeCache_default().get (this), this .globalObject, sourceText);
|
||||
}
|
||||
finally
|
||||
{
|
||||
browser .getScriptStack () .pop ();
|
||||
}
|
||||
return Scripting_evaluate (SFNodeCache_default().get (this), this .globalObject, sourceText);
|
||||
},
|
||||
initialize__ (sourceText)
|
||||
async initialize__ (sourceText)
|
||||
{
|
||||
this .disconnect ();
|
||||
|
||||
const browser = this .getBrowser ();
|
||||
|
||||
// Create context.
|
||||
|
@ -690,7 +717,7 @@ Object .assign (Object .setPrototypeOf (Script .prototype, Scripting_X3DScriptNo
|
|||
const shutdown = this .context .get ("shutdown");
|
||||
|
||||
if (typeof shutdown === "function")
|
||||
$(window) .on ("unload.Script" + this .getId (), this .call__ .bind (this, shutdown, "shutdown"));
|
||||
$(window) .on (`unload.Script${this .getId ()}`, () => this .call__ (shutdown, "shutdown"));
|
||||
|
||||
// Connect prepareEvents.
|
||||
|
||||
|
@ -717,7 +744,7 @@ Object .assign (Object .setPrototypeOf (Script .prototype, Scripting_X3DScriptNo
|
|||
const callback = this .context .get (field .getName ());
|
||||
|
||||
if (typeof callback === "function")
|
||||
field .addInterest ("set_field__", this, callback);
|
||||
field .addInterest ("set_field__", this, callback, [ ]);
|
||||
|
||||
break;
|
||||
}
|
||||
|
@ -726,7 +753,7 @@ Object .assign (Object .setPrototypeOf (Script .prototype, Scripting_X3DScriptNo
|
|||
const callback = this .context .get ("set_" + field .getName ());
|
||||
|
||||
if (typeof callback === "function")
|
||||
field .addInterest ("set_field__", this, callback);
|
||||
field .addInterest ("set_field__", this, callback, [ ]);
|
||||
|
||||
break;
|
||||
}
|
||||
|
@ -738,43 +765,37 @@ Object .assign (Object .setPrototypeOf (Script .prototype, Scripting_X3DScriptNo
|
|||
const initialize = this .context .get ("initialize");
|
||||
|
||||
if (typeof initialize === "function")
|
||||
this .call__ (initialize, "initialize");
|
||||
await this .call__ (initialize, "initialize");
|
||||
},
|
||||
call__ (callback, name)
|
||||
async call__ (callback, name)
|
||||
{
|
||||
const browser = this .getBrowser ();
|
||||
|
||||
browser .getScriptStack () .push (this);
|
||||
|
||||
try
|
||||
{
|
||||
callback .call (SFNodeCache_default().get (this), browser .getCurrentTime ());
|
||||
await callback .call (SFNodeCache_default().get (this), this .getBrowser () .getCurrentTime ());
|
||||
}
|
||||
catch (error)
|
||||
{
|
||||
this .setError (`in function '${name}'`, error);
|
||||
}
|
||||
|
||||
browser .getScriptStack () .pop ();
|
||||
},
|
||||
set_field__ (callback, field)
|
||||
async set_field__ (callback, cache, field)
|
||||
{
|
||||
const browser = this .getBrowser ();
|
||||
|
||||
field .setTainted (true);
|
||||
browser .getScriptStack () .push (this);
|
||||
const copy = cache .pop () ?? field .create ();
|
||||
|
||||
try
|
||||
{
|
||||
callback .call (SFNodeCache_default().get (this), field .valueOf (), browser .getCurrentTime ());
|
||||
copy .assign (field);
|
||||
|
||||
await callback .call (SFNodeCache_default().get (this), copy .valueOf (), this .getBrowser () .getCurrentTime ());
|
||||
}
|
||||
catch (error)
|
||||
{
|
||||
this .setError (`in function '${field .getName()}'`, error);
|
||||
this .setError (`in function '${field .getName ()}'`, error);
|
||||
}
|
||||
finally
|
||||
{
|
||||
cache .push (copy);
|
||||
}
|
||||
|
||||
browser .getScriptStack () .pop ();
|
||||
field .setTainted (false);
|
||||
},
|
||||
setError (reason, error)
|
||||
{
|
||||
|
@ -785,35 +806,9 @@ Object .assign (Object .setPrototypeOf (Script .prototype, Scripting_X3DScriptNo
|
|||
console .error (`JavaScript Error in Script '${this .getName ()}', ${reason}\nworld url is '${worldURL}':`);
|
||||
console .error (error);
|
||||
},
|
||||
disconnect ()
|
||||
{
|
||||
// Call shutdown.
|
||||
|
||||
const shutdown = this .context ?.get ("shutdown");
|
||||
|
||||
if (typeof shutdown === "function")
|
||||
this .call__ (shutdown, "shutdown");
|
||||
|
||||
// Disconnect shutdown.
|
||||
|
||||
$(window) .off (".Script" + this .getId ());
|
||||
|
||||
// Disconnect prepareEvents.
|
||||
|
||||
this .getBrowser () .prepareEvents () .removeInterest ("call__", this);
|
||||
|
||||
// Disconnect eventsProcessed.
|
||||
|
||||
this .removeInterest ("call__", this);
|
||||
|
||||
// Disconnect fields.
|
||||
|
||||
for (const field of this .getUserDefinedFields ())
|
||||
field .removeInterest ("set_field__", this);
|
||||
},
|
||||
dispose ()
|
||||
{
|
||||
this .disconnect ();
|
||||
this .unloadData ();
|
||||
|
||||
Scripting_X3DScriptNode .prototype .dispose .call (this);
|
||||
},
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* X_ITE v9.2.4 */(() => { // webpackBootstrap
|
||||
/* X_ITE v9.7.0 */(() => { // webpackBootstrap
|
||||
/******/ var __webpack_modules__ = ({
|
||||
|
||||
/***/ 636:
|
||||
/***/ 134:
|
||||
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
||||
|
||||
/**
|
||||
|
@ -13599,7 +13599,7 @@
|
|||
console.warn('Font file could not be downloaded. Try using a different browser.');
|
||||
}
|
||||
} else {
|
||||
var fs = __webpack_require__(432);
|
||||
var fs = __webpack_require__(256);
|
||||
var buffer = arrayBufferToNodeBuffer(arrayBuffer);
|
||||
fs.writeFileSync(fileName, buffer);
|
||||
}
|
||||
|
@ -14072,7 +14072,7 @@
|
|||
* @param {Function} callback - The function to call when the font load completes
|
||||
*/
|
||||
function loadFromFile(path, callback) {
|
||||
var fs = __webpack_require__(432);
|
||||
var fs = __webpack_require__(256);
|
||||
fs.readFile(path, function(err, buffer) {
|
||||
if (err) {
|
||||
return callback(err.message);
|
||||
|
@ -14449,7 +14449,7 @@
|
|||
* @return {opentype.Font}
|
||||
*/
|
||||
function loadSync(url, opt) {
|
||||
var fs = __webpack_require__(432);
|
||||
var fs = __webpack_require__(256);
|
||||
var buffer = fs.readFileSync(url);
|
||||
return parseBuffer(nodeBufferToArrayBuffer(buffer), opt);
|
||||
}
|
||||
|
@ -14484,15 +14484,15 @@
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 72:
|
||||
/***/ 823:
|
||||
/***/ ((module) => {
|
||||
|
||||
"use strict";
|
||||
module.exports = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("lib/jquery");
|
||||
module.exports = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("lib/jquery");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 432:
|
||||
/***/ 256:
|
||||
/***/ (() => {
|
||||
|
||||
/* (ignored) */
|
||||
|
@ -14564,25 +14564,25 @@ var __webpack_exports__ = {};
|
|||
// UNUSED EXPORTS: default
|
||||
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components\")"
|
||||
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Components");
|
||||
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Components");
|
||||
var Components_default = /*#__PURE__*/__webpack_require__.n(Components_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Fields\")"
|
||||
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Fields");
|
||||
const Fields_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Fields");
|
||||
var Fields_default = /*#__PURE__*/__webpack_require__.n(Fields_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DFieldDefinition\")"
|
||||
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Base/X3DFieldDefinition");
|
||||
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Base/X3DFieldDefinition");
|
||||
var X3DFieldDefinition_default = /*#__PURE__*/__webpack_require__.n(X3DFieldDefinition_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/FieldDefinitionArray\")"
|
||||
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Base/FieldDefinitionArray");
|
||||
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Base/FieldDefinitionArray");
|
||||
var FieldDefinitionArray_default = /*#__PURE__*/__webpack_require__.n(FieldDefinitionArray_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Core/X3DNode\")"
|
||||
const X3DNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Components/Core/X3DNode");
|
||||
const X3DNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Components/Core/X3DNode");
|
||||
var X3DNode_default = /*#__PURE__*/__webpack_require__.n(X3DNode_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Networking/X3DUrlObject\")"
|
||||
const X3DUrlObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Components/Networking/X3DUrlObject");
|
||||
const X3DUrlObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Components/Networking/X3DUrlObject");
|
||||
var X3DUrlObject_default = /*#__PURE__*/__webpack_require__.n(X3DUrlObject_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Namespace\")"
|
||||
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Namespace");
|
||||
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Namespace");
|
||||
var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
|
||||
;// CONCATENATED MODULE: ./src/x_ite/Browser/Text/TextAlignment.js
|
||||
/*******************************************************************************
|
||||
|
@ -14648,12 +14648,12 @@ const __default__ = TextAlignment;
|
|||
Namespace_default().add ("TextAlignment", "x_ite/Browser/Text/TextAlignment", __default__);
|
||||
/* harmony default export */ const Text_TextAlignment = (__default__);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/InputOutput/FileLoader\")"
|
||||
const FileLoader_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/InputOutput/FileLoader");
|
||||
const FileLoader_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/InputOutput/FileLoader");
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DConstants\")"
|
||||
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Base/X3DConstants");
|
||||
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Base/X3DConstants");
|
||||
var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Browser/Networking/URLs\")"
|
||||
const URLs_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Browser/Networking/URLs");
|
||||
const URLs_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Browser/Networking/URLs");
|
||||
var URLs_default = /*#__PURE__*/__webpack_require__.n(URLs_namespaceObject);
|
||||
;// CONCATENATED MODULE: ./src/x_ite/Components/Text/X3DFontStyleNode.js
|
||||
/*******************************************************************************
|
||||
|
@ -14712,30 +14712,29 @@ var URLs_default = /*#__PURE__*/__webpack_require__.n(URLs_namespaceObject);
|
|||
|
||||
|
||||
/*
|
||||
* Font paths for default SERIF, SANS and TYPWRITER families.
|
||||
* Font paths for default SERIF, SANS and TYPEWRITER families.
|
||||
*/
|
||||
|
||||
const Fonts =
|
||||
{
|
||||
SERIF: {
|
||||
PLAIN: URLs_default().getFontsURL ("DroidSerif-Regular.ttf"),
|
||||
ITALIC: URLs_default().getFontsURL ("DroidSerif-Italic.ttf"),
|
||||
BOLD: URLs_default().getFontsURL ("DroidSerif-Bold.ttf"),
|
||||
BOLDITALIC: URLs_default().getFontsURL ("DroidSerif-BoldItalic.ttf"),
|
||||
},
|
||||
SANS: {
|
||||
PLAIN: URLs_default().getFontsURL ("Ubuntu-R.ttf"),
|
||||
ITALIC: URLs_default().getFontsURL ("Ubuntu-RI.ttf"),
|
||||
BOLD: URLs_default().getFontsURL ("Ubuntu-B.ttf"),
|
||||
BOLDITALIC: URLs_default().getFontsURL ("Ubuntu-BI.ttf"),
|
||||
},
|
||||
TYPEWRITER: {
|
||||
PLAIN: URLs_default().getFontsURL ("UbuntuMono-R.ttf"),
|
||||
ITALIC: URLs_default().getFontsURL ("UbuntuMono-RI.ttf"),
|
||||
BOLD: URLs_default().getFontsURL ("UbuntuMono-B.ttf"),
|
||||
BOLDITALIC: URLs_default().getFontsURL ("UbuntuMono-BI.ttf"),
|
||||
},
|
||||
};
|
||||
const Fonts = new Map ([
|
||||
["SERIF", new Map ([
|
||||
["PLAIN", URLs_default().getFontsURL ("DroidSerif-Regular.ttf")],
|
||||
["ITALIC", URLs_default().getFontsURL ("DroidSerif-Italic.ttf")],
|
||||
["BOLD", URLs_default().getFontsURL ("DroidSerif-Bold.ttf")],
|
||||
["BOLDITALIC", URLs_default().getFontsURL ("DroidSerif-BoldItalic.ttf")],
|
||||
])],
|
||||
["SANS", new Map ([
|
||||
["PLAIN", URLs_default().getFontsURL ("Ubuntu-R.ttf")],
|
||||
["ITALIC", URLs_default().getFontsURL ("Ubuntu-RI.ttf")],
|
||||
["BOLD", URLs_default().getFontsURL ("Ubuntu-B.ttf")],
|
||||
["BOLDITALIC", URLs_default().getFontsURL ("Ubuntu-BI.ttf")],
|
||||
])],
|
||||
["TYPEWRITER", new Map ([
|
||||
["PLAIN", URLs_default().getFontsURL ("UbuntuMono-R.ttf")],
|
||||
["ITALIC", URLs_default().getFontsURL ("UbuntuMono-RI.ttf")],
|
||||
["BOLD", URLs_default().getFontsURL ("UbuntuMono-B.ttf")],
|
||||
["BOLDITALIC", URLs_default().getFontsURL ("UbuntuMono-BI.ttf")],
|
||||
])],
|
||||
]);
|
||||
|
||||
function X3DFontStyleNode (executionContext)
|
||||
{
|
||||
|
@ -14837,10 +14836,10 @@ Object .assign (Object .setPrototypeOf (X3DFontStyleNode .prototype, (X3DNode_de
|
|||
},
|
||||
getDefaultFont (familyName)
|
||||
{
|
||||
const family = Fonts [familyName];
|
||||
const family = Fonts .get (familyName);
|
||||
|
||||
if (family)
|
||||
return family [this ._style .getValue ()] || family .PLAIN;
|
||||
return family .get (this ._style .getValue ()) ?? family .get ("PLAIN");
|
||||
|
||||
return;
|
||||
},
|
||||
|
@ -14857,7 +14856,7 @@ Object .assign (Object .setPrototypeOf (X3DFontStyleNode .prototype, (X3DNode_de
|
|||
this .familyStack .length = 0;
|
||||
|
||||
for (const familyName of family)
|
||||
this .familyStack .push (this .getDefaultFont (familyName) || familyName);
|
||||
this .familyStack .push (this .getDefaultFont (familyName) ?? familyName);
|
||||
|
||||
this .loadNext ();
|
||||
},
|
||||
|
@ -14922,19 +14921,19 @@ const X3DFontStyleNode_default_ = X3DFontStyleNode;
|
|||
Namespace_default().add ("X3DFontStyleNode", "x_ite/Components/Text/X3DFontStyleNode", X3DFontStyleNode_default_);
|
||||
/* harmony default export */ const Text_X3DFontStyleNode = (X3DFontStyleNode_default_);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Browser/Core/PrimitiveQuality\")"
|
||||
const PrimitiveQuality_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Browser/Core/PrimitiveQuality");
|
||||
const PrimitiveQuality_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Browser/Core/PrimitiveQuality");
|
||||
var PrimitiveQuality_default = /*#__PURE__*/__webpack_require__.n(PrimitiveQuality_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Geometry/Box2\")"
|
||||
const Box2_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("standard/Math/Geometry/Box2");
|
||||
const Box2_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("standard/Math/Geometry/Box2");
|
||||
var Box2_default = /*#__PURE__*/__webpack_require__.n(Box2_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Geometry/Box3\")"
|
||||
const Box3_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("standard/Math/Geometry/Box3");
|
||||
const Box3_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("standard/Math/Geometry/Box3");
|
||||
var Box3_default = /*#__PURE__*/__webpack_require__.n(Box3_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector2\")"
|
||||
const Vector2_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("standard/Math/Numbers/Vector2");
|
||||
const Vector2_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("standard/Math/Numbers/Vector2");
|
||||
var Vector2_default = /*#__PURE__*/__webpack_require__.n(Vector2_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Vector3\")"
|
||||
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("standard/Math/Numbers/Vector3");
|
||||
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("standard/Math/Numbers/Vector3");
|
||||
var Vector3_default = /*#__PURE__*/__webpack_require__.n(Vector3_namespaceObject);
|
||||
;// CONCATENATED MODULE: ./src/x_ite/Browser/Text/X3DTextGeometry.js
|
||||
/*******************************************************************************
|
||||
|
@ -14993,22 +14992,22 @@ var Vector3_default = /*#__PURE__*/__webpack_require__.n(Vector3_namespaceObject
|
|||
var
|
||||
bbox = new (Box2_default()) (),
|
||||
lineBBox = new (Box2_default()) (),
|
||||
min = new (Vector2_default()) (0, 0),
|
||||
max = new (Vector2_default()) (0, 0),
|
||||
glyphMin = new (Vector2_default()) (0, 0),
|
||||
glyphMax = new (Vector2_default()) (0, 0),
|
||||
min3 = new (Vector3_default()) (0, 0, 0),
|
||||
max3 = new (Vector3_default()) (0, 0, 0),
|
||||
size = new (Vector2_default()) (0, 0),
|
||||
center = new (Vector2_default()) (0, 0),
|
||||
size1_2 = new (Vector2_default()) (0, 0),
|
||||
translation = new (Vector2_default()) (0, 0),
|
||||
lineBound = new (Vector2_default()) (0, 0),
|
||||
origin = new (Vector3_default()) (0, 0, 0),
|
||||
vector = new (Vector2_default()) (0, 0),
|
||||
min = new (Vector2_default()) (),
|
||||
max = new (Vector2_default()) (),
|
||||
glyphMin = new (Vector2_default()) (),
|
||||
glyphMax = new (Vector2_default()) (),
|
||||
min3 = new (Vector3_default()) (),
|
||||
max3 = new (Vector3_default()) (),
|
||||
size = new (Vector2_default()) (),
|
||||
center = new (Vector2_default()) (),
|
||||
size1_2 = new (Vector2_default()) (),
|
||||
translation = new (Vector2_default()) (),
|
||||
lineBound = new (Vector2_default()) (),
|
||||
origin = new (Vector3_default()) (),
|
||||
vector = new (Vector2_default()) (),
|
||||
box2 = new (Box2_default()) (),
|
||||
zero2 = new (Vector2_default()) (0, 0),
|
||||
zero3 = new (Vector3_default()) (0, 0, 0);
|
||||
zero2 = new (Vector2_default()) (),
|
||||
zero3 = new (Vector3_default()) ();
|
||||
|
||||
function X3DTextGeometry (text, fontStyle)
|
||||
{
|
||||
|
@ -15016,10 +15015,10 @@ function X3DTextGeometry (text, fontStyle)
|
|||
this .text = text;
|
||||
this .fontStyle = fontStyle;
|
||||
this .glyphs = [ ];
|
||||
this .minorAlignment = new (Vector2_default()) (0, 0);
|
||||
this .minorAlignment = new (Vector2_default()) ();
|
||||
this .translations = [ ];
|
||||
this .charSpacings = [ ];
|
||||
this .bearing = new (Vector2_default()) (0, 0);
|
||||
this .bearing = new (Vector2_default()) ();
|
||||
this .yPad = [ ];
|
||||
this .bbox = new (Box3_default()) ();
|
||||
}
|
||||
|
@ -15108,7 +15107,7 @@ Object .assign (X3DTextGeometry .prototype,
|
|||
// Resize array in grow only fashion.
|
||||
|
||||
for (var i = array .length; i < size; ++ i)
|
||||
array .push (new (Vector2_default()) (0, 0));
|
||||
array .push (new (Vector2_default()) ());
|
||||
|
||||
array .length = size;
|
||||
},
|
||||
|
@ -15556,13 +15555,13 @@ const X3DTextGeometry_default_ = X3DTextGeometry;
|
|||
Namespace_default().add ("X3DTextGeometry", "x_ite/Browser/Text/X3DTextGeometry", X3DTextGeometry_default_);
|
||||
/* harmony default export */ const Text_X3DTextGeometry = (X3DTextGeometry_default_);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Numbers/Matrix4\")"
|
||||
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("standard/Math/Numbers/Matrix4");
|
||||
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("standard/Math/Numbers/Matrix4");
|
||||
var Matrix4_default = /*#__PURE__*/__webpack_require__.n(Matrix4_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"standard/Math/Algorithms/Bezier\")"
|
||||
const Bezier_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("standard/Math/Algorithms/Bezier");
|
||||
const Bezier_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("standard/Math/Algorithms/Bezier");
|
||||
var Bezier_default = /*#__PURE__*/__webpack_require__.n(Bezier_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"lib/libtess\")"
|
||||
const libtess_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("lib/libtess");
|
||||
const libtess_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("lib/libtess");
|
||||
var libtess_default = /*#__PURE__*/__webpack_require__.n(libtess_namespaceObject);
|
||||
;// CONCATENATED MODULE: ./src/x_ite/Browser/Text/PolygonText.js
|
||||
/*******************************************************************************
|
||||
|
@ -15639,8 +15638,8 @@ Object .assign (Object .setPrototypeOf (PolygonText .prototype, Text_X3DTextGeom
|
|||
build: (() =>
|
||||
{
|
||||
const
|
||||
min = new (Vector3_default()) (0, 0, 0),
|
||||
max = new (Vector3_default()) (0, 0, 0);
|
||||
min = new (Vector3_default()) (),
|
||||
max = new (Vector3_default()) ();
|
||||
|
||||
return function ()
|
||||
{
|
||||
|
@ -15891,7 +15890,7 @@ Object .assign (Object .setPrototypeOf (PolygonText .prototype, Text_X3DTextGeom
|
|||
|
||||
tessy .gluTessCallback ((libtess_default()).gluEnum .GLU_TESS_VERTEX_DATA, vertexCallback);
|
||||
tessy .gluTessCallback ((libtess_default()).gluEnum .GLU_TESS_COMBINE, combineCallback);
|
||||
tessy .gluTessProperty ((libtess_default()).gluEnum .GLU_TESS_WINDING_RULE, (libtess_default()).windingRule .GLU_TESS_WINDING_ODD);
|
||||
tessy .gluTessProperty ((libtess_default()).gluEnum .GLU_TESS_WINDING_RULE, (libtess_default()).windingRule .GLU_TESS_WINDING_NONZERO);
|
||||
tessy .gluTessNormal (0, 0, 1);
|
||||
|
||||
return function (contours, triangles)
|
||||
|
@ -16048,8 +16047,8 @@ const FontStyle_default_ = FontStyle;
|
|||
Namespace_default().add ("FontStyle", "x_ite/Components/Text/FontStyle", FontStyle_default_);
|
||||
/* harmony default export */ const Text_FontStyle = (FontStyle_default_);
|
||||
;// CONCATENATED MODULE: ./src/x_ite/Browser/Text/X3DTextContext.js
|
||||
/* provided dependency */ var $ = __webpack_require__(72);
|
||||
/* provided dependency */ var opentype = __webpack_require__(636);
|
||||
/* provided dependency */ var $ = __webpack_require__(823);
|
||||
/* provided dependency */ var opentype = __webpack_require__(134);
|
||||
/*******************************************************************************
|
||||
*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
|
@ -16189,10 +16188,10 @@ const X3DTextContext_default_ = X3DTextContext;
|
|||
Namespace_default().add ("X3DTextContext", "x_ite/Browser/Text/X3DTextContext", X3DTextContext_default_);
|
||||
/* harmony default export */ const Text_X3DTextContext = (X3DTextContext_default_);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Components/Rendering/X3DGeometryNode\")"
|
||||
const X3DGeometryNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Components/Rendering/X3DGeometryNode");
|
||||
const X3DGeometryNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Components/Rendering/X3DGeometryNode");
|
||||
var X3DGeometryNode_default = /*#__PURE__*/__webpack_require__.n(X3DGeometryNode_namespaceObject);
|
||||
;// CONCATENATED MODULE: external "window [Symbol .for (\"X_ITE.X3D\")] .require (\"x_ite/Base/X3DCast\")"
|
||||
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Base/X3DCast");
|
||||
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.7.0")] .require ("x_ite/Base/X3DCast");
|
||||
var X3DCast_default = /*#__PURE__*/__webpack_require__.n(X3DCast_namespaceObject);
|
||||
;// CONCATENATED MODULE: ./src/x_ite/Components/Text/Text.js
|
||||
/*******************************************************************************
|
||||
|
@ -16287,8 +16286,10 @@ Object .assign (Object .setPrototypeOf (Text .prototype, (X3DGeometryNode_defaul
|
|||
{
|
||||
X3DGeometryNode_default().prototype .set_live__ .call (this);
|
||||
|
||||
if (this .getLive () .getValue ())
|
||||
this .getBrowser () .getBrowserOptions () ._PrimitiveQuality .addInterest ("requestRebuild", this);
|
||||
const alwaysUpdate = this .isLive () && this .getBrowser () .getBrowserOption ("AlwaysUpdateGeometries");
|
||||
|
||||
if (this .getLive () .getValue () || alwaysUpdate)
|
||||
this .getBrowser () .getBrowserOptions () ._PrimitiveQuality .addInterest ("requestRebuild", this);
|
||||
else
|
||||
this .getBrowser () .getBrowserOptions () ._PrimitiveQuality .removeInterest ("requestRebuild", this);
|
||||
},
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -4,7 +4,7 @@
|
|||
|
||||
// Handle both importing via UMD and modules:
|
||||
export default X3D;
|
||||
//export = X3D;
|
||||
export = X3D;
|
||||
|
||||
declare const X3D: X3D;
|
||||
|
||||
|
@ -45,6 +45,7 @@ interface X3D
|
|||
readonly ProtoDeclarationArray: typeof ProtoDeclarationArray;
|
||||
readonly X3DExternProtoDeclaration: typeof X3DExternProtoDeclaration;
|
||||
readonly X3DProtoDeclaration: typeof X3DProtoDeclaration;
|
||||
readonly NamedNodesArray: typeof NamedNodesArray;
|
||||
readonly ImportedNodesArray: typeof ImportedNodesArray;
|
||||
readonly X3DImportedNode: typeof X3DImportedNode;
|
||||
readonly ExportedNodesArray: typeof ExportedNodesArray;
|
||||
|
@ -176,6 +177,10 @@ declare class X3DBrowser
|
|||
* Returns a list of all abstract node classes that are supported by this browser.
|
||||
*/
|
||||
readonly abstractNodes: AbstractNodesArray;
|
||||
/**
|
||||
* Returns a list of all field type classes that are supported by this browser.
|
||||
*/
|
||||
readonly fieldTypes: FieldTypesArray;
|
||||
/**
|
||||
* A String value containing the URL against which relative URLs are resolved. By default, this is the address of the web page itself. Although this feature is rarely needed, it can be useful when loading a `data:` or `blob:` URL with `Browser.loadURL`, or when using `Browser.createX3DFromString`. The value of *baseURL* will only be used with the external browser.
|
||||
*/
|
||||
|
@ -184,7 +189,10 @@ declare class X3DBrowser
|
|||
* The real type of this class is dependent on whether the user code is inside a prototype instance or not. If the user code is inside a prototype instance the property represent an X3DExecutionContext otherwise it represent an X3DScene.
|
||||
*/
|
||||
readonly currentScene: X3DScene;
|
||||
|
||||
/**
|
||||
* Returns a reference to the corresponding X3DCanvasElement.
|
||||
*/
|
||||
readonly element: X3DCanvasElement;
|
||||
/**
|
||||
* Replace the current world with this new scene that has been loaded or constructed from somewhere. A Promise is returned that will be resolved when the scene is completely loaded.
|
||||
*/
|
||||
|
@ -278,6 +286,26 @@ declare class X3DBrowser
|
|||
* Prints *args* to the browser’s console, inserting a newline character after the output. Successive calls to this function will result in each output presented on separate lines. The output is the implicit call to the object’s `toString ()` function.
|
||||
*/
|
||||
printLn (... args: any []): void;
|
||||
/**
|
||||
* Returns the X3D VRML-encoded string of current scene that, if parsed as the value of `createX3DFromString ()` of X3DBrowser, produce this scene.
|
||||
*/
|
||||
toVRMLString (options?: ToStringOptions): string;
|
||||
/**
|
||||
* Returns the X3D XML-encoded string of current scene that, if parsed as the value of `createX3DFromString ()` of X3DBrowser, produce this scene.
|
||||
*
|
||||
* For *options* see `X3DScene.toVRMLString`.
|
||||
*/
|
||||
toXMLString (options?: ToStringOptions): string;
|
||||
/**
|
||||
* Returns the X3D JSON-encoded string of current scene that, if parsed as the value of `createX3DFromString ()` of X3DBrowser, produce this scene.
|
||||
*
|
||||
* For *options* see `X3DScene.toVRMLString`.
|
||||
*/
|
||||
toJSONString (options?: ToStringOptions): string;
|
||||
/**
|
||||
* Disposes this object.
|
||||
*/
|
||||
dispose (): void;
|
||||
|
||||
// VRML methods
|
||||
|
||||
|
@ -304,7 +332,7 @@ declare class X3DBrowser
|
|||
/**
|
||||
* Replace the current world with this new nodes that has been loaded or constructed from somewhere.
|
||||
*/
|
||||
replaceWorld (nodes: MFNode): string;
|
||||
replaceWorld (nodes: MFNode): Promise <void>;
|
||||
/**
|
||||
* The string may be any valid VRML content.
|
||||
*/
|
||||
|
@ -421,13 +449,13 @@ type ContextMenuOptions = {
|
|||
callback?: MenuCallback,
|
||||
build?: ($triggerElement: unknown, e: Event) => ContextMenuOptions,
|
||||
itemClickEvent?: string,
|
||||
}
|
||||
};
|
||||
|
||||
type UserMenuCallback = () => UserMenuItems
|
||||
type UserMenuItems = Record <string, UserMenuItem>
|
||||
type MenuCallback = (itemKey: string, options: ContextMenuOptions, event: Event) => (boolean | void)
|
||||
type MenuIconCallback = (options: ContextMenuOptions, $itemElement: HTMLElement, itemKey: string, item: unknown) => string
|
||||
type MenuBoolCallback = (itemKey: string, options: ContextMenuOptions) => boolean
|
||||
type UserMenuCallback = (browser: X3DBrowser) => UserMenuItems;
|
||||
type UserMenuItems = Record <string, UserMenuItem>;
|
||||
type MenuCallback = (itemKey: string, options: ContextMenuOptions, event: Event) => (boolean | void);
|
||||
type MenuIconCallback = (options: ContextMenuOptions, $itemElement: HTMLElement, itemKey: string, item: unknown) => string;
|
||||
type MenuBoolCallback = (itemKey: string, options: ContextMenuOptions) => boolean;
|
||||
type UserMenuItem = {
|
||||
name: string,
|
||||
isHtmlName?: boolean,
|
||||
|
@ -446,7 +474,7 @@ type UserMenuItem = {
|
|||
items?: UserMenuItems,
|
||||
accesskey?: string,
|
||||
dataAttr?: Record <string, string>,
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* A scene is an extension of the execution context services with additional services provided.
|
||||
|
@ -529,6 +557,10 @@ declare class X3DScene extends X3DExecutionContext
|
|||
* For *options* see `X3DScene.toVRMLString`.
|
||||
*/
|
||||
toJSONString (options?: ToStringOptions): string;
|
||||
/**
|
||||
* Disposes this object.
|
||||
*/
|
||||
dispose (): void;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -656,11 +688,11 @@ interface X3DConcreteNode extends X3DAbstractNode
|
|||
/**
|
||||
* The default container field name for this node. This property is read only.
|
||||
*/
|
||||
readonly containerField: string;
|
||||
static readonly containerField: string;
|
||||
/**
|
||||
* Returns an array with two strings defining the first version and last version where this node is specified. This property is read only.
|
||||
*/
|
||||
readonly specificationRange:
|
||||
static readonly specificationRange:
|
||||
{
|
||||
readonly from: string,
|
||||
readonly to: string,
|
||||
|
@ -668,7 +700,7 @@ interface X3DConcreteNode extends X3DAbstractNode
|
|||
/**
|
||||
* Returns a list of fields defined for the SFNode object.
|
||||
*/
|
||||
readonly fieldDefinitions: FieldDefinitionArray;
|
||||
static readonly fieldDefinitions: FieldDefinitionArray;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -684,17 +716,22 @@ interface X3DAbstractNode
|
|||
/**
|
||||
* The node type name for this class. This property is read only.
|
||||
*/
|
||||
readonly typeName: string;
|
||||
static readonly typeName: string;
|
||||
/**
|
||||
* Returns an object with two properties *name* and *level* which can be used to get a ComponentInfo object from the X3D browser. This property is read only.
|
||||
*/
|
||||
readonly componentInfo:
|
||||
static readonly componentInfo:
|
||||
{
|
||||
readonly name: string,
|
||||
readonly level: number,
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* FieldTypesArray is an object that represents an array of classes derived from X3DField. This is a read-only object. Individual elements of the array can be referenced using the standard C-style dereferencing operator (e.g. *FieldTypesArray*[*index*], where *index* is an integer-valued expression with 0\<=*index*\<length and length is the number of elements in the array).
|
||||
*/
|
||||
declare class FieldTypesArray extends X3DInfoArray <X3DField> { }
|
||||
|
||||
/**
|
||||
* ProfileInfoArray is an object that represents an array of ProfileInfo objects. This is a read-only object. Individual elements of the array can be referenced using the standard C-style dereferencing operator (e.g. *profileInfoArrayName*[*index*], where *index* is an integer-valued expression with 0\<=*index*\<length and length is the number of elements in the array).
|
||||
*/
|
||||
|
@ -788,7 +825,7 @@ declare class ImportedNodesArray extends X3DInfoArray <X3DImportedNode> { }
|
|||
/**
|
||||
* The X3DImportedNode object stores information about a particular import declaration. The object consists solely of read-only properties. It does not define any additional functions.
|
||||
*/
|
||||
declare class X3DImportedNode
|
||||
class X3DImportedNode
|
||||
{
|
||||
/**
|
||||
* The SFNode object of the Inline node. This property is read only.
|
||||
|
@ -816,7 +853,7 @@ declare class ExportedNodesArray extends X3DInfoArray <X3DExportedNode> { }
|
|||
/**
|
||||
* The X3DExportedNode object stores information about a particular export declaration. The object consists solely of read-only properties. It does not define any additional functions.
|
||||
*/
|
||||
declare class X3DExportedNode
|
||||
class X3DExportedNode
|
||||
{
|
||||
/**
|
||||
* A string of the exported name. This property is read only.
|
||||
|
@ -1435,6 +1472,9 @@ declare class X3DFieldDefinition
|
|||
*/
|
||||
declare class X3DField
|
||||
{
|
||||
/**
|
||||
* Returns a copy of this X3DField.
|
||||
*/
|
||||
copy (): this;
|
||||
/**
|
||||
* Returns true if the passed SF* or MF* *field* of the same type is equals to this object, otherwise false.
|
||||
|
@ -1462,7 +1502,7 @@ declare class X3DField
|
|||
getFieldInterests (): Set <this>
|
||||
addFieldCallback (key: any, callback: (value: unknown) => void): void;
|
||||
removeFieldCallback (key: any): void;
|
||||
getFieldCallbacks (): Map <any, (value: X3DField) => void>;
|
||||
getFieldCallbacks (): Map <any, (value: this) => void>;
|
||||
addInputRoute (route: X3DRoute): void;
|
||||
removeInputRoute (route: X3DRoute): void;
|
||||
getInputRoutes (): Set <X3DRoute>;
|
||||
|
@ -1472,6 +1512,9 @@ declare class X3DField
|
|||
addRouteCallback (key: any, callback: () => void): void;
|
||||
removeRouteCallback (key: any): void;
|
||||
getRouteCallbacks (): Map <any, () => void>;
|
||||
/**
|
||||
* Disposes this object.
|
||||
*/
|
||||
dispose (): void;
|
||||
}
|
||||
|
||||
|
@ -1890,6 +1933,10 @@ declare class SFNode extends X3DField
|
|||
* @deprecated Use `node .getField (name) .addFieldCallback (key, callback)`.
|
||||
*/
|
||||
addFieldCallback (name: string, key: any, callback: (value: unknown) => void): void;
|
||||
/**
|
||||
* Returns the corresponding X3DFieldDefinition object associated with *name*.
|
||||
*/
|
||||
getFieldDefinition (name: string): X3DFieldDefinition;
|
||||
/**
|
||||
* Returns a list of fields defined for the SFNode object.
|
||||
*/
|
||||
|
@ -2040,11 +2087,15 @@ declare class SFRotation extends X3DField
|
|||
/**
|
||||
* Set the value of this rotation to the rotation matrix passed in *matrix*.
|
||||
*/
|
||||
setMatrix (matrix: SFMatrix3): void;
|
||||
setMatrix (matrix: SFMatrix3d | SFMatrix3f): void;
|
||||
/**
|
||||
* Returns a SFRotation whose value is the spherical linear interpolation between this object's rotation and *destRotation* at value 0 <= *t* <= 1. For *t* = 0, the value is this object's rotation. For *t* = 1, the value is *destRotation*.
|
||||
*/
|
||||
slerp (destination: SFRotation, t: number): SFRotation;
|
||||
/**
|
||||
* Straightens the rotation so that the x-axis of the resulting rotation is parallel to the plane spawned by upVector. The default value for *upVector* is the y-axis.
|
||||
*/
|
||||
straighten (upVector?: SFVec3d | SFVec3f): SFRotation;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -5127,7 +5178,7 @@ interface ComposedShaderProxy extends X3DShaderNodeProxy, X3DProgrammableShaderO
|
|||
*
|
||||
* This field is of access type 'inputOutput' and type MFNode.
|
||||
*/
|
||||
field: MFNode <X3DChildNodeProxy>;
|
||||
field: MFNode <fieldProxy>;
|
||||
/**
|
||||
* isSelected indicates this shader instance is selected for use by browser Warning: it is an error to define this transient outputOnly field in an X3D file, instead only use it a source for ROUTE events.
|
||||
*
|
||||
|
@ -13097,7 +13148,7 @@ interface PackagedShaderProxy extends X3DShaderNodeProxy, X3DUrlObjectProxy, X3D
|
|||
*
|
||||
* This field is of access type 'inputOutput' and type MFNode.
|
||||
*/
|
||||
field: MFNode <X3DChildNodeProxy>;
|
||||
field: MFNode <fieldProxy>;
|
||||
/**
|
||||
* isSelected indicates this shader instance is selected for use by browser Warning: it is an error to define this transient outputOnly field in an X3D file, instead only use it a source for ROUTE events.
|
||||
*
|
||||
|
@ -15457,7 +15508,7 @@ interface ScriptProxy extends X3DScriptNodeProxy
|
|||
*
|
||||
* This field is of access type 'inputOutput' and type MFNode.
|
||||
*/
|
||||
field: MFNode <X3DChildNodeProxy>;
|
||||
field: MFNode <fieldProxy>;
|
||||
/**
|
||||
* load=true means load immediately, load=false means defer loading or else unload a previously loaded scene.
|
||||
*
|
||||
|
@ -15681,7 +15732,7 @@ interface ShaderProgramProxy extends X3DNodeProxy, X3DUrlObjectProxy, X3DProgram
|
|||
*
|
||||
* This field is of access type 'inputOutput' and type MFNode.
|
||||
*/
|
||||
field: MFNode <X3DChildNodeProxy>;
|
||||
field: MFNode <fieldProxy>;
|
||||
/**
|
||||
* load=true means load immediately, load=false means defer loading or else unload a previously loaded scene.
|
||||
*
|
||||
|
|
12935
etc/deps/x_ite/x_ite.mjs
12935
etc/deps/x_ite/x_ite.mjs
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue