|
@@ -8,7 +8,7 @@ import { SImgTextItem } from "@/lib/items/SImgTextItem";
|
|
|
import { SImageMarkerItem } from "@/lib/items/SImageMarkerItem"
|
|
|
import { SPoint, SFont } from '@saga-web/draw/lib';
|
|
|
import { Legend } from '@/lib/types/Legend';
|
|
|
-import { uuid } from "@/components/mapClass/until"
|
|
|
+import { uuid } from "@/components/mapClass/until";
|
|
|
|
|
|
|
|
|
* 在线绘图
|
|
@@ -103,6 +103,7 @@ export class EditScence extends SGraphScene {
|
|
|
* 增加线段item
|
|
|
*/
|
|
|
addLine(event: SMouseEvent): boolean {
|
|
|
+
|
|
|
const item = new SLineItem(null, new SPoint(event.x, event.y));
|
|
|
item.status = SItemStatus.Create;
|
|
|
item.zOrder = ItemOrder.lineOrder;
|
|
@@ -193,9 +194,9 @@ export class EditScence extends SGraphScene {
|
|
|
|
|
|
Name: '嗡嗡嗡',
|
|
|
|
|
|
- Type: 'Image',
|
|
|
+ Type: "Image",
|
|
|
|
|
|
- Pos: new SPoint(event.x, event.y),
|
|
|
+ Pos: {X: event.x, Y: event.y},
|
|
|
|
|
|
Properties:{
|
|
|
Url:require('./../../assets/logo.png'),
|
|
@@ -204,11 +205,9 @@ export class EditScence extends SGraphScene {
|
|
|
}
|
|
|
|
|
|
const item = new SImageMarkerItem(null, data);
|
|
|
-
|
|
|
item.zOrder = ItemOrder.imageOrder;
|
|
|
item.selectable = true;
|
|
|
item.moveable = true;
|
|
|
-
|
|
|
this.addItem(item);
|
|
|
this.grabItem == null;
|
|
|
this.focusItem = item;
|