9ac01d217f
Бросок синхронизирован на пульте и презентации; d100 как десятки; оверлей скрывается только кнопкой «Убрать». Co-authored-by: Cursor <cursoragent@cursor.com>
28 lines
769 B
TypeScript
28 lines
769 B
TypeScript
declare module '@3d-dice/dice-box-threejs' {
|
|
export type DiceBoxConfig = {
|
|
assetPath?: string;
|
|
framerate?: number;
|
|
sounds?: boolean;
|
|
volume?: number;
|
|
shadows?: boolean;
|
|
theme_surface?: string;
|
|
theme_colorset?: string;
|
|
theme_texture?: string;
|
|
theme_material?: string;
|
|
gravity_multiplier?: number;
|
|
light_intensity?: number;
|
|
baseScale?: number;
|
|
strength?: number;
|
|
onRollComplete?: (results: unknown) => void;
|
|
};
|
|
|
|
export default class DiceBox {
|
|
constructor(elementSelector: string, options?: DiceBoxConfig);
|
|
initialize(): Promise<void>;
|
|
roll(notation: string): Promise<unknown>;
|
|
clearDice(): void;
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
[key: string]: any;
|
|
}
|
|
}
|