Skip to content

Conversation

@techmannih
Copy link
Member

@techmannih techmannih commented Dec 3, 2025

https://3d-viewer-51f3n7jrw-tscircuit.vercel.app/?path=/story/fauxboard--faux-board

Summary

Adds a new appearance toggle to show/hide the entire faux board when no <board> element is defined in the circuit JSON. This is distinct from the existing "Board Body" toggle, which only hides the board body while leaving other elements (plated holes, pads, etc.) visible.

Changes

  • Added "Faux Board" toggle in Appearance menu that only appears when a faux board is detected
  • When disabled, completely hides the faux board including:
    • Board body
    • Plated holes
    • Pads, vias, and copper pours
    • Traces and silkscreen layers
  • Implemented in both Manifold and JSCAD rendering engines
  • Components remain visible regardless of faux board visibility setting

Technical Details

  • Uses existing fauxBoard visibility state in LayerVisibilityContext
  • Menu item conditionally rendered based on FauxBoardContext.isFauxBoard
  • Updated BoardMeshes component to properly clean up meshes when visibility is disabled
  • Updated both CadViewerManifold and CadViewerJscad to respect the faux board visibility setting

FIX https://linear.app/tscircuit/issue/TSC-178/create-appearance-toggle-to-show-hide-or-enable-disable-faux-board

@vercel
Copy link

vercel bot commented Dec 3, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
3d-viewer Ready Ready Preview Comment Dec 5, 2025 1:34pm

Copy link
Contributor

@seveibar seveibar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unnecessary context createdc

Copy link
Contributor

@seveibar seveibar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this feature was well-scoped, hiding board body should be good enough for hiding the faux board

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.

2 participants