Albert
Albert is a JavaScript library that allows you to generate SVGs and layout their elements using the Cassowary constraint solver.
Usage
Install it from NPM:
npm install albert-svg
or use the pre-built version from unpkg:
https://unpkg.com/albert-svg/dist/albert.js
https://unpkg.com/albert-svg/dist/albert.min.js
You can of course build this version from source from GitHub:
git clone https://github.com/evoL/albert.git npm install npm run build # The dist/ directory appears.
Examples
Authored by RafaĆ Hirsz.
Source code on GitHub
Copyright 2019 Google LLC. This is not an official Google product.