babylonjs-gui-editor 7.25.2 → 7.26.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/babylon.guiEditor.d.ts +19 -2
- package/babylon.guiEditor.js +1 -1
- package/babylon.guiEditor.js.map +1 -1
- package/babylon.guiEditor.max.js +15 -15
- package/babylon.guiEditor.module.d.ts +38 -4
- package/package.json +4 -4
package/babylon.guiEditor.d.ts
CHANGED
|
@@ -1217,8 +1217,9 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
1217
1217
|
* Class handling undo / redo operations
|
|
1218
1218
|
*/
|
|
1219
1219
|
export class HistoryStack implements IDisposable {
|
|
1220
|
-
private
|
|
1220
|
+
private _historyStack;
|
|
1221
1221
|
private _redoStack;
|
|
1222
|
+
private _activeData;
|
|
1222
1223
|
private readonly _maxHistoryLength;
|
|
1223
1224
|
private _locked;
|
|
1224
1225
|
private _dataProvider;
|
|
@@ -1229,13 +1230,19 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
1229
1230
|
* @param applyUpdate defines the code to execute when undo/redo operation is required
|
|
1230
1231
|
*/
|
|
1231
1232
|
constructor(dataProvider: () => any, applyUpdate: (data: any) => void);
|
|
1233
|
+
/**
|
|
1234
|
+
* Process key event to handle undo / redo
|
|
1235
|
+
* @param evt defines the keyboard event to process
|
|
1236
|
+
* @returns true if the event was processed
|
|
1237
|
+
*/
|
|
1238
|
+
processKeyEvent(evt: KeyboardEvent): boolean;
|
|
1232
1239
|
/**
|
|
1233
1240
|
* Resets the stack
|
|
1234
1241
|
*/
|
|
1235
1242
|
reset(): void;
|
|
1236
1243
|
private _generateJSONDiff;
|
|
1237
1244
|
private _applyJSONDiff;
|
|
1238
|
-
private
|
|
1245
|
+
private _copy;
|
|
1239
1246
|
/**
|
|
1240
1247
|
* Stores the current state
|
|
1241
1248
|
*/
|
|
@@ -1770,6 +1777,8 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
1770
1777
|
get nodeB(): BABYLON.GuiEditor.SharedUIComponents.GraphNode | undefined;
|
|
1771
1778
|
intersectsWith(rect: DOMRect): boolean;
|
|
1772
1779
|
update(endX?: number, endY?: number, straight?: boolean): void;
|
|
1780
|
+
get path(): SVGPathElement;
|
|
1781
|
+
get selectionPath(): SVGPathElement;
|
|
1773
1782
|
constructor(graphCanvas: BABYLON.GuiEditor.SharedUIComponents.GraphCanvasComponent, portA: BABYLON.GuiEditor.SharedUIComponents.NodePort, nodeA: BABYLON.GuiEditor.SharedUIComponents.GraphNode, portB?: BABYLON.GuiEditor.SharedUIComponents.NodePort, nodeB?: BABYLON.GuiEditor.SharedUIComponents.GraphNode);
|
|
1774
1783
|
onClick(evt: MouseEvent): void;
|
|
1775
1784
|
dispose(notify?: boolean): void;
|
|
@@ -1854,6 +1863,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
1854
1863
|
set enclosingFrameId(value: number);
|
|
1855
1864
|
set isSelected(value: boolean);
|
|
1856
1865
|
setIsSelected(value: boolean, marqueeSelection: boolean): void;
|
|
1866
|
+
get rootElement(): HTMLDivElement;
|
|
1857
1867
|
constructor(content: BABYLON.GuiEditor.SharedUIComponents.INodeData, stateManager: BABYLON.GuiEditor.SharedUIComponents.StateManager);
|
|
1858
1868
|
isOverlappingFrame(frame: BABYLON.GuiEditor.SharedUIComponents.GraphFrame): boolean;
|
|
1859
1869
|
getPortForPortData(portData: BABYLON.GuiEditor.SharedUIComponents.IPortData): BABYLON.GuiEditor.SharedUIComponents.NodePort | null;
|
|
@@ -1903,6 +1913,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
1903
1913
|
private _headerTextElement;
|
|
1904
1914
|
private _headerCollapseElement;
|
|
1905
1915
|
private _headerCloseElement;
|
|
1916
|
+
private _headerFocusElement;
|
|
1906
1917
|
private _commentsElement;
|
|
1907
1918
|
private _portContainer;
|
|
1908
1919
|
private _outputPortContainer;
|
|
@@ -1932,6 +1943,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
1932
1943
|
private readonly _closeSVG;
|
|
1933
1944
|
private readonly _expandSVG;
|
|
1934
1945
|
private readonly _collapseSVG;
|
|
1946
|
+
private readonly _focusSVG;
|
|
1935
1947
|
get id(): number;
|
|
1936
1948
|
get isCollapsed(): boolean;
|
|
1937
1949
|
private _createInputPort;
|
|
@@ -1960,6 +1972,11 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
1960
1972
|
get comments(): string;
|
|
1961
1973
|
set comments(comments: string);
|
|
1962
1974
|
constructor(candidate: Nullable<HTMLDivElement>, canvas: BABYLON.GuiEditor.SharedUIComponents.GraphCanvasComponent, doNotCaptureNodes?: boolean);
|
|
1975
|
+
private _isFocused;
|
|
1976
|
+
/**
|
|
1977
|
+
* Enter/leave focus mode
|
|
1978
|
+
*/
|
|
1979
|
+
switchFocusMode(): void;
|
|
1963
1980
|
refresh(): void;
|
|
1964
1981
|
addNode(node: BABYLON.GuiEditor.SharedUIComponents.GraphNode): void;
|
|
1965
1982
|
removeNode(node: BABYLON.GuiEditor.SharedUIComponents.GraphNode): void;
|