Sha256: 6ca25b963e8488597665eff7ff64098a9fb5c23b022d04b28bfbca5ba01cab4e
Contents?: true
Size: 938 Bytes
Versions: 1
Compression:
Stored size: 938 Bytes
Contents
define("dojox/gfx/canvasext", [ "./_base", "./canvas"], function(gfx, canvas){ /*===== return { // summary: // A module that adds canvas-specific features to the gfx api. You should require this module // when your application specifically targets the HTML5 Canvas renderer. } =====*/ var ext = gfx.canvasext = {}; canvas.Surface.extend({ getImageData: function(rect){ // summary: // Returns the canvas pixel buffer. // rect: dojox/gfx.Rectangle // The canvas area. // flush pending renders queue, if any if("pendingRender" in this){ this._render(true); // force render even if there're pendingImages } return this.rawNode.getContext("2d").getImageData(rect.x, rect.y, rect.width, rect.height); }, getContext: function(){ // summary: // Returns the surface CanvasRenderingContext2D. return this.rawNode.getContext("2d"); } }); return ext; });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dojox-rails-0.11.0 | vendor/assets/javascripts/gfx/canvasext.js.uncompressed.js |