a:49:{s:9:"#provides";s:23:"dojox.sketch.Annotation";s:9:"#resource";s:20:"sketch/Annotation.js";s:9:"#requires";a:2:{i:0;a:2:{i:0;s:6:"common";i:1;s:19:"dojox.sketch.Anchor";}i:1;a:2:{i:0;s:6:"common";i:1;s:20:"dojox.sketch._Plugin";}}s:27:"dojox.sketch.AnnotationTool";a:4:{s:4:"type";s:8:"Function";s:6:"chains";a:2:{s:9:"prototype";a:1:{i:0;s:10:"ta._Plugin";}s:4:"call";a:1:{i:0;s:10:"ta._Plugin";}}s:9:"classlike";b:1;s:7:"summary";s:0:"";}s:39:"dojox.sketch.AnnotationTool.onMouseDown";a:5:{s:9:"prototype";s:27:"dojox.sketch.AnnotationTool";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"e";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:18:" this._omd=true;";s:7:"summary";s:0:"";}s:39:"dojox.sketch.AnnotationTool.onMouseMove";a:5:{s:9:"prototype";s:27:"dojox.sketch.AnnotationTool";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:1:"e";a:1:{s:4:"type";s:0:"";}s:4:"rect";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:334:" if(!this._omd){ return; } if(this._cshape){ this._cshape.setShape(rect); } else { this._cshape=this.figure.surface.createRect(rect) .setStroke({color:"#999", width:1, style:"ShortDot"}) .setFill([255,255,255,0.7]); this._cshape.getEventSource().setAttribute("shape-rendering","crispEdges"); }";s:7:"summary";s:0:"";}s:37:"dojox.sketch.AnnotationTool.onMouseUp";a:5:{s:9:"prototype";s:27:"dojox.sketch.AnnotationTool";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:1:"e";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:504:" if(!this._omd){ return; } this._omd=false; var f=this.figure; if(this._cshape){ f.surface.remove(this._cshape); delete this._cshape; } if(!(f._startPoint.x==e.pageX&&f._startPoint.y==e.pageY)){ // The minimum number of pixels one has to travel before a shape // gets drawn. var limit=10; if(Math.max( limit, Math.abs(f._absEnd.x-f._start.x), Math.abs(f._absEnd.y-f._start.y) )>limit){ this._create(f._start, f._end); } }";s:7:"summary";s:0:"";}s:35:"dojox.sketch.AnnotationTool._create";a:6:{s:9:"prototype";s:27:"dojox.sketch.AnnotationTool";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:5:"start";a:1:{s:4:"type";s:0:"";}s:3:"end";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:1787:"dojo.provide("dojox.sketch.Annotation"); dojo.require("dojox.sketch.Anchor"); dojo.require("dojox.sketch._Plugin"); (function(){ var ta=dojox.sketch; dojo.declare("dojox.sketch.AnnotationTool", ta._Plugin, { onMouseDown: function(e){ this._omd=true; }, onMouseMove: function(e,rect){ if(!this._omd){ return; } if(this._cshape){ this._cshape.setShape(rect); } else { this._cshape=this.figure.surface.createRect(rect) .setStroke({color:"#999", width:1, style:"ShortDot"}) .setFill([255,255,255,0.7]); this._cshape.getEventSource().setAttribute("shape-rendering","crispEdges"); } }, onMouseUp: function(e){ if(!this._omd){ return; } this._omd=false; var f=this.figure; if(this._cshape){ f.surface.remove(this._cshape); delete this._cshape; } if(!(f._startPoint.x==e.pageX&&f._startPoint.y==e.pageY)){ // The minimum number of pixels one has to travel before a shape // gets drawn. var limit=10; if(Math.max( limit, Math.abs(f._absEnd.x-f._start.x), Math.abs(f._absEnd.y-f._start.y) )>limit){ this._create(f._start, f._end); } } }, _create: function(start,end){ // create a new shape, needs to be accessible from the // dragging functions. var f=this.figure; var _=f.nextKey(); var a=new (this.annotation)(f, _); a.transform={ dx:start.x/f.zoomFactor, dy:start.y/f.zoomFactor }; a.end={ x:end.x/f.zoomFactor, y:end.y/f.zoomFactor }; if(a.control){ a.control={ x:Math.round((end.x/2)/f.zoomFactor), y:Math.round((end.y/2)/f.zoomFactor) }; } f.onBeforeCreateShape(a); a.initialize(); f.select(a); f.onCreateShape(a); f.history.add(ta.CommandTypes.Create,a);";s:7:"private";b:1;s:7:"summary";s:0:"";}s:32:"dojox.sketch.AnnotationTool._omd";a:3:{s:8:"instance";s:27:"dojox.sketch.AnnotationTool";s:7:"private";b:1;s:7:"summary";s:0:"";}s:35:"dojox.sketch.AnnotationTool._cshape";a:3:{s:8:"instance";s:27:"dojox.sketch.AnnotationTool";s:7:"private";b:1;s:7:"summary";s:0:"";}s:13:"p.constructor";a:1:{s:7:"summary";s:0:"";}s:6:"p.type";a:1:{s:7:"summary";s:0:"";}s:9:"p.getType";a:1:{s:7:"summary";s:0:"";}s:10:"p.onRemove";a:1:{s:7:"summary";s:0:"";}s:10:"p.property";a:1:{s:7:"summary";s:0:"";}s:18:"p.onPropertyChange";a:1:{s:7:"summary";s:0:"";}s:10:"p.onCreate";a:1:{s:7:"summary";s:0:"";}s:12:"p.onDblClick";a:1:{s:7:"summary";s:0:"";}s:12:"p.initialize";a:1:{s:7:"summary";s:0:"";}s:9:"p.destroy";a:1:{s:7:"summary";s:0:"";}s:6:"p.draw";a:1:{s:7:"summary";s:0:"";}s:7:"p.apply";a:1:{s:7:"summary";s:0:"";}s:11:"p.serialize";a:1:{s:7:"summary";s:0:"";}s:9:"p.getBBox";a:1:{s:7:"summary";s:0:"";}s:11:"p.beginEdit";a:1:{s:7:"summary";s:0:"";}s:9:"p.endEdit";a:1:{s:7:"summary";s:0:"";}s:11:"p.calculate";a:1:{s:7:"summary";s:0:"";}s:10:"p.drawBBox";a:1:{s:7:"summary";s:0:"";}s:12:"p.setBinding";a:1:{s:7:"summary";s:0:"";}s:12:"p.getTextBox";a:1:{s:7:"summary";s:0:"";}s:9:"p.setMode";a:1:{s:7:"summary";s:0:"";}s:6:"p.zoom";a:1:{s:7:"summary";s:0:"";}s:18:"p.writeCommonAttrs";a:1:{s:7:"summary";s:0:"";}s:17:"p.readCommonAttrs";a:1:{s:7:"summary";s:0:"";}s:29:"dojox.sketch.Annotation.Modes";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:23:"dojox.sketch.Annotation";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:2290:"dojo.provide("dojox.sketch.Annotation"); dojo.require("dojox.sketch.Anchor"); dojo.require("dojox.sketch._Plugin"); (function(){ var ta=dojox.sketch; dojo.declare("dojox.sketch.AnnotationTool", ta._Plugin, { onMouseDown: function(e){ this._omd=true; }, onMouseMove: function(e,rect){ if(!this._omd){ return; } if(this._cshape){ this._cshape.setShape(rect); } else { this._cshape=this.figure.surface.createRect(rect) .setStroke({color:"#999", width:1, style:"ShortDot"}) .setFill([255,255,255,0.7]); this._cshape.getEventSource().setAttribute("shape-rendering","crispEdges"); } }, onMouseUp: function(e){ if(!this._omd){ return; } this._omd=false; var f=this.figure; if(this._cshape){ f.surface.remove(this._cshape); delete this._cshape; } if(!(f._startPoint.x==e.pageX&&f._startPoint.y==e.pageY)){ // The minimum number of pixels one has to travel before a shape // gets drawn. var limit=10; if(Math.max( limit, Math.abs(f._absEnd.x-f._start.x), Math.abs(f._absEnd.y-f._start.y) )>limit){ this._create(f._start, f._end); } } }, _create: function(start,end){ // create a new shape, needs to be accessible from the // dragging functions. var f=this.figure; var _=f.nextKey(); var a=new (this.annotation)(f, _); a.transform={ dx:start.x/f.zoomFactor, dy:start.y/f.zoomFactor }; a.end={ x:end.x/f.zoomFactor, y:end.y/f.zoomFactor }; if(a.control){ a.control={ x:Math.round((end.x/2)/f.zoomFactor), y:Math.round((end.y/2)/f.zoomFactor) }; } f.onBeforeCreateShape(a); a.initialize(); f.select(a); f.onCreateShape(a); f.history.add(ta.CommandTypes.Create,a); } }); ta.Annotation=function(figure, id){ // for editing stuff. this.id=this._key=id; this.figure=figure; this.mode=ta.Annotation.Modes.View; this.shape=null; // dojox.gfx.Group this.boundingBox=null; // rect for boundaries this.hasAnchors=true; this.anchors={}; // ta.Anchor this._properties={ 'stroke':{ color:"blue", width:2 }, 'font': {family:"Arial", size:16, weight:"bold"}, 'fill': "blue", 'label': "" }; if(this.figure){ this.figure.add(this); }";s:9:"classlike";b:1;s:7:"summary";s:0:"";}s:26:"dojox.sketch.Annotation.id";a:2:{s:8:"instance";s:23:"dojox.sketch.Annotation";s:7:"summary";s:0:"";}s:30:"dojox.sketch.Annotation.figure";a:2:{s:8:"instance";s:23:"dojox.sketch.Annotation";s:7:"summary";s:0:"";}s:28:"dojox.sketch.Annotation.mode";a:2:{s:8:"instance";s:23:"dojox.sketch.Annotation";s:7:"summary";s:0:"";}s:29:"dojox.sketch.Annotation.shape";a:2:{s:8:"instance";s:23:"dojox.sketch.Annotation";s:7:"summary";s:0:"";}s:35:"dojox.sketch.Annotation.boundingBox";a:2:{s:8:"instance";s:23:"dojox.sketch.Annotation";s:7:"summary";s:0:"";}s:34:"dojox.sketch.Annotation.hasAnchors";a:2:{s:8:"instance";s:23:"dojox.sketch.Annotation";s:7:"summary";s:0:"";}s:31:"dojox.sketch.Annotation.anchors";a:2:{s:8:"instance";s:23:"dojox.sketch.Annotation";s:7:"summary";s:0:"";}s:35:"dojox.sketch.Annotation._properties";a:3:{s:8:"instance";s:23:"dojox.sketch.Annotation";s:7:"private";b:1;s:7:"summary";s:0:"";}s:32:"dojox.sketch.Annotation.register";a:4:{s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:4:"name";a:1:{s:4:"type";s:0:"";}s:9:"toolclass";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:188:" var cls=ta[name+'Annotation']; ta.registerTool(name, function(p){ dojo.mixin(p, { shape: name, annotation:cls }); return new (toolclass || ta.AnnotationTool)(p); });";s:7:"summary";s:0:"";}s:34:"dojox.sketch.Annotation.Modes.View";a:1:{s:7:"summary";s:0:"";}s:34:"dojox.sketch.Annotation.Modes.Edit";a:1:{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:"";}}