|
@@ -13,6 +13,7 @@ import { edgeService } from "./Service/EdgeService";
|
|
|
import VectorCategory from "./enum/VectorCategory";
|
|
|
import LayerEvents from "./enum/LayerEvents";
|
|
|
import Style from "./CanvasStyle";
|
|
|
+import Settings from "./Settings";
|
|
|
export default class ListenLayer {
|
|
|
constructor(canvas, newsletter, graphicState) {
|
|
|
this.modifyPoint = null;
|
|
@@ -225,9 +226,11 @@ export default class ListenLayer {
|
|
|
continue;
|
|
|
}
|
|
|
const point = dataService.getPoint(pointId);
|
|
|
+
|
|
|
if (point.getCategory() == VectorCategory.Point.TestBasePoint) {
|
|
|
continue;
|
|
|
}
|
|
|
+
|
|
|
const distance = this.getDistance(position, point);
|
|
|
if (distance < Constant.minAdsorbPix) {
|
|
|
if (pointInfo.pointId == null) {
|
|
@@ -262,6 +265,10 @@ export default class ListenLayer {
|
|
|
const linkedPoint = dataService.getPoint(pointInfo.pointId);
|
|
|
pointInfo.x = linkedPoint.x;
|
|
|
pointInfo.y = linkedPoint.y;
|
|
|
+ //判断当时基准点则要高亮
|
|
|
+ if(linkedPoint.getCategory() ==VectorCategory.Point.BasePoint ){
|
|
|
+ Settings.selectBasePointId = linkedPoint.vectorId
|
|
|
+ }
|
|
|
} else {
|
|
|
if (seqInfo.hasOwnProperty("linkedPointIdX")) {
|
|
|
pointInfo.linkedPointIdX = seqInfo.linkedPointIdX;
|
|
@@ -278,6 +285,8 @@ export default class ListenLayer {
|
|
|
pointInfo.y = position.y;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
return pointInfo;
|
|
|
}
|
|
|
|