Skip to content

Commit

Permalink
Fix some spacing issues for links vertical legend
Browse files Browse the repository at this point in the history
  • Loading branch information
mthh committed Oct 9, 2024
1 parent 73ba54b commit 40d1e9f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/components/LegendRenderer/ProportionnalSymbolsLegend.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,7 @@ function verticalLineLegend(
'1234567890',
legend.labels.fontSize,
legend.labels.fontFamily,
).height / 2 + defaultSpacing,
).height / 2,
);

const sizesAndPositions = createMemo(() => {
Expand All @@ -1105,11 +1105,7 @@ function verticalLineLegend(
(
sizesAndPositions()[sizesAndPositions().length - 1].y
+ sizesAndPositions()[sizesAndPositions().length - 1].size / 2
) + getTextSize(
legend.note.text,
legend.note.fontSize,
legend.note.fontFamily,
).height + defaultSpacing
) + legend.labels.fontSize / 2 + defaultSpacing
));

onMount(() => {
Expand Down

0 comments on commit 40d1e9f

Please sign in to comment.