change order of init
parent
aa683c05eb
commit
7b0c234e21
|
@ -43,6 +43,7 @@
|
||||||
slider.canvas = canvas;
|
slider.canvas = canvas;
|
||||||
slider.images = [];
|
slider.images = [];
|
||||||
slider.images = [image];
|
slider.images = [image];
|
||||||
|
slider.touch = touch;
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
class R3 {
|
class R3 {
|
||||||
static version = '3.0.74';
|
static version = '3.0.76';
|
||||||
static compileDate = '2021 Sep 24 - 07:23:19 am';
|
static compileDate = '2021 Sep 24 - 07:41:32 am';
|
||||||
}
|
}
|
||||||
|
|
||||||
class Runtime {
|
class Runtime {
|
||||||
|
@ -3689,8 +3689,16 @@ class ComponentCode extends Component {
|
||||||
|
|
||||||
super(options);
|
super(options);
|
||||||
|
|
||||||
|
if (typeof options.required === 'undefined') {
|
||||||
|
options.required = {}
|
||||||
|
}
|
||||||
|
|
||||||
|
this.underConstruction = true;
|
||||||
|
|
||||||
Object.assign(this, options);
|
Object.assign(this, options);
|
||||||
|
|
||||||
|
this.underConstruction = false;
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialize();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
|
@ -3899,8 +3907,16 @@ class ComponentDOM extends Component {
|
||||||
options.instance = null;
|
options.instance = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof options.required === 'undefined') {
|
||||||
|
options.required = {}
|
||||||
|
}
|
||||||
|
|
||||||
|
this.underConstruction = true;
|
||||||
|
|
||||||
Object.assign(this, options);
|
Object.assign(this, options);
|
||||||
|
|
||||||
|
this.underConstruction = false;
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialize();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
|
@ -4180,8 +4196,16 @@ class ComponentCanvas extends ComponentDOM {
|
||||||
options.style = 'border:1px solid #00bb00;';
|
options.style = 'border:1px solid #00bb00;';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof options.required === 'undefined') {
|
||||||
|
options.required = {}
|
||||||
|
}
|
||||||
|
|
||||||
|
this.underConstruction = true;
|
||||||
|
|
||||||
Object.assign(this, options);
|
Object.assign(this, options);
|
||||||
|
|
||||||
|
this.underConstruction = false;
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialize();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
|
@ -4468,8 +4492,16 @@ class ComponentGraphics extends Component {
|
||||||
|
|
||||||
super(options);
|
super(options);
|
||||||
|
|
||||||
|
if (typeof options.required === 'undefined') {
|
||||||
|
options.required = {}
|
||||||
|
}
|
||||||
|
|
||||||
|
this.underConstruction = true;
|
||||||
|
|
||||||
Object.assign(this, options);
|
Object.assign(this, options);
|
||||||
|
|
||||||
|
this.underConstruction = false;
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialize();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
|
@ -4773,6 +4805,10 @@ class ComponentImage extends ComponentGraphics {
|
||||||
options.orientation = 'square';
|
options.orientation = 'square';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof options.required === 'undefined') {
|
||||||
|
options.required = {}
|
||||||
|
}
|
||||||
|
|
||||||
if (options.extension.match(/(png)$/i)) {
|
if (options.extension.match(/(png)$/i)) {
|
||||||
options.contentType = 'image/png';
|
options.contentType = 'image/png';
|
||||||
}
|
}
|
||||||
|
@ -4785,8 +4821,6 @@ class ComponentImage extends ComponentGraphics {
|
||||||
options.contentType = 'image/gif';
|
options.contentType = 'image/gif';
|
||||||
}
|
}
|
||||||
|
|
||||||
Object.assign(this, options);
|
|
||||||
|
|
||||||
if (this.width > this.height) {
|
if (this.width > this.height) {
|
||||||
this.orientation = 'landscape';
|
this.orientation = 'landscape';
|
||||||
}
|
}
|
||||||
|
@ -4799,6 +4833,12 @@ class ComponentImage extends ComponentGraphics {
|
||||||
this.orientation = 'square';
|
this.orientation = 'square';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.underConstruction = true;
|
||||||
|
|
||||||
|
Object.assign(this, options);
|
||||||
|
|
||||||
|
this.underConstruction = false;
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialize();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
|
@ -5245,8 +5285,16 @@ class ComponentMaterial extends ComponentGraphics {
|
||||||
|
|
||||||
super(options);
|
super(options);
|
||||||
|
|
||||||
|
if (typeof options.required === 'undefined') {
|
||||||
|
options.required = {}
|
||||||
|
}
|
||||||
|
|
||||||
|
this.underConstruction = true;
|
||||||
|
|
||||||
Object.assign(this, options);
|
Object.assign(this, options);
|
||||||
|
|
||||||
|
this.underConstruction = false;
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialize();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
|
@ -5465,8 +5513,16 @@ class ComponentMesh extends ComponentGraphics {
|
||||||
|
|
||||||
super(options);
|
super(options);
|
||||||
|
|
||||||
|
if (typeof options.required === 'undefined') {
|
||||||
|
options.required = {}
|
||||||
|
}
|
||||||
|
|
||||||
|
this.underConstruction = true;
|
||||||
|
|
||||||
Object.assign(this, options);
|
Object.assign(this, options);
|
||||||
|
|
||||||
|
this.underConstruction = false;
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialize();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
|
@ -5685,8 +5741,16 @@ class ComponentTexture extends ComponentGraphics {
|
||||||
|
|
||||||
super(options);
|
super(options);
|
||||||
|
|
||||||
|
if (typeof options.required === 'undefined') {
|
||||||
|
options.required = {}
|
||||||
|
}
|
||||||
|
|
||||||
|
this.underConstruction = true;
|
||||||
|
|
||||||
Object.assign(this, options);
|
Object.assign(this, options);
|
||||||
|
|
||||||
|
this.underConstruction = false;
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialize();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
|
@ -5887,8 +5951,16 @@ class ComponentInput extends Component {
|
||||||
|
|
||||||
super(options);
|
super(options);
|
||||||
|
|
||||||
|
if (typeof options.required === 'undefined') {
|
||||||
|
options.required = {}
|
||||||
|
}
|
||||||
|
|
||||||
|
this.underConstruction = true;
|
||||||
|
|
||||||
Object.assign(this, options);
|
Object.assign(this, options);
|
||||||
|
|
||||||
|
this.underConstruction = false;
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialize();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
|
@ -6066,6 +6138,8 @@ class ComponentInput extends Component {
|
||||||
|
|
||||||
<no static methods>
|
<no static methods>
|
||||||
|
|
||||||
|
canvas=R3.Canvas
|
||||||
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
class ComponentTouch extends ComponentInput {
|
class ComponentTouch extends ComponentInput {
|
||||||
|
@ -6116,8 +6190,53 @@ class ComponentTouch extends ComponentInput {
|
||||||
options.canvas = null;
|
options.canvas = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof options.required === 'undefined') {
|
||||||
|
options.required = {}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* canvas - No comment
|
||||||
|
*/
|
||||||
|
options.required.canvas = R3.Canvas;
|
||||||
|
this.canvasBackup = options.canvas;
|
||||||
|
Object.defineProperty(
|
||||||
|
this,
|
||||||
|
'canvas',
|
||||||
|
{
|
||||||
|
configurable : true,
|
||||||
|
enumerable : true,
|
||||||
|
set: function(x) {
|
||||||
|
Event.Emit(
|
||||||
|
Event.ENTITY_PROPERTY_UPDATE,
|
||||||
|
{
|
||||||
|
entity : this,
|
||||||
|
property : 'canvas',
|
||||||
|
value : x
|
||||||
|
}
|
||||||
|
);
|
||||||
|
this.canvasBackup = x;
|
||||||
|
Event.Emit(
|
||||||
|
Event.ENTITY_PROPERTY_UPDATED,
|
||||||
|
{
|
||||||
|
entity : this,
|
||||||
|
property : 'canvas',
|
||||||
|
value : x
|
||||||
|
}
|
||||||
|
);
|
||||||
|
return x;
|
||||||
|
},
|
||||||
|
get : function() {
|
||||||
|
return this.canvasBackup;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
this.underConstruction = true;
|
||||||
|
|
||||||
Object.assign(this, options);
|
Object.assign(this, options);
|
||||||
|
|
||||||
|
this.underConstruction = false;
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialize();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "r3",
|
"name": "r3",
|
||||||
"version" : "3.0.74",
|
"version" : "3.0.76",
|
||||||
"description": "",
|
"description": "",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -251,14 +251,25 @@ class ComponentCanvas extends ComponentDOM {
|
||||||
}
|
}
|
||||||
//GENERATED_OPTIONS_INIT_END
|
//GENERATED_OPTIONS_INIT_END
|
||||||
|
|
||||||
|
if (typeof options.required === 'undefined') {
|
||||||
|
options.required = {}
|
||||||
|
}
|
||||||
|
|
||||||
|
//GENERATED_REQUIRED_COMPONENTS_START
|
||||||
|
//GENERATED_REQUIRED_COMPONENTS_END
|
||||||
|
|
||||||
//CUSTOM_OPTIONS_INIT_START
|
//CUSTOM_OPTIONS_INIT_START
|
||||||
//CUSTOM_OPTIONS_INIT_END
|
//CUSTOM_OPTIONS_INIT_END
|
||||||
|
|
||||||
Object.assign(this, options);
|
|
||||||
|
|
||||||
//CUSTOM_BEFORE_INIT_START
|
//CUSTOM_BEFORE_INIT_START
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
|
this.underConstruction = true;
|
||||||
|
|
||||||
|
Object.assign(this, options);
|
||||||
|
|
||||||
|
this.underConstruction = false;
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialize();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -200,14 +200,25 @@ class ComponentCode extends Component {
|
||||||
//GENERATED_OPTIONS_INIT_START
|
//GENERATED_OPTIONS_INIT_START
|
||||||
//GENERATED_OPTIONS_INIT_END
|
//GENERATED_OPTIONS_INIT_END
|
||||||
|
|
||||||
|
if (typeof options.required === 'undefined') {
|
||||||
|
options.required = {}
|
||||||
|
}
|
||||||
|
|
||||||
|
//GENERATED_REQUIRED_COMPONENTS_START
|
||||||
|
//GENERATED_REQUIRED_COMPONENTS_END
|
||||||
|
|
||||||
//CUSTOM_OPTIONS_INIT_START
|
//CUSTOM_OPTIONS_INIT_START
|
||||||
//CUSTOM_OPTIONS_INIT_END
|
//CUSTOM_OPTIONS_INIT_END
|
||||||
|
|
||||||
Object.assign(this, options);
|
|
||||||
|
|
||||||
//CUSTOM_BEFORE_INIT_START
|
//CUSTOM_BEFORE_INIT_START
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
|
this.underConstruction = true;
|
||||||
|
|
||||||
|
Object.assign(this, options);
|
||||||
|
|
||||||
|
this.underConstruction = false;
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialize();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -208,14 +208,25 @@ class ComponentDOM extends Component {
|
||||||
}
|
}
|
||||||
//GENERATED_OPTIONS_INIT_END
|
//GENERATED_OPTIONS_INIT_END
|
||||||
|
|
||||||
|
if (typeof options.required === 'undefined') {
|
||||||
|
options.required = {}
|
||||||
|
}
|
||||||
|
|
||||||
|
//GENERATED_REQUIRED_COMPONENTS_START
|
||||||
|
//GENERATED_REQUIRED_COMPONENTS_END
|
||||||
|
|
||||||
//CUSTOM_OPTIONS_INIT_START
|
//CUSTOM_OPTIONS_INIT_START
|
||||||
//CUSTOM_OPTIONS_INIT_END
|
//CUSTOM_OPTIONS_INIT_END
|
||||||
|
|
||||||
Object.assign(this, options);
|
|
||||||
|
|
||||||
//CUSTOM_BEFORE_INIT_START
|
//CUSTOM_BEFORE_INIT_START
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
|
this.underConstruction = true;
|
||||||
|
|
||||||
|
Object.assign(this, options);
|
||||||
|
|
||||||
|
this.underConstruction = false;
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialize();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -200,14 +200,25 @@ class ComponentGraphics extends Component {
|
||||||
//GENERATED_OPTIONS_INIT_START
|
//GENERATED_OPTIONS_INIT_START
|
||||||
//GENERATED_OPTIONS_INIT_END
|
//GENERATED_OPTIONS_INIT_END
|
||||||
|
|
||||||
|
if (typeof options.required === 'undefined') {
|
||||||
|
options.required = {}
|
||||||
|
}
|
||||||
|
|
||||||
|
//GENERATED_REQUIRED_COMPONENTS_START
|
||||||
|
//GENERATED_REQUIRED_COMPONENTS_END
|
||||||
|
|
||||||
//CUSTOM_OPTIONS_INIT_START
|
//CUSTOM_OPTIONS_INIT_START
|
||||||
//CUSTOM_OPTIONS_INIT_END
|
//CUSTOM_OPTIONS_INIT_END
|
||||||
|
|
||||||
Object.assign(this, options);
|
|
||||||
|
|
||||||
//CUSTOM_BEFORE_INIT_START
|
//CUSTOM_BEFORE_INIT_START
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
|
this.underConstruction = true;
|
||||||
|
|
||||||
|
Object.assign(this, options);
|
||||||
|
|
||||||
|
this.underConstruction = false;
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialize();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -315,6 +315,13 @@ class ComponentImage extends ComponentGraphics {
|
||||||
}
|
}
|
||||||
//GENERATED_OPTIONS_INIT_END
|
//GENERATED_OPTIONS_INIT_END
|
||||||
|
|
||||||
|
if (typeof options.required === 'undefined') {
|
||||||
|
options.required = {}
|
||||||
|
}
|
||||||
|
|
||||||
|
//GENERATED_REQUIRED_COMPONENTS_START
|
||||||
|
//GENERATED_REQUIRED_COMPONENTS_END
|
||||||
|
|
||||||
//CUSTOM_OPTIONS_INIT_START
|
//CUSTOM_OPTIONS_INIT_START
|
||||||
|
|
||||||
if (options.extension.match(/(png)$/i)) {
|
if (options.extension.match(/(png)$/i)) {
|
||||||
|
@ -331,8 +338,6 @@ class ComponentImage extends ComponentGraphics {
|
||||||
|
|
||||||
//CUSTOM_OPTIONS_INIT_END
|
//CUSTOM_OPTIONS_INIT_END
|
||||||
|
|
||||||
Object.assign(this, options);
|
|
||||||
|
|
||||||
//CUSTOM_BEFORE_INIT_START
|
//CUSTOM_BEFORE_INIT_START
|
||||||
|
|
||||||
if (this.width > this.height) {
|
if (this.width > this.height) {
|
||||||
|
@ -349,6 +354,12 @@ class ComponentImage extends ComponentGraphics {
|
||||||
|
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
|
this.underConstruction = true;
|
||||||
|
|
||||||
|
Object.assign(this, options);
|
||||||
|
|
||||||
|
this.underConstruction = false;
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialize();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -200,14 +200,25 @@ class ComponentInput extends Component {
|
||||||
//GENERATED_OPTIONS_INIT_START
|
//GENERATED_OPTIONS_INIT_START
|
||||||
//GENERATED_OPTIONS_INIT_END
|
//GENERATED_OPTIONS_INIT_END
|
||||||
|
|
||||||
|
if (typeof options.required === 'undefined') {
|
||||||
|
options.required = {}
|
||||||
|
}
|
||||||
|
|
||||||
|
//GENERATED_REQUIRED_COMPONENTS_START
|
||||||
|
//GENERATED_REQUIRED_COMPONENTS_END
|
||||||
|
|
||||||
//CUSTOM_OPTIONS_INIT_START
|
//CUSTOM_OPTIONS_INIT_START
|
||||||
//CUSTOM_OPTIONS_INIT_END
|
//CUSTOM_OPTIONS_INIT_END
|
||||||
|
|
||||||
Object.assign(this, options);
|
|
||||||
|
|
||||||
//CUSTOM_BEFORE_INIT_START
|
//CUSTOM_BEFORE_INIT_START
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
|
this.underConstruction = true;
|
||||||
|
|
||||||
|
Object.assign(this, options);
|
||||||
|
|
||||||
|
this.underConstruction = false;
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialize();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -218,14 +218,25 @@ class ComponentMaterial extends ComponentGraphics {
|
||||||
//GENERATED_OPTIONS_INIT_START
|
//GENERATED_OPTIONS_INIT_START
|
||||||
//GENERATED_OPTIONS_INIT_END
|
//GENERATED_OPTIONS_INIT_END
|
||||||
|
|
||||||
|
if (typeof options.required === 'undefined') {
|
||||||
|
options.required = {}
|
||||||
|
}
|
||||||
|
|
||||||
|
//GENERATED_REQUIRED_COMPONENTS_START
|
||||||
|
//GENERATED_REQUIRED_COMPONENTS_END
|
||||||
|
|
||||||
//CUSTOM_OPTIONS_INIT_START
|
//CUSTOM_OPTIONS_INIT_START
|
||||||
//CUSTOM_OPTIONS_INIT_END
|
//CUSTOM_OPTIONS_INIT_END
|
||||||
|
|
||||||
Object.assign(this, options);
|
|
||||||
|
|
||||||
//CUSTOM_BEFORE_INIT_START
|
//CUSTOM_BEFORE_INIT_START
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
|
this.underConstruction = true;
|
||||||
|
|
||||||
|
Object.assign(this, options);
|
||||||
|
|
||||||
|
this.underConstruction = false;
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialize();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -218,14 +218,25 @@ class ComponentMesh extends ComponentGraphics {
|
||||||
//GENERATED_OPTIONS_INIT_START
|
//GENERATED_OPTIONS_INIT_START
|
||||||
//GENERATED_OPTIONS_INIT_END
|
//GENERATED_OPTIONS_INIT_END
|
||||||
|
|
||||||
|
if (typeof options.required === 'undefined') {
|
||||||
|
options.required = {}
|
||||||
|
}
|
||||||
|
|
||||||
|
//GENERATED_REQUIRED_COMPONENTS_START
|
||||||
|
//GENERATED_REQUIRED_COMPONENTS_END
|
||||||
|
|
||||||
//CUSTOM_OPTIONS_INIT_START
|
//CUSTOM_OPTIONS_INIT_START
|
||||||
//CUSTOM_OPTIONS_INIT_END
|
//CUSTOM_OPTIONS_INIT_END
|
||||||
|
|
||||||
Object.assign(this, options);
|
|
||||||
|
|
||||||
//CUSTOM_BEFORE_INIT_START
|
//CUSTOM_BEFORE_INIT_START
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
|
this.underConstruction = true;
|
||||||
|
|
||||||
|
Object.assign(this, options);
|
||||||
|
|
||||||
|
this.underConstruction = false;
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialize();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -218,14 +218,25 @@ class ComponentTexture extends ComponentGraphics {
|
||||||
//GENERATED_OPTIONS_INIT_START
|
//GENERATED_OPTIONS_INIT_START
|
||||||
//GENERATED_OPTIONS_INIT_END
|
//GENERATED_OPTIONS_INIT_END
|
||||||
|
|
||||||
|
if (typeof options.required === 'undefined') {
|
||||||
|
options.required = {}
|
||||||
|
}
|
||||||
|
|
||||||
|
//GENERATED_REQUIRED_COMPONENTS_START
|
||||||
|
//GENERATED_REQUIRED_COMPONENTS_END
|
||||||
|
|
||||||
//CUSTOM_OPTIONS_INIT_START
|
//CUSTOM_OPTIONS_INIT_START
|
||||||
//CUSTOM_OPTIONS_INIT_END
|
//CUSTOM_OPTIONS_INIT_END
|
||||||
|
|
||||||
Object.assign(this, options);
|
|
||||||
|
|
||||||
//CUSTOM_BEFORE_INIT_START
|
//CUSTOM_BEFORE_INIT_START
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
|
this.underConstruction = true;
|
||||||
|
|
||||||
|
Object.assign(this, options);
|
||||||
|
|
||||||
|
this.underConstruction = false;
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialize();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -132,6 +132,7 @@ const ComponentInput = require('.././r3-component-input.js');
|
||||||
CUSTOM_OPTIONS_END
|
CUSTOM_OPTIONS_END
|
||||||
|
|
||||||
CUSTOM_REQUIRED_COMPONENTS_START
|
CUSTOM_REQUIRED_COMPONENTS_START
|
||||||
|
canvas=R3.Canvas
|
||||||
CUSTOM_REQUIRED_COMPONENTS_END
|
CUSTOM_REQUIRED_COMPONENTS_END
|
||||||
|
|
||||||
TEMPLATE_STATIC_OPTIONS_START
|
TEMPLATE_STATIC_OPTIONS_START
|
||||||
|
@ -225,14 +226,61 @@ class ComponentTouch extends ComponentInput {
|
||||||
}
|
}
|
||||||
//GENERATED_OPTIONS_INIT_END
|
//GENERATED_OPTIONS_INIT_END
|
||||||
|
|
||||||
|
if (typeof options.required === 'undefined') {
|
||||||
|
options.required = {}
|
||||||
|
}
|
||||||
|
|
||||||
|
//GENERATED_REQUIRED_COMPONENTS_START
|
||||||
|
/**
|
||||||
|
* canvas - No comment
|
||||||
|
*/
|
||||||
|
options.required.canvas = R3.Canvas;
|
||||||
|
this.canvasBackup = options.canvas;
|
||||||
|
Object.defineProperty(
|
||||||
|
this,
|
||||||
|
'canvas',
|
||||||
|
{
|
||||||
|
configurable : true,
|
||||||
|
enumerable : true,
|
||||||
|
set: function(x) {
|
||||||
|
Event.Emit(
|
||||||
|
Event.ENTITY_PROPERTY_UPDATE,
|
||||||
|
{
|
||||||
|
entity : this,
|
||||||
|
property : 'canvas',
|
||||||
|
value : x
|
||||||
|
}
|
||||||
|
);
|
||||||
|
this.canvasBackup = x;
|
||||||
|
Event.Emit(
|
||||||
|
Event.ENTITY_PROPERTY_UPDATED,
|
||||||
|
{
|
||||||
|
entity : this,
|
||||||
|
property : 'canvas',
|
||||||
|
value : x
|
||||||
|
}
|
||||||
|
);
|
||||||
|
return x;
|
||||||
|
},
|
||||||
|
get : function() {
|
||||||
|
return this.canvasBackup;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
)
|
||||||
|
//GENERATED_REQUIRED_COMPONENTS_END
|
||||||
|
|
||||||
//CUSTOM_OPTIONS_INIT_START
|
//CUSTOM_OPTIONS_INIT_START
|
||||||
//CUSTOM_OPTIONS_INIT_END
|
//CUSTOM_OPTIONS_INIT_END
|
||||||
|
|
||||||
Object.assign(this, options);
|
|
||||||
|
|
||||||
//CUSTOM_BEFORE_INIT_START
|
//CUSTOM_BEFORE_INIT_START
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
|
this.underConstruction = true;
|
||||||
|
|
||||||
|
Object.assign(this, options);
|
||||||
|
|
||||||
|
this.underConstruction = false;
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialize();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -370,18 +370,18 @@ class EntitySlider extends Entity {
|
||||||
)
|
)
|
||||||
//GENERATED_REQUIRED_COMPONENTS_END
|
//GENERATED_REQUIRED_COMPONENTS_END
|
||||||
|
|
||||||
this.underConstruction = true;
|
|
||||||
|
|
||||||
Object.assign(this, options);
|
|
||||||
|
|
||||||
this.underConstruction = false;
|
|
||||||
|
|
||||||
//CUSTOM_OPTIONS_INIT_START
|
//CUSTOM_OPTIONS_INIT_START
|
||||||
//CUSTOM_OPTIONS_INIT_END
|
//CUSTOM_OPTIONS_INIT_END
|
||||||
|
|
||||||
//CUSTOM_BEFORE_INIT_START
|
//CUSTOM_BEFORE_INIT_START
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
|
this.underConstruction = true;
|
||||||
|
|
||||||
|
Object.assign(this, options);
|
||||||
|
|
||||||
|
this.underConstruction = false;
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialize();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
class R3 {
|
class R3 {
|
||||||
static version = '3.0.74';
|
static version = '3.0.76';
|
||||||
static compileDate = '2021 Sep 24 - 07:23:19 am';
|
static compileDate = '2021 Sep 24 - 07:41:32 am';
|
||||||
}
|
}
|
||||||
|
|
||||||
//GENERATED_IMPORTS_START
|
//GENERATED_IMPORTS_START
|
||||||
|
|
|
@ -24,14 +24,25 @@
|
||||||
//GENERATED_OPTIONS_INIT_START
|
//GENERATED_OPTIONS_INIT_START
|
||||||
//GENERATED_OPTIONS_INIT_END
|
//GENERATED_OPTIONS_INIT_END
|
||||||
|
|
||||||
|
if (typeof options.required === 'undefined') {
|
||||||
|
options.required = {}
|
||||||
|
}
|
||||||
|
|
||||||
|
//GENERATED_REQUIRED_COMPONENTS_START
|
||||||
|
//GENERATED_REQUIRED_COMPONENTS_END
|
||||||
|
|
||||||
//CUSTOM_OPTIONS_INIT_START
|
//CUSTOM_OPTIONS_INIT_START
|
||||||
//CUSTOM_OPTIONS_INIT_END
|
//CUSTOM_OPTIONS_INIT_END
|
||||||
|
|
||||||
Object.assign(this, options);
|
|
||||||
|
|
||||||
//CUSTOM_BEFORE_INIT_START
|
//CUSTOM_BEFORE_INIT_START
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
|
this.underConstruction = true;
|
||||||
|
|
||||||
|
Object.assign(this, options);
|
||||||
|
|
||||||
|
this.underConstruction = false;
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialize();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -35,18 +35,18 @@
|
||||||
//GENERATED_REQUIRED_COMPONENTS_START
|
//GENERATED_REQUIRED_COMPONENTS_START
|
||||||
//GENERATED_REQUIRED_COMPONENTS_END
|
//GENERATED_REQUIRED_COMPONENTS_END
|
||||||
|
|
||||||
this.underConstruction = true;
|
|
||||||
|
|
||||||
Object.assign(this, options);
|
|
||||||
|
|
||||||
this.underConstruction = false;
|
|
||||||
|
|
||||||
//CUSTOM_OPTIONS_INIT_START
|
//CUSTOM_OPTIONS_INIT_START
|
||||||
//CUSTOM_OPTIONS_INIT_END
|
//CUSTOM_OPTIONS_INIT_END
|
||||||
|
|
||||||
//CUSTOM_BEFORE_INIT_START
|
//CUSTOM_BEFORE_INIT_START
|
||||||
//CUSTOM_BEFORE_INIT_END
|
//CUSTOM_BEFORE_INIT_END
|
||||||
|
|
||||||
|
this.underConstruction = true;
|
||||||
|
|
||||||
|
Object.assign(this, options);
|
||||||
|
|
||||||
|
this.underConstruction = false;
|
||||||
|
|
||||||
if (options.callDepth === 0) {
|
if (options.callDepth === 0) {
|
||||||
this.initialize();
|
this.initialize();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue