Skip to content

Commit

Permalink
chore: fix formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
WojciechKrakowiak committed Oct 15, 2024
1 parent cce6480 commit dd131a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/component/visualMap/ContinuousView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -623,10 +623,10 @@ class ContinuousView extends VisualMapView {
if (this._orient === 'horizontal') {
// If visualMap controls symbol size, an additional offset needs to be added to labels to avoid collision at minimum size.
// Offset reaches value of 0 at "maximum" position, so maximum position is not altered at all.
const minimumOffset = align === 'left' || align === "top"
const minimumOffset = align === 'left' || align === 'top'
? (itemSize[0] - symbolSize) / 2
: (itemSize[0] - symbolSize) / -2;

textPoint[1] += minimumOffset;
}

Expand Down

0 comments on commit dd131a0

Please sign in to comment.