Fix lavatar not generating any image

This commit is contained in:
Hadi Nategh 2020-04-21 15:18:44 +02:00
parent 04bf5580c8
commit 4803e7fcd5
2 changed files with 7 additions and 2 deletions

View File

@ -542,6 +542,11 @@ var et2_avatar = /** @class */ (function (_super) {
'#b2b7bb', '#72acae', '#9c8ab4', '#5a8770',
'#eeb424', '#407887'
];
/**
* Text color
*/
et2_avatar.LAVATAR_TEXT_COLOR = '#ffffff';
et2_avatar.LAVATAR_SIZE = 128;
return et2_avatar;
}(et2_image));
et2_core_widget_1.et2_register_widget(et2_avatar, ["avatar"]);

View File

@ -375,9 +375,9 @@ class et2_avatar extends et2_image
/**
* Text color
*/
static LAVATAR_TEXT_COLOR: '#ffffff';
static LAVATAR_TEXT_COLOR: string = '#ffffff';
static LAVATAR_SIZE: 128;
static LAVATAR_SIZE: number = 128;
/**
* Generate letter avatar with given data