Skip to content

ScaleOptions

Defined in: utils.ts:38

Options for get_scales.

Type ParameterDefault type
TPoint
optional keep_aspect_ratio?: boolean;

Defined in: utils.ts:40

Pads the shorter axis so the data’s aspect ratio survives the mapping.


optional round?: boolean;

Defined in: utils.ts:42

Rounds outputs to integers, as grid-cell indices require.


optional x?: Accessor<T>;

Defined in: utils.ts:44

Reads the x component of a datum.


optional y?: Accessor<T>;

Defined in: utils.ts:46

Reads the y component of a datum.