aboutsummaryrefslogtreecommitdiff
path: root/Map/Presentation/MapEditor.swift
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2025-07-09 08:34:19 +0200
committerRuben Beltran del Rio <git@r.bdr.sh>2025-07-09 08:34:19 +0200
commit1ec7f2c6deb64f5b13b32fae2bf74ae2d8aaaabb (patch)
tree47b6addedf0bdb18d35774e9b027d07074929d4a /Map/Presentation/MapEditor.swift
parent6926feead1a7fadb7f5f974996bef8c30b3bfdbe (diff)
Account for CRLF/CR/LF. Lex note text. Use Wmap Parser for renderer.
Diffstat (limited to 'Map/Presentation/MapEditor.swift')
-rw-r--r--Map/Presentation/MapEditor.swift5
1 files changed, 3 insertions, 2 deletions
diff --git a/Map/Presentation/MapEditor.swift b/Map/Presentation/MapEditor.swift
index 167ef77..0f8f24e 100644
--- a/Map/Presentation/MapEditor.swift
+++ b/Map/Presentation/MapEditor.swift
@@ -120,8 +120,9 @@ struct MapEditor: View {
GeometryReader { geometry in
ScrollView([.horizontal, .vertical], showsIndicators: false) {
MapRenderView(
- document: $document, evolution: $selectedEvolution, onDragVertex: onDragVertex
- ).scaleEffect(zoom, anchor: .center).frame(
+ entities: parsedMap, evolution: $selectedEvolution, onDragVertex: onDragVertex
+ )
+ .scaleEffect(zoom, anchor: .center).frame(
width: (Dimensions.Map.size.width + 2 * Dimensions.Map.padding) * zoom,
height: (Dimensions.Map.size.height + 2 * Dimensions.Map.padding) * zoom
)