Skip to content

fontlabapp.components.graph.elastic.physics · declarations 001

Back to fontlabapp.components.graph.elastic.physics

fixed

fixed(part: int) -> Graph

Return each original's exact ordered nine-node graph and initial layout.

geometry

geometry(source: Point, dest: Point, part: int) -> tuple | None

Return clipped endpoints and original directional triangle vertices.

step

step(points: tuple[Point, ...], edges: tuple, part: int, held: int | None = None, *, deadline: float | None = None) -> tuple[Point, ...]

Compute synchronously from one complete position snapshot; hold dragged node.

zoom_factor

zoom_factor(part: int, zoom: float, *, key: int = 0, wheel: int | None = None) -> float

Retain original zoom direction and endpoint inclusivity per profile.