@visactor/vrender-components
Version:
components library for dp visualization
28 lines (27 loc) • 1.01 kB
TypeScript
import { type IGroup, type IText } from '@visactor/vrender-core';
import { AbstractComponent } from '../core/base';
import type { ComponentOptions } from '../interface';
import type { PopTipAttributes } from './type';
export declare class PopTip extends AbstractComponent<Required<PopTipAttributes>> {
name: string;
static defaultAttributes: Partial<PopTipAttributes>;
titleShape?: IText;
contentShape?: IText;
group?: IGroup;
constructor(attributes: PopTipAttributes, options?: ComponentOptions);
protected render(): void;
positionList: string[];
getAngleAndOffset(position: string, width: number, height: number, size: [number, number], symbolType: 'arrow2Left' | string): {
angle: number;
offset: [number, number];
};
appearAnimate(animateConfig: {
duration?: number;
easing?: string;
wave?: number;
}): void;
disappearAnimate(animateConfig: {
duration?: number;
easing?: string;
}): void;
}