@babylonjs/node-editor 7.46.0 → 7.47.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.
|
@@ -137,6 +137,7 @@ import { Nullable } from "@babylonjs/core/types";
|
|
|
137
137
|
import { LockObject } from "@babylonjs/node-editor/tabs/propertyGrids/lockObject";
|
|
138
138
|
import { StateManager } from "@babylonjs/node-editor/nodeGraphSystem/stateManager";
|
|
139
139
|
import { FilesInput } from "@babylonjs/core/Misc/filesInput";
|
|
140
|
+
import { Texture } from "@babylonjs/core/Materials/Textures/texture";
|
|
140
141
|
export class GlobalState {
|
|
141
142
|
hostElement: HTMLElement;
|
|
142
143
|
hostDocument: Document;
|
|
@@ -180,6 +181,9 @@ export class GlobalState {
|
|
|
180
181
|
pointerOverCanvas: boolean;
|
|
181
182
|
filesInput: FilesInput;
|
|
182
183
|
onRefreshPreviewMeshControlComponentRequiredObservable: Observable<void>;
|
|
184
|
+
previewTexture: Nullable<Texture>;
|
|
185
|
+
onPreviewSceneAfterRenderObservable: Observable<void>;
|
|
186
|
+
onPreviewUpdatedObservable: Observable<NodeMaterial>;
|
|
183
187
|
/** Gets the mode */
|
|
184
188
|
get mode(): NodeMaterialModes;
|
|
185
189
|
/** Sets the mode */
|
|
@@ -925,11 +929,16 @@ export class DiscardDisplayManager implements IDisplayManager {
|
|
|
925
929
|
declare module "@babylonjs/node-editor/graphSystem/display/debugDisplayManager" {
|
|
926
930
|
import { IDisplayManager, VisualContentDescription } from "@babylonjs/node-editor/nodeGraphSystem/interfaces/displayManager";
|
|
927
931
|
import { INodeData } from "@babylonjs/node-editor/nodeGraphSystem/interfaces/nodeData";
|
|
932
|
+
import { Nullable } from "@babylonjs/core/types";
|
|
933
|
+
import { StateManager } from "@babylonjs/node-editor/nodeGraphSystem/stateManager";
|
|
928
934
|
export class DebugDisplayManager implements IDisplayManager {
|
|
935
|
+
private _previewCanvas;
|
|
936
|
+
private _previewImage;
|
|
929
937
|
getHeaderClass(): string;
|
|
930
938
|
shouldDisplayPortLabels(): boolean;
|
|
931
939
|
getHeaderText(nodeData: INodeData): string;
|
|
932
940
|
getBackgroundColor(): string;
|
|
941
|
+
onSelectionChanged?(data: INodeData, selectedData: Nullable<INodeData>, manager: StateManager): void;
|
|
933
942
|
updatePreviewContent(nodeData: INodeData, contentArea: HTMLDivElement): void;
|
|
934
943
|
updateFullVisualContent(data: INodeData, visualContent: VisualContentDescription): void;
|
|
935
944
|
}
|
|
@@ -1214,9 +1223,6 @@ export class PreviewManager {
|
|
|
1214
1223
|
private _onBackgroundHDRUpdatedObserver;
|
|
1215
1224
|
private _engine;
|
|
1216
1225
|
private _scene;
|
|
1217
|
-
private _nrg;
|
|
1218
|
-
private _objectListBlock;
|
|
1219
|
-
private _clearBlock;
|
|
1220
1226
|
private _meshes;
|
|
1221
1227
|
private _camera;
|
|
1222
1228
|
private _material;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@babylonjs/node-editor",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.47.0",
|
|
4
4
|
"main": "dist/babylon.nodeEditor.max.js",
|
|
5
5
|
"module": "dist/babylon.nodeEditor.max.js",
|
|
6
6
|
"esnext": "dist/babylon.nodeEditor.max.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@types/react-dom": ">=16.0.9"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@babylonjs/core": "^7.
|
|
26
|
+
"@babylonjs/core": "^7.47.0",
|
|
27
27
|
"react": "^17.0.2",
|
|
28
28
|
"react-dom": "^17.0.2"
|
|
29
29
|
},
|