|
@@ -26,7 +26,11 @@ export class SLineMarkerItem extends SLineItem {
|
|
|
this.name = data.Name;
|
|
|
this.moveTo(data.Pos.X, data.Pos.Y);
|
|
|
if (data.Properties && data.Properties.Line) {
|
|
|
- this.line = data.Properties.Line;
|
|
|
+ let setPointList: SPoint[];
|
|
|
+ setPointList = data.Properties.Line.map(i => {
|
|
|
+ return new SPoint(i.x, i.y)
|
|
|
+ })
|
|
|
+ this.line = setPointList;
|
|
|
}
|
|
|
if (data.Properties && data.Properties.LineWidth) {
|
|
|
this.lineWidth = data.Properties.LineWidth;
|
|
@@ -47,5 +51,5 @@ export class SLineMarkerItem extends SLineItem {
|
|
|
this.data.Properties.LineStyle = this.lineStyle;
|
|
|
return this.data;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
} // Class SLineMarkerItem
|