remove dom runtime
parent
05089552ab
commit
cd70fa7a5d
|
@ -27,5 +27,3 @@ r3 create Stats extends Statistics ./r3-runtime/
|
|||
r3 create DOM extends Component ./r3-component/
|
||||
r3 create Canvas extends DOM ./r3-component/
|
||||
r3 create SystemDOM system
|
||||
r3 create DOM extends Runtime ./r3-runtime/
|
||||
r3 create Document extends DOM ./r3-runtime/
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
class R3 {
|
||||
static version = '2.0.227';
|
||||
static compileDate = '2021 Sep 08 - 23:07:00 pm';
|
||||
static version = '2.0.228';
|
||||
static compileDate = '2021 Sep 08 - 23:13:48 pm';
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -2562,20 +2562,17 @@ class Runtime extends Event {
|
|||
|
||||
Runtime.CODER = 0x0;
|
||||
Runtime.CODE_MIRROR = 0x1;
|
||||
Runtime.DOM = 0x2;
|
||||
Runtime.DOCUMENT = 0x3;
|
||||
Runtime.CANVAS = 0x4;
|
||||
Runtime.DEFAULT = 0x5;
|
||||
Runtime.GUI = 0x6;
|
||||
Runtime.CONTROL_KIT = 0x7;
|
||||
Runtime.GRAPHICS = 0x8;
|
||||
Runtime.THREE = 0x9;
|
||||
Runtime.PHYSICS = 0xa;
|
||||
Runtime.BULLET = 0xb;
|
||||
Runtime.SOCKET = 0xc;
|
||||
Runtime.STATISTICS = 0xd;
|
||||
Runtime.STATS = 0xe;
|
||||
Runtime.MAX_RUNTIMES = 0xf;
|
||||
Runtime.DEFAULT = 0x2;
|
||||
Runtime.GUI = 0x3;
|
||||
Runtime.CONTROL_KIT = 0x4;
|
||||
Runtime.GRAPHICS = 0x5;
|
||||
Runtime.THREE = 0x6;
|
||||
Runtime.PHYSICS = 0x7;
|
||||
Runtime.BULLET = 0x8;
|
||||
Runtime.SOCKET = 0x9;
|
||||
Runtime.STATISTICS = 0xa;
|
||||
Runtime.STATS = 0xb;
|
||||
Runtime.MAX_RUNTIMES = 0xc;
|
||||
|
||||
/**
|
||||
|
||||
|
@ -2795,111 +2792,6 @@ class Coder extends Runtime {
|
|||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Class R3.Event.Runtime.DOM
|
||||
[Inherited from Event]
|
||||
|
||||
Inherited Properties:
|
||||
|
||||
<no inherited properties>
|
||||
|
||||
Inherited Static Properties:
|
||||
|
||||
<no inherited static properties>
|
||||
|
||||
Inherited Methods:
|
||||
|
||||
- async(eventId, data, clientCallback, clientErrorCallback)
|
||||
Simply calls 'Async()' passing it the arguments
|
||||
|
||||
- emit(eventId, data, clientCallback, clientErrorCallback)
|
||||
Simply calls 'Emit()' passing it the arguments
|
||||
|
||||
- subscribe(eventId, callback)
|
||||
Simply calls 'Subscribe()' passing it the arguments
|
||||
|
||||
Inherited Static Methods:
|
||||
|
||||
- Async(eventId, data, clientCallback, clientErrorCallback)
|
||||
Calls all subscription functions registered to eventId with data, clientCallback and clientErrorCallback as
|
||||
arguments. If an error occurs during clientCallback it additionally will execute clientErrorCallback with the
|
||||
error as argument.
|
||||
|
||||
- Emit(eventId, data, clientCallback, clientErrorCallback)
|
||||
Calls all subscription functions registered to eventId with data as arg. Calls clientCallback directly after
|
||||
the event result is obtained, passing it the result. If an exception occurs during execution, the
|
||||
clientErrorCallback is called with the error as argument.
|
||||
|
||||
- Subscribe(eventId, callback)
|
||||
Subscribes to 'eventName', ex. Event.BEFORE_RENDER and executes 'callback()' when eventName is raised
|
||||
|
||||
[Inherited from Runtime]
|
||||
|
||||
Inherited Properties:
|
||||
|
||||
<no inherited properties>
|
||||
|
||||
Inherited Static Properties:
|
||||
|
||||
<no inherited static properties>
|
||||
|
||||
Inherited Methods:
|
||||
|
||||
<no inherited methods>
|
||||
|
||||
Inherited Static Methods:
|
||||
|
||||
<no inherited static methods>
|
||||
|
||||
[Belonging to DOM]
|
||||
|
||||
Properties:
|
||||
|
||||
<no properties>
|
||||
|
||||
Static Properties:
|
||||
|
||||
<no static properties>
|
||||
|
||||
Methods:
|
||||
|
||||
<no methods>
|
||||
|
||||
Static Methods:
|
||||
|
||||
<no static methods>
|
||||
|
||||
**/
|
||||
|
||||
class DOM extends Runtime {
|
||||
|
||||
constructor(options) {
|
||||
|
||||
if (typeof options === 'undefined') {
|
||||
options = {};
|
||||
}
|
||||
|
||||
if (typeof options.callDepth === 'undefined') {
|
||||
options.callDepth = 0;
|
||||
} else {
|
||||
options.callDepth++;
|
||||
}
|
||||
|
||||
super(options);
|
||||
|
||||
Object.assign(this, options);
|
||||
|
||||
if (options.callDepth === 0) {
|
||||
this.initialized();
|
||||
} else {
|
||||
options.callDepth--;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Class R3.Event.Runtime.Default
|
||||
|
@ -3744,10 +3636,11 @@ class Component extends R3Object {
|
|||
}
|
||||
|
||||
Component.DOM = 0x0;
|
||||
Component.IMAGE = 0x1;
|
||||
Component.INPUT = 0x2;
|
||||
Component.TOUCH = 0x3;
|
||||
Component.MAX_COMPONENTS = 0x4;
|
||||
Component.CANVAS = 0x1;
|
||||
Component.IMAGE = 0x2;
|
||||
Component.INPUT = 0x3;
|
||||
Component.TOUCH = 0x4;
|
||||
Component.MAX_COMPONENTS = 0x5;
|
||||
|
||||
/**
|
||||
|
||||
|
@ -3980,252 +3873,6 @@ class CodeMirror extends Coder {
|
|||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Class R3.Event.Runtime.DOM.Document
|
||||
[Inherited from Event]
|
||||
|
||||
Inherited Properties:
|
||||
|
||||
<no inherited properties>
|
||||
|
||||
Inherited Static Properties:
|
||||
|
||||
<no inherited static properties>
|
||||
|
||||
Inherited Methods:
|
||||
|
||||
- async(eventId, data, clientCallback, clientErrorCallback)
|
||||
Simply calls 'Async()' passing it the arguments
|
||||
|
||||
- emit(eventId, data, clientCallback, clientErrorCallback)
|
||||
Simply calls 'Emit()' passing it the arguments
|
||||
|
||||
- subscribe(eventId, callback)
|
||||
Simply calls 'Subscribe()' passing it the arguments
|
||||
|
||||
Inherited Static Methods:
|
||||
|
||||
- Async(eventId, data, clientCallback, clientErrorCallback)
|
||||
Calls all subscription functions registered to eventId with data, clientCallback and clientErrorCallback as
|
||||
arguments. If an error occurs during clientCallback it additionally will execute clientErrorCallback with the
|
||||
error as argument.
|
||||
|
||||
- Emit(eventId, data, clientCallback, clientErrorCallback)
|
||||
Calls all subscription functions registered to eventId with data as arg. Calls clientCallback directly after
|
||||
the event result is obtained, passing it the result. If an exception occurs during execution, the
|
||||
clientErrorCallback is called with the error as argument.
|
||||
|
||||
- Subscribe(eventId, callback)
|
||||
Subscribes to 'eventName', ex. Event.BEFORE_RENDER and executes 'callback()' when eventName is raised
|
||||
|
||||
[Inherited from Runtime]
|
||||
|
||||
Inherited Properties:
|
||||
|
||||
<no inherited properties>
|
||||
|
||||
Inherited Static Properties:
|
||||
|
||||
<no inherited static properties>
|
||||
|
||||
Inherited Methods:
|
||||
|
||||
<no inherited methods>
|
||||
|
||||
Inherited Static Methods:
|
||||
|
||||
<no inherited static methods>
|
||||
|
||||
[Inherited from DOM]
|
||||
|
||||
Inherited Properties:
|
||||
|
||||
<no inherited properties>
|
||||
|
||||
Inherited Static Properties:
|
||||
|
||||
<no inherited static properties>
|
||||
|
||||
Inherited Methods:
|
||||
|
||||
<no inherited methods>
|
||||
|
||||
Inherited Static Methods:
|
||||
|
||||
<no inherited static methods>
|
||||
|
||||
[Belonging to Document]
|
||||
|
||||
Properties:
|
||||
|
||||
<no properties>
|
||||
|
||||
Static Properties:
|
||||
|
||||
<no static properties>
|
||||
|
||||
Methods:
|
||||
|
||||
<no methods>
|
||||
|
||||
Static Methods:
|
||||
|
||||
<no static methods>
|
||||
|
||||
**/
|
||||
|
||||
class Document extends DOM {
|
||||
|
||||
constructor(options) {
|
||||
|
||||
if (typeof options === 'undefined') {
|
||||
options = {};
|
||||
}
|
||||
|
||||
if (typeof options.callDepth === 'undefined') {
|
||||
options.callDepth = 0;
|
||||
} else {
|
||||
options.callDepth++;
|
||||
}
|
||||
|
||||
super(options);
|
||||
|
||||
Object.assign(this, options);
|
||||
|
||||
if (options.callDepth === 0) {
|
||||
this.initialized();
|
||||
} else {
|
||||
options.callDepth--;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Class R3.Event.Runtime.DOM.Canvas
|
||||
[Inherited from Event]
|
||||
|
||||
Inherited Properties:
|
||||
|
||||
<no inherited properties>
|
||||
|
||||
Inherited Static Properties:
|
||||
|
||||
<no inherited static properties>
|
||||
|
||||
Inherited Methods:
|
||||
|
||||
- async(eventId, data, clientCallback, clientErrorCallback)
|
||||
Simply calls 'Async()' passing it the arguments
|
||||
|
||||
- emit(eventId, data, clientCallback, clientErrorCallback)
|
||||
Simply calls 'Emit()' passing it the arguments
|
||||
|
||||
- subscribe(eventId, callback)
|
||||
Simply calls 'Subscribe()' passing it the arguments
|
||||
|
||||
Inherited Static Methods:
|
||||
|
||||
- Async(eventId, data, clientCallback, clientErrorCallback)
|
||||
Calls all subscription functions registered to eventId with data, clientCallback and clientErrorCallback as
|
||||
arguments. If an error occurs during clientCallback it additionally will execute clientErrorCallback with the
|
||||
error as argument.
|
||||
|
||||
- Emit(eventId, data, clientCallback, clientErrorCallback)
|
||||
Calls all subscription functions registered to eventId with data as arg. Calls clientCallback directly after
|
||||
the event result is obtained, passing it the result. If an exception occurs during execution, the
|
||||
clientErrorCallback is called with the error as argument.
|
||||
|
||||
- Subscribe(eventId, callback)
|
||||
Subscribes to 'eventName', ex. Event.BEFORE_RENDER and executes 'callback()' when eventName is raised
|
||||
|
||||
[Inherited from Runtime]
|
||||
|
||||
Inherited Properties:
|
||||
|
||||
<no inherited properties>
|
||||
|
||||
Inherited Static Properties:
|
||||
|
||||
<no inherited static properties>
|
||||
|
||||
Inherited Methods:
|
||||
|
||||
<no inherited methods>
|
||||
|
||||
Inherited Static Methods:
|
||||
|
||||
<no inherited static methods>
|
||||
|
||||
[Inherited from DOM]
|
||||
|
||||
Inherited Properties:
|
||||
|
||||
<no inherited properties>
|
||||
|
||||
Inherited Static Properties:
|
||||
|
||||
<no inherited static properties>
|
||||
|
||||
Inherited Methods:
|
||||
|
||||
<no inherited methods>
|
||||
|
||||
Inherited Static Methods:
|
||||
|
||||
<no inherited static methods>
|
||||
|
||||
[Belonging to Canvas]
|
||||
|
||||
Properties:
|
||||
|
||||
<no properties>
|
||||
|
||||
Static Properties:
|
||||
|
||||
<no static properties>
|
||||
|
||||
Methods:
|
||||
|
||||
<no methods>
|
||||
|
||||
Static Methods:
|
||||
|
||||
<no static methods>
|
||||
|
||||
**/
|
||||
|
||||
class Canvas extends DOM {
|
||||
|
||||
constructor(options) {
|
||||
|
||||
if (typeof options === 'undefined') {
|
||||
options = {};
|
||||
}
|
||||
|
||||
if (typeof options.callDepth === 'undefined') {
|
||||
options.callDepth = 0;
|
||||
} else {
|
||||
options.callDepth++;
|
||||
}
|
||||
|
||||
super(options);
|
||||
|
||||
Object.assign(this, options);
|
||||
|
||||
if (options.callDepth === 0) {
|
||||
this.initialized();
|
||||
} else {
|
||||
options.callDepth--;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Class R3.Event.Runtime.GUI.ControlKit
|
||||
|
@ -5162,6 +4809,168 @@ class Input extends Component {
|
|||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Class R3.Event.Object.Component.DOM.Canvas
|
||||
[Inherited from Event]
|
||||
|
||||
Inherited Properties:
|
||||
|
||||
<no inherited properties>
|
||||
|
||||
Inherited Static Properties:
|
||||
|
||||
<no inherited static properties>
|
||||
|
||||
Inherited Methods:
|
||||
|
||||
- async(eventId, data, clientCallback, clientErrorCallback)
|
||||
Simply calls 'Async()' passing it the arguments
|
||||
|
||||
- emit(eventId, data, clientCallback, clientErrorCallback)
|
||||
Simply calls 'Emit()' passing it the arguments
|
||||
|
||||
- subscribe(eventId, callback)
|
||||
Simply calls 'Subscribe()' passing it the arguments
|
||||
|
||||
Inherited Static Methods:
|
||||
|
||||
- Async(eventId, data, clientCallback, clientErrorCallback)
|
||||
Calls all subscription functions registered to eventId with data, clientCallback and clientErrorCallback as
|
||||
arguments. If an error occurs during clientCallback it additionally will execute clientErrorCallback with the
|
||||
error as argument.
|
||||
|
||||
- Emit(eventId, data, clientCallback, clientErrorCallback)
|
||||
Calls all subscription functions registered to eventId with data as arg. Calls clientCallback directly after
|
||||
the event result is obtained, passing it the result. If an exception occurs during execution, the
|
||||
clientErrorCallback is called with the error as argument.
|
||||
|
||||
- Subscribe(eventId, callback)
|
||||
Subscribes to 'eventName', ex. Event.BEFORE_RENDER and executes 'callback()' when eventName is raised
|
||||
|
||||
[Inherited from R3Object]
|
||||
|
||||
Inherited Properties:
|
||||
|
||||
- id (Default value Utils.RandomId(10))
|
||||
- name (Default value 'Object ' + options.id)
|
||||
- register (Default value true)
|
||||
|
||||
Inherited Static Properties:
|
||||
|
||||
<no inherited static properties>
|
||||
|
||||
Inherited Methods:
|
||||
|
||||
- initialized()
|
||||
Emits an event which indicates that this object instance is ready to be created
|
||||
|
||||
Inherited Static Methods:
|
||||
|
||||
<no inherited static methods>
|
||||
|
||||
[Inherited from Component]
|
||||
|
||||
Inherited Properties:
|
||||
|
||||
<no inherited properties>
|
||||
|
||||
Inherited Static Properties:
|
||||
|
||||
<no inherited static properties>
|
||||
|
||||
Inherited Methods:
|
||||
|
||||
- initialized()
|
||||
In addition to firing an Event.OBJECT_INITIALIZED it also fires an Event.COMPONENT_INITIALIZED
|
||||
|
||||
- createInstance()
|
||||
Creates an instance of this object based on the current runtime
|
||||
|
||||
- dispose()
|
||||
Disposes of this object by disposing the instance first.
|
||||
|
||||
- disposeInstance()
|
||||
Disposes of the runtime instance.
|
||||
|
||||
- updateFromInstance()
|
||||
Updates this object by copying the values of its instance into the current object.
|
||||
|
||||
- getRuntime()
|
||||
Gets the current runtime object
|
||||
|
||||
Inherited Static Methods:
|
||||
|
||||
<no inherited static methods>
|
||||
|
||||
[Inherited from DOM]
|
||||
|
||||
Inherited Properties:
|
||||
|
||||
<no inherited properties>
|
||||
|
||||
Inherited Static Properties:
|
||||
|
||||
<no inherited static properties>
|
||||
|
||||
Inherited Methods:
|
||||
|
||||
- initialized()
|
||||
In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an
|
||||
Event.DOM_COMPONENT_INITIALIZED
|
||||
|
||||
Inherited Static Methods:
|
||||
|
||||
<no inherited static methods>
|
||||
|
||||
[Belonging to Canvas]
|
||||
|
||||
Properties:
|
||||
|
||||
<no properties>
|
||||
|
||||
Static Properties:
|
||||
|
||||
<no static properties>
|
||||
|
||||
Methods:
|
||||
|
||||
<no methods>
|
||||
|
||||
Static Methods:
|
||||
|
||||
<no static methods>
|
||||
|
||||
**/
|
||||
|
||||
class Canvas extends DOM {
|
||||
|
||||
constructor(options) {
|
||||
|
||||
if (typeof options === 'undefined') {
|
||||
options = {};
|
||||
}
|
||||
|
||||
if (typeof options.callDepth === 'undefined') {
|
||||
options.callDepth = 0;
|
||||
} else {
|
||||
options.callDepth++;
|
||||
}
|
||||
|
||||
super(options);
|
||||
|
||||
Object.assign(this, options);
|
||||
|
||||
if (options.callDepth === 0) {
|
||||
this.initialized();
|
||||
} else {
|
||||
options.callDepth--;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Class R3.Event.Object.Component.Input.Touch
|
||||
|
@ -5330,6 +5139,7 @@ R3.Object = R3Object;
|
|||
R3.Component = Component;
|
||||
R3.Project = Project;
|
||||
R3.DOM = DOM;
|
||||
R3.Canvas = Canvas;
|
||||
R3.Image = Image;
|
||||
R3.Input = Input;
|
||||
R3.Touch = Touch;
|
||||
|
@ -5338,13 +5148,12 @@ System.Input = SystemInput;
|
|||
System.Linking = SystemLinking;
|
||||
System.Socket = SystemSocket;
|
||||
Component.DOM = DOM;
|
||||
Component.DOM.Canvas = Canvas;
|
||||
Component.Image = Image;
|
||||
Component.Input = Input;
|
||||
Component.Input.Touch = Touch;
|
||||
Runtime.Coder = Coder;
|
||||
Runtime.Coder.CodeMirror = CodeMirror;
|
||||
Runtime.DOM = DOM;
|
||||
Runtime.DOM.Document = Document;
|
||||
Runtime.Default = Default;
|
||||
Runtime.GUI = GUI;
|
||||
Runtime.GUI.ControlKit = ControlKit;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "r3",
|
||||
"version" : "2.0.227",
|
||||
"version" : "2.0.228",
|
||||
"description": "",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
//GENERATED_IMPORTS_START
|
||||
const Component = require('./r3-component.js');
|
||||
const DOM = require('./r3-d-o-m.js');
|
||||
const Canvas = require('./r3-canvas.js');
|
||||
const Image = require('./r3-image.js');
|
||||
const Input = require('./r3-input.js');
|
||||
const Touch = require('./r3-touch.js');
|
||||
|
@ -8,6 +9,7 @@ const Touch = require('./r3-touch.js');
|
|||
|
||||
//GENERATED_INDEX_BODY_START
|
||||
Component.DOM = DOM;
|
||||
Component.DOM.Canvas = Canvas;
|
||||
Component.Image = Image;
|
||||
Component.Input = Input;
|
||||
Component.Input.Touch = Touch;
|
||||
|
|
|
@ -6,7 +6,7 @@ const DOM = require('.././r3-d-o-m.js');
|
|||
|
||||
GENERATED_INHERITED_START
|
||||
|
||||
Class R3.Event.Runtime.DOM.Canvas
|
||||
Class R3.Event.Object.Component.DOM.Canvas
|
||||
[Inherited from Event]
|
||||
|
||||
Inherited Properties:
|
||||
|
@ -43,7 +43,28 @@ const DOM = require('.././r3-d-o-m.js');
|
|||
- Subscribe(eventId, callback)
|
||||
Subscribes to 'eventName', ex. Event.BEFORE_RENDER and executes 'callback()' when eventName is raised
|
||||
|
||||
[Inherited from Runtime]
|
||||
[Inherited from R3Object]
|
||||
|
||||
Inherited Properties:
|
||||
|
||||
- id (Default value Utils.RandomId(10))
|
||||
- name (Default value 'Object ' + options.id)
|
||||
- register (Default value true)
|
||||
|
||||
Inherited Static Properties:
|
||||
|
||||
<no inherited static properties>
|
||||
|
||||
Inherited Methods:
|
||||
|
||||
- initialized()
|
||||
Emits an event which indicates that this object instance is ready to be created
|
||||
|
||||
Inherited Static Methods:
|
||||
|
||||
<no inherited static methods>
|
||||
|
||||
[Inherited from Component]
|
||||
|
||||
Inherited Properties:
|
||||
|
||||
|
@ -55,7 +76,23 @@ const DOM = require('.././r3-d-o-m.js');
|
|||
|
||||
Inherited Methods:
|
||||
|
||||
<no inherited methods>
|
||||
- initialized()
|
||||
In addition to firing an Event.OBJECT_INITIALIZED it also fires an Event.COMPONENT_INITIALIZED
|
||||
|
||||
- createInstance()
|
||||
Creates an instance of this object based on the current runtime
|
||||
|
||||
- dispose()
|
||||
Disposes of this object by disposing the instance first.
|
||||
|
||||
- disposeInstance()
|
||||
Disposes of the runtime instance.
|
||||
|
||||
- updateFromInstance()
|
||||
Updates this object by copying the values of its instance into the current object.
|
||||
|
||||
- getRuntime()
|
||||
Gets the current runtime object
|
||||
|
||||
Inherited Static Methods:
|
||||
|
||||
|
@ -73,7 +110,9 @@ const DOM = require('.././r3-d-o-m.js');
|
|||
|
||||
Inherited Methods:
|
||||
|
||||
<no inherited methods>
|
||||
- initialized()
|
||||
In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an
|
||||
Event.DOM_COMPONENT_INITIALIZED
|
||||
|
||||
Inherited Static Methods:
|
||||
|
||||
|
|
|
@ -302,10 +302,11 @@ class Component extends R3Object {
|
|||
|
||||
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||
Component.DOM = 0x0;
|
||||
Component.IMAGE = 0x1;
|
||||
Component.INPUT = 0x2;
|
||||
Component.TOUCH = 0x3;
|
||||
Component.MAX_COMPONENTS = 0x4;
|
||||
Component.CANVAS = 0x1;
|
||||
Component.IMAGE = 0x2;
|
||||
Component.INPUT = 0x3;
|
||||
Component.TOUCH = 0x4;
|
||||
Component.MAX_COMPONENTS = 0x5;
|
||||
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END
|
||||
|
||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
class R3 {
|
||||
static version = '2.0.227';
|
||||
static compileDate = '2021 Sep 08 - 23:07:00 pm';
|
||||
static version = '2.0.228';
|
||||
static compileDate = '2021 Sep 08 - 23:13:48 pm';
|
||||
}
|
||||
|
||||
//GENERATED_IMPORTS_START
|
||||
|
@ -22,6 +22,7 @@ R3.Object = R3Object;
|
|||
R3.Component = Component;
|
||||
R3.Project = Project;
|
||||
R3.DOM = DOM;
|
||||
R3.Canvas = Canvas;
|
||||
R3.Image = Image;
|
||||
R3.Input = Input;
|
||||
R3.Touch = Touch;
|
||||
|
|
|
@ -2,9 +2,6 @@
|
|||
const Runtime = require('./r3-runtime.js');
|
||||
const Coder = require('./r3-coder.js');
|
||||
const CodeMirror = require('./r3-code-mirror.js');
|
||||
const DOM = require('./r3-d-o-m.js');
|
||||
const Document = require('./r3-document.js');
|
||||
const Canvas = require('src/r3/r3-component/r3-canvas.js');
|
||||
const Default = require('./r3-default.js');
|
||||
const GUI = require('./r3-g-u-i.js');
|
||||
const ControlKit = require('./r3-control-kit.js');
|
||||
|
@ -20,8 +17,6 @@ const Stats = require('./r3-stats.js');
|
|||
//GENERATED_INDEX_BODY_START
|
||||
Runtime.Coder = Coder;
|
||||
Runtime.Coder.CodeMirror = CodeMirror;
|
||||
Runtime.DOM = DOM;
|
||||
Runtime.DOM.Document = Document;
|
||||
Runtime.Default = Default;
|
||||
Runtime.GUI = GUI;
|
||||
Runtime.GUI.ControlKit = ControlKit;
|
||||
|
|
|
@ -1,159 +0,0 @@
|
|||
const Event = require('.././r3-event');
|
||||
const Utils = require('.././r3-utils');
|
||||
const Runtime = require('.././r3-runtime.js');
|
||||
|
||||
/**
|
||||
|
||||
GENERATED_INHERITED_START
|
||||
|
||||
Class R3.Event.Runtime.DOM
|
||||
[Inherited from Event]
|
||||
|
||||
Inherited Properties:
|
||||
|
||||
<no inherited properties>
|
||||
|
||||
Inherited Static Properties:
|
||||
|
||||
<no inherited static properties>
|
||||
|
||||
Inherited Methods:
|
||||
|
||||
- async(eventId, data, clientCallback, clientErrorCallback)
|
||||
Simply calls 'Async()' passing it the arguments
|
||||
|
||||
- emit(eventId, data, clientCallback, clientErrorCallback)
|
||||
Simply calls 'Emit()' passing it the arguments
|
||||
|
||||
- subscribe(eventId, callback)
|
||||
Simply calls 'Subscribe()' passing it the arguments
|
||||
|
||||
Inherited Static Methods:
|
||||
|
||||
- Async(eventId, data, clientCallback, clientErrorCallback)
|
||||
Calls all subscription functions registered to eventId with data, clientCallback and clientErrorCallback as
|
||||
arguments. If an error occurs during clientCallback it additionally will execute clientErrorCallback with the
|
||||
error as argument.
|
||||
|
||||
- Emit(eventId, data, clientCallback, clientErrorCallback)
|
||||
Calls all subscription functions registered to eventId with data as arg. Calls clientCallback directly after
|
||||
the event result is obtained, passing it the result. If an exception occurs during execution, the
|
||||
clientErrorCallback is called with the error as argument.
|
||||
|
||||
- Subscribe(eventId, callback)
|
||||
Subscribes to 'eventName', ex. Event.BEFORE_RENDER and executes 'callback()' when eventName is raised
|
||||
|
||||
[Inherited from Runtime]
|
||||
|
||||
Inherited Properties:
|
||||
|
||||
<no inherited properties>
|
||||
|
||||
Inherited Static Properties:
|
||||
|
||||
<no inherited static properties>
|
||||
|
||||
Inherited Methods:
|
||||
|
||||
<no inherited methods>
|
||||
|
||||
Inherited Static Methods:
|
||||
|
||||
<no inherited static methods>
|
||||
|
||||
[Belonging to DOM]
|
||||
|
||||
Properties:
|
||||
|
||||
<no properties>
|
||||
|
||||
Static Properties:
|
||||
|
||||
<no static properties>
|
||||
|
||||
Methods:
|
||||
|
||||
<no methods>
|
||||
|
||||
Static Methods:
|
||||
|
||||
<no static methods>
|
||||
|
||||
GENERATED_INHERITED_END
|
||||
|
||||
CUSTOM_OPTIONS_START
|
||||
CUSTOM_OPTIONS_END
|
||||
|
||||
CUSTOM_INSTANCE_OPTIONS_MAPPING_START
|
||||
CUSTOM_INSTANCE_OPTIONS_MAPPING_END
|
||||
|
||||
CUSTOM_LINKED_OBJECTS_START
|
||||
CUSTOM_LINKED_OBJECTS_END
|
||||
|
||||
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_START
|
||||
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END
|
||||
|
||||
CUSTOM_METHODS_START
|
||||
CUSTOM_METHODS_END
|
||||
|
||||
CUSTOM_STATIC_METHODS_START
|
||||
CUSTOM_STATIC_METHODS_END
|
||||
|
||||
**/
|
||||
|
||||
class DOM extends Runtime {
|
||||
|
||||
//GENERATED_CONSTRUCTOR_EXTENDS_START
|
||||
constructor(options) {
|
||||
|
||||
if (typeof options === 'undefined') {
|
||||
options = {};
|
||||
}
|
||||
|
||||
if (typeof options.callDepth === 'undefined') {
|
||||
options.callDepth = 0;
|
||||
} else {
|
||||
options.callDepth++;
|
||||
}
|
||||
|
||||
super(options);
|
||||
|
||||
//GENERATED_OPTIONS_INIT_START
|
||||
//GENERATED_OPTIONS_INIT_END
|
||||
|
||||
//CUSTOM_OPTIONS_INIT_START
|
||||
//CUSTOM_OPTIONS_INIT_END
|
||||
|
||||
Object.assign(this, options);
|
||||
|
||||
//CUSTOM_BEFORE_INIT_START
|
||||
//CUSTOM_BEFORE_INIT_END
|
||||
|
||||
if (options.callDepth === 0) {
|
||||
this.initialized();
|
||||
} else {
|
||||
options.callDepth--;
|
||||
}
|
||||
|
||||
//CUSTOM_AFTER_INIT_START
|
||||
//CUSTOM_AFTER_INIT_END
|
||||
}
|
||||
//GENERATED_CONSTRUCTOR_EXTENDS_END
|
||||
|
||||
//GENERATED_METHODS_START
|
||||
//GENERATED_METHODS_END
|
||||
|
||||
//GENERATED_STATIC_METHODS_START
|
||||
//GENERATED_STATIC_METHODS_END
|
||||
|
||||
//CUSTOM_IMPLEMENTATION_START
|
||||
//CUSTOM_IMPLEMENTATION_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 = DOM;
|
|
@ -1,177 +0,0 @@
|
|||
const Event = require('.././r3-event');
|
||||
const Utils = require('.././r3-utils');
|
||||
const DOM = require('.././r3-d-o-m.js');
|
||||
|
||||
/**
|
||||
|
||||
GENERATED_INHERITED_START
|
||||
|
||||
Class R3.Event.Runtime.DOM.Document
|
||||
[Inherited from Event]
|
||||
|
||||
Inherited Properties:
|
||||
|
||||
<no inherited properties>
|
||||
|
||||
Inherited Static Properties:
|
||||
|
||||
<no inherited static properties>
|
||||
|
||||
Inherited Methods:
|
||||
|
||||
- async(eventId, data, clientCallback, clientErrorCallback)
|
||||
Simply calls 'Async()' passing it the arguments
|
||||
|
||||
- emit(eventId, data, clientCallback, clientErrorCallback)
|
||||
Simply calls 'Emit()' passing it the arguments
|
||||
|
||||
- subscribe(eventId, callback)
|
||||
Simply calls 'Subscribe()' passing it the arguments
|
||||
|
||||
Inherited Static Methods:
|
||||
|
||||
- Async(eventId, data, clientCallback, clientErrorCallback)
|
||||
Calls all subscription functions registered to eventId with data, clientCallback and clientErrorCallback as
|
||||
arguments. If an error occurs during clientCallback it additionally will execute clientErrorCallback with the
|
||||
error as argument.
|
||||
|
||||
- Emit(eventId, data, clientCallback, clientErrorCallback)
|
||||
Calls all subscription functions registered to eventId with data as arg. Calls clientCallback directly after
|
||||
the event result is obtained, passing it the result. If an exception occurs during execution, the
|
||||
clientErrorCallback is called with the error as argument.
|
||||
|
||||
- Subscribe(eventId, callback)
|
||||
Subscribes to 'eventName', ex. Event.BEFORE_RENDER and executes 'callback()' when eventName is raised
|
||||
|
||||
[Inherited from Runtime]
|
||||
|
||||
Inherited Properties:
|
||||
|
||||
<no inherited properties>
|
||||
|
||||
Inherited Static Properties:
|
||||
|
||||
<no inherited static properties>
|
||||
|
||||
Inherited Methods:
|
||||
|
||||
<no inherited methods>
|
||||
|
||||
Inherited Static Methods:
|
||||
|
||||
<no inherited static methods>
|
||||
|
||||
[Inherited from DOM]
|
||||
|
||||
Inherited Properties:
|
||||
|
||||
<no inherited properties>
|
||||
|
||||
Inherited Static Properties:
|
||||
|
||||
<no inherited static properties>
|
||||
|
||||
Inherited Methods:
|
||||
|
||||
<no inherited methods>
|
||||
|
||||
Inherited Static Methods:
|
||||
|
||||
<no inherited static methods>
|
||||
|
||||
[Belonging to Document]
|
||||
|
||||
Properties:
|
||||
|
||||
<no properties>
|
||||
|
||||
Static Properties:
|
||||
|
||||
<no static properties>
|
||||
|
||||
Methods:
|
||||
|
||||
<no methods>
|
||||
|
||||
Static Methods:
|
||||
|
||||
<no static methods>
|
||||
|
||||
GENERATED_INHERITED_END
|
||||
|
||||
CUSTOM_OPTIONS_START
|
||||
CUSTOM_OPTIONS_END
|
||||
|
||||
CUSTOM_INSTANCE_OPTIONS_MAPPING_START
|
||||
CUSTOM_INSTANCE_OPTIONS_MAPPING_END
|
||||
|
||||
CUSTOM_LINKED_OBJECTS_START
|
||||
CUSTOM_LINKED_OBJECTS_END
|
||||
|
||||
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_START
|
||||
CUSTOM_EXCLUDED_FROM_INSTANCE_OPTIONS_END
|
||||
|
||||
CUSTOM_METHODS_START
|
||||
CUSTOM_METHODS_END
|
||||
|
||||
CUSTOM_STATIC_METHODS_START
|
||||
CUSTOM_STATIC_METHODS_END
|
||||
|
||||
**/
|
||||
|
||||
class Document extends DOM {
|
||||
|
||||
//GENERATED_CONSTRUCTOR_EXTENDS_START
|
||||
constructor(options) {
|
||||
|
||||
if (typeof options === 'undefined') {
|
||||
options = {};
|
||||
}
|
||||
|
||||
if (typeof options.callDepth === 'undefined') {
|
||||
options.callDepth = 0;
|
||||
} else {
|
||||
options.callDepth++;
|
||||
}
|
||||
|
||||
super(options);
|
||||
|
||||
//GENERATED_OPTIONS_INIT_START
|
||||
//GENERATED_OPTIONS_INIT_END
|
||||
|
||||
//CUSTOM_OPTIONS_INIT_START
|
||||
//CUSTOM_OPTIONS_INIT_END
|
||||
|
||||
Object.assign(this, options);
|
||||
|
||||
//CUSTOM_BEFORE_INIT_START
|
||||
//CUSTOM_BEFORE_INIT_END
|
||||
|
||||
if (options.callDepth === 0) {
|
||||
this.initialized();
|
||||
} else {
|
||||
options.callDepth--;
|
||||
}
|
||||
|
||||
//CUSTOM_AFTER_INIT_START
|
||||
//CUSTOM_AFTER_INIT_END
|
||||
}
|
||||
//GENERATED_CONSTRUCTOR_EXTENDS_END
|
||||
|
||||
//GENERATED_METHODS_START
|
||||
//GENERATED_METHODS_END
|
||||
|
||||
//GENERATED_STATIC_METHODS_START
|
||||
//GENERATED_STATIC_METHODS_END
|
||||
|
||||
//CUSTOM_IMPLEMENTATION_START
|
||||
//CUSTOM_IMPLEMENTATION_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 = Document;
|
|
@ -134,20 +134,17 @@ class Runtime extends Event {
|
|||
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||
Runtime.CODER = 0x0;
|
||||
Runtime.CODE_MIRROR = 0x1;
|
||||
Runtime.DOM = 0x2;
|
||||
Runtime.DOCUMENT = 0x3;
|
||||
Runtime.CANVAS = 0x4;
|
||||
Runtime.DEFAULT = 0x5;
|
||||
Runtime.GUI = 0x6;
|
||||
Runtime.CONTROL_KIT = 0x7;
|
||||
Runtime.GRAPHICS = 0x8;
|
||||
Runtime.THREE = 0x9;
|
||||
Runtime.PHYSICS = 0xa;
|
||||
Runtime.BULLET = 0xb;
|
||||
Runtime.SOCKET = 0xc;
|
||||
Runtime.STATISTICS = 0xd;
|
||||
Runtime.STATS = 0xe;
|
||||
Runtime.MAX_RUNTIMES = 0xf;
|
||||
Runtime.DEFAULT = 0x2;
|
||||
Runtime.GUI = 0x3;
|
||||
Runtime.CONTROL_KIT = 0x4;
|
||||
Runtime.GRAPHICS = 0x5;
|
||||
Runtime.THREE = 0x6;
|
||||
Runtime.PHYSICS = 0x7;
|
||||
Runtime.BULLET = 0x8;
|
||||
Runtime.SOCKET = 0x9;
|
||||
Runtime.STATISTICS = 0xa;
|
||||
Runtime.STATS = 0xb;
|
||||
Runtime.MAX_RUNTIMES = 0xc;
|
||||
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END
|
||||
|
||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||
|
|
Loading…
Reference in New Issue