Skip to main content

Module render

Module render 

Source
Expand description

Unified tiny-skia renderer for both native and WASM targets.

This module implements the full rendering pipeline: viewport transform, element drawing (shapes, lines, text placeholders), fill patterns (solid, hachure, crosshatch), selection visuals, and hit testing.

§Text rendering

TODO: Text is currently rendered as a colored placeholder rectangle with approximate bounds. Full glyph rendering requires cosmic-text integration, which will be added in a follow-up.

Structs§

RenderConfig
Configuration for the renderer.
Renderer
The renderer. Stateless aside from config — call render() each frame.

Enums§

HandlePosition
Resize handle position on a selection box.

Constants§

ARROWHEAD_ANGLE
ARROWHEAD_LENGTH
Arrowhead geometry