graphics.js revision 16ce43caceb6f25725afe3076c38ccfa3b55fbb9
91cdc6c06e37ed5336e3e5f81dc8a6f39c07b500pjrm * The Graphics widget provides an api for basic drawing operations.
91cdc6c06e37ed5336e3e5f81dc8a6f39c07b500pjrm * @module graphics
var matrix = this,
transforms = [],
args,
_defaults: {
return val;
* @param {Object} config Specified key value pairs for matrix properties. If a property is not explicitly defined in the config argument,
prop;
scale: function(x, y) {
skew: function(x, y) {
skewX: function(x) {
this.skew(x);
skewY: function(y) {
this.skew(null, y);
toCSSText: function() {
var matrix = this,
dy;
return text;
toFilterText: function() {
var matrix = this,
return text;
return deg;
return rad;
return val;
var matrix = [],
translate: function(x, y) {
* AttributeLite provides Attribute-like getters and setters for shape classes in the Graphics module. It provides a get/set API without the event infastructure.
AttributeLite = function()
* Initializes the attributes for a shape. If an attribute config is passed into the constructor of the host,
var host = this,
attr,
fn,
for(i in attrConfig)
for(i in attrConfig)
var host = this,
if(getter)
* @param {String|Object} name The name of the attribute. Alternatively, an object of key value pairs can
* @param {Any} value The value to set the attribute to. This value is ignored if an object is received as
for(i in attr)
* @param {String|Object} name The name of the attribute. Alternatively, an object of key value pairs can
* @param {Any} value The value to set the attribute to. This value is ignored if an object is received as
var host = this,
args,
if(setter)
var host = this,
init: function()
fireOnce:true