blockbench-types 5.2.0-beta.0-next.2 → 5.2.0-beta.0-next.3
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.
- package/custom/animation.d.ts +2 -1
- package/custom/blockbench.d.ts +0 -1
- package/custom/desktop.d.ts +15 -4
- package/custom/display_mode.d.ts +1 -0
- package/custom/group.d.ts +1 -1
- package/custom/keyframe.d.ts +2 -0
- package/custom/misc.d.ts +63 -64
- package/custom/painter.d.ts +2 -0
- package/generated/api.d.ts +3 -25
- package/generated/desktop.d.ts +48 -0
- package/generated/interface/actions.d.ts +4 -0
- package/generated/interface/dialog.d.ts +2 -2
- package/generated/interface/menu.d.ts +4 -1
- package/generated/interface/shared_actions.d.ts +8 -0
- package/generated/interface/toast_notification.d.ts +45 -0
- package/generated/lib/CSS3DRenderer.d.ts +129 -0
- package/generated/modeling/mesh/knife_tool.d.ts +1 -1
- package/generated/modeling/mesh/loop_cut.d.ts +2 -0
- package/generated/modeling/mirror_modeling.d.ts +1 -1
- package/generated/modeling/transform/transform_modules.d.ts +6 -6
- package/generated/modeling/transform.d.ts +1 -1
- package/generated/modeling/weight_paint.d.ts +0 -1
- package/generated/outliner/types/mesh.d.ts +2 -2
- package/generated/plugin_loader.d.ts +5 -3
- package/generated/preview/preview.d.ts +7 -1
- package/generated/preview/preview_scenes.d.ts +197 -0
- package/generated/preview/reference_images.d.ts +141 -89
- package/generated/texturing/layers.d.ts +0 -1
- package/generated/uv/uv_size.d.ts +19 -7
- package/package.json +1 -1
- package/type_config.json +0 -2
- package/custom/preview_scene.d.ts +0 -120
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
/// <reference types="./blockbench"/>
|
|
2
|
-
interface PreviewModelCubeTemplate {
|
|
3
|
-
position: ArrayVector3
|
|
4
|
-
size: ArrayVector3
|
|
5
|
-
origin?: ArrayVector3
|
|
6
|
-
rotation?: ArrayVector3
|
|
7
|
-
faces: {
|
|
8
|
-
north?: { uv: ArrayVector4 }
|
|
9
|
-
east?: { uv: ArrayVector4 }
|
|
10
|
-
west?: { uv: ArrayVector4 }
|
|
11
|
-
south?: { uv: ArrayVector4 }
|
|
12
|
-
up?: { uv: ArrayVector4 }
|
|
13
|
-
down?: { uv: ArrayVector4 }
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
interface PreviewModelOptions {
|
|
18
|
-
condition?: ConditionResolvable
|
|
19
|
-
cubes: PreviewModelCubeTemplate[]
|
|
20
|
-
/**
|
|
21
|
-
* Source of the model's texture
|
|
22
|
-
*/
|
|
23
|
-
texture?: string
|
|
24
|
-
/**
|
|
25
|
-
* Model tint color
|
|
26
|
-
*/
|
|
27
|
-
color?: string
|
|
28
|
-
/**
|
|
29
|
-
* Enable shading on the material
|
|
30
|
-
*/
|
|
31
|
-
shading?: boolean
|
|
32
|
-
/**
|
|
33
|
-
* THREE.JS material render side
|
|
34
|
-
*/
|
|
35
|
-
render_side?: number
|
|
36
|
-
texture_size?: [number, number]
|
|
37
|
-
onUpdate?(): void
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
declare class PreviewModel extends Deletable {
|
|
41
|
-
constructor(id: string, options: PreviewModelOptions)
|
|
42
|
-
|
|
43
|
-
static models: {
|
|
44
|
-
[id: string]: PreviewModel
|
|
45
|
-
}
|
|
46
|
-
static getActiveModels(): PreviewModel[]
|
|
47
|
-
|
|
48
|
-
id: string
|
|
49
|
-
model_3d: THREE.Object3D
|
|
50
|
-
cubes: PreviewModelCubeTemplate[]
|
|
51
|
-
texture?: string
|
|
52
|
-
color?: string
|
|
53
|
-
shading: boolean
|
|
54
|
-
render_side: number
|
|
55
|
-
texture_size: [number, number]
|
|
56
|
-
onUpdate?: () => void
|
|
57
|
-
/**
|
|
58
|
-
* Enables the model in the preview
|
|
59
|
-
*/
|
|
60
|
-
enable(): void
|
|
61
|
-
/**
|
|
62
|
-
* Disables the model in the preview
|
|
63
|
-
*/
|
|
64
|
-
disable(): boolean
|
|
65
|
-
/**
|
|
66
|
-
* Update the appearance and visibility of the model
|
|
67
|
-
*/
|
|
68
|
-
update(): void
|
|
69
|
-
buildModel(): void
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
interface PreviewSceneOptions {
|
|
73
|
-
name?: string
|
|
74
|
-
description?: string
|
|
75
|
-
category?: string
|
|
76
|
-
light_color?: string
|
|
77
|
-
light_side?: number
|
|
78
|
-
condition?: ConditionResolvable
|
|
79
|
-
preview_models?: string[]
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
declare class PreviewScene extends Deletable {
|
|
83
|
-
constructor(id: string, options: PreviewSceneOptions)
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* All preview scenes, listed by ID
|
|
87
|
-
*/
|
|
88
|
-
static scenes: Record<string, PreviewScene>
|
|
89
|
-
/**
|
|
90
|
-
* The currently active scene
|
|
91
|
-
*/
|
|
92
|
-
static active: PreviewScene | null
|
|
93
|
-
/**
|
|
94
|
-
* The URL to the source repository that scenes are pulled from
|
|
95
|
-
*/
|
|
96
|
-
static source_repository: string
|
|
97
|
-
static menu_categories: {
|
|
98
|
-
[category_id: string]: {
|
|
99
|
-
[id: string]: string
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
id: string
|
|
104
|
-
name: string
|
|
105
|
-
description: string
|
|
106
|
-
category?: string
|
|
107
|
-
light_color: string
|
|
108
|
-
light_side: number
|
|
109
|
-
condition?: ConditionResolvable
|
|
110
|
-
preview_models: string[]
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* Selects this preview scene
|
|
114
|
-
*/
|
|
115
|
-
select(): void
|
|
116
|
-
/**
|
|
117
|
-
* Unselects this preview scene
|
|
118
|
-
*/
|
|
119
|
-
unselect(): void
|
|
120
|
-
}
|