docs: rename <pc-splat> to <pc-gsplat> for Web Components 0.6.0#1045
Merged
Conversation
Web Components 0.6.0 renames the splat element from <pc-splat> to <pc-gsplat> (and the JS class SplatComponentElement to GSplatComponentElement) to mirror the engine's gsplat component. It also adds two LOD-tuning attributes and removes the unified attribute, which is now the engine's implicit default. - Rename the tag reference page pc-splat.md -> pc-gsplat.md (EN + JA) so the doc URL matches the element's API-reference links. - Replace the stale `unified` attribute with `lod-base-distance` (default 5, min 0.1) and `lod-multiplier` (default 3, min 1.2); keep `asset`, `cast-shadows`, and `enabled`. - Point the JavaScript Interface section at GSplatComponentElement. - Update every <pc-splat> reference across the manual (EN + JA): the tag index, pc-entity child list, the shadows guide, the Your First Splat App tutorial, and the sidebar. The embedded CodePen demo (MYgGZax) still uses <pc-splat> markup and must be updated separately by its owner. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Web Components 0.6.0 renames the splat element from
<pc-splat>to<pc-gsplat>(a breaking change, playcanvas/web-components#247) and the JS classSplatComponentElementtoGSplatComponentElement, mirroring the engine's gsplat component. 0.6.0 also adds two LOD-tuning attributes (playcanvas/web-components#248) and removes theunifiedattribute (playcanvas/web-components#243 — unified rendering is now the engine default). This brings the manual in line with the released API.What changed
pc-splat.md→pc-gsplat.md(EN + JA) so the doc URL matches the/web-components/tags/pc-gsplat/links the library's API reference now points at.unifiedrow; addedlod-base-distance(default5, min0.1) andlod-multiplier(default3, min1.2); keptasset,cast-shadows, andenabled. Defaults and clamps verified against the engineGSplatComponent.GSplatComponentElement.pc-entitychild-component list, the shadows guide code sample, and the "Your First Splat App" Web Components tutorial; plus the sidebar entry, moved to alphabetical position.Reviewer notes
/pc-splatURL (intentional) — old links will 404.MYgGZaxembedded on the reference page and tutorials still contains<pc-splat>markup. I updated the embed titles, but the pen itself lives on codepen.io and needs updating by its owner.I confirm I have read the contributing guidelines.
🤖 Generated with Claude Code