Skip to content

Conversation

@mbostock
Copy link
Member

This is needed for deterministic server-side rendering of legends.

@mbostock mbostock requested a review from Fil April 13, 2023 00:16
const subdimensions = fx || fy ? innerDimensions(scaleDescriptors, dimensions) : dimensions;
const superdimensions = fx || fy ? actualDimensions(scales, dimensions) : dimensions;
const context = createContext(options, subdimensions, scaleDescriptors);
const context = createContext(options, subdimensions, className);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

className replaces the spurious argument scaleDescriptors in the call to createContext—this was introduced by #1197, and was ignored in the function's signature.

@mbostock mbostock force-pushed the mbostock/legend-class branch 2 times, most recently from 2121ce6 to 7bc6df1 Compare April 14, 2023 04:12
@mbostock mbostock enabled auto-merge (squash) April 14, 2023 04:17
@mbostock mbostock force-pushed the mbostock/legend-class branch from 7bc6df1 to 010eee0 Compare April 14, 2023 04:17
@mbostock mbostock merged commit 4af1703 into main Apr 14, 2023
@mbostock mbostock deleted the mbostock/legend-class branch April 14, 2023 04:19
chaichontat pushed a commit to chaichontat/plot that referenced this pull request Jan 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants