Skip to main content

Interface: ScaleLike

Defined in: packages/sdvplot/src/interact/brush.ts:46

The slice of a materialised Plot scale the brush reads (plot.scale("x")); structural, so no Plot import.

Extended by​

Properties​

range?​

optional range?: Iterable<unknown, any, any>

Defined in: packages/sdvplot/src/interact/brush.ts:52

The pixel range; the brush's extent spans it. Absent (or with no finite value), the svg's box on that axis.

Methods​

apply()​

apply(value): unknown

Defined in: packages/sdvplot/src/interact/brush.ts:48

Data value to pixel.

Parameters​

value​

unknown

Returns​

unknown


invert()?​

optional invert(pixel): unknown

Defined in: packages/sdvplot/src/interact/brush.ts:50

Pixel to data value; absent on band and point scales, which a brush cannot invert.

Parameters​

pixel​

unknown

Returns​

unknown