aboutsummaryrefslogtreecommitdiff
path: root/Map/Presentation/Base Components/MapRender
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2025-07-07 13:46:01 +0200
committerRuben Beltran del Rio <git@r.bdr.sh>2025-07-07 13:46:01 +0200
commita1a485f16e0f1720f2dcdf7ab03d52c29fe9e252 (patch)
treef856e787f18bcb8abcf15a8aa72793cf56630fd2 /Map/Presentation/Base Components/MapRender
parent69f8f7e81ca73ffbf1a0d76ccbd6cf8545caff57 (diff)
Show custom fonts
Diffstat (limited to 'Map/Presentation/Base Components/MapRender')
-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)
}