@babylonjs/gui-editor 7.32.4 → 7.32.5
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.
@@ -1929,6 +1929,7 @@ import { IPortData } from "@babylonjs/gui-editor/nodeGraphSystem/interfaces/port
|
|
1929
1929
|
import { ISelectionChangedOptions } from "@babylonjs/gui-editor/nodeGraphSystem/interfaces/selectionChangedOptions";
|
1930
1930
|
import { NodePort } from "@babylonjs/gui-editor/nodeGraphSystem/nodePort";
|
1931
1931
|
import { HistoryStack } from "@babylonjs/gui-editor/historyStack";
|
1932
|
+
import { Scene } from "@babylonjs/core/scene";
|
1932
1933
|
export class StateManager {
|
1933
1934
|
data: any;
|
1934
1935
|
hostDocument: Document;
|
@@ -1943,7 +1944,7 @@ export class StateManager {
|
|
1943
1944
|
onFrameCreatedObservable: Observable<GraphFrame>;
|
1944
1945
|
onUpdateRequiredObservable: Observable<any>;
|
1945
1946
|
onGraphNodeRemovalObservable: Observable<GraphNode>;
|
1946
|
-
onSelectionBoxMoved: Observable<
|
1947
|
+
onSelectionBoxMoved: Observable<ClientRect | DOMRect>;
|
1947
1948
|
onCandidateLinkMoved: Observable<Nullable<Vector2>>;
|
1948
1949
|
onCandidatePortSelectedObservable: Observable<Nullable<FrameNodePort | NodePort>>;
|
1949
1950
|
onNewNodeCreatedObservable: Observable<GraphNode>;
|
@@ -1963,6 +1964,7 @@ export class StateManager {
|
|
1963
1964
|
data: any;
|
1964
1965
|
active: boolean;
|
1965
1966
|
}>;
|
1967
|
+
onPreviewCommandActivated: Observable<boolean>;
|
1966
1968
|
exportData: (data: any, frame?: Nullable<GraphFrame>) => string;
|
1967
1969
|
isElbowConnectionAllowed: (nodeA: FrameNodePort | NodePort, nodeB: FrameNodePort | NodePort) => boolean;
|
1968
1970
|
isDebugConnectionAllowed: (nodeA: FrameNodePort | NodePort, nodeB: FrameNodePort | NodePort) => boolean;
|
@@ -1971,6 +1973,7 @@ export class StateManager {
|
|
1971
1973
|
getEditorDataMap: () => {
|
1972
1974
|
[key: number]: number;
|
1973
1975
|
};
|
1976
|
+
getScene?: () => Scene;
|
1974
1977
|
createDefaultInputData: (rootData: any, portData: IPortData, nodeContainer: INodeContainer) => Nullable<{
|
1975
1978
|
data: INodeData;
|
1976
1979
|
name: string;
|
@@ -2117,6 +2120,7 @@ export class GraphNode {
|
|
2117
2120
|
private _headerIconImg;
|
2118
2121
|
private _header;
|
2119
2122
|
private _connections;
|
2123
|
+
private _optionsContainer;
|
2120
2124
|
private _inputsContainer;
|
2121
2125
|
private _outputsContainer;
|
2122
2126
|
private _content;
|
@@ -2143,6 +2147,7 @@ export class GraphNode {
|
|
2143
2147
|
private _displayManager;
|
2144
2148
|
private _isVisible;
|
2145
2149
|
private _enclosingFrameId;
|
2150
|
+
private _visualPropertiesRefresh;
|
2146
2151
|
addClassToVisual(className: string): void;
|
2147
2152
|
removeClassFromVisual(className: string): void;
|
2148
2153
|
get isVisible(): boolean;
|
@@ -2181,6 +2186,7 @@ export class GraphNode {
|
|
2181
2186
|
private _onUp;
|
2182
2187
|
private _onMove;
|
2183
2188
|
renderProperties(): Nullable<JSX.Element>;
|
2189
|
+
private _forceRebuild;
|
2184
2190
|
appendVisual(root: HTMLDivElement, owner: GraphCanvasComponent): void;
|
2185
2191
|
dispose(): void;
|
2186
2192
|
}
|
@@ -2507,6 +2513,19 @@ export class DisplayLedger {
|
|
2507
2513
|
};
|
2508
2514
|
}
|
2509
2515
|
|
2516
|
+
}
|
2517
|
+
declare module "@babylonjs/gui-editor/nodeGraphSystem/automaticProperties" {
|
2518
|
+
import { IEditablePropertyOption } from "@babylonjs/core/Decorators/nodeDecorator";
|
2519
|
+
import { StateManager } from "@babylonjs/gui-editor/nodeGraphSystem/stateManager";
|
2520
|
+
/**
|
2521
|
+
* Function used to force a rebuild of the node system
|
2522
|
+
* @param source source object
|
2523
|
+
* @param stateManager defines the state manager to use
|
2524
|
+
* @param propertyName name of the property that has been changed
|
2525
|
+
* @param notifiers list of notifiers to use
|
2526
|
+
*/
|
2527
|
+
export function ForceRebuild(source: any, stateManager: StateManager, propertyName: string, notifiers?: IEditablePropertyOption["notifiers"]): void;
|
2528
|
+
|
2510
2529
|
}
|
2511
2530
|
declare module "@babylonjs/gui-editor/nodeGraphSystem/types/framePortData" {
|
2512
2531
|
import { GraphFrame } from "@babylonjs/gui-editor/nodeGraphSystem/graphFrame";
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@babylonjs/gui-editor",
|
3
|
-
"version": "7.32.
|
3
|
+
"version": "7.32.5",
|
4
4
|
"main": "dist/babylon.guiEditor.max.js",
|
5
5
|
"module": "dist/babylon.guiEditor.max.js",
|
6
6
|
"esnext": "dist/babylon.guiEditor.max.js",
|
@@ -24,8 +24,8 @@
|
|
24
24
|
"@types/react-dom": ">=16.0.9"
|
25
25
|
},
|
26
26
|
"devDependencies": {
|
27
|
-
"@babylonjs/core": "^7.32.
|
28
|
-
"@babylonjs/gui": "^7.32.
|
27
|
+
"@babylonjs/core": "^7.32.5",
|
28
|
+
"@babylonjs/gui": "^7.32.5",
|
29
29
|
"react": "^17.0.2",
|
30
30
|
"react-dom": "^17.0.2"
|
31
31
|
},
|