For full documentation and interactive examples, see pablojs.com.
Pablo focuses on simplicity and performance, targeting modern browsers for both desktop and mobile.
SVG has the potential to fulfil everything that Flash did for vector graphics on the web. However, SVG is severely behind Flash in terms of its developer tools. Pablo is a tiny offering to this cause.
- By Premasagar Rose (Dharmafly)
- Website: pablojs.com
- Repo: github.com/premasagar/pablo
- Open source: MIT license
How it works
Both SVG or HTML can be used in Pablo, although the main focus is on SVG.
Pablo provides methods like
line() to create each kind of SVG element. It has methods for manipulating SVG and HTML, e.g. to change the appearance, size or position, and methods for filtering and sorting the elements.
It has a simple plugin system, allowing new functionality to be added.
Which browsers are supported
Basic SVG is supported in all modern browsers, including Internet Explorer 9 and mobile web browsers ([browser support table][browsers]).
Except in a couple of instances, Pablo doesn't attempt to workaround the lack of support in older browsers, although does let you know if the browser [is supported][issupported].
How it feels
Pablo's API is inspired by jQuery, Underscore, Backbone and Raphaël, although knowledge of these libraries isn't required. Using Pablo is to use SVG, so a growing knowledge of SVG goes hand-in-hand with using the library. See the Resources page for links and books on SVG.
See Pablo's API Reference for the details.
[Pull requests][pullrequests] are welcome.
To update the documentation on pablojs.com, fork the [dharmafly/pablo-docs][pablo-docs] repo, edit the Markdown files in the docs folder on the master branch, and then send a pull request with the changes.