Skip to content

Commit

Permalink
Fix aspect ratio (#407)
Browse files Browse the repository at this point in the history
  • Loading branch information
DTTerastar authored Nov 18, 2023
1 parent 1e7aede commit 58e221d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/lib/Map.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
</script>

{#if bounds}
<LayerCake x='0' y='1' flatData={ bounds } xReverse={ false } yReverse={ true } padding={ {top: 16, left: 16, bottom: 16, right: 16} }>
<LayerCake x='0' y='1' xRange={({ height, width }) => [0, Math.min(height, width)]} yRange={({ height, width }) => [Math.min(height, width), 0]} flatData={ bounds } xReverse={ false } yReverse={ true } padding={ {top: 16, left: 16, bottom: 16, right: 16} }>
<Svg bind:element={svg}>
<AxisX {transform} />
<AxisY {transform} />
Expand Down

0 comments on commit 58e221d

Please sign in to comment.