|
@@ -56,6 +56,12 @@ export class SImageLegendItem extends SIconTextItem {
|
|
if (data.Properties && data.Properties.Url) {
|
|
if (data.Properties && data.Properties.Url) {
|
|
this.img.url = 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) {
|
|
if (data.Properties && data.Properties.sWidth) {
|
|
this.sWidth = data.Properties.sWidth;
|
|
this.sWidth = data.Properties.sWidth;
|
|
}
|
|
}
|
|
@@ -68,12 +74,6 @@ export class SImageLegendItem extends SIconTextItem {
|
|
if (data.Properties && data.Properties.color) {
|
|
if (data.Properties && data.Properties.color) {
|
|
this.color = new SColor(data.Properties.color);
|
|
this.color = new SColor(data.Properties.color);
|
|
}
|
|
}
|
|
- 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);
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
|
|
|
|
toData(): Legend {
|
|
toData(): Legend {
|