feat(fence): horizontal-board fence style with capped posts#432
Merged
Conversation
Adds a `horizontal` fence style that builds composite-cladding panels — horizontal boards stacked between square intermediate posts — instead of the vertical pickets that slat/rail/privacy all produce today. - New `style: 'horizontal'` (core schema + inspector Style control). - Posts march along the whole span at `postSpacing`, each with a cap. - New `postCap` control (none/flat/pyramid, default pyramid); pyramid caps render as a 4-sided cone fence part. - New `slatGap` control for the board reveal — 0 collapses to one flush panel so the stacked-board seams don't read as lines. - `postCap` + `slatGap` are horizontal-only (visibleIf); postCap uses a labelled dropdown so its options aren't a context-free switch. - Lower the `postSpacing` inspector minimum from 0.2 to 0.05 m. - 2D floor plan reuses the solid-panel marker for horizontal. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
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.
What
Adds a
horizontalfence style — the composite-cladding look (horizontal boards stacked between square, capped posts) that none of the existing styles could produce. Until nowslat,rail, andprivacywere all vertical pickets between two end posts; they differed only in spacing/thickness factors.Changes
style: 'horizontal'—FenceStyleenum + inspector Style control.viewer/.../fence-system.tsx): newcreateHorizontalFenceParts— full-height square posts at everypostSpacing(not just the ends), horizontal boards run full-length (so they follow curved fences), reusing the existing kickboard + top-rail spans and the 4 paint slots (posts/infill/base/rail).postCapcontrol —none/flat/pyramid(default pyramid, matching typical post caps). Pyramid caps render as a 4-sided cone via a newshapeon the fence part. Rendered as a labelled dropdown so the options aren't a context-free switch.slatGapcontrol — reveal between boards. At0the infill collapses to one flush panel so the stacked-board edge seams don't read as faint lines.postCap+slatGapare horizontal-only (visibleIf).0.2 → 0.05 m(step0.05 → 0.01), all styles.horizontal.Notes
slatGap,postCap) carry Zod defaults, so existing scenes load unchanged; the defaults only affect the horizontal builder, soslat/rail/privacyfences are visually untouched.fence-stylevariant randomizer is left as-is (stillprivacy/slat/rail) — intentionally out of scope.Testing
tsc --noEmitclean oncore,nodes,viewer.biome checkintroduces no new warnings (the 2 remaininguseOptionalChainhints pre-date this PR).🤖 Generated with Claude Code