blockbench-types 5.1.0-beta.2-next.1 → 5.1.0-beta.2-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/custom/codec.d.ts +2 -2
- package/custom/misc.d.ts +2 -2
- package/generated/api.d.ts +2 -2
- package/generated/formats/bedrock/bedrock.d.ts +1 -1
- package/generated/interface/actions.d.ts +4 -0
- package/generated/io/project.d.ts +0 -1
- package/generated/languages.d.ts +1 -1
- package/generated/modeling/mesh/knife_tool.d.ts +1 -0
- package/generated/outliner/abstract/outliner_node.d.ts +1 -0
- package/generated/outliner/collections.d.ts +1 -0
- package/package.json +1 -1
package/custom/codec.d.ts
CHANGED
|
@@ -68,9 +68,9 @@ declare class Codec extends Deletable {
|
|
|
68
68
|
* Load a file into the program
|
|
69
69
|
* @param model
|
|
70
70
|
* @param file
|
|
71
|
-
* @param
|
|
71
|
+
* @param args Load options
|
|
72
72
|
*/
|
|
73
|
-
load(model: any, file?:
|
|
73
|
+
load(model: any, file?: FileSystem.FileResult, args?: LoadOptions): void
|
|
74
74
|
/**
|
|
75
75
|
* Compiles the file content
|
|
76
76
|
* @param options
|
package/custom/misc.d.ts
CHANGED
|
@@ -91,8 +91,8 @@ interface BlockbenchEventMap {
|
|
|
91
91
|
convert_format: {format: ModelFormat, old_format: ModelFormat}
|
|
92
92
|
construct_format: {format: ModelFormat}
|
|
93
93
|
delete_format: {format: ModelFormat}
|
|
94
|
-
select_project: { project:
|
|
95
|
-
unselect_project: { project:
|
|
94
|
+
select_project: { project: ModelProject }
|
|
95
|
+
unselect_project: { project: ModelProject }
|
|
96
96
|
setup_project: any
|
|
97
97
|
update_project_resolution: any
|
|
98
98
|
merge_project: any
|
package/generated/api.d.ts
CHANGED
|
@@ -85,7 +85,7 @@ export declare const Blockbench: {
|
|
|
85
85
|
once<T extends BlockbenchEventName, D extends BlockbenchEventMap[T]>(event_name: T, cb: (data: D) => any): Deletable;
|
|
86
86
|
addListener<T extends BlockbenchEventName, D extends BlockbenchEventMap[T]>(event_name: T, cb: (data: D) => any): Deletable;
|
|
87
87
|
removeListener<T extends BlockbenchEventName, D extends BlockbenchEventMap[T]>(event_name: T, cb: (data: D) => any): void;
|
|
88
|
-
onUpdateTo(version:
|
|
88
|
+
onUpdateTo(version: string, callback: (previous_version: string) => void): void;
|
|
89
89
|
Format: (ModelFormat | number);
|
|
90
90
|
Project: (ModelProject | number);
|
|
91
91
|
readonly Undo: UndoSystem;
|
|
@@ -168,7 +168,7 @@ declare const global: {
|
|
|
168
168
|
once<T extends BlockbenchEventName, D extends BlockbenchEventMap[T]>(event_name: T, cb: (data: D) => any): Deletable;
|
|
169
169
|
addListener<T extends BlockbenchEventName, D extends BlockbenchEventMap[T]>(event_name: T, cb: (data: D) => any): Deletable;
|
|
170
170
|
removeListener<T extends BlockbenchEventName, D extends BlockbenchEventMap[T]>(event_name: T, cb: (data: D) => any): void;
|
|
171
|
-
onUpdateTo(version:
|
|
171
|
+
onUpdateTo(version: string, callback: (previous_version: string) => void): void;
|
|
172
172
|
Format: (ModelFormat | number);
|
|
173
173
|
Project: (ModelProject | number);
|
|
174
174
|
readonly Undo: UndoSystem;
|
|
@@ -354,6 +354,10 @@ export interface ToggleOptions extends Omit<ActionOptions, 'click'> {
|
|
|
354
354
|
* Default value of the toggle
|
|
355
355
|
*/
|
|
356
356
|
default?: boolean;
|
|
357
|
+
/**
|
|
358
|
+
* If true, remember the value between restarts
|
|
359
|
+
*/
|
|
360
|
+
save_on_restart?: boolean;
|
|
357
361
|
/**
|
|
358
362
|
* ID of a setting that the toggle is linked to
|
|
359
363
|
*/
|
package/generated/languages.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ type Language = Record<string, string>;
|
|
|
2
2
|
export declare const data: Record<string, Language>;
|
|
3
3
|
/**
|
|
4
4
|
* Returns a translated string in the current language
|
|
5
|
-
* @param
|
|
5
|
+
* @param string Translation key
|
|
6
6
|
* @param variables Array of variables that replace anchors (%0, etc.) in the translation. Items can be strings or anything that can be converted to strings
|
|
7
7
|
* @param default_value String value to default to if the translation is not available
|
|
8
8
|
*/
|
|
@@ -36,6 +36,7 @@ export declare abstract class OutlinerNode {
|
|
|
36
36
|
addTo(target?: OutlinerNode | 'root', index?: number): this;
|
|
37
37
|
removeFromParent(): this;
|
|
38
38
|
getParentArray(): OutlinerNode[];
|
|
39
|
+
getAllAncestors(): OutlinerNode[];
|
|
39
40
|
showContextMenu(event: any): this;
|
|
40
41
|
/**
|
|
41
42
|
* Unfolds the outliner and scrolls up or down if necessary to show the group or element.
|