konva
Version:
<p align="center"> <img src="https://raw.githubusercontent.com/konvajs/konvajs.github.io/master/apple-touch-icon-180x180.png" alt="Konva logo" height="180" /> </p>
29 lines (28 loc) • 694 B
TypeScript
import { Shape } from '../Shape';
import { GetSet, Vector2d } from '../types';
/**
* Ellipse constructor
* @constructor
* @augments Konva.Shape
* @param {Object} config
* @param {Object} config.radius defines x and y radius
* @@shapeParams
* @@nodeParams
* @example
* var ellipse = new Konva.Ellipse({
* radius : {
* x : 50,
* y : 50
* } * fill: 'red'
* });
*/
export declare class Ellipse extends Shape {
_sceneFunc(context: any): void;
getWidth(): number;
getHeight(): number;
setWidth(width: any): void;
setHeight(height: any): void;
radius: GetSet<Vector2d, this>;
radiusX: GetSet<number, this>;
radiusY: GetSet<number, this>;
}