Skip to content Search Apps Documentation Source Content File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

README.md

1.20 Kb · 29 lines

gno.land/p/moul/svg/v0

Minimalist, extensible SVG generation library for Gno.

The canvas style map is backed by gno.land/p/nt/bptree/v0: a B+ tree packs many entries per persisted node, so styles cost less storage and inserts spend less gas than an AVL backing would.

Compatibility caveats (from the in-place-mutating B+ tree backing):

  • do not call AddStyle from inside a Canvas.String/Render iteration;
  • do not copy a non-zero Canvas by value once styles have been added — the copies would share live tree nodes.

Part of moul/gno-contracts — moul's versioned gno.land contracts. See the repository for the full catalog, build/test tooling, and usage.

Dependency graph:

gno.land/p/moul/svg/v0 dependency graph

⚠️ Disclaimer: provided as-is, without warranty; not security-audited. Full disclaimer: DISCLAIMER.