Files
Ivan Fontosh 9ac01d217f feat(control): 3D-кубики в отдельном окне
Бросок синхронизирован на пульте и презентации; d100 как десятки; оверлей скрывается только кнопкой «Убрать».

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-04 13:01:34 +08:00

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;
}
}