@almadar/ui 5.9.5 → 5.9.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,12 +7,16 @@ export interface GameCanvas2DProps {
7
7
  onDraw?: (ctx: CanvasRenderingContext2D, frame: number) => void;
8
8
  /** Called each tick with delta time in seconds */
9
9
  onTick?: (dt: number) => void;
10
+ /** Event name emitted each tick with { dt, frame } — for closed-circuit .orb integration */
11
+ tickEvent?: string;
12
+ /** Event name emitted each draw frame with { frame } — for closed-circuit .orb integration */
13
+ drawEvent?: string;
10
14
  /** Target frames per second */
11
15
  fps?: number;
12
16
  /** Additional CSS classes */
13
17
  className?: string;
14
18
  }
15
- export declare function GameCanvas2D({ width, height, onDraw, onTick, fps, className, }: GameCanvas2DProps): import("react/jsx-runtime").JSX.Element;
19
+ export declare function GameCanvas2D({ width, height, onDraw, onTick, tickEvent, drawEvent, fps, className, }: GameCanvas2DProps): import("react/jsx-runtime").JSX.Element;
16
20
  export declare namespace GameCanvas2D {
17
21
  var displayName: string;
18
22
  }