not really known
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

21 lines
532 B

/**
_enyo.canvas.line_ is a canvas control that draws a line fitting
the parameters specified in the _bounds_ property.
*/
enyo.kind({
name: "enyo.canvas.Line",
kind: enyo.canvas.Shape,
//* @protected
renderSelf: function(ctx) {
ctx.save();
ctx.beginPath();
ctx.strokeStyle = this.bounds.Style;
ctx.lineWidth = this.bounds.width;
ctx.lineCap = this.bounds.cap;
ctx.moveTo(this.bounds.start_x, this.bounds.start_y);
ctx.lineTo(this.bounds.finish_x, this.bounds.finish_y);
ctx.stroke();
ctx.restore();
}
});