Chaining Support For Canvas API – chainvas

Advertise here with BSA


chainvas is a lightweight (1kb minified) JavaScript library that is built to make <canvas> API chainable (like the ones in jQuery, MooTools, etc.). And, it will work for any JavaScript APIs.

It adds methods to the prototype of CanvasRenderingContext2D and replaces the existing ones with a wrapper that calls the original function and returns this if and only if the function didn’t return undefined.

There are also extra helper methods like the ones for setting properties in a readable format, drawing circles and rounded rectangles.

chainvas

Special Downloads:
Ajaxed Add-To-Basket Scenarios With jQuery And PHP
Free Admin Template For Web Applications
jQuery Dynamic Drag’n Drop
ScheduledTweets

Advertisements:
Professional XHTML Admin Template ($15 Discount With The Code: WRD.)
Psd to Xhtml
SSLmatic – Cheap SSL Certificates (from $19.99/year)

Powered by Gewgley