|
@@ -66,7 +66,7 @@ export default class PointService {
|
|
if (point) {
|
|
if (point) {
|
|
const category = point.getCategory();
|
|
const category = point.getCategory();
|
|
if (category == VectorCategory.Point.NormalPoint) {
|
|
if (category == VectorCategory.Point.NormalPoint) {
|
|
- dataService.deletePoint(pointId); //暂时简单粗暴
|
|
|
|
|
|
+ this.deleteNormalPoint(pointId); //暂时简单粗暴
|
|
} else if (category == VectorCategory.Point.BasePoint) {
|
|
} else if (category == VectorCategory.Point.BasePoint) {
|
|
this.deleteBasePoint(pointId);
|
|
this.deleteBasePoint(pointId);
|
|
} else if (category == VectorCategory.Point.TestBasePoint) {
|
|
} else if (category == VectorCategory.Point.TestBasePoint) {
|
|
@@ -89,6 +89,10 @@ export default class PointService {
|
|
|
|
|
|
deleteNormalPoint(normalPointId) {
|
|
deleteNormalPoint(normalPointId) {
|
|
let normalPoint = dataService.getPoint(normalPointId);
|
|
let normalPoint = dataService.getPoint(normalPointId);
|
|
|
|
+ let parent = normalPoint.getParent();
|
|
|
|
+ for (let key in parent) {
|
|
|
|
+ dataService.deleteLine(key);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
deleteBasePoint(basePointId) {
|
|
deleteBasePoint(basePointId) {
|