メインコンテンツまでスキップ

Interface: KnobAngles

Defined in: dom/src/knob/geometry.ts:28

The angles a knob is drawn with, in degrees clockwise from the top.

The travel is centred on the top, so angleRange of 270 runs from -135 to 135. Derived from the value alone, so a wrapper can call it while rendering.

Properties​

p​

p: number;

Defined in: dom/src/knob/geometry.ts:30

The value, normalized to 0..1 along the scale.


r1​

r1: number;

Defined in: dom/src/knob/geometry.ts:32

Where the travel starts.


r2​

r2: number;

Defined in: dom/src/knob/geometry.ts:34

Where the active arc starts: the lower of the value and startValue.


r3​

r3: number;

Defined in: dom/src/knob/geometry.ts:36

Where the active arc ends: the higher of the value and startValue.


r4​

r4: number;

Defined in: dom/src/knob/geometry.ts:38

Where the travel ends.