|
@@ -250,6 +250,7 @@ export class EditScence extends SGraphScene {
|
|
|
* 点选创建区域
|
|
|
*/
|
|
|
clickToAddArea(item: SSpaceItem): void {
|
|
|
+ console.log(item)
|
|
|
if (this.cmd != 'Zone') {
|
|
|
return
|
|
|
}
|
|
@@ -273,7 +274,7 @@ export class EditScence extends SGraphScene {
|
|
|
LineWidth: this._legend.LineWidth,
|
|
|
font: 0,
|
|
|
color: '',
|
|
|
- TextPos: { X: 0, Y: 0 }
|
|
|
+ TextPos: { X: item.data.Location.Points[0].X, Y: -item.data.Location.Points[0].Y }
|
|
|
},
|
|
|
}
|
|
|
let Polylines = null;
|