API
Use the task guides for the workflow and the component reference for exact arguments, return values, and failures. Sevgi is released as focused gems, so consumers can depend only on the layers they need.
Find the right reference
| Task | Guide | API owner |
|---|---|---|
| Use the full SVG facade | Library Mode | sevgi |
| Construct and render SVG | SVG Essentials | sevgi-graphics |
| Extend or embed the drawing DSL | Library Mode | sevgi-graphics and sevgi |
Execute trusted .sevgi source | Execution | sevgi |
| Convert, inspect, or import SVG/XML | Derender | sevgi-derender |
| Calculate geometry or hatch shapes | Geometry | sevgi-geometry |
| Fit rulers, grids, and tiles | Sundries | sevgi-sundries |
| Export SVG to PDF or PNG | Export | sevgi-sundries |
| Reuse precision, discovery, shell, or status behavior | Functions | sevgi-function |
The executable DSL Catalog is the canonical inventory of drawing words. It complements the YARD component
references rather than being repeated in them. In the full toolkit, capitalized SVG-domain operations live on the
SVG facade and types live beneath SVG::; focused component references retain their conventional lowercase APIs.
Component index
sevgi— theSVGfacade, promoted script operations, execution, and the complete toolkit.sevgi-graphics— SVG documents, elements, and the drawing DSL.sevgi-standard— SVG element and attribute validation.sevgi-function— the supportedSevgi::Fextension toolbox and its returned values.sevgi-geometry— immutable geometry values and operations.sevgi-derender— SVG/XML parsing and Sevgi source generation.sevgi-sundries— grids, rulers, tiles, and export tools.sevgi-showcase— executable examples and documentation support APIs.