Skip to content

Conversation

@techniq
Copy link
Owner

@techniq techniq commented Oct 16, 2025

Goals

  • Provide complete / standalone / isolated examples with easy copy and paste and ability to open in Svelte REPL/Playground or Stackblitz
  • New Examples browse page with filtering
  • Automatically find related examples for all components
  • Expose APIs (generated from $prop() types)
  • Improved search (sub-section)
  • Improved design
  • Better separation of library and docs dependencies

Closes #620

PR also

  • Adds settings (default layer type and debug)
  • Layer improvements
    • respects layer setting (default)
    • integrates debug setting (overall and padding bounds)

TODO

Existing

  • Create new docs projects at {project_root}/docs}
  • Setup content-collections
  • Setup mdsx
  • Setup Tailwind / Theme select
  • Setup unplugin-icons
  • Setup Svelte UX
  • Table of Contents
  • Analytics
  • Integrate renderContext (svg/canvas/html) setting
  • Integrate debug setting
  • Setup CI (build)
  • Deploy new site to Cloudflare (new directory)
  • Identify pattern to define examples
    • preprocess markdown code blocks
      • Pro
        • Faster to migrate
        • Quick to iterate
      • Con
        • More difficult to implement (find old preprocessor)
    • Separate page per example (almost 700)
      • Pro
        • Better tooling (prettier, errors)
        • Easier to implement (?raw for source)
        • Full examples (<script>)
        • Easier to open in REPL
      • Con
        • More intensive (almost 700)
        • Each needs distinct name
  • Migrate all examples
  • Search
  • Responsive layout
  • light/dark shiki themes
  • Remove old site (after migrated)
  • Update Getting Started
  • Fix screenshots (show full examples (multi-chart), hide controls)
  • Fix data warning (box value in object)

New


Structure

I'm also thinking we have the following sections (not rigid, but general ideas):

possibly

  • Updates (News / Blog)

Issues

@changeset-bot
Copy link

changeset-bot bot commented Oct 16, 2025

🦋 Changeset detected

Latest commit: 2a9a90e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
Name Type
layerchart Minor
shadcn-svelte-1 Patch
svelteux-2 Patch
skeleton-3 Patch
skeleton4 Patch
standalone Patch
daisyui-5 Patch
docs Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Oct 16, 2025

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
layerchart ✅ Ready (View Log) Visit Preview 2a9a90e

@pkg-pr-new
Copy link

pkg-pr-new bot commented Oct 16, 2025

Open in StackBlitz

npm i https://pkg.pr.new/layerchart@659

commit: 2a9a90e

* fix for empty layers toggle showing small circle

* fix-text-playground - was not truncating text
* fix for empty layers toggle showing small circle

* rename word wrap with explicit n
cycle4passion and others added 2 commits January 26, 2026 09:03
* fix for empty layers toggle showing small circle

* updated utils to make use of :example{}

- simplified code in each of Utils components
- added foreign currency example in fmt

* switched most to svelte live

* Doc refinements

---------

Co-authored-by: Sean Lynch <techniq35@gmail.com>
cycle4passion and others added 2 commits January 26, 2026 11:07
* fix for empty layers toggle showing small circle

* further arc tests

Now covers all props. Here are all the new tests added:
Motion Tests (fixed/rewritten):
1. should accept spring motion config - Rewritten to test animation from initial to final state using         expect.poll()
2. should accept tween motion config - Uncommented and fixed to test animation
                                                          Props Tests (new):
3. should render with custom domain - Tests domain prop individually

4. should render with custom range - Tests range prop individually

5. should render with startAngle in radians - Tests startAngle prop

6. should render with endAngle in radians - Tests endAngle prop

7. should render with both startAngle and endAngle - Tests combined usage

8. should render with innerRadius - Tests innerRadius prop individually

9. should render with outerRadius - Tests outerRadius prop individually

10. should render track with trackStartAngle - Tests trackStartAngle prop individually

11. should render track with trackEndAngle - Tests trackEndAngle prop individually

12. should render track with trackStartAngle and trackEndAngle - Tests combined usage

13. should render track with trackInnerRadius - Tests trackInnerRadius prop individually

14. should render track with trackOuterRadius - Tests trackOuterRadius prop individually

15. should render track with trackCornerRadius - Tests trackCornerRadius prop (was commented out)

16. should render track with trackPadAngle - Tests trackPadAngle prop (was missing)

17. should call tooltipContext.show on pointer enter with data - Tests tooltipContext + data props

18. should call tooltipContext.hide on pointer leave - Tests tooltipContext hide behavior

19. should apply stroke color - Tests stroke prop explicitly
20. should apply strokeWidth - Tests strokeWidth prop (was missing)

* simplify

* Change `pnpm test:unit` to be headless/no ui, and add `pnpm test:ui`

---------

Co-authored-by: Sean Lynch <techniq35@gmail.com>
* fix for empty layers toggle showing small circle

* geopoint-icons-remove-controls
* fix for empty layers toggle showing small circle

* New barchart-xinterval-xinset and linechart-tickspacing

- updates to Axis.md and BarChart.md text
- updated Scatterplot domain-nice to use Switch instead of autotoggling

* added needed padding

* Add `tickSpacing` @default to jsdoc

* refine docs

---------

Co-authored-by: Sean Lynch <techniq35@gmail.com>
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.

4 participants