Skip to content

Commit

Permalink
Add inner line shapes, but do we actually need them ?
Browse files Browse the repository at this point in the history
+ Same style.
  • Loading branch information
mohsenD98 committed Nov 6, 2024
1 parent b11c935 commit 0efb91d
Showing 1 changed file with 33 additions and 2 deletions.
35 changes: 33 additions & 2 deletions src/qml/CoordinateLocator.qml
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,9 @@ Item {
}

ShapePath {
id: firstLineOuter
strokeWidth: 4
strokeColor: "green"
strokeColor: "#fff"
strokeStyle: ShapePath.DashLine
dashPattern: [5, 3]
startX: snappedPoint.x
Expand All @@ -335,14 +336,44 @@ Item {
y: vertexSnapToCommonAngleLines.endCoordY1
}
}
// inner line
ShapePath {
strokeWidth: firstLineOuter.strokeWidth / 2
strokeColor: "#000"
strokeStyle: ShapePath.DashLine
dashPattern: firstLineOuter.dashPattern.map(v => v * 2)
startX: snappedPoint.x
startY: snappedPoint.y

PathLine {
x: vertexSnapToCommonAngleLines.endCoordX1
y: vertexSnapToCommonAngleLines.endCoordY1
}
}

ShapePath {
id: secondLineOuter
strokeWidth: 4
strokeColor: "green"
strokeColor: "#fff"
strokeStyle: ShapePath.DashLine
dashPattern: [5, 3]
startX: snappedPoint.x
startY: snappedPoint.y

PathLine {
x: vertexSnapToCommonAngleLines.endCoordX2
y: vertexSnapToCommonAngleLines.endCoordY2
}
}
// inner line
ShapePath {
strokeWidth: secondLineOuter.strokeWidth / 2
strokeColor: "#000"
strokeStyle: ShapePath.DashLine
dashPattern: secondLineOuter.dashPattern.map(v => v * 2)
startX: snappedPoint.x
startY: snappedPoint.y

PathLine {
x: vertexSnapToCommonAngleLines.endCoordX2
y: vertexSnapToCommonAngleLines.endCoordY2
Expand Down

0 comments on commit 0efb91d

Please sign in to comment.