-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dodge #809
dodge #809
Conversation
91e511a
to
e03d271
Compare
src/plot.js
Outdated
// Reinitialize; for deriving channels dependent on other channels. | ||
const newByScale = new Set(); | ||
for (const [mark, state] of stateByMark) { | ||
if (mark.reinitialize != null) { | ||
const {facets, channels} = mark.reinitialize(state.facets, state.channels, scales); | ||
const {facets, channels} = mark.reinitialize(state.facets, state.channels, scales, subdimensions); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here we’re effectively using fx || fy
to test for faceting, but elsewhere we use facets !== undefined
. The two aren’t currently guaranteed to be equivalent (because you can currently declare an fx
or fy
scale without declaring faceting), so we should either make that guarantee, or we should be consistent with which test we use.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's equivalent? This is not using options.fx and options.fy, but scales.fx and scales.fy which are set only if there are corresponding channels in channelsByScale, and defined at the same time as facets in L.49.
076cff4
to
2c228d2
Compare
b305131
to
886615b
Compare
only API change is to pass dimensions as the fifth argument