From 1ec7f2c6deb64f5b13b32fae2bf74ae2d8aaaabb Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Wed, 9 Jul 2025 08:34:19 +0200 Subject: Account for CRLF/CR/LF. Lex note text. Use Wmap Parser for renderer. --- Map/Presentation/MapEditor.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Map/Presentation/MapEditor.swift') 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 ) -- cgit