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.

38 lines
1.1 KiB

4 months ago
import { Component } from '../../core';
import { Group, Path } from '../../shapes';
import type { Point } from '../../types';
import { Tag } from '../tag';
import type { CrosshairBaseStyleProps, CrosshairBaseOptions } from './types';
export declare abstract class CrosshairBase<T extends CrosshairBaseStyleProps> extends Component<T> {
static tag: string;
/**
*
*/
protected pointer: Point;
protected shapesGroup: Group;
protected tagShape: Tag;
protected crosshairShape: Path;
/**
* pointer
*/
protected get localPointer(): number[];
/**
* crosshair path
*/
protected abstract get crosshairPath(): any[];
private get tagStyle();
private get crosshairStyle();
constructor(options: CrosshairBaseOptions);
render(attributes: CrosshairBaseStyleProps, container: Group): void;
/**
*
* 1. 线
* 2. circle polygon path
*/
setPointer(pointer: Point): void;
/**
* tag
*/
protected abstract adjustLayout(): void;
}