-
-
Notifications
You must be signed in to change notification settings - Fork 13
feat: pass scales and options to overlay snippet #127
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -466,7 +466,7 @@ export type PlotOptions = { | |||||
* The overlay snippet is useful for adding a layer of custom HTML markup | ||||||
* in front of the SVG body of your plot, e.g. for HTML tooltips. | ||||||
*/ | ||||||
overlay: Snippet; | ||||||
overlay: Snippet<[{ width: number; height: number; options: PlotOptions; scales: PlotScales }]>; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The
Suggested change
Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback |
||||||
facetAxes: Snippet; | ||||||
/** | ||||||
* if you set testid, the plot container will get a data-testid attribute which | ||||||
|
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.
The call site treats
overlay
as a single-object argument, but the type expects an array of arguments (Snippet<[OverlayContext]>
). Align the invocation with the updated signature, e.g.,overlay?.([ { … } ])
, or adjust the type to accept an object directly.Copilot uses AI. Check for mistakes.