blockbench-types 4.8.0 → 4.10.0

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 (50) hide show
  1. package/.prettierignore +1 -0
  2. package/.prettierrc.json +9 -0
  3. package/README.md +1 -0
  4. package/package.json +43 -33
  5. package/scripts/generate_docs.js +243 -194
  6. package/tsconfig.json +13 -14
  7. package/types/action.d.ts +358 -279
  8. package/types/animation.d.ts +181 -143
  9. package/types/animation_controller.d.ts +105 -99
  10. package/types/blockbench.d.ts +146 -76
  11. package/types/canvas.d.ts +239 -228
  12. package/types/canvas_frame.d.ts +2 -2
  13. package/types/codec.d.ts +36 -32
  14. package/types/cube.d.ts +32 -11
  15. package/types/desktop.d.ts +14 -0
  16. package/types/dialog.d.ts +164 -37
  17. package/types/display_mode.d.ts +13 -6
  18. package/types/file_system.d.ts +159 -0
  19. package/types/format.d.ts +46 -12
  20. package/types/global.d.ts +49 -3
  21. package/types/group.d.ts +16 -5
  22. package/types/index.d.ts +1 -0
  23. package/types/interface.d.ts +21 -12
  24. package/types/io.d.ts +2 -0
  25. package/types/keyframe.d.ts +73 -57
  26. package/types/legacy.d.ts +2 -1
  27. package/types/math_util.d.ts +1 -0
  28. package/types/menu.d.ts +93 -78
  29. package/types/mesh.d.ts +89 -64
  30. package/types/misc.d.ts +114 -47
  31. package/types/mode.d.ts +14 -0
  32. package/types/molang.d.ts +17 -0
  33. package/types/outliner.d.ts +42 -23
  34. package/types/painter.d.ts +49 -11
  35. package/types/panel.d.ts +49 -21
  36. package/types/plugin.d.ts +29 -1
  37. package/types/preview.d.ts +71 -69
  38. package/types/preview_scene.d.ts +11 -12
  39. package/types/project.d.ts +56 -34
  40. package/types/screencam.d.ts +11 -6
  41. package/types/settings.d.ts +87 -85
  42. package/types/shared_actions.d.ts +94 -0
  43. package/types/texture_layers.d.ts +117 -0
  44. package/types/textures.d.ts +381 -176
  45. package/types/timeline.d.ts +60 -60
  46. package/types/undo.d.ts +107 -103
  47. package/types/util.d.ts +165 -33
  48. package/types/uveditor.d.ts +3 -0
  49. package/types/validator.d.ts +3 -2
  50. package/types/vue.d.ts +7 -0
package/types/mesh.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ /// <reference path="./blockbench.d.ts"/>
1
2
  type OccupationMatrix = {
2
3
  [x: number]: {
3
4
  [y: number]: boolean
@@ -16,70 +17,10 @@ interface MeshOptions {
16
17
  [vkey: string]: ArrayVector3
17
18
  }
18
19
  }
19
- declare class Mesh extends OutlinerElement {
20
- constructor (options: Partial<MeshOptions>, uuid?: string)
21
-
22
- visibility: boolean
23
- color: number
24
-
25
- vertices: {
26
- [vkey: string]: ArrayVector3
27
- }
28
- faces: {
29
- [fkey: string]: MeshFace
30
- }
31
- seams: {
32
- [vkey: string]: MeshSeamValue
33
- }
34
-
35
- extend(options: Partial<MeshOptions>): this
36
-
37
- /**
38
- * Get selected vertices as vertex keys
39
- * @param can_write If true, the array can safely be modified to update the selection
40
- */
41
- getSelectedVertices(can_write: boolean): string[]
42
- /**
43
- * Get selected edges as vertex key pairs
44
- * @param can_write If true, the array can safely be modified to update the selection
45
- */
46
- getSelectedEdges(can_write: boolean): ([string, string])[]
47
- /**
48
- * Get selected faces as face keys
49
- * @param can_write If true, the array can safely be modified to update the selection
50
- */
51
- getSelectedVertices(can_write: boolean): string[]
52
-
53
- setSeam(edge: MeshEdge, value)
54
- getSeam(edge: MeshEdge): MeshSeamValue
55
- getWorldCenter(ignore_mesh_selection?: boolean): THREE.Vector3
56
- addVertices(...ArrayVector3): string[]
57
- addFaces(...MeshFace): string[]
58
- extend(data: MeshOptions): void
59
- getUndoCopy(aspects?: object): object
60
- getSaveCopy(project?: boolean): object
61
- getSelectionRotation(): THREE.Euler
62
- getCenter(global: boolean): THREE.Vector3
63
- forAllFaces(callback: (face: MeshFace, key: string) => void): void
64
- transferOrigin(origin: ArrayVector3, update?: boolean): void
65
- setColor(color: number): void
66
- roll(axis: number, steps: number, origin?: ArrayVector3): void
67
- flip(axis: number): void
68
- moveVector(offset: ArrayVector3, axis: number, update?: boolean): void
69
- resize(val: number, axis: number, negative: boolean, allow_negative: boolean, bidirectional?: boolean): void
70
- applyTexture(texture: Texture, faces?: true | undefined | string[]): void
71
-
72
- static all: Mesh[]
73
- static selected: Mesh[]
74
- /**Check if any elements of the type are in the project */
75
- static hasAny: () => boolean
76
- /**Check if any elements of the type are currently selected */
77
- static hasSelected: () => boolean
78
- }
79
20
 
80
21
  interface MeshFaceOptions extends FaceOptions {
81
22
  vertices: string[]
82
- uv: {[vkey: string]: ArrayVector2}
23
+ uv: { [vkey: string]: ArrayVector2 }
83
24
  }
84
25
  declare class MeshFace extends Face {
85
26
  constructor(mesh: Mesh, data: MeshFaceOptions)
@@ -95,11 +36,15 @@ declare class MeshFace extends Face {
95
36
  /**
96
37
  * Returns the face normal in mesh space as calculated from the vertex positions
97
38
  */
98
- getNormal(normalize): ArrayVector3
39
+ getNormal(normalize: boolean): ArrayVector3
99
40
  /**
100
41
  * Calculates which pixels the UV face occupies, and returns them as a map
101
42
  */
102
- getOccupationMatrix(texture_space?: boolean, start_offset?: ArrayVector2, matrix?: OccupationMatrix): OccupationMatrix
43
+ getOccupationMatrix(
44
+ texture_space?: boolean,
45
+ start_offset?: ArrayVector2,
46
+ matrix?: OccupationMatrix
47
+ ): OccupationMatrix
103
48
  /**
104
49
  * Get the keys of this face and all faces that are connected with it on the UV map
105
50
  */
@@ -123,7 +68,9 @@ declare class MeshFace extends Face {
123
68
  /**
124
69
  * Get the adjacent face in the specified side
125
70
  */
126
- getAdjacentFace(side_index: number): {face: MeshFace, key: string, edge: MeshEdge, index: number} | null
71
+ getAdjacentFace(
72
+ side_index: number
73
+ ): { face: MeshFace; key: string; edge: MeshEdge; index: number } | null
127
74
  /**
128
75
  * Returns the face key
129
76
  */
@@ -141,3 +88,81 @@ declare class MeshFace extends Face {
141
88
  */
142
89
  getCenter(): ArrayVector3
143
90
  }
91
+
92
+ interface MeshOptions {
93
+ name?: string
94
+ color?: number
95
+ visibility?: boolean
96
+ rotation?: ArrayVector3
97
+ origin?: ArrayVector3
98
+ vertices?: {
99
+ [vkey: string]: ArrayVector3
100
+ }
101
+ }
102
+ declare class Mesh extends OutlinerElement {
103
+ constructor(options: Partial<MeshOptions>, uuid?: string)
104
+
105
+ visibility: boolean
106
+ color: number
107
+
108
+ vertices: {
109
+ [vkey: string]: ArrayVector3
110
+ }
111
+ faces: {
112
+ [fkey: string]: MeshFace
113
+ }
114
+ seams: {
115
+ [vkey: string]: MeshSeamValue
116
+ }
117
+
118
+ extend(options: Partial<MeshOptions>): this
119
+
120
+ /**
121
+ * Get selected vertices as vertex keys
122
+ * @param can_write If true, the array can safely be modified to update the selection
123
+ */
124
+ getSelectedVertices(can_write: boolean): string[]
125
+ /**
126
+ * Get selected edges as vertex key pairs
127
+ * @param can_write If true, the array can safely be modified to update the selection
128
+ */
129
+ getSelectedEdges(can_write: boolean): [string, string][]
130
+ /**
131
+ * Get selected faces as face keys
132
+ * @param can_write If true, the array can safely be modified to update the selection
133
+ */
134
+ getSelectedVertices(can_write: boolean): string[]
135
+
136
+ setSeam(edge: MeshEdge, value: any): void
137
+ getSeam(edge: MeshEdge): MeshSeamValue
138
+ getWorldCenter(ignore_mesh_selection?: boolean): THREE.Vector3
139
+ addVertices(...ArrayVector3: ArrayVector3[]): string[]
140
+ addFaces(...MeshFace: MeshFace[]): string[]
141
+ extend(data: MeshOptions): void
142
+ getUndoCopy(aspects?: any): any
143
+ getSelectionRotation(): THREE.Euler
144
+ getCenter(global: boolean): THREE.Vector3
145
+ forAllFaces(callback: (face: MeshFace, key: string) => void): void
146
+ transferOrigin(origin: ArrayVector3, update?: boolean): void
147
+ setColor(color: number): void
148
+ roll(axis: number, steps: number, origin?: ArrayVector3): void
149
+ flip(axis: number): void
150
+ moveVector(offset: ArrayVector3, axis: number, update?: boolean): void
151
+ resize(
152
+ val: number,
153
+ axis: number,
154
+ negative: boolean,
155
+ allow_negative: boolean,
156
+ bidirectional?: boolean
157
+ ): void
158
+ applyTexture(texture: Texture, faces?: true | undefined | string[]): void
159
+
160
+ static all: Mesh[]
161
+ static selected: Mesh[]
162
+ /**Check if any elements of the type are in the project */
163
+ static hasAny: () => boolean
164
+ /**Check if any elements of the type are currently selected */
165
+ static hasSelected: () => boolean
166
+ }
167
+
168
+ interface MeshFaceOptions extends FaceOptions {}
package/types/misc.d.ts CHANGED
@@ -1,4 +1,4 @@
1
-
1
+ /// <reference path="./blockbench.d.ts"/>
2
2
 
3
3
  declare class Deletable {
4
4
  delete(): void
@@ -10,7 +10,8 @@ type UUID = string
10
10
  */
11
11
  declare const isApp: boolean
12
12
 
13
- type EventName = 'remove_animation'
13
+ type EventName =
14
+ | 'remove_animation'
14
15
  | 'display_animation_frame'
15
16
  | 'before_closing'
16
17
  | 'create_session'
@@ -47,11 +48,14 @@ type EventName = 'remove_animation'
47
48
  | 'canvas_click'
48
49
  | 'change_texture_path'
49
50
  | 'add_texture'
51
+ | 'update_texture_selection'
52
+ | 'init_edit'
50
53
  | 'finish_edit'
51
54
  | 'finished_edit'
52
55
  | 'undo'
53
56
  | 'redo'
54
57
  | 'load_undo_save'
58
+ | 'create_undo_save'
55
59
  | 'change_color'
56
60
  | 'select_mode'
57
61
  | 'unselect_mode'
@@ -78,44 +82,74 @@ type EventName = 'remove_animation'
78
82
  | 'edit_animation_properties'
79
83
  | 'select_preview_scene'
80
84
  | 'unselect_preview_scene'
85
+ | 'compile_bedrock_animation_controller_state'
86
+ | 'select_animation_controller_state'
87
+ | 'add_animation_controller_animation'
88
+ | 'add_animation_controller_transition'
89
+ | 'add_animation_controller_particle'
90
+ | 'add_animation_controller_sound'
91
+ | 'compile_bedrock_animation_controller'
92
+ | 'add_animation_controller'
93
+ | 'edit_animation_controller_properties'
94
+ | 'timeline_play'
95
+ | 'timeline_pause'
96
+ | 'unselect_interface'
97
+ | 'reset_layout'
98
+ | 'update_pressed_modifier_keys'
99
+ | 'open_bar_menu'
100
+ | 'unselect_all'
101
+ | 'quick_save_model'
102
+ | 'save_editor_state'
103
+ | 'load_editor_state'
104
+ | 'select_no_project'
105
+ | 'flip_node_name'
106
+ | 'update_scene_shading'
107
+ | 'edit_layer_properties'
108
+ | 'select_texture'
109
+ | 'compile_texture_mcmeta'
81
110
 
82
- type IconString = string;
111
+ type IconString = string
83
112
 
84
113
  interface MessageBoxOptions {
85
114
  /**
86
115
  * Index of the confirm button within the buttons array
87
116
  */
88
- confirm: number
117
+ confirm?: number
89
118
  /**
90
119
  * Index of the cancel button within the buttons array
91
120
  */
92
- cancel: number
93
- buttons: string[]
121
+ cancel?: number
122
+ buttons?: string[]
94
123
  translateKey?: string
95
124
  title?: string
96
125
  message?: string
97
126
  icon?: string
98
- width: number
127
+ width?: number
99
128
  /**
100
129
  * Display a list of actions to do in the dialog. When clicked, the message box closes with the string ID of the command as first argument.
101
130
  */
102
131
  commands?: {
103
- [id: string]: string | {text: string}
132
+ [id: string]: string | {
133
+ text: string
134
+ icon?: IconString
135
+ condition?: ConditionResolvable
136
+ description?: string
137
+ }
104
138
  }
105
139
  /**
106
140
  * Adds checkboxes to the bottom of the message box
107
141
  */
108
- checkboxes: {
109
- [id: string]: string | {
110
- value?: boolean
111
- condition: ConditionResolvable
112
- text: string
113
- }
142
+ checkboxes?: {
143
+ [id: string]:
144
+ | string
145
+ | {
146
+ value?: boolean
147
+ condition: ConditionResolvable
148
+ text: string
149
+ }
114
150
  }
115
151
  }
116
152
 
117
-
118
- type PropertyType = 'string' | 'number' | 'enum' | 'molang' | 'boolean' | 'array' | 'instance' | 'vector' | 'vector2'
119
153
  interface PropertyOptions {
120
154
  default?: any
121
155
  condition?: ConditionResolvable
@@ -124,44 +158,58 @@ interface PropertyOptions {
124
158
  /**
125
159
  * Options used for select types
126
160
  */
127
- options?: object
161
+ options?: any
128
162
  /**
129
163
  * Enum possible values
130
164
  */
131
- values: string[]
132
- merge?: (instance: any, data: object) => void
133
- reset?: (instance: any) => void
134
- merge_validation?: (value: any) => boolean
165
+ values?: string[]
166
+ merge?(instance: any, data: any): void
167
+ reset?(instance: any): void
168
+ merge_validation?(value: any): boolean
135
169
  }
170
+
171
+ interface IPropertyType {
172
+ string: string
173
+ molang: string
174
+ number: number
175
+ boolean: boolean
176
+ array: any[]
177
+ object: any
178
+ instance: any
179
+ vector: ArrayVector3
180
+ vector2: ArrayVector2
181
+ }
182
+
136
183
  /**
137
184
  * Creates a new property on the specified target class
138
185
  */
139
- declare class Property extends Deletable {
140
- constructor(target_class: any, type: PropertyType, name: string, options?: PropertyOptions);
141
- class: any;
142
- name: string;
143
- type: PropertyType;
144
- default: any;
145
-
146
- isString: boolean;
147
- isEnum: boolean;
148
- isMolang: boolean;
149
- isNumber: boolean;
150
- isBoolean: boolean;
151
- isArray: boolean;
152
- isVector: boolean;
153
- isVector2: boolean;
154
- isInstance: boolean;
155
-
186
+ declare class Property<T extends keyof IPropertyType> extends Deletable {
187
+ constructor(target_class: any, type: T, name: string, options?: PropertyOptions)
188
+ class: any
189
+ name: string
190
+ type: T
191
+ default: IPropertyType[T]
192
+ export?: boolean
193
+
194
+ isString: boolean
195
+ isEnum: boolean
196
+ isMolang: boolean
197
+ isNumber: boolean
198
+ isBoolean: boolean
199
+ isArray: boolean
200
+ isVector: boolean
201
+ isVector2: boolean
202
+ isInstance: boolean
203
+
156
204
  enum_values?: string[]
157
- merge_validation: undefined | ((value: any) => boolean);
158
- condition: ConditionResolvable;
159
- exposed: boolean;
160
- label: any;
161
- merge(instance: any, data: object): void
162
- reset(instance: any): void
163
- getDefault(instance: any): any;
164
- copy(instance: any, target: any): void;
205
+ merge_validation: undefined | ((value: IPropertyType[T]) => boolean)
206
+ condition: ConditionResolvable
207
+ exposed: boolean
208
+ label: any
209
+ merge(instance: IPropertyType[T], data: IPropertyType[T]): void
210
+ reset(instance: IPropertyType[T]): void
211
+ getDefault(instance: IPropertyType[T]): IPropertyType[T]
212
+ copy(instance: IPropertyType[T], target: IPropertyType[T]): void
165
213
  }
166
214
 
167
215
  declare function updateSelection(): void
@@ -189,5 +237,24 @@ declare namespace Language {
189
237
  * @param language Two letter language code, e. G. 'en'
190
238
  * @param strings Object listing the translation keys and values
191
239
  */
192
- function addTranslations(language: string, strings: {[key: string]: string})
240
+ function addTranslations(language: string, strings: { [key: string]: string }): void
241
+ }
242
+
243
+ interface Object {
244
+ boneConfig: Record<string, Property<any> | undefined>
245
+ }
246
+
247
+ declare var LZUTF8: any
248
+
249
+ interface ToastNotificationOptions {
250
+ text: string
251
+ icon?: string
252
+ expire?: number
253
+ color?: string
254
+ click?: () => boolean
193
255
  }
256
+ declare namespace Blockbench {
257
+ function showToastNotification(options: ToastNotificationOptions): Deletable
258
+ }
259
+
260
+ declare function unselectAllElements(): void
package/types/mode.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ /// <reference path="./blockbench.d.ts"/>
2
+
1
3
  interface ModeOptions {
2
4
  name: string
3
5
  default_tool?: string
@@ -16,6 +18,8 @@ interface ModeOptions {
16
18
  }
17
19
  declare class Mode extends KeybindItem {
18
20
  constructor(id: string, options: ModeOptions)
21
+ id: string
22
+ name: string
19
23
 
20
24
  /**Selects the mode */
21
25
  select(): void
@@ -24,11 +28,21 @@ declare class Mode extends KeybindItem {
24
28
  /**Activates the mode */
25
29
  trigger(): void
26
30
 
31
+ onSelect?(): void
32
+
33
+ onUnselect?(): void
34
+
27
35
  static selected: Mode
28
36
  }
29
37
 
30
38
  declare namespace Modes {
31
39
  const options: {
32
40
  [id: string]: Mode
41
+ animate: Mode
42
+ display: Mode
43
+ edit: Mode
44
+ paint: Mode
45
+ pose: Mode
33
46
  }
47
+ let selected: Mode | false | undefined
34
48
  }
@@ -0,0 +1,17 @@
1
+ declare class Molang {
2
+ parse(expression: string | number, variables?: Record<string, number>): number
3
+ global_variables: Record<string, string | number | ((...args: number[]) => number)>
4
+ variableHandler: (variable: string, variables?: Record<string, number>) => number
5
+ }
6
+
7
+ declare interface MolangExpression {
8
+ animation: _Animation
9
+ animator: BoneAnimator
10
+ channel: string
11
+ key: string
12
+ kf: _Keyframe
13
+ type: string
14
+ value: string
15
+ }
16
+
17
+ declare function getAllMolangExpressions(): MolangExpression[]
@@ -1,18 +1,21 @@
1
+ /// <reference path="./blockbench.d.ts"/>
1
2
  type ArrayVector4 = [number, number, number, number]
2
3
  type ArrayVector3 = [number, number, number]
3
4
  type ArrayVector2 = [number, number]
4
5
 
5
-
6
+ declare const elements: OutlinerNode[]
6
7
  /**
7
8
  * @private
8
9
  */
9
10
  declare class OutlinerNode {
10
- constructor ()
11
- uuid: UUID
11
+ static properties: Record<string, Property<any>>
12
+ constructor(uuid: UUID)
12
13
  name: string
14
+ uuid: UUID
13
15
  export: boolean
14
16
  locked: boolean
15
- parent: Group | 'root'
17
+ parent?: Group | 'root'
18
+ menu?: Menu
16
19
  /**
17
20
  * Initializes the node. This should always be called when creating nodes that will be used in the outliner.
18
21
  */
@@ -39,21 +42,23 @@ declare class OutlinerNode {
39
42
  /**
40
43
  * Saves the changed name of the element by creating an undo point and making the name unique if necessary.
41
44
  */
42
- saveName(): this
45
+ saveName(save?: boolean): this
43
46
  /**
44
47
  * Create a unique name for the group or element by adding a number at the end or increasing it.
45
48
  */
46
- createUniqueName(): this
49
+ createUniqueName(others?: OutlinerNode[]): this
47
50
  /**
48
51
  * Checks of the group or element is a child of `group`.
49
52
  * @param max_levels The maximum number of generations that can be between the element and the group
50
53
  */
51
- isChildOf( group: Group, max_levels: number ): boolean
54
+ isChildOf(group: Group, max_levels: number): boolean
52
55
  /**
53
56
  * Displays the context menu of the element
54
57
  * @param event Mouse event, determines where the context menu spawns.
55
58
  */
56
59
  showContexnu(event: Event | HTMLElement): this
60
+ getSaveCopy?(project?: boolean): OutlinerNode
61
+ sanitizeName(): string
57
62
 
58
63
  static uuids: {
59
64
  [uuid: UUID]: OutlinerNode
@@ -64,23 +69,29 @@ declare class OutlinerNode {
64
69
  * @private
65
70
  */
66
71
  declare class OutlinerElement extends OutlinerNode {
67
- constructor ()
72
+ static animator?: BoneAnimator
73
+ constructor(data: any, uuid: string)
68
74
  selected: boolean
69
- readonly mesh: THREE.Object3D | THREE.Mesh
70
- getMesh(): THREE.Object3D | THREE.Mesh
71
- static fromSave: (data: object, keep_uuid?: boolean) => OutlinerElement
75
+ mesh: THREE.Object3D | THREE.Mesh
76
+ static fromSave(data: any, keep_uuid?: boolean): OutlinerElement
72
77
  static isParent: false
78
+ static types: Record<string, typeof OutlinerElement>
79
+ static all: OutlinerElement[]
80
+ static selected: OutlinerElement[]
81
+ static registerType(constructor: any, id: string): void
82
+ select(event?: any, isOutlinerClick?: boolean): this | void
83
+ unselect(...args: any[]): this | void
73
84
  }
74
85
 
75
86
  interface LocatorOptions {
76
87
  name: string
77
88
  from: ArrayVector3
78
-
79
89
  }
80
90
  declare class Locator extends OutlinerElement {
81
- constructor (options: Partial<LocatorOptions>, uuid?: string)
91
+ constructor(options: Partial<LocatorOptions>, uuid?: string)
92
+ name: string
82
93
 
83
- extend(options: Partial<LocatorOptions>)
94
+ extend(options: Partial<LocatorOptions>): void
84
95
  flip(axis: number, center: number): this
85
96
  getWorldCenter(): THREE.Vector3
86
97
 
@@ -92,21 +103,19 @@ declare class Locator extends OutlinerElement {
92
103
  static hasSelected: () => boolean
93
104
  }
94
105
 
95
-
96
106
  interface NullObjectOptions {
97
107
  name?: string
98
108
  position?: ArrayVector3
99
109
  ik_target?: string
100
110
  lock_ik_target_rotation?: boolean
101
-
102
111
  }
103
112
  declare class NullObject extends OutlinerElement {
104
- constructor (options: Partial<NullObjectOptions>, uuid?: string)
113
+ constructor(options: Partial<NullObjectOptions>, uuid?: string)
105
114
  position: ArrayVector3
106
115
  ik_target: string
107
116
  lock_ik_target_rotation: boolean
108
117
 
109
- extend(options: Partial<NullObjectOptions>)
118
+ extend(options: Partial<NullObjectOptions>): void
110
119
  flip(axis: number, center: number): this
111
120
  getWorldCenter(): THREE.Vector3
112
121
 
@@ -118,7 +127,6 @@ declare class NullObject extends OutlinerElement {
118
127
  static hasSelected: () => boolean
119
128
  }
120
129
 
121
-
122
130
  interface TextureMeshOptions {
123
131
  name?: string
124
132
  texture_name?: string
@@ -128,12 +136,12 @@ interface TextureMeshOptions {
128
136
  scale?: ArrayVector3
129
137
  }
130
138
  declare class TextureMesh extends OutlinerElement {
131
- constructor (options: Partial<TextureMeshOptions>, uuid?: string)
139
+ constructor(options: Partial<TextureMeshOptions>, uuid?: string)
132
140
  texture_name: string
133
141
  local_pivot: ArrayVector3
134
142
  scale: ArrayVector3
135
143
 
136
- extend(options: Partial<TextureMeshOptions>)
144
+ extend(options: Partial<TextureMeshOptions>): void
137
145
  flip(axis: number, center: number): this
138
146
  getWorldCenter(): THREE.Vector3
139
147
  moveVector(offset: ArrayVector3 | THREE.Vector3, axis: number, update?: boolean): void
@@ -142,12 +150,19 @@ declare class TextureMesh extends OutlinerElement {
142
150
  static selected: TextureMesh[]
143
151
  }
144
152
 
145
-
146
-
147
153
  declare namespace Outliner {
148
154
  const root: OutlinerNode[]
149
155
  const elements: OutlinerElement[]
150
156
  const selected: OutlinerElement[]
157
+ let control_menu_group: MenuItem[]
158
+ const buttons: {
159
+ autouv: any
160
+ export: any
161
+ locked: any
162
+ mirror_uv: any
163
+ shade: any
164
+ visibility: any
165
+ }
151
166
  }
152
167
 
153
168
  declare const markerColors: {
@@ -155,3 +170,7 @@ declare const markerColors: {
155
170
  standard: string
156
171
  name: string
157
172
  }[]
173
+
174
+ declare function compileGroups(undo: boolean, lut?: { [index: number]: number }): any[]
175
+
176
+ declare function parseGroups(array: any[], import_reference?: any, startIndex?: number): void