blockbench-types 5.2.0-beta.0-next.1 → 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/custom/animation.d.ts +2 -1
- package/custom/blockbench.d.ts +5 -3
- package/custom/canvas.d.ts +20 -3
- package/custom/codec.d.ts +2 -2
- package/custom/cube.d.ts +1 -1
- package/custom/display_mode.d.ts +5 -1
- package/custom/global.d.ts +1 -2
- package/custom/interface.d.ts +5 -0
- package/custom/{toolbars.d.ts → keybind.d.ts} +4 -76
- package/custom/menu_bar.d.ts +66 -0
- package/custom/misc.d.ts +13 -5
- package/custom/painter.d.ts +33 -1
- package/custom/screencam.d.ts +1 -1
- package/custom/spline_mesh.d.ts +5 -4
- package/custom/textures.d.ts +2 -0
- package/generated/animations/timeline_animators.d.ts +1 -1
- package/generated/api.d.ts +2 -1
- package/generated/file_system.d.ts +1 -0
- package/generated/find_replace.d.ts +6 -0
- package/generated/interface/actions.d.ts +10 -9
- 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/shared_actions.d.ts +5 -0
- package/generated/interface/toolbars.d.ts +146 -46
- package/generated/io/format.d.ts +1 -0
- package/generated/io/project.d.ts +1 -1
- package/generated/main.d.ts +3 -0
- package/generated/modeling/mesh/add_mesh.d.ts +6 -0
- package/generated/modeling/mesh/util.d.ts +8 -2
- 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/util/gif.d.ts +12 -3
- package/generated/util/state_memory.d.ts +2 -10
- package/package.json +1 -1
- package/type_config.json +0 -2
- package/custom/menu.d.ts +0 -137
- package/custom/preview.d.ts +0 -147
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
interface BarItemRegistry {
|
|
3
|
+
move_tool: Tool;
|
|
4
|
+
resize_tool: Tool;
|
|
5
|
+
rotate_tool: Tool;
|
|
6
|
+
pivot_tool: Tool;
|
|
7
|
+
vertex_snap_tool: Tool;
|
|
8
|
+
stretch_tool: Tool;
|
|
9
|
+
swap_tools: Action;
|
|
10
|
+
set_element_marker_color: Action;
|
|
11
|
+
randomize_marker_colors: Action;
|
|
12
|
+
new_window: Action;
|
|
13
|
+
open_model_folder: Action;
|
|
14
|
+
reload: Action;
|
|
15
|
+
open_dev_tools: Action;
|
|
16
|
+
fullscreen: Action;
|
|
17
|
+
zoom_in: Action;
|
|
18
|
+
zoom_out: Action;
|
|
19
|
+
zoom_reset: Action;
|
|
20
|
+
toggle_sidebars: Action;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The menu class lets you create content menus. Context menus can contain custom menu items, and a number of existing UI elements, including Actions, Tools, etc.
|
|
3
|
+
*
|
|
4
|
+
* ## Example
|
|
5
|
+
* ```
|
|
6
|
+
* document.addEventListener('contextmenu', event => {
|
|
7
|
+
* let items = [
|
|
8
|
+
* 'open_model',
|
|
9
|
+
* {
|
|
10
|
+
* name: 'Example',
|
|
11
|
+
* icon: 'house',
|
|
12
|
+
* click() {
|
|
13
|
+
* console.log('Hello World')
|
|
14
|
+
* }
|
|
15
|
+
* }
|
|
16
|
+
* ];
|
|
17
|
+
* new Menu(items).open(event);
|
|
18
|
+
* })
|
|
19
|
+
* ```
|
|
20
|
+
* @module
|
|
21
|
+
*/
|
|
22
|
+
export interface CustomMenuItem {
|
|
23
|
+
name: string;
|
|
24
|
+
id?: string;
|
|
25
|
+
icon: IconString | boolean | ((context: any) => (IconString | boolean));
|
|
26
|
+
color?: string;
|
|
27
|
+
description?: string;
|
|
28
|
+
condition?: ConditionResolvable;
|
|
29
|
+
/**
|
|
30
|
+
* Keybind or string to display in the menu, won't work as an actual keybinding by default
|
|
31
|
+
*/
|
|
32
|
+
keybind?: Keybind | string;
|
|
33
|
+
/**
|
|
34
|
+
* If true, mark the menu item as the selected one (underlined text in default theme)
|
|
35
|
+
*/
|
|
36
|
+
marked?: boolean | ((context: any) => boolean);
|
|
37
|
+
/**
|
|
38
|
+
* Adds a search bar to the menu or submenu
|
|
39
|
+
*/
|
|
40
|
+
searchable?: boolean;
|
|
41
|
+
children?: MenuItem[] | ((context: any) => MenuItem[]);
|
|
42
|
+
click?(context?: any, event?: Event): void;
|
|
43
|
+
}
|
|
44
|
+
export type MenuItem = CustomMenuItem | Action | BarSelect | MenuSeparator | string | ((context: any) => MenuItem);
|
|
45
|
+
type MenuOpenPositionAnchor = MouseEvent | HTMLElement | 'mouse';
|
|
46
|
+
export interface MenuOptions {
|
|
47
|
+
onOpen?(position: MenuOpenPositionAnchor, context?: any): void;
|
|
48
|
+
onClose?(): void;
|
|
49
|
+
keep_open?: boolean;
|
|
50
|
+
searchable?: boolean;
|
|
51
|
+
class?: string | string[];
|
|
52
|
+
}
|
|
53
|
+
export declare class MenuSeparator {
|
|
54
|
+
id: string;
|
|
55
|
+
label?: string;
|
|
56
|
+
menu_node: HTMLLIElement;
|
|
57
|
+
constructor(id?: string, label?: string);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Use the Menu class to create a context menu. Menus can contain custom entries and hierarchy, or existing actions and tools.
|
|
61
|
+
*/
|
|
62
|
+
export declare class Menu implements Deletable {
|
|
63
|
+
id: string;
|
|
64
|
+
children: [];
|
|
65
|
+
structure: MenuItem[] | ((context: any) => MenuItem[]);
|
|
66
|
+
options?: MenuOptions;
|
|
67
|
+
condition?: ConditionResolvable;
|
|
68
|
+
onOpen?(position: MenuOpenPositionAnchor, context?: any): void;
|
|
69
|
+
onClose?(): void;
|
|
70
|
+
node: HTMLUListElement;
|
|
71
|
+
highlight_action?: MenuItem;
|
|
72
|
+
type: string;
|
|
73
|
+
/**
|
|
74
|
+
* Creates a new context menu
|
|
75
|
+
*/
|
|
76
|
+
constructor(template: MenuItem[] | ((context?: any) => MenuItem[]), options?: MenuOptions);
|
|
77
|
+
constructor(id: string, template: MenuItem[] | ((context?: any) => MenuItem[]), options?: MenuOptions);
|
|
78
|
+
hover(node: HTMLElement, event?: Event, expand?: boolean): void;
|
|
79
|
+
/**
|
|
80
|
+
* Trigger keyboard navigation
|
|
81
|
+
* @param e Event
|
|
82
|
+
* @returns True if the input was used for navigation
|
|
83
|
+
* @private
|
|
84
|
+
*/
|
|
85
|
+
keyNavigate(e: KeyboardEvent): boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Opens the menu somewhere
|
|
88
|
+
* @param position Position where to open the menu. Can be a mouse event, or a node that the menu is spawned below.
|
|
89
|
+
* @param context Context for the click events inside the menu
|
|
90
|
+
*/
|
|
91
|
+
open(position?: MenuOpenPositionAnchor, context?: any): this;
|
|
92
|
+
/**
|
|
93
|
+
* Alias for .open()
|
|
94
|
+
*/
|
|
95
|
+
show(position?: MenuOpenPositionAnchor, context?: any): this;
|
|
96
|
+
/**
|
|
97
|
+
* Closes the menu if it's open
|
|
98
|
+
*/
|
|
99
|
+
hide(): this;
|
|
100
|
+
/**
|
|
101
|
+
* @deprecated
|
|
102
|
+
*/
|
|
103
|
+
conditionMet(): boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Adds an action to the menu structure
|
|
106
|
+
* @param action Action to add
|
|
107
|
+
* @param path Path pointing to the location. Use the ID of each level of the menu, or index within a level, separated by a point. For example, `export.0` places the action at the top position of the Export submenu.
|
|
108
|
+
*/
|
|
109
|
+
addAction(action: Action | CustomMenuItem | '_', path?: string | number): void;
|
|
110
|
+
/**
|
|
111
|
+
* Remove an action or menu item from the menu
|
|
112
|
+
* @param path Path pointing to the location. Use the ID of each level of the menu, or index within a level, or item ID, separated by a point. For example, `export.export_special_format` removes the action "Export Special Format" from the Export submenu.
|
|
113
|
+
*/
|
|
114
|
+
removeAction(path: string | Action): void;
|
|
115
|
+
/**
|
|
116
|
+
* @deprecated Use removeAction instead
|
|
117
|
+
*/
|
|
118
|
+
deleteItem(rm_item: Action): void;
|
|
119
|
+
delete(): void;
|
|
120
|
+
static open: Menu | null;
|
|
121
|
+
static closed_in_this_click?: string;
|
|
122
|
+
}
|
|
123
|
+
export declare function preventContextMenu(): void;
|
|
124
|
+
declare const global: {
|
|
125
|
+
MenuSeparator: typeof import("./menu").MenuSeparator;
|
|
126
|
+
Menu: typeof import("./menu").Menu;
|
|
127
|
+
preventContextMenu: typeof import("./menu").preventContextMenu;
|
|
128
|
+
open_menu: any;
|
|
129
|
+
};
|
|
130
|
+
declare global {
|
|
131
|
+
type Menu = import('./menu').Menu;
|
|
132
|
+
const Menu: typeof global.Menu;
|
|
133
|
+
type MenuSeparator = import('./menu').MenuSeparator;
|
|
134
|
+
const MenuSeparator: typeof global.MenuSeparator;
|
|
135
|
+
function preventContextMenu(): void;
|
|
136
|
+
let open_menu: Menu | null;
|
|
137
|
+
interface Window {
|
|
138
|
+
open_menu: Menu | null;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
declare global {
|
|
2
2
|
class BarMenu extends Menu {
|
|
3
3
|
constructor(id: any, structure: any, options?: {});
|
|
4
|
-
type: string;
|
|
5
4
|
id: any;
|
|
6
5
|
children: any[];
|
|
7
6
|
condition: any;
|
|
@@ -9,7 +8,7 @@ declare global {
|
|
|
9
8
|
name: string;
|
|
10
9
|
label: HTMLElement;
|
|
11
10
|
structure: any;
|
|
12
|
-
highlight_action:
|
|
11
|
+
highlight_action: import("./menu").MenuItem;
|
|
13
12
|
open(...args: any[]): void;
|
|
14
13
|
hide(): this;
|
|
15
14
|
highlight(action: any): void;
|
|
@@ -27,5 +26,5 @@ declare global {
|
|
|
27
26
|
function removeAction(path: any): void;
|
|
28
27
|
}
|
|
29
28
|
}
|
|
30
|
-
|
|
29
|
+
import { Menu } from "./menu";
|
|
31
30
|
export {};
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* Handlers can be added for existing actions like this:
|
|
7
7
|
|
|
8
8
|
### Example:
|
|
9
|
+
* @example
|
|
9
10
|
```javascript
|
|
10
11
|
// Duplicate layers when using "Duplicate" in the layers panel
|
|
11
12
|
SharedActions.add('duplicate', {
|
|
@@ -23,6 +24,10 @@
|
|
|
23
24
|
}
|
|
24
25
|
})
|
|
25
26
|
```
|
|
27
|
+
* @module
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* Global Shared Actions namespace to access any functionality related to Shared Actions
|
|
26
31
|
*/
|
|
27
32
|
export declare const SharedActions: {
|
|
28
33
|
/**
|
|
@@ -1,50 +1,150 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Toolbars are UI elements that are usually constantly displayed on screen, e. g inside a panel, and can hold any number of BarItems, including Actions, Tools, BarSelects etc.
|
|
3
|
+
* Toolbars are made to be customized by users
|
|
4
|
+
* @module
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Registry of all toolbars
|
|
8
|
+
*/
|
|
9
|
+
export interface ToolbarRegistry {
|
|
10
|
+
tools: Toolbar;
|
|
11
|
+
main_tools: Toolbar;
|
|
12
|
+
element_position: Toolbar;
|
|
13
|
+
element_size: Toolbar;
|
|
14
|
+
element_stretch: Toolbar;
|
|
15
|
+
element_origin: Toolbar;
|
|
16
|
+
element_rotation: Toolbar;
|
|
17
|
+
brush: Toolbar;
|
|
18
|
+
vertex_snap: Toolbar;
|
|
19
|
+
seam_tool: Toolbar;
|
|
20
|
+
weight_brush: Toolbar;
|
|
21
|
+
outliner: Toolbar;
|
|
22
|
+
reference_images: Toolbar;
|
|
23
|
+
animations: Toolbar;
|
|
24
|
+
collections: Toolbar;
|
|
25
|
+
texturelist: Toolbar;
|
|
26
|
+
layers: Toolbar;
|
|
27
|
+
uv_editor: Toolbar;
|
|
28
|
+
display: Toolbar;
|
|
29
|
+
keyframe: Toolbar;
|
|
30
|
+
timeline: Toolbar;
|
|
31
|
+
color_picker: Toolbar;
|
|
32
|
+
palette: Toolbar;
|
|
33
|
+
skin_pose: Toolbar;
|
|
34
|
+
[id: string]: Toolbar;
|
|
35
|
+
}
|
|
36
|
+
export declare const Toolbars: Record<string, Toolbar>;
|
|
37
|
+
export interface ToolbarOptions {
|
|
38
|
+
id?: string;
|
|
39
|
+
name?: string;
|
|
40
|
+
/**
|
|
41
|
+
* If true, the toolbar will display a label abovee
|
|
42
|
+
*/
|
|
43
|
+
label?: boolean;
|
|
44
|
+
condition?: ConditionResolvable;
|
|
45
|
+
/**
|
|
46
|
+
* If true, the toolbar will only take as much width as needed
|
|
47
|
+
*/
|
|
48
|
+
narrow?: boolean;
|
|
49
|
+
vertical?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* If true, the toolbar will not wrap into new line, and will instead display an overflow button in case of overflow
|
|
52
|
+
*/
|
|
53
|
+
no_wrap?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* If true, add the toolbar automatically to it's designated spot in the UI
|
|
56
|
+
* @deprecated
|
|
57
|
+
*/
|
|
58
|
+
default_place?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Default content of the toolbar. Separators are available, where _ = separator, + = spaces, # = line break
|
|
61
|
+
*/
|
|
62
|
+
children: ('_' | '+' | '#' | string | BarItem)[];
|
|
63
|
+
}
|
|
64
|
+
export declare class Toolbar {
|
|
65
|
+
id: string;
|
|
66
|
+
name: string;
|
|
67
|
+
label: boolean;
|
|
68
|
+
label_node: HTMLElement;
|
|
69
|
+
condition: ConditionResolvable;
|
|
70
|
+
children: (BarItem | string)[];
|
|
71
|
+
no_wrap: boolean;
|
|
72
|
+
narrow: boolean;
|
|
73
|
+
vertical: boolean;
|
|
74
|
+
default_place: boolean;
|
|
75
|
+
default_children: (BarItem | string)[];
|
|
76
|
+
positionLookup: any;
|
|
77
|
+
condition_cache: any;
|
|
78
|
+
previously_enabled: any;
|
|
79
|
+
postload: any;
|
|
80
|
+
node: HTMLElement;
|
|
81
|
+
constructor(id: string, data: ToolbarOptions);
|
|
82
|
+
/**
|
|
83
|
+
* Legacy constructor
|
|
84
|
+
* @deprecated
|
|
85
|
+
*/
|
|
86
|
+
constructor(data: ToolbarOptions);
|
|
87
|
+
/**
|
|
88
|
+
* Builds the toolbar from data
|
|
89
|
+
* @param {object} data Data used to build the toolbar
|
|
90
|
+
* @param {boolean} force If true, customization data will be ignored. Used when resetting toolbar
|
|
91
|
+
*/
|
|
92
|
+
build(data: any, force?: boolean): this;
|
|
93
|
+
contextmenu(event: MouseEvent): void;
|
|
94
|
+
editMenu(): this;
|
|
95
|
+
add(action: BarItem, position?: number): this;
|
|
96
|
+
remove(action: BarItem | string, update?: boolean): this;
|
|
97
|
+
update(force?: boolean): this;
|
|
98
|
+
toPlace(place: string): this;
|
|
99
|
+
save(): this;
|
|
100
|
+
reset(): this;
|
|
101
|
+
menu: Menu;
|
|
102
|
+
}
|
|
103
|
+
export declare const BARS: {
|
|
104
|
+
stored: {
|
|
105
|
+
_known: any[];
|
|
106
|
+
};
|
|
107
|
+
editing_bar: any;
|
|
108
|
+
action_definers: any[];
|
|
109
|
+
condition: typeof Condition;
|
|
110
|
+
dialog: Dialog;
|
|
111
|
+
defineActions(definer: () => void): void;
|
|
112
|
+
setupActions(): void;
|
|
113
|
+
setupToolbars(): void;
|
|
114
|
+
setupVue(): void;
|
|
115
|
+
updateConditions(): void;
|
|
116
|
+
};
|
|
117
|
+
type ToolboxToolbar = Toolbar & {
|
|
118
|
+
selected: Tool;
|
|
119
|
+
original: any;
|
|
120
|
+
toggleTransforms(event?: MouseEvent): void;
|
|
121
|
+
};
|
|
122
|
+
declare const global: {
|
|
123
|
+
Toolbar: typeof import("./toolbars").Toolbar;
|
|
124
|
+
BARS: {
|
|
125
|
+
stored: {
|
|
126
|
+
_known: any[];
|
|
127
|
+
};
|
|
128
|
+
editing_bar: any;
|
|
129
|
+
action_definers: any[];
|
|
130
|
+
condition: typeof Condition;
|
|
131
|
+
dialog: Dialog;
|
|
132
|
+
defineActions(definer: () => void): void;
|
|
133
|
+
setupActions(): void;
|
|
134
|
+
setupToolbars(): void;
|
|
135
|
+
setupVue(): void;
|
|
136
|
+
updateConditions(): void;
|
|
137
|
+
};
|
|
138
|
+
Toolbars: Record<string, import("./toolbars").Toolbar>;
|
|
139
|
+
};
|
|
1
140
|
declare global {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
condition: any;
|
|
10
|
-
children: any[];
|
|
11
|
-
condition_cache: any[];
|
|
12
|
-
postload: any[][];
|
|
13
|
-
positionLookup: {};
|
|
14
|
-
no_wrap: boolean;
|
|
15
|
-
vertical: boolean;
|
|
16
|
-
default_children: any;
|
|
17
|
-
previously_enabled: boolean;
|
|
18
|
-
node: HTMLElement;
|
|
19
|
-
/**
|
|
20
|
-
* Builds the toolbar from data
|
|
21
|
-
* @param {object} data Data used to build the toolbar
|
|
22
|
-
* @param {boolean} force If true, customization data will be ignored. Used when resetting toolbar
|
|
23
|
-
*/
|
|
24
|
-
build(data: object, force: boolean): this;
|
|
25
|
-
contextmenu(event: any): void;
|
|
26
|
-
editMenu(): this;
|
|
27
|
-
add(action: any, position: any): this;
|
|
28
|
-
remove(action: any, update?: boolean): this;
|
|
29
|
-
update(force: any): this;
|
|
30
|
-
toPlace(place: any): this;
|
|
31
|
-
save(): this;
|
|
32
|
-
reset(): this;
|
|
33
|
-
menu: Menu;
|
|
34
|
-
}
|
|
35
|
-
namespace BARS {
|
|
36
|
-
namespace stored {
|
|
37
|
-
let _known: any[];
|
|
38
|
-
}
|
|
39
|
-
let editing_bar: any;
|
|
40
|
-
let action_definers: any[];
|
|
41
|
-
let condition: typeof Condition;
|
|
42
|
-
function defineActions(definer: any): void;
|
|
43
|
-
function setupActions(): void;
|
|
44
|
-
function setupToolbars(): void;
|
|
45
|
-
function setupVue(): void;
|
|
46
|
-
function updateConditions(): void;
|
|
141
|
+
type Toolbar = import('./toolbars').Toolbar;
|
|
142
|
+
const Toolbar: typeof global.Toolbar;
|
|
143
|
+
const Toolbars: ToolbarRegistry;
|
|
144
|
+
const BARS: typeof global.BARS;
|
|
145
|
+
const Toolbox: ToolboxToolbar;
|
|
146
|
+
interface Window {
|
|
147
|
+
Toolbox: ToolboxToolbar;
|
|
47
148
|
}
|
|
48
149
|
}
|
|
49
|
-
|
|
50
150
|
export {};
|
package/generated/io/format.d.ts
CHANGED
|
@@ -278,6 +278,7 @@ export type FormatOptions = FormatFeatures & {
|
|
|
278
278
|
confidential?: boolean;
|
|
279
279
|
condition?: ConditionResolvable;
|
|
280
280
|
show_on_start_screen?: boolean;
|
|
281
|
+
show_in_new_list?: boolean;
|
|
281
282
|
can_convert_to?: boolean;
|
|
282
283
|
format_page?: FormatPage;
|
|
283
284
|
onFormatPage?(): void;
|
|
@@ -92,7 +92,7 @@ export declare class ModelProject {
|
|
|
92
92
|
selected_groups: any;
|
|
93
93
|
spline_selection: any;
|
|
94
94
|
texture_groups: any;
|
|
95
|
-
collections:
|
|
95
|
+
collections: Collection[];
|
|
96
96
|
animation_controllers: any;
|
|
97
97
|
constructor(options?: ModelProjectOptions, uuid?: UUID);
|
|
98
98
|
extend(object: any): void;
|
package/generated/main.d.ts
CHANGED
|
@@ -38,6 +38,8 @@ import "./interface/keybinding";
|
|
|
38
38
|
import "./interface/settings";
|
|
39
39
|
import "./interface/about";
|
|
40
40
|
import "./interface/action_control";
|
|
41
|
+
import "./interface/toolbars";
|
|
42
|
+
import "./interface/main_tools";
|
|
41
43
|
import "./copy_paste";
|
|
42
44
|
import "./undo";
|
|
43
45
|
import './desktop.ts';
|
|
@@ -74,6 +76,7 @@ import "./modeling/mirror_modeling";
|
|
|
74
76
|
import "./modeling/spline_editing";
|
|
75
77
|
import "./modeling/weight_paint";
|
|
76
78
|
import "./modeling/generate_bounding_box";
|
|
79
|
+
import "./find_replace";
|
|
77
80
|
import "./texturing/textures";
|
|
78
81
|
import "./texturing/layers";
|
|
79
82
|
import "./texturing/texture_groups";
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
export declare function sameMeshEdge(edge_a: MeshEdge, edge_b: MeshEdge): boolean;
|
|
2
|
+
declare const global: {
|
|
3
|
+
sameMeshEdge: typeof import("./util").sameMeshEdge;
|
|
4
|
+
};
|
|
1
5
|
declare global {
|
|
2
|
-
|
|
6
|
+
const sameMeshEdge: typeof global.sameMeshEdge;
|
|
7
|
+
interface BarItemRegistry {
|
|
8
|
+
selection_mode: BarSelect;
|
|
9
|
+
}
|
|
3
10
|
}
|
|
4
|
-
|
|
5
11
|
export {};
|
package/generated/modes.d.ts
CHANGED
|
@@ -52,7 +52,7 @@ export declare const Modes: {
|
|
|
52
52
|
edit: boolean;
|
|
53
53
|
paint: boolean;
|
|
54
54
|
pose: boolean;
|
|
55
|
-
mobileModeMenu(button: any, event: any): Menu;
|
|
55
|
+
mobileModeMenu(button: any, event: any): import("./interface/menu").Menu;
|
|
56
56
|
};
|
|
57
57
|
declare const global: {
|
|
58
58
|
Mode: typeof import("./modes").Mode;
|
|
@@ -67,7 +67,7 @@ declare const global: {
|
|
|
67
67
|
edit: boolean;
|
|
68
68
|
paint: boolean;
|
|
69
69
|
pose: boolean;
|
|
70
|
-
mobileModeMenu(button: any, event: any): Menu;
|
|
70
|
+
mobileModeMenu(button: any, event: any): import("./interface/menu").Menu;
|
|
71
71
|
};
|
|
72
72
|
};
|
|
73
73
|
declare global {
|
|
@@ -12,6 +12,7 @@ interface OutlinerElementData {
|
|
|
12
12
|
}
|
|
13
13
|
export declare abstract class OutlinerElement extends OutlinerNode {
|
|
14
14
|
allow_mirror_modeling?: boolean;
|
|
15
|
+
faces?: Record<string, Face>;
|
|
15
16
|
static animator?: BoneAnimator;
|
|
16
17
|
static isParent: false;
|
|
17
18
|
static all: OutlinerElement[];
|
|
@@ -44,7 +44,7 @@ export declare class Armature extends OutlinerElement {
|
|
|
44
44
|
icon: string;
|
|
45
45
|
name_regex: () => false | "a-zA-Z0-9_";
|
|
46
46
|
buttons: OutlinerToggle[];
|
|
47
|
-
menu: Menu;
|
|
47
|
+
menu: import("../../interface/menu").Menu;
|
|
48
48
|
static all: Armature[];
|
|
49
49
|
static selected: Armature[];
|
|
50
50
|
}
|
|
@@ -73,7 +73,7 @@ export declare class ArmatureBone extends OutlinerElement {
|
|
|
73
73
|
icon: string;
|
|
74
74
|
name_regex: () => false | "a-zA-Z0-9_";
|
|
75
75
|
buttons: OutlinerToggle[];
|
|
76
|
-
menu: Menu;
|
|
76
|
+
menu: import("../../interface/menu").Menu;
|
|
77
77
|
}
|
|
78
78
|
export declare function getAllArmatureBones(): any[];
|
|
79
79
|
declare const global: {
|
|
@@ -118,7 +118,6 @@ declare global {
|
|
|
118
118
|
* Refresh the dummy face object of this spline, allowing us to paint on it, or to convert it to a Mesh.
|
|
119
119
|
*/
|
|
120
120
|
refreshTubeFaces(): void;
|
|
121
|
-
faces: {};
|
|
122
121
|
getSelectedVertices(make: any): any;
|
|
123
122
|
/**
|
|
124
123
|
Readonly list of selected handles, based on selected vertices.
|
|
@@ -206,7 +205,7 @@ declare global {
|
|
|
206
205
|
isSmoothShaded(): boolean;
|
|
207
206
|
title: string;
|
|
208
207
|
icon: string;
|
|
209
|
-
menu: Menu;
|
|
208
|
+
menu: import("../../interface/menu").Menu;
|
|
210
209
|
buttons: OutlinerToggle[];
|
|
211
210
|
}
|
|
212
211
|
}
|
|
@@ -215,7 +215,7 @@ export declare class Plugin {
|
|
|
215
215
|
fetchChangelog(force?: boolean): Promise<void>;
|
|
216
216
|
getPluginDetails(force_refresh?: boolean): PluginDetails;
|
|
217
217
|
static selected: Plugin | null;
|
|
218
|
-
static menu: Menu;
|
|
218
|
+
static menu: import("./interface/menu").Menu;
|
|
219
219
|
static register(id: string, data: PluginOptions): Plugin;
|
|
220
220
|
}
|
|
221
221
|
export declare const BBPlugin: typeof Plugin;
|