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/global.d.ts
CHANGED
|
@@ -1,168 +1,181 @@
|
|
|
1
|
-
/// <reference types="./blockbench"/>
|
|
2
|
-
|
|
3
|
-
declare global {
|
|
4
|
-
// const Prism: typeof import('prismjs')
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated Use {@link Canvas.scene} instead
|
|
7
|
-
*/
|
|
8
|
-
const scene: THREE.Scene
|
|
9
|
-
const Transformer: any
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated
|
|
13
|
-
*/
|
|
14
|
-
const main_preview: Preview
|
|
15
|
-
/**
|
|
16
|
-
* @deprecated
|
|
17
|
-
*/
|
|
18
|
-
let open_interface: Dialog | any | undefined
|
|
19
|
-
|
|
20
|
-
function confirm(message: string, title: string): boolean
|
|
21
|
-
|
|
22
|
-
const PathModule: typeof import('path')
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* @deprecated Use {@link Outliner.selected} instead
|
|
26
|
-
*/
|
|
27
|
-
let selected: OutlinerElement[]
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
function
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
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
|
-
V3_add(
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
V3_subtract(
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
V3_multiply(
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
V3_divide(
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
1
|
+
/// <reference types="./blockbench"/>
|
|
2
|
+
|
|
3
|
+
declare global {
|
|
4
|
+
// const Prism: typeof import('prismjs')
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated Use {@link Canvas.scene} instead
|
|
7
|
+
*/
|
|
8
|
+
const scene: THREE.Scene
|
|
9
|
+
const Transformer: any
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated
|
|
13
|
+
*/
|
|
14
|
+
const main_preview: Preview
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated
|
|
17
|
+
*/
|
|
18
|
+
let open_interface: Dialog | any | undefined
|
|
19
|
+
|
|
20
|
+
function confirm(message: string, title: string): boolean
|
|
21
|
+
|
|
22
|
+
const PathModule: typeof import('path')
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated Use {@link Outliner.selected} instead
|
|
26
|
+
*/
|
|
27
|
+
let selected: OutlinerElement[]
|
|
28
|
+
|
|
29
|
+
function rotateOnAxis(modify: OutlinerNode, axis: number, slider?: boolean): void
|
|
30
|
+
function afterRotateOnAxis(): void
|
|
31
|
+
|
|
32
|
+
// const Transformer: THREE.TransformControls
|
|
33
|
+
interface HTMLImageElement {
|
|
34
|
+
src: string
|
|
35
|
+
tex: THREE.Texture & {
|
|
36
|
+
magFilter: THREE.TextureFilter
|
|
37
|
+
minFilter: THREE.TextureFilter
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
interface Date {
|
|
41
|
+
/**
|
|
42
|
+
* Returns a timestamp in the format 16:30
|
|
43
|
+
*/
|
|
44
|
+
getTimestamp(): string
|
|
45
|
+
getDateArray(): number[]
|
|
46
|
+
getDateString(): string
|
|
47
|
+
dayOfYear(): number
|
|
48
|
+
}
|
|
49
|
+
interface Number {
|
|
50
|
+
toDigitString(digits: number): string
|
|
51
|
+
}
|
|
52
|
+
interface String {
|
|
53
|
+
hashCode(): number
|
|
54
|
+
}
|
|
55
|
+
interface Event {
|
|
56
|
+
readonly ctrlOrCmd: boolean
|
|
57
|
+
}
|
|
58
|
+
interface Math {
|
|
59
|
+
limitNumber(number: number, min: number, max: number): number
|
|
60
|
+
radToDeg(radians: number): number
|
|
61
|
+
degToRad(degrees: number): number
|
|
62
|
+
/**
|
|
63
|
+
* Rounds the input number to N digits
|
|
64
|
+
*/
|
|
65
|
+
roundTo(number: number, digits: number): number
|
|
66
|
+
/**
|
|
67
|
+
* Test if the number is between two other numbers
|
|
68
|
+
*/
|
|
69
|
+
isBetween(number: number, limit1: number, limit2: number): boolean
|
|
70
|
+
/**
|
|
71
|
+
* Checks if the absolute difference between a and b is smaller than epsilon
|
|
72
|
+
*/
|
|
73
|
+
epsilon(a: number, b: number, epsilon?: number): boolean
|
|
74
|
+
/**
|
|
75
|
+
* Take a rotation value in degrees, and trim it to a value between -180 and 180, while keeping the same angle
|
|
76
|
+
*/
|
|
77
|
+
trimDeg(degrees: number): number
|
|
78
|
+
isPowerOfTwo(number: number): boolean
|
|
79
|
+
/***
|
|
80
|
+
* Checks if the input is of type number
|
|
81
|
+
*/
|
|
82
|
+
isNumber(number: any): boolean
|
|
83
|
+
/**
|
|
84
|
+
* Generates a random float between a and b
|
|
85
|
+
*/
|
|
86
|
+
randomab(a: number, b: number): number
|
|
87
|
+
areMultiples(number1: number, number2: number): boolean
|
|
88
|
+
/**
|
|
89
|
+
* Return the next highest power of n
|
|
90
|
+
* @param num Power
|
|
91
|
+
* @param min Value that the result should be equal to or higher than
|
|
92
|
+
*/
|
|
93
|
+
getNextPower(num: number, min: number): number
|
|
94
|
+
/**
|
|
95
|
+
* Snap the value to the closest number in a list of 1 or more snap points
|
|
96
|
+
*/
|
|
97
|
+
snapToValues(number: number, snap_points: number[], epsilon: number): number
|
|
98
|
+
/**
|
|
99
|
+
* Get the lerp alpha value of m, between points a and b
|
|
100
|
+
*/
|
|
101
|
+
getLerp: (a: number, b: number, m: number) => number
|
|
102
|
+
/**
|
|
103
|
+
* Lerp between a and b using the 0-1 alpha value
|
|
104
|
+
*/
|
|
105
|
+
lerp: (a: number, b: number, alpha: number) => number
|
|
106
|
+
/**
|
|
107
|
+
* Return a random integer
|
|
108
|
+
*/
|
|
109
|
+
randomInteger: (a: number, b: number) => number
|
|
110
|
+
hermiteBlend: (input: number) => number
|
|
111
|
+
clamp: (number: number, min: number, max: number) => number
|
|
112
|
+
}
|
|
113
|
+
interface Array<T> {
|
|
114
|
+
remove(item: any): boolean
|
|
115
|
+
/***
|
|
116
|
+
* Adds items to the array if they are not yet in the array
|
|
117
|
+
*/
|
|
118
|
+
safePush(...items: any): boolean
|
|
119
|
+
equals(array: Array<any>): boolean
|
|
120
|
+
replace(items: T[]): boolean
|
|
121
|
+
allAre(callback: (item: T, index: number) => boolean): boolean
|
|
122
|
+
findInArray(key: string, value: any): number
|
|
123
|
+
findHighest(callback: ((item: T) => number)): T
|
|
124
|
+
positiveItems(): number
|
|
125
|
+
/**
|
|
126
|
+
* Empties the array
|
|
127
|
+
*/
|
|
128
|
+
empty(): this
|
|
129
|
+
last(): T
|
|
130
|
+
/**
|
|
131
|
+
* Get the item at the specified index with a modulo applied, so any index will return a value
|
|
132
|
+
*/
|
|
133
|
+
atWrapped(index: number): T
|
|
134
|
+
allEqual(item: T): boolean
|
|
135
|
+
random(): T
|
|
136
|
+
toggle(item: T, state?: boolean): boolean
|
|
137
|
+
/**
|
|
138
|
+
* Same as forEach, but in reverse order
|
|
139
|
+
*/
|
|
140
|
+
forEachReverse(callback: (item: T, index: number) => void): void
|
|
141
|
+
/**
|
|
142
|
+
* Returns the amount of items that exist in this array and the reference array
|
|
143
|
+
*/
|
|
144
|
+
overlap(arr: Array<any>): number
|
|
145
|
+
|
|
146
|
+
V3_set(x: number, y: number, z: number): ArrayVector3
|
|
147
|
+
V3_set(values: ArrayVector3): ArrayVector3
|
|
148
|
+
// V3_set(value: THREE.Vector3): this
|
|
149
|
+
V3_add(x: number, y: number, z: number): ArrayVector3
|
|
150
|
+
V3_add(values: ArrayVector3): ArrayVector3
|
|
151
|
+
V3_add(value: THREE.Vector3): ArrayVector3
|
|
152
|
+
V3_subtract(x: number, y: number, z: number): ArrayVector3
|
|
153
|
+
V3_subtract(values: ArrayVector3): ArrayVector3
|
|
154
|
+
V3_subtract(value: THREE.Vector3): ArrayVector3
|
|
155
|
+
V3_multiply(x: number, y: number, z: number): ArrayVector3
|
|
156
|
+
V3_multiply(values: ArrayVector3): ArrayVector3
|
|
157
|
+
V3_multiply(value: THREE.Vector3): ArrayVector3
|
|
158
|
+
V3_divide(x: number, y: number, z: number): ArrayVector3
|
|
159
|
+
V3_divide(values: ArrayVector3): ArrayVector3
|
|
160
|
+
V3_divide(value: THREE.Vector3): ArrayVector3
|
|
161
|
+
V3_toThree(): THREE.Vector3
|
|
162
|
+
|
|
163
|
+
V2_set(x: number, y: number): ArrayVector2
|
|
164
|
+
V2_set(values: ArrayVector2): ArrayVector2
|
|
165
|
+
V2_add(x: number, y: number): ArrayVector2
|
|
166
|
+
V2_add(values: ArrayVector2): ArrayVector2
|
|
167
|
+
V2_subtract(x: number, y: number): ArrayVector2
|
|
168
|
+
V2_subtract(values: ArrayVector2): ArrayVector2
|
|
169
|
+
V2_multiply(x: number, y: number): ArrayVector2
|
|
170
|
+
V2_multiply(values: ArrayVector2): ArrayVector2
|
|
171
|
+
V2_divide(x: number, y: number): ArrayVector2
|
|
172
|
+
V2_divide(values: ArrayVector2): ArrayVector2
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
interface Event {
|
|
176
|
+
shiftKey?: boolean
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export { }
|
|
181
|
+
|
package/custom/group.d.ts
CHANGED
|
@@ -1,113 +1,113 @@
|
|
|
1
|
-
interface GroupOptions {
|
|
2
|
-
/**Group name */
|
|
3
|
-
name: string
|
|
4
|
-
/**Array of the group pivot point */
|
|
5
|
-
origin: ArrayVector3
|
|
6
|
-
/**Array of the group rotation */
|
|
7
|
-
rotation: ArrayVector3
|
|
8
|
-
/**If a bone, whether to reset the informations of inherited bones in bedrock edition. */
|
|
9
|
-
reset: boolean
|
|
10
|
-
/**Whether to shade the contents of the group */
|
|
11
|
-
shade: boolean
|
|
12
|
-
/**Whether the group is selected */
|
|
13
|
-
selected: boolean
|
|
14
|
-
/**Whether the group is visible */
|
|
15
|
-
visibility: boolean
|
|
16
|
-
/**Whether to export the entire group */
|
|
17
|
-
export: boolean
|
|
18
|
-
/**Auto UV setting for the children. Can be 0, 1 or 2. */
|
|
19
|
-
autouv: 0 | 1 | 2
|
|
20
|
-
mirror_uv: boolean
|
|
21
|
-
color: number
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
declare class Group extends OutlinerNode {
|
|
25
|
-
constructor(options: Partial<GroupOptions> | string)
|
|
26
|
-
/**
|
|
27
|
-
* Returns the selected groups
|
|
28
|
-
* @Note This only includes directly selected groups, not groups that are selected because the parent is selected
|
|
29
|
-
*/
|
|
30
|
-
static selected: Group[]
|
|
31
|
-
/**
|
|
32
|
-
* The first group in {@link Group.multi_selected}
|
|
33
|
-
*/
|
|
34
|
-
static first_selected: Group | undefined
|
|
35
|
-
/**
|
|
36
|
-
* A list of directly selected groups.
|
|
37
|
-
* @Note This only includes directly selected groups, not groups that are selected because the parent is selected
|
|
38
|
-
*/
|
|
39
|
-
static multi_selected: Group[]
|
|
40
|
-
/**
|
|
41
|
-
* All groups in the current project
|
|
42
|
-
*/
|
|
43
|
-
static all: Group[]
|
|
44
|
-
static animator: BoneAnimator
|
|
45
|
-
/**Check if any groups are in the project */
|
|
46
|
-
static hasAny: () => boolean
|
|
47
|
-
|
|
48
|
-
name: string
|
|
49
|
-
children: OutlinerNode[]
|
|
50
|
-
origin: ArrayVector3
|
|
51
|
-
rotation: ArrayVector3
|
|
52
|
-
reset: boolean
|
|
53
|
-
shade: boolean
|
|
54
|
-
selected: boolean
|
|
55
|
-
visibility: boolean
|
|
56
|
-
autouv: 0 | 1 | 2
|
|
57
|
-
mirror_uv: boolean
|
|
58
|
-
color: number
|
|
59
|
-
isOpen: boolean
|
|
60
|
-
ik_enabled: boolean
|
|
61
|
-
ik_chain_length: number
|
|
62
|
-
texture?: string
|
|
63
|
-
skin_original_origin?: ArrayVector3
|
|
64
|
-
bedrock_binding?: string
|
|
65
|
-
cem_animations?: any[]
|
|
66
|
-
cem_attach?: boolean
|
|
67
|
-
cem_model?: string
|
|
68
|
-
cem_scale?: number
|
|
69
|
-
mesh: THREE.Object3D
|
|
70
|
-
|
|
71
|
-
[key: string]: any
|
|
72
|
-
|
|
73
|
-
static preview_controller: NodePreviewController
|
|
74
|
-
|
|
75
|
-
extend(options: Partial<GroupOptions>): this
|
|
76
|
-
selectChildren(event: Event): this
|
|
77
|
-
/**
|
|
78
|
-
* Mark the group as selected
|
|
79
|
-
*/
|
|
80
|
-
markAsSelected(descendants?: boolean): void
|
|
81
|
-
select(event?: any, isOutlinerClick?: boolean): this
|
|
82
|
-
unselect(): this
|
|
83
|
-
matchesSelection(): boolean
|
|
84
|
-
/**
|
|
85
|
-
* Opens the group and all of its ancestor groups.
|
|
86
|
-
*/
|
|
87
|
-
openUp(): this
|
|
88
|
-
/**
|
|
89
|
-
* Removes the group
|
|
90
|
-
* @param undo If true, an undo point will be created.
|
|
91
|
-
*/
|
|
92
|
-
remove(undo?: boolean): this
|
|
93
|
-
/**
|
|
94
|
-
* Remove the group and leave all of its children in the parent array.
|
|
95
|
-
*/
|
|
96
|
-
resolve(): OutlinerNode[]
|
|
97
|
-
/**
|
|
98
|
-
* Move the origin of a bone to a specific location without visually affecting the position of it's content.
|
|
99
|
-
*/
|
|
100
|
-
transferOrigin(origin: ArrayVector3): this
|
|
101
|
-
/**
|
|
102
|
-
* Sort the content of the group alphabetically. This will automatically create an undo point.
|
|
103
|
-
*/
|
|
104
|
-
sortContent(): this
|
|
105
|
-
/**
|
|
106
|
-
* Duplicate the group
|
|
107
|
-
*/
|
|
108
|
-
duplicate(): Group
|
|
109
|
-
getSaveCopy(): any
|
|
110
|
-
getChildlessCopy(): Group
|
|
111
|
-
compile(undo: boolean): any
|
|
112
|
-
forEachChild(callback: (any: OutlinerNode) => void, type?: any, for_self?: boolean): void
|
|
113
|
-
}
|
|
1
|
+
interface GroupOptions {
|
|
2
|
+
/**Group name */
|
|
3
|
+
name: string
|
|
4
|
+
/**Array of the group pivot point */
|
|
5
|
+
origin: ArrayVector3
|
|
6
|
+
/**Array of the group rotation */
|
|
7
|
+
rotation: ArrayVector3
|
|
8
|
+
/**If a bone, whether to reset the informations of inherited bones in bedrock edition. */
|
|
9
|
+
reset: boolean
|
|
10
|
+
/**Whether to shade the contents of the group */
|
|
11
|
+
shade: boolean
|
|
12
|
+
/**Whether the group is selected */
|
|
13
|
+
selected: boolean
|
|
14
|
+
/**Whether the group is visible */
|
|
15
|
+
visibility: boolean
|
|
16
|
+
/**Whether to export the entire group */
|
|
17
|
+
export: boolean
|
|
18
|
+
/**Auto UV setting for the children. Can be 0, 1 or 2. */
|
|
19
|
+
autouv: 0 | 1 | 2
|
|
20
|
+
mirror_uv: boolean
|
|
21
|
+
color: number
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare class Group extends OutlinerNode {
|
|
25
|
+
constructor(options: Partial<GroupOptions> | string)
|
|
26
|
+
/**
|
|
27
|
+
* Returns the selected groups
|
|
28
|
+
* @Note This only includes directly selected groups, not groups that are selected because the parent is selected
|
|
29
|
+
*/
|
|
30
|
+
static selected: Group[]
|
|
31
|
+
/**
|
|
32
|
+
* The first group in {@link Group.multi_selected}
|
|
33
|
+
*/
|
|
34
|
+
static first_selected: Group | undefined
|
|
35
|
+
/**
|
|
36
|
+
* A list of directly selected groups.
|
|
37
|
+
* @Note This only includes directly selected groups, not groups that are selected because the parent is selected
|
|
38
|
+
*/
|
|
39
|
+
static multi_selected: Group[]
|
|
40
|
+
/**
|
|
41
|
+
* All groups in the current project
|
|
42
|
+
*/
|
|
43
|
+
static all: Group[]
|
|
44
|
+
static animator: BoneAnimator
|
|
45
|
+
/**Check if any groups are in the project */
|
|
46
|
+
static hasAny: () => boolean
|
|
47
|
+
|
|
48
|
+
name: string
|
|
49
|
+
children: OutlinerNode[]
|
|
50
|
+
origin: ArrayVector3
|
|
51
|
+
rotation: ArrayVector3
|
|
52
|
+
reset: boolean
|
|
53
|
+
shade: boolean
|
|
54
|
+
selected: boolean
|
|
55
|
+
visibility: boolean
|
|
56
|
+
autouv: 0 | 1 | 2
|
|
57
|
+
mirror_uv: boolean
|
|
58
|
+
color: number
|
|
59
|
+
isOpen: boolean
|
|
60
|
+
ik_enabled: boolean
|
|
61
|
+
ik_chain_length: number
|
|
62
|
+
texture?: string
|
|
63
|
+
skin_original_origin?: ArrayVector3
|
|
64
|
+
bedrock_binding?: string
|
|
65
|
+
cem_animations?: any[]
|
|
66
|
+
cem_attach?: boolean
|
|
67
|
+
cem_model?: string
|
|
68
|
+
cem_scale?: number
|
|
69
|
+
mesh: THREE.Object3D
|
|
70
|
+
|
|
71
|
+
[key: string]: any
|
|
72
|
+
|
|
73
|
+
static preview_controller: NodePreviewController
|
|
74
|
+
|
|
75
|
+
extend(options: Partial<GroupOptions>): this
|
|
76
|
+
selectChildren(event: Event): this
|
|
77
|
+
/**
|
|
78
|
+
* Mark the group as selected
|
|
79
|
+
*/
|
|
80
|
+
markAsSelected(descendants?: boolean): void
|
|
81
|
+
select(event?: any, isOutlinerClick?: boolean): this
|
|
82
|
+
unselect(): this
|
|
83
|
+
matchesSelection(): boolean
|
|
84
|
+
/**
|
|
85
|
+
* Opens the group and all of its ancestor groups.
|
|
86
|
+
*/
|
|
87
|
+
openUp(): this
|
|
88
|
+
/**
|
|
89
|
+
* Removes the group
|
|
90
|
+
* @param undo If true, an undo point will be created.
|
|
91
|
+
*/
|
|
92
|
+
remove(undo?: boolean): this
|
|
93
|
+
/**
|
|
94
|
+
* Remove the group and leave all of its children in the parent array.
|
|
95
|
+
*/
|
|
96
|
+
resolve(): OutlinerNode[]
|
|
97
|
+
/**
|
|
98
|
+
* Move the origin of a bone to a specific location without visually affecting the position of it's content.
|
|
99
|
+
*/
|
|
100
|
+
transferOrigin(origin: ArrayVector3): this
|
|
101
|
+
/**
|
|
102
|
+
* Sort the content of the group alphabetically. This will automatically create an undo point.
|
|
103
|
+
*/
|
|
104
|
+
sortContent(): this
|
|
105
|
+
/**
|
|
106
|
+
* Duplicate the group
|
|
107
|
+
*/
|
|
108
|
+
duplicate(): Group
|
|
109
|
+
getSaveCopy(): any
|
|
110
|
+
getChildlessCopy(): Group
|
|
111
|
+
compile(undo: boolean): any
|
|
112
|
+
forEachChild(callback: (any: OutlinerNode) => void, type?: any, for_self?: boolean): void
|
|
113
|
+
}
|