first commit
This commit is contained in:
+48
@@ -0,0 +1,48 @@
|
||||
import type { Context } from '../Context.ts';
|
||||
import type { ShapeConfig } from '../Shape.ts';
|
||||
import { Shape } from '../Shape.ts';
|
||||
import type { GetSet } from '../types.ts';
|
||||
export interface StarConfig extends ShapeConfig {
|
||||
numPoints: number;
|
||||
innerRadius: number;
|
||||
outerRadius: number;
|
||||
}
|
||||
/**
|
||||
* Star constructor
|
||||
* @constructor
|
||||
* @memberof Konva
|
||||
* @augments Konva.Shape
|
||||
* @param {Object} config
|
||||
* @param {Integer} config.numPoints
|
||||
* @param {Number} config.innerRadius
|
||||
* @param {Number} config.outerRadius
|
||||
* @@shapeParams
|
||||
* @@nodeParams
|
||||
* @example
|
||||
* var star = new Konva.Star({
|
||||
* x: 100,
|
||||
* y: 200,
|
||||
* numPoints: 5,
|
||||
* innerRadius: 70,
|
||||
* outerRadius: 70,
|
||||
* fill: 'red',
|
||||
* stroke: 'black',
|
||||
* strokeWidth: 4
|
||||
* });
|
||||
*/
|
||||
export declare class Star extends Shape<StarConfig> {
|
||||
_sceneFunc(context: Context): void;
|
||||
getSelfRect(): {
|
||||
x: number;
|
||||
y: number;
|
||||
width: number;
|
||||
height: number;
|
||||
};
|
||||
getWidth(): number;
|
||||
getHeight(): number;
|
||||
setWidth(width: number): void;
|
||||
setHeight(height: number): void;
|
||||
outerRadius: GetSet<number, this>;
|
||||
innerRadius: GetSet<number, this>;
|
||||
numPoints: GetSet<number, this>;
|
||||
}
|
||||
Reference in New Issue
Block a user