feat(control): 3D-кубики в отдельном окне

Бросок синхронизирован на пульте и презентации; d100 как десятки; оверлей скрывается только кнопкой «Убрать».

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Ivan Fontosh
2026-09-04 13:01:34 +08:00
parent 86d6d157f0
commit 9ac01d217f
137 changed files with 958 additions and 1 deletions
+27
View File
@@ -0,0 +1,27 @@
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;
}
}