|
@@ -75,6 +75,12 @@ export class SImageLegendItem extends SIconTextItem {
|
|
|
if (data.Properties && data.Properties.color) {
|
|
|
this.color = new SColor(data.Properties.color);
|
|
|
}
|
|
|
+ if (data.Properties && data.Properties.IsActive) {
|
|
|
+ this.isActive = data.Properties.IsActive;
|
|
|
+ }
|
|
|
+ if (data.Properties && data.Properties.FrameColor) {
|
|
|
+ this.activeColor = new SColor(data.Properties.FrameColor);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
toData(): Legend {
|
|
@@ -88,6 +94,8 @@ export class SImageLegendItem extends SIconTextItem {
|
|
|
this.data.Properties.sHeight = this.sHeight;
|
|
|
this.data.Properties.font = this.font.size;
|
|
|
this.data.Properties.color = this.color.value;
|
|
|
+ this.data.Properties.FrameColor = this.activeColor.value;
|
|
|
+ this.data.Properties.IsActive = this.isActive;
|
|
|
this.data.AnchorList = this.anchorList.map(t => {
|
|
|
return {
|
|
|
ID: t.id,
|