Skip to main content

Interface: TangleParam

Defined in: src/mobjects/text/tangle/tangleSource.ts:12

Configuration of one draggable number.

Properties​

color?​

optional color: string

Defined in: src/mobjects/text/tangle/tangleSource.ts:31

Color of this parameter's glyphs. Default: the TangleTex color.


digits?​

optional digits: number

Defined in: src/mobjects/text/tangle/tangleSource.ts:22

Decimal places shown. Default: the number of decimals in step.


display?​

optional display: "number" | "symbol"

Defined in: src/mobjects/text/tangle/tangleSource.ts:27

'number' shows the value. 'symbol' shows symbol until the value is revealed (e.g. while it is dragged). Default: 'number'.


label?​

optional label: string

Defined in: src/mobjects/text/tangle/tangleSource.ts:35

Accessible name. Default: parameter <name>.


max?​

optional max: number

Defined in: src/mobjects/text/tangle/tangleSource.ts:18

Upper bound. Default: +Infinity.


min?​

optional min: number

Defined in: src/mobjects/text/tangle/tangleSource.ts:16

Lower bound. Default: -Infinity.


pixelsPerStep?​

optional pixelsPerStep: number

Defined in: src/mobjects/text/tangle/tangleSource.ts:33

Drag distance, in pixels, for one step. Default: 7.


readOnly?​

optional readOnly: boolean

Defined in: src/mobjects/text/tangle/tangleSource.ts:41

Show the value but do not let the reader drag, type or focus it: for results computed from the other parameters. Set it from code with setValue. Default: false.


step?​

optional step: number

Defined in: src/mobjects/text/tangle/tangleSource.ts:20

Snap increment, > 0. Default: 1.


symbol?​

optional symbol: string

Defined in: src/mobjects/text/tangle/tangleSource.ts:29

LaTeX shown when display is 'symbol'. Default: the parameter name.


value​

value: number

Defined in: src/mobjects/text/tangle/tangleSource.ts:14

Initial value. Must lie in [min, max].