Crosshair
Crosshair
A crosshair.
Usage
import { LineCrosshair, CircleCrosshair, PolygonCrosshair } from '@antv/gui';Basic Options
| Key | Description | Type | Default |
|---|---|---|---|
| lineStyle | config the style of crosshair line | LineProps | |
| text | tag | TagCfg | |
LineCrosshair
| Key | Description | Type | Default |
|---|---|---|---|
| startPos | start pos of crosshair line | [number, number] | |
| endPos | end pos of crosshair line | [number, number] | |
CircleCrosshair
| Key | Description | Type | Default |
|---|---|---|---|
| center | center of crosshair circle | [number, number] | |
| defaultRadius | the radius of first crosshair circle | number | 0 |
PolygonCrosshair
| Key | Description | Type | Default |
|---|---|---|---|
| center | center of crosshair polygon | [number, number] | |
| defaultRadius | the radius of first crosshair polygon | number | 0 |
| startAngle | start angle of polygon | number | 0 |
| sides | sides of polygon | number | |