Skip to content

types: Fix svelte-check issues in BarX, BarY, RuleX, and RuleY#488

Merged
gka merged 6 commits intomainfrom
types/fix-bars-and-rules
Feb 22, 2026
Merged

types: Fix svelte-check issues in BarX, BarY, RuleX, and RuleY#488
gka merged 6 commits intomainfrom
types/fix-bars-and-rules

Conversation

@gka
Copy link
Copy Markdown
Contributor

@gka gka commented Feb 22, 2026

resolves #417
resolves #418
resolves #443
resolves #444

Summary

  • Fixes all svelte-check type errors in BarX.svelte, BarY.svelte, RuleX.svelte, and RuleY.svelte (39 errors → 0)
  • BarX/BarY: Add DataRecord import; fix class default null→''; fix data default {} cast; cast d.x1/x2/y/y1/y2/x as number in Math.min/Math.max and arithmetic expressions; cast options as BaseMarkProps<DataRecord> & BaseRectMarkProps<DataRecord> when passing to RectCanvas and RectPath
  • RuleX/RuleY: Add DataRow import; cast data as DataRow[] in recordizeX/recordizeY call; remove redundant {...markProps} from <Mark> spread (fixes filter type variance error — all options already flow through {...args}); cast args as any for RuleCanvas options and resolveStyles; add as number casts to inset/insetTop/insetBottom/insetLeft/insetRight {@const} declarations
  • No runtime behavior changes

Test plan

  • pnpm check — no errors in the four affected files
  • pnpm test — run unit tests
  • pnpm lint — Prettier + ESLint

🤖 Generated with Claude Code

gka and others added 2 commits February 22, 2026 20:05
- BarX/BarY: Add DataRecord import; fix class default null→''; fix data
  default {} cast; cast d.x1/x2/y/y1/y2/x as number in Math.min/max
  and arithmetic; cast options as BaseMarkProps<DataRecord> &
  BaseRectMarkProps<DataRecord> for RectCanvas and RectPath
- RuleX/RuleY: Add DataRow import; cast data as DataRow[] in
  recordizeX/Y call; remove redundant {...markProps} from <Mark> spread
  (fixes filter type variance error); cast args as any for RuleCanvas
  options and resolveStyles; add as number casts to inset/insetTop/
  insetBottom/insetLeft/insetRight const declarations

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@netlify
Copy link
Copy Markdown

netlify bot commented Feb 22, 2026

Deploy Preview for svelteplot ready!

Name Link
🔨 Latest commit c55c44e
🔍 Latest deploy log https://app.netlify.com/projects/svelteplot/deploys/699b8b7c5ed0f9000815575f
😎 Deploy Preview https://deploy-preview-488--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.

@github-actions
Copy link
Copy Markdown

📦 Preview package for this PR is published!

Version: 0.10.3-pr-488.0

Install it with:

npm install svelteplot@pr-488
# or install the specific version
npm install svelteplot@0.10.3-pr-488.0

@github-actions
Copy link
Copy Markdown

📦 Preview package for this PR is published!

Version: 0.10.3-pr-488.1

Install it with:

npm install svelteplot@pr-488
# or install the specific version
npm install svelteplot@0.10.3-pr-488.1

@github-actions
Copy link
Copy Markdown

📦 Preview package for this PR is published!

Version: 0.10.3-pr-488.2

Install it with:

npm install svelteplot@pr-488
# or install the specific version
npm install svelteplot@0.10.3-pr-488.2

@github-actions
Copy link
Copy Markdown

📦 Preview package for this PR is published!

Version: 0.10.3-pr-488.3

Install it with:

npm install svelteplot@pr-488
# or install the specific version
npm install svelteplot@0.10.3-pr-488.3

@github-actions
Copy link
Copy Markdown

📦 Preview package for this PR is published!

Version: 0.10.3-pr-488.4

Install it with:

npm install svelteplot@pr-488
# or install the specific version
npm install svelteplot@0.10.3-pr-488.4

@gka gka merged commit 2db87d2 into main Feb 22, 2026
9 checks passed
@gka gka deleted the types/fix-bars-and-rules branch February 22, 2026 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant