feat(control): 3D-кубики в отдельном окне
Бросок синхронизирован на пульте и презентации; d100 как десятки; оверлей скрывается только кнопкой «Убрать». Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+27
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user