blob: 00323c2002a30676807abf8af00969d0350076bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
import { Type } from "typebox";
export const Coords = Type.Object({
x: Type.Number({ description: "X coordinate in CSS pixels from left edge of viewport" }),
y: Type.Number({ description: "Y coordinate in CSS pixels from top edge of viewport" }),
});
export const MouseButton = Type.Union(
[Type.Literal("left"), Type.Literal("right"), Type.Literal("middle")],
{ description: 'Mouse button: "left", "right", or "middle"' },
);
|