@babylonjs/gui-editor 5.14.0 → 5.15.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.
@@ -885,7 +885,6 @@ export class GizmoGeneric extends React.Component<IGuiGizmoProps, IGuiGizmoState
|
|
885
885
|
componentWillUnmount(): void;
|
886
886
|
/**
|
887
887
|
* Update the gizmo's positions
|
888
|
-
* @param force should the update be forced. otherwise it will be updated only when the pointer is down
|
889
888
|
*/
|
890
889
|
updateGizmo(): void;
|
891
890
|
private _onUp;
|
@@ -1748,7 +1747,7 @@ interface IFloatLineComponentProps {
|
|
1748
1747
|
label: string;
|
1749
1748
|
target: any;
|
1750
1749
|
propertyName: string;
|
1751
|
-
lockObject
|
1750
|
+
lockObject: LockObject;
|
1752
1751
|
onChange?: (newValue: number) => void;
|
1753
1752
|
isInteger?: boolean;
|
1754
1753
|
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
@@ -2122,7 +2121,7 @@ interface ISliderLineComponentProps {
|
|
2122
2121
|
margin?: boolean;
|
2123
2122
|
icon?: string;
|
2124
2123
|
iconLabel?: string;
|
2125
|
-
lockObject
|
2124
|
+
lockObject: LockObject;
|
2126
2125
|
unit?: React.ReactNode;
|
2127
2126
|
}
|
2128
2127
|
export class SliderLineComponent extends React.Component<ISliderLineComponentProps, {
|
@@ -2198,7 +2197,7 @@ export class TextInputLineComponent extends React.Component<ITextInputLineCompon
|
|
2198
2197
|
}): boolean;
|
2199
2198
|
raiseOnPropertyChanged(newValue: string, previousValue: string): void;
|
2200
2199
|
getCurrentNumericValue(value: string): number;
|
2201
|
-
updateValue(value: string): void;
|
2200
|
+
updateValue(value: string, valueToValidate?: string): void;
|
2202
2201
|
incrementValue(amount: number): void;
|
2203
2202
|
onKeyDown(event: React.KeyboardEvent): void;
|
2204
2203
|
render(): JSX.Element;
|
@@ -2502,6 +2501,8 @@ export class GraphCanvasComponent extends React.Component<IGraphCanvasComponentP
|
|
2502
2501
|
get frameContainer(): HTMLDivElement;
|
2503
2502
|
private _selectedFrameAndNodesConflict;
|
2504
2503
|
constructor(props: IGraphCanvasComponentProps);
|
2504
|
+
populateConnectedEntriesBeforeRemoval(item: GraphNode, items: GraphNode[], inputs: Nullable<IPortData>[], outputs: Nullable<IPortData>[]): void;
|
2505
|
+
automaticRewire(inputs: Nullable<IPortData>[], outputs: Nullable<IPortData>[]): void;
|
2505
2506
|
handleKeyDown(evt: KeyboardEvent, onRemove: (nodeData: INodeData) => void, mouseLocationX: number, mouseLocationY: number, dataGenerator: (nodeData: INodeData) => any, rootElement: HTMLDivElement): void;
|
2506
2507
|
pasteSelection(copiedNodes: GraphNode[], currentX: number, currentY: number, dataGenerator: (nodeData: INodeData) => any, selectNew?: boolean): GraphNode[];
|
2507
2508
|
reconnectNewNodes(nodeIndex: number, newNodes: GraphNode[], sourceNodes: GraphNode[], done: boolean[]): void;
|
@@ -2704,7 +2705,8 @@ export class GraphNode {
|
|
2704
2705
|
content: INodeData;
|
2705
2706
|
private _visual;
|
2706
2707
|
private _headerContainer;
|
2707
|
-
private
|
2708
|
+
private _headerIcon;
|
2709
|
+
private _headerIconImg;
|
2708
2710
|
private _header;
|
2709
2711
|
private _connections;
|
2710
2712
|
private _inputsContainer;
|
@@ -2800,7 +2802,7 @@ export interface INodeData {
|
|
2800
2802
|
uniqueId: number;
|
2801
2803
|
isInput: boolean;
|
2802
2804
|
comments: string;
|
2803
|
-
|
2805
|
+
prepareHeaderIcon: (iconDiv: HTMLDivElement, img: HTMLImageElement) => void;
|
2804
2806
|
getClassName: () => string;
|
2805
2807
|
dispose: () => void;
|
2806
2808
|
getPortByName: (name: string) => Nullable<IPortData>;
|
@@ -2861,6 +2863,7 @@ export interface IPortData {
|
|
2861
2863
|
hasEndpoints: boolean;
|
2862
2864
|
endpoints: Nullable<IPortData[]>;
|
2863
2865
|
updateDisplayName: (newName: string) => void;
|
2866
|
+
canConnectTo: (port: IPortData) => boolean;
|
2864
2867
|
connectTo: (port: IPortData) => void;
|
2865
2868
|
disconnectFrom: (port: IPortData) => void;
|
2866
2869
|
checkCompatibilityState(port: IPortData): number;
|
@@ -3004,7 +3007,7 @@ export class StateManager {
|
|
3004
3007
|
targetY: number;
|
3005
3008
|
needRepositioning?: boolean | undefined;
|
3006
3009
|
}>;
|
3007
|
-
exportData: (data: any) => string;
|
3010
|
+
exportData: (data: any, frame?: Nullable<GraphFrame>) => string;
|
3008
3011
|
isElbowConnectionAllowed: (nodeA: FrameNodePort | NodePort, nodeB: FrameNodePort | NodePort) => boolean;
|
3009
3012
|
applyNodePortDesign: (data: IPortData, element: HTMLElement, img: HTMLImageElement) => void;
|
3010
3013
|
storeEditorData: (serializationObject: any, frame?: Nullable<GraphFrame>) => void;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@babylonjs/gui-editor",
|
3
|
-
"version": "5.
|
3
|
+
"version": "5.15.1",
|
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": "^5.
|
28
|
-
"@babylonjs/gui": "^5.
|
27
|
+
"@babylonjs/core": "^5.15.1",
|
28
|
+
"@babylonjs/gui": "^5.15.1",
|
29
29
|
"react": "^17.0.2",
|
30
30
|
"react-dom": "^17.0.2",
|
31
31
|
"rimraf": "^3.0.2",
|