Skip to main content

A library for rendering diagrams to SVG.

Project description

SVG Diagram

C++ Unit Tests Python Build & Test ES 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.1.tar.gz (25.4 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: sp_svg_diagram-0.1.1.tar.gz
  • Upload date:
  • Size: 25.4 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.1.tar.gz
Algorithm Hash digest
SHA256 303d242597229082adb1f12693055f1483a99c4f73696b83e5abba8cdf04a3a8
MD5 3d433af78e87a049f4a3adbdb34aff03
BLAKE2b-256 7e9468aeb0c833f503aa0f9bda000446a392ed8980223b108d7fdf4a676f7bb3

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