-
Notifications
You must be signed in to change notification settings - Fork 146
/
Copy pathtypes.d.ts
67 lines (53 loc) · 1.48 KB
/
types.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import type {Color, Object3D} from "three";
export type BlockOptions = {
width: number;
height: number;
padding?: number;
fontFamily?: string;
fontTexture?: string;
backgroundColor?: Color;
backgroundOpacity?: number;
borderRadius?: number | [topLeft: number, topRight: number, bottomRight: number, bottomLeft: number];
// @todo add missing properties
[property: string]: any;
}
export declare class Block extends Object3D {
constructor(options: BlockOptions);
}
export type TextOptions = {
// @todo add missing properties
[property: string]: any;
}
export declare class Text extends Object3D {
constructor(options: TextOptions);
}
export type InlineBlockOptions = {
// @todo add missing properties
[property: string]: any;
}
export declare class InlineBlock extends Object3D {
constructor(options: InlineBlockOptions);
}
export type KeyboardOptions = {
// @todo add missing properties
[property: string]: any;
}
export declare class Keyboard extends Object3D {
constructor(options: KeyboardOptions);
}
export declare namespace FontLibrary {
export function setFontFamily(): void;
export function setFontTexture(): void;
export function getFontOf(): void;
// @todo fix type
export function addFont(...args: any[]): any;
}
export declare function update(): void;
declare global {
namespace JSX {
interface IntrinsicElements {
block: any
text: any
}
}
}