source: imaps-frontend/node_modules/konva/lib/shapes/RegularPolygon.d.ts@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 687 bytes
Line 
1import { Shape, ShapeConfig } from '../Shape.js';
2import { GetSet, Vector2d } from '../types.js';
3import { Context } from '../Context.js';
4export interface RegularPolygonConfig extends ShapeConfig {
5 sides: number;
6 radius: number;
7}
8export declare class RegularPolygon extends Shape<RegularPolygonConfig> {
9 _sceneFunc(context: Context): void;
10 _getPoints(): Vector2d[];
11 getSelfRect(): {
12 x: number;
13 y: number;
14 width: number;
15 height: number;
16 };
17 getWidth(): number;
18 getHeight(): number;
19 setWidth(width: number): void;
20 setHeight(height: number): void;
21 radius: GetSet<number, this>;
22 sides: GetSet<number, this>;
23}
Note: See TracBrowser for help on using the repository browser.