|
@@ -267,10 +267,10 @@ export default class Draw {
|
|
|
let radius = Style.Point.radius;
|
|
|
if (
|
|
|
(draggingItem &&
|
|
|
- draggingItem.type == VectorType.CurveRoadCorner &&
|
|
|
+ draggingItem.type == VectorType.CurvePoint &&
|
|
|
vector.vectorId == draggingItem.vectorId) ||
|
|
|
(selectItem &&
|
|
|
- selectItem.type == VectorType.CurveRoadCorner &&
|
|
|
+ selectItem.type == VectorType.CurvePoint &&
|
|
|
vector.vectorId == selectItem.vectorId)
|
|
|
) {
|
|
|
this.context.save();
|
|
@@ -280,7 +280,7 @@ export default class Draw {
|
|
|
radius = Style.Select.Point.radius;
|
|
|
} else if (
|
|
|
focusItem &&
|
|
|
- focusItem.type == VectorType.CurveRoadCorner &&
|
|
|
+ focusItem.type == VectorType.CurvePoint &&
|
|
|
vector.vectorId == focusItem.vectorId
|
|
|
) {
|
|
|
this.context.save();
|
|
@@ -408,10 +408,10 @@ export default class Draw {
|
|
|
let radius = Style.Point.radius;
|
|
|
if (
|
|
|
(draggingItem &&
|
|
|
- draggingItem.type == VectorType.RoadCorner &&
|
|
|
+ draggingItem.type == VectorType.Point &&
|
|
|
vector.vectorId == draggingItem.vectorId) ||
|
|
|
(selectItem &&
|
|
|
- selectItem.type == VectorType.RoadCorner &&
|
|
|
+ selectItem.type == VectorType.Point &&
|
|
|
vector.vectorId == selectItem.vectorId)
|
|
|
) {
|
|
|
this.context.save();
|
|
@@ -421,7 +421,7 @@ export default class Draw {
|
|
|
radius = Style.Select.Point.radius;
|
|
|
} else if (
|
|
|
focusItem &&
|
|
|
- focusItem.type == VectorType.RoadCorner &&
|
|
|
+ focusItem.type == VectorType.Point &&
|
|
|
vector.vectorId == focusItem.vectorId
|
|
|
) {
|
|
|
this.context.save();
|
|
@@ -964,6 +964,9 @@ export default class Draw {
|
|
|
}
|
|
|
|
|
|
drawTestLine(start, end, hit) {
|
|
|
+ start = coordinate.getScreenXY(start);
|
|
|
+ end = coordinate.getScreenXY(end);
|
|
|
+
|
|
|
this.context.save();
|
|
|
|
|
|
this.context.strokeStyle = "blue";
|