e.target.parentNode.initialize
dojo.require("dojox.sketch.Figure");
defined in dojox/sketch/Figure.js
Usage
function (node) (view source)
this.node=node;
this.surface=dojox.gfx.createSurface(node, this.size.w, this.size.h);
this.surface.createRect({ x:0, y:0, width:this.size.w, height:this.size.h })
.setFill("white");
this.group=this.surface.createGroup();
// kill any dragging events.
this._cons=[];
this._cons.push(dojo.connect(this.node, "ondragstart", dojo, "stopEvent"));
this._cons.push(dojo.connect(this.node, "onselectstart", dojo, "stopEvent"));
// hook up the drag system.
this._cons.push(dojo.connect(this.surface.getEventSource(), 'onmousedown', this._md));
this._cons.push(dojo.connect(this.surface.getEventSource(), 'onmousemove', this._mm));
this._cons.push(dojo.connect(this.surface.getEventSource(), 'onmouseup', this._mu));
this._cons.push(dojo.connect(this.surface.getEventSource(), 'ondblclick', this._dblclick));
this._cons.push(dojo.connect(this.surface.getEventSource().ownerDocument, 'onkeydown', this._keydown));
// rect hack. Fcuking VML>
this.group.createRect({ x:0, y:0, width:this.size.w, height:this.size.h });
this.image=this.group.createImage({ width:this.size.w, height:this.size.h, src:this.imageSrc });
parameter | type | description |
---|
node | | |
Only private and/or inherited properties are available.