have to start thinking about assigning runtimes to components
parent
dc929bfc2a
commit
c6fd08895a
|
@ -18,7 +18,6 @@ r3 create RuntimeCodeMirror runtime_extends RuntimeCoder ./r3-runtime/
|
||||||
r3 create RuntimeCoder runtime_base ./r3-runtime/
|
r3 create RuntimeCoder runtime_base ./r3-runtime/
|
||||||
r3 create RuntimeControlKit runtime_extends RuntimeGUI ./r3-runtime/
|
r3 create RuntimeControlKit runtime_extends RuntimeGUI ./r3-runtime/
|
||||||
r3 create RuntimeDOM runtime_base ./r3-runtime/
|
r3 create RuntimeDOM runtime_base ./r3-runtime/
|
||||||
r3 create RuntimeDocument runtime_extends RuntimeDOM ./r3-runtime/
|
|
||||||
r3 create RuntimeGUI runtime_base ./r3-runtime/
|
r3 create RuntimeGUI runtime_base ./r3-runtime/
|
||||||
r3 create RuntimeGraphics runtime_base ./r3-runtime/
|
r3 create RuntimeGraphics runtime_base ./r3-runtime/
|
||||||
r3 create RuntimePhysics runtime_base ./r3-runtime/
|
r3 create RuntimePhysics runtime_base ./r3-runtime/
|
||||||
|
@ -36,8 +35,6 @@ r3 create Utils base ./
|
||||||
r3 create SystemRender system_extends System ./r3-system/
|
r3 create SystemRender system_extends System ./r3-system/
|
||||||
r3 create SystemStorage system_extends System ./r3-system/
|
r3 create SystemStorage system_extends System ./r3-system/
|
||||||
r3 create RuntimeImage runtime_base ./r3-runtime/
|
r3 create RuntimeImage runtime_base ./r3-runtime/
|
||||||
r3 create RuntimeWebImage runtime_extends RuntimeImage ./r3-runtime/
|
|
||||||
r3 create RuntimeNodeJSImage runtime_extends RuntimeImage ./r3-runtime/
|
|
||||||
r3 create Runtime base ./r3-runtime/
|
r3 create Runtime base ./r3-runtime/
|
||||||
r3 create ComponentCode component_extends Component ./r3-component/
|
r3 create ComponentCode component_extends Component ./r3-component/
|
||||||
r3 create R3Object object_base ./r3-object/
|
r3 create R3Object object_base ./r3-object/
|
||||||
|
@ -49,4 +46,5 @@ r3 create ComponentBufferGeometry component_extends ComponentGeometry ./r3-compo
|
||||||
r3 create ComponentPlaneGeometry component_extends ComponentBufferGeometry ./r3-component/
|
r3 create ComponentPlaneGeometry component_extends ComponentBufferGeometry ./r3-component/
|
||||||
r3 create Graph base ./
|
r3 create Graph base ./
|
||||||
r3 create Node base ./
|
r3 create Node base ./
|
||||||
r3 create RuntimeJsDOM runtime_extends RuntimeDOM ./r3-runtime/
|
r3 create RuntimeJSDOM runtime_extends RuntimeDOM ./r3-runtime/
|
||||||
|
r3 create RuntimeWebDOM runtime_extends RuntimeDOM ./r3-runtime/
|
||||||
|
|
|
@ -17,12 +17,12 @@ class R3 {
|
||||||
/**
|
/**
|
||||||
* static Version - Current R3 version
|
* static Version - Current R3 version
|
||||||
*/
|
*/
|
||||||
R3.Version = '3.0.338';
|
R3.Version = '3.0.346';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* static CompileDate - Current compile date of R3
|
* static CompileDate - Current compile date of R3
|
||||||
*/
|
*/
|
||||||
R3.CompileDate = '2021 Oct 10 - 15:24:05 pm';
|
R3.CompileDate = '2021 Oct 10 - 16:15:59 pm';
|
||||||
|
|
||||||
class System {
|
class System {
|
||||||
|
|
||||||
|
@ -1269,21 +1269,21 @@ class SystemRuntime extends System {
|
||||||
) {
|
) {
|
||||||
if (SystemRuntime.CurrentProject === null) {
|
if (SystemRuntime.CurrentProject === null) {
|
||||||
|
|
||||||
if (typeof process === 'undefined') {
|
if (SystemRuntime.ServerSide) {
|
||||||
|
|
||||||
if (!SystemRuntime.RuntimeDocument) {
|
if (!SystemRuntime.RuntimeDOM.JS) {
|
||||||
SystemRuntime.RuntimeDocument = new RuntimeDocument();
|
SystemRuntime.RuntimeDOM.JS = new RuntimeJSDOM();
|
||||||
}
|
}
|
||||||
|
|
||||||
return SystemRuntime.RuntimeDocument;
|
return SystemRuntime.RuntimeDOM.JS;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
if (!SystemRuntime.RuntimeJsDOM) {
|
if (!SystemRuntime.RuntimeDOM.Web) {
|
||||||
SystemRuntime.RuntimeJsDOM = new RuntimeJsDOM();
|
SystemRuntime.RuntimeDOM.Web = new RuntimeWebDOM();
|
||||||
}
|
}
|
||||||
|
|
||||||
return SystemRuntime.RuntimeJsDOM;
|
return SystemRuntime.RuntimeDOM.Web;
|
||||||
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -1291,13 +1291,9 @@ class SystemRuntime extends System {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (object instanceof ComponentImage) {
|
if (object instanceof ComponentCode) {
|
||||||
// if (SystemRuntime.CurrentProject === null) {
|
|
||||||
// return new RuntimeWebImage();
|
}
|
||||||
// } else {
|
|
||||||
// console.log('TODO: implement a project based Image runtime');
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1399,16 +1395,6 @@ SystemRuntime.RuntimePhysics = {};
|
||||||
*/
|
*/
|
||||||
SystemRuntime.RuntimeStatistics = {};
|
SystemRuntime.RuntimeStatistics = {};
|
||||||
|
|
||||||
/**
|
|
||||||
* static RuntimeJsDOM - No comment
|
|
||||||
*/
|
|
||||||
SystemRuntime.RuntimeJsDOM = null;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* static RuntimeDocument - No comment
|
|
||||||
*/
|
|
||||||
SystemRuntime.RuntimeDocument = null;
|
|
||||||
|
|
||||||
class SystemSocket extends System {
|
class SystemSocket extends System {
|
||||||
|
|
||||||
constructor(options) {
|
constructor(options) {
|
||||||
|
@ -1564,14 +1550,12 @@ Runtime.BASE_PHYSICS = 0x5;
|
||||||
Runtime.BASE_SOCKET = 0x6;
|
Runtime.BASE_SOCKET = 0x6;
|
||||||
Runtime.BASE_STATISTICS = 0x7;
|
Runtime.BASE_STATISTICS = 0x7;
|
||||||
Runtime.CODE_MIRROR = 0x8;
|
Runtime.CODE_MIRROR = 0x8;
|
||||||
Runtime.DOCUMENT = 0x9;
|
Runtime.JSDOM = 0x9;
|
||||||
Runtime.JS_DOM = 0xa;
|
Runtime.WEB_DOM = 0xa;
|
||||||
Runtime.CONTROL_KIT = 0xb;
|
Runtime.CONTROL_KIT = 0xb;
|
||||||
Runtime.THREE = 0xc;
|
Runtime.THREE = 0xc;
|
||||||
Runtime.NODE_JS_IMAGE = 0xd;
|
Runtime.BULLET = 0xd;
|
||||||
Runtime.WEB_IMAGE = 0xe;
|
Runtime.STATS = 0xe;
|
||||||
Runtime.BULLET = 0xf;
|
|
||||||
Runtime.STATS = 0x10;
|
|
||||||
|
|
||||||
class RuntimeCoder extends Runtime {
|
class RuntimeCoder extends Runtime {
|
||||||
|
|
||||||
|
@ -1646,40 +1630,7 @@ class RuntimeDOM extends Runtime {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class RuntimeDocument extends RuntimeDOM {
|
class RuntimeJSDOM extends RuntimeDOM {
|
||||||
|
|
||||||
constructor(options) {
|
|
||||||
|
|
||||||
if (typeof options === 'undefined') {
|
|
||||||
options = {};
|
|
||||||
}
|
|
||||||
|
|
||||||
super(options);
|
|
||||||
|
|
||||||
Object.assign(this, options);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* buildInstance()
|
|
||||||
* - Creates a runtime instance object based on the R3.Component representing it.
|
|
||||||
* @param component
|
|
||||||
*/
|
|
||||||
buildInstance(component) {
|
|
||||||
|
|
||||||
if (component instanceof ComponentCanvas) {
|
|
||||||
let canvas = document.createElement('canvas');
|
|
||||||
canvas.setAttribute('width', component.width);
|
|
||||||
canvas.setAttribute('height', component.height);
|
|
||||||
canvas.setAttribute('style', component.style);
|
|
||||||
return canvas;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
class RuntimeJsDOM extends RuntimeDOM {
|
|
||||||
|
|
||||||
constructor(options) {
|
constructor(options) {
|
||||||
|
|
||||||
|
@ -1719,6 +1670,46 @@ class RuntimeJsDOM extends RuntimeDOM {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class RuntimeWebDOM extends RuntimeDOM {
|
||||||
|
|
||||||
|
constructor(options) {
|
||||||
|
|
||||||
|
if (typeof options === 'undefined') {
|
||||||
|
options = {};
|
||||||
|
}
|
||||||
|
|
||||||
|
super(options);
|
||||||
|
|
||||||
|
Object.assign(this, options);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* buildInstance()
|
||||||
|
* - Creates a runtime instance object based on the R3.Component representing it.
|
||||||
|
* @param component
|
||||||
|
*/
|
||||||
|
buildInstance(component) {
|
||||||
|
|
||||||
|
if (component instanceof ComponentCanvas) {
|
||||||
|
let canvas = document.createElement('canvas');
|
||||||
|
canvas.setAttribute('width', component.width);
|
||||||
|
canvas.setAttribute('height', component.height);
|
||||||
|
canvas.setAttribute('style', component.style);
|
||||||
|
return canvas;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (component instanceof ComponentImage) {
|
||||||
|
let image = document.createElement('img');
|
||||||
|
image.setAttribute('src', component.src);
|
||||||
|
image.setAttribute('alt', component.alt);
|
||||||
|
return image;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
class RuntimeGUI extends Runtime {
|
class RuntimeGUI extends Runtime {
|
||||||
|
|
||||||
constructor(options) {
|
constructor(options) {
|
||||||
|
@ -1841,63 +1832,6 @@ class RuntimeImage extends Runtime {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class RuntimeNodeJSImage extends RuntimeImage {
|
|
||||||
|
|
||||||
constructor(options) {
|
|
||||||
|
|
||||||
if (typeof options === 'undefined') {
|
|
||||||
options = {};
|
|
||||||
}
|
|
||||||
|
|
||||||
super(options);
|
|
||||||
|
|
||||||
Object.assign(this, options);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* buildInstance()
|
|
||||||
* - Creates a runtime instance object based on the R3.Component representing it.
|
|
||||||
* @param component
|
|
||||||
*/
|
|
||||||
buildInstance(component) {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
class RuntimeWebImage extends RuntimeImage {
|
|
||||||
|
|
||||||
constructor(options) {
|
|
||||||
|
|
||||||
if (typeof options === 'undefined') {
|
|
||||||
options = {};
|
|
||||||
}
|
|
||||||
|
|
||||||
super(options);
|
|
||||||
|
|
||||||
Object.assign(this, options);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* buildInstance()
|
|
||||||
* - Creates a runtime instance object based on the R3.Component representing it.
|
|
||||||
* @param component
|
|
||||||
*/
|
|
||||||
buildInstance(component) {
|
|
||||||
|
|
||||||
if (component instanceof R3.Component.Graphics.Image) {
|
|
||||||
let image = document.createElement('img');
|
|
||||||
image.setAttribute('src', component.src);
|
|
||||||
image.setAttribute('alt', component.alt);
|
|
||||||
return image;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
class RuntimePhysics extends Runtime {
|
class RuntimePhysics extends Runtime {
|
||||||
|
|
||||||
constructor(options) {
|
constructor(options) {
|
||||||
|
@ -6799,15 +6733,13 @@ R3Object.Component.Texture = ComponentTexture;
|
||||||
Runtime.Coder = RuntimeCoder;
|
Runtime.Coder = RuntimeCoder;
|
||||||
Runtime.Coder.CodeMirror = RuntimeCodeMirror;
|
Runtime.Coder.CodeMirror = RuntimeCodeMirror;
|
||||||
Runtime.DOM = RuntimeDOM;
|
Runtime.DOM = RuntimeDOM;
|
||||||
Runtime.DOM.Document = RuntimeDocument;
|
Runtime.DOM.JSDOM = RuntimeJSDOM;
|
||||||
Runtime.DOM.JsDOM = RuntimeJsDOM;
|
Runtime.DOM.WebDOM = RuntimeWebDOM;
|
||||||
Runtime.GUI = RuntimeGUI;
|
Runtime.GUI = RuntimeGUI;
|
||||||
Runtime.GUI.ControlKit = RuntimeControlKit;
|
Runtime.GUI.ControlKit = RuntimeControlKit;
|
||||||
Runtime.Graphics = RuntimeGraphics;
|
Runtime.Graphics = RuntimeGraphics;
|
||||||
Runtime.Graphics.Three = RuntimeThree;
|
Runtime.Graphics.Three = RuntimeThree;
|
||||||
Runtime.Image = RuntimeImage;
|
Runtime.Image = RuntimeImage;
|
||||||
Runtime.Image.NodeJSImage = RuntimeNodeJSImage;
|
|
||||||
Runtime.Image.WebImage = RuntimeWebImage;
|
|
||||||
Runtime.Physics = RuntimePhysics;
|
Runtime.Physics = RuntimePhysics;
|
||||||
Runtime.Physics.Bullet = RuntimeBullet;
|
Runtime.Physics.Bullet = RuntimeBullet;
|
||||||
Runtime.Socket = RuntimeSocket;
|
Runtime.Socket = RuntimeSocket;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "r3",
|
"name": "r3",
|
||||||
"version": "3.0.339",
|
"version": "3.0.346",
|
||||||
"description": "",
|
"description": "",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -3,15 +3,13 @@ const Runtime = require('./r3-runtime.js');
|
||||||
const RuntimeCoder = require('./r3-runtime-coder.js');
|
const RuntimeCoder = require('./r3-runtime-coder.js');
|
||||||
const RuntimeCodeMirror = require('./r3-runtime-code-mirror.js');
|
const RuntimeCodeMirror = require('./r3-runtime-code-mirror.js');
|
||||||
const RuntimeDOM = require('./r3-runtime-d-o-m.js');
|
const RuntimeDOM = require('./r3-runtime-d-o-m.js');
|
||||||
const RuntimeDocument = require('./r3-runtime-document.js');
|
const RuntimeJSDOM = require('./r3-runtime-j-s-d-o-m.js');
|
||||||
const RuntimeJsDOM = require('./r3-runtime-js-d-o-m.js');
|
const RuntimeWebDOM = require('./r3-runtime-web-d-o-m.js');
|
||||||
const RuntimeGUI = require('./r3-runtime-g-u-i.js');
|
const RuntimeGUI = require('./r3-runtime-g-u-i.js');
|
||||||
const RuntimeControlKit = require('./r3-runtime-control-kit.js');
|
const RuntimeControlKit = require('./r3-runtime-control-kit.js');
|
||||||
const RuntimeGraphics = require('./r3-runtime-graphics.js');
|
const RuntimeGraphics = require('./r3-runtime-graphics.js');
|
||||||
const RuntimeThree = require('./r3-runtime-three.js');
|
const RuntimeThree = require('./r3-runtime-three.js');
|
||||||
const RuntimeImage = require('./r3-runtime-image.js');
|
const RuntimeImage = require('./r3-runtime-image.js');
|
||||||
const RuntimeNodeJSImage = require('./r3-runtime-node-j-s-image.js');
|
|
||||||
const RuntimeWebImage = require('./r3-runtime-web-image.js');
|
|
||||||
const RuntimePhysics = require('./r3-runtime-physics.js');
|
const RuntimePhysics = require('./r3-runtime-physics.js');
|
||||||
const RuntimeBullet = require('./r3-runtime-bullet.js');
|
const RuntimeBullet = require('./r3-runtime-bullet.js');
|
||||||
const RuntimeSocket = require('./r3-runtime-socket.js');
|
const RuntimeSocket = require('./r3-runtime-socket.js');
|
||||||
|
@ -23,15 +21,13 @@ const RuntimeStats = require('./r3-runtime-stats.js');
|
||||||
Runtime.Coder = RuntimeCoder;
|
Runtime.Coder = RuntimeCoder;
|
||||||
Runtime.Coder.CodeMirror = RuntimeCodeMirror;
|
Runtime.Coder.CodeMirror = RuntimeCodeMirror;
|
||||||
Runtime.DOM = RuntimeDOM;
|
Runtime.DOM = RuntimeDOM;
|
||||||
Runtime.DOM.Document = RuntimeDocument;
|
Runtime.DOM.JSDOM = RuntimeJSDOM;
|
||||||
Runtime.DOM.JsDOM = RuntimeJsDOM;
|
Runtime.DOM.WebDOM = RuntimeWebDOM;
|
||||||
Runtime.GUI = RuntimeGUI;
|
Runtime.GUI = RuntimeGUI;
|
||||||
Runtime.GUI.ControlKit = RuntimeControlKit;
|
Runtime.GUI.ControlKit = RuntimeControlKit;
|
||||||
Runtime.Graphics = RuntimeGraphics;
|
Runtime.Graphics = RuntimeGraphics;
|
||||||
Runtime.Graphics.Three = RuntimeThree;
|
Runtime.Graphics.Three = RuntimeThree;
|
||||||
Runtime.Image = RuntimeImage;
|
Runtime.Image = RuntimeImage;
|
||||||
Runtime.Image.NodeJSImage = RuntimeNodeJSImage;
|
|
||||||
Runtime.Image.WebImage = RuntimeWebImage;
|
|
||||||
Runtime.Physics = RuntimePhysics;
|
Runtime.Physics = RuntimePhysics;
|
||||||
Runtime.Physics.Bullet = RuntimeBullet;
|
Runtime.Physics.Bullet = RuntimeBullet;
|
||||||
Runtime.Socket = RuntimeSocket;
|
Runtime.Socket = RuntimeSocket;
|
||||||
|
|
|
@ -45,7 +45,7 @@ const RuntimeDOM = require('./r3-runtime-d-o-m.js');
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
class RuntimeJsDOM extends RuntimeDOM {
|
class RuntimeJSDOM extends RuntimeDOM {
|
||||||
|
|
||||||
//GENERATED_CONSTRUCTOR_START
|
//GENERATED_CONSTRUCTOR_START
|
||||||
constructor(options) {
|
constructor(options) {
|
||||||
|
@ -127,4 +127,4 @@ class RuntimeJsDOM extends RuntimeDOM {
|
||||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
|
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_END
|
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_END
|
||||||
|
|
||||||
module.exports = RuntimeJsDOM;
|
module.exports = RuntimeJSDOM;
|
|
@ -1,113 +0,0 @@
|
||||||
//GENERATED_IMPORTS_START
|
|
||||||
//GENERATED_IMPORTS_END
|
|
||||||
|
|
||||||
//CUSTOM_IMPORTS_START
|
|
||||||
//CUSTOM_IMPORTS_END
|
|
||||||
|
|
||||||
const Event = require('.././r3-event');
|
|
||||||
const Utils = require('.././r3-utils');
|
|
||||||
const RuntimeImage = require('./r3-runtime-image.js');
|
|
||||||
|
|
||||||
/**
|
|
||||||
|
|
||||||
GENERATED_INHERITED_START
|
|
||||||
|
|
||||||
GENERATED_INHERITED_END
|
|
||||||
|
|
||||||
TEMPLATE_OPTIONS_START
|
|
||||||
TEMPLATE_OPTIONS_END
|
|
||||||
|
|
||||||
CUSTOM_OPTIONS_START
|
|
||||||
CUSTOM_OPTIONS_END
|
|
||||||
|
|
||||||
TEMPLATE_STATIC_OPTIONS_START
|
|
||||||
TEMPLATE_STATIC_OPTIONS_END
|
|
||||||
|
|
||||||
CUSTOM_STATIC_OPTIONS_START
|
|
||||||
CUSTOM_STATIC_OPTIONS_END
|
|
||||||
|
|
||||||
TEMPLATE_METHODS_START
|
|
||||||
buildInstance(component) - Creates a runtime instance object based on the R3.Component representing it.
|
|
||||||
TEMPLATE_METHODS_END
|
|
||||||
|
|
||||||
CUSTOM_METHODS_START
|
|
||||||
CUSTOM_METHODS_END
|
|
||||||
|
|
||||||
TEMPLATE_STATIC_METHODS_START
|
|
||||||
TEMPLATE_STATIC_METHODS_END
|
|
||||||
|
|
||||||
CUSTOM_STATIC_METHODS_START
|
|
||||||
CUSTOM_STATIC_METHODS_END
|
|
||||||
|
|
||||||
**/
|
|
||||||
|
|
||||||
class RuntimeNodeJSImage extends RuntimeImage {
|
|
||||||
|
|
||||||
//GENERATED_CONSTRUCTOR_START
|
|
||||||
constructor(options) {
|
|
||||||
|
|
||||||
if (typeof options === 'undefined') {
|
|
||||||
options = {};
|
|
||||||
}
|
|
||||||
|
|
||||||
super(options);
|
|
||||||
|
|
||||||
//GENERATED_TEMPLATE_OPTIONS_INIT_START
|
|
||||||
//GENERATED_TEMPLATE_OPTIONS_INIT_END
|
|
||||||
|
|
||||||
//GENERATED_OPTIONS_INIT_START
|
|
||||||
//GENERATED_OPTIONS_INIT_END
|
|
||||||
|
|
||||||
Object.assign(this, options);
|
|
||||||
|
|
||||||
}
|
|
||||||
//GENERATED_CONSTRUCTOR_END
|
|
||||||
|
|
||||||
//GENERATED_TEMPLATE_METHODS_START
|
|
||||||
|
|
||||||
/**
|
|
||||||
* buildInstance()
|
|
||||||
* - Creates a runtime instance object based on the R3.Component representing it.
|
|
||||||
* @param component
|
|
||||||
*/
|
|
||||||
buildInstance(component) {
|
|
||||||
|
|
||||||
//GENERATED_BUILD_INSTANCE_METHOD_START
|
|
||||||
//GENERATED_BUILD_INSTANCE_METHOD_END
|
|
||||||
|
|
||||||
//CUSTOM_BUILD_INSTANCE_METHOD_START
|
|
||||||
//CUSTOM_BUILD_INSTANCE_METHOD_END
|
|
||||||
|
|
||||||
//GENERATED_BUILD_INSTANCE_METHOD_AFTER_START
|
|
||||||
//GENERATED_BUILD_INSTANCE_METHOD_AFTER_END
|
|
||||||
|
|
||||||
}
|
|
||||||
//GENERATED_TEMPLATE_METHODS_END
|
|
||||||
|
|
||||||
//GENERATED_METHODS_START
|
|
||||||
//GENERATED_METHODS_END
|
|
||||||
|
|
||||||
//GENERATED_TEMPLATE_STATIC_METHODS_START
|
|
||||||
//GENERATED_TEMPLATE_STATIC_METHODS_END
|
|
||||||
|
|
||||||
//GENERATED_STATIC_METHODS_START
|
|
||||||
//GENERATED_STATIC_METHODS_END
|
|
||||||
|
|
||||||
//CUSTOM_IMPLEMENTATION_START
|
|
||||||
//CUSTOM_IMPLEMENTATION_END
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_START
|
|
||||||
//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_END
|
|
||||||
|
|
||||||
//GENERATED_STATIC_OPTIONS_INIT_START
|
|
||||||
//GENERATED_STATIC_OPTIONS_INIT_END
|
|
||||||
|
|
||||||
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START
|
|
||||||
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END
|
|
||||||
|
|
||||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
|
|
||||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_END
|
|
||||||
|
|
||||||
module.exports = RuntimeNodeJSImage;
|
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
//CUSTOM_IMPORTS_START
|
//CUSTOM_IMPORTS_START
|
||||||
const ComponentCanvas = require('../r3-component/r3-component-canvas');
|
const ComponentCanvas = require('../r3-component/r3-component-canvas');
|
||||||
|
const ComponentImage = require('../r3-component/r3-component-image');
|
||||||
//CUSTOM_IMPORTS_END
|
//CUSTOM_IMPORTS_END
|
||||||
|
|
||||||
const Event = require('.././r3-event');
|
const Event = require('.././r3-event');
|
||||||
|
@ -42,7 +43,7 @@ const RuntimeDOM = require('./r3-runtime-d-o-m.js');
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
class RuntimeDocument extends RuntimeDOM {
|
class RuntimeWebDOM extends RuntimeDOM {
|
||||||
|
|
||||||
//GENERATED_CONSTRUCTOR_START
|
//GENERATED_CONSTRUCTOR_START
|
||||||
constructor(options) {
|
constructor(options) {
|
||||||
|
@ -84,6 +85,13 @@ class RuntimeDocument extends RuntimeDOM {
|
||||||
canvas.setAttribute('style', component.style);
|
canvas.setAttribute('style', component.style);
|
||||||
return canvas;
|
return canvas;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (component instanceof ComponentImage) {
|
||||||
|
let image = document.createElement('img');
|
||||||
|
image.setAttribute('src', component.src);
|
||||||
|
image.setAttribute('alt', component.alt);
|
||||||
|
return image;
|
||||||
|
}
|
||||||
//CUSTOM_BUILD_INSTANCE_METHOD_END
|
//CUSTOM_BUILD_INSTANCE_METHOD_END
|
||||||
|
|
||||||
//GENERATED_BUILD_INSTANCE_METHOD_AFTER_START
|
//GENERATED_BUILD_INSTANCE_METHOD_AFTER_START
|
||||||
|
@ -118,4 +126,4 @@ class RuntimeDocument extends RuntimeDOM {
|
||||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
|
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_END
|
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_END
|
||||||
|
|
||||||
module.exports = RuntimeDocument;
|
module.exports = RuntimeWebDOM;
|
|
@ -1,119 +0,0 @@
|
||||||
//GENERATED_IMPORTS_START
|
|
||||||
//GENERATED_IMPORTS_END
|
|
||||||
|
|
||||||
//CUSTOM_IMPORTS_START
|
|
||||||
//CUSTOM_IMPORTS_END
|
|
||||||
|
|
||||||
const Event = require('.././r3-event');
|
|
||||||
const Utils = require('.././r3-utils');
|
|
||||||
const RuntimeImage = require('./r3-runtime-image.js');
|
|
||||||
|
|
||||||
/**
|
|
||||||
|
|
||||||
GENERATED_INHERITED_START
|
|
||||||
|
|
||||||
GENERATED_INHERITED_END
|
|
||||||
|
|
||||||
TEMPLATE_OPTIONS_START
|
|
||||||
TEMPLATE_OPTIONS_END
|
|
||||||
|
|
||||||
CUSTOM_OPTIONS_START
|
|
||||||
CUSTOM_OPTIONS_END
|
|
||||||
|
|
||||||
TEMPLATE_STATIC_OPTIONS_START
|
|
||||||
TEMPLATE_STATIC_OPTIONS_END
|
|
||||||
|
|
||||||
CUSTOM_STATIC_OPTIONS_START
|
|
||||||
CUSTOM_STATIC_OPTIONS_END
|
|
||||||
|
|
||||||
TEMPLATE_METHODS_START
|
|
||||||
buildInstance(component) - Creates a runtime instance object based on the R3.Component representing it.
|
|
||||||
TEMPLATE_METHODS_END
|
|
||||||
|
|
||||||
CUSTOM_METHODS_START
|
|
||||||
CUSTOM_METHODS_END
|
|
||||||
|
|
||||||
TEMPLATE_STATIC_METHODS_START
|
|
||||||
TEMPLATE_STATIC_METHODS_END
|
|
||||||
|
|
||||||
CUSTOM_STATIC_METHODS_START
|
|
||||||
CUSTOM_STATIC_METHODS_END
|
|
||||||
|
|
||||||
**/
|
|
||||||
|
|
||||||
class RuntimeWebImage extends RuntimeImage {
|
|
||||||
|
|
||||||
//GENERATED_CONSTRUCTOR_START
|
|
||||||
constructor(options) {
|
|
||||||
|
|
||||||
if (typeof options === 'undefined') {
|
|
||||||
options = {};
|
|
||||||
}
|
|
||||||
|
|
||||||
super(options);
|
|
||||||
|
|
||||||
//GENERATED_TEMPLATE_OPTIONS_INIT_START
|
|
||||||
//GENERATED_TEMPLATE_OPTIONS_INIT_END
|
|
||||||
|
|
||||||
//GENERATED_OPTIONS_INIT_START
|
|
||||||
//GENERATED_OPTIONS_INIT_END
|
|
||||||
|
|
||||||
Object.assign(this, options);
|
|
||||||
|
|
||||||
}
|
|
||||||
//GENERATED_CONSTRUCTOR_END
|
|
||||||
|
|
||||||
//GENERATED_TEMPLATE_METHODS_START
|
|
||||||
|
|
||||||
/**
|
|
||||||
* buildInstance()
|
|
||||||
* - Creates a runtime instance object based on the R3.Component representing it.
|
|
||||||
* @param component
|
|
||||||
*/
|
|
||||||
buildInstance(component) {
|
|
||||||
|
|
||||||
//GENERATED_BUILD_INSTANCE_METHOD_START
|
|
||||||
//GENERATED_BUILD_INSTANCE_METHOD_END
|
|
||||||
|
|
||||||
//CUSTOM_BUILD_INSTANCE_METHOD_START
|
|
||||||
if (component instanceof R3.Component.Graphics.Image) {
|
|
||||||
let image = document.createElement('img');
|
|
||||||
image.setAttribute('src', component.src);
|
|
||||||
image.setAttribute('alt', component.alt);
|
|
||||||
return image;
|
|
||||||
}
|
|
||||||
//CUSTOM_BUILD_INSTANCE_METHOD_END
|
|
||||||
|
|
||||||
//GENERATED_BUILD_INSTANCE_METHOD_AFTER_START
|
|
||||||
//GENERATED_BUILD_INSTANCE_METHOD_AFTER_END
|
|
||||||
|
|
||||||
}
|
|
||||||
//GENERATED_TEMPLATE_METHODS_END
|
|
||||||
|
|
||||||
//GENERATED_METHODS_START
|
|
||||||
//GENERATED_METHODS_END
|
|
||||||
|
|
||||||
//GENERATED_TEMPLATE_STATIC_METHODS_START
|
|
||||||
//GENERATED_TEMPLATE_STATIC_METHODS_END
|
|
||||||
|
|
||||||
//GENERATED_STATIC_METHODS_START
|
|
||||||
//GENERATED_STATIC_METHODS_END
|
|
||||||
|
|
||||||
//CUSTOM_IMPLEMENTATION_START
|
|
||||||
//CUSTOM_IMPLEMENTATION_END
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_START
|
|
||||||
//GENERATED_TEMPLATE_STATIC_OPTIONS_INIT_END
|
|
||||||
|
|
||||||
//GENERATED_STATIC_OPTIONS_INIT_START
|
|
||||||
//GENERATED_STATIC_OPTIONS_INIT_END
|
|
||||||
|
|
||||||
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START
|
|
||||||
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END
|
|
||||||
|
|
||||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
|
|
||||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_END
|
|
||||||
|
|
||||||
module.exports = RuntimeWebImage;
|
|
|
@ -97,14 +97,12 @@ Runtime.BASE_PHYSICS = 0x5;
|
||||||
Runtime.BASE_SOCKET = 0x6;
|
Runtime.BASE_SOCKET = 0x6;
|
||||||
Runtime.BASE_STATISTICS = 0x7;
|
Runtime.BASE_STATISTICS = 0x7;
|
||||||
Runtime.CODE_MIRROR = 0x8;
|
Runtime.CODE_MIRROR = 0x8;
|
||||||
Runtime.DOCUMENT = 0x9;
|
Runtime.JSDOM = 0x9;
|
||||||
Runtime.JS_DOM = 0xa;
|
Runtime.WEB_DOM = 0xa;
|
||||||
Runtime.CONTROL_KIT = 0xb;
|
Runtime.CONTROL_KIT = 0xb;
|
||||||
Runtime.THREE = 0xc;
|
Runtime.THREE = 0xc;
|
||||||
Runtime.NODE_JS_IMAGE = 0xd;
|
Runtime.BULLET = 0xd;
|
||||||
Runtime.WEB_IMAGE = 0xe;
|
Runtime.STATS = 0xe;
|
||||||
Runtime.BULLET = 0xf;
|
|
||||||
Runtime.STATS = 0x10;
|
|
||||||
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END
|
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END
|
||||||
|
|
||||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
|
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||||
|
|
|
@ -4,8 +4,7 @@
|
||||||
//CUSTOM_IMPORTS_START
|
//CUSTOM_IMPORTS_START
|
||||||
const ComponentDOM = require('../r3-component/r3-component-d-o-m');
|
const ComponentDOM = require('../r3-component/r3-component-d-o-m');
|
||||||
const ComponentImage = require('../r3-component/r3-component-image');
|
const ComponentImage = require('../r3-component/r3-component-image');
|
||||||
const RuntimeDocument = require('../r3-runtime/r3-runtime-document');
|
const RuntimeWebDOM = require('../r3-runtime/r3-runtime-web-d-o-m');
|
||||||
const RuntimeWebImage = require('../r3-runtime/r3-runtime-web-image');
|
|
||||||
//CUSTOM_IMPORTS_END
|
//CUSTOM_IMPORTS_END
|
||||||
|
|
||||||
const Event = require('.././r3-event');
|
const Event = require('.././r3-event');
|
||||||
|
@ -170,14 +169,11 @@ class SystemRender extends System {
|
||||||
//GENERATED_STATIC_ON_INSTANCE_CREATED_METHOD_END
|
//GENERATED_STATIC_ON_INSTANCE_CREATED_METHOD_END
|
||||||
|
|
||||||
//CUSTOM_STATIC_ON_INSTANCE_CREATED_METHOD_START
|
//CUSTOM_STATIC_ON_INSTANCE_CREATED_METHOD_START
|
||||||
if (object instanceof ComponentDOM) {
|
if (
|
||||||
if (object.runtime instanceof RuntimeDocument) {
|
object instanceof ComponentDOM ||
|
||||||
document.body.appendChild(object.instance);
|
object instanceof ComponentImage
|
||||||
}
|
) {
|
||||||
}
|
if (object.runtime instanceof RuntimeWebDOM) {
|
||||||
|
|
||||||
if (object instanceof ComponentImage) {
|
|
||||||
if (object.runtime instanceof RuntimeWebImage) {
|
|
||||||
document.body.appendChild(object.instance);
|
document.body.appendChild(object.instance);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,9 +5,9 @@
|
||||||
const ComponentDOM = require('../r3-component/r3-component-d-o-m.js');
|
const ComponentDOM = require('../r3-component/r3-component-d-o-m.js');
|
||||||
const ComponentInput = require('../r3-component/r3-component-input.js');
|
const ComponentInput = require('../r3-component/r3-component-input.js');
|
||||||
const ComponentImage = require('../r3-component/r3-component-image.js');
|
const ComponentImage = require('../r3-component/r3-component-image.js');
|
||||||
const RuntimeDocument = require('../r3-runtime/r3-runtime-document.js');
|
const ComponentCode = require('../r3-component/r3-component-code.js');
|
||||||
const RuntimeWebImage = require('../r3-runtime/r3-runtime-web-image.js');
|
const RuntimeWebDOM = require('../r3-runtime/r3-runtime-web-d-o-m.js');
|
||||||
const RuntimeJsDOM = require('../r3-runtime/r3-runtime-js-d-o-m.js');
|
const RuntimeJSDOM = require('../r3-runtime/r3-runtime-j-s-d-o-m.js');
|
||||||
const Utils = require('.././r3-utils.js');
|
const Utils = require('.././r3-utils.js');
|
||||||
//CUSTOM_IMPORTS_END
|
//CUSTOM_IMPORTS_END
|
||||||
|
|
||||||
|
@ -41,8 +41,6 @@ const System = require('./r3-system.js');
|
||||||
RuntimeGraphics={}
|
RuntimeGraphics={}
|
||||||
RuntimePhysics={}
|
RuntimePhysics={}
|
||||||
RuntimeStatistics={}
|
RuntimeStatistics={}
|
||||||
RuntimeJsDOM=null
|
|
||||||
RuntimeDocument=null
|
|
||||||
CUSTOM_STATIC_OPTIONS_END
|
CUSTOM_STATIC_OPTIONS_END
|
||||||
|
|
||||||
CUSTOM_EVENT_LISTENERS_START
|
CUSTOM_EVENT_LISTENERS_START
|
||||||
|
@ -241,19 +239,19 @@ class SystemRuntime extends System {
|
||||||
|
|
||||||
if (SystemRuntime.ServerSide) {
|
if (SystemRuntime.ServerSide) {
|
||||||
|
|
||||||
if (!SystemRuntime.RuntimeJsDOM) {
|
if (!SystemRuntime.RuntimeDOM.JS) {
|
||||||
SystemRuntime.RuntimeJsDOM = new RuntimeJsDOM();
|
SystemRuntime.RuntimeDOM.JS = new RuntimeJSDOM();
|
||||||
}
|
}
|
||||||
|
|
||||||
return SystemRuntime.RuntimeJsDOM;
|
return SystemRuntime.RuntimeDOM.JS;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
if (!SystemRuntime.RuntimeDocument) {
|
if (!SystemRuntime.RuntimeDOM.Web) {
|
||||||
SystemRuntime.RuntimeDocument = new RuntimeDocument();
|
SystemRuntime.RuntimeDOM.Web = new RuntimeWebDOM();
|
||||||
}
|
}
|
||||||
|
|
||||||
return SystemRuntime.RuntimeDocument;
|
return SystemRuntime.RuntimeDOM.Web;
|
||||||
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -261,13 +259,11 @@ class SystemRuntime extends System {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (object instanceof ComponentImage) {
|
|
||||||
// if (SystemRuntime.CurrentProject === null) {
|
|
||||||
// return new RuntimeWebImage();
|
if (object instanceof ComponentCode) {
|
||||||
// } else {
|
|
||||||
// console.log('TODO: implement a project based Image runtime');
|
}
|
||||||
// }
|
|
||||||
// }
|
|
||||||
//CUSTOM_STATIC_ON_GET_RUNTIME_METHOD_END
|
//CUSTOM_STATIC_ON_GET_RUNTIME_METHOD_END
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -387,16 +383,6 @@ SystemRuntime.RuntimePhysics = {};
|
||||||
*/
|
*/
|
||||||
SystemRuntime.RuntimeStatistics = {};
|
SystemRuntime.RuntimeStatistics = {};
|
||||||
|
|
||||||
/**
|
|
||||||
* static RuntimeJsDOM - No comment
|
|
||||||
*/
|
|
||||||
SystemRuntime.RuntimeJsDOM = null;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* static RuntimeDocument - No comment
|
|
||||||
*/
|
|
||||||
SystemRuntime.RuntimeDocument = null;
|
|
||||||
|
|
||||||
//GENERATED_STATIC_OPTIONS_INIT_END
|
//GENERATED_STATIC_OPTIONS_INIT_END
|
||||||
|
|
||||||
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START
|
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||||
|
|
|
@ -90,12 +90,12 @@ class R3 {
|
||||||
/**
|
/**
|
||||||
* static Version - Current R3 version
|
* static Version - Current R3 version
|
||||||
*/
|
*/
|
||||||
R3.Version = '3.0.338';
|
R3.Version = '3.0.346';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* static CompileDate - Current compile date of R3
|
* static CompileDate - Current compile date of R3
|
||||||
*/
|
*/
|
||||||
R3.CompileDate = '2021 Oct 10 - 15:24:05 pm';
|
R3.CompileDate = '2021 Oct 10 - 16:15:59 pm';
|
||||||
|
|
||||||
//GENERATED_STATIC_OPTIONS_INIT_END
|
//GENERATED_STATIC_OPTIONS_INIT_END
|
||||||
|
|
||||||
|
|
|
@ -25,15 +25,13 @@ const EntitySlider = require('../src/r3/r3-entity/./r3-entity-slider.js');
|
||||||
const RuntimeCoder = require('../src/r3/r3-runtime/./r3-runtime-coder.js');
|
const RuntimeCoder = require('../src/r3/r3-runtime/./r3-runtime-coder.js');
|
||||||
const RuntimeCodeMirror = require('../src/r3/r3-runtime/./r3-runtime-code-mirror.js');
|
const RuntimeCodeMirror = require('../src/r3/r3-runtime/./r3-runtime-code-mirror.js');
|
||||||
const RuntimeDOM = require('../src/r3/r3-runtime/./r3-runtime-d-o-m.js');
|
const RuntimeDOM = require('../src/r3/r3-runtime/./r3-runtime-d-o-m.js');
|
||||||
const RuntimeDocument = require('../src/r3/r3-runtime/./r3-runtime-document.js');
|
const RuntimeJSDOM = require('../src/r3/r3-runtime/./r3-runtime-j-s-d-o-m.js');
|
||||||
const RuntimeJsDOM = require('../src/r3/r3-runtime/./r3-runtime-js-d-o-m.js');
|
const RuntimeWebDOM = require('../src/r3/r3-runtime/./r3-runtime-web-d-o-m.js');
|
||||||
const RuntimeGUI = require('../src/r3/r3-runtime/./r3-runtime-g-u-i.js');
|
const RuntimeGUI = require('../src/r3/r3-runtime/./r3-runtime-g-u-i.js');
|
||||||
const RuntimeControlKit = require('../src/r3/r3-runtime/./r3-runtime-control-kit.js');
|
const RuntimeControlKit = require('../src/r3/r3-runtime/./r3-runtime-control-kit.js');
|
||||||
const RuntimeGraphics = require('../src/r3/r3-runtime/./r3-runtime-graphics.js');
|
const RuntimeGraphics = require('../src/r3/r3-runtime/./r3-runtime-graphics.js');
|
||||||
const RuntimeThree = require('../src/r3/r3-runtime/./r3-runtime-three.js');
|
const RuntimeThree = require('../src/r3/r3-runtime/./r3-runtime-three.js');
|
||||||
const RuntimeImage = require('../src/r3/r3-runtime/./r3-runtime-image.js');
|
const RuntimeImage = require('../src/r3/r3-runtime/./r3-runtime-image.js');
|
||||||
const RuntimeNodeJSImage = require('../src/r3/r3-runtime/./r3-runtime-node-j-s-image.js');
|
|
||||||
const RuntimeWebImage = require('../src/r3/r3-runtime/./r3-runtime-web-image.js');
|
|
||||||
const RuntimePhysics = require('../src/r3/r3-runtime/./r3-runtime-physics.js');
|
const RuntimePhysics = require('../src/r3/r3-runtime/./r3-runtime-physics.js');
|
||||||
const RuntimeBullet = require('../src/r3/r3-runtime/./r3-runtime-bullet.js');
|
const RuntimeBullet = require('../src/r3/r3-runtime/./r3-runtime-bullet.js');
|
||||||
const RuntimeSocket = require('../src/r3/r3-runtime/./r3-runtime-socket.js');
|
const RuntimeSocket = require('../src/r3/r3-runtime/./r3-runtime-socket.js');
|
||||||
|
@ -118,15 +116,13 @@ describe('R3 Tests', () => {
|
||||||
const runtimeCoder = new RuntimeCoder();
|
const runtimeCoder = new RuntimeCoder();
|
||||||
const runtimeCodeMirror = new RuntimeCodeMirror();
|
const runtimeCodeMirror = new RuntimeCodeMirror();
|
||||||
const runtimeDOM = new RuntimeDOM();
|
const runtimeDOM = new RuntimeDOM();
|
||||||
const runtimeDocument = new RuntimeDocument();
|
const runtimeJSDOM = new RuntimeJSDOM();
|
||||||
const runtimeJsDOM = new RuntimeJsDOM();
|
const runtimeWebDOM = new RuntimeWebDOM();
|
||||||
const runtimeGUI = new RuntimeGUI();
|
const runtimeGUI = new RuntimeGUI();
|
||||||
const runtimeControlKit = new RuntimeControlKit();
|
const runtimeControlKit = new RuntimeControlKit();
|
||||||
const runtimeGraphics = new RuntimeGraphics();
|
const runtimeGraphics = new RuntimeGraphics();
|
||||||
const runtimeThree = new RuntimeThree();
|
const runtimeThree = new RuntimeThree();
|
||||||
const runtimeImage = new RuntimeImage();
|
const runtimeImage = new RuntimeImage();
|
||||||
const runtimeNodeJSImage = new RuntimeNodeJSImage();
|
|
||||||
const runtimeWebImage = new RuntimeWebImage();
|
|
||||||
const runtimePhysics = new RuntimePhysics();
|
const runtimePhysics = new RuntimePhysics();
|
||||||
const runtimeBullet = new RuntimeBullet();
|
const runtimeBullet = new RuntimeBullet();
|
||||||
const runtimeSocket = new RuntimeSocket();
|
const runtimeSocket = new RuntimeSocket();
|
||||||
|
|
Loading…
Reference in New Issue