source: imaps-frontend/node_modules/konva/lib/shapes/Label.d.ts

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

Update repo after prototype presentation

  • Property mode set to 100644
File size: 1.1 KB
Line 
1import { Shape, ShapeConfig } from '../Shape.js';
2import { Group } from '../Group.js';
3import { Context } from '../Context.js';
4import { ContainerConfig } from '../Container.js';
5import { GetSet } from '../types.js';
6import { Text } from './Text.js';
7export interface LabelConfig extends ContainerConfig {
8}
9export declare class Label extends Group {
10 constructor(config?: LabelConfig);
11 getText(): Text;
12 getTag(): Tag;
13 _addListeners(text: any): void;
14 getWidth(): number;
15 getHeight(): number;
16 _sync(): void;
17}
18export interface TagConfig extends ShapeConfig {
19 pointerDirection?: string;
20 pointerWidth?: number;
21 pointerHeight?: number;
22 cornerRadius?: number | Array<number>;
23}
24export declare class Tag extends Shape<TagConfig> {
25 _sceneFunc(context: Context): void;
26 getSelfRect(): {
27 x: number;
28 y: number;
29 width: number;
30 height: number;
31 };
32 pointerDirection: GetSet<'left' | 'top' | 'right' | 'bottom', this>;
33 pointerWidth: GetSet<number, this>;
34 pointerHeight: GetSet<number, this>;
35 cornerRadius: GetSet<number, this>;
36}
Note: See TracBrowser for help on using the repository browser.