Re-exports§
pub use cli::run_cli;
Modules§
Structs§
- Bounds
- Document
- Fill
Style - Font
Style - Free
Draw Element - Line
Element - Point
- Render
Config - Configuration for the renderer.
- Renderer
- The renderer. Stateless aside from config — call
render()each frame. - Shape
Element - Stroke
Style - Text
Element - View
State
Enums§
- Arrowhead
- Element
- Fill
Type - Handle
Position - Resize handle position on a selection box.
- Text
Align
Constants§
- DEFAULT_
FILL_ COLOR - DEFAULT_
FONT_ FAMILY - DEFAULT_
FONT_ SIZE - DEFAULT_
HACHURE_ ANGLE - DEFAULT_
HACHURE_ GAP - DEFAULT_
STROKE_ COLOR - DEFAULT_
STROKE_ WIDTH
Functions§
- export_
png - Export a document as PNG bytes at the default 2x scale.
- export_
png_ with_ scale - Export a document as PNG bytes at a given scale factor.
- export_
svg