source: imaps-frontend/node_modules/konva/lib/shapes/Line.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: 967 bytes
Line 
1import { Shape, ShapeConfig } from '../Shape.js';
2import { GetSet } from '../types.js';
3import { Context } from '../Context.js';
4export interface LineConfig extends ShapeConfig {
5 points?: number[] | Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array;
6 tension?: number;
7 closed?: boolean;
8 bezier?: boolean;
9}
10export declare class Line<Config extends LineConfig = LineConfig> extends Shape<Config> {
11 constructor(config?: Config);
12 _sceneFunc(context: Context): void;
13 getTensionPoints(): any;
14 _getTensionPoints(): any[];
15 _getTensionPointsClosed(): any[];
16 getWidth(): number;
17 getHeight(): number;
18 getSelfRect(): {
19 x: number;
20 y: number;
21 width: number;
22 height: number;
23 };
24 closed: GetSet<boolean, this>;
25 bezier: GetSet<boolean, this>;
26 tension: GetSet<number, this>;
27 points: GetSet<number[], this>;
28}
Note: See TracBrowser for help on using the repository browser.