We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There is not much to explain as the plugins philosophy is much like in jQuery
CanvasQuery.Wrapper.prototype.plugin = function() { }
Within a plugin this is bound to the wrapper - so the chainability is maintained
CanvasQuery.Wrapper.prototype.plugin = function(x, y, w ,h) { this.lineWidth(32).strokStyle("#ff0000").strokeRect(x, y, w, h); }
CanvasQuery.Wrapper.prototype.plugin = function() { this.canvas.width = 640; this.canvas.height = 480; this.context.fillRect(0, 0, 640, 480); }
There was an error while loading. Please reload this page.