Skip to content

docs: Combine layer toggle with WebGL - #1008

Merged
techniq merged 1 commit into
mainfrom
techniq/webgl-docs
Nov 18, 2026
Merged

techniq merged 1 commit into
mainfrom
techniq/webgl-docs

Conversation

@techniq

@techniq techniq commented Nov 17, 2026

Copy link
Copy Markdown
Owner

Combines the docs page header's `Svg | Canvas | Html` toggle and the separate WebGL link into one toggle.

  • One toggle: `Svg Canvas Html | WebGL`, with a subtle divider before WebGL since it's a separate package. Choosing a layer from the other side switches pages (ex. `Points` ↔ `webgl/Points`). Choosing Svg/Canvas/Html also sets the page-wide layer; WebGL never does.
  • WebGL pages show WebGL selected, offering the core component's layers (ex. `webgl/GeoRaster` shows `Canvas | WebGL`). WebGL-only components (`Light`, `Surface`, `WebGL`) show WebGL on its own.
  • `Chart` and `Layer` link to the `WebGL` layer page, which links back to `Layer`.
  • Phones get a dropdown instead of the toggle.
  • Single-layer pages show their one layer selected; clicking it no longer changes the page-wide setting.

Verified with Playwright at 1400px and 390px: switching both ways, Chart/Layer → WebGL, GeoRaster, Light, and example pages.

🤖 Generated with Claude Code

…pages for WebGL (dropdown on phones)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Nov 17, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 94ee419

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@pkg-pr-new

pkg-pr-new Bot commented Nov 17, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/layerchart@1008
npm i https://pkg.pr.new/@layerchart/webgl@1008

commit: 94ee419

@github-actions

Copy link
Copy Markdown
Contributor

Preview deployment

https://pr-1008-layerchart.techniq.workers.dev

Built from 94ee419.

@techniq
techniq merged commit fefa5da into main Nov 18, 2026
8 checks passed
@techniq
techniq deleted the techniq/webgl-docs branch November 18, 2026 04:03
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