Skip to main content

Crate draw

Crate draw 

Source

Re-exports§

pub use cli::run_cli;

Modules§

cli
export_png
export_svg
storage

Structs§

Bounds
Document
FillStyle
FontStyle
FreeDrawElement
LineElement
Point
RenderConfig
Configuration for the renderer.
Renderer
The renderer. Stateless aside from config — call render() each frame.
ShapeElement
StrokeStyle
TextElement
ViewState

Enums§

Arrowhead
Element
FillType
HandlePosition
Resize handle position on a selection box.
TextAlign

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