Sha256: e073e02868ec11621e47df4c558d180f773e46254da7e5669f326cabb1da01bf

Contents?: true

Size: 1 KB

Versions: 4

Compression:

Stored size: 1 KB

Contents

//>>built
define("dojox/drawing/stencil/Line",["dojo/_base/lang","../util/oo","./_Base","../manager/_registry"],function(_1,oo,_2,_3){
var _4=oo.declare(_2,function(_5){
},{type:"dojox.drawing.stencil.Line",anchorType:"single",baseRender:true,dataToPoints:function(o){
o=o||this.data;
if(o.radius||o.angle){
var pt=this.util.pointOnCircle(o.x,o.y,o.radius,o.angle);
this.data=o={x1:o.x,y1:o.y,x2:pt.x,y2:pt.y};
}
this.points=[{x:o.x1,y:o.y1},{x:o.x2,y:o.y2}];
return this.points;
},pointsToData:function(p){
p=p||this.points;
this.data={x1:p[0].x,y1:p[0].y,x2:p[1].x,y2:p[1].y};
return this.data;
},_create:function(_6,d,_7){
this.remove(this[_6]);
this[_6]=this.container.createLine(d).setStroke(_7);
this._setNodeAtts(this[_6]);
},render:function(){
this.onBeforeRender(this);
this.renderHit&&this._create("hit",this.data,this.style.currentHit);
this._create("shape",this.data,this.style.current);
}});
_1.setObject("dojox.drawing.stencil.Line",_4);
_3.register({name:"dojox.drawing.stencil.Line"},"stencil");
return _4;
});

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dojox-rails-0.14.0 vendor/assets/javascripts/dojox/drawing/stencil/Line.js
dojox-rails-0.13.0 vendor/assets/javascripts/dojox/drawing/stencil/Line.js
dojox-rails-0.12.0 vendor/assets/javascripts/dojox/drawing/stencil/Line.js
dojox-rails-0.11.0 vendor/assets/javascripts/drawing/stencil/Line.js