|
@@ -79,11 +79,9 @@ export default class UIService {
|
|
return true;
|
|
return true;
|
|
} else if (ui == UIEvents.Line) {
|
|
} else if (ui == UIEvents.Line) {
|
|
this.setSelectLineCategory(VectorCategory.Line.NormalLine);
|
|
this.setSelectLineCategory(VectorCategory.Line.NormalLine);
|
|
- this.setSelectLocationMode(Constant.null);
|
|
|
|
return true;
|
|
return true;
|
|
} else if (ui == UIEvents.FreeMeasureLine) {
|
|
} else if (ui == UIEvents.FreeMeasureLine) {
|
|
this.setSelectLineCategory(VectorCategory.Line.FreeMeasureLine);
|
|
this.setSelectLineCategory(VectorCategory.Line.FreeMeasureLine);
|
|
- this.setSelectLocationMode(Constant.freeLocationMode);
|
|
|
|
return true;
|
|
return true;
|
|
} else if (ui == UIEvents.BaseLine) {
|
|
} else if (ui == UIEvents.BaseLine) {
|
|
this.setSelectLineCategory(VectorCategory.Line.BaseLine);
|
|
this.setSelectLineCategory(VectorCategory.Line.BaseLine);
|
|
@@ -93,29 +91,8 @@ export default class UIService {
|
|
}
|
|
}
|
|
|
|
|
|
isBelongPoint(ui) {
|
|
isBelongPoint(ui) {
|
|
- // if (ui == UIEvents.NormalLocationMode) {
|
|
|
|
- // this.setSelectPointCategory(VectorCategory.Point.TestPoint);
|
|
|
|
- // this.setSelectLocationMode(Constant.normalLocationMode);
|
|
|
|
- // return true;
|
|
|
|
- // } else if (ui == UIEvents.AngleLocationMode) {
|
|
|
|
- // this.setSelectPointCategory(VectorCategory.Point.TestPoint);
|
|
|
|
- // this.setSelectLocationMode(Constant.angleLocationMode);
|
|
|
|
- // return true;
|
|
|
|
- // } else if (ui == UIEvents.AllLocationMode) {
|
|
|
|
- // this.setSelectPointCategory(VectorCategory.Point.TestPoint);
|
|
|
|
- // this.setSelectLocationMode(Constant.allLocationMode);
|
|
|
|
- // return true;
|
|
|
|
- // } else if (ui == UIEvents.BasePoint) {
|
|
|
|
- // this.setSelectPointCategory(VectorCategory.Point.BasePoint);
|
|
|
|
- // this.setSelectLocationMode(null);
|
|
|
|
- // return true;
|
|
|
|
- // } else if (ui == UIEvents.FixPoint) {
|
|
|
|
- // this.setSelectPointCategory(VectorCategory.Point.FixPoint);
|
|
|
|
- // return true;
|
|
|
|
- // }
|
|
|
|
if (ui == UIEvents.BasePoint) {
|
|
if (ui == UIEvents.BasePoint) {
|
|
this.setSelectPointCategory(VectorCategory.Point.BasePoint);
|
|
this.setSelectPointCategory(VectorCategory.Point.BasePoint);
|
|
- this.setSelectLocationMode(null);
|
|
|
|
return true;
|
|
return true;
|
|
} else if (ui == UIEvents.FixPoint) {
|
|
} else if (ui == UIEvents.FixPoint) {
|
|
this.setSelectPointCategory(VectorCategory.Point.FixPoint);
|
|
this.setSelectPointCategory(VectorCategory.Point.FixPoint);
|
|
@@ -235,6 +212,10 @@ export default class UIService {
|
|
Settings.selectLocationMode = value;
|
|
Settings.selectLocationMode = value;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ getSelectLocationMode() {
|
|
|
|
+ return Settings.selectLocationMode;
|
|
|
|
+ }
|
|
|
|
+
|
|
setSelectSVGType(value) {
|
|
setSelectSVGType(value) {
|
|
Settings.selectSVGType = value;
|
|
Settings.selectSVGType = value;
|
|
}
|
|
}
|