Mixins / foldkit-mixins-ui

AngleSliderLayout

interface · packages/mixins-ui/src/angleSlider.ts:98

interface AngleSliderLayout {
  readonly step?: number | undefined
  readonly largeStep?: number | undefined
  readonly marks?: ReadonlyArray<AngleMark> | undefined
  readonly restrictToMarks?: boolean | undefined
}

What update and the view agree on: the steps a value takes and the marks.

Members

AngleSliderLayout.step

property · packages/mixins-ui/src/angleSlider.ts:100

readonly step?: number | undefined

Degrees between values; default 1.

AngleSliderLayout.largeStep

property · packages/mixins-ui/src/angleSlider.ts:102

readonly largeStep?: number | undefined

What Page Up and Page Down, and Shift with an arrow, move, as the multiple of step nearest it; default 15.

AngleSliderLayout.marks

property · packages/mixins-ui/src/angleSlider.ts:103

readonly marks?: ReadonlyArray<AngleMark> | undefined

AngleSliderLayout.restrictToMarks

property · packages/mixins-ui/src/angleSlider.ts:105

readonly restrictToMarks?: boolean | undefined

The value is one of the marks: a drag lands on the nearest, and the keys go mark to mark.