-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
37 lines (33 loc) · 732 Bytes
/
types.ts
File metadata and controls
37 lines (33 loc) · 732 Bytes
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
export enum ShapeType {
CUBE = 'CUBE',
SPHERE = 'SPHERE',
PYRAMID = 'PYRAMID',
TORUS = 'TORUS',
HEART = 'HEART',
ICOSAHEDRON = 'ICOSAHEDRON'
}
export interface TextureState {
url: string | null;
name: string;
source: 'upload' | 'ai' | 'none';
}
export interface TextureSettings {
offsetX: number;
offsetY: number;
repeatX: number;
repeatY: number;
rotation: number;
}
export interface RotationSettings {
autoRotate: boolean;
speed: number;
direction: 1 | -1; // 1 or -1 for direction multiplier
}
export interface AppState {
shape: ShapeType;
texture: TextureState;
textureSettings: TextureSettings;
rotationSettings: RotationSettings;
isGenerating: boolean;
error: string | null;
}