first commit
This commit is contained in:
+30
@@ -0,0 +1,30 @@
|
||||
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> {
|
||||
_getStrokePadding(): number;
|
||||
_sceneFunc(context: Context): void;
|
||||
cornerRadius: GetSet<number | number[], this>;
|
||||
}
|
||||
Reference in New Issue
Block a user