updated template - removed test stuff

master
Theunis J. Botha 2021-09-17 11:30:42 +02:00
parent 7bbfc03f63
commit 42b628419d
16 changed files with 158 additions and 806 deletions

486
dist/r3.js vendored
View File

@ -1,6 +1,6 @@
class R3 { class R3 {
static version = '2.0.694'; static version = '2.0.695';
static compileDate = '2021 Sep 17 - 11:26:55 am'; static compileDate = '2021 Sep 17 - 11:29:51 am';
} }
class Runtime { class Runtime {
@ -278,87 +278,85 @@ class Event {
} }
Event.BEFORE_RENDER = 0x1; Event.COMPONENT_CREATED = 0x1;
Event.COMPONENT_CREATED = 0x2; Event.COMPONENT_INITIALIZED = 0x2;
Event.COMPONENT_INITIALIZED = 0x3; Event.CREATE_INSTANCE_BEFORE = 0x3;
Event.CREATE_INSTANCE_BEFORE = 0x4; Event.DISPOSE_INSTANCE = 0x4;
Event.DISPOSE_INSTANCE = 0x5; Event.DISPOSE_OBJECT = 0x5;
Event.DISPOSE_OBJECT = 0x6; Event.DOM_COMPONENT_INITIALIZED = 0x6;
Event.DOM_COMPONENT_INITIALIZED = 0x7; Event.ENTITY_CREATED = 0x7;
Event.ENTITY_CREATED = 0x8; Event.ENTITY_INITIALIZED = 0x8;
Event.ENTITY_INITIALIZED = 0x9; Event.GET_RUNTIME = 0x9;
Event.GET_RUNTIME = 0xa; Event.GET_WINDOW_SIZE = 0xa;
Event.GET_WINDOW_SIZE = 0xb; Event.GRAPHICS_COMPONENT_INITIALIZED = 0xb;
Event.GRAPHICS_COMPONENT_INITIALIZED = 0xc; Event.IMAGE_CREATED = 0xc;
Event.IMAGE_CREATED = 0xd; Event.INPUT_COMPONENT_INITIALIZED = 0xd;
Event.INPUT_COMPONENT_INITIALIZED = 0xe; Event.INSTANCE_CREATED = 0xe;
Event.INSTANCE_CREATED = 0xf; Event.INSTANCE_DISPOSED = 0xf;
Event.INSTANCE_DISPOSED = 0x10; Event.KEYBOARD_DOWN = 0x10;
Event.KEYBOARD_DOWN = 0x11; Event.KEYBOARD_UP = 0x11;
Event.KEYBOARD_UP = 0x12; Event.MOUSE_DOWN = 0x12;
Event.MOUSE_DOWN = 0x13; Event.MOUSE_MOVE = 0x13;
Event.MOUSE_MOVE = 0x14; Event.MOUSE_UP = 0x14;
Event.MOUSE_UP = 0x15; Event.MOUSE_WHEEL = 0x15;
Event.MOUSE_WHEEL = 0x16; Event.OBJECT_CREATED = 0x16;
Event.OBJECT_CREATED = 0x17; Event.OBJECT_INITIALIZED = 0x17;
Event.OBJECT_INITIALIZED = 0x18; Event.PAUSE = 0x18;
Event.PAUSE = 0x19; Event.PROJECT_INITIALIZED = 0x19;
Event.PROJECT_INITIALIZED = 0x1a; Event.RESTART = 0x1a;
Event.RESTART = 0x1b; Event.START = 0x1b;
Event.START = 0x1c; Event.TOUCH_CANCEL = 0x1c;
Event.TOUCH_CANCEL = 0x1d; Event.TOUCH_END = 0x1d;
Event.TOUCH_END = 0x1e; Event.TOUCH_MOVE = 0x1e;
Event.TOUCH_MOVE = 0x1f; Event.TOUCH_START = 0x1f;
Event.TOUCH_START = 0x20; Event.UPDATE_FROM_INSTANCE_AFTER = 0x20;
Event.UPDATE_FROM_INSTANCE_AFTER = 0x21; Event.UPDATE_FROM_INSTANCE_BEFORE = 0x21;
Event.UPDATE_FROM_INSTANCE_BEFORE = 0x22; Event.UPDATE_INSTANCE_AFTER = 0x22;
Event.UPDATE_INSTANCE_AFTER = 0x23; Event.UPDATE_INSTANCE_BEFORE = 0x23;
Event.UPDATE_INSTANCE_BEFORE = 0x24; Event.UPDATE_INSTANCE_PROPERTY = 0x24;
Event.UPDATE_INSTANCE_PROPERTY = 0x25; Event.UPDATE_PROPERTY_FROM_INSTANCE = 0x25;
Event.UPDATE_PROPERTY_FROM_INSTANCE = 0x26; Event.MAX_EVENTS = 0x26;
Event.MAX_EVENTS = 0x27;
Event.GetEventName = function(eventId) { Event.GetEventName = function(eventId) {
switch(eventId) { switch(eventId) {
case 0x1 : return 'before_render'; case 0x1 : return 'component_created';
case 0x2 : return 'component_created'; case 0x2 : return 'component_initialized';
case 0x3 : return 'component_initialized'; case 0x3 : return 'create_instance_before';
case 0x4 : return 'create_instance_before'; case 0x4 : return 'dispose_instance';
case 0x5 : return 'dispose_instance'; case 0x5 : return 'dispose_object';
case 0x6 : return 'dispose_object'; case 0x6 : return 'dom_component_initialized';
case 0x7 : return 'dom_component_initialized'; case 0x7 : return 'entity_created';
case 0x8 : return 'entity_created'; case 0x8 : return 'entity_initialized';
case 0x9 : return 'entity_initialized'; case 0x9 : return 'get_runtime';
case 0xa : return 'get_runtime'; case 0xa : return 'get_window_size';
case 0xb : return 'get_window_size'; case 0xb : return 'graphics_component_initialized';
case 0xc : return 'graphics_component_initialized'; case 0xc : return 'image_created';
case 0xd : return 'image_created'; case 0xd : return 'input_component_initialized';
case 0xe : return 'input_component_initialized'; case 0xe : return 'instance_created';
case 0xf : return 'instance_created'; case 0xf : return 'instance_disposed';
case 0x10 : return 'instance_disposed'; case 0x10 : return 'keyboard_down';
case 0x11 : return 'keyboard_down'; case 0x11 : return 'keyboard_up';
case 0x12 : return 'keyboard_up'; case 0x12 : return 'mouse_down';
case 0x13 : return 'mouse_down'; case 0x13 : return 'mouse_move';
case 0x14 : return 'mouse_move'; case 0x14 : return 'mouse_up';
case 0x15 : return 'mouse_up'; case 0x15 : return 'mouse_wheel';
case 0x16 : return 'mouse_wheel'; case 0x16 : return 'object_created';
case 0x17 : return 'object_created'; case 0x17 : return 'object_initialized';
case 0x18 : return 'object_initialized'; case 0x18 : return 'pause';
case 0x19 : return 'pause'; case 0x19 : return 'project_initialized';
case 0x1a : return 'project_initialized'; case 0x1a : return 'restart';
case 0x1b : return 'restart'; case 0x1b : return 'start';
case 0x1c : return 'start'; case 0x1c : return 'touch_cancel';
case 0x1d : return 'touch_cancel'; case 0x1d : return 'touch_end';
case 0x1e : return 'touch_end'; case 0x1e : return 'touch_move';
case 0x1f : return 'touch_move'; case 0x1f : return 'touch_start';
case 0x20 : return 'touch_start'; case 0x20 : return 'update_from_instance_after';
case 0x21 : return 'update_from_instance_after'; case 0x21 : return 'update_from_instance_before';
case 0x22 : return 'update_from_instance_before'; case 0x22 : return 'update_instance_after';
case 0x23 : return 'update_instance_after'; case 0x23 : return 'update_instance_before';
case 0x24 : return 'update_instance_before'; case 0x24 : return 'update_instance_property';
case 0x25 : return 'update_instance_property'; case 0x25 : return 'update_property_from_instance';
case 0x26 : return 'update_property_from_instance';
default : default :
throw new Error('Event type not defined : ' + eventId); throw new Error('Event type not defined : ' + eventId);
} }
@ -3177,12 +3175,6 @@ class SystemStorage extends System {
*/ */
static OnImageCreated(object) { static OnImageCreated(object) {
//GENERATED_STATIC_ON_IMAGE_CREATED_METHOD_START
//GENERATED_STATIC_ON_IMAGE_CREATED_METHOD_END
//CUSTOM_STATIC_ON_IMAGE_CREATED_METHOD_START
//CUSTOM_STATIC_ON_IMAGE_CREATED_METHOD_END
} }
} }
@ -4509,12 +4501,6 @@ class ComponentDOM extends Component {
if (typeof options.instance === 'undefined') { if (typeof options.instance === 'undefined') {
options.instance = null; options.instance = null;
} }
/**
* name - No comment
*/
if (typeof options.name === 'undefined') {
options.name = 'hello';
}
/** /**
* instance - Holds the current instance of this object as determined (built) by the runtime object. * instance - Holds the current instance of this object as determined (built) by the runtime object.
@ -4557,21 +4543,6 @@ class ComponentDOM extends Component {
} }
} }
if (property === 'name') {
this.instance.name = this.name;
this.emit(
Event.UPDATE_INSTANCE_PROPERTY,
{
component : this,
property : name,
instanceProperty : name
}
);
if (property !== 'all') {
return;
}
}
this.emit(Event.UPDATE_INSTANCE_AFTER, this); this.emit(Event.UPDATE_INSTANCE_AFTER, this);
} }
@ -4600,21 +4571,6 @@ class ComponentDOM extends Component {
} }
} }
if (property === 'name' || property === 'all') {
this.name = this.instance.name;
this.emit(
Event.UPDATE_PROPERTY_FROM_INSTANCE,
{
component : this,
property : name,
instanceProperty : name
}
);
if (property !== 'all') {
return;
}
}
this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this); this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this);
} }
@ -4774,12 +4730,6 @@ class ComponentGraphics extends Component {
if (typeof options.instance === 'undefined') { if (typeof options.instance === 'undefined') {
options.instance = null; options.instance = null;
} }
/**
* name - No comment
*/
if (typeof options.name === 'undefined') {
options.name = 'hello';
}
Object.assign(this, options); Object.assign(this, options);
@ -4800,21 +4750,6 @@ class ComponentGraphics extends Component {
this.emit(Event.UPDATE_INSTANCE_BEFORE, this); this.emit(Event.UPDATE_INSTANCE_BEFORE, this);
if (property === 'name') {
this.instance.name = this.name;
this.emit(
Event.UPDATE_INSTANCE_PROPERTY,
{
component : this,
property : name,
instanceProperty : name
}
);
if (property !== 'all') {
return;
}
}
this.emit(Event.UPDATE_INSTANCE_AFTER, this); this.emit(Event.UPDATE_INSTANCE_AFTER, this);
} }
@ -4828,21 +4763,6 @@ class ComponentGraphics extends Component {
this.emit(Event.UPDATE_FROM_INSTANCE_BEFORE, this); this.emit(Event.UPDATE_FROM_INSTANCE_BEFORE, this);
if (property === 'name' || property === 'all') {
this.name = this.instance.name;
this.emit(
Event.UPDATE_PROPERTY_FROM_INSTANCE,
{
component : this,
property : name,
instanceProperty : name
}
);
if (property !== 'all') {
return;
}
}
this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this); this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this);
} }
@ -5002,12 +4922,6 @@ class ComponentInput extends Component {
if (typeof options.instance === 'undefined') { if (typeof options.instance === 'undefined') {
options.instance = null; options.instance = null;
} }
/**
* name - No comment
*/
if (typeof options.name === 'undefined') {
options.name = 'hello';
}
Object.assign(this, options); Object.assign(this, options);
@ -5028,21 +4942,6 @@ class ComponentInput extends Component {
this.emit(Event.UPDATE_INSTANCE_BEFORE, this); this.emit(Event.UPDATE_INSTANCE_BEFORE, this);
if (property === 'name') {
this.instance.name = this.name;
this.emit(
Event.UPDATE_INSTANCE_PROPERTY,
{
component : this,
property : name,
instanceProperty : name
}
);
if (property !== 'all') {
return;
}
}
this.emit(Event.UPDATE_INSTANCE_AFTER, this); this.emit(Event.UPDATE_INSTANCE_AFTER, this);
} }
@ -5056,21 +4955,6 @@ class ComponentInput extends Component {
this.emit(Event.UPDATE_FROM_INSTANCE_BEFORE, this); this.emit(Event.UPDATE_FROM_INSTANCE_BEFORE, this);
if (property === 'name' || property === 'all') {
this.name = this.instance.name;
this.emit(
Event.UPDATE_PROPERTY_FROM_INSTANCE,
{
component : this,
property : name,
instanceProperty : name
}
);
if (property !== 'all') {
return;
}
}
this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this); this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this);
} }
@ -5252,12 +5136,6 @@ class ComponentCanvas extends ComponentDOM {
if (typeof options.instance === 'undefined') { if (typeof options.instance === 'undefined') {
options.instance = null; options.instance = null;
} }
/**
* name - No comment
*/
if (typeof options.name === 'undefined') {
options.name = 'hello';
}
/** /**
* type - No comment * type - No comment
@ -5346,21 +5224,6 @@ class ComponentCanvas extends ComponentDOM {
} }
} }
if (property === 'name') {
this.instance.name = this.name;
this.emit(
Event.UPDATE_INSTANCE_PROPERTY,
{
component : this,
property : name,
instanceProperty : name
}
);
if (property !== 'all') {
return;
}
}
this.emit(Event.UPDATE_INSTANCE_AFTER, this); this.emit(Event.UPDATE_INSTANCE_AFTER, this);
} }
@ -5417,21 +5280,6 @@ class ComponentCanvas extends ComponentDOM {
} }
} }
if (property === 'name' || property === 'all') {
this.name = this.instance.name;
this.emit(
Event.UPDATE_PROPERTY_FROM_INSTANCE,
{
component : this,
property : name,
instanceProperty : name
}
);
if (property !== 'all') {
return;
}
}
this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this); this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this);
} }
@ -5589,12 +5437,6 @@ class ComponentImage extends ComponentGraphics {
if (typeof options.instance === 'undefined') { if (typeof options.instance === 'undefined') {
options.instance = null; options.instance = null;
} }
/**
* name - No comment
*/
if (typeof options.name === 'undefined') {
options.name = 'hello';
}
Object.assign(this, options); Object.assign(this, options);
@ -5615,21 +5457,6 @@ class ComponentImage extends ComponentGraphics {
this.emit(Event.UPDATE_INSTANCE_BEFORE, this); this.emit(Event.UPDATE_INSTANCE_BEFORE, this);
if (property === 'name') {
this.instance.name = this.name;
this.emit(
Event.UPDATE_INSTANCE_PROPERTY,
{
component : this,
property : name,
instanceProperty : name
}
);
if (property !== 'all') {
return;
}
}
this.emit(Event.UPDATE_INSTANCE_AFTER, this); this.emit(Event.UPDATE_INSTANCE_AFTER, this);
} }
@ -5643,21 +5470,6 @@ class ComponentImage extends ComponentGraphics {
this.emit(Event.UPDATE_FROM_INSTANCE_BEFORE, this); this.emit(Event.UPDATE_FROM_INSTANCE_BEFORE, this);
if (property === 'name' || property === 'all') {
this.name = this.instance.name;
this.emit(
Event.UPDATE_PROPERTY_FROM_INSTANCE,
{
component : this,
property : name,
instanceProperty : name
}
);
if (property !== 'all') {
return;
}
}
this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this); this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this);
} }
@ -5815,12 +5627,6 @@ class ComponentMaterial extends ComponentGraphics {
if (typeof options.instance === 'undefined') { if (typeof options.instance === 'undefined') {
options.instance = null; options.instance = null;
} }
/**
* name - No comment
*/
if (typeof options.name === 'undefined') {
options.name = 'hello';
}
Object.assign(this, options); Object.assign(this, options);
@ -5841,21 +5647,6 @@ class ComponentMaterial extends ComponentGraphics {
this.emit(Event.UPDATE_INSTANCE_BEFORE, this); this.emit(Event.UPDATE_INSTANCE_BEFORE, this);
if (property === 'name') {
this.instance.name = this.name;
this.emit(
Event.UPDATE_INSTANCE_PROPERTY,
{
component : this,
property : name,
instanceProperty : name
}
);
if (property !== 'all') {
return;
}
}
this.emit(Event.UPDATE_INSTANCE_AFTER, this); this.emit(Event.UPDATE_INSTANCE_AFTER, this);
} }
@ -5869,21 +5660,6 @@ class ComponentMaterial extends ComponentGraphics {
this.emit(Event.UPDATE_FROM_INSTANCE_BEFORE, this); this.emit(Event.UPDATE_FROM_INSTANCE_BEFORE, this);
if (property === 'name' || property === 'all') {
this.name = this.instance.name;
this.emit(
Event.UPDATE_PROPERTY_FROM_INSTANCE,
{
component : this,
property : name,
instanceProperty : name
}
);
if (property !== 'all') {
return;
}
}
this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this); this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this);
} }
@ -6041,12 +5817,6 @@ class ComponentMesh extends ComponentGraphics {
if (typeof options.instance === 'undefined') { if (typeof options.instance === 'undefined') {
options.instance = null; options.instance = null;
} }
/**
* name - No comment
*/
if (typeof options.name === 'undefined') {
options.name = 'hello';
}
Object.assign(this, options); Object.assign(this, options);
@ -6067,21 +5837,6 @@ class ComponentMesh extends ComponentGraphics {
this.emit(Event.UPDATE_INSTANCE_BEFORE, this); this.emit(Event.UPDATE_INSTANCE_BEFORE, this);
if (property === 'name') {
this.instance.name = this.name;
this.emit(
Event.UPDATE_INSTANCE_PROPERTY,
{
component : this,
property : name,
instanceProperty : name
}
);
if (property !== 'all') {
return;
}
}
this.emit(Event.UPDATE_INSTANCE_AFTER, this); this.emit(Event.UPDATE_INSTANCE_AFTER, this);
} }
@ -6095,21 +5850,6 @@ class ComponentMesh extends ComponentGraphics {
this.emit(Event.UPDATE_FROM_INSTANCE_BEFORE, this); this.emit(Event.UPDATE_FROM_INSTANCE_BEFORE, this);
if (property === 'name' || property === 'all') {
this.name = this.instance.name;
this.emit(
Event.UPDATE_PROPERTY_FROM_INSTANCE,
{
component : this,
property : name,
instanceProperty : name
}
);
if (property !== 'all') {
return;
}
}
this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this); this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this);
} }
@ -6267,12 +6007,6 @@ class ComponentTexture extends ComponentGraphics {
if (typeof options.instance === 'undefined') { if (typeof options.instance === 'undefined') {
options.instance = null; options.instance = null;
} }
/**
* name - No comment
*/
if (typeof options.name === 'undefined') {
options.name = 'hello';
}
Object.assign(this, options); Object.assign(this, options);
@ -6293,21 +6027,6 @@ class ComponentTexture extends ComponentGraphics {
this.emit(Event.UPDATE_INSTANCE_BEFORE, this); this.emit(Event.UPDATE_INSTANCE_BEFORE, this);
if (property === 'name') {
this.instance.name = this.name;
this.emit(
Event.UPDATE_INSTANCE_PROPERTY,
{
component : this,
property : name,
instanceProperty : name
}
);
if (property !== 'all') {
return;
}
}
this.emit(Event.UPDATE_INSTANCE_AFTER, this); this.emit(Event.UPDATE_INSTANCE_AFTER, this);
} }
@ -6321,21 +6040,6 @@ class ComponentTexture extends ComponentGraphics {
this.emit(Event.UPDATE_FROM_INSTANCE_BEFORE, this); this.emit(Event.UPDATE_FROM_INSTANCE_BEFORE, this);
if (property === 'name' || property === 'all') {
this.name = this.instance.name;
this.emit(
Event.UPDATE_PROPERTY_FROM_INSTANCE,
{
component : this,
property : name,
instanceProperty : name
}
);
if (property !== 'all') {
return;
}
}
this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this); this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this);
} }
@ -6493,12 +6197,6 @@ class ComponentTouch extends ComponentInput {
if (typeof options.instance === 'undefined') { if (typeof options.instance === 'undefined') {
options.instance = null; options.instance = null;
} }
/**
* name - No comment
*/
if (typeof options.name === 'undefined') {
options.name = 'hello';
}
Object.assign(this, options); Object.assign(this, options);
@ -6519,21 +6217,6 @@ class ComponentTouch extends ComponentInput {
this.emit(Event.UPDATE_INSTANCE_BEFORE, this); this.emit(Event.UPDATE_INSTANCE_BEFORE, this);
if (property === 'name') {
this.instance.name = this.name;
this.emit(
Event.UPDATE_INSTANCE_PROPERTY,
{
component : this,
property : name,
instanceProperty : name
}
);
if (property !== 'all') {
return;
}
}
this.emit(Event.UPDATE_INSTANCE_AFTER, this); this.emit(Event.UPDATE_INSTANCE_AFTER, this);
} }
@ -6547,21 +6230,6 @@ class ComponentTouch extends ComponentInput {
this.emit(Event.UPDATE_FROM_INSTANCE_BEFORE, this); this.emit(Event.UPDATE_FROM_INSTANCE_BEFORE, this);
if (property === 'name' || property === 'all') {
this.name = this.instance.name;
this.emit(
Event.UPDATE_PROPERTY_FROM_INSTANCE,
{
component : this,
property : name,
instanceProperty : name
}
);
if (property !== 'all') {
return;
}
}
this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this); this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this);
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "r3", "name": "r3",
"version" : "2.0.694", "version" : "2.0.695",
"description": "", "description": "",
"private": true, "private": true,
"dependencies": { "dependencies": {

View File

@ -130,7 +130,6 @@ const ComponentDOM = require('.././r3-component-d-o-m.js');
TEMPLATE_OPTIONS_START TEMPLATE_OPTIONS_START
parent=null - The parent R3.Object of this component parent=null - The parent R3.Object of this component
instance=null - Holds the current instance of this object as determined (built) by the runtime object. instance=null - Holds the current instance of this object as determined (built) by the runtime object.
name='hello'
TEMPLATE_OPTIONS_END TEMPLATE_OPTIONS_END
CUSTOM_OPTIONS_START CUSTOM_OPTIONS_START
@ -211,12 +210,6 @@ class ComponentCanvas extends ComponentDOM {
if (typeof options.instance === 'undefined') { if (typeof options.instance === 'undefined') {
options.instance = null; options.instance = null;
} }
/**
* name - No comment
*/
if (typeof options.name === 'undefined') {
options.name = 'hello';
}
//GENERATED_TEMPLATE_OPTIONS_INIT_END //GENERATED_TEMPLATE_OPTIONS_INIT_END
//GENERATED_OPTIONS_INIT_START //GENERATED_OPTIONS_INIT_START
@ -323,20 +316,6 @@ class ComponentCanvas extends ComponentDOM {
//GENERATED_UPDATE_INSTANCE_OPTIONS_END //GENERATED_UPDATE_INSTANCE_OPTIONS_END
//GENERATED_TEMPLATE_UPDATE_INSTANCE_OPTIONS_START //GENERATED_TEMPLATE_UPDATE_INSTANCE_OPTIONS_START
if (property === 'name') {
this.instance.name = this.name;
this.emit(
Event.UPDATE_INSTANCE_PROPERTY,
{
component : this,
property : name,
instanceProperty : name
}
);
if (property !== 'all') {
return;
}
}
//GENERATED_TEMPLATE_UPDATE_INSTANCE_OPTIONS_END //GENERATED_TEMPLATE_UPDATE_INSTANCE_OPTIONS_END
this.emit(Event.UPDATE_INSTANCE_AFTER, this); this.emit(Event.UPDATE_INSTANCE_AFTER, this);
@ -403,20 +382,6 @@ class ComponentCanvas extends ComponentDOM {
//GENERATED_UPDATE_FROM_INSTANCE_OPTIONS_END //GENERATED_UPDATE_FROM_INSTANCE_OPTIONS_END
//GENERATED_TEMPLATE_UPDATE_FROM_INSTANCE_OPTIONS_START //GENERATED_TEMPLATE_UPDATE_FROM_INSTANCE_OPTIONS_START
if (property === 'name' || property === 'all') {
this.name = this.instance.name;
this.emit(
Event.UPDATE_PROPERTY_FROM_INSTANCE,
{
component : this,
property : name,
instanceProperty : name
}
);
if (property !== 'all') {
return;
}
}
//GENERATED_TEMPLATE_UPDATE_FROM_INSTANCE_OPTIONS_END //GENERATED_TEMPLATE_UPDATE_FROM_INSTANCE_OPTIONS_END
this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this); this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this);

View File

@ -109,7 +109,6 @@ const Component = require('.././r3-component.js');
TEMPLATE_OPTIONS_START TEMPLATE_OPTIONS_START
parent=null - The parent R3.Object of this component parent=null - The parent R3.Object of this component
instance=null - Holds the current instance of this object as determined (built) by the runtime object. instance=null - Holds the current instance of this object as determined (built) by the runtime object.
name='hello'
TEMPLATE_OPTIONS_END TEMPLATE_OPTIONS_END
CUSTOM_OPTIONS_START CUSTOM_OPTIONS_START
@ -187,12 +186,6 @@ class ComponentDOM extends Component {
if (typeof options.instance === 'undefined') { if (typeof options.instance === 'undefined') {
options.instance = null; options.instance = null;
} }
/**
* name - No comment
*/
if (typeof options.name === 'undefined') {
options.name = 'hello';
}
//GENERATED_TEMPLATE_OPTIONS_INIT_END //GENERATED_TEMPLATE_OPTIONS_INIT_END
//GENERATED_OPTIONS_INIT_START //GENERATED_OPTIONS_INIT_START
@ -253,20 +246,6 @@ class ComponentDOM extends Component {
//GENERATED_UPDATE_INSTANCE_OPTIONS_END //GENERATED_UPDATE_INSTANCE_OPTIONS_END
//GENERATED_TEMPLATE_UPDATE_INSTANCE_OPTIONS_START //GENERATED_TEMPLATE_UPDATE_INSTANCE_OPTIONS_START
if (property === 'name') {
this.instance.name = this.name;
this.emit(
Event.UPDATE_INSTANCE_PROPERTY,
{
component : this,
property : name,
instanceProperty : name
}
);
if (property !== 'all') {
return;
}
}
//GENERATED_TEMPLATE_UPDATE_INSTANCE_OPTIONS_END //GENERATED_TEMPLATE_UPDATE_INSTANCE_OPTIONS_END
this.emit(Event.UPDATE_INSTANCE_AFTER, this); this.emit(Event.UPDATE_INSTANCE_AFTER, this);
@ -305,20 +284,6 @@ class ComponentDOM extends Component {
//GENERATED_UPDATE_FROM_INSTANCE_OPTIONS_END //GENERATED_UPDATE_FROM_INSTANCE_OPTIONS_END
//GENERATED_TEMPLATE_UPDATE_FROM_INSTANCE_OPTIONS_START //GENERATED_TEMPLATE_UPDATE_FROM_INSTANCE_OPTIONS_START
if (property === 'name' || property === 'all') {
this.name = this.instance.name;
this.emit(
Event.UPDATE_PROPERTY_FROM_INSTANCE,
{
component : this,
property : name,
instanceProperty : name
}
);
if (property !== 'all') {
return;
}
}
//GENERATED_TEMPLATE_UPDATE_FROM_INSTANCE_OPTIONS_END //GENERATED_TEMPLATE_UPDATE_FROM_INSTANCE_OPTIONS_END
this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this); this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this);

View File

@ -108,7 +108,6 @@ const Component = require('.././r3-component.js');
TEMPLATE_OPTIONS_START TEMPLATE_OPTIONS_START
parent=null - The parent R3.Object of this component parent=null - The parent R3.Object of this component
instance=null - Holds the current instance of this object as determined (built) by the runtime object. instance=null - Holds the current instance of this object as determined (built) by the runtime object.
name='hello'
TEMPLATE_OPTIONS_END TEMPLATE_OPTIONS_END
CUSTOM_OPTIONS_START CUSTOM_OPTIONS_START
@ -185,12 +184,6 @@ class ComponentGraphics extends Component {
if (typeof options.instance === 'undefined') { if (typeof options.instance === 'undefined') {
options.instance = null; options.instance = null;
} }
/**
* name - No comment
*/
if (typeof options.name === 'undefined') {
options.name = 'hello';
}
//GENERATED_TEMPLATE_OPTIONS_INIT_END //GENERATED_TEMPLATE_OPTIONS_INIT_END
//GENERATED_OPTIONS_INIT_START //GENERATED_OPTIONS_INIT_START
@ -231,20 +224,6 @@ class ComponentGraphics extends Component {
//GENERATED_UPDATE_INSTANCE_OPTIONS_END //GENERATED_UPDATE_INSTANCE_OPTIONS_END
//GENERATED_TEMPLATE_UPDATE_INSTANCE_OPTIONS_START //GENERATED_TEMPLATE_UPDATE_INSTANCE_OPTIONS_START
if (property === 'name') {
this.instance.name = this.name;
this.emit(
Event.UPDATE_INSTANCE_PROPERTY,
{
component : this,
property : name,
instanceProperty : name
}
);
if (property !== 'all') {
return;
}
}
//GENERATED_TEMPLATE_UPDATE_INSTANCE_OPTIONS_END //GENERATED_TEMPLATE_UPDATE_INSTANCE_OPTIONS_END
this.emit(Event.UPDATE_INSTANCE_AFTER, this); this.emit(Event.UPDATE_INSTANCE_AFTER, this);
@ -269,20 +248,6 @@ class ComponentGraphics extends Component {
//GENERATED_UPDATE_FROM_INSTANCE_OPTIONS_END //GENERATED_UPDATE_FROM_INSTANCE_OPTIONS_END
//GENERATED_TEMPLATE_UPDATE_FROM_INSTANCE_OPTIONS_START //GENERATED_TEMPLATE_UPDATE_FROM_INSTANCE_OPTIONS_START
if (property === 'name' || property === 'all') {
this.name = this.instance.name;
this.emit(
Event.UPDATE_PROPERTY_FROM_INSTANCE,
{
component : this,
property : name,
instanceProperty : name
}
);
if (property !== 'all') {
return;
}
}
//GENERATED_TEMPLATE_UPDATE_FROM_INSTANCE_OPTIONS_END //GENERATED_TEMPLATE_UPDATE_FROM_INSTANCE_OPTIONS_END
this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this); this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this);

View File

@ -126,7 +126,6 @@ const ComponentGraphics = require('.././r3-component-graphics.js');
TEMPLATE_OPTIONS_START TEMPLATE_OPTIONS_START
parent=null - The parent R3.Object of this component parent=null - The parent R3.Object of this component
instance=null - Holds the current instance of this object as determined (built) by the runtime object. instance=null - Holds the current instance of this object as determined (built) by the runtime object.
name='hello'
TEMPLATE_OPTIONS_END TEMPLATE_OPTIONS_END
CUSTOM_OPTIONS_START CUSTOM_OPTIONS_START
@ -202,12 +201,6 @@ class ComponentImage extends ComponentGraphics {
if (typeof options.instance === 'undefined') { if (typeof options.instance === 'undefined') {
options.instance = null; options.instance = null;
} }
/**
* name - No comment
*/
if (typeof options.name === 'undefined') {
options.name = 'hello';
}
//GENERATED_TEMPLATE_OPTIONS_INIT_END //GENERATED_TEMPLATE_OPTIONS_INIT_END
//GENERATED_OPTIONS_INIT_START //GENERATED_OPTIONS_INIT_START
@ -248,20 +241,6 @@ class ComponentImage extends ComponentGraphics {
//GENERATED_UPDATE_INSTANCE_OPTIONS_END //GENERATED_UPDATE_INSTANCE_OPTIONS_END
//GENERATED_TEMPLATE_UPDATE_INSTANCE_OPTIONS_START //GENERATED_TEMPLATE_UPDATE_INSTANCE_OPTIONS_START
if (property === 'name') {
this.instance.name = this.name;
this.emit(
Event.UPDATE_INSTANCE_PROPERTY,
{
component : this,
property : name,
instanceProperty : name
}
);
if (property !== 'all') {
return;
}
}
//GENERATED_TEMPLATE_UPDATE_INSTANCE_OPTIONS_END //GENERATED_TEMPLATE_UPDATE_INSTANCE_OPTIONS_END
this.emit(Event.UPDATE_INSTANCE_AFTER, this); this.emit(Event.UPDATE_INSTANCE_AFTER, this);
@ -286,20 +265,6 @@ class ComponentImage extends ComponentGraphics {
//GENERATED_UPDATE_FROM_INSTANCE_OPTIONS_END //GENERATED_UPDATE_FROM_INSTANCE_OPTIONS_END
//GENERATED_TEMPLATE_UPDATE_FROM_INSTANCE_OPTIONS_START //GENERATED_TEMPLATE_UPDATE_FROM_INSTANCE_OPTIONS_START
if (property === 'name' || property === 'all') {
this.name = this.instance.name;
this.emit(
Event.UPDATE_PROPERTY_FROM_INSTANCE,
{
component : this,
property : name,
instanceProperty : name
}
);
if (property !== 'all') {
return;
}
}
//GENERATED_TEMPLATE_UPDATE_FROM_INSTANCE_OPTIONS_END //GENERATED_TEMPLATE_UPDATE_FROM_INSTANCE_OPTIONS_END
this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this); this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this);

View File

@ -108,7 +108,6 @@ const Component = require('.././r3-component.js');
TEMPLATE_OPTIONS_START TEMPLATE_OPTIONS_START
parent=null - The parent R3.Object of this component parent=null - The parent R3.Object of this component
instance=null - Holds the current instance of this object as determined (built) by the runtime object. instance=null - Holds the current instance of this object as determined (built) by the runtime object.
name='hello'
TEMPLATE_OPTIONS_END TEMPLATE_OPTIONS_END
CUSTOM_OPTIONS_START CUSTOM_OPTIONS_START
@ -185,12 +184,6 @@ class ComponentInput extends Component {
if (typeof options.instance === 'undefined') { if (typeof options.instance === 'undefined') {
options.instance = null; options.instance = null;
} }
/**
* name - No comment
*/
if (typeof options.name === 'undefined') {
options.name = 'hello';
}
//GENERATED_TEMPLATE_OPTIONS_INIT_END //GENERATED_TEMPLATE_OPTIONS_INIT_END
//GENERATED_OPTIONS_INIT_START //GENERATED_OPTIONS_INIT_START
@ -231,20 +224,6 @@ class ComponentInput extends Component {
//GENERATED_UPDATE_INSTANCE_OPTIONS_END //GENERATED_UPDATE_INSTANCE_OPTIONS_END
//GENERATED_TEMPLATE_UPDATE_INSTANCE_OPTIONS_START //GENERATED_TEMPLATE_UPDATE_INSTANCE_OPTIONS_START
if (property === 'name') {
this.instance.name = this.name;
this.emit(
Event.UPDATE_INSTANCE_PROPERTY,
{
component : this,
property : name,
instanceProperty : name
}
);
if (property !== 'all') {
return;
}
}
//GENERATED_TEMPLATE_UPDATE_INSTANCE_OPTIONS_END //GENERATED_TEMPLATE_UPDATE_INSTANCE_OPTIONS_END
this.emit(Event.UPDATE_INSTANCE_AFTER, this); this.emit(Event.UPDATE_INSTANCE_AFTER, this);
@ -269,20 +248,6 @@ class ComponentInput extends Component {
//GENERATED_UPDATE_FROM_INSTANCE_OPTIONS_END //GENERATED_UPDATE_FROM_INSTANCE_OPTIONS_END
//GENERATED_TEMPLATE_UPDATE_FROM_INSTANCE_OPTIONS_START //GENERATED_TEMPLATE_UPDATE_FROM_INSTANCE_OPTIONS_START
if (property === 'name' || property === 'all') {
this.name = this.instance.name;
this.emit(
Event.UPDATE_PROPERTY_FROM_INSTANCE,
{
component : this,
property : name,
instanceProperty : name
}
);
if (property !== 'all') {
return;
}
}
//GENERATED_TEMPLATE_UPDATE_FROM_INSTANCE_OPTIONS_END //GENERATED_TEMPLATE_UPDATE_FROM_INSTANCE_OPTIONS_END
this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this); this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this);

View File

@ -126,7 +126,6 @@ const ComponentGraphics = require('.././r3-component-graphics.js');
TEMPLATE_OPTIONS_START TEMPLATE_OPTIONS_START
parent=null - The parent R3.Object of this component parent=null - The parent R3.Object of this component
instance=null - Holds the current instance of this object as determined (built) by the runtime object. instance=null - Holds the current instance of this object as determined (built) by the runtime object.
name='hello'
TEMPLATE_OPTIONS_END TEMPLATE_OPTIONS_END
CUSTOM_OPTIONS_START CUSTOM_OPTIONS_START
@ -202,12 +201,6 @@ class ComponentMaterial extends ComponentGraphics {
if (typeof options.instance === 'undefined') { if (typeof options.instance === 'undefined') {
options.instance = null; options.instance = null;
} }
/**
* name - No comment
*/
if (typeof options.name === 'undefined') {
options.name = 'hello';
}
//GENERATED_TEMPLATE_OPTIONS_INIT_END //GENERATED_TEMPLATE_OPTIONS_INIT_END
//GENERATED_OPTIONS_INIT_START //GENERATED_OPTIONS_INIT_START
@ -248,20 +241,6 @@ class ComponentMaterial extends ComponentGraphics {
//GENERATED_UPDATE_INSTANCE_OPTIONS_END //GENERATED_UPDATE_INSTANCE_OPTIONS_END
//GENERATED_TEMPLATE_UPDATE_INSTANCE_OPTIONS_START //GENERATED_TEMPLATE_UPDATE_INSTANCE_OPTIONS_START
if (property === 'name') {
this.instance.name = this.name;
this.emit(
Event.UPDATE_INSTANCE_PROPERTY,
{
component : this,
property : name,
instanceProperty : name
}
);
if (property !== 'all') {
return;
}
}
//GENERATED_TEMPLATE_UPDATE_INSTANCE_OPTIONS_END //GENERATED_TEMPLATE_UPDATE_INSTANCE_OPTIONS_END
this.emit(Event.UPDATE_INSTANCE_AFTER, this); this.emit(Event.UPDATE_INSTANCE_AFTER, this);
@ -286,20 +265,6 @@ class ComponentMaterial extends ComponentGraphics {
//GENERATED_UPDATE_FROM_INSTANCE_OPTIONS_END //GENERATED_UPDATE_FROM_INSTANCE_OPTIONS_END
//GENERATED_TEMPLATE_UPDATE_FROM_INSTANCE_OPTIONS_START //GENERATED_TEMPLATE_UPDATE_FROM_INSTANCE_OPTIONS_START
if (property === 'name' || property === 'all') {
this.name = this.instance.name;
this.emit(
Event.UPDATE_PROPERTY_FROM_INSTANCE,
{
component : this,
property : name,
instanceProperty : name
}
);
if (property !== 'all') {
return;
}
}
//GENERATED_TEMPLATE_UPDATE_FROM_INSTANCE_OPTIONS_END //GENERATED_TEMPLATE_UPDATE_FROM_INSTANCE_OPTIONS_END
this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this); this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this);

View File

@ -126,7 +126,6 @@ const ComponentGraphics = require('.././r3-component-graphics.js');
TEMPLATE_OPTIONS_START TEMPLATE_OPTIONS_START
parent=null - The parent R3.Object of this component parent=null - The parent R3.Object of this component
instance=null - Holds the current instance of this object as determined (built) by the runtime object. instance=null - Holds the current instance of this object as determined (built) by the runtime object.
name='hello'
TEMPLATE_OPTIONS_END TEMPLATE_OPTIONS_END
CUSTOM_OPTIONS_START CUSTOM_OPTIONS_START
@ -202,12 +201,6 @@ class ComponentMesh extends ComponentGraphics {
if (typeof options.instance === 'undefined') { if (typeof options.instance === 'undefined') {
options.instance = null; options.instance = null;
} }
/**
* name - No comment
*/
if (typeof options.name === 'undefined') {
options.name = 'hello';
}
//GENERATED_TEMPLATE_OPTIONS_INIT_END //GENERATED_TEMPLATE_OPTIONS_INIT_END
//GENERATED_OPTIONS_INIT_START //GENERATED_OPTIONS_INIT_START
@ -248,20 +241,6 @@ class ComponentMesh extends ComponentGraphics {
//GENERATED_UPDATE_INSTANCE_OPTIONS_END //GENERATED_UPDATE_INSTANCE_OPTIONS_END
//GENERATED_TEMPLATE_UPDATE_INSTANCE_OPTIONS_START //GENERATED_TEMPLATE_UPDATE_INSTANCE_OPTIONS_START
if (property === 'name') {
this.instance.name = this.name;
this.emit(
Event.UPDATE_INSTANCE_PROPERTY,
{
component : this,
property : name,
instanceProperty : name
}
);
if (property !== 'all') {
return;
}
}
//GENERATED_TEMPLATE_UPDATE_INSTANCE_OPTIONS_END //GENERATED_TEMPLATE_UPDATE_INSTANCE_OPTIONS_END
this.emit(Event.UPDATE_INSTANCE_AFTER, this); this.emit(Event.UPDATE_INSTANCE_AFTER, this);
@ -286,20 +265,6 @@ class ComponentMesh extends ComponentGraphics {
//GENERATED_UPDATE_FROM_INSTANCE_OPTIONS_END //GENERATED_UPDATE_FROM_INSTANCE_OPTIONS_END
//GENERATED_TEMPLATE_UPDATE_FROM_INSTANCE_OPTIONS_START //GENERATED_TEMPLATE_UPDATE_FROM_INSTANCE_OPTIONS_START
if (property === 'name' || property === 'all') {
this.name = this.instance.name;
this.emit(
Event.UPDATE_PROPERTY_FROM_INSTANCE,
{
component : this,
property : name,
instanceProperty : name
}
);
if (property !== 'all') {
return;
}
}
//GENERATED_TEMPLATE_UPDATE_FROM_INSTANCE_OPTIONS_END //GENERATED_TEMPLATE_UPDATE_FROM_INSTANCE_OPTIONS_END
this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this); this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this);

View File

@ -126,7 +126,6 @@ const ComponentGraphics = require('.././r3-component-graphics.js');
TEMPLATE_OPTIONS_START TEMPLATE_OPTIONS_START
parent=null - The parent R3.Object of this component parent=null - The parent R3.Object of this component
instance=null - Holds the current instance of this object as determined (built) by the runtime object. instance=null - Holds the current instance of this object as determined (built) by the runtime object.
name='hello'
TEMPLATE_OPTIONS_END TEMPLATE_OPTIONS_END
CUSTOM_OPTIONS_START CUSTOM_OPTIONS_START
@ -202,12 +201,6 @@ class ComponentTexture extends ComponentGraphics {
if (typeof options.instance === 'undefined') { if (typeof options.instance === 'undefined') {
options.instance = null; options.instance = null;
} }
/**
* name - No comment
*/
if (typeof options.name === 'undefined') {
options.name = 'hello';
}
//GENERATED_TEMPLATE_OPTIONS_INIT_END //GENERATED_TEMPLATE_OPTIONS_INIT_END
//GENERATED_OPTIONS_INIT_START //GENERATED_OPTIONS_INIT_START
@ -248,20 +241,6 @@ class ComponentTexture extends ComponentGraphics {
//GENERATED_UPDATE_INSTANCE_OPTIONS_END //GENERATED_UPDATE_INSTANCE_OPTIONS_END
//GENERATED_TEMPLATE_UPDATE_INSTANCE_OPTIONS_START //GENERATED_TEMPLATE_UPDATE_INSTANCE_OPTIONS_START
if (property === 'name') {
this.instance.name = this.name;
this.emit(
Event.UPDATE_INSTANCE_PROPERTY,
{
component : this,
property : name,
instanceProperty : name
}
);
if (property !== 'all') {
return;
}
}
//GENERATED_TEMPLATE_UPDATE_INSTANCE_OPTIONS_END //GENERATED_TEMPLATE_UPDATE_INSTANCE_OPTIONS_END
this.emit(Event.UPDATE_INSTANCE_AFTER, this); this.emit(Event.UPDATE_INSTANCE_AFTER, this);
@ -286,20 +265,6 @@ class ComponentTexture extends ComponentGraphics {
//GENERATED_UPDATE_FROM_INSTANCE_OPTIONS_END //GENERATED_UPDATE_FROM_INSTANCE_OPTIONS_END
//GENERATED_TEMPLATE_UPDATE_FROM_INSTANCE_OPTIONS_START //GENERATED_TEMPLATE_UPDATE_FROM_INSTANCE_OPTIONS_START
if (property === 'name' || property === 'all') {
this.name = this.instance.name;
this.emit(
Event.UPDATE_PROPERTY_FROM_INSTANCE,
{
component : this,
property : name,
instanceProperty : name
}
);
if (property !== 'all') {
return;
}
}
//GENERATED_TEMPLATE_UPDATE_FROM_INSTANCE_OPTIONS_END //GENERATED_TEMPLATE_UPDATE_FROM_INSTANCE_OPTIONS_END
this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this); this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this);

View File

@ -126,7 +126,6 @@ const ComponentInput = require('.././r3-component-input.js');
TEMPLATE_OPTIONS_START TEMPLATE_OPTIONS_START
parent=null - The parent R3.Object of this component parent=null - The parent R3.Object of this component
instance=null - Holds the current instance of this object as determined (built) by the runtime object. instance=null - Holds the current instance of this object as determined (built) by the runtime object.
name='hello'
TEMPLATE_OPTIONS_END TEMPLATE_OPTIONS_END
CUSTOM_OPTIONS_START CUSTOM_OPTIONS_START
@ -202,12 +201,6 @@ class ComponentTouch extends ComponentInput {
if (typeof options.instance === 'undefined') { if (typeof options.instance === 'undefined') {
options.instance = null; options.instance = null;
} }
/**
* name - No comment
*/
if (typeof options.name === 'undefined') {
options.name = 'hello';
}
//GENERATED_TEMPLATE_OPTIONS_INIT_END //GENERATED_TEMPLATE_OPTIONS_INIT_END
//GENERATED_OPTIONS_INIT_START //GENERATED_OPTIONS_INIT_START
@ -248,20 +241,6 @@ class ComponentTouch extends ComponentInput {
//GENERATED_UPDATE_INSTANCE_OPTIONS_END //GENERATED_UPDATE_INSTANCE_OPTIONS_END
//GENERATED_TEMPLATE_UPDATE_INSTANCE_OPTIONS_START //GENERATED_TEMPLATE_UPDATE_INSTANCE_OPTIONS_START
if (property === 'name') {
this.instance.name = this.name;
this.emit(
Event.UPDATE_INSTANCE_PROPERTY,
{
component : this,
property : name,
instanceProperty : name
}
);
if (property !== 'all') {
return;
}
}
//GENERATED_TEMPLATE_UPDATE_INSTANCE_OPTIONS_END //GENERATED_TEMPLATE_UPDATE_INSTANCE_OPTIONS_END
this.emit(Event.UPDATE_INSTANCE_AFTER, this); this.emit(Event.UPDATE_INSTANCE_AFTER, this);
@ -286,20 +265,6 @@ class ComponentTouch extends ComponentInput {
//GENERATED_UPDATE_FROM_INSTANCE_OPTIONS_END //GENERATED_UPDATE_FROM_INSTANCE_OPTIONS_END
//GENERATED_TEMPLATE_UPDATE_FROM_INSTANCE_OPTIONS_START //GENERATED_TEMPLATE_UPDATE_FROM_INSTANCE_OPTIONS_START
if (property === 'name' || property === 'all') {
this.name = this.instance.name;
this.emit(
Event.UPDATE_PROPERTY_FROM_INSTANCE,
{
component : this,
property : name,
instanceProperty : name
}
);
if (property !== 'all') {
return;
}
}
//GENERATED_TEMPLATE_UPDATE_FROM_INSTANCE_OPTIONS_END //GENERATED_TEMPLATE_UPDATE_FROM_INSTANCE_OPTIONS_END
this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this); this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this);

View File

@ -336,87 +336,85 @@ class Event {
//CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START //CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START
//GENERATED_EVENTS_START //GENERATED_EVENTS_START
Event.BEFORE_RENDER = 0x1; Event.COMPONENT_CREATED = 0x1;
Event.COMPONENT_CREATED = 0x2; Event.COMPONENT_INITIALIZED = 0x2;
Event.COMPONENT_INITIALIZED = 0x3; Event.CREATE_INSTANCE_BEFORE = 0x3;
Event.CREATE_INSTANCE_BEFORE = 0x4; Event.DISPOSE_INSTANCE = 0x4;
Event.DISPOSE_INSTANCE = 0x5; Event.DISPOSE_OBJECT = 0x5;
Event.DISPOSE_OBJECT = 0x6; Event.DOM_COMPONENT_INITIALIZED = 0x6;
Event.DOM_COMPONENT_INITIALIZED = 0x7; Event.ENTITY_CREATED = 0x7;
Event.ENTITY_CREATED = 0x8; Event.ENTITY_INITIALIZED = 0x8;
Event.ENTITY_INITIALIZED = 0x9; Event.GET_RUNTIME = 0x9;
Event.GET_RUNTIME = 0xa; Event.GET_WINDOW_SIZE = 0xa;
Event.GET_WINDOW_SIZE = 0xb; Event.GRAPHICS_COMPONENT_INITIALIZED = 0xb;
Event.GRAPHICS_COMPONENT_INITIALIZED = 0xc; Event.IMAGE_CREATED = 0xc;
Event.IMAGE_CREATED = 0xd; Event.INPUT_COMPONENT_INITIALIZED = 0xd;
Event.INPUT_COMPONENT_INITIALIZED = 0xe; Event.INSTANCE_CREATED = 0xe;
Event.INSTANCE_CREATED = 0xf; Event.INSTANCE_DISPOSED = 0xf;
Event.INSTANCE_DISPOSED = 0x10; Event.KEYBOARD_DOWN = 0x10;
Event.KEYBOARD_DOWN = 0x11; Event.KEYBOARD_UP = 0x11;
Event.KEYBOARD_UP = 0x12; Event.MOUSE_DOWN = 0x12;
Event.MOUSE_DOWN = 0x13; Event.MOUSE_MOVE = 0x13;
Event.MOUSE_MOVE = 0x14; Event.MOUSE_UP = 0x14;
Event.MOUSE_UP = 0x15; Event.MOUSE_WHEEL = 0x15;
Event.MOUSE_WHEEL = 0x16; Event.OBJECT_CREATED = 0x16;
Event.OBJECT_CREATED = 0x17; Event.OBJECT_INITIALIZED = 0x17;
Event.OBJECT_INITIALIZED = 0x18; Event.PAUSE = 0x18;
Event.PAUSE = 0x19; Event.PROJECT_INITIALIZED = 0x19;
Event.PROJECT_INITIALIZED = 0x1a; Event.RESTART = 0x1a;
Event.RESTART = 0x1b; Event.START = 0x1b;
Event.START = 0x1c; Event.TOUCH_CANCEL = 0x1c;
Event.TOUCH_CANCEL = 0x1d; Event.TOUCH_END = 0x1d;
Event.TOUCH_END = 0x1e; Event.TOUCH_MOVE = 0x1e;
Event.TOUCH_MOVE = 0x1f; Event.TOUCH_START = 0x1f;
Event.TOUCH_START = 0x20; Event.UPDATE_FROM_INSTANCE_AFTER = 0x20;
Event.UPDATE_FROM_INSTANCE_AFTER = 0x21; Event.UPDATE_FROM_INSTANCE_BEFORE = 0x21;
Event.UPDATE_FROM_INSTANCE_BEFORE = 0x22; Event.UPDATE_INSTANCE_AFTER = 0x22;
Event.UPDATE_INSTANCE_AFTER = 0x23; Event.UPDATE_INSTANCE_BEFORE = 0x23;
Event.UPDATE_INSTANCE_BEFORE = 0x24; Event.UPDATE_INSTANCE_PROPERTY = 0x24;
Event.UPDATE_INSTANCE_PROPERTY = 0x25; Event.UPDATE_PROPERTY_FROM_INSTANCE = 0x25;
Event.UPDATE_PROPERTY_FROM_INSTANCE = 0x26; Event.MAX_EVENTS = 0x26;
Event.MAX_EVENTS = 0x27;
Event.GetEventName = function(eventId) { Event.GetEventName = function(eventId) {
switch(eventId) { switch(eventId) {
case 0x1 : return 'before_render'; case 0x1 : return 'component_created';
case 0x2 : return 'component_created'; case 0x2 : return 'component_initialized';
case 0x3 : return 'component_initialized'; case 0x3 : return 'create_instance_before';
case 0x4 : return 'create_instance_before'; case 0x4 : return 'dispose_instance';
case 0x5 : return 'dispose_instance'; case 0x5 : return 'dispose_object';
case 0x6 : return 'dispose_object'; case 0x6 : return 'dom_component_initialized';
case 0x7 : return 'dom_component_initialized'; case 0x7 : return 'entity_created';
case 0x8 : return 'entity_created'; case 0x8 : return 'entity_initialized';
case 0x9 : return 'entity_initialized'; case 0x9 : return 'get_runtime';
case 0xa : return 'get_runtime'; case 0xa : return 'get_window_size';
case 0xb : return 'get_window_size'; case 0xb : return 'graphics_component_initialized';
case 0xc : return 'graphics_component_initialized'; case 0xc : return 'image_created';
case 0xd : return 'image_created'; case 0xd : return 'input_component_initialized';
case 0xe : return 'input_component_initialized'; case 0xe : return 'instance_created';
case 0xf : return 'instance_created'; case 0xf : return 'instance_disposed';
case 0x10 : return 'instance_disposed'; case 0x10 : return 'keyboard_down';
case 0x11 : return 'keyboard_down'; case 0x11 : return 'keyboard_up';
case 0x12 : return 'keyboard_up'; case 0x12 : return 'mouse_down';
case 0x13 : return 'mouse_down'; case 0x13 : return 'mouse_move';
case 0x14 : return 'mouse_move'; case 0x14 : return 'mouse_up';
case 0x15 : return 'mouse_up'; case 0x15 : return 'mouse_wheel';
case 0x16 : return 'mouse_wheel'; case 0x16 : return 'object_created';
case 0x17 : return 'object_created'; case 0x17 : return 'object_initialized';
case 0x18 : return 'object_initialized'; case 0x18 : return 'pause';
case 0x19 : return 'pause'; case 0x19 : return 'project_initialized';
case 0x1a : return 'project_initialized'; case 0x1a : return 'restart';
case 0x1b : return 'restart'; case 0x1b : return 'start';
case 0x1c : return 'start'; case 0x1c : return 'touch_cancel';
case 0x1d : return 'touch_cancel'; case 0x1d : return 'touch_end';
case 0x1e : return 'touch_end'; case 0x1e : return 'touch_move';
case 0x1f : return 'touch_move'; case 0x1f : return 'touch_start';
case 0x20 : return 'touch_start'; case 0x20 : return 'update_from_instance_after';
case 0x21 : return 'update_from_instance_after'; case 0x21 : return 'update_from_instance_before';
case 0x22 : return 'update_from_instance_before'; case 0x22 : return 'update_instance_after';
case 0x23 : return 'update_instance_after'; case 0x23 : return 'update_instance_before';
case 0x24 : return 'update_instance_before'; case 0x24 : return 'update_instance_property';
case 0x25 : return 'update_instance_property'; case 0x25 : return 'update_property_from_instance';
case 0x26 : return 'update_property_from_instance';
default : default :
throw new Error('Event type not defined : ' + eventId); throw new Error('Event type not defined : ' + eventId);
} }

View File

@ -1,6 +1,6 @@
class R3 { class R3 {
static version = '2.0.694'; static version = '2.0.695';
static compileDate = '2021 Sep 17 - 11:26:55 am'; static compileDate = '2021 Sep 17 - 11:29:51 am';
} }
//GENERATED_IMPORTS_START //GENERATED_IMPORTS_START

View File

@ -11,7 +11,6 @@ const EXTEND_CLASS = require('INCLUDE_PATH/EXTEND_CLASS_FILE_NAME');
TEMPLATE_OPTIONS_START TEMPLATE_OPTIONS_START
parent=null - The parent R3.Object of this component parent=null - The parent R3.Object of this component
instance=null - Holds the current instance of this object as determined (built) by the runtime object. instance=null - Holds the current instance of this object as determined (built) by the runtime object.
name='hello'
TEMPLATE_OPTIONS_END TEMPLATE_OPTIONS_END
CUSTOM_OPTIONS_START CUSTOM_OPTIONS_START

View File

@ -29,6 +29,7 @@ GENERATED_STATIC_METHOD_NAME_UPPERCASE_METHOD
GENERATED_STATIC_METHODS GENERATED_STATIC_METHODS
GENERATED_STATIC_ON_DOM_COMPONENT_INITIALIZED_METHOD GENERATED_STATIC_ON_DOM_COMPONENT_INITIALIZED_METHOD
GENERATED_STATIC_ON_GET_RUNTIME_METHOD GENERATED_STATIC_ON_GET_RUNTIME_METHOD
GENERATED_STATIC_ON_IMAGE_CREATED_METHOD
GENERATED_STATIC_ON_INSTANCE_CREATED_METHOD GENERATED_STATIC_ON_INSTANCE_CREATED_METHOD
GENERATED_STATIC_ON_KEYBOARD_DOWN_METHOD GENERATED_STATIC_ON_KEYBOARD_DOWN_METHOD
GENERATED_STATIC_ON_KEYBOARD_UP_METHOD GENERATED_STATIC_ON_KEYBOARD_UP_METHOD
@ -89,6 +90,7 @@ CUSTOM_STATIC_METHOD_NAME_UPPERCASE_METHOD
CUSTOM_STATIC_METHODS CUSTOM_STATIC_METHODS
CUSTOM_STATIC_ON_DOM_COMPONENT_INITIALIZED_METHOD CUSTOM_STATIC_ON_DOM_COMPONENT_INITIALIZED_METHOD
CUSTOM_STATIC_ON_GET_RUNTIME_METHOD CUSTOM_STATIC_ON_GET_RUNTIME_METHOD
CUSTOM_STATIC_ON_IMAGE_CREATED_METHOD
CUSTOM_STATIC_ON_INSTANCE_CREATED_METHOD CUSTOM_STATIC_ON_INSTANCE_CREATED_METHOD
CUSTOM_STATIC_ON_KEYBOARD_DOWN_METHOD CUSTOM_STATIC_ON_KEYBOARD_DOWN_METHOD
CUSTOM_STATIC_ON_KEYBOARD_UP_METHOD CUSTOM_STATIC_ON_KEYBOARD_UP_METHOD

View File

@ -1 +1 @@
2.0.694 2.0.695