a:50:{s:9:"#provides";s:34:"dojox.sketch.SingleArrowAnnotation";s:9:"#resource";s:31:"sketch/SingleArrowAnnotation.js";s:9:"#requires";a:2:{i:0;a:2:{i:0;s:6:"common";i:1;s:23:"dojox.sketch.Annotation";}i:1;a:2:{i:0;s:6:"common";i:1;s:19:"dojox.sketch.Anchor";}}s:44:"dojox.sketch.SingleArrowAnnotation.prototype";a:1:{s:7:"summary";s:0:"";}s:56:"dojox.sketch.SingleArrowAnnotation.prototype.constructor";a:1:{s:7:"summary";s:0:"";}s:34:"dojox.sketch.SingleArrowAnnotation";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:6:"figure";a:1:{s:4:"type";s:0:"";}s:2:"id";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:592:" ta.Annotation.call(this, figure, id); this.transform={ dx:0, dy:0 }; this.start={x:0, y:0}; this.control={x:100, y:-50}; this.end={x:200, y:0}; this.textPosition={ x:0, y:0 }; this.textOffset=4; this.textAlign="middle"; this.textYOffset=10; this.rotation=0; // this.property('label',this.id); // this.label=this.id; this.pathShape=null; this.arrowhead=null; this.arrowheadGroup=null; this.labelShape=null; this.anchors.start=new ta.Anchor(this, "start"); this.anchors.control=new ta.Anchor(this, "control"); this.anchors.end=new ta.Anchor(this, "end");";s:9:"classlike";b:1;s:7:"summary";s:0:"";}s:44:"dojox.sketch.SingleArrowAnnotation.transform";a:2:{s:8:"instance";s:34:"dojox.sketch.SingleArrowAnnotation";s:7:"summary";s:0:"";}s:40:"dojox.sketch.SingleArrowAnnotation.start";a:2:{s:8:"instance";s:34:"dojox.sketch.SingleArrowAnnotation";s:7:"summary";s:0:"";}s:42:"dojox.sketch.SingleArrowAnnotation.control";a:2:{s:8:"instance";s:34:"dojox.sketch.SingleArrowAnnotation";s:7:"summary";s:0:"";}s:38:"dojox.sketch.SingleArrowAnnotation.end";a:2:{s:8:"instance";s:34:"dojox.sketch.SingleArrowAnnotation";s:7:"summary";s:0:"";}s:47:"dojox.sketch.SingleArrowAnnotation.textPosition";a:2:{s:8:"instance";s:34:"dojox.sketch.SingleArrowAnnotation";s:7:"summary";s:0:"";}s:45:"dojox.sketch.SingleArrowAnnotation.textOffset";a:2:{s:8:"instance";s:34:"dojox.sketch.SingleArrowAnnotation";s:7:"summary";s:0:"";}s:44:"dojox.sketch.SingleArrowAnnotation.textAlign";a:2:{s:8:"instance";s:34:"dojox.sketch.SingleArrowAnnotation";s:7:"summary";s:0:"";}s:46:"dojox.sketch.SingleArrowAnnotation.textYOffset";a:2:{s:8:"instance";s:34:"dojox.sketch.SingleArrowAnnotation";s:7:"summary";s:0:"";}s:43:"dojox.sketch.SingleArrowAnnotation.rotation";a:2:{s:8:"instance";s:34:"dojox.sketch.SingleArrowAnnotation";s:7:"summary";s:0:"";}s:44:"dojox.sketch.SingleArrowAnnotation.pathShape";a:2:{s:8:"instance";s:34:"dojox.sketch.SingleArrowAnnotation";s:7:"summary";s:0:"";}s:44:"dojox.sketch.SingleArrowAnnotation.arrowhead";a:2:{s:8:"instance";s:34:"dojox.sketch.SingleArrowAnnotation";s:7:"summary";s:0:"";}s:49:"dojox.sketch.SingleArrowAnnotation.arrowheadGroup";a:2:{s:8:"instance";s:34:"dojox.sketch.SingleArrowAnnotation";s:7:"summary";s:0:"";}s:45:"dojox.sketch.SingleArrowAnnotation.labelShape";a:2:{s:8:"instance";s:34:"dojox.sketch.SingleArrowAnnotation";s:7:"summary";s:0:"";}s:48:"dojox.sketch.SingleArrowAnnotation.anchors.start";a:2:{s:8:"instance";s:34:"dojox.sketch.SingleArrowAnnotation";s:7:"summary";s:0:"";}s:50:"dojox.sketch.SingleArrowAnnotation.anchors.control";a:2:{s:8:"instance";s:34:"dojox.sketch.SingleArrowAnnotation";s:7:"summary";s:0:"";}s:46:"dojox.sketch.SingleArrowAnnotation.anchors.end";a:2:{s:8:"instance";s:34:"dojox.sketch.SingleArrowAnnotation";s:7:"summary";s:0:"";}s:29:"ta.SingleArrowAnnotation.type";a:4:{s:4:"type";s:8:"Function";s:6:"source";s:42:" p.type=function(){ return 'SingleArrow'; ";s:9:"prototype";s:24:"ta.SingleArrowAnnotation";s:7:"summary";s:0:"";}s:32:"ta.SingleArrowAnnotation.getType";a:4:{s:4:"type";s:8:"Function";s:6:"source";s:56:" p.getType=function(){ return ta.SingleArrowAnnotation; ";s:9:"prototype";s:24:"ta.SingleArrowAnnotation";s:7:"summary";s:0:"";}s:29:"ta.SingleArrowAnnotation._rot";a:5:{s:4:"type";s:8:"Function";s:6:"source";s:1261:"dojo.provide("dojox.sketch.SingleArrowAnnotation"); dojo.require("dojox.sketch.Annotation"); dojo.require("dojox.sketch.Anchor"); (function(){ var ta=dojox.sketch; ta.SingleArrowAnnotation=function(figure, id){ ta.Annotation.call(this, figure, id); this.transform={ dx:0, dy:0 }; this.start={x:0, y:0}; this.control={x:100, y:-50}; this.end={x:200, y:0}; this.textPosition={ x:0, y:0 }; this.textOffset=4; this.textAlign="middle"; this.textYOffset=10; this.rotation=0; // this.property('label',this.id); // this.label=this.id; this.pathShape=null; this.arrowhead=null; this.arrowheadGroup=null; this.labelShape=null; this.anchors.start=new ta.Anchor(this, "start"); this.anchors.control=new ta.Anchor(this, "control"); this.anchors.end=new ta.Anchor(this, "end"); }; ta.SingleArrowAnnotation.prototype=new ta.Annotation; var p=ta.SingleArrowAnnotation.prototype; p.constructor=ta.SingleArrowAnnotation; p.type=function(){ return 'SingleArrow'; }; p.getType=function(){ return ta.SingleArrowAnnotation; }; // helper functions p._rot=function(){ // arrowhead rotation var opp=this.control.y-this.start.y; var adj=this.control.x-this.start.x; //if(!adj){ adj=1; } this.rotation=Math.atan2(opp,adj);";s:9:"prototype";s:24:"ta.SingleArrowAnnotation";s:7:"private";b:1;s:7:"summary";s:0:"";}s:33:"ta.SingleArrowAnnotation.rotation";a:2:{s:8:"instance";s:24:"ta.SingleArrowAnnotation";s:7:"summary";s:0:"";}s:29:"ta.SingleArrowAnnotation._pos";a:5:{s:4:"type";s:8:"Function";s:6:"source";s:2088:"dojo.provide("dojox.sketch.SingleArrowAnnotation"); dojo.require("dojox.sketch.Annotation"); dojo.require("dojox.sketch.Anchor"); (function(){ var ta=dojox.sketch; ta.SingleArrowAnnotation=function(figure, id){ ta.Annotation.call(this, figure, id); this.transform={ dx:0, dy:0 }; this.start={x:0, y:0}; this.control={x:100, y:-50}; this.end={x:200, y:0}; this.textPosition={ x:0, y:0 }; this.textOffset=4; this.textAlign="middle"; this.textYOffset=10; this.rotation=0; // this.property('label',this.id); // this.label=this.id; this.pathShape=null; this.arrowhead=null; this.arrowheadGroup=null; this.labelShape=null; this.anchors.start=new ta.Anchor(this, "start"); this.anchors.control=new ta.Anchor(this, "control"); this.anchors.end=new ta.Anchor(this, "end"); }; ta.SingleArrowAnnotation.prototype=new ta.Annotation; var p=ta.SingleArrowAnnotation.prototype; p.constructor=ta.SingleArrowAnnotation; p.type=function(){ return 'SingleArrow'; }; p.getType=function(){ return ta.SingleArrowAnnotation; }; // helper functions p._rot=function(){ // arrowhead rotation var opp=this.control.y-this.start.y; var adj=this.control.x-this.start.x; //if(!adj){ adj=1; } this.rotation=Math.atan2(opp,adj); }; p._pos=function(){ // text position var offset=this.textOffset, x=0, y=0; var slope=this.calculate.slope(this.control, this.end); if(Math.abs(slope)>=1){ x=this.end.x+this.calculate.dx(this.control, this.end, offset); if(this.control.y>this.end.y){ y=this.end.y-offset; } else{ y=this.end.y+offset+this.textYOffset; } } else if(slope==0){ x=this.end.x+offset; y=this.end.y+this.textYOffset; } else { if(this.start.x>this.end.x){ x=this.end.x-offset; this.textAlign="end"; } else { x=this.end.x+offset; this.textAlign="start"; } if(this.start.y=1){ x=this.end.x+this.calculate.dx(this.control, this.end, offset); if(this.control.y>this.end.y){ y=this.end.y-offset; } else{ y=this.end.y+offset+this.textYOffset; } } else if(slope==0){ x=this.end.x+offset; y=this.end.y+this.textYOffset; } else { if(this.start.x>this.end.x){ x=this.end.x-offset; this.textAlign="end"; } else { x=this.end.x+offset; this.textAlign="start"; } if(this.start.y1?20:Math.floor(20/pct), w=pct>1?5:Math.floor(5/pct),h=pct>1?3:Math.floor(3/pct); this.arrowhead.setShape("M0,0 l"+l+",-"+w+" -"+h+","+w+" "+h+","+w+" Z"); } }";s:9:"prototype";s:24:"ta.SingleArrowAnnotation";s:7:"summary";s:0:"";}s:32:"ta.SingleArrowAnnotation._curPct";a:3:{s:8:"instance";s:24:"ta.SingleArrowAnnotation";s:7:"private";b:1;s:7:"summary";s:0:"";}s:32:"ta.SingleArrowAnnotation.getBBox";a:4:{s:4:"type";s:8:"Function";s:6:"source";s:285:" var x=Math.min(this.start.x, this.control.x, this.end.x); var y=Math.min(this.start.y, this.control.y, this.end.y); var w=Math.max(this.start.x, this.control.x, this.end.x)-x; var h=Math.max(this.start.y, this.control.y, this.end.y)-y; return { x:x, y:y, width:w, height:h };";s:9:"prototype";s:24:"ta.SingleArrowAnnotation";s:7:"summary";s:0:"";}s:34:"ta.SingleArrowAnnotation.serialize";a:4:{s:4:"type";s:8:"Function";s:6:"source";s:784:" var s=this.property('stroke'); var r=this.rotation*(180/Math.PI); r=Math.round(r*Math.pow(10,4))/Math.pow(10,4); return '' + '' + '' + '' + '' + '' + this.property('label') + '' + '';";s:9:"prototype";s:24:"ta.SingleArrowAnnotation";s:7:"summary";s:0:"";}s:12:"dojox.sketch";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:5:"dojox";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}}