|
@@ -8,6 +8,7 @@ import VectorCategory from "../enum/VectorCategory.js";
|
|
|
import { mathUtil } from "../Util/MathUtil.js";
|
|
|
import { uiService } from "./UIService.js";
|
|
|
import { addLine } from "../Controls/AddLine.js";
|
|
|
+import Constant from "../Constant.js";
|
|
|
|
|
|
export default class LineService {
|
|
|
constructor() {}
|
|
@@ -94,6 +95,18 @@ export default class LineService {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
+ //是否已经设置了直角测量法
|
|
|
+ hasLocationModeByAngle() {
|
|
|
+ let lines = dataService.getLines();
|
|
|
+ for (let key in lines) {
|
|
|
+ let line = dataService.getLine(key);
|
|
|
+ if (line.getLocationMode() == Constant.angleLocationMode) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
/******************************************************************************曲线**************************************************************************************/
|
|
|
createCurveLine(startPosition, endPosition, vectorId) {
|
|
|
if (
|