babylonjs-editor 5.4.1-rc.5 → 5.4.1
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/declaration/src/editor/layout/assets-browser/items/scene-item.d.ts +2 -0
- package/declaration/src/editor/layout/assets-browser/rename-progress.d.ts +4 -0
- package/declaration/src/editor/layout/preview/icons.d.ts +9 -5
- package/declaration/src/editor/layout/preview.d.ts +4 -3
- package/declaration/src/project/save/decals.d.ts +7 -0
- package/declaration/src/project/save/scene.d.ts +1 -0
- package/declaration/src/tools/node/parenting.d.ts +5 -0
- package/declaration/src/tools/tools.d.ts +6 -0
- package/declaration/src/tools/workers/files-replace.d.ts +0 -0
- package/declaration/src/tools/workers/md5.d.ts +0 -2
- package/package.json +13 -13
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
import { AssetsBrowserItem } from "./item";
|
|
3
3
|
export declare class AssetBrowserSceneItem extends AssetsBrowserItem {
|
|
4
|
+
private _doNotExport;
|
|
4
5
|
private _previewPath;
|
|
5
6
|
/**
|
|
6
7
|
* @override
|
|
@@ -12,5 +13,6 @@ export declare class AssetBrowserSceneItem extends AssetsBrowserItem {
|
|
|
12
13
|
protected getIcon(): ReactNode;
|
|
13
14
|
componentDidMount(): Promise<void>;
|
|
14
15
|
private _handleDuplicate;
|
|
16
|
+
private _handleDoNotExport;
|
|
15
17
|
private _handleEdit;
|
|
16
18
|
}
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
import { Component, ReactNode } from "react";
|
|
2
|
-
import { Node,
|
|
2
|
+
import { Node, Vector3 } from "babylonjs";
|
|
3
3
|
import { Editor } from "../../main";
|
|
4
|
+
interface _IButtonData {
|
|
5
|
+
node: Node;
|
|
6
|
+
absolutePosition: Vector3;
|
|
7
|
+
}
|
|
4
8
|
export interface IEditorPreviewIconsProps {
|
|
5
9
|
editor: Editor;
|
|
6
10
|
}
|
|
7
11
|
export interface IEditorPreviewIconsState {
|
|
8
12
|
buttons: _IButtonData[];
|
|
9
13
|
}
|
|
10
|
-
interface _IButtonData {
|
|
11
|
-
node: Node;
|
|
12
|
-
position: Vector2;
|
|
13
|
-
}
|
|
14
14
|
export declare class EditorPreviewIcons extends Component<IEditorPreviewIconsProps, IEditorPreviewIconsState> {
|
|
15
15
|
private _tempMesh;
|
|
16
16
|
private _renderFunction;
|
|
17
|
+
private _iconsRefs;
|
|
18
|
+
private _cameraViewMatrixObserver;
|
|
17
19
|
constructor(props: IEditorPreviewIconsProps);
|
|
18
20
|
render(): ReactNode;
|
|
19
21
|
componentWillUnmount(): void;
|
|
@@ -25,6 +27,8 @@ export declare class EditorPreviewIcons extends Component<IEditorPreviewIconsPro
|
|
|
25
27
|
* Starts rendering icons on the preview scene.
|
|
26
28
|
*/
|
|
27
29
|
start(): void;
|
|
30
|
+
private _configureDivStyle;
|
|
31
|
+
private _onNodeClicked;
|
|
28
32
|
private _isInFrustrum;
|
|
29
33
|
/**
|
|
30
34
|
* Stops rendering icons on the preview scene.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Component, ReactNode } from "react";
|
|
2
|
-
import { AbstractEngine, Camera, ISceneLoaderAsyncResult, Scene, PickingInfo, SelectionOutlineLayer, ClusteredLightContainer } from "babylonjs";
|
|
2
|
+
import { AbstractEngine, AbstractMesh, Camera, ISceneLoaderAsyncResult, Scene, PickingInfo, SelectionOutlineLayer, ClusteredLightContainer } from "babylonjs";
|
|
3
3
|
import { Editor } from "../main";
|
|
4
4
|
import { IGizmoSnapPreferences } from "../../tools/scene/gizmo";
|
|
5
5
|
import { EditorCamera } from "../nodes/camera";
|
|
@@ -100,6 +100,7 @@ export declare class EditorPreview extends Component<IEditorPreviewProps, IEdito
|
|
|
100
100
|
* @param render defines whether or not to render the scene.
|
|
101
101
|
*/
|
|
102
102
|
setRenderScene(render: boolean): void;
|
|
103
|
+
get renderScene(): boolean;
|
|
103
104
|
/**
|
|
104
105
|
* Resizes the engine.
|
|
105
106
|
*/
|
|
@@ -135,8 +136,8 @@ export declare class EditorPreview extends Component<IEditorPreviewProps, IEdito
|
|
|
135
136
|
private _handleMouseDown;
|
|
136
137
|
private _handleDoubleClick;
|
|
137
138
|
private _handleMouseUp;
|
|
138
|
-
|
|
139
|
-
|
|
139
|
+
_pickingDecalMeshPredicate(m: AbstractMesh): boolean;
|
|
140
|
+
_pickingMeshPredicate(m: AbstractMesh): boolean;
|
|
140
141
|
private _getPickingInfo;
|
|
141
142
|
private _resetPointerContextInfo;
|
|
142
143
|
private _highlightCurrentMeshUnderPointer;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Editor } from "../../editor/main";
|
|
2
|
+
export interface ISavedMergedDecalsOptions {
|
|
3
|
+
scenePath: string;
|
|
4
|
+
savedFiles: string[];
|
|
5
|
+
relativeScenePath: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function saveMergedDecals(editor: Editor, options: ISavedMergedDecalsOptions): Promise<void>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { Editor } from "../../editor/main";
|
|
2
|
+
export declare function ensureSceneFolders(scenePath: string): Promise<[void, void, void, void, void, void, void, void, void, void, void, void, void, void, void, void, void, void]>;
|
|
2
3
|
export declare function saveScene(editor: Editor, projectPath: string, scenePath: string): Promise<void>;
|
|
@@ -9,3 +9,8 @@ export interface IOldNodeHierarchyConfiguration {
|
|
|
9
9
|
export declare function getNodeParentingConfiguration(node: Node): IOldNodeHierarchyConfiguration;
|
|
10
10
|
export declare function applyNodeParentingConfiguration(node: Node, config: IOldNodeHierarchyConfiguration): void;
|
|
11
11
|
export declare function applyTransformNodeParentingConfiguration(node: Node, newParent: Node | null, tempTransfromNode: TransformNode): void;
|
|
12
|
+
/**
|
|
13
|
+
* Returns wether or not the given node is a descendant of a transform node set as static group.
|
|
14
|
+
* @param node defines the reference to the node to check the ancestors.
|
|
15
|
+
*/
|
|
16
|
+
export declare function isNodeFromStaticGroup(node: Node): boolean;
|
|
@@ -34,6 +34,12 @@ export declare function unique<T>(array: T[]): T[];
|
|
|
34
34
|
* @param property in case of an array of objects, this property will be used to get the right value to sort.
|
|
35
35
|
*/
|
|
36
36
|
export declare function sortAlphabetically(array: any[], property?: string): any[];
|
|
37
|
+
/**
|
|
38
|
+
* Splits the given array into chunks of a specified size.
|
|
39
|
+
* @param array The array to split into chunks.
|
|
40
|
+
* @param chunkSize The size of each chunk.
|
|
41
|
+
*/
|
|
42
|
+
export declare function splitArrayIntoChunks<T>(array: T[], chunkSize: number): T[][];
|
|
37
43
|
/**
|
|
38
44
|
* Returns the current call stack as a string.
|
|
39
45
|
* This is mainly used to check if the current call is from outside of the editor.
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-editor",
|
|
3
|
-
"version": "5.4.1
|
|
3
|
+
"version": "5.4.1",
|
|
4
4
|
"description": "Babylon.js Editor is a Web Application helping artists to work with Babylon.js",
|
|
5
5
|
"productName": "Babylon.js Editor",
|
|
6
6
|
"main": "build/src/index.js",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"vitest": "4.0.17"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@babylonjs/addons": "9.
|
|
44
|
-
"@babylonjs/core": "9.
|
|
43
|
+
"@babylonjs/addons": "9.9.1",
|
|
44
|
+
"@babylonjs/core": "9.9.1",
|
|
45
45
|
"@babylonjs/havok": "1.3.12",
|
|
46
46
|
"@blueprintjs/core": "^5.10.0",
|
|
47
47
|
"@blueprintjs/select": "^5.1.2",
|
|
@@ -75,18 +75,18 @@
|
|
|
75
75
|
"@xterm/xterm": "6.1.0-beta.22",
|
|
76
76
|
"assimpjs": "0.0.10",
|
|
77
77
|
"axios": "1.15.2",
|
|
78
|
-
"babylonjs": "9.
|
|
79
|
-
"babylonjs-addons": "9.
|
|
78
|
+
"babylonjs": "9.9.1",
|
|
79
|
+
"babylonjs-addons": "9.9.1",
|
|
80
80
|
"babylonjs-editor-cli": "latest",
|
|
81
81
|
"babylonjs-editor-tools": "latest",
|
|
82
|
-
"babylonjs-gui": "9.
|
|
83
|
-
"babylonjs-gui-editor": "9.
|
|
84
|
-
"babylonjs-loaders": "9.
|
|
85
|
-
"babylonjs-materials": "9.
|
|
86
|
-
"babylonjs-node-editor": "9.
|
|
87
|
-
"babylonjs-node-particle-editor": "9.
|
|
88
|
-
"babylonjs-post-process": "9.
|
|
89
|
-
"babylonjs-procedural-textures": "9.
|
|
82
|
+
"babylonjs-gui": "9.9.1",
|
|
83
|
+
"babylonjs-gui-editor": "9.9.1",
|
|
84
|
+
"babylonjs-loaders": "9.9.1",
|
|
85
|
+
"babylonjs-materials": "9.9.1",
|
|
86
|
+
"babylonjs-node-editor": "9.9.1",
|
|
87
|
+
"babylonjs-node-particle-editor": "9.9.1",
|
|
88
|
+
"babylonjs-post-process": "9.9.1",
|
|
89
|
+
"babylonjs-procedural-textures": "9.9.1",
|
|
90
90
|
"chokidar": "^4.0.3",
|
|
91
91
|
"class-variance-authority": "^0.7.0",
|
|
92
92
|
"clsx": "^2.1.0",
|