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:167
Inherited from
ValueRange.max
min
min: number;
Defined in: functions/dist/index.d.ts:166
Inherited from
ValueRange.min
reverse?
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?
scale?: Scale;
Defined in: functions/dist/index.d.ts:177
How the value is distributed across the travel.
Default
linearScale
Inherited from
ValueRange.scale
step?
step?: number;
Defined in: functions/dist/index.d.ts:171
Rounding applied to the value. Left unrounded when omitted.
Inherited from
ValueRange.step