Skip to main content

Interface: SVGPinProps

The prop type of an [[SVGPin]] component.

Properties

color

Optional color: string

The color of the pin

Defined in

components/SVGPin.tsx:18


point

point: Point

The point in the screen coordinate system.

Defined in

components/SVGPin.tsx:14


size

Optional size: number

The size of the pin

Defined in

components/SVGPin.tsx:16

Methods

onClick

Optional onClick(event): void

A handler for click events

Parameters

NameType
eventMouseEvent<SVGElement, MouseEvent>

Returns

void

Defined in

components/SVGPin.tsx:24


onContextMenu

Optional onContextMenu(event): void

A handler for a context menu event

Parameters

NameType
eventMouseEvent<SVGElement, MouseEvent>

Returns

void

Defined in

components/SVGPin.tsx:26


onMouseOut

Optional onMouseOut(event): void

A handler for mouse-out events

Parameters

NameType
eventMouseEvent<SVGElement, MouseEvent>

Returns

void

Defined in

components/SVGPin.tsx:20


onMouseOver

Optional onMouseOver(event): void

A handler for mouse-over events

Parameters

NameType
eventMouseEvent<SVGElement, MouseEvent>

Returns

void

Defined in

components/SVGPin.tsx:22