Interface: AxisOptions
Defined in: dom/src/pointer/drag-value.ts:20
How the 0-1 travel of one axis maps onto a value.
Extends ValueRange so that a drag and an applyDelta nudge from a wheel
or an arrow key share one description of the scaling.
Extends
ValueRange
Properties
max
max: number;
Defined in: functions/dist/index.d.ts:170
Inherited from
ValueRange.max
min
min: number;
Defined in: functions/dist/index.d.ts:169
Inherited from
ValueRange.min
reverse?
optional reverse?: boolean;
Defined in: dom/src/pointer/drag-value.ts:29
Flip the axis so that its far end is min.
Positions follow the screen: x grows to the right, y downwards. A vertical slider whose maximum is at the top therefore reverses its y axis.
Default
false
scale?
optional scale?: Scale;
Defined in: functions/dist/index.d.ts:180
How the value is distributed across the travel.
Default
linearScale
Inherited from
ValueRange.scale
step?
optional step?: number;
Defined in: functions/dist/index.d.ts:174
Rounding applied to the value. Left unrounded when omitted.
Inherited from
ValueRange.step