Inflate (positive) or deflate (negative) a rect to honor align when
stroking it. Returns the rect to pass to a stroked-rect renderer. width
is the stroke width (defaults to 1 to match canvas).
Pure geometry helper — no rendering side effects. Used by path
tessellation and the selection overlay to produce a rect whose
center-aligned stroke visually coincides with the requested
inner/outer-aligned stroke of the original rect.
Inflate (positive) or deflate (negative) a rect to honor
alignwhen stroking it. Returns the rect to pass to a stroked-rect renderer.widthis the stroke width (defaults to 1 to match canvas).Pure geometry helper — no rendering side effects. Used by path tessellation and the selection overlay to produce a rect whose center-aligned stroke visually coincides with the requested inner/outer-aligned stroke of the original rect.