|
@@ -124,7 +124,7 @@ export class SZoneLegendItem extends SPolygonItem {
|
|
|
this.fillColor = data.Properties.FillColor.includes('#') ? new SColor(data.Properties.FillColor) : new SColor(hexify(data.Properties.FillColor))
|
|
|
}
|
|
|
if (data.Properties.TextPos) {
|
|
|
- this.textItem.moveTo(data.Properties.TextPos.x, data.Properties.TextPos.y);
|
|
|
+ this.textItem.moveTo(data.Properties.TextPos.X, data.Properties.TextPos.Y);
|
|
|
}
|
|
|
// if( data.Properties.LineDash){
|
|
|
// this.LineDash =this._legend.Properties.LineDash
|
|
@@ -155,7 +155,7 @@ export class SZoneLegendItem extends SPolygonItem {
|
|
|
Y: pos.y
|
|
|
}
|
|
|
});
|
|
|
- this.data.Properties.TextPos = this.textItem.pos;
|
|
|
+ this.data.Properties.TextPos = {X: this.textItem.x, Y: this.textItem.y};
|
|
|
return this.data;
|
|
|
}
|
|
|
|