//>>built define("dojox/drawing/plugins/drawing/Silverlight",["dijit","dojo","dojox"],function(_1,_2,_3){ _2.provide("dojox.drawing.plugins.drawing.Silverlight"); _3.drawing.plugins.drawing.Silverlight=_3.drawing.util.oo.declare(function(_4){ if(_3.gfx.renderer!="silverlight"){ return; } this.mouse=_4.mouse; this.stencils=_4.stencils; this.anchors=_4.anchors; this.canvas=_4.canvas; this.util=_4.util; _2.connect(this.stencils,"register",this,function(_5){ var c1,c2,c3,c4,c5,_6=this; var _7=function(){ c1=_5.container.connect("onmousedown",function(_8){ _8.superTarget=_5; _6.mouse.down(_8); }); }; _7(); c2=_2.connect(_5,"setTransform",this,function(){ }); c3=_2.connect(_5,"onBeforeRender",function(){ }); c4=_2.connect(_5,"onRender",this,function(){ }); c5=_2.connect(_5,"destroy",this,function(){ _2.forEach([c1,c2,c3,c4,c5],_2.disconnect,_2); }); }); _2.connect(this.anchors,"onAddAnchor",this,function(_9){ var c1=_9.shape.connect("onmousedown",this.mouse,function(_a){ _a.superTarget=_9; this.down(_a); }); var c2=_2.connect(_9,"disconnectMouse",this,function(){ _2.disconnect(c1); _2.disconnect(c2); }); }); this.mouse._down=function(_b){ var _c=this._getXY(_b); var x=_c.x-this.origin.x; var y=_c.y-this.origin.y; x*=this.zoom; y*=this.zoom; this.origin.startx=x; this.origin.starty=y; this._lastx=x; this._lasty=y; this.drawingType=this.util.attr(_b,"drawingType")||""; var id=this._getId(_b); var _d={x:x,y:y,id:id}; this.onDown(_d); this._clickTime=new Date().getTime(); if(this._lastClickTime){ if(this._clickTime-this._lastClickTime