chore: Update all dependencies to current and add overlooked assets
Resolves #37.
This commit is contained in:
parent
ff819f99c6
commit
3165ea540b
67 changed files with 75230 additions and 49837 deletions
1205
etc/deps/x_ite/assets/components/EventUtilities.js
Normal file
1205
etc/deps/x_ite/assets/components/EventUtilities.js
Normal file
File diff suppressed because it is too large
Load diff
2178
etc/deps/x_ite/assets/components/Geometry2D.js
Normal file
2178
etc/deps/x_ite/assets/components/Geometry2D.js
Normal file
File diff suppressed because it is too large
Load diff
918
etc/deps/x_ite/assets/components/KeyDeviceSensor.js
Normal file
918
etc/deps/x_ite/assets/components/KeyDeviceSensor.js
Normal file
|
@ -0,0 +1,918 @@
|
|||
/* X_ITE v9.2.4 */(() => { // webpackBootstrap
|
||||
/******/ "use strict";
|
||||
/******/ // The require scope
|
||||
/******/ var __webpack_require__ = {};
|
||||
/******/
|
||||
/************************************************************************/
|
||||
/******/ /* webpack/runtime/compat get default export */
|
||||
/******/ (() => {
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = (module) => {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ () => (module['default']) :
|
||||
/******/ () => (module);
|
||||
/******/ __webpack_require__.d(getter, { a: getter });
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/define property getters */
|
||||
/******/ (() => {
|
||||
/******/ // define getter functions for harmony exports
|
||||
/******/ __webpack_require__.d = (exports, definition) => {
|
||||
/******/ for(var key in definition) {
|
||||
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
||||
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/ })();
|
||||
/******/
|
||||
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
||||
/******/ (() => {
|
||||
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
||||
/******/ })();
|
||||
/******/
|
||||
/************************************************************************/
|
||||
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");
|
||||
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");
|
||||
var Namespace_default = /*#__PURE__*/__webpack_require__.n(Namespace_namespaceObject);
|
||||
;// CONCATENATED MODULE: ./src/x_ite/Browser/KeyDeviceSensor/X3DKeyDeviceSensorContext.js
|
||||
/*******************************************************************************
|
||||
*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* Copyright create3000, Scheffelstraße 31a, Leipzig, Germany 2011 - 2022.
|
||||
*
|
||||
* All rights reserved. Holger Seelig <holger.seelig@yahoo.de>.
|
||||
*
|
||||
* The copyright notice above does not evidence any actual of intended
|
||||
* publication of such source code, and is an unpublished work by create3000.
|
||||
* This material contains CONFIDENTIAL INFORMATION that is the property of
|
||||
* create3000.
|
||||
*
|
||||
* No permission is granted to copy, distribute, or create derivative works from
|
||||
* the contents of this software, in whole or in part, without the prior written
|
||||
* permission of create3000.
|
||||
*
|
||||
* NON-MILITARY USE ONLY
|
||||
*
|
||||
* All create3000 software are effectively free software with a non-military use
|
||||
* restriction. It is free. Well commented source is provided. You may reuse the
|
||||
* source in any way you please with the exception anything that uses it must be
|
||||
* marked to indicate is contains 'non-military use only' components.
|
||||
*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* Copyright 2011 - 2022, Holger Seelig <holger.seelig@yahoo.de>.
|
||||
*
|
||||
* This file is part of the X_ITE Project.
|
||||
*
|
||||
* X_ITE is free software: you can redistribute it and/or modify it under the
|
||||
* terms of the GNU General Public License version 3 only, as published by the
|
||||
* Free Software Foundation.
|
||||
*
|
||||
* X_ITE is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
||||
* A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
|
||||
* details (a copy is included in the LICENSE file that accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version 3
|
||||
* along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
|
||||
* copy of the GPLv3 License.
|
||||
*
|
||||
* For Silvio, Joy and Adi.
|
||||
*
|
||||
******************************************************************************/
|
||||
|
||||
|
||||
|
||||
const
|
||||
_keyDeviceSensorNodes = Symbol (),
|
||||
_keydown = Symbol (),
|
||||
_keyup = Symbol ();
|
||||
|
||||
function X3DKeyDeviceSensorContext ()
|
||||
{
|
||||
this [_keyDeviceSensorNodes] = new Set ();
|
||||
}
|
||||
|
||||
Object .assign (X3DKeyDeviceSensorContext .prototype,
|
||||
{
|
||||
initialize ()
|
||||
{
|
||||
const element = this .getElement ();
|
||||
|
||||
element .on ("keydown.X3DKeyDeviceSensorContext", this [_keydown] .bind (this));
|
||||
element .on ("keyup.X3DKeyDeviceSensorContext", this [_keyup] .bind (this));
|
||||
},
|
||||
addKeyDeviceSensorNode (keyDeviceSensorNode)
|
||||
{
|
||||
this [_keyDeviceSensorNodes] .add (keyDeviceSensorNode);
|
||||
},
|
||||
removeKeyDeviceSensorNode (keyDeviceSensorNode)
|
||||
{
|
||||
this [_keyDeviceSensorNodes] .delete (keyDeviceSensorNode);
|
||||
},
|
||||
getKeyDeviceSensorNodes ()
|
||||
{
|
||||
return this [_keyDeviceSensorNodes];
|
||||
},
|
||||
[_keydown] (event)
|
||||
{
|
||||
//console .log (event .keyCode);
|
||||
|
||||
for (const keyDeviceSensorNode of this [_keyDeviceSensorNodes])
|
||||
keyDeviceSensorNode .keydown (event);
|
||||
},
|
||||
[_keyup] (event)
|
||||
{
|
||||
//console .log (event .which);
|
||||
|
||||
for (const keyDeviceSensorNode of this [_keyDeviceSensorNodes])
|
||||
keyDeviceSensorNode .keyup (event);
|
||||
},
|
||||
});
|
||||
|
||||
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/Base/X3DFieldDefinition\")"
|
||||
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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");
|
||||
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");
|
||||
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");
|
||||
var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
|
||||
;// CONCATENATED MODULE: ./src/x_ite/Components/KeyDeviceSensor/X3DKeyDeviceSensorNode.js
|
||||
/*******************************************************************************
|
||||
*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* Copyright create3000, Scheffelstraße 31a, Leipzig, Germany 2011 - 2022.
|
||||
*
|
||||
* All rights reserved. Holger Seelig <holger.seelig@yahoo.de>.
|
||||
*
|
||||
* The copyright notice above does not evidence any actual of intended
|
||||
* publication of such source code, and is an unpublished work by create3000.
|
||||
* This material contains CONFIDENTIAL INFORMATION that is the property of
|
||||
* create3000.
|
||||
*
|
||||
* No permission is granted to copy, distribute, or create derivative works from
|
||||
* the contents of this software, in whole or in part, without the prior written
|
||||
* permission of create3000.
|
||||
*
|
||||
* NON-MILITARY USE ONLY
|
||||
*
|
||||
* All create3000 software are effectively free software with a non-military use
|
||||
* restriction. It is free. Well commented source is provided. You may reuse the
|
||||
* source in any way you please with the exception anything that uses it must be
|
||||
* marked to indicate is contains 'non-military use only' components.
|
||||
*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* Copyright 2011 - 2022, Holger Seelig <holger.seelig@yahoo.de>.
|
||||
*
|
||||
* This file is part of the X_ITE Project.
|
||||
*
|
||||
* X_ITE is free software: you can redistribute it and/or modify it under the
|
||||
* terms of the GNU General Public License version 3 only, as published by the
|
||||
* Free Software Foundation.
|
||||
*
|
||||
* X_ITE is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
||||
* A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
|
||||
* details (a copy is included in the LICENSE file that accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version 3
|
||||
* along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
|
||||
* copy of the GPLv3 License.
|
||||
*
|
||||
* For Silvio, Joy and Adi.
|
||||
*
|
||||
******************************************************************************/
|
||||
|
||||
|
||||
|
||||
|
||||
function X3DKeyDeviceSensorNode (executionContext)
|
||||
{
|
||||
X3DSensorNode_default().call (this, executionContext);
|
||||
|
||||
this .addType ((X3DConstants_default()).X3DKeyDeviceSensorNode);
|
||||
}
|
||||
|
||||
Object .assign (Object .setPrototypeOf (X3DKeyDeviceSensorNode .prototype, (X3DSensorNode_default()).prototype),
|
||||
{
|
||||
initialize ()
|
||||
{
|
||||
X3DSensorNode_default().prototype .initialize .call (this);
|
||||
|
||||
this .getLive () .addInterest ("set_live__", this);
|
||||
|
||||
this .set_live__ ();
|
||||
},
|
||||
set_live__ ()
|
||||
{
|
||||
if (this .getLive () .getValue ())
|
||||
{
|
||||
this ._enabled .addInterest ("set_enabled__", this);
|
||||
|
||||
if (this ._enabled .getValue ())
|
||||
this .enable ();
|
||||
}
|
||||
else
|
||||
{
|
||||
this ._enabled .removeInterest ("set_enabled__", this);
|
||||
|
||||
this .disable ();
|
||||
}
|
||||
},
|
||||
set_enabled__ ()
|
||||
{
|
||||
if (this ._enabled .getValue ())
|
||||
this .enable ();
|
||||
else
|
||||
this .disable ();
|
||||
},
|
||||
enable ()
|
||||
{
|
||||
this .getBrowser () .addKeyDeviceSensorNode (this);
|
||||
},
|
||||
disable ()
|
||||
{
|
||||
this .getBrowser () .removeKeyDeviceSensorNode (this);
|
||||
|
||||
this .release ();
|
||||
},
|
||||
keydown () { },
|
||||
keyup () { },
|
||||
release () { },
|
||||
});
|
||||
|
||||
Object .defineProperties (X3DKeyDeviceSensorNode,
|
||||
{
|
||||
typeName:
|
||||
{
|
||||
value: "X3DKeyDeviceSensorNode",
|
||||
enumerable: true,
|
||||
},
|
||||
componentInfo:
|
||||
{
|
||||
value: Object .freeze ({ name: "KeyDeviceSensor", level: 1 }),
|
||||
enumerable: true,
|
||||
},
|
||||
});
|
||||
|
||||
const X3DKeyDeviceSensorNode_default_ = X3DKeyDeviceSensorNode;
|
||||
;
|
||||
|
||||
Namespace_default().add ("X3DKeyDeviceSensorNode", "x_ite/Components/KeyDeviceSensor/X3DKeyDeviceSensorNode", X3DKeyDeviceSensorNode_default_);
|
||||
/* harmony default export */ const KeyDeviceSensor_X3DKeyDeviceSensorNode = (X3DKeyDeviceSensorNode_default_);
|
||||
;// CONCATENATED MODULE: ./src/x_ite/Components/KeyDeviceSensor/KeySensor.js
|
||||
/*******************************************************************************
|
||||
*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* Copyright create3000, Scheffelstraße 31a, Leipzig, Germany 2011 - 2022.
|
||||
*
|
||||
* All rights reserved. Holger Seelig <holger.seelig@yahoo.de>.
|
||||
*
|
||||
* The copyright notice above does not evidence any actual of intended
|
||||
* publication of such source code, and is an unpublished work by create3000.
|
||||
* This material contains CONFIDENTIAL INFORMATION that is the property of
|
||||
* create3000.
|
||||
*
|
||||
* No permission is granted to copy, distribute, or create derivative works from
|
||||
* the contents of this software, in whole or in part, without the prior written
|
||||
* permission of create3000.
|
||||
*
|
||||
* NON-MILITARY USE ONLY
|
||||
*
|
||||
* All create3000 software are effectively free software with a non-military use
|
||||
* restriction. It is free. Well commented source is provided. You may reuse the
|
||||
* source in any way you please with the exception anything that uses it must be
|
||||
* marked to indicate is contains 'non-military use only' components.
|
||||
*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* Copyright 2011 - 2022, Holger Seelig <holger.seelig@yahoo.de>.
|
||||
*
|
||||
* This file is part of the X_ITE Project.
|
||||
*
|
||||
* X_ITE is free software: you can redistribute it and/or modify it under the
|
||||
* terms of the GNU General Public License version 3 only, as published by the
|
||||
* Free Software Foundation.
|
||||
*
|
||||
* X_ITE is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
||||
* A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
|
||||
* details (a copy is included in the LICENSE file that accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version 3
|
||||
* along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
|
||||
* copy of the GPLv3 License.
|
||||
*
|
||||
* For Silvio, Joy and Adi.
|
||||
*
|
||||
******************************************************************************/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var
|
||||
KEY_F1 = 1,
|
||||
KEY_F2 = 2,
|
||||
KEY_F3 = 3,
|
||||
KEY_F4 = 4,
|
||||
KEY_F5 = 5,
|
||||
KEY_F6 = 6,
|
||||
KEY_F7 = 7,
|
||||
KEY_F8 = 8,
|
||||
KEY_F9 = 9,
|
||||
KEY_F10 = 10,
|
||||
KEY_F11 = 11,
|
||||
KEY_F12 = 12,
|
||||
|
||||
KEY_HOME = 13,
|
||||
KEY_END = 14,
|
||||
KEY_PGUP = 15,
|
||||
KEY_PGDN = 16,
|
||||
KEY_UP = 17,
|
||||
KEY_DOWN = 18,
|
||||
KEY_LEFT = 19,
|
||||
KEY_RIGHT = 20;
|
||||
|
||||
function KeySensor (executionContext)
|
||||
{
|
||||
KeyDeviceSensor_X3DKeyDeviceSensorNode .call (this, executionContext);
|
||||
|
||||
this .addType ((X3DConstants_default()).KeySensor);
|
||||
}
|
||||
|
||||
Object .assign (Object .setPrototypeOf (KeySensor .prototype, KeyDeviceSensor_X3DKeyDeviceSensorNode .prototype),
|
||||
{
|
||||
keydown (event)
|
||||
{
|
||||
event .preventDefault ();
|
||||
|
||||
if (! this ._isActive .getValue ())
|
||||
this ._isActive = true;
|
||||
|
||||
switch (event .which)
|
||||
{
|
||||
case 16: // Shift
|
||||
this ._shiftKey = true;
|
||||
break;
|
||||
case 17: // Ctrl
|
||||
this ._controlKey = true;
|
||||
break;
|
||||
case 18: // Alt
|
||||
this ._altKey = true;
|
||||
break;
|
||||
//////////////////////////////////
|
||||
case 112:
|
||||
this ._actionKeyPress = KEY_F1;
|
||||
break;
|
||||
case 113:
|
||||
this ._actionKeyPress = KEY_F2;
|
||||
break;
|
||||
case 114:
|
||||
this ._actionKeyPress = KEY_F3;
|
||||
break;
|
||||
case 115:
|
||||
this ._actionKeyPress = KEY_F4;
|
||||
break;
|
||||
case 116:
|
||||
this ._actionKeyPress = KEY_F5;
|
||||
break;
|
||||
case 117:
|
||||
this ._actionKeyPress = KEY_F6;
|
||||
break;
|
||||
case 118:
|
||||
this ._actionKeyPress = KEY_F7;
|
||||
break;
|
||||
case 119:
|
||||
this ._actionKeyPress = KEY_F8;
|
||||
break;
|
||||
case 120:
|
||||
this ._actionKeyPress = KEY_F9;
|
||||
break;
|
||||
case 121:
|
||||
this ._actionKeyPress = KEY_F10;
|
||||
break;
|
||||
case 122:
|
||||
this ._actionKeyPress = KEY_F11;
|
||||
break;
|
||||
case 123:
|
||||
this ._actionKeyPress = KEY_F12;
|
||||
break;
|
||||
////////////////////////////////////
|
||||
case 36:
|
||||
this ._actionKeyPress = KEY_HOME;
|
||||
break;
|
||||
case 35:
|
||||
this ._actionKeyPress = KEY_END;
|
||||
break;
|
||||
case 33:
|
||||
this ._actionKeyPress = KEY_PGUP;
|
||||
break;
|
||||
case 34:
|
||||
this ._actionKeyPress = KEY_PGDN;
|
||||
break;
|
||||
case 38:
|
||||
this ._actionKeyPress = KEY_UP;
|
||||
break;
|
||||
case 40:
|
||||
this ._actionKeyPress = KEY_DOWN;
|
||||
break;
|
||||
case 37:
|
||||
this ._actionKeyPress = KEY_LEFT;
|
||||
break;
|
||||
case 39:
|
||||
this ._actionKeyPress = KEY_RIGHT;
|
||||
break;
|
||||
////////////////////////////////////
|
||||
default:
|
||||
{
|
||||
if (event .charCode || event .keyCode)
|
||||
{
|
||||
switch (event .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:
|
||||
if (event .key .length === 1)
|
||||
this ._keyPress = event .key;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
},
|
||||
keyup (event)
|
||||
{
|
||||
event .preventDefault ();
|
||||
|
||||
switch (event .which)
|
||||
{
|
||||
case 16: // Shift
|
||||
{
|
||||
this ._shiftKey = false;
|
||||
break;
|
||||
}
|
||||
case 17: // Ctrl
|
||||
{
|
||||
this ._controlKey = false;
|
||||
break;
|
||||
}
|
||||
case 18: // Alt
|
||||
{
|
||||
this ._altKey = false;
|
||||
break;
|
||||
}
|
||||
//////////////////////////////////
|
||||
case 112:
|
||||
this ._actionKeyRelease = KEY_F1;
|
||||
break;
|
||||
case 113:
|
||||
this ._actionKeyRelease = KEY_F2;
|
||||
break;
|
||||
case 114:
|
||||
this ._actionKeyRelease = KEY_F3;
|
||||
break;
|
||||
case 115:
|
||||
this ._actionKeyRelease = KEY_F4;
|
||||
break;
|
||||
case 116:
|
||||
this ._actionKeyRelease = KEY_F5;
|
||||
break;
|
||||
case 117:
|
||||
this ._actionKeyRelease = KEY_F6;
|
||||
break;
|
||||
case 118:
|
||||
this ._actionKeyRelease = KEY_F7;
|
||||
break;
|
||||
case 119:
|
||||
this ._actionKeyRelease = KEY_F8;
|
||||
break;
|
||||
case 120:
|
||||
this ._actionKeyRelease = KEY_F9;
|
||||
break;
|
||||
case 121:
|
||||
this ._actionKeyRelease = KEY_F10;
|
||||
break;
|
||||
case 122:
|
||||
this ._actionKeyRelease = KEY_F11;
|
||||
break;
|
||||
case 123:
|
||||
this ._actionKeyRelease = KEY_F12;
|
||||
break;
|
||||
////////////////////////////////////
|
||||
case 36:
|
||||
this ._actionKeyRelease = KEY_HOME;
|
||||
break;
|
||||
case 35:
|
||||
this ._actionKeyRelease = KEY_END;
|
||||
break;
|
||||
case 33:
|
||||
this ._actionKeyRelease = KEY_PGUP;
|
||||
break;
|
||||
case 34:
|
||||
this ._actionKeyRelease = KEY_PGDN;
|
||||
break;
|
||||
case 38:
|
||||
this ._actionKeyRelease = KEY_UP;
|
||||
break;
|
||||
case 40:
|
||||
this ._actionKeyRelease = KEY_DOWN;
|
||||
break;
|
||||
case 37:
|
||||
this ._actionKeyRelease = KEY_LEFT;
|
||||
break;
|
||||
case 39:
|
||||
this ._actionKeyRelease = KEY_RIGHT;
|
||||
break;
|
||||
////////////////////////////////////
|
||||
default:
|
||||
{
|
||||
if (event .charCode || event .keyCode)
|
||||
{
|
||||
switch (event .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:
|
||||
if (event .key .length === 1)
|
||||
this ._keyRelease = event .key;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (this ._isActive .getValue ())
|
||||
this ._isActive = false;
|
||||
},
|
||||
release ()
|
||||
{
|
||||
if (this ._shiftKey .getValue ())
|
||||
this ._shiftKey = false;
|
||||
|
||||
if (this ._controlKey .getValue ())
|
||||
this ._controlKey = false;
|
||||
|
||||
if (this ._altKey .getValue ())
|
||||
this ._altKey = false;
|
||||
},
|
||||
});
|
||||
|
||||
Object .defineProperties (KeySensor,
|
||||
{
|
||||
typeName:
|
||||
{
|
||||
value: "KeySensor",
|
||||
enumerable: true,
|
||||
},
|
||||
componentInfo:
|
||||
{
|
||||
value: Object .freeze ({ name: "KeyDeviceSensor", level: 1 }),
|
||||
enumerable: true,
|
||||
},
|
||||
containerField:
|
||||
{
|
||||
value: "children",
|
||||
enumerable: true,
|
||||
},
|
||||
specificationRange:
|
||||
{
|
||||
value: Object .freeze ({ from: "3.0", to: "Infinity" }),
|
||||
enumerable: true,
|
||||
},
|
||||
fieldDefinitions:
|
||||
{
|
||||
value: new (FieldDefinitionArray_default()) ([
|
||||
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
||||
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "description", new (Fields_default()).SFString ()),
|
||||
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
|
||||
new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "controlKey", new (Fields_default()).SFBool ()),
|
||||
new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "shiftKey", new (Fields_default()).SFBool ()),
|
||||
new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "altKey", new (Fields_default()).SFBool ()),
|
||||
new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "actionKeyPress", new (Fields_default()).SFInt32 ()),
|
||||
new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "actionKeyRelease", new (Fields_default()).SFInt32 ()),
|
||||
new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "keyPress", new (Fields_default()).SFString ()),
|
||||
new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "keyRelease", new (Fields_default()).SFString ()),
|
||||
new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "isActive", new (Fields_default()).SFBool ()),
|
||||
]),
|
||||
enumerable: true,
|
||||
},
|
||||
});
|
||||
|
||||
const KeySensor_default_ = KeySensor;
|
||||
;
|
||||
|
||||
Namespace_default().add ("KeySensor", "x_ite/Components/KeyDeviceSensor/KeySensor", KeySensor_default_);
|
||||
/* harmony default export */ const KeyDeviceSensor_KeySensor = (KeySensor_default_);
|
||||
;// CONCATENATED MODULE: ./src/x_ite/Components/KeyDeviceSensor/StringSensor.js
|
||||
/*******************************************************************************
|
||||
*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* Copyright create3000, Scheffelstraße 31a, Leipzig, Germany 2011 - 2022.
|
||||
*
|
||||
* All rights reserved. Holger Seelig <holger.seelig@yahoo.de>.
|
||||
*
|
||||
* The copyright notice above does not evidence any actual of intended
|
||||
* publication of such source code, and is an unpublished work by create3000.
|
||||
* This material contains CONFIDENTIAL INFORMATION that is the property of
|
||||
* create3000.
|
||||
*
|
||||
* No permission is granted to copy, distribute, or create derivative works from
|
||||
* the contents of this software, in whole or in part, without the prior written
|
||||
* permission of create3000.
|
||||
*
|
||||
* NON-MILITARY USE ONLY
|
||||
*
|
||||
* All create3000 software are effectively free software with a non-military use
|
||||
* restriction. It is free. Well commented source is provided. You may reuse the
|
||||
* source in any way you please with the exception anything that uses it must be
|
||||
* marked to indicate is contains 'non-military use only' components.
|
||||
*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* Copyright 2011 - 2022, Holger Seelig <holger.seelig@yahoo.de>.
|
||||
*
|
||||
* This file is part of the X_ITE Project.
|
||||
*
|
||||
* X_ITE is free software: you can redistribute it and/or modify it under the
|
||||
* terms of the GNU General Public License version 3 only, as published by the
|
||||
* Free Software Foundation.
|
||||
*
|
||||
* X_ITE is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
||||
* A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
|
||||
* details (a copy is included in the LICENSE file that accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version 3
|
||||
* along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
|
||||
* copy of the GPLv3 License.
|
||||
*
|
||||
* For Silvio, Joy and Adi.
|
||||
*
|
||||
******************************************************************************/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function StringSensor (executionContext)
|
||||
{
|
||||
KeyDeviceSensor_X3DKeyDeviceSensorNode .call (this, executionContext);
|
||||
|
||||
this .addType ((X3DConstants_default()).StringSensor);
|
||||
}
|
||||
|
||||
Object .assign (Object .setPrototypeOf (StringSensor .prototype, KeyDeviceSensor_X3DKeyDeviceSensorNode .prototype),
|
||||
{
|
||||
keydown (event)
|
||||
{
|
||||
event .preventDefault ();
|
||||
|
||||
switch (event .key)
|
||||
{
|
||||
case "Backspace":
|
||||
{
|
||||
if (this ._isActive .getValue ())
|
||||
{
|
||||
if (this ._deletionAllowed .getValue ())
|
||||
{
|
||||
if (this ._enteredText .length)
|
||||
this ._enteredText = this ._enteredText .getValue () .substr (0, this ._enteredText .length - 1);
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
case "Enter":
|
||||
{
|
||||
this ._finalText = this ._enteredText;
|
||||
|
||||
this ._enteredText .set ("");
|
||||
|
||||
if (this ._isActive .getValue ())
|
||||
this ._isActive = false;
|
||||
|
||||
break;
|
||||
}
|
||||
case "Escape":
|
||||
{
|
||||
this ._enteredText .set ("");
|
||||
|
||||
if (this ._isActive .getValue ())
|
||||
this ._isActive = false;
|
||||
|
||||
break;
|
||||
}
|
||||
case "Tab":
|
||||
{
|
||||
break;
|
||||
}
|
||||
default:
|
||||
{
|
||||
if (event .charCode || event .keyCode)
|
||||
{
|
||||
if (event .key .length === 1)
|
||||
{
|
||||
if (! this ._isActive .getValue ())
|
||||
{
|
||||
this ._isActive = true;
|
||||
this ._enteredText = "";
|
||||
}
|
||||
|
||||
this ._enteredText = this ._enteredText .getValue () + event .key;
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
Object .defineProperties (StringSensor,
|
||||
{
|
||||
typeName:
|
||||
{
|
||||
value: "StringSensor",
|
||||
enumerable: true,
|
||||
},
|
||||
componentInfo:
|
||||
{
|
||||
value: Object .freeze ({ name: "KeyDeviceSensor", level: 2 }),
|
||||
enumerable: true,
|
||||
},
|
||||
containerField:
|
||||
{
|
||||
value: "children",
|
||||
enumerable: true,
|
||||
},
|
||||
specificationRange:
|
||||
{
|
||||
value: Object .freeze ({ from: "3.0", to: "Infinity" }),
|
||||
enumerable: true,
|
||||
},
|
||||
fieldDefinitions:
|
||||
{
|
||||
value: new (FieldDefinitionArray_default()) ([
|
||||
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "metadata", new (Fields_default()).SFNode ()),
|
||||
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "description", new (Fields_default()).SFString ()),
|
||||
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "enabled", new (Fields_default()).SFBool (true)),
|
||||
new (X3DFieldDefinition_default()) ((X3DConstants_default()).inputOutput, "deletionAllowed", new (Fields_default()).SFBool (true)),
|
||||
new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "enteredText", new (Fields_default()).SFString ()),
|
||||
new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "finalText", new (Fields_default()).SFString ()),
|
||||
new (X3DFieldDefinition_default()) ((X3DConstants_default()).outputOnly, "isActive", new (Fields_default()).SFBool ()),
|
||||
]),
|
||||
enumerable: true,
|
||||
},
|
||||
});
|
||||
|
||||
const StringSensor_default_ = StringSensor;
|
||||
;
|
||||
|
||||
Namespace_default().add ("StringSensor", "x_ite/Components/KeyDeviceSensor/StringSensor", StringSensor_default_);
|
||||
/* harmony default export */ const KeyDeviceSensor_StringSensor = (StringSensor_default_);
|
||||
;// CONCATENATED MODULE: ./src/assets/components/KeyDeviceSensor.js
|
||||
/*******************************************************************************
|
||||
*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* Copyright create3000, Scheffelstraße 31a, Leipzig, Germany 2011 - 2022.
|
||||
*
|
||||
* All rights reserved. Holger Seelig <holger.seelig@yahoo.de>.
|
||||
*
|
||||
* The copyright notice above does not evidence any actual of intended
|
||||
* publication of such source code, and is an unpublished work by create3000.
|
||||
* This material contains CONFIDENTIAL INFORMATION that is the property of
|
||||
* create3000.
|
||||
*
|
||||
* No permission is granted to copy, distribute, or create derivative works from
|
||||
* the contents of this software, in whole or in part, without the prior written
|
||||
* permission of create3000.
|
||||
*
|
||||
* NON-MILITARY USE ONLY
|
||||
*
|
||||
* All create3000 software are effectively free software with a non-military use
|
||||
* restriction. It is free. Well commented source is provided. You may reuse the
|
||||
* source in any way you please with the exception anything that uses it must be
|
||||
* marked to indicate is contains 'non-military use only' components.
|
||||
*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* Copyright 2011 - 2022, Holger Seelig <holger.seelig@yahoo.de>.
|
||||
*
|
||||
* This file is part of the X_ITE Project.
|
||||
*
|
||||
* X_ITE is free software: you can redistribute it and/or modify it under the
|
||||
* terms of the GNU General Public License version 3 only, as published by the
|
||||
* Free Software Foundation.
|
||||
*
|
||||
* X_ITE is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
|
||||
* A PARTICULAR PURPOSE. See the GNU General Public License version 3 for more
|
||||
* details (a copy is included in the LICENSE file that accompanied this code).
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License version 3
|
||||
* along with X_ITE. If not, see <https://www.gnu.org/licenses/gpl.html> for a
|
||||
* copy of the GPLv3 License.
|
||||
*
|
||||
* For Silvio, Joy and Adi.
|
||||
*
|
||||
******************************************************************************/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Components_default().add ({
|
||||
name: "KeyDeviceSensor",
|
||||
concreteNodes:
|
||||
[
|
||||
KeyDeviceSensor_KeySensor,
|
||||
KeyDeviceSensor_StringSensor,
|
||||
],
|
||||
abstractNodes:
|
||||
[
|
||||
KeyDeviceSensor_X3DKeyDeviceSensorNode,
|
||||
],
|
||||
browserContext: KeyDeviceSensor_X3DKeyDeviceSensorContext,
|
||||
});
|
||||
|
||||
const KeyDeviceSensor_default_ = undefined;
|
||||
;
|
||||
|
||||
Namespace_default().add ("KeyDeviceSensor", "assets/components/KeyDeviceSensor", KeyDeviceSensor_default_);
|
||||
/* harmony default export */ const KeyDeviceSensor = ((/* unused pure expression or super */ null && (KeyDeviceSensor_default_)));
|
||||
/******/ })()
|
||||
;
|
|
@ -1,11 +1,11 @@
|
|||
/* X_ITE v8.12.5 */(() => { // webpackBootstrap
|
||||
/* X_ITE v9.2.4 */(() => { // webpackBootstrap
|
||||
/******/ "use strict";
|
||||
/******/ var __webpack_modules__ = ({
|
||||
|
||||
/***/ 355:
|
||||
/***/ 72:
|
||||
/***/ ((module) => {
|
||||
|
||||
module.exports = window [Symbol .for ("X_ITE.X3D-8.12.5")] .require ("lib/jquery");
|
||||
module.exports = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("x_ite/Components");
|
||||
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("x_ite/Base/X3DBaseNode");
|
||||
const X3DBaseNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("x_ite/Base/X3DFieldDefinition");
|
||||
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("x_ite/Base/FieldDefinitionArray");
|
||||
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("x_ite/Base/X3DField");
|
||||
const X3DField_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("x_ite/Base/X3DArrayField");
|
||||
const X3DArrayField_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .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/Browser/X3DBrowser\")"
|
||||
const X3DBrowser_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.5")] .require ("x_ite/Browser/X3DBrowser");
|
||||
const X3DBrowser_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("x_ite/Configuration/ComponentInfo");
|
||||
const ComponentInfo_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("x_ite/Configuration/ComponentInfoArray");
|
||||
const ComponentInfoArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("x_ite/Configuration/ProfileInfo");
|
||||
const ProfileInfo_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("x_ite/Configuration/ProfileInfoArray");
|
||||
const ProfileInfoArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("x_ite/Configuration/ConcreteNodesArray");
|
||||
const ConcreteNodesArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("x_ite/Configuration/AbstractNodesArray");
|
||||
const AbstractNodesArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("x_ite/Configuration/UnitInfo");
|
||||
const UnitInfo_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("x_ite/Configuration/UnitInfoArray");
|
||||
const UnitInfoArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("x_ite/Execution/NamedNodesArray");
|
||||
const NamedNodesArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("x_ite/Execution/ImportedNodesArray");
|
||||
const ImportedNodesArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("x_ite/Execution/X3DImportedNode");
|
||||
const X3DImportedNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("x_ite/Execution/ExportedNodesArray");
|
||||
const ExportedNodesArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("x_ite/Execution/X3DExportedNode");
|
||||
const X3DExportedNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("x_ite/Execution/X3DExecutionContext");
|
||||
const X3DExecutionContext_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("x_ite/Execution/X3DScene");
|
||||
const X3DScene_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("x_ite/Prototype/ExternProtoDeclarationArray");
|
||||
const ExternProtoDeclarationArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("x_ite/Prototype/ProtoDeclarationArray");
|
||||
const ProtoDeclarationArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("x_ite/Prototype/X3DExternProtoDeclaration");
|
||||
const X3DExternProtoDeclaration_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("x_ite/Prototype/X3DProtoDeclaration");
|
||||
const X3DProtoDeclaration_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("x_ite/Prototype/X3DProtoDeclarationNode");
|
||||
const X3DProtoDeclarationNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("x_ite/Routing/RouteArray");
|
||||
const RouteArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("x_ite/Routing/X3DRoute");
|
||||
const X3DRoute_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("x_ite/Namespace");
|
||||
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("x_ite/Components/Core/X3DChildNode");
|
||||
const X3DChildNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("x_ite/Components/Networking/X3DUrlObject");
|
||||
const X3DUrlObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("x_ite/Base/X3DConstants");
|
||||
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Base/X3DConstants");
|
||||
var X3DConstants_default = /*#__PURE__*/__webpack_require__.n(X3DConstants_namespaceObject);
|
||||
;// CONCATENATED MODULE: ./src/x_ite/Components/Scripting/X3DScriptNode.js
|
||||
/*******************************************************************************
|
||||
|
@ -329,9 +329,9 @@ Object .defineProperties (X3DScriptNode,
|
|||
value: "X3DScriptNode",
|
||||
enumerable: true,
|
||||
},
|
||||
componentName:
|
||||
componentInfo:
|
||||
{
|
||||
value: "Scripting",
|
||||
value: Object .freeze ({ name: "Scripting", level: 1 }),
|
||||
enumerable: true,
|
||||
},
|
||||
});
|
||||
|
@ -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-8.12.5")] .require ("x_ite/InputOutput/FileLoader");
|
||||
const FileLoader_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("x_ite/Fields/SFNodeCache");
|
||||
const SFNodeCache_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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__(355);
|
||||
/* provided dependency */ var $ = __webpack_require__(72);
|
||||
/*******************************************************************************
|
||||
*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
|
@ -630,40 +630,31 @@ Object .assign (Object .setPrototypeOf (Script .prototype, Scripting_X3DScriptNo
|
|||
},
|
||||
createContext (sourceText)
|
||||
{
|
||||
try
|
||||
{
|
||||
const callbacks = ["initialize", "prepareEvents", "eventsProcessed", "shutdown"];
|
||||
const callbacks = ["initialize", "prepareEvents", "eventsProcessed", "shutdown"];
|
||||
|
||||
for (const field of this .getUserDefinedFields ())
|
||||
for (const field of this .getUserDefinedFields ())
|
||||
{
|
||||
switch (field .getAccessType ())
|
||||
{
|
||||
switch (field .getAccessType ())
|
||||
{
|
||||
case (X3DConstants_default()).inputOnly:
|
||||
callbacks .push (field .getName ());
|
||||
break;
|
||||
case (X3DConstants_default()).inputOutput:
|
||||
callbacks .push ("set_" + field .getName ());
|
||||
break;
|
||||
}
|
||||
case (X3DConstants_default()).inputOnly:
|
||||
callbacks .push (field .getName ());
|
||||
break;
|
||||
case (X3DConstants_default()).inputOutput:
|
||||
callbacks .push ("set_" + field .getName ());
|
||||
break;
|
||||
}
|
||||
|
||||
sourceText += ";\n[" + callbacks .map (c => `typeof ${c} !== "undefined" ? ${c} : undefined`) .join (",") + "];";
|
||||
|
||||
const
|
||||
result = this .evaluate (sourceText),
|
||||
context = new Map ();
|
||||
|
||||
for (let i = 0; i < callbacks .length; ++ i)
|
||||
context .set (callbacks [i], result [i]);
|
||||
|
||||
return context;
|
||||
}
|
||||
catch (error)
|
||||
{
|
||||
this .setError ("while evaluating script source", error);
|
||||
|
||||
return new Map ();
|
||||
}
|
||||
sourceText += ";\n[" + callbacks .map (c => `typeof ${c} !== "undefined" ? ${c} : undefined`) .join (",") + "];";
|
||||
|
||||
const
|
||||
result = this .evaluate (sourceText),
|
||||
context = new Map ();
|
||||
|
||||
for (let i = 0; i < callbacks .length; ++ i)
|
||||
context .set (callbacks [i], result [i]);
|
||||
|
||||
return context;
|
||||
},
|
||||
evaluate (sourceText)
|
||||
{
|
||||
|
@ -779,7 +770,7 @@ Object .assign (Object .setPrototypeOf (Script .prototype, Scripting_X3DScriptNo
|
|||
}
|
||||
catch (error)
|
||||
{
|
||||
this .setError ("in function '" + field .getName () + "'", error);
|
||||
this .setError (`in function '${field .getName()}'`, error);
|
||||
}
|
||||
|
||||
browser .getScriptStack () .pop ();
|
||||
|
@ -787,7 +778,11 @@ Object .assign (Object .setPrototypeOf (Script .prototype, Scripting_X3DScriptNo
|
|||
},
|
||||
setError (reason, error)
|
||||
{
|
||||
console .error ("JavaScript Error in Script '" + this .getName () + "', " + reason + "\nworld url is '" + this .getExecutionContext () .getWorldURL () + "':");
|
||||
const worldURL = this .getExecutionContext () .getWorldURL () .startsWith ("data:")
|
||||
? "data:"
|
||||
: this .getExecutionContext () .getWorldURL ();
|
||||
|
||||
console .error (`JavaScript Error in Script '${this .getName ()}', ${reason}\nworld url is '${worldURL}':`);
|
||||
console .error (error);
|
||||
},
|
||||
disconnect ()
|
||||
|
@ -831,9 +826,9 @@ Object .defineProperties (Script,
|
|||
value: "Script",
|
||||
enumerable: true,
|
||||
},
|
||||
componentName:
|
||||
componentInfo:
|
||||
{
|
||||
value: "Scripting",
|
||||
value: Object .freeze ({ name: "Scripting", level: 1 }),
|
||||
enumerable: true,
|
||||
},
|
||||
containerField:
|
||||
|
@ -843,7 +838,7 @@ Object .defineProperties (Script,
|
|||
},
|
||||
specificationRange:
|
||||
{
|
||||
value: Object .freeze (["2.0", "Infinity"]),
|
||||
value: Object .freeze ({ from: "2.0", to: "Infinity" }),
|
||||
enumerable: true,
|
||||
},
|
||||
fieldDefinitions:
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* X_ITE v8.12.5 */(() => { // webpackBootstrap
|
||||
/* X_ITE v9.2.4 */(() => { // webpackBootstrap
|
||||
/******/ var __webpack_modules__ = ({
|
||||
|
||||
/***/ 246:
|
||||
/***/ 636:
|
||||
/***/ (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__(102);
|
||||
var fs = __webpack_require__(432);
|
||||
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__(102);
|
||||
var fs = __webpack_require__(432);
|
||||
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__(102);
|
||||
var fs = __webpack_require__(432);
|
||||
var buffer = fs.readFileSync(url);
|
||||
return parseBuffer(nodeBufferToArrayBuffer(buffer), opt);
|
||||
}
|
||||
|
@ -14484,15 +14484,15 @@
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 355:
|
||||
/***/ 72:
|
||||
/***/ ((module) => {
|
||||
|
||||
"use strict";
|
||||
module.exports = window [Symbol .for ("X_ITE.X3D-8.12.5")] .require ("lib/jquery");
|
||||
module.exports = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("lib/jquery");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 102:
|
||||
/***/ 432:
|
||||
/***/ (() => {
|
||||
|
||||
/* (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-8.12.5")] .require ("x_ite/Components");
|
||||
const Components_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .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/Base/X3DFieldDefinition\")"
|
||||
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-8.12.5")] .require ("x_ite/Base/X3DFieldDefinition");
|
||||
const X3DFieldDefinition_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("x_ite/Base/FieldDefinitionArray");
|
||||
const FieldDefinitionArray_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("x_ite/Components/Core/X3DNode");
|
||||
const X3DNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("x_ite/Components/Networking/X3DUrlObject");
|
||||
const X3DUrlObject_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("x_ite/Namespace");
|
||||
const Namespace_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("x_ite/InputOutput/FileLoader");
|
||||
const FileLoader_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("x_ite/Base/X3DConstants");
|
||||
const X3DConstants_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("x_ite/Browser/Networking/URLs");
|
||||
const URLs_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Browser/Networking/URLs");
|
||||
var URLs_default = /*#__PURE__*/__webpack_require__.n(URLs_namespaceObject);
|
||||
;// CONCATENATED MODULE: ./src/x_ite/Components/Text/X3DFontStyleNode.js
|
||||
/*******************************************************************************
|
||||
|
@ -14744,7 +14744,8 @@ function X3DFontStyleNode (executionContext)
|
|||
|
||||
this .addType ((X3DConstants_default()).X3DFontStyleNode);
|
||||
|
||||
this .addChildObjects ((X3DConstants_default()).inputOutput, "url", this ._family,
|
||||
this .addChildObjects ((X3DConstants_default()).inputOutput, "description", new (Fields_default()).SFString (),
|
||||
(X3DConstants_default()).inputOutput, "url", this ._family,
|
||||
(X3DConstants_default()).inputOutput, "load", new (Fields_default()).SFBool (true),
|
||||
(X3DConstants_default()).inputOutput, "autoRefresh", new (Fields_default()).SFTime (),
|
||||
(X3DConstants_default()).inputOutput, "autoRefreshTimeLimit", new (Fields_default()).SFTime (3600));
|
||||
|
@ -14908,9 +14909,9 @@ Object .defineProperties (X3DFontStyleNode,
|
|||
value: "X3DFontStyleNode",
|
||||
enumerable: true,
|
||||
},
|
||||
componentName:
|
||||
componentInfo:
|
||||
{
|
||||
value: "Text",
|
||||
value: Object .freeze ({ name: "Text", level: 1 }),
|
||||
enumerable: true,
|
||||
},
|
||||
});
|
||||
|
@ -14921,19 +14922,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-8.12.5")] .require ("x_ite/Browser/Core/PrimitiveQuality");
|
||||
const PrimitiveQuality_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("standard/Math/Geometry/Box2");
|
||||
const Box2_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("standard/Math/Geometry/Box3");
|
||||
const Box3_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("standard/Math/Numbers/Vector2");
|
||||
const Vector2_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("standard/Math/Numbers/Vector3");
|
||||
const Vector3_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("standard/Math/Numbers/Vector3");
|
||||
var Vector3_default = /*#__PURE__*/__webpack_require__.n(Vector3_namespaceObject);
|
||||
;// CONCATENATED MODULE: ./src/x_ite/Browser/Text/X3DTextGeometry.js
|
||||
/*******************************************************************************
|
||||
|
@ -15555,13 +15556,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-8.12.5")] .require ("standard/Math/Numbers/Matrix4");
|
||||
const Matrix4_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("standard/Math/Algorithms/Bezier");
|
||||
const Bezier_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("lib/libtess");
|
||||
const libtess_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("lib/libtess");
|
||||
var libtess_default = /*#__PURE__*/__webpack_require__.n(libtess_namespaceObject);
|
||||
;// CONCATENATED MODULE: ./src/x_ite/Browser/Text/PolygonText.js
|
||||
/*******************************************************************************
|
||||
|
@ -15618,14 +15619,11 @@ var libtess_default = /*#__PURE__*/__webpack_require__.n(libtess_namespaceObject
|
|||
|
||||
|
||||
|
||||
|
||||
function PolygonText (text, fontStyle)
|
||||
{
|
||||
Text_X3DTextGeometry .call (this, text, fontStyle);
|
||||
|
||||
text ._transparent = false;
|
||||
|
||||
this .texCoordArray = new (Fields_default()).MFFloat ();
|
||||
}
|
||||
|
||||
Object .assign (Object .setPrototypeOf (PolygonText .prototype, Text_X3DTextGeometry .prototype),
|
||||
|
@ -15664,7 +15662,7 @@ Object .assign (Object .setPrototypeOf (PolygonText .prototype, Text_X3DTextGeom
|
|||
origin = text ._origin .getValue (),
|
||||
sizeUnitsPerEm = size / font .unitsPerEm,
|
||||
primitiveQuality = this .getBrowser () .getBrowserOptions () .getPrimitiveQuality (),
|
||||
texCoordArray = this .texCoordArray,
|
||||
texCoordArray = text .getTexCoords (),
|
||||
normalArray = text .getNormals (),
|
||||
vertexArray = text .getVertices ();
|
||||
|
||||
|
@ -16011,9 +16009,9 @@ Object .defineProperties (FontStyle,
|
|||
value: "FontStyle",
|
||||
enumerable: true,
|
||||
},
|
||||
componentName:
|
||||
componentInfo:
|
||||
{
|
||||
value: "Text",
|
||||
value: Object .freeze ({ name: "Text", level: 1 }),
|
||||
enumerable: true,
|
||||
},
|
||||
containerField:
|
||||
|
@ -16023,7 +16021,7 @@ Object .defineProperties (FontStyle,
|
|||
},
|
||||
specificationRange:
|
||||
{
|
||||
value: Object .freeze (["2.0", "Infinity"]),
|
||||
value: Object .freeze ({ from: "2.0", to: "Infinity" }),
|
||||
enumerable: true,
|
||||
},
|
||||
fieldDefinitions:
|
||||
|
@ -16050,8 +16048,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__(355);
|
||||
/* provided dependency */ var opentype = __webpack_require__(246);
|
||||
/* provided dependency */ var $ = __webpack_require__(72);
|
||||
/* provided dependency */ var opentype = __webpack_require__(636);
|
||||
/*******************************************************************************
|
||||
*
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
|
@ -16191,10 +16189,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-8.12.5")] .require ("x_ite/Components/Rendering/X3DGeometryNode");
|
||||
const X3DGeometryNode_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .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-8.12.5")] .require ("x_ite/Base/X3DCast");
|
||||
const X3DCast_namespaceObject = window [Symbol .for ("X_ITE.X3D-9.2.4")] .require ("x_ite/Base/X3DCast");
|
||||
var X3DCast_default = /*#__PURE__*/__webpack_require__.n(X3DCast_namespaceObject);
|
||||
;// CONCATENATED MODULE: ./src/x_ite/Components/Text/Text.js
|
||||
/*******************************************************************************
|
||||
|
@ -16349,9 +16347,9 @@ Object .defineProperties (Text,
|
|||
value: "Text",
|
||||
enumerable: true,
|
||||
},
|
||||
componentName:
|
||||
componentInfo:
|
||||
{
|
||||
value: "Text",
|
||||
value: Object .freeze ({ name: "Text", level: 1 }),
|
||||
enumerable: true,
|
||||
},
|
||||
containerField:
|
||||
|
@ -16361,7 +16359,7 @@ Object .defineProperties (Text,
|
|||
},
|
||||
specificationRange:
|
||||
{
|
||||
value: Object .freeze (["2.0", "Infinity"]),
|
||||
value: Object .freeze ({ from: "2.0", to: "Infinity" }),
|
||||
enumerable: true,
|
||||
},
|
||||
fieldDefinitions:
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load diff
11377
etc/deps/x_ite/x_ite.mjs
11377
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