diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-07-09 08:34:19 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-07-09 08:34:19 +0200 |
| commit | 1ec7f2c6deb64f5b13b32fae2bf74ae2d8aaaabb (patch) | |
| tree | 47b6addedf0bdb18d35774e9b027d07074929d4a /Map/Presentation/MapEditor.swift | |
| parent | 6926feead1a7fadb7f5f974996bef8c30b3bfdbe (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.swift | 5 |
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 ) |