blockbench-types 5.0.0 → 5.0.6
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 +3 -0
- package/custom/canvas.d.ts +2 -0
- package/custom/copy_paste.d.ts +42 -0
- package/custom/cube.d.ts +3 -3
- package/custom/desktop.d.ts +1 -0
- package/custom/group.d.ts +4 -1
- package/custom/keyframe.d.ts +1 -0
- package/custom/mesh.d.ts +2 -2
- package/custom/misc.d.ts +4 -0
- package/custom/outliner.d.ts +5 -1
- package/custom/textures.d.ts +17 -1
- package/custom/util.d.ts +1 -4
- package/generated/api.d.ts +2 -1
- package/generated/file_system.d.ts +8 -8
- package/generated/interface/panels.d.ts +5 -1
- package/generated/io/format.d.ts +9 -1
- package/generated/io/formats/gltf.d.ts +1 -1
- package/generated/languages.d.ts +1 -0
- package/generated/lib/easing.d.ts +35 -32
- package/generated/lib/libs.d.ts +1 -0
- package/generated/misc.d.ts +0 -1
- package/generated/modeling/mesh_editing.d.ts +1 -0
- package/generated/modeling/mirror_modeling.d.ts +2 -1
- package/generated/outliner/armature.d.ts +1 -1
- package/generated/outliner/armature_bone.d.ts +3 -1
- package/generated/outliner/billboard.d.ts +1 -1
- package/generated/outliner/collections.d.ts +1 -2
- package/generated/outliner/spline_mesh.d.ts +1 -1
- package/generated/plugin_loader.d.ts +2 -0
- package/generated/util/dynamic_2d_map.d.ts +11 -0
- package/generated/util/event_system.d.ts +1 -1
- package/package.json +1 -1
- package/type_config.json +3 -1
- package/generated/copy_paste.d.ts +0 -39
- package/generated/display_mode/display_references.d.ts +0 -5
package/custom/animation.d.ts
CHANGED
|
@@ -162,6 +162,8 @@ interface AddChannelOptions {
|
|
|
162
162
|
transform?: boolean
|
|
163
163
|
mutable?: boolean
|
|
164
164
|
max_data_points?: number
|
|
165
|
+
condition?: ConditionResolvable
|
|
166
|
+
displayFrame?: (animator: GeneralAnimator, multiplier: number) => void
|
|
165
167
|
}
|
|
166
168
|
interface Channel {
|
|
167
169
|
name: string
|
|
@@ -222,6 +224,7 @@ declare class NullObjectAnimator extends GeneralAnimator {
|
|
|
222
224
|
displayFrame(): void
|
|
223
225
|
}
|
|
224
226
|
declare class EffectAnimator extends GeneralAnimator {
|
|
227
|
+
constructor(animation: _Animation)
|
|
225
228
|
name: string
|
|
226
229
|
uuid: string
|
|
227
230
|
rotations: _Keyframe[]
|
package/custom/canvas.d.ts
CHANGED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
namespace Clipbench {
|
|
3
|
+
let elements: any[];
|
|
4
|
+
enum types {
|
|
5
|
+
text = 'text',
|
|
6
|
+
display_slot = 'display_slot',
|
|
7
|
+
keyframe = 'keyframe',
|
|
8
|
+
animation = 'animation',
|
|
9
|
+
face = 'face',
|
|
10
|
+
mesh_selection = 'mesh_selection',
|
|
11
|
+
texture = 'texture',
|
|
12
|
+
layer = 'layer',
|
|
13
|
+
outliner = 'outliner',
|
|
14
|
+
texture_selection = 'texture_selection',
|
|
15
|
+
image = 'image',
|
|
16
|
+
}
|
|
17
|
+
let image: undefined | {
|
|
18
|
+
x: number,
|
|
19
|
+
y: number,
|
|
20
|
+
frame?: number
|
|
21
|
+
data: string
|
|
22
|
+
}
|
|
23
|
+
namespace type_icons {
|
|
24
|
+
let face = 'aspect_ratio';
|
|
25
|
+
let mesh_selection = 'fa-gem';
|
|
26
|
+
let outliner = 'fas.fa-cube';
|
|
27
|
+
}
|
|
28
|
+
function getCopyType(mode: any, check: any): Clipbench.types;
|
|
29
|
+
function getPasteType(): Promise<Clipbench.types>;
|
|
30
|
+
function copy(event: Event, cut: any): void;
|
|
31
|
+
function paste(event: Event): Promise<void>;
|
|
32
|
+
function setGroups(groups: Group[]): void;
|
|
33
|
+
function setElements(arr: OutlinerElement[]): void;
|
|
34
|
+
function setText(text: string): void;
|
|
35
|
+
function setMeshSelection(mesh: Mesh): void;
|
|
36
|
+
function pasteMeshSelection(): void;
|
|
37
|
+
function pasteOutliner(event: Event): void;
|
|
38
|
+
function pasteImage(): void;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export {};
|
package/custom/cube.d.ts
CHANGED
|
@@ -83,7 +83,7 @@ declare class Cube extends OutlinerElement {
|
|
|
83
83
|
size(axis: number, floored?: boolean): number
|
|
84
84
|
rotationAxis(): string
|
|
85
85
|
getUndoCopy(aspects?: any): void
|
|
86
|
-
getSaveCopy(
|
|
86
|
+
getSaveCopy(): Cube
|
|
87
87
|
/**
|
|
88
88
|
* Rotate the cube around axis in 90 degree steps
|
|
89
89
|
* @param axis Axis index
|
|
@@ -135,9 +135,9 @@ declare class Face {
|
|
|
135
135
|
getBoundingRect(): any
|
|
136
136
|
reset(): void
|
|
137
137
|
/**
|
|
138
|
-
* Returns a save copy of the face, ready for serialization
|
|
138
|
+
* Returns a save copy of the face, ready for serialization
|
|
139
139
|
*/
|
|
140
|
-
getSaveCopy(
|
|
140
|
+
getSaveCopy(): any
|
|
141
141
|
/**
|
|
142
142
|
* Get a copy for undo tracking
|
|
143
143
|
*/
|
package/custom/desktop.d.ts
CHANGED
|
@@ -70,3 +70,4 @@ declare function requireNativeModule(module: 'tls', options?: RequireDialogOptio
|
|
|
70
70
|
declare function requireNativeModule(module: 'util', options?: RequireDialogOptions): (typeof import("node:util")) | undefined;
|
|
71
71
|
declare function requireNativeModule(module: 'os', options?: RequireDialogOptions): (typeof import("node:os")) | undefined;
|
|
72
72
|
declare function requireNativeModule(module: 'v8', options?: RequireDialogOptions): (typeof import("node:v8")) | undefined;
|
|
73
|
+
declare function requireNativeModule(module: 'clipboard', options?: RequireDialogOptions): (import('electron').Clipboard) | undefined;
|
package/custom/group.d.ts
CHANGED
|
@@ -74,7 +74,10 @@ declare class Group extends OutlinerNode {
|
|
|
74
74
|
|
|
75
75
|
extend(options: Partial<GroupOptions>): this
|
|
76
76
|
selectChildren(event: Event): this
|
|
77
|
-
|
|
77
|
+
/**
|
|
78
|
+
* Mark the group as selected
|
|
79
|
+
*/
|
|
80
|
+
markAsSelected(descendants?: boolean): void
|
|
78
81
|
select(event?: any, isOutlinerClick?: boolean): this
|
|
79
82
|
unselect(): this
|
|
80
83
|
matchesSelection(): boolean
|
package/custom/keyframe.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ interface KeyframeDataPointData {
|
|
|
11
11
|
declare class KeyframeDataPoint extends Object {
|
|
12
12
|
static properties: Record<string, Property<any>>
|
|
13
13
|
constructor(keyframe: _Keyframe)
|
|
14
|
+
readonly keyframe: Keyframe
|
|
14
15
|
extend(data: KeyframeDataPointData): void
|
|
15
16
|
getUndoCopy(): {
|
|
16
17
|
[key: string]: any
|
package/custom/mesh.d.ts
CHANGED
|
@@ -19,8 +19,8 @@ interface MeshOptions {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
interface MeshFaceOptions extends FaceOptions {
|
|
22
|
-
vertices
|
|
23
|
-
uv
|
|
22
|
+
vertices?: string[]
|
|
23
|
+
uv?: { [vkey: string]: ArrayVector2 }
|
|
24
24
|
}
|
|
25
25
|
declare class MeshFace extends Face {
|
|
26
26
|
constructor(mesh: Mesh, data: MeshFaceOptions)
|
package/custom/misc.d.ts
CHANGED
|
@@ -24,6 +24,8 @@ declare const VuePrismEditor: Vue.Component
|
|
|
24
24
|
type EventName =
|
|
25
25
|
| 'remove_animation'
|
|
26
26
|
| 'display_animation_frame'
|
|
27
|
+
| 'display_default_pose'
|
|
28
|
+
| 'interpolate_keyframes'
|
|
27
29
|
| 'before_closing'
|
|
28
30
|
| 'create_session'
|
|
29
31
|
| 'join_session'
|
|
@@ -63,6 +65,7 @@ type EventName =
|
|
|
63
65
|
| 'canvas_click'
|
|
64
66
|
| 'change_texture_path'
|
|
65
67
|
| 'add_texture'
|
|
68
|
+
| 'generate_texture_template'
|
|
66
69
|
| 'update_texture_selection'
|
|
67
70
|
| 'init_edit'
|
|
68
71
|
| 'finish_edit'
|
|
@@ -86,6 +89,7 @@ type EventName =
|
|
|
86
89
|
| 'setup_project'
|
|
87
90
|
| 'update_project_resolution'
|
|
88
91
|
| 'merge_project'
|
|
92
|
+
| 'display_model_stats'
|
|
89
93
|
| 'update_view'
|
|
90
94
|
| 'update_camera_position'
|
|
91
95
|
| 'render_frame'
|
package/custom/outliner.d.ts
CHANGED
|
@@ -36,6 +36,10 @@ declare class OutlinerNode {
|
|
|
36
36
|
addTo(target?: OutlinerNode | 'root'): this
|
|
37
37
|
sortInBefore(target?: OutlinerNode, index_modifier?: number): this
|
|
38
38
|
select(event?: any, isOutlinerClick?: boolean): this
|
|
39
|
+
/**
|
|
40
|
+
* Mark the element as selected
|
|
41
|
+
*/
|
|
42
|
+
markAsSelected(descendants?: boolean): void
|
|
39
43
|
getParentArray(): OutlinerNode[]
|
|
40
44
|
/**
|
|
41
45
|
* Unfolds the outliner and scrolls up or down if necessary to show the group or element.
|
|
@@ -76,7 +80,7 @@ declare class OutlinerNode {
|
|
|
76
80
|
|
|
77
81
|
getTypeBehavior(flag: string): boolean | string | any
|
|
78
82
|
|
|
79
|
-
static addBehaviorOverride(override_options: {condition: ConditionResolvable, behavior: Record<string, any>}): Deletable
|
|
83
|
+
static addBehaviorOverride(override_options: {condition: ConditionResolvable, priority?: number, behavior: Record<string, any>}): Deletable
|
|
80
84
|
static behavior_overrides = [];
|
|
81
85
|
|
|
82
86
|
static uuids: {
|
package/custom/textures.d.ts
CHANGED
|
@@ -109,6 +109,9 @@ declare global {
|
|
|
109
109
|
render_mode: 'default' | 'emissive' | 'additive' | 'layered' | string
|
|
110
110
|
render_sides: 'auto' | 'front' | 'double' | string
|
|
111
111
|
pbr_channel: 'color' | 'normal' | 'height' | 'mer'
|
|
112
|
+
use_as_default: boolean
|
|
113
|
+
/** UUID of the TextureGroup that this texture is in, if set */
|
|
114
|
+
group: string
|
|
112
115
|
|
|
113
116
|
/** Texture animation frame time */
|
|
114
117
|
frame_time: number
|
|
@@ -153,6 +156,10 @@ declare global {
|
|
|
153
156
|
* Set a function that will run once the next time the texture is loaded
|
|
154
157
|
*/
|
|
155
158
|
load_callback?: null | ((texture: Texture) => void)
|
|
159
|
+
/**
|
|
160
|
+
* Custom texture flags
|
|
161
|
+
*/
|
|
162
|
+
flags: Set
|
|
156
163
|
|
|
157
164
|
/**
|
|
158
165
|
* Texture selection in paint mode
|
|
@@ -177,6 +184,7 @@ declare global {
|
|
|
177
184
|
* Texture image element
|
|
178
185
|
*/
|
|
179
186
|
img: HTMLImageElement
|
|
187
|
+
readonly offset: ArrayVector2
|
|
180
188
|
|
|
181
189
|
relative_path?: string
|
|
182
190
|
get material(): THREE.ShaderMaterial
|
|
@@ -273,6 +281,10 @@ declare global {
|
|
|
273
281
|
* Enables 'particle' on this texture if it is not enabled on any other texture
|
|
274
282
|
*/
|
|
275
283
|
fillParticle(): this
|
|
284
|
+
/**
|
|
285
|
+
* Select this as the default texture in supported formats
|
|
286
|
+
*/
|
|
287
|
+
setAsDefaultTexture()
|
|
276
288
|
/**
|
|
277
289
|
* Applies the texture to the selected elements
|
|
278
290
|
* @param all If true, the texture is applied to all faces of the elements. If 'blank', the texture is only applied to blank faces
|
|
@@ -362,6 +374,10 @@ declare global {
|
|
|
362
374
|
syncToOtherProject(): this
|
|
363
375
|
|
|
364
376
|
getUndoCopy(): Texture
|
|
377
|
+
/**
|
|
378
|
+
* Return the texture group that the texture is attached to
|
|
379
|
+
*/
|
|
380
|
+
getGroup(): TextureGroup | undefined
|
|
365
381
|
|
|
366
382
|
static all: Texture[]
|
|
367
383
|
static getDefault(): Texture
|
|
@@ -425,7 +441,7 @@ declare global {
|
|
|
425
441
|
* Return the smallest possible rectangle that contains all of the selection
|
|
426
442
|
* @param respect_empty If true, if there is no selection, the bounding box will still cover the entire area
|
|
427
443
|
*/
|
|
428
|
-
getBoundingRect(respect_empty: boolean): Rectangle
|
|
444
|
+
getBoundingRect(respect_empty: boolean = false): Rectangle
|
|
429
445
|
/**
|
|
430
446
|
* Checks whether a selection is present and contains selected pixels
|
|
431
447
|
*/
|
package/custom/util.d.ts
CHANGED
|
@@ -37,10 +37,7 @@ declare function Condition(condition: ConditionResolvable): boolean
|
|
|
37
37
|
/**
|
|
38
38
|
* Wrapper for anys that tells the custom JSON exporter to write in one line
|
|
39
39
|
*/
|
|
40
|
-
|
|
41
|
-
constructor(data?: any)
|
|
42
|
-
[key: string]: any
|
|
43
|
-
}
|
|
40
|
+
const oneLiner: new <T>(data?: T) => T
|
|
44
41
|
|
|
45
42
|
/**
|
|
46
43
|
* If the input event is a touch event, convert touch event to a compatible mouse event
|
package/generated/api.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ declare global {
|
|
|
40
40
|
events: {};
|
|
41
41
|
openTime: Date;
|
|
42
42
|
setup_successful: null | true;
|
|
43
|
+
argv: string[];
|
|
43
44
|
/**
|
|
44
45
|
* @deprecated Use Undo.initEdit and Undo.finishEdit instead
|
|
45
46
|
*/
|
|
@@ -76,7 +77,7 @@ declare global {
|
|
|
76
77
|
removeMenuEntry(name: string): void;
|
|
77
78
|
openLink(link: string): void;
|
|
78
79
|
notification(title: string, text: string, icon?: string): void;
|
|
79
|
-
addCSS(css: string): Deletable;
|
|
80
|
+
addCSS(css: string, layer?: string): Deletable;
|
|
80
81
|
addFlag(flag: string): void;
|
|
81
82
|
removeFlag(flag: string): void;
|
|
82
83
|
hasFlag(flag: string): boolean | undefined;
|
|
@@ -9,16 +9,16 @@ declare global {
|
|
|
9
9
|
/**
|
|
10
10
|
* The resource identifier group, used to allow the file dialog (open and save) to remember where it was last used
|
|
11
11
|
*/
|
|
12
|
-
type ResourceID = string | 'texture' | 'minecraft_skin' | 'dev_plugin' | 'animation' | 'animation_particle' | 'animation_audio' | 'theme' | 'model' | 'gltf' | 'obj' | 'preview_background' | 'screenshot' | 'palette';
|
|
12
|
+
export type ResourceID = string | 'texture' | 'minecraft_skin' | 'dev_plugin' | 'animation' | 'animation_particle' | 'animation_audio' | 'theme' | 'model' | 'gltf' | 'obj' | 'preview_background' | 'screenshot' | 'palette';
|
|
13
13
|
type ReadType = 'buffer' | 'binary' | 'text' | 'image' | 'none';
|
|
14
|
-
interface ReadOptions {
|
|
14
|
+
export interface ReadOptions {
|
|
15
15
|
readtype?: ReadType | ((file: string) => ReadType);
|
|
16
16
|
errorbox?: boolean;
|
|
17
17
|
/** File Extensions
|
|
18
18
|
*/
|
|
19
19
|
extensions?: string[];
|
|
20
20
|
}
|
|
21
|
-
interface ImportOptions extends ReadOptions {
|
|
21
|
+
export interface ImportOptions extends ReadOptions {
|
|
22
22
|
/** Name of the file type
|
|
23
23
|
*/
|
|
24
24
|
type: string;
|
|
@@ -50,7 +50,7 @@ declare global {
|
|
|
50
50
|
path: string;
|
|
51
51
|
}[];
|
|
52
52
|
export const read: typeof readFile;
|
|
53
|
-
interface PickDirOptions {
|
|
53
|
+
export interface PickDirOptions {
|
|
54
54
|
/**Location where the file dialog starts off
|
|
55
55
|
*/
|
|
56
56
|
startpath?: string;
|
|
@@ -65,7 +65,7 @@ declare global {
|
|
|
65
65
|
* Pick a directory. Desktop app only.
|
|
66
66
|
*/
|
|
67
67
|
export function pickDirectory(options?: PickDirOptions): string | undefined;
|
|
68
|
-
interface ExportOptions extends WriteOptions {
|
|
68
|
+
export interface ExportOptions extends WriteOptions {
|
|
69
69
|
/**
|
|
70
70
|
* Name of the file type
|
|
71
71
|
*/
|
|
@@ -95,7 +95,7 @@ declare global {
|
|
|
95
95
|
*/
|
|
96
96
|
export function exportFile(options: ExportOptions, callback?: (file_path: string) => void): void;
|
|
97
97
|
type WriteType = 'text' | 'buffer' | 'binary' | 'zip' | 'image';
|
|
98
|
-
interface WriteOptions {
|
|
98
|
+
export interface WriteOptions {
|
|
99
99
|
content?: string | ArrayBuffer | Blob;
|
|
100
100
|
savetype?: WriteType | ((file: string) => WriteType);
|
|
101
101
|
custom_writer?: (content: string | ArrayBuffer | Blob, file_path: string, callback?: (file_path: string) => void) => void;
|
|
@@ -105,7 +105,7 @@ declare global {
|
|
|
105
105
|
*/
|
|
106
106
|
export function writeFile(file_path: string, options: WriteOptions, callback?: (file_path: string) => void): void;
|
|
107
107
|
export function showFileInFolder(path: string): void;
|
|
108
|
-
interface FindFileOptions {
|
|
108
|
+
export interface FindFileOptions {
|
|
109
109
|
recursive: boolean;
|
|
110
110
|
filter_regex: RegExp;
|
|
111
111
|
priority_regex?: RegExp;
|
|
@@ -117,7 +117,7 @@ declare global {
|
|
|
117
117
|
* @param {string[]} base_directories List of base directory paths to search in
|
|
118
118
|
*/
|
|
119
119
|
export function findFileFromContent(base_directories: string[], options: FindFileOptions, check_file: (path: string, content: string | object) => boolean): any;
|
|
120
|
-
interface DragHandlerOptions {
|
|
120
|
+
export interface DragHandlerOptions {
|
|
121
121
|
/**
|
|
122
122
|
* Allowed file extensions
|
|
123
123
|
*/
|
|
@@ -11,6 +11,7 @@ declare global {
|
|
|
11
11
|
folded: boolean;
|
|
12
12
|
attached_to?: string;
|
|
13
13
|
attached_index?: number;
|
|
14
|
+
open_tab?: string;
|
|
14
15
|
fixed_height: boolean;
|
|
15
16
|
sidebar_index: number;
|
|
16
17
|
}
|
|
@@ -80,7 +81,6 @@ declare global {
|
|
|
80
81
|
previous_slot: PanelSlot;
|
|
81
82
|
width: number;
|
|
82
83
|
height: number;
|
|
83
|
-
open_attached_panel: Panel;
|
|
84
84
|
node: HTMLElement;
|
|
85
85
|
container: HTMLElement;
|
|
86
86
|
handle: HTMLElement;
|
|
@@ -115,6 +115,8 @@ declare global {
|
|
|
115
115
|
set attached_to(id: string);
|
|
116
116
|
get attached_index(): number;
|
|
117
117
|
set attached_index(id: number);
|
|
118
|
+
get open_attached_panel(): Panel;
|
|
119
|
+
set open_attached_panel(panel: Panel | undefined);
|
|
118
120
|
dispatchEvent(event_name: PanelEvent, data: any): void;
|
|
119
121
|
getAttachedPanels(): Panel[];
|
|
120
122
|
/**
|
|
@@ -131,6 +133,7 @@ declare global {
|
|
|
131
133
|
resetCustomLayout(): this;
|
|
132
134
|
addToolbar(toolbar: Toolbar, position?: number): void;
|
|
133
135
|
fold(state?: boolean): this;
|
|
136
|
+
resize(e1: MouseEvent | TouchEvent): void;
|
|
134
137
|
setupFloatHandles(): this;
|
|
135
138
|
moveToFront(): this;
|
|
136
139
|
moveTo(slot: PanelSlot, ref_panel?: Panel, before?: boolean): this;
|
|
@@ -145,6 +148,7 @@ declare global {
|
|
|
145
148
|
}
|
|
146
149
|
const Panels: Record<string, Panel>;
|
|
147
150
|
function setupPanels(): void;
|
|
151
|
+
function makeSidebarFilled(target: Panel[] | 'left_bar' | 'right_bar', exclude_panel?: Panel): void;
|
|
148
152
|
function updateInterfacePanels(): void;
|
|
149
153
|
function updateSidebarOrder(): void;
|
|
150
154
|
function updatePanelSelector(): void;
|
package/generated/io/format.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ declare global {
|
|
|
46
46
|
*/
|
|
47
47
|
coordinate_limits?: [number, number];
|
|
48
48
|
}
|
|
49
|
-
const Formats:
|
|
49
|
+
const Formats: Record<string, ModelFormat>;
|
|
50
50
|
interface FormatFeatures {
|
|
51
51
|
/**
|
|
52
52
|
* Enables Box UV on cubes by default
|
|
@@ -108,6 +108,10 @@ declare global {
|
|
|
108
108
|
* Specify how large in pixels a block is. Defaults to 16.
|
|
109
109
|
*/
|
|
110
110
|
block_size: number;
|
|
111
|
+
/**
|
|
112
|
+
* Which direction of the model is facing forward
|
|
113
|
+
*/
|
|
114
|
+
forward_direction: '-z' | '+z' | '-x' | '+x';
|
|
111
115
|
/**
|
|
112
116
|
* Add the ability to rotate cubes
|
|
113
117
|
*/
|
|
@@ -180,6 +184,10 @@ declare global {
|
|
|
180
184
|
* If true, animations will be saved into files
|
|
181
185
|
*/
|
|
182
186
|
animation_files: boolean;
|
|
187
|
+
/**
|
|
188
|
+
* Change how animations can be grouped
|
|
189
|
+
*/
|
|
190
|
+
animation_grouping: 'by_file' | 'custom' | 'disabled';
|
|
183
191
|
/**
|
|
184
192
|
* Enables a folder path per texture that can be set in the texture properties window
|
|
185
193
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare global {
|
|
2
2
|
function buildAnimationTracks(export_scale?: string | number | boolean, do_quaternions?: boolean): any[];
|
|
3
3
|
function buildSkinnedMeshFromGroup(root_group: any): import("three").SkinnedMesh<import("three").BufferGeometry, any>;
|
|
4
|
-
function buildSkinnedMesh(
|
|
4
|
+
function buildSkinnedMesh(armature: any, scale: any): import("three").SkinnedMesh<any, any>;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
export {};
|
package/generated/languages.d.ts
CHANGED
|
@@ -1,34 +1,37 @@
|
|
|
1
|
-
declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
1
|
+
declare global {
|
|
2
|
+
class Easings {
|
|
3
|
+
static linear(t: any): any;
|
|
4
|
+
static easeInSine(t: any): number;
|
|
5
|
+
static easeOutSine(t: any): number;
|
|
6
|
+
static easeInOutSine(t: any): number;
|
|
7
|
+
static easeInQuad(t: any): number;
|
|
8
|
+
static easeOutQuad(t: any): number;
|
|
9
|
+
static easeInOutQuad(t: any): number;
|
|
10
|
+
static easeInCubic(t: any): number;
|
|
11
|
+
static easeOutCubic(t: any): number;
|
|
12
|
+
static easeInOutCubic(t: any): number;
|
|
13
|
+
static easeInQuart(t: any): number;
|
|
14
|
+
static easeOutQuart(t: any): number;
|
|
15
|
+
static easeInOutQuart(t: any): number;
|
|
16
|
+
static easeInQuint(t: any): number;
|
|
17
|
+
static easeOutQuint(t: any): number;
|
|
18
|
+
static easeInOutQuint(t: any): number;
|
|
19
|
+
static easeInExpo(t: any): number;
|
|
20
|
+
static easeOutExpo(t: any): number;
|
|
21
|
+
static easeInOutExpo(t: any): any;
|
|
22
|
+
static easeInCirc(t: any): number;
|
|
23
|
+
static easeOutCirc(t: any): number;
|
|
24
|
+
static easeInOutCirc(t: any): number;
|
|
25
|
+
static easeInBack(t: any, magnitude?: number): number;
|
|
26
|
+
static easeOutBack(t: any, magnitude?: number): number;
|
|
27
|
+
static easeInOutBack(t: any, magnitude?: number): number;
|
|
28
|
+
static easeInElastic(t: any, magnitude?: number): any;
|
|
29
|
+
static easeOutElastic(t: any, magnitude?: number): any;
|
|
30
|
+
static easeInOutElastic(t: any, magnitude?: number): any;
|
|
31
|
+
static easeOutBounce(t: any): number;
|
|
32
|
+
static easeInBounce(t: any): number;
|
|
33
|
+
static easeInOutBounce(t: any): number;
|
|
34
|
+
}
|
|
33
35
|
}
|
|
36
|
+
|
|
34
37
|
export {};
|
package/generated/lib/libs.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import * as FIK from './fik';
|
|
|
5
5
|
import Vue from 'vue/dist/vue.js';
|
|
6
6
|
import JSZip from 'jszip';
|
|
7
7
|
import Prism from 'prismjs';
|
|
8
|
+
import 'prismjs/components/prism-json';
|
|
8
9
|
import GIF from './gif';
|
|
9
10
|
import { marked } from 'marked';
|
|
10
11
|
import { APNGencoder } from './canvas2apng';
|
package/generated/misc.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ declare global {
|
|
|
5
5
|
function unselectAllElements(exceptions: any): void;
|
|
6
6
|
function selectAll(): void;
|
|
7
7
|
function unselectAll(): void;
|
|
8
|
-
function factoryResetAndReload(): void;
|
|
9
8
|
function benchmarkCode(id: any, iterations: any, code: any): void;
|
|
10
9
|
namespace Pressing {
|
|
11
10
|
let shift: boolean;
|
|
@@ -3,6 +3,7 @@ declare global {
|
|
|
3
3
|
function mergeVerticesOverlaps(meshes: any, overlaps: any): number[];
|
|
4
4
|
function autoFixMeshEdit(affected_vertices: any): Promise<void>;
|
|
5
5
|
function cleanupOverlappingMeshFaces(mesh: any): void;
|
|
6
|
+
function uncorruptMesh(): void;
|
|
6
7
|
class KnifeToolContext {
|
|
7
8
|
static current: any;
|
|
8
9
|
/**
|
|
@@ -13,7 +13,8 @@ declare global {
|
|
|
13
13
|
center: any;
|
|
14
14
|
}): boolean;
|
|
15
15
|
isParentTreeOpposite(element1: OutlinerNode, element2: OutlinerNode): boolean;
|
|
16
|
-
insertElementIntoUndo(element: OutlinerElement, undo_aspects: UndoAspects, element_before_snapshot
|
|
16
|
+
insertElementIntoUndo(element: OutlinerElement, undo_aspects: UndoAspects, element_before_snapshot?: any): void;
|
|
17
|
+
insertGroupIntoUndo(group: Group, undo_aspects: UndoAspects, before_snapshop?: any): void;
|
|
17
18
|
element_types: Record<string, MirrorModelingElementTypeOptions>;
|
|
18
19
|
registerElementType(type_class: any, options: MirrorModelingElementTypeOptions): void;
|
|
19
20
|
cached_elements: {};
|
|
@@ -30,6 +30,8 @@ declare global {
|
|
|
30
30
|
get position(): ArrayVector3;
|
|
31
31
|
extend(object: ArmatureBoneOptions): this;
|
|
32
32
|
getArmature(): Armature;
|
|
33
|
+
getVertexWeight(mesh: Mesh, vkey: string): number;
|
|
34
|
+
setVertexWeight(mesh: Mesh, vkey: string, weight?: number): void;
|
|
33
35
|
init(): this;
|
|
34
36
|
select(event?: Event, isOutlinerClick?: boolean): this;
|
|
35
37
|
markAsSelected(descendants: boolean): this;
|
|
@@ -43,7 +45,7 @@ declare global {
|
|
|
43
45
|
getSize(axis: any): number;
|
|
44
46
|
resize(move_value: number | ((input: number) => number), axis_number?: axisNumber, invert?: boolean): void;
|
|
45
47
|
setColor(index: any): this;
|
|
46
|
-
getSaveCopy(
|
|
48
|
+
getSaveCopy(): {
|
|
47
49
|
isOpen: boolean;
|
|
48
50
|
uuid: string;
|
|
49
51
|
type: string;
|
|
@@ -21,7 +21,6 @@ declare global {
|
|
|
21
21
|
*/
|
|
22
22
|
children: string[];
|
|
23
23
|
export_path: string;
|
|
24
|
-
codec: string;
|
|
25
24
|
export_codec: string;
|
|
26
25
|
visibility: boolean;
|
|
27
26
|
static properties: Record<string, Property<any>>;
|
|
@@ -36,7 +35,7 @@ declare global {
|
|
|
36
35
|
constructor(data: CollectionOptions, uuid?: string);
|
|
37
36
|
extend(data: CollectionOptions): this;
|
|
38
37
|
select(event?: KeyboardEvent | MouseEvent): this;
|
|
39
|
-
clickSelect(event:
|
|
38
|
+
clickSelect(event: MouseEvent): void;
|
|
40
39
|
/**
|
|
41
40
|
* Get all direct children
|
|
42
41
|
*/
|
|
@@ -118,6 +118,7 @@ declare global {
|
|
|
118
118
|
contributes?: {
|
|
119
119
|
formats: string[];
|
|
120
120
|
};
|
|
121
|
+
creation_date?: string;
|
|
121
122
|
has_changelog?: boolean;
|
|
122
123
|
/**
|
|
123
124
|
* In combination with a "Deprecated" tag, this can be used to provide context on why a plugin is deprecated
|
|
@@ -182,6 +183,7 @@ declare global {
|
|
|
182
183
|
cache_version: number;
|
|
183
184
|
menu: Menu;
|
|
184
185
|
details: null | PluginDetails;
|
|
186
|
+
uuid: UUID;
|
|
185
187
|
onload?: () => void;
|
|
186
188
|
onunload?: () => void;
|
|
187
189
|
oninstall?: () => void;
|
|
@@ -6,7 +6,7 @@ declare global {
|
|
|
6
6
|
class EventSystem {
|
|
7
7
|
events: Record<string, EventListener[]>;
|
|
8
8
|
constructor();
|
|
9
|
-
dispatchEvent(event_name: string, data: any):
|
|
9
|
+
dispatchEvent(event_name: string, data: any): any;
|
|
10
10
|
on(event_name: string, cb: EventListener): Deletable;
|
|
11
11
|
once(event_name: string, cb: EventListener): Deletable;
|
|
12
12
|
addListener(event_name: string, cb: EventListener): Deletable;
|
package/package.json
CHANGED
package/type_config.json
CHANGED
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"interface/setup_settings",
|
|
13
13
|
"desktop",
|
|
14
14
|
"util/math_util",
|
|
15
|
-
"display_mode",
|
|
15
|
+
"display_mode/display_references",
|
|
16
|
+
"display_mode/display_mode",
|
|
16
17
|
"interface/interface",
|
|
17
18
|
"outliner/cube",
|
|
18
19
|
"outliner/group",
|
|
@@ -33,6 +34,7 @@
|
|
|
33
34
|
"texturing/layers",
|
|
34
35
|
"undo",
|
|
35
36
|
"web",
|
|
37
|
+
"copy_paste",
|
|
36
38
|
"texturing/uv",
|
|
37
39
|
"validator",
|
|
38
40
|
"native_apis_web",
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
declare global {
|
|
2
|
-
namespace Clipbench {
|
|
3
|
-
let elements: any[];
|
|
4
|
-
namespace types {
|
|
5
|
-
let text: string;
|
|
6
|
-
let display_slot: string;
|
|
7
|
-
let keyframe: string;
|
|
8
|
-
let animation: string;
|
|
9
|
-
let face: string;
|
|
10
|
-
let mesh_selection: string;
|
|
11
|
-
let texture: string;
|
|
12
|
-
let layer: string;
|
|
13
|
-
let outliner: string;
|
|
14
|
-
let texture_selection: string;
|
|
15
|
-
let image: string;
|
|
16
|
-
}
|
|
17
|
-
namespace type_icons {
|
|
18
|
-
let face_1: string;
|
|
19
|
-
export { face_1 as face };
|
|
20
|
-
let mesh_selection_1: string;
|
|
21
|
-
export { mesh_selection_1 as mesh_selection };
|
|
22
|
-
let outliner_1: string;
|
|
23
|
-
export { outliner_1 as outliner };
|
|
24
|
-
}
|
|
25
|
-
function getCopyType(mode: any, check: any): string;
|
|
26
|
-
function getPasteType(): Promise<any>;
|
|
27
|
-
function copy(event: any, cut: any): void;
|
|
28
|
-
function paste(event: any): Promise<void>;
|
|
29
|
-
function setGroups(groups: any): void;
|
|
30
|
-
function setElements(arr: any): void;
|
|
31
|
-
function setText(text: any): void;
|
|
32
|
-
function setMeshSelection(mesh: any): void;
|
|
33
|
-
function pasteMeshSelection(): void;
|
|
34
|
-
function pasteOutliner(event: any): void;
|
|
35
|
-
function pasteImage(): void;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export {};
|