|
@@ -66,17 +66,15 @@ export class SImageLegendItem extends SIconTextItem {
|
|
|
this.data = data;
|
|
|
this.id = data.ID;
|
|
|
this.name = data.Name;
|
|
|
+ this.text = data.Name;
|
|
|
this.moveTo(data.Pos.X, data.Pos.Y);
|
|
|
if (data.Num) {
|
|
|
- this._num = data.Num;
|
|
|
+ this.num = data.Num;
|
|
|
}
|
|
|
if (data.Size) {
|
|
|
this.width = data.Size.Width;
|
|
|
this.height = data.Size.Height;
|
|
|
}
|
|
|
- if (data.Num) {
|
|
|
- this.text = `${data.Name}${data.Num > 1 ? ` × ${data.Num}` : ''}`;
|
|
|
- }
|
|
|
if (data.Properties && data.Properties.Url) {
|
|
|
this.img.url = data.Properties.Url;
|
|
|
}
|