| 1234567891011121314151617181920212223 |
- import { GUI } from '../../core';
- import { DisplayObject, type Group } from '../../shapes';
- import type { TitleOptions, TitleStyleProps } from './types';
- export type { TitleOptions, TitleStyleProps };
- /**
- * @example
- * lt -> ['l', 't']
- * left-top -> ['l', 't']
- * inner -> i
- */
- export declare function parsePosition(position: string): string[];
- /**
- * calculate the actual bbox of the element with title
- * @example a legend with width x, height y, but the real bbox is x1 < x, y1 < y
- */
- export declare function getBBox(title: Title, content: DisplayObject): DOMRect;
- export declare class Title extends GUI<TitleStyleProps> {
- private title;
- constructor(options: TitleOptions);
- getAvailableSpace(): DOMRect;
- getBBox(): DOMRect;
- render(attributes: Required<TitleStyleProps>, container: Group): void;
- }
|