|
@@ -6,6 +6,7 @@ import VectorStyle from "../enum/VectorStyle.js";
|
|
|
import { mathUtil } from "../Util/MathUtil.js";
|
|
|
import { dataService } from "../Service/DataService.js";
|
|
|
import Constant from "../Constant";
|
|
|
+import { coordinate } from "../Coordinate";
|
|
|
export default class RoadEdge extends Geometry {
|
|
|
constructor(start, end, vectorId, parentId) {
|
|
|
super();
|
|
@@ -65,7 +66,6 @@ export default class RoadEdge extends Geometry {
|
|
|
// let lines = mathUtil.getParallelLineForDistance(line, Constant.roadSideWidth);
|
|
|
// let joinPoint = lines.line1;
|
|
|
|
|
|
-
|
|
|
// for (let key in road) {
|
|
|
// if (this.vectorId == road[key]) {
|
|
|
// if (key == 'rightEdgeId') {
|
|
@@ -84,8 +84,7 @@ export default class RoadEdge extends Geometry {
|
|
|
this.roadSide = {};
|
|
|
this.roadSide["width"] = Constant.roadSideWidth;
|
|
|
}
|
|
|
-
|
|
|
- let roadSidePoints = mathUtil.RectangleVertex(startPoint, endPoint, this.roadSide.width * 2);
|
|
|
+ let roadSidePoints = mathUtil.RectangleVertex(startPoint, endPoint, (this.roadSide.width * 2) / 5);
|
|
|
for (let key in road) {
|
|
|
if (this.vectorId == road[key]) {
|
|
|
if (key == "rightEdgeId") {
|
|
@@ -102,7 +101,7 @@ export default class RoadEdge extends Geometry {
|
|
|
}
|
|
|
setRoadSideWidth(width) {
|
|
|
this.roadSide.width = width;
|
|
|
- this.initRoadSide()
|
|
|
+ this.initRoadSide();
|
|
|
}
|
|
|
setRoadSide(roadSide) {
|
|
|
this.roadSide = JSON.parse(JSON.stringify(roadSide));
|