@visactor/vrender-components
Version:
components library for dp visualization
15 lines (14 loc) • 626 B
TypeScript
import type { IBoundsLike } from '@visactor/vutils';
import type { RectLabelAttrs } from './type';
import { LabelBase } from './base';
import type { ComponentOptions } from '../interface';
export declare class RectLabel extends LabelBase<RectLabelAttrs> {
static tag: string;
static defaultAttributes: Partial<RectLabelAttrs>;
constructor(attributes: RectLabelAttrs, options?: ComponentOptions);
protected labeling(textBounds: IBoundsLike, graphicBounds: IBoundsLike, position?: string, offset?: number): {
x: number;
y: number;
};
}
export declare const registerRectDataLabel: () => void;