|
@@ -95,6 +95,7 @@ export class SZoneLegendItem extends SPolygonItem {
|
|
|
*/
|
|
|
constructor(parent: SGraphItem | null, data: Legend) {
|
|
|
super(parent);
|
|
|
+ this.zOrder = ItemOrder.polygonOrder;
|
|
|
this.data = data;
|
|
|
this.id = data.ID;
|
|
|
this.name = data.Name;
|
|
@@ -124,7 +125,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 +156,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;
|
|
|
}
|
|
|
|