Skip to content

Commit

Permalink
skip extent calculation for manually set extents
Browse files Browse the repository at this point in the history
  • Loading branch information
mhkeller committed Jun 18, 2020
1 parent 9972ca1 commit 16d17c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LayerCake.svelte
Expand Up @@ -210,7 +210,7 @@
* and filling that in with anything set by the user
*/
const extents_d = derived([_flatData, activeGetters_d, _extents], ([$flatData, $activeGetters, $extents]) => {
return { ...calcExtents($flatData, $activeGetters), ...$extents };
return { ...calcExtents($flatData, $activeGetters.filter(d => !$extents[d.field])), ...$extents };
});
const xDomain_d = derived([extents_d, _xDomain], calcDomain('x'));
Expand Down

0 comments on commit 16d17c6

Please sign in to comment.