re-introduce some methods for system templates
parent
cd6664aced
commit
05089552ab
|
@ -27,3 +27,5 @@ r3 create Stats extends Statistics ./r3-runtime/
|
||||||
r3 create DOM extends Component ./r3-component/
|
r3 create DOM extends Component ./r3-component/
|
||||||
r3 create Canvas extends DOM ./r3-component/
|
r3 create Canvas extends DOM ./r3-component/
|
||||||
r3 create SystemDOM system
|
r3 create SystemDOM system
|
||||||
|
r3 create DOM extends Runtime ./r3-runtime/
|
||||||
|
r3 create Document extends DOM ./r3-runtime/
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
class R3 {
|
class R3 {
|
||||||
static version = '2.0.221';
|
static version = '2.0.227';
|
||||||
static compileDate = '2021 Sep 08 - 08:46:07 am';
|
static compileDate = '2021 Sep 08 - 23:07:00 pm';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -44,6 +44,17 @@ class System {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* initialized()
|
||||||
|
* - No comment
|
||||||
|
*/
|
||||||
|
initialized() {
|
||||||
|
|
||||||
|
Event.Emit(Event.OBJECT_INITIALIZED, this);
|
||||||
|
delete this.callDepth;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
System.Started = false;
|
System.Started = false;
|
||||||
|
@ -1635,7 +1646,8 @@ class Utils {
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
<no inherited methods>
|
- initialized()
|
||||||
|
No comment
|
||||||
|
|
||||||
Inherited Static Methods:
|
Inherited Static Methods:
|
||||||
|
|
||||||
|
@ -1645,15 +1657,21 @@ class Utils {
|
||||||
|
|
||||||
Properties:
|
Properties:
|
||||||
|
|
||||||
<no properties>
|
- started (Default value false)
|
||||||
|
- subscriptions (Default value {})
|
||||||
|
|
||||||
Static Properties:
|
Static Properties:
|
||||||
|
|
||||||
<no static properties>
|
- Started (Default value false)
|
||||||
|
- Subscriptions (Default value {})
|
||||||
|
|
||||||
Methods:
|
Methods:
|
||||||
|
|
||||||
<no methods>
|
- start()
|
||||||
|
Starts a transient system by registering subscriptions to Events
|
||||||
|
|
||||||
|
- stop()
|
||||||
|
Stops a transient system to by removing subscriptions to Events
|
||||||
|
|
||||||
Static Methods:
|
Static Methods:
|
||||||
|
|
||||||
|
@ -1663,6 +1681,9 @@ class Utils {
|
||||||
- Stop()
|
- Stop()
|
||||||
Stops the system by removing these subscriptions to events
|
Stops the system by removing these subscriptions to events
|
||||||
|
|
||||||
|
Started=false
|
||||||
|
Subscriptions={}
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
class SystemDOM extends System {
|
class SystemDOM extends System {
|
||||||
|
@ -1681,6 +1702,14 @@ class SystemDOM extends System {
|
||||||
|
|
||||||
super(options);
|
super(options);
|
||||||
|
|
||||||
|
if (typeof options.started === 'undefined') {
|
||||||
|
options.started = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (typeof options.subscriptions === 'undefined') {
|
||||||
|
options.subscriptions = {};
|
||||||
|
}
|
||||||
|
|
||||||
Object.assign(this, options);
|
Object.assign(this, options);
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
|
@ -1691,6 +1720,30 @@ class SystemDOM extends System {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* start()
|
||||||
|
* - Starts a transient system by registering subscriptions to Events
|
||||||
|
*/
|
||||||
|
start() {
|
||||||
|
|
||||||
|
this.started = true;
|
||||||
|
|
||||||
|
console.log('Started transient system: SystemDOM');
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* stop()
|
||||||
|
* - Stops a transient system to by removing subscriptions to Events
|
||||||
|
*/
|
||||||
|
stop() {
|
||||||
|
|
||||||
|
this.started = false;
|
||||||
|
|
||||||
|
console.log('Stopped transient system: SystemDOM');
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Start()
|
* Start()
|
||||||
* - Starts the system by registering subscriptions to events
|
* - Starts the system by registering subscriptions to events
|
||||||
|
@ -1731,12 +1784,17 @@ class SystemDOM extends System {
|
||||||
*/
|
*/
|
||||||
static OnDomComponentInitialized(object) {
|
static OnDomComponentInitialized(object) {
|
||||||
|
|
||||||
console.log('DOM Component Created');
|
console.log('DOM Component Initialized');
|
||||||
|
|
||||||
|
object.createInstance();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SystemDOM.Started = false;
|
||||||
|
SystemDOM.Subscriptions = {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
Class R3.System.Input
|
Class R3.System.Input
|
||||||
|
@ -1754,7 +1812,8 @@ class SystemDOM extends System {
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
<no inherited methods>
|
- initialized()
|
||||||
|
No comment
|
||||||
|
|
||||||
Inherited Static Methods:
|
Inherited Static Methods:
|
||||||
|
|
||||||
|
@ -1764,11 +1823,13 @@ class SystemDOM extends System {
|
||||||
|
|
||||||
Properties:
|
Properties:
|
||||||
|
|
||||||
<no properties>
|
- started (Default value false)
|
||||||
|
- subscriptions (Default value {})
|
||||||
|
|
||||||
Static Properties:
|
Static Properties:
|
||||||
|
|
||||||
<no static properties>
|
- Started (Default value false)
|
||||||
|
- Subscriptions (Default value {})
|
||||||
|
|
||||||
Methods:
|
Methods:
|
||||||
|
|
||||||
|
@ -1786,6 +1847,9 @@ class SystemDOM extends System {
|
||||||
- Stop()
|
- Stop()
|
||||||
Stops the system by removing these subscriptions to events
|
Stops the system by removing these subscriptions to events
|
||||||
|
|
||||||
|
Started=false
|
||||||
|
Subscriptions={}
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
class SystemInput extends System {
|
class SystemInput extends System {
|
||||||
|
@ -1804,6 +1868,14 @@ class SystemInput extends System {
|
||||||
|
|
||||||
super(options);
|
super(options);
|
||||||
|
|
||||||
|
if (typeof options.started === 'undefined') {
|
||||||
|
options.started = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (typeof options.subscriptions === 'undefined') {
|
||||||
|
options.subscriptions = {};
|
||||||
|
}
|
||||||
|
|
||||||
Object.assign(this, options);
|
Object.assign(this, options);
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
|
@ -2046,6 +2118,9 @@ class SystemInput extends System {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SystemInput.Started = false;
|
||||||
|
SystemInput.Subscriptions = {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
Class R3.System.Linking
|
Class R3.System.Linking
|
||||||
|
@ -2063,7 +2138,8 @@ class SystemInput extends System {
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
<no inherited methods>
|
- initialized()
|
||||||
|
No comment
|
||||||
|
|
||||||
Inherited Static Methods:
|
Inherited Static Methods:
|
||||||
|
|
||||||
|
@ -2073,19 +2149,21 @@ class SystemInput extends System {
|
||||||
|
|
||||||
Properties:
|
Properties:
|
||||||
|
|
||||||
<no properties>
|
- started (Default value false)
|
||||||
|
- subscriptions (Default value {})
|
||||||
|
|
||||||
Static Properties:
|
Static Properties:
|
||||||
|
|
||||||
<no static properties>
|
- Started (Default value false)
|
||||||
|
- Subscriptions (Default value {})
|
||||||
|
|
||||||
Methods:
|
Methods:
|
||||||
|
|
||||||
- start(options)
|
- start()
|
||||||
Just calls System.Start(options)
|
Starts a transient system by registering subscriptions to Events
|
||||||
|
|
||||||
- stop(options)
|
- stop()
|
||||||
Just calls System.Stop(options)
|
Stops a transient system to by removing subscriptions to Events
|
||||||
|
|
||||||
Static Methods:
|
Static Methods:
|
||||||
|
|
||||||
|
@ -2095,6 +2173,9 @@ class SystemInput extends System {
|
||||||
- Stop(options)
|
- Stop(options)
|
||||||
Stops the system by removing these subscriptions to events
|
Stops the system by removing these subscriptions to events
|
||||||
|
|
||||||
|
Started=false
|
||||||
|
Subscriptions={}
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
class SystemLinking extends System {
|
class SystemLinking extends System {
|
||||||
|
@ -2113,6 +2194,14 @@ class SystemLinking extends System {
|
||||||
|
|
||||||
super(options);
|
super(options);
|
||||||
|
|
||||||
|
if (typeof options.started === 'undefined') {
|
||||||
|
options.started = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (typeof options.subscriptions === 'undefined') {
|
||||||
|
options.subscriptions = {};
|
||||||
|
}
|
||||||
|
|
||||||
Object.assign(this, options);
|
Object.assign(this, options);
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
|
@ -2125,10 +2214,9 @@ class SystemLinking extends System {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* start()
|
* start()
|
||||||
* - Just calls System.Start(options)
|
* - Starts a transient system by registering subscriptions to Events
|
||||||
* @param options
|
|
||||||
*/
|
*/
|
||||||
start(options) {
|
start() {
|
||||||
|
|
||||||
this.started = true;
|
this.started = true;
|
||||||
|
|
||||||
|
@ -2138,10 +2226,9 @@ class SystemLinking extends System {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* stop()
|
* stop()
|
||||||
* - Just calls System.Stop(options)
|
* - Stops a transient system to by removing subscriptions to Events
|
||||||
* @param options
|
|
||||||
*/
|
*/
|
||||||
stop(options) {
|
stop() {
|
||||||
|
|
||||||
this.started = false;
|
this.started = false;
|
||||||
|
|
||||||
|
@ -2235,6 +2322,9 @@ class SystemLinking extends System {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SystemLinking.Started = false;
|
||||||
|
SystemLinking.Subscriptions = {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
Class R3.System.Socket
|
Class R3.System.Socket
|
||||||
|
@ -2252,7 +2342,8 @@ class SystemLinking extends System {
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
<no inherited methods>
|
- initialized()
|
||||||
|
No comment
|
||||||
|
|
||||||
Inherited Static Methods:
|
Inherited Static Methods:
|
||||||
|
|
||||||
|
@ -2262,19 +2353,21 @@ class SystemLinking extends System {
|
||||||
|
|
||||||
Properties:
|
Properties:
|
||||||
|
|
||||||
<no properties>
|
- started (Default value false)
|
||||||
|
- subscriptions (Default value {})
|
||||||
|
|
||||||
Static Properties:
|
Static Properties:
|
||||||
|
|
||||||
<no static properties>
|
- Started (Default value false)
|
||||||
|
- Subscriptions (Default value {})
|
||||||
|
|
||||||
Methods:
|
Methods:
|
||||||
|
|
||||||
- start(options)
|
- start()
|
||||||
Just calls System.Start(options)
|
Starts a transient system by registering subscriptions to Events
|
||||||
|
|
||||||
- stop(options)
|
- stop()
|
||||||
Just calls System.Stop(options)
|
Stops a transient system to by removing subscriptions to Events
|
||||||
|
|
||||||
Static Methods:
|
Static Methods:
|
||||||
|
|
||||||
|
@ -2284,6 +2377,9 @@ class SystemLinking extends System {
|
||||||
- Stop(options)
|
- Stop(options)
|
||||||
Stops the system by removing these subscriptions to events
|
Stops the system by removing these subscriptions to events
|
||||||
|
|
||||||
|
Started=false
|
||||||
|
Subscriptions={}
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
class SystemSocket extends System {
|
class SystemSocket extends System {
|
||||||
|
@ -2302,6 +2398,14 @@ class SystemSocket extends System {
|
||||||
|
|
||||||
super(options);
|
super(options);
|
||||||
|
|
||||||
|
if (typeof options.started === 'undefined') {
|
||||||
|
options.started = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (typeof options.subscriptions === 'undefined') {
|
||||||
|
options.subscriptions = {};
|
||||||
|
}
|
||||||
|
|
||||||
Object.assign(this, options);
|
Object.assign(this, options);
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
|
@ -2314,10 +2418,9 @@ class SystemSocket extends System {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* start()
|
* start()
|
||||||
* - Just calls System.Start(options)
|
* - Starts a transient system by registering subscriptions to Events
|
||||||
* @param options
|
|
||||||
*/
|
*/
|
||||||
start(options) {
|
start() {
|
||||||
|
|
||||||
this.started = true;
|
this.started = true;
|
||||||
|
|
||||||
|
@ -2327,10 +2430,9 @@ class SystemSocket extends System {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* stop()
|
* stop()
|
||||||
* - Just calls System.Stop(options)
|
* - Stops a transient system to by removing subscriptions to Events
|
||||||
* @param options
|
|
||||||
*/
|
*/
|
||||||
stop(options) {
|
stop() {
|
||||||
|
|
||||||
this.started = false;
|
this.started = false;
|
||||||
|
|
||||||
|
@ -2368,6 +2470,9 @@ class SystemSocket extends System {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SystemSocket.Started = false;
|
||||||
|
SystemSocket.Subscriptions = {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
Class R3.Event.Runtime
|
Class R3.Event.Runtime
|
||||||
|
@ -2457,17 +2562,20 @@ class Runtime extends Event {
|
||||||
|
|
||||||
Runtime.CODER = 0x0;
|
Runtime.CODER = 0x0;
|
||||||
Runtime.CODE_MIRROR = 0x1;
|
Runtime.CODE_MIRROR = 0x1;
|
||||||
Runtime.DEFAULT = 0x2;
|
Runtime.DOM = 0x2;
|
||||||
Runtime.GUI = 0x3;
|
Runtime.DOCUMENT = 0x3;
|
||||||
Runtime.CONTROL_KIT = 0x4;
|
Runtime.CANVAS = 0x4;
|
||||||
Runtime.GRAPHICS = 0x5;
|
Runtime.DEFAULT = 0x5;
|
||||||
Runtime.THREE = 0x6;
|
Runtime.GUI = 0x6;
|
||||||
Runtime.PHYSICS = 0x7;
|
Runtime.CONTROL_KIT = 0x7;
|
||||||
Runtime.BULLET = 0x8;
|
Runtime.GRAPHICS = 0x8;
|
||||||
Runtime.SOCKET = 0x9;
|
Runtime.THREE = 0x9;
|
||||||
Runtime.STATISTICS = 0xa;
|
Runtime.PHYSICS = 0xa;
|
||||||
Runtime.STATS = 0xb;
|
Runtime.BULLET = 0xb;
|
||||||
Runtime.MAX_RUNTIMES = 0xc;
|
Runtime.SOCKET = 0xc;
|
||||||
|
Runtime.STATISTICS = 0xd;
|
||||||
|
Runtime.STATS = 0xe;
|
||||||
|
Runtime.MAX_RUNTIMES = 0xf;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
|
@ -2687,6 +2795,111 @@ 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
|
Class R3.Event.Runtime.Default
|
||||||
|
@ -3518,24 +3731,23 @@ class Component extends R3Object {
|
||||||
*/
|
*/
|
||||||
getRuntime() {
|
getRuntime() {
|
||||||
|
|
||||||
if (this.runtime === R3.Runtime.DEFAULT) {
|
this.emit(
|
||||||
//TODO: implement runtime base
|
Event.GET_RUNTIME,
|
||||||
return null;
|
this,
|
||||||
}
|
function(runtime) {
|
||||||
|
this.runtime = runtime;
|
||||||
//TODO: implement runtime classes
|
}.bind(this)
|
||||||
return null;
|
)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Component.DOM = 0x0;
|
Component.DOM = 0x0;
|
||||||
Component.CANVAS = 0x1;
|
Component.IMAGE = 0x1;
|
||||||
Component.IMAGE = 0x2;
|
Component.INPUT = 0x2;
|
||||||
Component.INPUT = 0x3;
|
Component.TOUCH = 0x3;
|
||||||
Component.TOUCH = 0x4;
|
Component.MAX_COMPONENTS = 0x4;
|
||||||
Component.MAX_COMPONENTS = 0x5;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
||||||
|
@ -3768,6 +3980,252 @@ 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
|
Class R3.Event.Runtime.GUI.ControlKit
|
||||||
|
@ -4704,168 +5162,6 @@ 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
|
Class R3.Event.Object.Component.Input.Touch
|
||||||
|
@ -5034,7 +5330,6 @@ R3.Object = R3Object;
|
||||||
R3.Component = Component;
|
R3.Component = Component;
|
||||||
R3.Project = Project;
|
R3.Project = Project;
|
||||||
R3.DOM = DOM;
|
R3.DOM = DOM;
|
||||||
R3.Canvas = Canvas;
|
|
||||||
R3.Image = Image;
|
R3.Image = Image;
|
||||||
R3.Input = Input;
|
R3.Input = Input;
|
||||||
R3.Touch = Touch;
|
R3.Touch = Touch;
|
||||||
|
@ -5043,12 +5338,13 @@ System.Input = SystemInput;
|
||||||
System.Linking = SystemLinking;
|
System.Linking = SystemLinking;
|
||||||
System.Socket = SystemSocket;
|
System.Socket = SystemSocket;
|
||||||
Component.DOM = DOM;
|
Component.DOM = DOM;
|
||||||
Component.DOM.Canvas = Canvas;
|
|
||||||
Component.Image = Image;
|
Component.Image = Image;
|
||||||
Component.Input = Input;
|
Component.Input = Input;
|
||||||
Component.Input.Touch = Touch;
|
Component.Input.Touch = Touch;
|
||||||
Runtime.Coder = Coder;
|
Runtime.Coder = Coder;
|
||||||
Runtime.Coder.CodeMirror = CodeMirror;
|
Runtime.Coder.CodeMirror = CodeMirror;
|
||||||
|
Runtime.DOM = DOM;
|
||||||
|
Runtime.DOM.Document = Document;
|
||||||
Runtime.Default = Default;
|
Runtime.Default = Default;
|
||||||
Runtime.GUI = GUI;
|
Runtime.GUI = GUI;
|
||||||
Runtime.GUI.ControlKit = ControlKit;
|
Runtime.GUI.ControlKit = ControlKit;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "r3",
|
"name": "r3",
|
||||||
"version" : "2.0.221",
|
"version" : "2.0.227",
|
||||||
"description": "",
|
"description": "",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
//GENERATED_IMPORTS_START
|
//GENERATED_IMPORTS_START
|
||||||
const Component = require('./r3-component.js');
|
const Component = require('./r3-component.js');
|
||||||
const DOM = require('./r3-d-o-m.js');
|
const DOM = require('./r3-d-o-m.js');
|
||||||
const Canvas = require('./r3-canvas.js');
|
|
||||||
const Image = require('./r3-image.js');
|
const Image = require('./r3-image.js');
|
||||||
const Input = require('./r3-input.js');
|
const Input = require('./r3-input.js');
|
||||||
const Touch = require('./r3-touch.js');
|
const Touch = require('./r3-touch.js');
|
||||||
|
@ -9,7 +8,6 @@ const Touch = require('./r3-touch.js');
|
||||||
|
|
||||||
//GENERATED_INDEX_BODY_START
|
//GENERATED_INDEX_BODY_START
|
||||||
Component.DOM = DOM;
|
Component.DOM = DOM;
|
||||||
Component.DOM.Canvas = Canvas;
|
|
||||||
Component.Image = Image;
|
Component.Image = Image;
|
||||||
Component.Input = Input;
|
Component.Input = Input;
|
||||||
Component.Input.Touch = Touch;
|
Component.Input.Touch = Touch;
|
||||||
|
|
|
@ -6,7 +6,7 @@ const DOM = require('.././r3-d-o-m.js');
|
||||||
|
|
||||||
GENERATED_INHERITED_START
|
GENERATED_INHERITED_START
|
||||||
|
|
||||||
Class R3.Event.Object.Component.DOM.Canvas
|
Class R3.Event.Runtime.DOM.Canvas
|
||||||
[Inherited from Event]
|
[Inherited from Event]
|
||||||
|
|
||||||
Inherited Properties:
|
Inherited Properties:
|
||||||
|
@ -43,28 +43,7 @@ const DOM = require('.././r3-d-o-m.js');
|
||||||
- Subscribe(eventId, callback)
|
- Subscribe(eventId, callback)
|
||||||
Subscribes to 'eventName', ex. Event.BEFORE_RENDER and executes 'callback()' when eventName is raised
|
Subscribes to 'eventName', ex. Event.BEFORE_RENDER and executes 'callback()' when eventName is raised
|
||||||
|
|
||||||
[Inherited from R3Object]
|
[Inherited from Runtime]
|
||||||
|
|
||||||
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:
|
Inherited Properties:
|
||||||
|
|
||||||
|
@ -76,23 +55,7 @@ const DOM = require('.././r3-d-o-m.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
<no inherited methods>
|
||||||
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:
|
Inherited Static Methods:
|
||||||
|
|
||||||
|
@ -110,9 +73,7 @@ const DOM = require('.././r3-d-o-m.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
- initialized()
|
<no inherited methods>
|
||||||
In addition to firing an Event.OBJECT_INITIALIZED and Event.COMPONENT_INITIALIZED, it also fires an
|
|
||||||
Event.DOM_COMPONENT_INITIALIZED
|
|
||||||
|
|
||||||
Inherited Static Methods:
|
Inherited Static Methods:
|
||||||
|
|
||||||
|
|
|
@ -277,13 +277,14 @@ class Component extends R3Object {
|
||||||
getRuntime() {
|
getRuntime() {
|
||||||
|
|
||||||
//GENERATED_GET_RUNTIME_METHOD_START
|
//GENERATED_GET_RUNTIME_METHOD_START
|
||||||
if (this.runtime === R3.Runtime.DEFAULT) {
|
this.emit(
|
||||||
//TODO: implement runtime base
|
Event.GET_RUNTIME,
|
||||||
return null;
|
this,
|
||||||
}
|
function(runtime) {
|
||||||
|
this.runtime = runtime;
|
||||||
|
}.bind(this)
|
||||||
|
)
|
||||||
|
|
||||||
//TODO: implement runtime classes
|
|
||||||
return null;
|
|
||||||
//GENERATED_GET_RUNTIME_METHOD_END
|
//GENERATED_GET_RUNTIME_METHOD_END
|
||||||
|
|
||||||
//CUSTOM_GET_RUNTIME_METHOD_START
|
//CUSTOM_GET_RUNTIME_METHOD_START
|
||||||
|
@ -301,11 +302,10 @@ class Component extends R3Object {
|
||||||
|
|
||||||
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START
|
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||||
Component.DOM = 0x0;
|
Component.DOM = 0x0;
|
||||||
Component.CANVAS = 0x1;
|
Component.IMAGE = 0x1;
|
||||||
Component.IMAGE = 0x2;
|
Component.INPUT = 0x2;
|
||||||
Component.INPUT = 0x3;
|
Component.TOUCH = 0x3;
|
||||||
Component.TOUCH = 0x4;
|
Component.MAX_COMPONENTS = 0x4;
|
||||||
Component.MAX_COMPONENTS = 0x5;
|
|
||||||
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END
|
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END
|
||||||
|
|
||||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
|
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
class R3 {
|
class R3 {
|
||||||
static version = '2.0.221';
|
static version = '2.0.227';
|
||||||
static compileDate = '2021 Sep 08 - 08:46:07 am';
|
static compileDate = '2021 Sep 08 - 23:07:00 pm';
|
||||||
}
|
}
|
||||||
|
|
||||||
//GENERATED_IMPORTS_START
|
//GENERATED_IMPORTS_START
|
||||||
|
@ -22,7 +22,6 @@ R3.Object = R3Object;
|
||||||
R3.Component = Component;
|
R3.Component = Component;
|
||||||
R3.Project = Project;
|
R3.Project = Project;
|
||||||
R3.DOM = DOM;
|
R3.DOM = DOM;
|
||||||
R3.Canvas = Canvas;
|
|
||||||
R3.Image = Image;
|
R3.Image = Image;
|
||||||
R3.Input = Input;
|
R3.Input = Input;
|
||||||
R3.Touch = Touch;
|
R3.Touch = Touch;
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
const Runtime = require('./r3-runtime.js');
|
const Runtime = require('./r3-runtime.js');
|
||||||
const Coder = require('./r3-coder.js');
|
const Coder = require('./r3-coder.js');
|
||||||
const CodeMirror = require('./r3-code-mirror.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 Default = require('./r3-default.js');
|
||||||
const GUI = require('./r3-g-u-i.js');
|
const GUI = require('./r3-g-u-i.js');
|
||||||
const ControlKit = require('./r3-control-kit.js');
|
const ControlKit = require('./r3-control-kit.js');
|
||||||
|
@ -17,6 +20,8 @@ const Stats = require('./r3-stats.js');
|
||||||
//GENERATED_INDEX_BODY_START
|
//GENERATED_INDEX_BODY_START
|
||||||
Runtime.Coder = Coder;
|
Runtime.Coder = Coder;
|
||||||
Runtime.Coder.CodeMirror = CodeMirror;
|
Runtime.Coder.CodeMirror = CodeMirror;
|
||||||
|
Runtime.DOM = DOM;
|
||||||
|
Runtime.DOM.Document = Document;
|
||||||
Runtime.Default = Default;
|
Runtime.Default = Default;
|
||||||
Runtime.GUI = GUI;
|
Runtime.GUI = GUI;
|
||||||
Runtime.GUI.ControlKit = ControlKit;
|
Runtime.GUI.ControlKit = ControlKit;
|
||||||
|
|
|
@ -0,0 +1,159 @@
|
||||||
|
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;
|
|
@ -0,0 +1,177 @@
|
||||||
|
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,17 +134,20 @@ class Runtime extends Event {
|
||||||
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START
|
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||||
Runtime.CODER = 0x0;
|
Runtime.CODER = 0x0;
|
||||||
Runtime.CODE_MIRROR = 0x1;
|
Runtime.CODE_MIRROR = 0x1;
|
||||||
Runtime.DEFAULT = 0x2;
|
Runtime.DOM = 0x2;
|
||||||
Runtime.GUI = 0x3;
|
Runtime.DOCUMENT = 0x3;
|
||||||
Runtime.CONTROL_KIT = 0x4;
|
Runtime.CANVAS = 0x4;
|
||||||
Runtime.GRAPHICS = 0x5;
|
Runtime.DEFAULT = 0x5;
|
||||||
Runtime.THREE = 0x6;
|
Runtime.GUI = 0x6;
|
||||||
Runtime.PHYSICS = 0x7;
|
Runtime.CONTROL_KIT = 0x7;
|
||||||
Runtime.BULLET = 0x8;
|
Runtime.GRAPHICS = 0x8;
|
||||||
Runtime.SOCKET = 0x9;
|
Runtime.THREE = 0x9;
|
||||||
Runtime.STATISTICS = 0xa;
|
Runtime.PHYSICS = 0xa;
|
||||||
Runtime.STATS = 0xb;
|
Runtime.BULLET = 0xb;
|
||||||
Runtime.MAX_RUNTIMES = 0xc;
|
Runtime.SOCKET = 0xc;
|
||||||
|
Runtime.STATISTICS = 0xd;
|
||||||
|
Runtime.STATS = 0xe;
|
||||||
|
Runtime.MAX_RUNTIMES = 0xf;
|
||||||
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END
|
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_END
|
||||||
|
|
||||||
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
|
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||||
|
|
|
@ -21,7 +21,8 @@ const System = require('./r3-system.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
<no inherited methods>
|
- initialized()
|
||||||
|
No comment
|
||||||
|
|
||||||
Inherited Static Methods:
|
Inherited Static Methods:
|
||||||
|
|
||||||
|
@ -31,15 +32,21 @@ const System = require('./r3-system.js');
|
||||||
|
|
||||||
Properties:
|
Properties:
|
||||||
|
|
||||||
<no properties>
|
- started (Default value false)
|
||||||
|
- subscriptions (Default value {})
|
||||||
|
|
||||||
Static Properties:
|
Static Properties:
|
||||||
|
|
||||||
<no static properties>
|
- Started (Default value false)
|
||||||
|
- Subscriptions (Default value {})
|
||||||
|
|
||||||
Methods:
|
Methods:
|
||||||
|
|
||||||
<no methods>
|
- start()
|
||||||
|
Starts a transient system by registering subscriptions to Events
|
||||||
|
|
||||||
|
- stop()
|
||||||
|
Stops a transient system to by removing subscriptions to Events
|
||||||
|
|
||||||
Static Methods:
|
Static Methods:
|
||||||
|
|
||||||
|
@ -52,9 +59,13 @@ const System = require('./r3-system.js');
|
||||||
GENERATED_INHERITED_END
|
GENERATED_INHERITED_END
|
||||||
|
|
||||||
CUSTOM_OPTIONS_START
|
CUSTOM_OPTIONS_START
|
||||||
|
started=false
|
||||||
|
subscriptions={}
|
||||||
CUSTOM_OPTIONS_END
|
CUSTOM_OPTIONS_END
|
||||||
|
|
||||||
CUSTOM_STATIC_OPTIONS_START
|
CUSTOM_STATIC_OPTIONS_START
|
||||||
|
Started=false
|
||||||
|
Subscriptions={}
|
||||||
CUSTOM_STATIC_OPTIONS_END
|
CUSTOM_STATIC_OPTIONS_END
|
||||||
|
|
||||||
CUSTOM_EVENT_LISTENERS_START
|
CUSTOM_EVENT_LISTENERS_START
|
||||||
|
@ -65,6 +76,8 @@ const System = require('./r3-system.js');
|
||||||
CUSTOM_STATIC_EVENT_LISTENERS_END
|
CUSTOM_STATIC_EVENT_LISTENERS_END
|
||||||
|
|
||||||
CUSTOM_METHODS_START
|
CUSTOM_METHODS_START
|
||||||
|
start() - Starts a transient system by registering subscriptions to Events
|
||||||
|
stop() - Stops a transient system to by removing subscriptions to Events
|
||||||
CUSTOM_METHODS_END
|
CUSTOM_METHODS_END
|
||||||
|
|
||||||
CUSTOM_STATIC_METHODS_START
|
CUSTOM_STATIC_METHODS_START
|
||||||
|
@ -92,6 +105,14 @@ class SystemDOM extends System {
|
||||||
super(options);
|
super(options);
|
||||||
|
|
||||||
//GENERATED_OPTIONS_INIT_START
|
//GENERATED_OPTIONS_INIT_START
|
||||||
|
|
||||||
|
if (typeof options.started === 'undefined') {
|
||||||
|
options.started = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (typeof options.subscriptions === 'undefined') {
|
||||||
|
options.subscriptions = {};
|
||||||
|
}
|
||||||
//GENERATED_OPTIONS_INIT_END
|
//GENERATED_OPTIONS_INIT_END
|
||||||
|
|
||||||
//CUSTOM_OPTIONS_INIT_START
|
//CUSTOM_OPTIONS_INIT_START
|
||||||
|
@ -114,6 +135,54 @@ class SystemDOM extends System {
|
||||||
//GENERATED_CONSTRUCTOR_EXTENDS_END
|
//GENERATED_CONSTRUCTOR_EXTENDS_END
|
||||||
|
|
||||||
//GENERATED_METHODS_START
|
//GENERATED_METHODS_START
|
||||||
|
|
||||||
|
/**
|
||||||
|
* start()
|
||||||
|
* - Starts a transient system by registering subscriptions to Events
|
||||||
|
*/
|
||||||
|
start() {
|
||||||
|
|
||||||
|
//GENERATED_START_METHOD_START
|
||||||
|
|
||||||
|
//GENERATED_EVENT_LISTENERS_START_START
|
||||||
|
//GENERATED_EVENT_LISTENERS_START_END
|
||||||
|
|
||||||
|
//CUSTOM_BEFORE_SYSTEM_START_START
|
||||||
|
//CUSTOM_BEFORE_SYSTEM_START_END
|
||||||
|
|
||||||
|
this.started = true;
|
||||||
|
|
||||||
|
console.log('Started transient system: SystemDOM');
|
||||||
|
//GENERATED_START_METHOD_END
|
||||||
|
|
||||||
|
//CUSTOM_START_METHOD_START
|
||||||
|
//CUSTOM_START_METHOD_END
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* stop()
|
||||||
|
* - Stops a transient system to by removing subscriptions to Events
|
||||||
|
*/
|
||||||
|
stop() {
|
||||||
|
|
||||||
|
//GENERATED_STOP_METHOD_START
|
||||||
|
|
||||||
|
//GENERATED_EVENT_LISTENERS_STOP_START
|
||||||
|
//GENERATED_EVENT_LISTENERS_STOP_END
|
||||||
|
|
||||||
|
//CUSTOM_BEFORE_SYSTEM_STOP_START
|
||||||
|
//CUSTOM_BEFORE_SYSTEM_STOP_END
|
||||||
|
|
||||||
|
this.started = false;
|
||||||
|
|
||||||
|
console.log('Stopped transient system: SystemDOM');
|
||||||
|
//GENERATED_STOP_METHOD_END
|
||||||
|
|
||||||
|
//CUSTOM_STOP_METHOD_START
|
||||||
|
//CUSTOM_STOP_METHOD_END
|
||||||
|
|
||||||
|
}
|
||||||
//GENERATED_METHODS_END
|
//GENERATED_METHODS_END
|
||||||
|
|
||||||
//GENERATED_STATIC_METHODS_START
|
//GENERATED_STATIC_METHODS_START
|
||||||
|
@ -194,7 +263,9 @@ class SystemDOM extends System {
|
||||||
//GENERATED_STATIC_ON_DOM_COMPONENT_INITIALIZED_METHOD_END
|
//GENERATED_STATIC_ON_DOM_COMPONENT_INITIALIZED_METHOD_END
|
||||||
|
|
||||||
//CUSTOM_STATIC_ON_DOM_COMPONENT_INITIALIZED_METHOD_START
|
//CUSTOM_STATIC_ON_DOM_COMPONENT_INITIALIZED_METHOD_START
|
||||||
console.log('DOM Component Created');
|
console.log('DOM Component Initialized');
|
||||||
|
|
||||||
|
object.createInstance();
|
||||||
//CUSTOM_STATIC_ON_DOM_COMPONENT_INITIALIZED_METHOD_END
|
//CUSTOM_STATIC_ON_DOM_COMPONENT_INITIALIZED_METHOD_END
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -206,6 +277,8 @@ class SystemDOM extends System {
|
||||||
}
|
}
|
||||||
|
|
||||||
//GENERATED_STATIC_OPTIONS_INIT_START
|
//GENERATED_STATIC_OPTIONS_INIT_START
|
||||||
|
SystemDOM.Started = false;
|
||||||
|
SystemDOM.Subscriptions = {};
|
||||||
//GENERATED_STATIC_OPTIONS_INIT_END
|
//GENERATED_STATIC_OPTIONS_INIT_END
|
||||||
|
|
||||||
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START
|
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||||
|
|
|
@ -21,7 +21,8 @@ const System = require('./r3-system.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
<no inherited methods>
|
- initialized()
|
||||||
|
No comment
|
||||||
|
|
||||||
Inherited Static Methods:
|
Inherited Static Methods:
|
||||||
|
|
||||||
|
@ -31,11 +32,13 @@ const System = require('./r3-system.js');
|
||||||
|
|
||||||
Properties:
|
Properties:
|
||||||
|
|
||||||
<no properties>
|
- started (Default value false)
|
||||||
|
- subscriptions (Default value {})
|
||||||
|
|
||||||
Static Properties:
|
Static Properties:
|
||||||
|
|
||||||
<no static properties>
|
- Started (Default value false)
|
||||||
|
- Subscriptions (Default value {})
|
||||||
|
|
||||||
Methods:
|
Methods:
|
||||||
|
|
||||||
|
@ -56,9 +59,13 @@ const System = require('./r3-system.js');
|
||||||
GENERATED_INHERITED_END
|
GENERATED_INHERITED_END
|
||||||
|
|
||||||
CUSTOM_OPTIONS_START
|
CUSTOM_OPTIONS_START
|
||||||
|
started=false
|
||||||
|
subscriptions={}
|
||||||
CUSTOM_OPTIONS_END
|
CUSTOM_OPTIONS_END
|
||||||
|
|
||||||
CUSTOM_STATIC_OPTIONS_START
|
CUSTOM_STATIC_OPTIONS_START
|
||||||
|
Started=false
|
||||||
|
Subscriptions={}
|
||||||
CUSTOM_STATIC_OPTIONS_END
|
CUSTOM_STATIC_OPTIONS_END
|
||||||
|
|
||||||
CUSTOM_EVENT_LISTENERS_START
|
CUSTOM_EVENT_LISTENERS_START
|
||||||
|
@ -107,6 +114,14 @@ class SystemInput extends System {
|
||||||
super(options);
|
super(options);
|
||||||
|
|
||||||
//GENERATED_OPTIONS_INIT_START
|
//GENERATED_OPTIONS_INIT_START
|
||||||
|
|
||||||
|
if (typeof options.started === 'undefined') {
|
||||||
|
options.started = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (typeof options.subscriptions === 'undefined') {
|
||||||
|
options.subscriptions = {};
|
||||||
|
}
|
||||||
//GENERATED_OPTIONS_INIT_END
|
//GENERATED_OPTIONS_INIT_END
|
||||||
|
|
||||||
//CUSTOM_OPTIONS_INIT_START
|
//CUSTOM_OPTIONS_INIT_START
|
||||||
|
@ -485,6 +500,8 @@ class SystemInput extends System {
|
||||||
}
|
}
|
||||||
|
|
||||||
//GENERATED_STATIC_OPTIONS_INIT_START
|
//GENERATED_STATIC_OPTIONS_INIT_START
|
||||||
|
SystemInput.Started = false;
|
||||||
|
SystemInput.Subscriptions = {};
|
||||||
//GENERATED_STATIC_OPTIONS_INIT_END
|
//GENERATED_STATIC_OPTIONS_INIT_END
|
||||||
|
|
||||||
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START
|
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||||
|
|
|
@ -21,7 +21,8 @@ const System = require('./r3-system.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
<no inherited methods>
|
- initialized()
|
||||||
|
No comment
|
||||||
|
|
||||||
Inherited Static Methods:
|
Inherited Static Methods:
|
||||||
|
|
||||||
|
@ -31,19 +32,21 @@ const System = require('./r3-system.js');
|
||||||
|
|
||||||
Properties:
|
Properties:
|
||||||
|
|
||||||
<no properties>
|
- started (Default value false)
|
||||||
|
- subscriptions (Default value {})
|
||||||
|
|
||||||
Static Properties:
|
Static Properties:
|
||||||
|
|
||||||
<no static properties>
|
- Started (Default value false)
|
||||||
|
- Subscriptions (Default value {})
|
||||||
|
|
||||||
Methods:
|
Methods:
|
||||||
|
|
||||||
- start(options)
|
- start()
|
||||||
Just calls System.Start(options)
|
Starts a transient system by registering subscriptions to Events
|
||||||
|
|
||||||
- stop(options)
|
- stop()
|
||||||
Just calls System.Stop(options)
|
Stops a transient system to by removing subscriptions to Events
|
||||||
|
|
||||||
Static Methods:
|
Static Methods:
|
||||||
|
|
||||||
|
@ -56,9 +59,13 @@ const System = require('./r3-system.js');
|
||||||
GENERATED_INHERITED_END
|
GENERATED_INHERITED_END
|
||||||
|
|
||||||
CUSTOM_OPTIONS_START
|
CUSTOM_OPTIONS_START
|
||||||
|
started=false
|
||||||
|
subscriptions={}
|
||||||
CUSTOM_OPTIONS_END
|
CUSTOM_OPTIONS_END
|
||||||
|
|
||||||
CUSTOM_STATIC_OPTIONS_START
|
CUSTOM_STATIC_OPTIONS_START
|
||||||
|
Started=false
|
||||||
|
Subscriptions={}
|
||||||
CUSTOM_STATIC_OPTIONS_END
|
CUSTOM_STATIC_OPTIONS_END
|
||||||
|
|
||||||
CUSTOM_EVENT_LISTENERS_START
|
CUSTOM_EVENT_LISTENERS_START
|
||||||
|
@ -71,8 +78,8 @@ const System = require('./r3-system.js');
|
||||||
CUSTOM_STATIC_EVENT_LISTENERS_END
|
CUSTOM_STATIC_EVENT_LISTENERS_END
|
||||||
|
|
||||||
CUSTOM_METHODS_START
|
CUSTOM_METHODS_START
|
||||||
start(options) - Just calls System.Start(options)
|
start() - Starts a transient system by registering subscriptions to Events
|
||||||
stop(options) - Just calls System.Stop(options)
|
stop() - Stops a transient system to by removing subscriptions to Events
|
||||||
CUSTOM_METHODS_END
|
CUSTOM_METHODS_END
|
||||||
|
|
||||||
CUSTOM_STATIC_METHODS_START
|
CUSTOM_STATIC_METHODS_START
|
||||||
|
@ -100,6 +107,14 @@ class SystemLinking extends System {
|
||||||
super(options);
|
super(options);
|
||||||
|
|
||||||
//GENERATED_OPTIONS_INIT_START
|
//GENERATED_OPTIONS_INIT_START
|
||||||
|
|
||||||
|
if (typeof options.started === 'undefined') {
|
||||||
|
options.started = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (typeof options.subscriptions === 'undefined') {
|
||||||
|
options.subscriptions = {};
|
||||||
|
}
|
||||||
//GENERATED_OPTIONS_INIT_END
|
//GENERATED_OPTIONS_INIT_END
|
||||||
|
|
||||||
//CUSTOM_OPTIONS_INIT_START
|
//CUSTOM_OPTIONS_INIT_START
|
||||||
|
@ -125,10 +140,9 @@ class SystemLinking extends System {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* start()
|
* start()
|
||||||
* - Just calls System.Start(options)
|
* - Starts a transient system by registering subscriptions to Events
|
||||||
* @param options
|
|
||||||
*/
|
*/
|
||||||
start(options) {
|
start() {
|
||||||
|
|
||||||
//GENERATED_START_METHOD_START
|
//GENERATED_START_METHOD_START
|
||||||
|
|
||||||
|
@ -150,10 +164,9 @@ class SystemLinking extends System {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* stop()
|
* stop()
|
||||||
* - Just calls System.Stop(options)
|
* - Stops a transient system to by removing subscriptions to Events
|
||||||
* @param options
|
|
||||||
*/
|
*/
|
||||||
stop(options) {
|
stop() {
|
||||||
|
|
||||||
//GENERATED_STOP_METHOD_START
|
//GENERATED_STOP_METHOD_START
|
||||||
|
|
||||||
|
@ -315,6 +328,8 @@ class SystemLinking extends System {
|
||||||
}
|
}
|
||||||
|
|
||||||
//GENERATED_STATIC_OPTIONS_INIT_START
|
//GENERATED_STATIC_OPTIONS_INIT_START
|
||||||
|
SystemLinking.Started = false;
|
||||||
|
SystemLinking.Subscriptions = {};
|
||||||
//GENERATED_STATIC_OPTIONS_INIT_END
|
//GENERATED_STATIC_OPTIONS_INIT_END
|
||||||
|
|
||||||
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START
|
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||||
|
|
|
@ -21,7 +21,8 @@ const System = require('./r3-system.js');
|
||||||
|
|
||||||
Inherited Methods:
|
Inherited Methods:
|
||||||
|
|
||||||
<no inherited methods>
|
- initialized()
|
||||||
|
No comment
|
||||||
|
|
||||||
Inherited Static Methods:
|
Inherited Static Methods:
|
||||||
|
|
||||||
|
@ -31,19 +32,21 @@ const System = require('./r3-system.js');
|
||||||
|
|
||||||
Properties:
|
Properties:
|
||||||
|
|
||||||
<no properties>
|
- started (Default value false)
|
||||||
|
- subscriptions (Default value {})
|
||||||
|
|
||||||
Static Properties:
|
Static Properties:
|
||||||
|
|
||||||
<no static properties>
|
- Started (Default value false)
|
||||||
|
- Subscriptions (Default value {})
|
||||||
|
|
||||||
Methods:
|
Methods:
|
||||||
|
|
||||||
- start(options)
|
- start()
|
||||||
Just calls System.Start(options)
|
Starts a transient system by registering subscriptions to Events
|
||||||
|
|
||||||
- stop(options)
|
- stop()
|
||||||
Just calls System.Stop(options)
|
Stops a transient system to by removing subscriptions to Events
|
||||||
|
|
||||||
Static Methods:
|
Static Methods:
|
||||||
|
|
||||||
|
@ -56,9 +59,13 @@ const System = require('./r3-system.js');
|
||||||
GENERATED_INHERITED_END
|
GENERATED_INHERITED_END
|
||||||
|
|
||||||
CUSTOM_OPTIONS_START
|
CUSTOM_OPTIONS_START
|
||||||
|
started=false
|
||||||
|
subscriptions={}
|
||||||
CUSTOM_OPTIONS_END
|
CUSTOM_OPTIONS_END
|
||||||
|
|
||||||
CUSTOM_STATIC_OPTIONS_START
|
CUSTOM_STATIC_OPTIONS_START
|
||||||
|
Started=false
|
||||||
|
Subscriptions={}
|
||||||
CUSTOM_STATIC_OPTIONS_END
|
CUSTOM_STATIC_OPTIONS_END
|
||||||
|
|
||||||
CUSTOM_EVENT_LISTENERS_START
|
CUSTOM_EVENT_LISTENERS_START
|
||||||
|
@ -68,8 +75,8 @@ const System = require('./r3-system.js');
|
||||||
CUSTOM_STATIC_EVENT_LISTENERS_END
|
CUSTOM_STATIC_EVENT_LISTENERS_END
|
||||||
|
|
||||||
CUSTOM_METHODS_START
|
CUSTOM_METHODS_START
|
||||||
start(options) - Just calls System.Start(options)
|
start() - Starts a transient system by registering subscriptions to Events
|
||||||
stop(options) - Just calls System.Stop(options)
|
stop() - Stops a transient system to by removing subscriptions to Events
|
||||||
CUSTOM_METHODS_END
|
CUSTOM_METHODS_END
|
||||||
|
|
||||||
CUSTOM_STATIC_METHODS_START
|
CUSTOM_STATIC_METHODS_START
|
||||||
|
@ -97,6 +104,14 @@ class SystemSocket extends System {
|
||||||
super(options);
|
super(options);
|
||||||
|
|
||||||
//GENERATED_OPTIONS_INIT_START
|
//GENERATED_OPTIONS_INIT_START
|
||||||
|
|
||||||
|
if (typeof options.started === 'undefined') {
|
||||||
|
options.started = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (typeof options.subscriptions === 'undefined') {
|
||||||
|
options.subscriptions = {};
|
||||||
|
}
|
||||||
//GENERATED_OPTIONS_INIT_END
|
//GENERATED_OPTIONS_INIT_END
|
||||||
|
|
||||||
//CUSTOM_OPTIONS_INIT_START
|
//CUSTOM_OPTIONS_INIT_START
|
||||||
|
@ -122,10 +137,9 @@ class SystemSocket extends System {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* start()
|
* start()
|
||||||
* - Just calls System.Start(options)
|
* - Starts a transient system by registering subscriptions to Events
|
||||||
* @param options
|
|
||||||
*/
|
*/
|
||||||
start(options) {
|
start() {
|
||||||
|
|
||||||
//GENERATED_START_METHOD_START
|
//GENERATED_START_METHOD_START
|
||||||
|
|
||||||
|
@ -147,10 +161,9 @@ class SystemSocket extends System {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* stop()
|
* stop()
|
||||||
* - Just calls System.Stop(options)
|
* - Stops a transient system to by removing subscriptions to Events
|
||||||
* @param options
|
|
||||||
*/
|
*/
|
||||||
stop(options) {
|
stop() {
|
||||||
|
|
||||||
//GENERATED_STOP_METHOD_START
|
//GENERATED_STOP_METHOD_START
|
||||||
|
|
||||||
|
@ -240,6 +253,8 @@ class SystemSocket extends System {
|
||||||
}
|
}
|
||||||
|
|
||||||
//GENERATED_STATIC_OPTIONS_INIT_START
|
//GENERATED_STATIC_OPTIONS_INIT_START
|
||||||
|
SystemSocket.Started = false;
|
||||||
|
SystemSocket.Subscriptions = {};
|
||||||
//GENERATED_STATIC_OPTIONS_INIT_END
|
//GENERATED_STATIC_OPTIONS_INIT_END
|
||||||
|
|
||||||
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START
|
//GENERATED_OUT_OF_CLASS_IMPLEMENTATION_START
|
||||||
|
|
|
@ -20,6 +20,7 @@ const Utils = require('.././r3-utils');
|
||||||
CUSTOM_STATIC_EVENT_LISTENERS_END
|
CUSTOM_STATIC_EVENT_LISTENERS_END
|
||||||
|
|
||||||
CUSTOM_METHODS_START
|
CUSTOM_METHODS_START
|
||||||
|
initialized()
|
||||||
CUSTOM_METHODS_END
|
CUSTOM_METHODS_END
|
||||||
|
|
||||||
CUSTOM_STATIC_METHODS_START
|
CUSTOM_STATIC_METHODS_START
|
||||||
|
@ -75,6 +76,22 @@ class System {
|
||||||
//GENERATED_CONSTRUCTOR_END
|
//GENERATED_CONSTRUCTOR_END
|
||||||
|
|
||||||
//GENERATED_METHODS_START
|
//GENERATED_METHODS_START
|
||||||
|
|
||||||
|
/**
|
||||||
|
* initialized()
|
||||||
|
* - No comment
|
||||||
|
*/
|
||||||
|
initialized() {
|
||||||
|
|
||||||
|
//GENERATED_INITIALIZED_METHOD_START
|
||||||
|
Event.Emit(Event.OBJECT_INITIALIZED, this);
|
||||||
|
delete this.callDepth;
|
||||||
|
//GENERATED_INITIALIZED_METHOD_END
|
||||||
|
|
||||||
|
//CUSTOM_INITIALIZED_METHOD_START
|
||||||
|
//CUSTOM_INITIALIZED_METHOD_END
|
||||||
|
|
||||||
|
}
|
||||||
//GENERATED_METHODS_END
|
//GENERATED_METHODS_END
|
||||||
|
|
||||||
//GENERATED_STATIC_METHODS_START
|
//GENERATED_STATIC_METHODS_START
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
if (this.runtime === R3.Runtime.DEFAULT) {
|
this.emit(
|
||||||
//TODO: implement runtime base
|
Event.GET_RUNTIME,
|
||||||
return null;
|
this,
|
||||||
}
|
function(runtime) {
|
||||||
|
this.runtime = runtime;
|
||||||
//TODO: implement runtime classes
|
}.bind(this)
|
||||||
return null;
|
)
|
||||||
|
|
|
@ -4,9 +4,13 @@ const Utils = require('INCLUDE_PATH/r3-utils');
|
||||||
/**
|
/**
|
||||||
|
|
||||||
CUSTOM_OPTIONS_START
|
CUSTOM_OPTIONS_START
|
||||||
|
started=false
|
||||||
|
subscriptions={}
|
||||||
CUSTOM_OPTIONS_END
|
CUSTOM_OPTIONS_END
|
||||||
|
|
||||||
CUSTOM_STATIC_OPTIONS_START
|
CUSTOM_STATIC_OPTIONS_START
|
||||||
|
Started=false
|
||||||
|
Subscriptions={}
|
||||||
CUSTOM_STATIC_OPTIONS_END
|
CUSTOM_STATIC_OPTIONS_END
|
||||||
|
|
||||||
CUSTOM_EVENT_LISTENERS_START
|
CUSTOM_EVENT_LISTENERS_START
|
||||||
|
@ -16,6 +20,7 @@ const Utils = require('INCLUDE_PATH/r3-utils');
|
||||||
CUSTOM_STATIC_EVENT_LISTENERS_END
|
CUSTOM_STATIC_EVENT_LISTENERS_END
|
||||||
|
|
||||||
CUSTOM_METHODS_START
|
CUSTOM_METHODS_START
|
||||||
|
initialized()
|
||||||
CUSTOM_METHODS_END
|
CUSTOM_METHODS_END
|
||||||
|
|
||||||
CUSTOM_STATIC_METHODS_START
|
CUSTOM_STATIC_METHODS_START
|
||||||
|
|
|
@ -9,9 +9,13 @@ const EXTEND_CLASS = require('./EXTEND_CLASS_FILE_NAME');
|
||||||
GENERATED_INHERITED_END
|
GENERATED_INHERITED_END
|
||||||
|
|
||||||
CUSTOM_OPTIONS_START
|
CUSTOM_OPTIONS_START
|
||||||
|
started=false
|
||||||
|
subscriptions={}
|
||||||
CUSTOM_OPTIONS_END
|
CUSTOM_OPTIONS_END
|
||||||
|
|
||||||
CUSTOM_STATIC_OPTIONS_START
|
CUSTOM_STATIC_OPTIONS_START
|
||||||
|
Started=false
|
||||||
|
Subscriptions={}
|
||||||
CUSTOM_STATIC_OPTIONS_END
|
CUSTOM_STATIC_OPTIONS_END
|
||||||
|
|
||||||
CUSTOM_EVENT_LISTENERS_START
|
CUSTOM_EVENT_LISTENERS_START
|
||||||
|
@ -21,9 +25,13 @@ const EXTEND_CLASS = require('./EXTEND_CLASS_FILE_NAME');
|
||||||
CUSTOM_STATIC_EVENT_LISTENERS_END
|
CUSTOM_STATIC_EVENT_LISTENERS_END
|
||||||
|
|
||||||
CUSTOM_METHODS_START
|
CUSTOM_METHODS_START
|
||||||
|
start() - Starts a transient system by registering subscriptions to Events
|
||||||
|
stop() - Stops a transient system to by removing subscriptions to Events
|
||||||
CUSTOM_METHODS_END
|
CUSTOM_METHODS_END
|
||||||
|
|
||||||
CUSTOM_STATIC_METHODS_START
|
CUSTOM_STATIC_METHODS_START
|
||||||
|
Start(options) - Starts the system by registering subscriptions to events
|
||||||
|
Stop(options) - Stops the system by removing these subscriptions to events
|
||||||
CUSTOM_STATIC_METHODS_END
|
CUSTOM_STATIC_METHODS_END
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
Loading…
Reference in New Issue