API
Use the task guides for the workflow and the component reference for exact arguments, return values, and failures. Sumi is released as focused gems, so consumers can depend only on the layers they need.
Find the right reference
| Task | Guide | Component |
|---|---|---|
| Use scripts, the SVG facade, or trusted source execution | Usage | sumie |
| Construct, profile, and extend SVG documents | Documents | sumi-graphics |
| Compose reusable drawing code | Compose | sumi-graphics and sumie |
| Convert, inspect, or import SVG/XML | Derender | sumi-derender |
| Calculate geometry or hatch shapes | Geometry | sumi-geometry |
| Fit rulers, grids, and tiles | Layout | sumi-sundries |
| Render or write SVG, PDF, and PNG | Output | sumi-graphics and sumi-sundries |
| Reuse precision, discovery, shell, or status behavior | Functions | sumi-function |
The executable DSL Catalog is the canonical inventory of drawing words. It complements the YARD component
references instead of repeating them. In the full toolkit, capitalized SVG-domain operations live on the SVG facade.
Types live beneath SVG::. Focused component references retain their conventional lowercase APIs.
Stability
The documented DSL, component references, and runnable examples form the public API. Internal constants, registries, generated helpers, caches, and undocumented aliases can change without notice.
Use SVG for library documents, capitalized methods on the SVG facade for operations, and SVG:: names for
types. Advanced extensions can also rely on documented Sumi::F methods and their public return values.
Pin the Sumi version when generated documents must be reproducible. Inspect the generated SVG after an upgrade.
Component index
sumie: theSVGfacade, promoted script operations, execution, and the complete toolkit.sumi-graphics: SVG documents, elements, and the drawing DSL.sumi-standard: SVG element and attribute validation.sumi-function: the supportedSumi::Fextension toolbox and its returned values.sumi-geometry: immutable geometry values and operations.sumi-derender: SVG/XML parsing and Sumi source generation.sumi-sundries: grids, rulers, tiles, and export tools.sumi-showcase: executable examples and documentation support APIs.