blockbench-types 5.1.0 → 5.2.0-beta.0-next.1

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.
Files changed (72) hide show
  1. package/README.md +30 -30
  2. package/custom/animation.d.ts +256 -256
  3. package/custom/animation_controller.d.ts +124 -124
  4. package/custom/blockbench.d.ts +71 -73
  5. package/custom/canvas.d.ts +307 -307
  6. package/custom/codec.d.ts +182 -182
  7. package/custom/copy_paste.d.ts +43 -42
  8. package/custom/cube.d.ts +151 -151
  9. package/custom/desktop.d.ts +61 -73
  10. package/custom/display_mode.d.ts +137 -137
  11. package/custom/edit_session.d.ts +38 -37
  12. package/custom/global.d.ts +182 -168
  13. package/custom/group.d.ts +113 -113
  14. package/custom/interface.d.ts +83 -78
  15. package/custom/io.d.ts +12 -12
  16. package/custom/keyframe.d.ts +94 -94
  17. package/custom/libs.d.ts +13 -13
  18. package/custom/menu.d.ts +137 -136
  19. package/custom/mesh.d.ts +196 -196
  20. package/custom/misc.d.ts +188 -199
  21. package/custom/molang.d.ts +159 -159
  22. package/custom/outliner.d.ts +158 -158
  23. package/custom/painter.d.ts +70 -69
  24. package/custom/preview.d.ts +147 -137
  25. package/custom/preview_scene.d.ts +120 -120
  26. package/custom/screencam.d.ts +71 -71
  27. package/custom/spline_mesh.d.ts +189 -189
  28. package/custom/texture_group.d.ts +68 -68
  29. package/custom/textures.d.ts +524 -515
  30. package/custom/timeline.d.ts +66 -66
  31. package/custom/toolbars.d.ts +222 -221
  32. package/custom/undo.d.ts +209 -208
  33. package/custom/util/version_util.d.ts +32 -32
  34. package/custom/util.d.ts +235 -235
  35. package/custom/uveditor.d.ts +3 -3
  36. package/custom/validator.d.ts +99 -99
  37. package/documentation.md +12 -12
  38. package/generated/animations/mirror_animating.d.ts +7 -0
  39. package/generated/api.d.ts +6 -0
  40. package/generated/file_system.d.ts +1 -1
  41. package/generated/formats/standards/obj.d.ts +9 -11
  42. package/generated/interface/actions.d.ts +6 -3
  43. package/generated/interface/form.d.ts +2 -1
  44. package/generated/interface/resize_lines.d.ts +2 -0
  45. package/generated/interface/settings.d.ts +6 -2
  46. package/generated/interface/start_screen.d.ts +62 -42
  47. package/generated/io/project.d.ts +9 -1
  48. package/generated/lib/CanvasFrame.d.ts +1 -0
  49. package/generated/main.d.ts +1 -1
  50. package/generated/modeling/mesh/proportional_edit.d.ts +15 -13
  51. package/generated/modeling/mirror_modeling.d.ts +4 -0
  52. package/generated/modeling/weight_paint.d.ts +11 -0
  53. package/generated/texturing/layers.d.ts +140 -0
  54. package/generated/util/state_memory.d.ts +1 -1
  55. package/index.d.ts +2 -2
  56. package/package.json +39 -39
  57. package/tsconfig.json +19 -19
  58. package/type_config.json +45 -46
  59. package/custom/start_screen.d.ts +0 -15
  60. package/custom/texture_layers.d.ts +0 -117
  61. package/generated/global_types.d.ts +0 -47
  62. package/generated/io/formats/bedrock.d.ts +0 -4
  63. package/generated/io/formats/bedrock_old.d.ts +0 -4
  64. package/generated/io/formats/collada.d.ts +0 -4
  65. package/generated/io/formats/fbx.d.ts +0 -17
  66. package/generated/io/formats/gltf.d.ts +0 -6
  67. package/generated/io/formats/java_block.d.ts +0 -4
  68. package/generated/io/formats/modded_entity.d.ts +0 -139
  69. package/generated/io/formats/obj.d.ts +0 -12
  70. package/generated/io/formats/optifine_jem.d.ts +0 -3
  71. package/generated/io/formats/optifine_jpm.d.ts +0 -3
  72. package/generated/io/formats/skin.d.ts +0 -22
package/custom/misc.d.ts CHANGED
@@ -1,199 +1,188 @@
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
- press_key: {input_in_focus?: HTMLElement, event: KeyboardEvent, capture: () => void}
90
- select_format: {format: ModelFormat, project: ModelProject}
91
- convert_format: {format: ModelFormat, old_format: ModelFormat}
92
- construct_format: {format: ModelFormat}
93
- delete_format: {format: ModelFormat}
94
- select_project: { project: ModelProject }
95
- unselect_project: { project: ModelProject }
96
- setup_project: any
97
- update_project_resolution: any
98
- merge_project: any
99
- display_model_stats: any
100
- update_view: UpdateViewOptions
101
- update_camera_position: {preview: Preview}
102
- render_frame: any
103
- construct_model_loader: any
104
- delete_model_loader: any
105
- update_recent_project_data: any
106
- update_recent_project_thumbnail: any
107
- load_from_recent_project_data: any
108
- edit_animation_properties: {animation: _Animation}
109
- select_preview_scene: any
110
- unselect_preview_scene: any
111
- select_animation: {animation: _Animation}
112
- remove_animation: {animations: _Animation[]}
113
- compile_bedrock_animation_controller_state: {state: AnimationControllerState, json: any}
114
- select_animation_controller_state: {state: AnimationControllerState}
115
- add_animation_controller_animation: {state: AnimationControllerState}
116
- add_animation_controller_transition: {state: AnimationControllerState}
117
- add_animation_controller_particle: {state: AnimationControllerState}
118
- add_animation_controller_sound: {state: AnimationControllerState}
119
- compile_bedrock_animation_controller: {state: AnimationController, json: any}
120
- add_animation_controller: {state: AnimationController}
121
- edit_animation_controller_properties: {state: AnimationController}
122
- timeline_play: any
123
- timeline_pause: any
124
- unselect_interface: any
125
- reset_layout: any
126
- update_pressed_modifier_keys: {
127
- before: {shift: boolean, alt: boolean, ctrl: boolean}
128
- now: {shift: boolean, alt: boolean, ctrl: boolean}
129
- event: KeyboardEvent
130
- }
131
- open_bar_menu: {menu: BarMenu}
132
- unselect_all: any
133
- get_face_texture: {face: Face, element: OutlinerElement}
134
- quick_save_model: any
135
- save_editor_state: any
136
- load_editor_state: any
137
- select_no_project: any
138
- flip_node_name: any
139
- update_scene_shading: any
140
- edit_layer_properties: {layer: TextureLayer}
141
- select_texture: {texture: Texture, event: Event}
142
- compile_texture_mcmeta: {mcmeta: any}
143
- register_element_type: any
144
- edit_collection_properties: any
145
- }
146
-
147
- type BlockbenchEventName = keyof BlockbenchEventMap
148
-
149
- type IconString = string
150
-
151
- declare const osfs: '\\' | '/'
152
-
153
- declare function updateSelection(): void
154
-
155
- declare var LZUTF8: any
156
-
157
- declare function unselectAllElements(exceptions?: OutlinerNode[]): void
158
- declare function updateCubeHighlights(hover_cube: Cube, force_off: boolean): 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
-
166
- declare const Pressing: {
167
- shift: boolean
168
- ctrl: boolean
169
- alt: boolean
170
- overrides: {
171
- shift: boolean
172
- ctrl: boolean
173
- alt: boolean
174
- }
175
- }
176
-
177
- type RecentProjectData = {
178
- name: string
179
- path: string
180
- icon: string
181
- day: number
182
- favorite: boolean
183
- textures?: string[]
184
- animation_files?: string[]
185
- }
186
- declare const recent_projects: RecentProjectData[]
187
-
188
- declare const Prop = {
189
- active_panel: string
190
- }
191
- declare const Project: ModelProject
192
-
193
- declare function updateCubeHighlights(hover_cube: Cube, force_off: boolean): void
194
- declare function getRescalingFactor(angle: number): number
195
-
196
- declare function isStringNumber(value: any): boolean
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
+ press_key: {input_in_focus?: HTMLElement, event: KeyboardEvent, capture: () => void}
90
+ select_format: {format: ModelFormat, project: ModelProject}
91
+ convert_format: {format: ModelFormat, old_format: ModelFormat}
92
+ construct_format: {format: ModelFormat}
93
+ delete_format: {format: ModelFormat}
94
+ select_project: { project: ModelProject }
95
+ unselect_project: { project: ModelProject }
96
+ setup_project: any
97
+ update_project_resolution: any
98
+ merge_project: any
99
+ display_model_stats: any
100
+ update_view: UpdateViewOptions
101
+ update_camera_position: {preview: Preview}
102
+ render_frame: any
103
+ construct_model_loader: any
104
+ delete_model_loader: any
105
+ update_recent_project_data: any
106
+ update_recent_project_thumbnail: any
107
+ load_from_recent_project_data: any
108
+ edit_animation_properties: {animation: _Animation}
109
+ select_preview_scene: any
110
+ unselect_preview_scene: any
111
+ select_animation: {animation: _Animation}
112
+ remove_animation: {animations: _Animation[]}
113
+ compile_bedrock_animation_controller_state: {state: AnimationControllerState, json: any}
114
+ select_animation_controller_state: {state: AnimationControllerState}
115
+ add_animation_controller_animation: {state: AnimationControllerState}
116
+ add_animation_controller_transition: {state: AnimationControllerState}
117
+ add_animation_controller_particle: {state: AnimationControllerState}
118
+ add_animation_controller_sound: {state: AnimationControllerState}
119
+ compile_bedrock_animation_controller: {state: AnimationController, json: any}
120
+ add_animation_controller: {state: AnimationController}
121
+ edit_animation_controller_properties: {state: AnimationController}
122
+ timeline_play: any
123
+ timeline_pause: any
124
+ unselect_interface: any
125
+ reset_layout: any
126
+ update_pressed_modifier_keys: {
127
+ before: {shift: boolean, alt: boolean, ctrl: boolean}
128
+ now: {shift: boolean, alt: boolean, ctrl: boolean}
129
+ event: KeyboardEvent
130
+ }
131
+ open_bar_menu: {menu: BarMenu}
132
+ unselect_all: any
133
+ get_face_texture: {face: Face, element: OutlinerElement}
134
+ quick_save_model: any
135
+ save_editor_state: any
136
+ load_editor_state: any
137
+ select_no_project: any
138
+ flip_node_name: any
139
+ update_scene_shading: any
140
+ edit_layer_properties: {layer: TextureLayer}
141
+ select_texture: {texture: Texture, event: Event}
142
+ compile_texture_mcmeta: {mcmeta: any}
143
+ register_element_type: any
144
+ edit_collection_properties: any
145
+ }
146
+
147
+ type BlockbenchEventName = keyof BlockbenchEventMap
148
+
149
+ type IconString = string | HTMLElement
150
+
151
+ declare const osfs: '\\' | '/'
152
+
153
+ declare function updateSelection(): void
154
+
155
+ declare var LZUTF8: any
156
+
157
+ declare function unselectAllElements(exceptions?: OutlinerNode[]): void
158
+ declare function updateCubeHighlights(hover_cube: Cube, force_off: boolean): 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
+
166
+ declare const Pressing: {
167
+ shift: boolean
168
+ ctrl: boolean
169
+ alt: boolean
170
+ overrides: {
171
+ shift: boolean
172
+ ctrl: boolean
173
+ alt: boolean
174
+ }
175
+ }
176
+
177
+ declare const Prop = {
178
+ active_panel: string
179
+ }
180
+ declare const Project: ModelProject
181
+
182
+ declare function updateCubeHighlights(hover_cube: Cube, force_off: boolean): void
183
+ declare function getRescalingFactor(angle: number): number
184
+
185
+ declare function isStringNumber(value: any): boolean
186
+
187
+ declare function marked(text: string): string
188
+ declare function pureMarked(text: string): string