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
|
Rev | Line | |
---|
[d565449] | 1 | import { Shape, ShapeConfig } from '../Shape.js';
|
---|
| 2 | import { GetSet, Vector2d } from '../types.js';
|
---|
| 3 | import { Context } from '../Context.js';
|
---|
| 4 | export interface RegularPolygonConfig extends ShapeConfig {
|
---|
| 5 | sides: number;
|
---|
| 6 | radius: number;
|
---|
| 7 | }
|
---|
| 8 | export 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.