|
@@ -380,7 +380,58 @@ export default class UIControl {
|
|
if (endPoint.getCategory() != VectorCategory.Point.BasePoint) {
|
|
if (endPoint.getCategory() != VectorCategory.Point.BasePoint) {
|
|
pointService.deletePoint(line.endId);
|
|
pointService.deletePoint(line.endId);
|
|
}
|
|
}
|
|
|
|
+ } else if (
|
|
|
|
+ line.getCategory() == VectorCategory.Line.LocationLineByFixPoint
|
|
|
|
+ ) {
|
|
|
|
+ let lines = dataService.getLines();
|
|
|
|
+ for (let key in lines) {
|
|
|
|
+ let _line = dataService.getLine(key);
|
|
|
|
+ if (
|
|
|
|
+ _line.getCategory() == VectorCategory.Line.ExtendedPositionLine
|
|
|
|
+ ) {
|
|
|
|
+ if (
|
|
|
|
+ line.startId == _line.startId ||
|
|
|
|
+ line.startId == _line.endId ||
|
|
|
|
+ line.endId == _line.startId ||
|
|
|
|
+ line.endId == _line.endId
|
|
|
|
+ ) {
|
|
|
|
+ dataService.deleteLine(key);
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ } else if (
|
|
|
|
+ line.getCategory() == VectorCategory.Line.LocationLineByBasePoint
|
|
|
|
+ ) {
|
|
|
|
+ let lines = dataService.getLines();
|
|
|
|
+ for (let key in lines) {
|
|
|
|
+ let _line = dataService.getLine(key);
|
|
|
|
+ if (
|
|
|
|
+ _line.getCategory() == VectorCategory.Line.ExtendedPositionLine
|
|
|
|
+ ) {
|
|
|
|
+ if (
|
|
|
|
+ line.startId == _line.startId ||
|
|
|
|
+ line.startId == _line.endId ||
|
|
|
|
+ line.endId == _line.startId ||
|
|
|
|
+ line.endId == _line.endId
|
|
|
|
+ ) {
|
|
|
|
+ dataService.deleteLine(key);
|
|
|
|
+ }
|
|
|
|
+ } else if (
|
|
|
|
+ _line.getCategory() == VectorCategory.Line.GuideLocationLine
|
|
|
|
+ ) {
|
|
|
|
+ if (
|
|
|
|
+ line.startId == _line.startId ||
|
|
|
|
+ line.startId == _line.endId ||
|
|
|
|
+ line.endId == _line.startId ||
|
|
|
|
+ line.endId == _line.endId
|
|
|
|
+ ) {
|
|
|
|
+ dataService.deleteLine(key);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
+
|
|
break;
|
|
break;
|
|
case VectorType.CurveLine:
|
|
case VectorType.CurveLine:
|
|
lineService.deleteCurveLine(vectorId);
|
|
lineService.deleteCurveLine(vectorId);
|