|
@@ -98,7 +98,7 @@ export class SImageLegendItem extends SIconTextItem {
|
|
|
this.textItem.moveTo(data.Properties.TextPos.X, data.Properties.TextPos.Y);
|
|
|
} else {
|
|
|
// 偏移二分之一文本高度
|
|
|
- this.textItem.moveTo((this.img.width * 0.5) + 2, -(this.font.size * 0.5));
|
|
|
+ this.textItem.moveTo((this.img.width * 0.5), -(this.font.size * 1.25 * 0.5));
|
|
|
}
|
|
|
if (data.Properties && data.Properties.color) {
|
|
|
this.color = new SColor(data.Properties.color);
|