]>
git.proxmox.com Git - sencha-touch.git/blob - src/src/draw/sprite/Arc.js
2 * @class Ext.draw.sprite.Arc
3 * @extend Ext.draw.sprite.Circle
5 * A sprite that represents a circular arc.
7 * @example preview miniphone
8 * var component = new Ext.draw.Component({
20 * Ext.Viewport.setLayout('fit');
21 * Ext.Viewport.add(component);
23 Ext
.define("Ext.draw.sprite.Arc", {
24 extend
: "Ext.draw.sprite.Circle",
31 * @cfg {Number} [startAngle=0] The beginning angle of the arc.
36 * @cfg {Number} [endAngle=Math.PI*2] The ending angle of the arc.
41 * @cfg {Boolean} [anticlockwise=false] Determines whether or not the arc is drawn clockwise.
53 endAngle
: Math
.PI
* 2,
64 updatePath: function (path
, attr
) {
65 path
.arc(attr
.cx
, attr
.cy
, attr
.r
, attr
.startAngle
, attr
.endAngle
, attr
.anticlockwise
);