Skip to content

use library cell margins to preserve schematic section dividers - #3646

Merged
mohan-bee merged 4 commits into
repro/schematic-section-small-gap-dividersfrom
fix/schematic-section-small-gap-dividers
Sep 5, 2026
Merged

use library cell margins to preserve schematic section dividers#3646
mohan-bee merged 4 commits into
repro/schematic-section-small-gap-dividersfrom
fix/schematic-section-small-gap-dividers

Conversation

@mohan-bee

@mohan-bee mohan-bee commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

motivation
compact schematic sections lose their dividers when core expands their bounds before boundary calculation.

before
the real benchmark's four expanded sections produce zero dividers in the reproduction snapshot.

after
core uses the published calculate-cell-boundaries 0.0.21 release and passes raw section bounds with a one millimeter preferred margin. the library owns margin handling. the real-board snapshot shows three dividers forming four sections, and the three protected section snapshots remain unchanged.

@vercel

vercel Bot commented Sep 4, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
tscircuit-core-benchmarks Ready Ready Preview Sep 5, 2026 6:12pm UTC

Request Review

@imrishabh18 imrishabh18 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Add snapshot of the reference you are trying to fix and match with

@seveibar seveibar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

doesn't this fix belong in caclulateCellBoundaries? we don't want algorithm code in core generally

@mohan-bee mohan-bee changed the title preserve schematic section dividers when cell margins connect sections use library cell margins to preserve schematic section dividers Sep 4, 2026
@mohan-bee
mohan-bee marked this pull request as draft September 4, 2026 21:42
@mohan-bee
mohan-bee marked this pull request as ready for review September 5, 2026 04:15
@mohan-bee
mohan-bee force-pushed the fix/schematic-section-small-gap-dividers branch from 29d7662 to b43a4bc Compare September 5, 2026 04:17
@mohan-bee
mohan-bee force-pushed the fix/schematic-section-small-gap-dividers branch from 006c4cc to 1d7805a Compare September 5, 2026 18:11
@mohan-bee
mohan-bee merged commit 550b44f into main Sep 5, 2026
16 checks passed
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.

3 participants