From 42b628419d89bb146f9effc590b03c976fc3c2f8 Mon Sep 17 00:00:00 2001 From: "Theunis J. Botha" Date: Fri, 17 Sep 2021 11:30:42 +0200 Subject: [PATCH] updated template - removed test stuff --- dist/r3.js | 486 +++---------------- package.json | 2 +- src/r3/r3-component/r3-component-canvas.js | 35 -- src/r3/r3-component/r3-component-d-o-m.js | 35 -- src/r3/r3-component/r3-component-graphics.js | 35 -- src/r3/r3-component/r3-component-image.js | 35 -- src/r3/r3-component/r3-component-input.js | 35 -- src/r3/r3-component/r3-component-material.js | 35 -- src/r3/r3-component/r3-component-mesh.js | 35 -- src/r3/r3-component/r3-component-texture.js | 35 -- src/r3/r3-component/r3-component-touch.js | 35 -- src/r3/r3-event.js | 152 +++--- src/r3/r3-r3.js | 4 +- src/templates/component_extends.template | 1 - src/templates/token.db | 2 + version | 2 +- 16 files changed, 158 insertions(+), 806 deletions(-) diff --git a/dist/r3.js b/dist/r3.js index 8c2acaa..450b97f 100644 --- a/dist/r3.js +++ b/dist/r3.js @@ -1,6 +1,6 @@ class R3 { - static version = '2.0.694'; - static compileDate = '2021 Sep 17 - 11:26:55 am'; + static version = '2.0.695'; + static compileDate = '2021 Sep 17 - 11:29:51 am'; } class Runtime { @@ -278,87 +278,85 @@ class Event { } -Event.BEFORE_RENDER = 0x1; -Event.COMPONENT_CREATED = 0x2; -Event.COMPONENT_INITIALIZED = 0x3; -Event.CREATE_INSTANCE_BEFORE = 0x4; -Event.DISPOSE_INSTANCE = 0x5; -Event.DISPOSE_OBJECT = 0x6; -Event.DOM_COMPONENT_INITIALIZED = 0x7; -Event.ENTITY_CREATED = 0x8; -Event.ENTITY_INITIALIZED = 0x9; -Event.GET_RUNTIME = 0xa; -Event.GET_WINDOW_SIZE = 0xb; -Event.GRAPHICS_COMPONENT_INITIALIZED = 0xc; -Event.IMAGE_CREATED = 0xd; -Event.INPUT_COMPONENT_INITIALIZED = 0xe; -Event.INSTANCE_CREATED = 0xf; -Event.INSTANCE_DISPOSED = 0x10; -Event.KEYBOARD_DOWN = 0x11; -Event.KEYBOARD_UP = 0x12; -Event.MOUSE_DOWN = 0x13; -Event.MOUSE_MOVE = 0x14; -Event.MOUSE_UP = 0x15; -Event.MOUSE_WHEEL = 0x16; -Event.OBJECT_CREATED = 0x17; -Event.OBJECT_INITIALIZED = 0x18; -Event.PAUSE = 0x19; -Event.PROJECT_INITIALIZED = 0x1a; -Event.RESTART = 0x1b; -Event.START = 0x1c; -Event.TOUCH_CANCEL = 0x1d; -Event.TOUCH_END = 0x1e; -Event.TOUCH_MOVE = 0x1f; -Event.TOUCH_START = 0x20; -Event.UPDATE_FROM_INSTANCE_AFTER = 0x21; -Event.UPDATE_FROM_INSTANCE_BEFORE = 0x22; -Event.UPDATE_INSTANCE_AFTER = 0x23; -Event.UPDATE_INSTANCE_BEFORE = 0x24; -Event.UPDATE_INSTANCE_PROPERTY = 0x25; -Event.UPDATE_PROPERTY_FROM_INSTANCE = 0x26; -Event.MAX_EVENTS = 0x27; +Event.COMPONENT_CREATED = 0x1; +Event.COMPONENT_INITIALIZED = 0x2; +Event.CREATE_INSTANCE_BEFORE = 0x3; +Event.DISPOSE_INSTANCE = 0x4; +Event.DISPOSE_OBJECT = 0x5; +Event.DOM_COMPONENT_INITIALIZED = 0x6; +Event.ENTITY_CREATED = 0x7; +Event.ENTITY_INITIALIZED = 0x8; +Event.GET_RUNTIME = 0x9; +Event.GET_WINDOW_SIZE = 0xa; +Event.GRAPHICS_COMPONENT_INITIALIZED = 0xb; +Event.IMAGE_CREATED = 0xc; +Event.INPUT_COMPONENT_INITIALIZED = 0xd; +Event.INSTANCE_CREATED = 0xe; +Event.INSTANCE_DISPOSED = 0xf; +Event.KEYBOARD_DOWN = 0x10; +Event.KEYBOARD_UP = 0x11; +Event.MOUSE_DOWN = 0x12; +Event.MOUSE_MOVE = 0x13; +Event.MOUSE_UP = 0x14; +Event.MOUSE_WHEEL = 0x15; +Event.OBJECT_CREATED = 0x16; +Event.OBJECT_INITIALIZED = 0x17; +Event.PAUSE = 0x18; +Event.PROJECT_INITIALIZED = 0x19; +Event.RESTART = 0x1a; +Event.START = 0x1b; +Event.TOUCH_CANCEL = 0x1c; +Event.TOUCH_END = 0x1d; +Event.TOUCH_MOVE = 0x1e; +Event.TOUCH_START = 0x1f; +Event.UPDATE_FROM_INSTANCE_AFTER = 0x20; +Event.UPDATE_FROM_INSTANCE_BEFORE = 0x21; +Event.UPDATE_INSTANCE_AFTER = 0x22; +Event.UPDATE_INSTANCE_BEFORE = 0x23; +Event.UPDATE_INSTANCE_PROPERTY = 0x24; +Event.UPDATE_PROPERTY_FROM_INSTANCE = 0x25; +Event.MAX_EVENTS = 0x26; Event.GetEventName = function(eventId) { switch(eventId) { - case 0x1 : return 'before_render'; - case 0x2 : return 'component_created'; - case 0x3 : return 'component_initialized'; - case 0x4 : return 'create_instance_before'; - case 0x5 : return 'dispose_instance'; - case 0x6 : return 'dispose_object'; - case 0x7 : return 'dom_component_initialized'; - case 0x8 : return 'entity_created'; - case 0x9 : return 'entity_initialized'; - case 0xa : return 'get_runtime'; - case 0xb : return 'get_window_size'; - case 0xc : return 'graphics_component_initialized'; - case 0xd : return 'image_created'; - case 0xe : return 'input_component_initialized'; - case 0xf : return 'instance_created'; - case 0x10 : return 'instance_disposed'; - case 0x11 : return 'keyboard_down'; - case 0x12 : return 'keyboard_up'; - case 0x13 : return 'mouse_down'; - case 0x14 : return 'mouse_move'; - case 0x15 : return 'mouse_up'; - case 0x16 : return 'mouse_wheel'; - case 0x17 : return 'object_created'; - case 0x18 : return 'object_initialized'; - case 0x19 : return 'pause'; - case 0x1a : return 'project_initialized'; - case 0x1b : return 'restart'; - case 0x1c : return 'start'; - case 0x1d : return 'touch_cancel'; - case 0x1e : return 'touch_end'; - case 0x1f : return 'touch_move'; - case 0x20 : return 'touch_start'; - case 0x21 : return 'update_from_instance_after'; - case 0x22 : return 'update_from_instance_before'; - case 0x23 : return 'update_instance_after'; - case 0x24 : return 'update_instance_before'; - case 0x25 : return 'update_instance_property'; - case 0x26 : return 'update_property_from_instance'; + case 0x1 : return 'component_created'; + case 0x2 : return 'component_initialized'; + case 0x3 : return 'create_instance_before'; + case 0x4 : return 'dispose_instance'; + case 0x5 : return 'dispose_object'; + case 0x6 : return 'dom_component_initialized'; + case 0x7 : return 'entity_created'; + case 0x8 : return 'entity_initialized'; + case 0x9 : return 'get_runtime'; + case 0xa : return 'get_window_size'; + case 0xb : return 'graphics_component_initialized'; + case 0xc : return 'image_created'; + case 0xd : return 'input_component_initialized'; + case 0xe : return 'instance_created'; + case 0xf : return 'instance_disposed'; + case 0x10 : return 'keyboard_down'; + case 0x11 : return 'keyboard_up'; + case 0x12 : return 'mouse_down'; + case 0x13 : return 'mouse_move'; + case 0x14 : return 'mouse_up'; + case 0x15 : return 'mouse_wheel'; + case 0x16 : return 'object_created'; + case 0x17 : return 'object_initialized'; + case 0x18 : return 'pause'; + case 0x19 : return 'project_initialized'; + case 0x1a : return 'restart'; + case 0x1b : return 'start'; + case 0x1c : return 'touch_cancel'; + case 0x1d : return 'touch_end'; + case 0x1e : return 'touch_move'; + case 0x1f : return 'touch_start'; + case 0x20 : return 'update_from_instance_after'; + case 0x21 : return 'update_from_instance_before'; + case 0x22 : return 'update_instance_after'; + case 0x23 : return 'update_instance_before'; + case 0x24 : return 'update_instance_property'; + case 0x25 : return 'update_property_from_instance'; default : throw new Error('Event type not defined : ' + eventId); } @@ -3177,12 +3175,6 @@ class SystemStorage extends System { */ 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') { 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. @@ -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); } @@ -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); } @@ -4774,12 +4730,6 @@ class ComponentGraphics extends Component { if (typeof options.instance === 'undefined') { options.instance = null; } - /** - * name - No comment - */ - if (typeof options.name === 'undefined') { - options.name = 'hello'; - } Object.assign(this, options); @@ -4800,21 +4750,6 @@ class ComponentGraphics extends Component { 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); } @@ -4828,21 +4763,6 @@ class ComponentGraphics extends Component { 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); } @@ -5002,12 +4922,6 @@ class ComponentInput extends Component { if (typeof options.instance === 'undefined') { options.instance = null; } - /** - * name - No comment - */ - if (typeof options.name === 'undefined') { - options.name = 'hello'; - } Object.assign(this, options); @@ -5028,21 +4942,6 @@ class ComponentInput extends Component { 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); } @@ -5056,21 +4955,6 @@ class ComponentInput extends Component { 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); } @@ -5252,12 +5136,6 @@ class ComponentCanvas extends ComponentDOM { if (typeof options.instance === 'undefined') { options.instance = null; } - /** - * name - No comment - */ - if (typeof options.name === 'undefined') { - options.name = 'hello'; - } /** * 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); } @@ -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); } @@ -5589,12 +5437,6 @@ class ComponentImage extends ComponentGraphics { if (typeof options.instance === 'undefined') { options.instance = null; } - /** - * name - No comment - */ - if (typeof options.name === 'undefined') { - options.name = 'hello'; - } Object.assign(this, options); @@ -5615,21 +5457,6 @@ class ComponentImage extends ComponentGraphics { 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); } @@ -5643,21 +5470,6 @@ class ComponentImage extends ComponentGraphics { 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); } @@ -5815,12 +5627,6 @@ class ComponentMaterial extends ComponentGraphics { if (typeof options.instance === 'undefined') { options.instance = null; } - /** - * name - No comment - */ - if (typeof options.name === 'undefined') { - options.name = 'hello'; - } Object.assign(this, options); @@ -5841,21 +5647,6 @@ class ComponentMaterial extends ComponentGraphics { 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); } @@ -5869,21 +5660,6 @@ class ComponentMaterial extends ComponentGraphics { 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); } @@ -6041,12 +5817,6 @@ class ComponentMesh extends ComponentGraphics { if (typeof options.instance === 'undefined') { options.instance = null; } - /** - * name - No comment - */ - if (typeof options.name === 'undefined') { - options.name = 'hello'; - } Object.assign(this, options); @@ -6067,21 +5837,6 @@ class ComponentMesh extends ComponentGraphics { 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); } @@ -6095,21 +5850,6 @@ class ComponentMesh extends ComponentGraphics { 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); } @@ -6267,12 +6007,6 @@ class ComponentTexture extends ComponentGraphics { if (typeof options.instance === 'undefined') { options.instance = null; } - /** - * name - No comment - */ - if (typeof options.name === 'undefined') { - options.name = 'hello'; - } Object.assign(this, options); @@ -6293,21 +6027,6 @@ class ComponentTexture extends ComponentGraphics { 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); } @@ -6321,21 +6040,6 @@ class ComponentTexture extends ComponentGraphics { 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); } @@ -6493,12 +6197,6 @@ class ComponentTouch extends ComponentInput { if (typeof options.instance === 'undefined') { options.instance = null; } - /** - * name - No comment - */ - if (typeof options.name === 'undefined') { - options.name = 'hello'; - } Object.assign(this, options); @@ -6519,21 +6217,6 @@ class ComponentTouch extends ComponentInput { 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); } @@ -6547,21 +6230,6 @@ class ComponentTouch extends ComponentInput { 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); } diff --git a/package.json b/package.json index a7e1759..a69e35e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "r3", - "version" : "2.0.694", + "version" : "2.0.695", "description": "", "private": true, "dependencies": { diff --git a/src/r3/r3-component/r3-component-canvas.js b/src/r3/r3-component/r3-component-canvas.js index 273319d..84d23a9 100644 --- a/src/r3/r3-component/r3-component-canvas.js +++ b/src/r3/r3-component/r3-component-canvas.js @@ -130,7 +130,6 @@ const ComponentDOM = require('.././r3-component-d-o-m.js'); TEMPLATE_OPTIONS_START 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. - name='hello' TEMPLATE_OPTIONS_END CUSTOM_OPTIONS_START @@ -211,12 +210,6 @@ class ComponentCanvas extends ComponentDOM { if (typeof options.instance === 'undefined') { options.instance = null; } - /** - * name - No comment - */ - if (typeof options.name === 'undefined') { - options.name = 'hello'; - } //GENERATED_TEMPLATE_OPTIONS_INIT_END //GENERATED_OPTIONS_INIT_START @@ -323,20 +316,6 @@ class ComponentCanvas extends ComponentDOM { //GENERATED_UPDATE_INSTANCE_OPTIONS_END //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 this.emit(Event.UPDATE_INSTANCE_AFTER, this); @@ -403,20 +382,6 @@ class ComponentCanvas extends ComponentDOM { //GENERATED_UPDATE_FROM_INSTANCE_OPTIONS_END //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 this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this); diff --git a/src/r3/r3-component/r3-component-d-o-m.js b/src/r3/r3-component/r3-component-d-o-m.js index 55c6611..907e864 100644 --- a/src/r3/r3-component/r3-component-d-o-m.js +++ b/src/r3/r3-component/r3-component-d-o-m.js @@ -109,7 +109,6 @@ const Component = require('.././r3-component.js'); TEMPLATE_OPTIONS_START 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. - name='hello' TEMPLATE_OPTIONS_END CUSTOM_OPTIONS_START @@ -187,12 +186,6 @@ class ComponentDOM extends Component { if (typeof options.instance === 'undefined') { options.instance = null; } - /** - * name - No comment - */ - if (typeof options.name === 'undefined') { - options.name = 'hello'; - } //GENERATED_TEMPLATE_OPTIONS_INIT_END //GENERATED_OPTIONS_INIT_START @@ -253,20 +246,6 @@ class ComponentDOM extends Component { //GENERATED_UPDATE_INSTANCE_OPTIONS_END //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 this.emit(Event.UPDATE_INSTANCE_AFTER, this); @@ -305,20 +284,6 @@ class ComponentDOM extends Component { //GENERATED_UPDATE_FROM_INSTANCE_OPTIONS_END //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 this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this); diff --git a/src/r3/r3-component/r3-component-graphics.js b/src/r3/r3-component/r3-component-graphics.js index 3fc2d9a..efd5ee9 100644 --- a/src/r3/r3-component/r3-component-graphics.js +++ b/src/r3/r3-component/r3-component-graphics.js @@ -108,7 +108,6 @@ const Component = require('.././r3-component.js'); TEMPLATE_OPTIONS_START 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. - name='hello' TEMPLATE_OPTIONS_END CUSTOM_OPTIONS_START @@ -185,12 +184,6 @@ class ComponentGraphics extends Component { if (typeof options.instance === 'undefined') { options.instance = null; } - /** - * name - No comment - */ - if (typeof options.name === 'undefined') { - options.name = 'hello'; - } //GENERATED_TEMPLATE_OPTIONS_INIT_END //GENERATED_OPTIONS_INIT_START @@ -231,20 +224,6 @@ class ComponentGraphics extends Component { //GENERATED_UPDATE_INSTANCE_OPTIONS_END //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 this.emit(Event.UPDATE_INSTANCE_AFTER, this); @@ -269,20 +248,6 @@ class ComponentGraphics extends Component { //GENERATED_UPDATE_FROM_INSTANCE_OPTIONS_END //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 this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this); diff --git a/src/r3/r3-component/r3-component-image.js b/src/r3/r3-component/r3-component-image.js index 4515c7b..b5217fe 100644 --- a/src/r3/r3-component/r3-component-image.js +++ b/src/r3/r3-component/r3-component-image.js @@ -126,7 +126,6 @@ const ComponentGraphics = require('.././r3-component-graphics.js'); TEMPLATE_OPTIONS_START 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. - name='hello' TEMPLATE_OPTIONS_END CUSTOM_OPTIONS_START @@ -202,12 +201,6 @@ class ComponentImage extends ComponentGraphics { if (typeof options.instance === 'undefined') { options.instance = null; } - /** - * name - No comment - */ - if (typeof options.name === 'undefined') { - options.name = 'hello'; - } //GENERATED_TEMPLATE_OPTIONS_INIT_END //GENERATED_OPTIONS_INIT_START @@ -248,20 +241,6 @@ class ComponentImage extends ComponentGraphics { //GENERATED_UPDATE_INSTANCE_OPTIONS_END //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 this.emit(Event.UPDATE_INSTANCE_AFTER, this); @@ -286,20 +265,6 @@ class ComponentImage extends ComponentGraphics { //GENERATED_UPDATE_FROM_INSTANCE_OPTIONS_END //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 this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this); diff --git a/src/r3/r3-component/r3-component-input.js b/src/r3/r3-component/r3-component-input.js index f098609..6693981 100644 --- a/src/r3/r3-component/r3-component-input.js +++ b/src/r3/r3-component/r3-component-input.js @@ -108,7 +108,6 @@ const Component = require('.././r3-component.js'); TEMPLATE_OPTIONS_START 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. - name='hello' TEMPLATE_OPTIONS_END CUSTOM_OPTIONS_START @@ -185,12 +184,6 @@ class ComponentInput extends Component { if (typeof options.instance === 'undefined') { options.instance = null; } - /** - * name - No comment - */ - if (typeof options.name === 'undefined') { - options.name = 'hello'; - } //GENERATED_TEMPLATE_OPTIONS_INIT_END //GENERATED_OPTIONS_INIT_START @@ -231,20 +224,6 @@ class ComponentInput extends Component { //GENERATED_UPDATE_INSTANCE_OPTIONS_END //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 this.emit(Event.UPDATE_INSTANCE_AFTER, this); @@ -269,20 +248,6 @@ class ComponentInput extends Component { //GENERATED_UPDATE_FROM_INSTANCE_OPTIONS_END //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 this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this); diff --git a/src/r3/r3-component/r3-component-material.js b/src/r3/r3-component/r3-component-material.js index 709f89f..c1fe6b0 100644 --- a/src/r3/r3-component/r3-component-material.js +++ b/src/r3/r3-component/r3-component-material.js @@ -126,7 +126,6 @@ const ComponentGraphics = require('.././r3-component-graphics.js'); TEMPLATE_OPTIONS_START 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. - name='hello' TEMPLATE_OPTIONS_END CUSTOM_OPTIONS_START @@ -202,12 +201,6 @@ class ComponentMaterial extends ComponentGraphics { if (typeof options.instance === 'undefined') { options.instance = null; } - /** - * name - No comment - */ - if (typeof options.name === 'undefined') { - options.name = 'hello'; - } //GENERATED_TEMPLATE_OPTIONS_INIT_END //GENERATED_OPTIONS_INIT_START @@ -248,20 +241,6 @@ class ComponentMaterial extends ComponentGraphics { //GENERATED_UPDATE_INSTANCE_OPTIONS_END //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 this.emit(Event.UPDATE_INSTANCE_AFTER, this); @@ -286,20 +265,6 @@ class ComponentMaterial extends ComponentGraphics { //GENERATED_UPDATE_FROM_INSTANCE_OPTIONS_END //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 this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this); diff --git a/src/r3/r3-component/r3-component-mesh.js b/src/r3/r3-component/r3-component-mesh.js index 0c189a9..388911e 100644 --- a/src/r3/r3-component/r3-component-mesh.js +++ b/src/r3/r3-component/r3-component-mesh.js @@ -126,7 +126,6 @@ const ComponentGraphics = require('.././r3-component-graphics.js'); TEMPLATE_OPTIONS_START 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. - name='hello' TEMPLATE_OPTIONS_END CUSTOM_OPTIONS_START @@ -202,12 +201,6 @@ class ComponentMesh extends ComponentGraphics { if (typeof options.instance === 'undefined') { options.instance = null; } - /** - * name - No comment - */ - if (typeof options.name === 'undefined') { - options.name = 'hello'; - } //GENERATED_TEMPLATE_OPTIONS_INIT_END //GENERATED_OPTIONS_INIT_START @@ -248,20 +241,6 @@ class ComponentMesh extends ComponentGraphics { //GENERATED_UPDATE_INSTANCE_OPTIONS_END //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 this.emit(Event.UPDATE_INSTANCE_AFTER, this); @@ -286,20 +265,6 @@ class ComponentMesh extends ComponentGraphics { //GENERATED_UPDATE_FROM_INSTANCE_OPTIONS_END //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 this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this); diff --git a/src/r3/r3-component/r3-component-texture.js b/src/r3/r3-component/r3-component-texture.js index 219825e..691dfe3 100644 --- a/src/r3/r3-component/r3-component-texture.js +++ b/src/r3/r3-component/r3-component-texture.js @@ -126,7 +126,6 @@ const ComponentGraphics = require('.././r3-component-graphics.js'); TEMPLATE_OPTIONS_START 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. - name='hello' TEMPLATE_OPTIONS_END CUSTOM_OPTIONS_START @@ -202,12 +201,6 @@ class ComponentTexture extends ComponentGraphics { if (typeof options.instance === 'undefined') { options.instance = null; } - /** - * name - No comment - */ - if (typeof options.name === 'undefined') { - options.name = 'hello'; - } //GENERATED_TEMPLATE_OPTIONS_INIT_END //GENERATED_OPTIONS_INIT_START @@ -248,20 +241,6 @@ class ComponentTexture extends ComponentGraphics { //GENERATED_UPDATE_INSTANCE_OPTIONS_END //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 this.emit(Event.UPDATE_INSTANCE_AFTER, this); @@ -286,20 +265,6 @@ class ComponentTexture extends ComponentGraphics { //GENERATED_UPDATE_FROM_INSTANCE_OPTIONS_END //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 this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this); diff --git a/src/r3/r3-component/r3-component-touch.js b/src/r3/r3-component/r3-component-touch.js index 9371da0..f386f56 100644 --- a/src/r3/r3-component/r3-component-touch.js +++ b/src/r3/r3-component/r3-component-touch.js @@ -126,7 +126,6 @@ const ComponentInput = require('.././r3-component-input.js'); TEMPLATE_OPTIONS_START 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. - name='hello' TEMPLATE_OPTIONS_END CUSTOM_OPTIONS_START @@ -202,12 +201,6 @@ class ComponentTouch extends ComponentInput { if (typeof options.instance === 'undefined') { options.instance = null; } - /** - * name - No comment - */ - if (typeof options.name === 'undefined') { - options.name = 'hello'; - } //GENERATED_TEMPLATE_OPTIONS_INIT_END //GENERATED_OPTIONS_INIT_START @@ -248,20 +241,6 @@ class ComponentTouch extends ComponentInput { //GENERATED_UPDATE_INSTANCE_OPTIONS_END //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 this.emit(Event.UPDATE_INSTANCE_AFTER, this); @@ -286,20 +265,6 @@ class ComponentTouch extends ComponentInput { //GENERATED_UPDATE_FROM_INSTANCE_OPTIONS_END //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 this.emit(Event.UPDATE_FROM_INSTANCE_AFTER, this); diff --git a/src/r3/r3-event.js b/src/r3/r3-event.js index a8e2800..4bd2ff7 100644 --- a/src/r3/r3-event.js +++ b/src/r3/r3-event.js @@ -336,87 +336,85 @@ class Event { //CUSTOM_OUT_OF_CLASS_IMPLEMENTATION_START //GENERATED_EVENTS_START -Event.BEFORE_RENDER = 0x1; -Event.COMPONENT_CREATED = 0x2; -Event.COMPONENT_INITIALIZED = 0x3; -Event.CREATE_INSTANCE_BEFORE = 0x4; -Event.DISPOSE_INSTANCE = 0x5; -Event.DISPOSE_OBJECT = 0x6; -Event.DOM_COMPONENT_INITIALIZED = 0x7; -Event.ENTITY_CREATED = 0x8; -Event.ENTITY_INITIALIZED = 0x9; -Event.GET_RUNTIME = 0xa; -Event.GET_WINDOW_SIZE = 0xb; -Event.GRAPHICS_COMPONENT_INITIALIZED = 0xc; -Event.IMAGE_CREATED = 0xd; -Event.INPUT_COMPONENT_INITIALIZED = 0xe; -Event.INSTANCE_CREATED = 0xf; -Event.INSTANCE_DISPOSED = 0x10; -Event.KEYBOARD_DOWN = 0x11; -Event.KEYBOARD_UP = 0x12; -Event.MOUSE_DOWN = 0x13; -Event.MOUSE_MOVE = 0x14; -Event.MOUSE_UP = 0x15; -Event.MOUSE_WHEEL = 0x16; -Event.OBJECT_CREATED = 0x17; -Event.OBJECT_INITIALIZED = 0x18; -Event.PAUSE = 0x19; -Event.PROJECT_INITIALIZED = 0x1a; -Event.RESTART = 0x1b; -Event.START = 0x1c; -Event.TOUCH_CANCEL = 0x1d; -Event.TOUCH_END = 0x1e; -Event.TOUCH_MOVE = 0x1f; -Event.TOUCH_START = 0x20; -Event.UPDATE_FROM_INSTANCE_AFTER = 0x21; -Event.UPDATE_FROM_INSTANCE_BEFORE = 0x22; -Event.UPDATE_INSTANCE_AFTER = 0x23; -Event.UPDATE_INSTANCE_BEFORE = 0x24; -Event.UPDATE_INSTANCE_PROPERTY = 0x25; -Event.UPDATE_PROPERTY_FROM_INSTANCE = 0x26; -Event.MAX_EVENTS = 0x27; +Event.COMPONENT_CREATED = 0x1; +Event.COMPONENT_INITIALIZED = 0x2; +Event.CREATE_INSTANCE_BEFORE = 0x3; +Event.DISPOSE_INSTANCE = 0x4; +Event.DISPOSE_OBJECT = 0x5; +Event.DOM_COMPONENT_INITIALIZED = 0x6; +Event.ENTITY_CREATED = 0x7; +Event.ENTITY_INITIALIZED = 0x8; +Event.GET_RUNTIME = 0x9; +Event.GET_WINDOW_SIZE = 0xa; +Event.GRAPHICS_COMPONENT_INITIALIZED = 0xb; +Event.IMAGE_CREATED = 0xc; +Event.INPUT_COMPONENT_INITIALIZED = 0xd; +Event.INSTANCE_CREATED = 0xe; +Event.INSTANCE_DISPOSED = 0xf; +Event.KEYBOARD_DOWN = 0x10; +Event.KEYBOARD_UP = 0x11; +Event.MOUSE_DOWN = 0x12; +Event.MOUSE_MOVE = 0x13; +Event.MOUSE_UP = 0x14; +Event.MOUSE_WHEEL = 0x15; +Event.OBJECT_CREATED = 0x16; +Event.OBJECT_INITIALIZED = 0x17; +Event.PAUSE = 0x18; +Event.PROJECT_INITIALIZED = 0x19; +Event.RESTART = 0x1a; +Event.START = 0x1b; +Event.TOUCH_CANCEL = 0x1c; +Event.TOUCH_END = 0x1d; +Event.TOUCH_MOVE = 0x1e; +Event.TOUCH_START = 0x1f; +Event.UPDATE_FROM_INSTANCE_AFTER = 0x20; +Event.UPDATE_FROM_INSTANCE_BEFORE = 0x21; +Event.UPDATE_INSTANCE_AFTER = 0x22; +Event.UPDATE_INSTANCE_BEFORE = 0x23; +Event.UPDATE_INSTANCE_PROPERTY = 0x24; +Event.UPDATE_PROPERTY_FROM_INSTANCE = 0x25; +Event.MAX_EVENTS = 0x26; Event.GetEventName = function(eventId) { switch(eventId) { - case 0x1 : return 'before_render'; - case 0x2 : return 'component_created'; - case 0x3 : return 'component_initialized'; - case 0x4 : return 'create_instance_before'; - case 0x5 : return 'dispose_instance'; - case 0x6 : return 'dispose_object'; - case 0x7 : return 'dom_component_initialized'; - case 0x8 : return 'entity_created'; - case 0x9 : return 'entity_initialized'; - case 0xa : return 'get_runtime'; - case 0xb : return 'get_window_size'; - case 0xc : return 'graphics_component_initialized'; - case 0xd : return 'image_created'; - case 0xe : return 'input_component_initialized'; - case 0xf : return 'instance_created'; - case 0x10 : return 'instance_disposed'; - case 0x11 : return 'keyboard_down'; - case 0x12 : return 'keyboard_up'; - case 0x13 : return 'mouse_down'; - case 0x14 : return 'mouse_move'; - case 0x15 : return 'mouse_up'; - case 0x16 : return 'mouse_wheel'; - case 0x17 : return 'object_created'; - case 0x18 : return 'object_initialized'; - case 0x19 : return 'pause'; - case 0x1a : return 'project_initialized'; - case 0x1b : return 'restart'; - case 0x1c : return 'start'; - case 0x1d : return 'touch_cancel'; - case 0x1e : return 'touch_end'; - case 0x1f : return 'touch_move'; - case 0x20 : return 'touch_start'; - case 0x21 : return 'update_from_instance_after'; - case 0x22 : return 'update_from_instance_before'; - case 0x23 : return 'update_instance_after'; - case 0x24 : return 'update_instance_before'; - case 0x25 : return 'update_instance_property'; - case 0x26 : return 'update_property_from_instance'; + case 0x1 : return 'component_created'; + case 0x2 : return 'component_initialized'; + case 0x3 : return 'create_instance_before'; + case 0x4 : return 'dispose_instance'; + case 0x5 : return 'dispose_object'; + case 0x6 : return 'dom_component_initialized'; + case 0x7 : return 'entity_created'; + case 0x8 : return 'entity_initialized'; + case 0x9 : return 'get_runtime'; + case 0xa : return 'get_window_size'; + case 0xb : return 'graphics_component_initialized'; + case 0xc : return 'image_created'; + case 0xd : return 'input_component_initialized'; + case 0xe : return 'instance_created'; + case 0xf : return 'instance_disposed'; + case 0x10 : return 'keyboard_down'; + case 0x11 : return 'keyboard_up'; + case 0x12 : return 'mouse_down'; + case 0x13 : return 'mouse_move'; + case 0x14 : return 'mouse_up'; + case 0x15 : return 'mouse_wheel'; + case 0x16 : return 'object_created'; + case 0x17 : return 'object_initialized'; + case 0x18 : return 'pause'; + case 0x19 : return 'project_initialized'; + case 0x1a : return 'restart'; + case 0x1b : return 'start'; + case 0x1c : return 'touch_cancel'; + case 0x1d : return 'touch_end'; + case 0x1e : return 'touch_move'; + case 0x1f : return 'touch_start'; + case 0x20 : return 'update_from_instance_after'; + case 0x21 : return 'update_from_instance_before'; + case 0x22 : return 'update_instance_after'; + case 0x23 : return 'update_instance_before'; + case 0x24 : return 'update_instance_property'; + case 0x25 : return 'update_property_from_instance'; default : throw new Error('Event type not defined : ' + eventId); } diff --git a/src/r3/r3-r3.js b/src/r3/r3-r3.js index d624681..dca9235 100644 --- a/src/r3/r3-r3.js +++ b/src/r3/r3-r3.js @@ -1,6 +1,6 @@ class R3 { - static version = '2.0.694'; - static compileDate = '2021 Sep 17 - 11:26:55 am'; + static version = '2.0.695'; + static compileDate = '2021 Sep 17 - 11:29:51 am'; } //GENERATED_IMPORTS_START diff --git a/src/templates/component_extends.template b/src/templates/component_extends.template index 884dda0..80ecb8e 100644 --- a/src/templates/component_extends.template +++ b/src/templates/component_extends.template @@ -11,7 +11,6 @@ const EXTEND_CLASS = require('INCLUDE_PATH/EXTEND_CLASS_FILE_NAME'); TEMPLATE_OPTIONS_START 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. - name='hello' TEMPLATE_OPTIONS_END CUSTOM_OPTIONS_START diff --git a/src/templates/token.db b/src/templates/token.db index 393dd2b..8475f5e 100644 --- a/src/templates/token.db +++ b/src/templates/token.db @@ -29,6 +29,7 @@ GENERATED_STATIC_METHOD_NAME_UPPERCASE_METHOD GENERATED_STATIC_METHODS GENERATED_STATIC_ON_DOM_COMPONENT_INITIALIZED_METHOD GENERATED_STATIC_ON_GET_RUNTIME_METHOD +GENERATED_STATIC_ON_IMAGE_CREATED_METHOD GENERATED_STATIC_ON_INSTANCE_CREATED_METHOD GENERATED_STATIC_ON_KEYBOARD_DOWN_METHOD GENERATED_STATIC_ON_KEYBOARD_UP_METHOD @@ -89,6 +90,7 @@ CUSTOM_STATIC_METHOD_NAME_UPPERCASE_METHOD CUSTOM_STATIC_METHODS CUSTOM_STATIC_ON_DOM_COMPONENT_INITIALIZED_METHOD CUSTOM_STATIC_ON_GET_RUNTIME_METHOD +CUSTOM_STATIC_ON_IMAGE_CREATED_METHOD CUSTOM_STATIC_ON_INSTANCE_CREATED_METHOD CUSTOM_STATIC_ON_KEYBOARD_DOWN_METHOD CUSTOM_STATIC_ON_KEYBOARD_UP_METHOD diff --git a/version b/version index 2abab30..c4197ae 100644 --- a/version +++ b/version @@ -1 +1 @@ -2.0.694 \ No newline at end of file +2.0.695 \ No newline at end of file