aboutsummaryrefslogtreecommitdiff
path: root/Map/Presentation/Base Components
diff options
context:
space:
mode:
Diffstat (limited to 'Map/Presentation/Base Components')
-rw-r--r--Map/Presentation/Base Components/MapRender/MapAxes.swift9
-rw-r--r--Map/Presentation/Base Components/MapRender/MapMask.swift3
2 files changed, 7 insertions, 5 deletions
diff --git a/Map/Presentation/Base Components/MapRender/MapAxes.swift b/Map/Presentation/Base Components/MapRender/MapAxes.swift
index d9fe189..9d0f43f 100644
--- a/Map/Presentation/Base Components/MapRender/MapAxes.swift
+++ b/Map/Presentation/Base Components/MapRender/MapAxes.swift
@@ -38,14 +38,15 @@ struct MapAxes: View {
// Y Labels
Text("map.axis.y.top").font(.Theme.Map.axisLabel).foregroundColor(.Theme.Map.labelColor)
.rotationEffect(
- Angle(degrees: -90.0)
+ Angle(degrees: -90.0), anchor: .topLeading
)
- .offset(CGSize(width: -35.0, height: 0.0))
+ .offset(CGSize(width: -20.0, height: 45))
+
Text("map.axis.y.bottom").font(.Theme.Map.axisLabel).foregroundColor(.Theme.Map.labelColor)
.rotationEffect(
- Angle(degrees: -90.0)
+ Angle(degrees: -90.0), anchor: .topLeading
)
- .offset(CGSize(width: -40.0, height: mapSize.height - 20))
+ .offset(CGSize(width: -20.0, height: mapSize.height))
// X Labels
diff --git a/Map/Presentation/Base Components/MapRender/MapMask.swift b/Map/Presentation/Base Components/MapRender/MapMask.swift
index 807310c..2c064b3 100644
--- a/Map/Presentation/Base Components/MapRender/MapMask.swift
+++ b/Map/Presentation/Base Components/MapRender/MapMask.swift
@@ -37,7 +37,8 @@ struct MapMask: View {
.offset(
CGSize(
width: w(vertex.position.x) + vertexSize.width + padding,
- height: h(vertex.position.y) + 7.0))
+ height: h(vertex.position.y) + 7.0)
+ )
.blendMode(.destinationOut)
}.zIndex(1)
}