DiceUtils: {
estimateDieType(
ledCount: number,
):
| "unknown"
| "d4"
| "d6"
| "d8"
| "d10"
| "d00"
| "d12"
| "d20"
| "d6pipped"
| "d6fudge";
faceFromIndex(
faceIndex: number,
dieType:
| "unknown"
| "d4"
| "d6"
| "d8"
| "d10"
| "d00"
| "d12"
| "d20"
| "d6pipped"
| "d6fudge",
firmwareTimestamp?: number,
): number;
getBottomFace(
dieType:
| "unknown"
| "d4"
| "d6"
| "d8"
| "d10"
| "d00"
| "d12"
| "d20"
| "d6pipped"
| "d6fudge",
): number;
getDieFaces(
dieType:
| "unknown"
| "d4"
| "d6"
| "d8"
| "d10"
| "d00"
| "d12"
| "d20"
| "d6pipped"
| "d6fudge",
): number[];
getFaceCount(
dieType:
| "unknown"
| "d4"
| "d6"
| "d8"
| "d10"
| "d00"
| "d12"
| "d20"
| "d6pipped"
| "d6fudge",
): number;
getHighestFace(
dieType:
| "unknown"
| "d4"
| "d6"
| "d8"
| "d10"
| "d00"
| "d12"
| "d20"
| "d6pipped"
| "d6fudge",
): number;
getLEDCount(
dieType:
| "unknown"
| "d4"
| "d6"
| "d8"
| "d10"
| "d00"
| "d12"
| "d20"
| "d6pipped"
| "d6fudge",
): number;
getLEDCountEx(
dieType:
| "unknown"
| "d4"
| "d6"
| "d8"
| "d10"
| "d00"
| "d12"
| "d20"
| "d6pipped"
| "d6fudge",
): number[];
getLowestFace(
dieType:
| "unknown"
| "d4"
| "d6"
| "d8"
| "d10"
| "d00"
| "d12"
| "d20"
| "d6pipped"
| "d6fudge",
): number;
getPd6LedIndex(faceValue: number, faceLedIndex?: number): number;
getTopFace(
dieType:
| "unknown"
| "d4"
| "d6"
| "d8"
| "d10"
| "d00"
| "d12"
| "d20"
| "d6pipped"
| "d6fudge",
): number;
indexFromFace(
face: number,
dieType:
| "unknown"
| "d4"
| "d6"
| "d8"
| "d10"
| "d00"
| "d12"
| "d20"
| "d6pipped"
| "d6fudge",
firmwareTimestamp?: number,
): number;
mapFaceForAnimation(
face: number,
dieType:
| "unknown"
| "d4"
| "d6"
| "d8"
| "d10"
| "d00"
| "d12"
| "d20"
| "d6pipped"
| "d6fudge",
): number;
unMapFaceFromAnimation(
animFace: number,
dieType:
| "unknown"
| "d4"
| "d6"
| "d8"
| "d10"
| "d00"
| "d12"
| "d20"
| "d6pipped"
| "d6fudge",
): number;
} = ...
Type Declaration
estimateDieType: function
estimateDieType( ledCount: number,): | "unknown" | "d4" | "d6" | "d8" | "d10" | "d00" | "d12" | "d20" | "d6pipped" | "d6fudge" Returns
| "unknown"
| "d4"
| "d6"
| "d8"
| "d10"
| "d00"
| "d12"
| "d20"
| "d6pipped"
| "d6fudge"
faceFromIndex: function
faceFromIndex( faceIndex: number, dieType: | "unknown" | "d4" | "d6" | "d8" | "d10" | "d00" | "d12" | "d20" | "d6pipped" | "d6fudge", firmwareTimestamp?: number,): number Parameters
- faceIndex: number
- dieType:
| "unknown"
| "d4"
| "d6"
| "d8"
| "d10"
| "d00"
| "d12"
| "d20"
| "d6pipped"
| "d6fudge" OptionalfirmwareTimestamp: number
Returns number
getBottomFace: function
getBottomFace( dieType: | "unknown" | "d4" | "d6" | "d8" | "d10" | "d00" | "d12" | "d20" | "d6pipped" | "d6fudge",): number Parameters
- dieType:
| "unknown"
| "d4"
| "d6"
| "d8"
| "d10"
| "d00"
| "d12"
| "d20"
| "d6pipped"
| "d6fudge"
Returns number
getDieFaces: function
getDieFaces( dieType: | "unknown" | "d4" | "d6" | "d8" | "d10" | "d00" | "d12" | "d20" | "d6pipped" | "d6fudge",): number[] Parameters
- dieType:
| "unknown"
| "d4"
| "d6"
| "d8"
| "d10"
| "d00"
| "d12"
| "d20"
| "d6pipped"
| "d6fudge"
Returns number[]
getFaceCount: function
getFaceCount( dieType: | "unknown" | "d4" | "d6" | "d8" | "d10" | "d00" | "d12" | "d20" | "d6pipped" | "d6fudge",): number Parameters
- dieType:
| "unknown"
| "d4"
| "d6"
| "d8"
| "d10"
| "d00"
| "d12"
| "d20"
| "d6pipped"
| "d6fudge"
Returns number
getHighestFace: function
getHighestFace( dieType: | "unknown" | "d4" | "d6" | "d8" | "d10" | "d00" | "d12" | "d20" | "d6pipped" | "d6fudge",): number Parameters
- dieType:
| "unknown"
| "d4"
| "d6"
| "d8"
| "d10"
| "d00"
| "d12"
| "d20"
| "d6pipped"
| "d6fudge"
Returns number
getLEDCount: function
getLEDCount( dieType: | "unknown" | "d4" | "d6" | "d8" | "d10" | "d00" | "d12" | "d20" | "d6pipped" | "d6fudge",): number Parameters
- dieType:
| "unknown"
| "d4"
| "d6"
| "d8"
| "d10"
| "d00"
| "d12"
| "d20"
| "d6pipped"
| "d6fudge"
Returns number
getLEDCountEx: function
getLEDCountEx( dieType: | "unknown" | "d4" | "d6" | "d8" | "d10" | "d00" | "d12" | "d20" | "d6pipped" | "d6fudge",): number[] Parameters
- dieType:
| "unknown"
| "d4"
| "d6"
| "d8"
| "d10"
| "d00"
| "d12"
| "d20"
| "d6pipped"
| "d6fudge"
Returns number[]
getLowestFace: function
getLowestFace( dieType: | "unknown" | "d4" | "d6" | "d8" | "d10" | "d00" | "d12" | "d20" | "d6pipped" | "d6fudge",): number Parameters
- dieType:
| "unknown"
| "d4"
| "d6"
| "d8"
| "d10"
| "d00"
| "d12"
| "d20"
| "d6pipped"
| "d6fudge"
Returns number
getPd6LedIndex: function
getPd6LedIndex(faceValue: number, faceLedIndex?: number): number Parameters
- faceValue: number
- faceLedIndex: number = 0
Returns number
getTopFace: function
getTopFace( dieType: | "unknown" | "d4" | "d6" | "d8" | "d10" | "d00" | "d12" | "d20" | "d6pipped" | "d6fudge",): number Parameters
- dieType:
| "unknown"
| "d4"
| "d6"
| "d8"
| "d10"
| "d00"
| "d12"
| "d20"
| "d6pipped"
| "d6fudge"
Returns number
indexFromFace: function
indexFromFace( face: number, dieType: | "unknown" | "d4" | "d6" | "d8" | "d10" | "d00" | "d12" | "d20" | "d6pipped" | "d6fudge", firmwareTimestamp?: number,): number Parameters
- face: number
- dieType:
| "unknown"
| "d4"
| "d6"
| "d8"
| "d10"
| "d00"
| "d12"
| "d20"
| "d6pipped"
| "d6fudge" OptionalfirmwareTimestamp: number
Returns number
mapFaceForAnimation: function
mapFaceForAnimation( face: number, dieType: | "unknown" | "d4" | "d6" | "d8" | "d10" | "d00" | "d12" | "d20" | "d6pipped" | "d6fudge",): number Parameters
- face: number
- dieType:
| "unknown"
| "d4"
| "d6"
| "d8"
| "d10"
| "d00"
| "d12"
| "d20"
| "d6pipped"
| "d6fudge"
Returns number
unMapFaceFromAnimation: function
unMapFaceFromAnimation( animFace: number, dieType: | "unknown" | "d4" | "d6" | "d8" | "d10" | "d00" | "d12" | "d20" | "d6pipped" | "d6fudge",): number Parameters
- animFace: number
- dieType:
| "unknown"
| "d4"
| "d6"
| "d8"
| "d10"
| "d00"
| "d12"
| "d20"
| "d6pipped"
| "d6fudge"
Returns number