This project allows you to generate SVGs and layout their elements using the Cassowary constraint solver.
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 the bundle requires Webpack, which in turn
If you have Node and NPM installed, build the bundle by running:
npm run build
This is not an officially supported Google product.