PathrockNetwork Gno Explorer
HomeBlocksTransactionsRealmsPackagesValidatorsAnalytics

PathrockNetwork Gno Explorer — an independent explorer for Gno.land Mainnet (gnoland-1), operated by PathrockNetwork. Not an official Gno.land service.

gnowebarchive RPC

gno.land/p/moul/svg/v0

Package
Open in gnoweb ↗

Overview

Kind
Pure package
Name
v0
Namespace
moul / svg
Files
4 (README)(gnomod.toml)
Exported functions
n/a — not supported for pure packages by the node (vm/qfuncs)
Module
gno.land/p/moul/svg/v0
gno
0.9

Files (4)

  • README.mdmarkdown
  • gnomod.tomltoml
  • doc.gnogno
  • svg.gnogno
README.mdPreviewRaw
# `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`](https://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.

<!-- BEGIN GNOCONTRACTS FOOTER (generated by `make readmes`; do not edit below) -->

---

Part of **[moul/gno-contracts](https://github.com/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](https://raw.githubusercontent.com/moul/gno-contracts/main/_assets/gno.land/p/moul/svg/v0/deps.png)

> ⚠️ **Disclaimer:** provided as-is, without warranty; not security-audited. Full disclaimer: [DISCLAIMER](https://github.com/moul/gno-contracts/blob/main/DISCLAIMER.md).

<!-- END GNOCONTRACTS FOOTER -->

Functions

not supported for pure packages by the node (vm/qfuncs)

Signatures reconstructed verbatim from vm/qfuncs — interface params keep their inline definitions.