Skip to content

feat: improve canvas tick mark rendering#352

Merged
gka merged 4 commits into
mainfrom
feat/canvas-tick-mark-2
Feb 8, 2026
Merged

feat: improve canvas tick mark rendering#352
gka merged 4 commits into
mainfrom
feat/canvas-tick-mark-2

Conversation

@gka

@gka gka commented Feb 8, 2026

Copy link
Copy Markdown
Contributor

Rendering and performance improvements

  • Optimized tick mark rendering in TickCanvas.svelte by batching drawing operations based on style, reducing redundant context state changes, and only flushing paths when styles change. This improves canvas rendering performance for plots with many ticks. [1] [2]
  • Introduced a normalizeLineCap helper to ensure valid canvas line cap values, and refactored style preparation logic for clarity and maintainability. [1] [2]

Example documentation updates

  • Updated titles and descriptions in tick-x-canvas-vs-svg.svelte and tick-x.svelte to reference "Barcode plot" and provide attribution to Observable Plot, improving clarity for users and aligning with the chart's purpose. [1] [2]

@netlify

netlify Bot commented Feb 8, 2026

Copy link
Copy Markdown

Deploy Preview for svelteplot ready!

Name Link
🔨 Latest commit d0cbd22
🔍 Latest deploy log https://app.netlify.com/projects/svelteplot/deploys/6988841048177a0008656a5c
😎 Deploy Preview https://deploy-preview-352--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

github-actions Bot commented Feb 8, 2026

Copy link
Copy Markdown

TypeScript error report:

  • This branch: 855
  • main branch: 1115
  • Difference (PR - main): -260 🎉

Svelte TypeScript error report:

  • This branch: 2157
  • main branch: 2157
  • Difference (PR - main): 0 ℹ️

@gka gka merged commit 5c3faa2 into main Feb 8, 2026
7 of 8 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.

1 participant