babylonjs-gui-editor 7.53.3 → 7.54.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
CHANGED
|
@@ -1826,7 +1826,17 @@ declare module BABYLON {
|
|
|
1826
1826
|
declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
1827
1827
|
export const IsFramePortData: (variableToCheck: any) => variableToCheck is BABYLON.GuiEditor.SharedUIComponents.FramePortData;
|
|
1828
1828
|
export const RefreshNode: (node: BABYLON.GuiEditor.SharedUIComponents.GraphNode, visitedNodes?: Set<BABYLON.GuiEditor.SharedUIComponents.GraphNode>, visitedLinks?: Set<BABYLON.GuiEditor.SharedUIComponents.NodeLink>, canvas?: BABYLON.GuiEditor.SharedUIComponents.GraphCanvasComponent) => void;
|
|
1829
|
-
export const BuildFloatUI: (container: HTMLDivElement, document: Document, displayName: string, isInteger: boolean, source: any, propertyName: string, onChange: () => void, min?: number, max?: number, visualPropertiesRefresh?: Array<() => void
|
|
1829
|
+
export const BuildFloatUI: (container: HTMLDivElement, document: Document, displayName: string, isInteger: boolean, source: any, propertyName: string, onChange: () => void, min?: number, max?: number, visualPropertiesRefresh?: Array<() => void>, additionalClassName?: string) => void;
|
|
1830
|
+
export function GetListOfAcceptedTypes<T extends Record<string, string | number>>(types: T, allValue: number, autoDetectValue: number, port: {
|
|
1831
|
+
acceptedConnectionPointTypes: number[];
|
|
1832
|
+
excludedConnectionPointTypes: number[];
|
|
1833
|
+
type: number;
|
|
1834
|
+
}, skips?: number[]): string[];
|
|
1835
|
+
export function GetConnectionErrorMessage<T extends Record<string, string | number>>(sourceType: number, types: T, allValue: number, autoDetectValue: number, port: {
|
|
1836
|
+
acceptedConnectionPointTypes: number[];
|
|
1837
|
+
excludedConnectionPointTypes: number[];
|
|
1838
|
+
type: number;
|
|
1839
|
+
}, skips?: number[]): string;
|
|
1830
1840
|
|
|
1831
1841
|
|
|
1832
1842
|
|
|
@@ -1874,7 +1884,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
1874
1884
|
exportData: (data: any, frame?: Nullable<BABYLON.GuiEditor.SharedUIComponents.GraphFrame>) => string;
|
|
1875
1885
|
isElbowConnectionAllowed: (nodeA: BABYLON.GuiEditor.SharedUIComponents.FrameNodePort | BABYLON.GuiEditor.SharedUIComponents.NodePort, nodeB: BABYLON.GuiEditor.SharedUIComponents.FrameNodePort | BABYLON.GuiEditor.SharedUIComponents.NodePort) => boolean;
|
|
1876
1886
|
isDebugConnectionAllowed: (nodeA: BABYLON.GuiEditor.SharedUIComponents.FrameNodePort | BABYLON.GuiEditor.SharedUIComponents.NodePort, nodeB: BABYLON.GuiEditor.SharedUIComponents.FrameNodePort | BABYLON.GuiEditor.SharedUIComponents.NodePort) => boolean;
|
|
1877
|
-
applyNodePortDesign: (data: BABYLON.GuiEditor.SharedUIComponents.IPortData, element: HTMLElement,
|
|
1887
|
+
applyNodePortDesign: (data: BABYLON.GuiEditor.SharedUIComponents.IPortData, element: HTMLElement, imgHost: HTMLDivElement, pip: HTMLDivElement) => boolean;
|
|
1878
1888
|
getPortColor: (portData: BABYLON.GuiEditor.SharedUIComponents.IPortData) => string;
|
|
1879
1889
|
storeEditorData: (serializationObject: any, frame?: Nullable<BABYLON.GuiEditor.SharedUIComponents.GraphFrame>) => void;
|
|
1880
1890
|
getEditorDataMap: () => {
|
|
@@ -1948,7 +1958,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
1948
1958
|
node: BABYLON.GuiEditor.SharedUIComponents.GraphNode;
|
|
1949
1959
|
protected _element: HTMLDivElement;
|
|
1950
1960
|
protected _portContainer: HTMLElement;
|
|
1951
|
-
protected
|
|
1961
|
+
protected _imgHost: HTMLDivElement;
|
|
1952
1962
|
protected _pip: HTMLDivElement;
|
|
1953
1963
|
protected _stateManager: BABYLON.GuiEditor.SharedUIComponents.StateManager;
|
|
1954
1964
|
protected _portLabelElement: Element;
|
|
@@ -2035,6 +2045,7 @@ declare module BABYLON {
|
|
|
2035
2045
|
declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
2036
2046
|
export class GraphNode {
|
|
2037
2047
|
content: BABYLON.GuiEditor.SharedUIComponents.INodeData;
|
|
2048
|
+
private static _IdGenerator;
|
|
2038
2049
|
private _visual;
|
|
2039
2050
|
private _headerContainer;
|
|
2040
2051
|
private _headerIcon;
|
|
@@ -2836,6 +2847,33 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
2836
2847
|
|
|
2837
2848
|
|
|
2838
2849
|
|
|
2850
|
+
}
|
|
2851
|
+
declare module BABYLON {
|
|
2852
|
+
|
|
2853
|
+
|
|
2854
|
+
}
|
|
2855
|
+
declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
2856
|
+
interface ITextureButtonLineProps {
|
|
2857
|
+
label: string;
|
|
2858
|
+
scene: Scene;
|
|
2859
|
+
onClick: (file: File) => void;
|
|
2860
|
+
onLink: (texture: BaseTexture) => void;
|
|
2861
|
+
accept: string;
|
|
2862
|
+
}
|
|
2863
|
+
interface ITextureButtonLineState {
|
|
2864
|
+
isOpen: boolean;
|
|
2865
|
+
}
|
|
2866
|
+
export class TextureButtonLine extends React.Component<ITextureButtonLineProps, ITextureButtonLineState> {
|
|
2867
|
+
private static _IDGenerator;
|
|
2868
|
+
private _id;
|
|
2869
|
+
private _uploadInputRef;
|
|
2870
|
+
constructor(props: ITextureButtonLineProps);
|
|
2871
|
+
onChange(evt: any): void;
|
|
2872
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
2873
|
+
}
|
|
2874
|
+
|
|
2875
|
+
|
|
2876
|
+
|
|
2839
2877
|
}
|
|
2840
2878
|
declare module BABYLON {
|
|
2841
2879
|
|