Skip to main content

Abstract Class: Selection

Defined in: src/selection.ts:6

Selection from a spreadsheet

Extended by

Constructors

Constructor

new Selection(): Selection

Returns

Selection

Methods

equals()

abstract equals(selection): boolean

Defined in: src/selection.ts:26

Determines whether the given selection is equal to this selection

Parameters

selection

Selection

Returns

boolean


has()

abstract has(data, point): boolean

Defined in: src/selection.ts:23

Determines whether the given point is within the selection

Parameters

data

Matrix<unknown>

point

Point

Returns

boolean


hasEntireColumn()

abstract hasEntireColumn(column): boolean

Defined in: src/selection.ts:17

Determines whether the given column is entirely selected in given selection

Parameters

column

number

Returns

boolean


hasEntireRow()

abstract hasEntireRow(row): boolean

Defined in: src/selection.ts:14

Determines whether the given row is entirely selected in given selection

Parameters

row

number

Returns

boolean


normalizeTo()

abstract normalizeTo(data): this

Defined in: src/selection.ts:11

Normalize the selection according to the given data

Parameters

data

Matrix<unknown>

Returns

this


size()

abstract size(data): number

Defined in: src/selection.ts:20

Get the number of selected points according to given data

Parameters

data

Matrix<unknown>

Returns

number


toRange()

abstract toRange(data): PointRange | null

Defined in: src/selection.ts:8

Get concrete range of the selection in the given data

Parameters

data

Matrix<unknown>

Returns

PointRange | null