blockbench-types 5.1.0 → 5.2.0-beta.0-next.2
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/README.md +30 -30
- package/custom/animation.d.ts +257 -256
- package/custom/animation_controller.d.ts +124 -124
- package/custom/blockbench.d.ts +73 -73
- package/custom/canvas.d.ts +324 -307
- package/custom/codec.d.ts +182 -182
- package/custom/copy_paste.d.ts +43 -42
- package/custom/cube.d.ts +151 -151
- package/custom/desktop.d.ts +61 -73
- package/custom/display_mode.d.ts +141 -137
- package/custom/edit_session.d.ts +38 -37
- package/custom/global.d.ts +181 -168
- package/custom/group.d.ts +113 -113
- package/custom/interface.d.ts +88 -78
- package/custom/io.d.ts +12 -12
- package/custom/{toolbars.d.ts → keybind.d.ts} +150 -221
- package/custom/keyframe.d.ts +94 -94
- package/custom/libs.d.ts +13 -13
- package/custom/menu_bar.d.ts +66 -0
- package/custom/mesh.d.ts +196 -196
- package/custom/misc.d.ts +196 -199
- package/custom/molang.d.ts +159 -159
- package/custom/outliner.d.ts +158 -158
- package/custom/painter.d.ts +102 -69
- package/custom/preview_scene.d.ts +120 -120
- package/custom/screencam.d.ts +71 -71
- package/custom/spline_mesh.d.ts +190 -189
- package/custom/texture_group.d.ts +68 -68
- package/custom/textures.d.ts +526 -515
- package/custom/timeline.d.ts +66 -66
- package/custom/undo.d.ts +209 -208
- package/custom/util/version_util.d.ts +32 -32
- package/custom/util.d.ts +235 -235
- package/custom/uveditor.d.ts +3 -3
- package/custom/validator.d.ts +99 -99
- package/documentation.md +12 -12
- package/generated/animations/mirror_animating.d.ts +7 -0
- package/generated/animations/timeline_animators.d.ts +1 -1
- package/generated/api.d.ts +8 -1
- package/generated/file_system.d.ts +2 -1
- package/generated/find_replace.d.ts +6 -0
- package/generated/formats/standards/obj.d.ts +9 -11
- package/generated/interface/actions.d.ts +16 -12
- package/generated/interface/form.d.ts +2 -1
- package/generated/interface/main_tools.d.ts +23 -0
- package/generated/interface/menu.d.ts +141 -0
- package/generated/interface/menu_bar.d.ts +2 -3
- package/generated/interface/resize_lines.d.ts +2 -0
- package/generated/interface/settings.d.ts +6 -2
- package/generated/interface/shared_actions.d.ts +5 -0
- package/generated/interface/start_screen.d.ts +62 -42
- package/generated/interface/toolbars.d.ts +146 -46
- package/generated/io/format.d.ts +1 -0
- package/generated/io/project.d.ts +10 -2
- package/generated/lib/CanvasFrame.d.ts +1 -0
- package/generated/main.d.ts +4 -1
- package/generated/modeling/mesh/add_mesh.d.ts +6 -0
- package/generated/modeling/mesh/proportional_edit.d.ts +15 -13
- package/generated/modeling/mesh/util.d.ts +8 -2
- package/generated/modeling/mirror_modeling.d.ts +4 -0
- package/generated/modeling/weight_paint.d.ts +11 -0
- package/generated/modes.d.ts +2 -2
- package/generated/native_apis.d.ts +3 -0
- package/generated/outliner/abstract/outliner_element.d.ts +1 -0
- package/generated/outliner/abstract/outliner_node.d.ts +1 -0
- package/generated/outliner/types/armature.d.ts +1 -1
- package/generated/outliner/types/armature_bone.d.ts +1 -1
- package/generated/outliner/types/billboard.d.ts +1 -1
- package/generated/outliner/types/bounding_box.d.ts +1 -1
- package/generated/outliner/types/cube.d.ts +1 -1
- package/generated/outliner/types/group.d.ts +1 -1
- package/generated/outliner/types/locator.d.ts +1 -1
- package/generated/outliner/types/mesh.d.ts +1 -1
- package/generated/outliner/types/null_object.d.ts +1 -1
- package/generated/outliner/types/spline_mesh.d.ts +1 -2
- package/generated/outliner/types/texture_mesh.d.ts +1 -1
- package/generated/plugin_loader.d.ts +1 -1
- package/generated/preview/preview.d.ts +280 -0
- package/generated/preview/reference_images.d.ts +1 -1
- package/generated/texturing/layers.d.ts +140 -0
- package/generated/util/gif.d.ts +12 -3
- package/generated/util/state_memory.d.ts +3 -11
- package/index.d.ts +2 -2
- package/package.json +39 -39
- package/tsconfig.json +19 -19
- package/type_config.json +43 -46
- package/custom/menu.d.ts +0 -136
- package/custom/preview.d.ts +0 -137
- package/custom/start_screen.d.ts +0 -15
- package/custom/texture_layers.d.ts +0 -117
- package/generated/global_types.d.ts +0 -47
- package/generated/io/formats/bedrock.d.ts +0 -4
- package/generated/io/formats/bedrock_old.d.ts +0 -4
- package/generated/io/formats/collada.d.ts +0 -4
- package/generated/io/formats/fbx.d.ts +0 -17
- package/generated/io/formats/gltf.d.ts +0 -6
- package/generated/io/formats/java_block.d.ts +0 -4
- package/generated/io/formats/modded_entity.d.ts +0 -139
- package/generated/io/formats/obj.d.ts +0 -12
- package/generated/io/formats/optifine_jem.d.ts +0 -3
- package/generated/io/formats/optifine_jpm.d.ts +0 -3
- package/generated/io/formats/skin.d.ts +0 -22
package/custom/misc.d.ts
CHANGED
|
@@ -1,199 +1,196 @@
|
|
|
1
|
-
/// <reference types="./blockbench"/>
|
|
2
|
-
|
|
3
|
-
declare class Deletable {
|
|
4
|
-
/**
|
|
5
|
-
* The ID of the plugin that created the object
|
|
6
|
-
*/
|
|
7
|
-
plugin?: string
|
|
8
|
-
delete(): void
|
|
9
|
-
}
|
|
10
|
-
type UUID = string
|
|
11
|
-
|
|
12
|
-
declare global {
|
|
13
|
-
const settings: typeof settings
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* True if Blockbench runs as a native app
|
|
18
|
-
*/
|
|
19
|
-
declare const isApp: boolean
|
|
20
|
-
|
|
21
|
-
declare const VuePrismEditor: Vue.Component
|
|
22
|
-
|
|
23
|
-
interface BlockbenchEventMap {
|
|
24
|
-
display_animation_frame: {in_loop: true}
|
|
25
|
-
display_default_pose: {reduced_updates: boolean}
|
|
26
|
-
interpolate_keyframes: {animator: BoneAnimator, t: number, time: number, use_quaternions: boolean, keyframe_before: _Keyframe, keyframe_after: _Keyframe}
|
|
27
|
-
before_closing: any
|
|
28
|
-
create_session: any
|
|
29
|
-
join_session: any
|
|
30
|
-
quit_session: any
|
|
31
|
-
send_session_data: any
|
|
32
|
-
receive_session_data: any
|
|
33
|
-
user_joins_session: any
|
|
34
|
-
user_leaves_session: any
|
|
35
|
-
process_chat_message: any
|
|
36
|
-
loaded_plugin: { plugin: BBPlugin }
|
|
37
|
-
unloaded_plugin: { plugin: BBPlugin }
|
|
38
|
-
installed_plugin: { plugin: BBPlugin }
|
|
39
|
-
uninstalled_plugin: { plugin: BBPlugin }
|
|
40
|
-
update_settings: any
|
|
41
|
-
update_project_settings: Record<string, any>
|
|
42
|
-
save_project: {model: any, options?: any}
|
|
43
|
-
load_project: {model: any, path: string}
|
|
44
|
-
new_project: any
|
|
45
|
-
reset_project: any
|
|
46
|
-
close_project: any
|
|
47
|
-
saved_state_changed: any
|
|
48
|
-
save_model_action: any
|
|
49
|
-
add_cube: any
|
|
50
|
-
add_mesh: any
|
|
51
|
-
add_group: any
|
|
52
|
-
add_texture_mesh: any
|
|
53
|
-
add_armature: any
|
|
54
|
-
add_armature_bone: any
|
|
55
|
-
add_bounding_box: any
|
|
56
|
-
group_elements: any
|
|
57
|
-
update_selection: any
|
|
58
|
-
compile_bedrock_animations: any
|
|
59
|
-
load_animation: any
|
|
60
|
-
load_animation_controller: any
|
|
61
|
-
update_keyframe_selection: any
|
|
62
|
-
select_all: any
|
|
63
|
-
added_to_selection: any
|
|
64
|
-
invert_selection: any
|
|
65
|
-
canvas_select: any
|
|
66
|
-
canvas_click: any
|
|
67
|
-
change_texture_path: {texture: Texture}
|
|
68
|
-
add_texture: {texture: Texture}
|
|
69
|
-
generate_texture_template: any
|
|
70
|
-
update_texture_selection: any
|
|
71
|
-
init_edit: {aspects: UndoAspects, amended: boolean, save: UndoSave}
|
|
72
|
-
finish_edit: {aspects: UndoAspects, message: string}
|
|
73
|
-
finished_edit: {aspects: UndoAspects, message: string} | {remote: true}
|
|
74
|
-
init_selection_change: {aspects: UndoAspects, save: UndoSelectionSave}
|
|
75
|
-
finish_selection_change: {aspects: UndoAspects}
|
|
76
|
-
finished_selection_change: {aspects: UndoAspects}
|
|
77
|
-
cancel_selection_change: {selection_before: UndoSelectionSave}
|
|
78
|
-
undo: { entry: UndoEntry }
|
|
79
|
-
redo: { entry: UndoEntry }
|
|
80
|
-
load_undo_save: {save: UndoSave, reference: UndoSave, mode: undefined | 'session'}
|
|
81
|
-
create_undo_save: {save: UndoSave, aspects: UndoAspects}
|
|
82
|
-
drop_text: { text: string }
|
|
83
|
-
paste_text: { text: string }
|
|
84
|
-
change_color: any
|
|
85
|
-
select_mode: { mode: Mode }
|
|
86
|
-
unselect_mode: { mode: Mode }
|
|
87
|
-
change_active_panel: any
|
|
88
|
-
resize_window: {event?: Event}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
declare function
|
|
159
|
-
declare function getRescalingFactor(angle: number): number
|
|
160
|
-
/**
|
|
161
|
-
* Get the world-space center of the selection
|
|
162
|
-
* @param all If true, calculate the center of all elements instead of just selected
|
|
163
|
-
*/
|
|
164
|
-
declare function getSelectionCenter(all: boolean = false): ArrayVector3
|
|
165
|
-
|
|
166
|
-
declare
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
declare const
|
|
187
|
-
|
|
188
|
-
declare
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
declare
|
|
192
|
-
|
|
193
|
-
declare
|
|
194
|
-
declare
|
|
195
|
-
|
|
196
|
-
declare
|
|
197
|
-
|
|
198
|
-
declare function marked(text: string): string
|
|
199
|
-
declare function pureMarked(text: string): string
|
|
1
|
+
/// <reference types="./blockbench"/>
|
|
2
|
+
|
|
3
|
+
declare class Deletable {
|
|
4
|
+
/**
|
|
5
|
+
* The ID of the plugin that created the object
|
|
6
|
+
*/
|
|
7
|
+
plugin?: string
|
|
8
|
+
delete(): void
|
|
9
|
+
}
|
|
10
|
+
type UUID = string
|
|
11
|
+
|
|
12
|
+
declare global {
|
|
13
|
+
const settings: typeof settings
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* True if Blockbench runs as a native app
|
|
18
|
+
*/
|
|
19
|
+
declare const isApp: boolean
|
|
20
|
+
|
|
21
|
+
declare const VuePrismEditor: Vue.Component
|
|
22
|
+
|
|
23
|
+
interface BlockbenchEventMap {
|
|
24
|
+
display_animation_frame: {in_loop: true}
|
|
25
|
+
display_default_pose: {reduced_updates: boolean}
|
|
26
|
+
interpolate_keyframes: {animator: BoneAnimator, t: number, time: number, use_quaternions: boolean, keyframe_before: _Keyframe, keyframe_after: _Keyframe}
|
|
27
|
+
before_closing: any
|
|
28
|
+
create_session: any
|
|
29
|
+
join_session: any
|
|
30
|
+
quit_session: any
|
|
31
|
+
send_session_data: any
|
|
32
|
+
receive_session_data: any
|
|
33
|
+
user_joins_session: any
|
|
34
|
+
user_leaves_session: any
|
|
35
|
+
process_chat_message: any
|
|
36
|
+
loaded_plugin: { plugin: BBPlugin }
|
|
37
|
+
unloaded_plugin: { plugin: BBPlugin }
|
|
38
|
+
installed_plugin: { plugin: BBPlugin }
|
|
39
|
+
uninstalled_plugin: { plugin: BBPlugin }
|
|
40
|
+
update_settings: any
|
|
41
|
+
update_project_settings: Record<string, any>
|
|
42
|
+
save_project: {model: any, options?: any}
|
|
43
|
+
load_project: {model: any, path: string}
|
|
44
|
+
new_project: any
|
|
45
|
+
reset_project: any
|
|
46
|
+
close_project: any
|
|
47
|
+
saved_state_changed: any
|
|
48
|
+
save_model_action: any
|
|
49
|
+
add_cube: any
|
|
50
|
+
add_mesh: any
|
|
51
|
+
add_group: any
|
|
52
|
+
add_texture_mesh: any
|
|
53
|
+
add_armature: any
|
|
54
|
+
add_armature_bone: any
|
|
55
|
+
add_bounding_box: any
|
|
56
|
+
group_elements: any
|
|
57
|
+
update_selection: any
|
|
58
|
+
compile_bedrock_animations: any
|
|
59
|
+
load_animation: any
|
|
60
|
+
load_animation_controller: any
|
|
61
|
+
update_keyframe_selection: any
|
|
62
|
+
select_all: any
|
|
63
|
+
added_to_selection: any
|
|
64
|
+
invert_selection: any
|
|
65
|
+
canvas_select: any
|
|
66
|
+
canvas_click: any
|
|
67
|
+
change_texture_path: {texture: Texture}
|
|
68
|
+
add_texture: {texture: Texture}
|
|
69
|
+
generate_texture_template: any
|
|
70
|
+
update_texture_selection: any
|
|
71
|
+
init_edit: {aspects: UndoAspects, amended: boolean, save: UndoSave}
|
|
72
|
+
finish_edit: {aspects: UndoAspects, message: string}
|
|
73
|
+
finished_edit: {aspects: UndoAspects, message: string} | {remote: true}
|
|
74
|
+
init_selection_change: {aspects: UndoAspects, save: UndoSelectionSave}
|
|
75
|
+
finish_selection_change: {aspects: UndoAspects}
|
|
76
|
+
finished_selection_change: {aspects: UndoAspects}
|
|
77
|
+
cancel_selection_change: {selection_before: UndoSelectionSave}
|
|
78
|
+
undo: { entry: UndoEntry }
|
|
79
|
+
redo: { entry: UndoEntry }
|
|
80
|
+
load_undo_save: {save: UndoSave, reference: UndoSave, mode: undefined | 'session'}
|
|
81
|
+
create_undo_save: {save: UndoSave, aspects: UndoAspects}
|
|
82
|
+
drop_text: { text: string }
|
|
83
|
+
paste_text: { text: string }
|
|
84
|
+
change_color: any
|
|
85
|
+
select_mode: { mode: Mode }
|
|
86
|
+
unselect_mode: { mode: Mode }
|
|
87
|
+
change_active_panel: any
|
|
88
|
+
resize_window: {event?: Event}
|
|
89
|
+
change_view_mode: {view_mode: string, previous_view_mode: string}
|
|
90
|
+
press_key: {input_in_focus?: HTMLElement, event: KeyboardEvent, capture: () => void}
|
|
91
|
+
select_format: {format: ModelFormat, project: ModelProject}
|
|
92
|
+
convert_format: {format: ModelFormat, old_format: ModelFormat}
|
|
93
|
+
construct_format: {format: ModelFormat}
|
|
94
|
+
delete_format: {format: ModelFormat}
|
|
95
|
+
select_project: { project: ModelProject }
|
|
96
|
+
unselect_project: { project: ModelProject }
|
|
97
|
+
setup_project: any
|
|
98
|
+
update_project_resolution: any
|
|
99
|
+
merge_project: any
|
|
100
|
+
display_model_stats: any
|
|
101
|
+
update_view: UpdateViewOptions
|
|
102
|
+
update_camera_position: {preview: Preview}
|
|
103
|
+
render_frame: any
|
|
104
|
+
construct_model_loader: any
|
|
105
|
+
delete_model_loader: any
|
|
106
|
+
update_recent_project_data: any
|
|
107
|
+
update_recent_project_thumbnail: any
|
|
108
|
+
load_from_recent_project_data: any
|
|
109
|
+
edit_animation_properties: {animation: _Animation}
|
|
110
|
+
select_preview_scene: any
|
|
111
|
+
unselect_preview_scene: any
|
|
112
|
+
select_animation: {animation: _Animation}
|
|
113
|
+
remove_animation: {animations: _Animation[]}
|
|
114
|
+
compile_bedrock_animation_controller_state: {state: AnimationControllerState, json: any}
|
|
115
|
+
select_animation_controller_state: {state: AnimationControllerState}
|
|
116
|
+
add_animation_controller_animation: {state: AnimationControllerState}
|
|
117
|
+
add_animation_controller_transition: {state: AnimationControllerState}
|
|
118
|
+
add_animation_controller_particle: {state: AnimationControllerState}
|
|
119
|
+
add_animation_controller_sound: {state: AnimationControllerState}
|
|
120
|
+
compile_bedrock_animation_controller: {state: AnimationController, json: any}
|
|
121
|
+
add_animation_controller: {state: AnimationController}
|
|
122
|
+
edit_animation_controller_properties: {state: AnimationController}
|
|
123
|
+
timeline_play: any
|
|
124
|
+
timeline_pause: any
|
|
125
|
+
unselect_interface: any
|
|
126
|
+
reset_layout: any
|
|
127
|
+
update_pressed_modifier_keys: {
|
|
128
|
+
before: {shift: boolean, alt: boolean, ctrl: boolean}
|
|
129
|
+
now: {shift: boolean, alt: boolean, ctrl: boolean}
|
|
130
|
+
event: KeyboardEvent
|
|
131
|
+
}
|
|
132
|
+
open_bar_menu: {menu: BarMenu}
|
|
133
|
+
unselect_all: any
|
|
134
|
+
get_face_texture: {face: Face, element: OutlinerElement}
|
|
135
|
+
quick_save_model: any
|
|
136
|
+
save_editor_state: any
|
|
137
|
+
load_editor_state: any
|
|
138
|
+
select_no_project: any
|
|
139
|
+
flip_node_name: any
|
|
140
|
+
update_scene_shading: any
|
|
141
|
+
edit_layer_properties: {layer: TextureLayer}
|
|
142
|
+
select_texture: {texture: Texture, event: Event}
|
|
143
|
+
compile_texture_mcmeta: {mcmeta: any}
|
|
144
|
+
register_element_type: any
|
|
145
|
+
edit_collection_properties: any
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
type BlockbenchEventName = keyof BlockbenchEventMap
|
|
149
|
+
|
|
150
|
+
type IconString = string | HTMLElement
|
|
151
|
+
|
|
152
|
+
declare const osfs: '\\' | '/'
|
|
153
|
+
|
|
154
|
+
declare function updateSelection(): void
|
|
155
|
+
|
|
156
|
+
declare var LZUTF8: any
|
|
157
|
+
|
|
158
|
+
declare function unselectAllElements(exceptions?: OutlinerNode[]): void
|
|
159
|
+
declare function getRescalingFactor(angle: number): number
|
|
160
|
+
/**
|
|
161
|
+
* Get the world-space center of the selection
|
|
162
|
+
* @param all If true, calculate the center of all elements instead of just selected
|
|
163
|
+
*/
|
|
164
|
+
declare function getSelectionCenter(all: boolean = false): ArrayVector3
|
|
165
|
+
declare function getSpatialInterval(event?: Event): number;
|
|
166
|
+
declare function getRotationInterval(event?: Event): number;
|
|
167
|
+
|
|
168
|
+
declare const Pressing: {
|
|
169
|
+
shift: boolean
|
|
170
|
+
ctrl: boolean
|
|
171
|
+
alt: boolean
|
|
172
|
+
overrides: {
|
|
173
|
+
shift: boolean
|
|
174
|
+
ctrl: boolean
|
|
175
|
+
alt: boolean
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
declare const Prop = {
|
|
180
|
+
active_panel: string,
|
|
181
|
+
fps: number,
|
|
182
|
+
show_left_bar: boolean,
|
|
183
|
+
show_right_bar: boolean,
|
|
184
|
+
}
|
|
185
|
+
declare const Project: ModelProject
|
|
186
|
+
declare const ReferenceImageMode: any
|
|
187
|
+
|
|
188
|
+
declare function isStringNumber(value: any): boolean
|
|
189
|
+
|
|
190
|
+
declare function marked(text: string): string
|
|
191
|
+
declare function pureMarked(text: string): string
|
|
192
|
+
|
|
193
|
+
declare type ReferenceImage = any
|
|
194
|
+
declare const ReferenceImage = any
|
|
195
|
+
declare type SplineMesh = typeof OutlinerElement & Record<string, any>
|
|
196
|
+
declare const SplineMesh: typeof OutlinerElement
|