Skip to content

docs: add JSDoc to scale types and scale-related PlotOptions#365

Merged
gka merged 1 commit into
svelteplot:mainfrom
ljodea:docs/jsdoc-scale-types
Feb 14, 2026
Merged

docs: add JSDoc to scale types and scale-related PlotOptions#365
gka merged 1 commit into
svelteplot:mainfrom
ljodea:docs/jsdoc-scale-types

Conversation

@ljodea

@ljodea ljodea commented Feb 11, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add JSDoc documentation to ~39 previously undocumented props across scale-related types
  • ScaleOptions: label, interval, clamp, round, percent, transform, insetLeft/Right/Top/Bottom, ticks, tickSpacing, base, sort, constant (15 props)
  • ColorScaleOptions: legend, type, scheme, interpolate (4 props)
  • XScaleOptions: labelAnchor, tickFormat (2 props)
  • YScaleOptions: tickFormat, labelAnchor (2 props)
  • LegendScaleOptions: legend (1 prop)
  • PlotScale: type, domain, range, autoTitle, skip, fn (6 props)
  • PlotOptions: color, opacity, symbol, length, fx, fy, children, footer, facetAxes (9 props)

Files changed

  • src/lib/types/scale.ts
  • src/lib/types/plot.ts

Test plan

  • pnpm run lint passes (prettier + eslint)
  • Verify JSDoc tooltips appear on hover in editor for scale options like <Plot x={{ label: ... }}>

🤖 Generated with Claude Code

Document ~39 previously undocumented props across ScaleOptions,
ColorScaleOptions, XScaleOptions, YScaleOptions, LegendScaleOptions,
PlotScale, and scale-related PlotOptions props (color, opacity,
symbol, length, fx, fy, children, footer, facetAxes).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@netlify

netlify Bot commented Feb 11, 2026

Copy link
Copy Markdown

Deploy Preview for svelteplot ready!

Name Link
🔨 Latest commit 4cd3b90
🔍 Latest deploy log https://app.netlify.com/projects/svelteplot/deploys/698cc43ed669ee0008d7f5a5
😎 Deploy Preview https://deploy-preview-365--svelteplot.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@gka gka merged commit 0a686fc into svelteplot:main Feb 14, 2026
4 checks passed
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.

2 participants