JavaScript & React libraryAPI

Class: PolygonalSelect

PolygonalSelect class provides a freeform polygonal selection tool that can be used to select an area within the Cosmograph visualization. It uses a canvas-based approach to enable interactive selection of an arbitrary polygon region.

Constructors

Constructor

new PolygonalSelect(_): PolygonalSelect

Parameters

ParameterType
_ICosmographInternalApi

Returns

PolygonalSelect

Methods

enable()

enable(): void

Enables the polygonal selection tool, making it visible and interactive.

Returns

void


disable()

disable(): void

Disables the polygonal selection tool, hiding it and making it non-interactive.

Returns

void


destroy()

destroy(): void

Destroys the polygonal selection tool, removing it from the DOM.

Returns

void