konva
Version:
HTML5 2d canvas library for interactive graphics, design editors, whiteboards, and diagrams.
30 lines (29 loc) • 735 B
TypeScript
import type { ShapeConfig } from '../Shape.ts';
import { Shape } from '../Shape.ts';
import type { GetSet } from '../types.ts';
import type { Context } from '../Context.ts';
export type RectConfig = ShapeConfig & {
cornerRadius?: number | number[];
};
/**
* Rect constructor
* @constructor
* @memberof Konva
* @augments Konva.Shape
* @param {Object} config
* @param {Number} [config.cornerRadius]
* @@shapeParams
* @@nodeParams
* @example
* var rect = new Konva.Rect({
* width: 100,
* height: 50,
* fill: 'red',
* stroke: 'black',
* strokeWidth: 5
* });
*/
export declare class Rect extends Shape<RectConfig> {
_sceneFunc(context: Context): void;
cornerRadius: GetSet<number | number[], this>;
}