albert-svg

Dynamic SVG generation using Cassowary constraints

Usage no npm install needed!

<script type="module">
  import albertSvg from 'https://cdn.skypack.dev/albert-svg';
</script>

README

Albert

This project allows you to generate SVGs and layout their elements using the Cassowary constraint solver.

How to use

This project requires Node and NPM. To use it in your project, run:

npm install --save albert-svg

You can also use one of the pre-compiled bundles hosted on unpkg:

Examples on how to use Albert are in the examples directory.

To see them in action, clone the repository and run:

npm install
npm start

This starts a web server on http://localhost:8080 that serves the examples/ directory and the Albert bundle itself.

Building a bundle

Building the bundle requires Webpack, which in turn

If you have Node and NPM installed, build the bundle by running:

npm run build

Disclaimer

This is not an officially supported Google product.