albert-svg
v0.1.2
Published
Dynamic SVG generation using Cassowary constraints
Downloads
830
Maintainers
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:
- https://unpkg.com/albert-svg/dist/albert.js
- https://unpkg.com/albert-svg/dist/albert.min.js
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.