You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

34 lines
1.0 KiB

import type { Point } from '../../types';
import { CrosshairBase } from './base';
import type { LineCrosshairOptions, LineCrosshairStyleProps } from './types';
export type { LineCrosshairStyleProps, LineCrosshairOptions };
export declare class LineCrosshair extends CrosshairBase<Required<LineCrosshairStyleProps>> {
static tag: string;
protected static defaultOptions: {
style: Partial<LineCrosshairStyleProps>;
};
protected get crosshairPath(): any[];
/**
* 获得 pointer 的相对坐标
*/
protected get localPointer(): number[];
private get isVertical();
private get tagShapeSpace();
constructor(options: LineCrosshairOptions);
update(cfg: Partial<LineCrosshairStyleProps>): void;
/**
* 将线移动至对应位置
*/
setPointer(pointer: Point): void;
setText(text: string): void;
protected adjustLayout(): void;
/**
* 调整this位置
*/
private adjustPosition;
/**
* 调整tag位置
*/
private adjustTag;
private getOrientVal;
}