Skip to content

Commit

Permalink
don't scale twice! adds a unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Fil committed Nov 24, 2024
1 parent dab0655 commit 4909140
Show file tree
Hide file tree
Showing 3 changed files with 236 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/transforms/centroid.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export function centroid({geometry = identity, ...options} = {}) {
data,
facets,
channels: {
x: {value: X, scale: context.projection == null ? "x" : null, source: null},
y: {value: Y, scale: context.projection == null ? "y" : null, source: null}
x: {value: X, scale: null, source: null},
y: {value: Y, scale: null, source: null}
}
};
}
Expand Down
Loading

0 comments on commit 4909140

Please sign in to comment.