babylonjs-editor 5.4.2 → 5.4.3-alpha.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/inspector/material/pbr.d.ts +3 -0
- package/declaration/src/editor/layout/terminal.d.ts +30 -0
- package/declaration/src/editor/layout.d.ts +6 -1
- package/declaration/src/export.d.ts +1 -0
- package/declaration/src/tools/node-pty.d.ts +5 -1
- package/declaration/src/tools/tools.d.ts +1 -1
- package/package.json +4 -3
|
@@ -15,4 +15,7 @@ export declare class EditorPBRMaterialInspector extends Component<IEditorPBRMate
|
|
|
15
15
|
private _handleSubSurfaceEnabledChange;
|
|
16
16
|
private _getMaterialTexturesOptimizations;
|
|
17
17
|
private _createAndAssignORMTexture;
|
|
18
|
+
private _createAndAssignSpecularGlossinessTexture;
|
|
19
|
+
private _areTexturesInvertedY;
|
|
20
|
+
private _areTexturesInvertedVScale;
|
|
18
21
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Component, ReactNode } from "react";
|
|
2
|
+
import { Editor } from "../main";
|
|
3
|
+
export interface IEditorTerminalProps {
|
|
4
|
+
editor: Editor;
|
|
5
|
+
}
|
|
6
|
+
export interface IEditorTerminalState {
|
|
7
|
+
hasProject: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare class EditorTerminal extends Component<IEditorTerminalProps, IEditorTerminalState> {
|
|
10
|
+
private _terminal;
|
|
11
|
+
private _fitAddon;
|
|
12
|
+
private _webglAddon;
|
|
13
|
+
private _pty;
|
|
14
|
+
private _projectPath;
|
|
15
|
+
private _resizeObserver;
|
|
16
|
+
constructor(props: IEditorTerminalProps);
|
|
17
|
+
render(): ReactNode;
|
|
18
|
+
componentDidMount(): void;
|
|
19
|
+
componentWillUnmount(): void;
|
|
20
|
+
private _dispose;
|
|
21
|
+
private _onTerminalContainerChanged;
|
|
22
|
+
private _initializeTerminal;
|
|
23
|
+
/**
|
|
24
|
+
* Fits the terminal to its container, guarding against invalid dimensions.
|
|
25
|
+
* In flexlayout, an inactive tab can be mounted at 0x0; fitting then yields
|
|
26
|
+
* NaN/Infinity cols/rows and corrupts the rendered output. Skip those cases.
|
|
27
|
+
*/
|
|
28
|
+
private _fit;
|
|
29
|
+
private _restartTerminal;
|
|
30
|
+
}
|
|
@@ -7,6 +7,7 @@ import { EditorConsole } from "./layout/console";
|
|
|
7
7
|
import { EditorInspector } from "./layout/inspector";
|
|
8
8
|
import { EditorAnimation } from "./layout/animation";
|
|
9
9
|
import { EditorAssetsBrowser } from "./layout/assets-browser";
|
|
10
|
+
import { EditorTerminal } from "./layout/terminal";
|
|
10
11
|
import { EditorMarketplaceBrowser } from "./layout/marketplace";
|
|
11
12
|
export interface IEditorLayoutProps {
|
|
12
13
|
/**
|
|
@@ -46,6 +47,10 @@ export declare class EditorLayout extends Component<IEditorLayoutProps> {
|
|
|
46
47
|
* The animation editor of the editor.
|
|
47
48
|
*/
|
|
48
49
|
animations: EditorAnimation;
|
|
50
|
+
/**
|
|
51
|
+
* The terminal of the editor.
|
|
52
|
+
*/
|
|
53
|
+
terminal: EditorTerminal;
|
|
49
54
|
/**
|
|
50
55
|
* The marketplace browser of the editor.
|
|
51
56
|
*/
|
|
@@ -73,7 +78,7 @@ export declare class EditorLayout extends Component<IEditorLayoutProps> {
|
|
|
73
78
|
* If the tab is hidden, makes it visible and selected.
|
|
74
79
|
* @param tabId defines the id of the tab to make active.
|
|
75
80
|
*/
|
|
76
|
-
selectTab(tabId: "graph" | "preview" | "assets-browser" | "console" | "inspector" | (string & {})): void;
|
|
81
|
+
selectTab(tabId: "graph" | "preview" | "assets-browser" | "console" | "terminal" | "inspector" | (string & {})): void;
|
|
77
82
|
/**
|
|
78
83
|
* Adds a new tab to the layout.
|
|
79
84
|
* @param component defines the reference to the React component to draw in.
|
|
@@ -3,6 +3,7 @@ export { EditorLayout } from "./editor/layout";
|
|
|
3
3
|
export { EditorGraph } from "./editor/layout/graph";
|
|
4
4
|
export { EditorToolbar } from "./editor/layout/toolbar";
|
|
5
5
|
export { EditorConsole } from "./editor/layout/console";
|
|
6
|
+
export { EditorTerminal } from "./editor/layout/terminal";
|
|
6
7
|
export { EditorPreview } from "./editor/layout/preview";
|
|
7
8
|
export * from "./editor/layout/preview/import/import";
|
|
8
9
|
export * from "./editor/layout/preview/import/material";
|
|
@@ -6,7 +6,11 @@ import { Observable } from "babylonjs";
|
|
|
6
6
|
* @param options The options to pass to the pty process.
|
|
7
7
|
* @returns A promise that resolves with the node-pty instance.
|
|
8
8
|
*/
|
|
9
|
-
export declare function execNodePty(command: string, options?: IPtyForkOptions | IWindowsPtyForkOptions
|
|
9
|
+
export declare function execNodePty(command: string, options?: IPtyForkOptions | IWindowsPtyForkOptions | (IPtyForkOptions & {
|
|
10
|
+
interactive?: boolean;
|
|
11
|
+
}) | (IWindowsPtyForkOptions & {
|
|
12
|
+
interactive?: boolean;
|
|
13
|
+
})): Promise<NodePtyInstance>;
|
|
10
14
|
export declare class NodePtyInstance {
|
|
11
15
|
/**
|
|
12
16
|
* The id of the node-pty instance.
|
|
@@ -27,7 +27,7 @@ export declare class UniqueNumber {
|
|
|
27
27
|
* Returns a new array composed of distinct elements.
|
|
28
28
|
* @param array defines the reference to the source array.
|
|
29
29
|
*/
|
|
30
|
-
export declare function unique<T>(array: T[]): T[];
|
|
30
|
+
export declare function unique<T>(array: T[], property?: string): T[];
|
|
31
31
|
/**
|
|
32
32
|
* Sorts the given array alphabetically.
|
|
33
33
|
* @param array defines the array containing the elements to sort alphabetically.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-editor",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.3-alpha.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",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"postcss-import": "16.1.0",
|
|
38
38
|
"tailwindcss": "3.4.4",
|
|
39
39
|
"typescript": "5.9.3",
|
|
40
|
-
"vitest": "4.0
|
|
40
|
+
"vitest": "4.1.0"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@babylonjs/addons": "9.12.1",
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
"@recast-navigation/core": "0.43.0",
|
|
74
74
|
"@recast-navigation/generators": "0.43.0",
|
|
75
75
|
"@xterm/addon-fit": "0.11.0",
|
|
76
|
+
"@xterm/addon-webgl": "0.20.0-beta.286",
|
|
76
77
|
"@xterm/xterm": "6.1.0-beta.22",
|
|
77
78
|
"assimpjs": "0.0.10",
|
|
78
79
|
"axios": "1.16.1",
|
|
@@ -98,7 +99,7 @@
|
|
|
98
99
|
"dotenv": "17.2.3",
|
|
99
100
|
"dunder-proto": "1.0.1",
|
|
100
101
|
"electron-updater": "6.6.2",
|
|
101
|
-
"esbuild": "0.
|
|
102
|
+
"esbuild": "0.28.1",
|
|
102
103
|
"filenamify": "4.3.0",
|
|
103
104
|
"flexlayout-react": "0.7.15",
|
|
104
105
|
"fluent-ffmpeg": "^2.1.3",
|