Alpha: this compiler is under active development and updates will break your projects. Not recommended for real use yet.
Skip to content

helix / Unit

Variable: Unit โ€‹

const Unit: object

Defined in: core/values/unit.ts:4

Stored units per real unit, for score.scaled(Unit.MM).

Type Declaration โ€‹

CM โ€‹

readonly CM: 100 = 100

Centimetres: 100 per block.

DM โ€‹

readonly DM: 10 = 10

Decimetres: 10 per block.

HUNDRED_THOUSANDTHS โ€‹

readonly HUNDRED_THOUSANDTHS: 100000 = 100000

Hundred-thousandths, for values with no unit.

MM โ€‹

readonly MM: 1000 = 1000

Millimetres: 1000 per block.

TEN_THOUSANDTHS โ€‹

readonly TEN_THOUSANDTHS: 10000 = 10000

Ten-thousandths, for values with no unit.

THOUSANDTHS โ€‹

readonly THOUSANDTHS: 1000 = 1000

Thousandths, for values with no unit.

Released under the MIT License ยท Credits
These docs were written with AI; the layout and every page have been reviewed by a human.