vibesketch.render.surfaces

Validated schematic surface images. Publication output never trusts canvas SVG (#140).

Functions

anchor_points(node)

canvas_image(surface, species, at, width, height)

surface_of(node)

Read bounded metadata only; refuse corrupt recognised surface objects.

surface_picture(surface, species[, aspect])

Schematic geometry in a unit box; dimensions are labels, never physical coordinates.

vibesketch.render.surfaces.surface_of(node)[source]

Read bounded metadata only; refuse corrupt recognised surface objects.

Parameters:

node (dict[str, Any])

Return type:

Surface | None

vibesketch.render.surfaces.anchor_points(node)[source]
Parameters:

node (dict[str, Any])

Return type:

dict[str, tuple[float, float, float, float]]

vibesketch.render.surfaces.surface_picture(surface, species, aspect=1)[source]

Schematic geometry in a unit box; dimensions are labels, never physical coordinates.

Parameters:
Return type:

Picture

vibesketch.render.surfaces.canvas_image(surface, species, at, width, height)[source]
Parameters:
Return type:

dict[str, Any]