@visactor/vchart
Version:
charts lib based @visactor/VGrammar
10 lines (9 loc) • 407 B
TypeScript
import type { IPoint } from '../../../typings';
export declare function getInsertPoints(start: IPoint, end: IPoint, direction: 'top' | 'bottom' | 'left' | 'right', offset?: number): IPoint[];
export declare function getTextOffset(start: IPoint, end: IPoint, direction: 'top' | 'bottom' | 'left' | 'right', offset?: number): {
dx: number;
dy: number;
} | {
dx?: undefined;
dy?: undefined;
};