Files
figcraft/docs
BFlat fb7d241103 fix(render): touching rectangles leave no hairline where they meet (#544) (#2927)
* fix(render): touching rectangles leave no hairline where they meet (#544)

* fix(render): snap a box side only where neighbours meet its whole length (#544)

A side moved when any part of it touched a sibling, so a long box beside
a short one lost the exact coverage of the part touching nothing. Edges
that differed by under 1/4096 unit also counted as shared, closing
sub-pixel gaps at high zoom.

Now a side snaps only when sibling sides within a sixteenth of a device
pixel cover its whole length. Sides that match round to the nearest
pixel alike; a short side against a longer one rounds outward over it
and the longer one stays exact.

* fix(render): round a short side outward only over opaque boxes (#544)

A short side meeting part of a longer one rounds outward over it, so
the shared pixel strip is drawn by both boxes. With a translucent fill
or node opacity that strip showed darker. It now rounds outward only
when the box and every neighbour on that line are opaque and normally
blended; otherwise that side keeps its exact edge.

* fix(render): sides that meet round from one shared line (#544)

Sides within the tolerance of each other counted as shared but each
rounded its own position, so a pair straddling a half pixel landed on
different whole pixels and left a one-pixel gap. Matching sides now all
round the same line, the lowest of their positions.

* fix(render): tiny layers in the zoomed-out preview snap shared sides too (#544)

Rectangles under two device pixels skip splat_fills and go straight to
splat_subtree, so a block of them still showed a lighter seam far
zoomed out. splat_subtree now fills the snapped box as well, except
under a translucent parent, whose opacity it applies to each layer on
its own.

* fix(render): leave layers the editor draws itself out of shared edges (#544)

A sibling in the render's skip list isn't drawn, so a box beside it
kept its exact edge rather than snapping to meet it.
2026-12-03 09:49:53 +07:00
..