Skip to main content

A library for rendering diagrams to SVG.

Project description

SVG Diagram

C++ Unit Tests Python Build & Test WASM Build & Test Deploy Docs to GitHub Pages Coverage Status PyPI version npm version

A library for rendering diagrams to SVG. This library does not provide any automatic layout for nodes and edges.

Document

Examples

Click the image to see the code that generated it:

Development

To enable tests, add the following to your CMake options:

-DGRAPH_LAYOUT_BUILD_TESTS=ON

Optional Requirements

By default, this library estimates text dimensions using approximations. For more accurate measurements, PangoCairo can be enabled.

To install PangoCairo:

MacOS:

brew install cairo pango pkg-config

Linux:

sudo apt install libcairo2-dev libpango1.0-dev pkg-config

To enable PangoCairo, add the following to your CMake options:

-DSVG_DIAGRAM_ENABLE_PANGO_CAIRO=ON

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sp_svg_diagram-0.1.4.tar.gz (25.8 kB view details)

Uploaded Source

File details

Details for the file sp_svg_diagram-0.1.4.tar.gz.

File metadata

  • Download URL: sp_svg_diagram-0.1.4.tar.gz
  • Upload date:
  • Size: 25.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.20

File hashes

Hashes for sp_svg_diagram-0.1.4.tar.gz
Algorithm Hash digest
SHA256 4265b597fcd76eb9d12ae22806244a66effa17776a371d227e23babca7549466
MD5 fd691267b4c5e64d1031b887fc9f6688
BLAKE2b-256 d9cb707b180a7bf27e5560980d2437a4d790b054d60140c10f2c7fced8112ec4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page