@babylonjs/gui-editor 5.21.0 → 5.23.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.
@@ -805,7 +805,7 @@ import { Vector2 } from "@babylonjs/core/Maths/math.vector";
|
|
805
805
|
import { Observable } from "@babylonjs/core/Misc/observable";
|
806
806
|
import { GlobalState } from "@babylonjs/gui-editor/globalState";
|
807
807
|
import { PropertyChangedEvent } from "@babylonjs/gui-editor/propertyChangedEvent";
|
808
|
-
export type DimensionProperties = "width" | "left" | "height" | "top" | "paddingLeft" | "paddingRight" | "paddingTop" | "paddingBottom" | "fontSize";
|
808
|
+
export type DimensionProperties = "width" | "left" | "height" | "top" | "paddingLeft" | "paddingRight" | "paddingTop" | "paddingBottom" | "fontSize" | "linkOffsetX" | "linkOffsetY";
|
809
809
|
export class Rect {
|
810
810
|
top: number;
|
811
811
|
left: number;
|
@@ -1504,6 +1504,7 @@ import * as React from "react";
|
|
1504
1504
|
export interface MessageDialogProps {
|
1505
1505
|
message: string;
|
1506
1506
|
isError: boolean;
|
1507
|
+
onClose?: () => void;
|
1507
1508
|
}
|
1508
1509
|
export const MessageDialog: React.FC<MessageDialogProps>;
|
1509
1510
|
|
@@ -2455,7 +2456,6 @@ import { StateManager } from "@babylonjs/gui-editor/nodeGraphSystem/stateManager
|
|
2455
2456
|
import { INodeData } from "@babylonjs/gui-editor/nodeGraphSystem/interfaces/nodeData";
|
2456
2457
|
import { IPortData } from "@babylonjs/gui-editor/nodeGraphSystem/interfaces/portData";
|
2457
2458
|
import { INodeContainer } from "@babylonjs/gui-editor/nodeGraphSystem/interfaces/nodeContainer";
|
2458
|
-
import "@babylonjs/gui-editor/nodeGraphSystem/scss/graphCanvas.scss";
|
2459
2459
|
export interface IGraphCanvasComponentProps {
|
2460
2460
|
stateManager: StateManager;
|
2461
2461
|
onEmitNewNode: (nodeData: INodeData) => GraphNode;
|
@@ -2736,6 +2736,7 @@ export class GraphNode {
|
|
2736
2736
|
private _outputsContainer;
|
2737
2737
|
private _content;
|
2738
2738
|
private _comments;
|
2739
|
+
private _selectionBorder;
|
2739
2740
|
private _inputPorts;
|
2740
2741
|
private _outputPorts;
|
2741
2742
|
private _links;
|
@@ -2798,10 +2799,14 @@ export class GraphNode {
|
|
2798
2799
|
declare module "@babylonjs/gui-editor/nodeGraphSystem/interfaces/displayManager" {
|
2799
2800
|
import { INodeData } from "@babylonjs/gui-editor/nodeGraphSystem/interfaces/nodeData";
|
2800
2801
|
import { IPortData } from "@babylonjs/gui-editor/nodeGraphSystem/interfaces/portData";
|
2802
|
+
export interface VisualContentDescription {
|
2803
|
+
[key: string]: HTMLElement;
|
2804
|
+
}
|
2801
2805
|
export interface IDisplayManager {
|
2802
2806
|
getHeaderClass(data: INodeData): string;
|
2803
2807
|
shouldDisplayPortLabels(data: IPortData): boolean;
|
2804
2808
|
updatePreviewContent(data: INodeData, contentArea: HTMLDivElement): void;
|
2809
|
+
updateFullVisualContent?(data: INodeData, visualContent: VisualContentDescription): void;
|
2805
2810
|
getBackgroundColor(data: INodeData): string;
|
2806
2811
|
getHeaderText(data: INodeData): string;
|
2807
2812
|
}
|
@@ -3041,10 +3046,10 @@ export class StateManager {
|
|
3041
3046
|
getEditorDataMap: () => {
|
3042
3047
|
[key: number]: number;
|
3043
3048
|
};
|
3044
|
-
createDefaultInputData: (rootData: any, portData: IPortData, nodeContainer: INodeContainer) => {
|
3049
|
+
createDefaultInputData: (rootData: any, portData: IPortData, nodeContainer: INodeContainer) => Nullable<{
|
3045
3050
|
data: INodeData;
|
3046
3051
|
name: string;
|
3047
|
-
}
|
3052
|
+
}>;
|
3048
3053
|
}
|
3049
3054
|
|
3050
3055
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@babylonjs/gui-editor",
|
3
|
-
"version": "5.
|
3
|
+
"version": "5.23.0",
|
4
4
|
"main": "dist/babylon.guiEditor.max.js",
|
5
5
|
"module": "dist/babylon.guiEditor.max.js",
|
6
6
|
"esnext": "dist/babylon.guiEditor.max.js",
|
@@ -18,14 +18,14 @@
|
|
18
18
|
"clean": "rimraf dist"
|
19
19
|
},
|
20
20
|
"peerDependencies": {
|
21
|
-
"@babylonjs/core": "^5.
|
22
|
-
"@babylonjs/gui": "^5.
|
21
|
+
"@babylonjs/core": "^5.22.0",
|
22
|
+
"@babylonjs/gui": "^5.22.0",
|
23
23
|
"@types/react": ">=16.7.3",
|
24
24
|
"@types/react-dom": ">=16.0.9"
|
25
25
|
},
|
26
26
|
"devDependencies": {
|
27
|
-
"@babylonjs/core": "^5.
|
28
|
-
"@babylonjs/gui": "^5.
|
27
|
+
"@babylonjs/core": "^5.23.0",
|
28
|
+
"@babylonjs/gui": "^5.23.0",
|
29
29
|
"react": "^17.0.2",
|
30
30
|
"react-dom": "^17.0.2",
|
31
31
|
"rimraf": "^3.0.2",
|