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 | |
---|
1 | import { Shape, ShapeConfig } from '../Shape.js';
|
---|
2 | import { Group } from '../Group.js';
|
---|
3 | import { Context } from '../Context.js';
|
---|
4 | import { ContainerConfig } from '../Container.js';
|
---|
5 | import { GetSet } from '../types.js';
|
---|
6 | import { Text } from './Text.js';
|
---|
7 | export interface LabelConfig extends ContainerConfig {
|
---|
8 | }
|
---|
9 | export 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 | }
|
---|
18 | export interface TagConfig extends ShapeConfig {
|
---|
19 | pointerDirection?: string;
|
---|
20 | pointerWidth?: number;
|
---|
21 | pointerHeight?: number;
|
---|
22 | cornerRadius?: number | Array<number>;
|
---|
23 | }
|
---|
24 | export 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.