|
@@ -56,6 +56,12 @@ export class SImageLegendItem extends SIconTextItem {
|
|
|
if (data.Properties && data.Properties.Url) {
|
|
|
this.img.url = data.Properties.Url;
|
|
|
}
|
|
|
+ if (data.Properties.ImgPos) {
|
|
|
+ this.img.moveTo(data.Properties.ImgPos.X, data.Properties.ImgPos.Y);
|
|
|
+ }
|
|
|
+ if (data.Properties.TextPos) {
|
|
|
+ this.textItem.moveTo(data.Properties.TextPos.X, data.Properties.TextPos.Y);
|
|
|
+ }
|
|
|
if (data.Properties && data.Properties.sWidth) {
|
|
|
this.sWidth = data.Properties.sWidth;
|
|
|
}
|
|
@@ -75,6 +81,8 @@ export class SImageLegendItem extends SIconTextItem {
|
|
|
this.data.Size = {Width: this.width, Height: this.height};
|
|
|
this.data.Name = this.name;
|
|
|
this.data.Properties.Url = this.img.url;
|
|
|
+ this.data.Properties.TextPos = {X: this.textItem.x, Y: this.textItem.y};
|
|
|
+ this.data.Properties.ImgPos = {X: this.img.x, Y: this.img.y};
|
|
|
this.data.Properties.sWidth = this.sWidth;
|
|
|
this.data.Properties.sHeight = this.sHeight;
|
|
|
this.data.Properties.font = this.font.size;
|