Skip to main content

Module attachments

Module attachments 

Source
Expand description

Fragment attachments: a fragment canvas that later evidence tied rigidly onto another canvas. The solve pass records them (attach/<id> rows) and follows the chains to compare a keyframe’s raw canvas and pose with the canvas it is observed at today; the render pass walks the same chains.

Structs§

Attachment
One attach/<id> row: every placement on id maps onto target, shifted by (dx, dy).

Functions§

attachment_shift
The total rigid shift from id through its attachment chain to the canvas it resolves to.
render_shift
The render-time shift from id through its chain: each link’s measured offset plus how far its anchor node has since moved under graph relaxation (as of the attach frame), so an attached fragment follows a target that a later loop closure moved. Summed link by link as shift += dx + correction.
resolve_target
The canvas id finally resolves to through its attachment chain (a cycle stops at the first repeat).

Type Aliases§

Attachments
Fragment id → its attachment.