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

TaskGuideComponent
Use scripts, the SVG facade, or trusted source executionUsagesumie
Construct, profile, and extend SVG documentsDocumentssumi-graphics
Compose reusable drawing codeComposesumi-graphics and sumie
Convert, inspect, or import SVG/XMLDerendersumi-derender
Calculate geometry or hatch shapesGeometrysumi-geometry
Fit rulers, grids, and tilesLayoutsumi-sundries
Render or write SVG, PDF, and PNGOutputsumi-graphics and sumi-sundries
Reuse precision, discovery, shell, or status behaviorFunctionssumi-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