Interface CanvasPath_D3Shape interface CanvasPath_D3Shape { arc ( x ,
y ,
radius ,
startAngle ,
endAngle ,
anticlockwise ? ) : void ; arcTo ( x1 ,
y1 ,
x2 ,
y2 ,
radius ) : void ; bezierCurveTo ( cp1x ,
cp1y ,
cp2x ,
cp2y ,
x ,
y ) : void ; closePath ( ) : void ; ellipse ( x ,
y ,
radiusX ,
radiusY ,
rotation ,
startAngle ,
endAngle ,
anticlockwise ? ) : void ; lineTo ( x ,
y ) : void ; moveTo ( x ,
y ) : void ; quadraticCurveTo ( cpx ,
cpy ,
x ,
y ) : void ; rect ( x ,
y ,
w ,
h ) : void ; } Methods arc arc ( x , y , radius , startAngle , endAngle , anticlockwise ? ) : void Parameters x : number y : number radius : number startAngle : number endAngle : number Optional
anticlockwise : boolean Returns void arc To arc To ( x1 , y1 , x2 , y2 , radius ) : void Parameters x1 : number y1 : number x2 : number y2 : number radius : number Returns void bezier Curve To bezier Curve To ( cp1x , cp1y , cp2x , cp2y , x , y ) : void Parameters cp1x : number cp1y : number cp2x : number cp2y : number x : number y : number Returns void close Path close Path ( ) : void Returns void ellipse ellipse ( x , y , radiusX , radiusY , rotation , startAngle , endAngle , anticlockwise ? ) : void Parameters x : number y : number radiusX : number radiusY : number rotation : number startAngle : number endAngle : number Optional
anticlockwise : boolean Returns void line To line To ( x , y ) : void Returns void move To move To ( x , y ) : void Returns void quadratic Curve To quadratic Curve To ( cpx , cpy , x , y ) : void Parameters cpx : number cpy : number x : number y : number Returns void rect rect ( x , y , w , h ) : void Parameters x : number y : number w : number h : number Returns void
Deprecated
This interface is used to bridge the gap between two incompatible versions of TypeScript (see #25944). Use
CanvasPathMethods
instead with TS <= 3.0 andCanvasPath
with TS >= 3.1.