CanvasGraphic.js revision bf801d6851ecf7ed14742ef3639a077daecb5cf8
486N/A * Whether or not to render the `Graphic` automatically after to a specified parent node after init. This can be a Node instance or a CSS selector string.
486N/A * Object containing size and coordinate data for the content of a Graphic in relation to the graphic instance's position.
486N/A return this._contentBounds;
486N/A * Determines how the size of instance is calculated. If true, the width and height are determined by the size of the contents.
486N/A * If false, the width and height values are either explicitly set or determined by the size of the parent node's dimensions.
autoSize: {
value: false
resizeDown: {
getter: function()
return this._resizeDown;
this._redraw();
return val;
getter: function()
return this._x;
if(this._node)
return val;
getter: function()
return this._y;
if(this._node)
return val;
* Indicates whether or not the instance will automatically redraw after a change is made to a shape.
autoDraw: {
value: true
visible: {
value: true,
return val;
getXY: function()
xy;
if(node)
return xy;
_resizeDown: false,
this._shapes = {};
this._redrawQueue = {};
this._contentBounds = {
if(render)
destroy: function()
this._removeAllShapes();
return shape;
this._redraw();
return shape;
removeAllShapes: function()
for(i in shapes)
this._shapes = {};
var child;
if(shapes)
for(i in shapes)
if(shape)
return shape;
return val;
_shapeClass: {
return shape;
method();
this._redraw();
_getDocFrag: function()
if(!this._frag)
return this._frag;
_redraw: function()
if(this._frag)
this._frag = null;
var shapeBox,
box;
this._redraw();
_getUpdatedContentBounds: function()
var bounds,
box = {
for(i in queue)
return box;