//>>built define(["dojo/_base/kernel","dojo/_base/lang","./Annotation","./Anchor"],function(b){b.getObject("sketch",!0,dojox);var d=dojox.sketch;d.PreexistingAnnotation=function(a,b){d.Annotation.call(this,a,b);this.transform={dx:0,dy:0};this.start={x:0,y:0};this.end={x:200,y:200};this.radius=8;this.textPosition={x:196,y:196};this.textOffset=4;this.textAlign="end";this.labelShape=this.rectShape=null;this.anchors.start=new d.Anchor(this,"start");this.anchors.end=new d.Anchor(this,"end")};d.PreexistingAnnotation.prototype= new d.Annotation;b=d.PreexistingAnnotation.prototype;b.constructor=d.PreexistingAnnotation;b.type=function(){return"Preexisting"};b.getType=function(){return d.PreexistingAnnotation};b._pos=function(){var a=Math.max(this.start.x,this.end.x),b=Math.max(this.start.y,this.end.y);this.start={x:Math.min(this.start.x,this.end.x),y:Math.min(this.start.y,this.end.y)};this.end={x:a,y:b};this.textPosition={x:this.end.x-this.textOffset,y:this.end.y-this.textOffset}};b.apply=function(a){if(a){a.documentElement&& (a=a.documentElement);this.readCommonAttrs(a);for(var b=0;b