@babylonjs/node-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.
@@ -1947,7 +1947,17 @@ import { NodeLink } from "@babylonjs/node-editor/nodeGraphSystem/nodeLink";
|
|
1947
1947
|
import { FramePortData } from "@babylonjs/node-editor/nodeGraphSystem/types/framePortData";
|
1948
1948
|
export const IsFramePortData: (variableToCheck: any) => variableToCheck is FramePortData;
|
1949
1949
|
export const RefreshNode: (node: GraphNode, visitedNodes?: Set<GraphNode>, visitedLinks?: Set<NodeLink>, canvas?: GraphCanvasComponent) => void;
|
1950
|
-
export const BuildFloatUI: (container: HTMLDivElement, document: Document, displayName: string, isInteger: boolean, source: any, propertyName: string, onChange: () => void, min?: number, max?: number, visualPropertiesRefresh?: Array<() => void
|
1950
|
+
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;
|
1951
|
+
export function GetListOfAcceptedTypes<T extends Record<string, string | number>>(types: T, allValue: number, autoDetectValue: number, port: {
|
1952
|
+
acceptedConnectionPointTypes: number[];
|
1953
|
+
excludedConnectionPointTypes: number[];
|
1954
|
+
type: number;
|
1955
|
+
}, skips?: number[]): string[];
|
1956
|
+
export function GetConnectionErrorMessage<T extends Record<string, string | number>>(sourceType: number, types: T, allValue: number, autoDetectValue: number, port: {
|
1957
|
+
acceptedConnectionPointTypes: number[];
|
1958
|
+
excludedConnectionPointTypes: number[];
|
1959
|
+
type: number;
|
1960
|
+
}, skips?: number[]): string;
|
1951
1961
|
|
1952
1962
|
}
|
1953
1963
|
declare module "@babylonjs/node-editor/nodeGraphSystem/stateManager" {
|
@@ -2002,7 +2012,7 @@ export class StateManager {
|
|
2002
2012
|
exportData: (data: any, frame?: Nullable<GraphFrame>) => string;
|
2003
2013
|
isElbowConnectionAllowed: (nodeA: FrameNodePort | NodePort, nodeB: FrameNodePort | NodePort) => boolean;
|
2004
2014
|
isDebugConnectionAllowed: (nodeA: FrameNodePort | NodePort, nodeB: FrameNodePort | NodePort) => boolean;
|
2005
|
-
applyNodePortDesign: (data: IPortData, element: HTMLElement,
|
2015
|
+
applyNodePortDesign: (data: IPortData, element: HTMLElement, imgHost: HTMLDivElement, pip: HTMLDivElement) => boolean;
|
2006
2016
|
getPortColor: (portData: IPortData) => string;
|
2007
2017
|
storeEditorData: (serializationObject: any, frame?: Nullable<GraphFrame>) => void;
|
2008
2018
|
getEditorDataMap: () => {
|
@@ -2072,7 +2082,7 @@ export class NodePort {
|
|
2072
2082
|
node: GraphNode;
|
2073
2083
|
protected _element: HTMLDivElement;
|
2074
2084
|
protected _portContainer: HTMLElement;
|
2075
|
-
protected
|
2085
|
+
protected _imgHost: HTMLDivElement;
|
2076
2086
|
protected _pip: HTMLDivElement;
|
2077
2087
|
protected _stateManager: StateManager;
|
2078
2088
|
protected _portLabelElement: Element;
|
@@ -2155,6 +2165,7 @@ import { IPortData } from "@babylonjs/node-editor/nodeGraphSystem/interfaces/por
|
|
2155
2165
|
import { IEditablePropertyOption } from "@babylonjs/core/Decorators/nodeDecorator";
|
2156
2166
|
export class GraphNode {
|
2157
2167
|
content: INodeData;
|
2168
|
+
private static _IdGenerator;
|
2158
2169
|
private _visual;
|
2159
2170
|
private _headerContainer;
|
2160
2171
|
private _headerIcon;
|
@@ -2915,6 +2926,31 @@ interface IUnitButtonProps {
|
|
2915
2926
|
|
2916
2927
|
export {};
|
2917
2928
|
|
2929
|
+
}
|
2930
|
+
declare module "@babylonjs/node-editor/lines/textureButtonLineComponent" {
|
2931
|
+
import { BaseTexture } from "@babylonjs/core/Materials/Textures/baseTexture";
|
2932
|
+
import { Scene } from "@babylonjs/core/scene";
|
2933
|
+
import * as React from "react";
|
2934
|
+
interface ITextureButtonLineProps {
|
2935
|
+
label: string;
|
2936
|
+
scene: Scene;
|
2937
|
+
onClick: (file: File) => void;
|
2938
|
+
onLink: (texture: BaseTexture) => void;
|
2939
|
+
accept: string;
|
2940
|
+
}
|
2941
|
+
interface ITextureButtonLineState {
|
2942
|
+
isOpen: boolean;
|
2943
|
+
}
|
2944
|
+
export class TextureButtonLine extends React.Component<ITextureButtonLineProps, ITextureButtonLineState> {
|
2945
|
+
private static _IDGenerator;
|
2946
|
+
private _id;
|
2947
|
+
private _uploadInputRef;
|
2948
|
+
constructor(props: ITextureButtonLineProps);
|
2949
|
+
onChange(evt: any): void;
|
2950
|
+
|
2951
|
+
}
|
2952
|
+
export {};
|
2953
|
+
|
2918
2954
|
}
|
2919
2955
|
declare module "@babylonjs/node-editor/lines/textLineComponent" {
|
2920
2956
|
import * as React from "react";
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@babylonjs/node-editor",
|
3
|
-
"version": "7.
|
3
|
+
"version": "7.54.1",
|
4
4
|
"main": "dist/babylon.nodeEditor.max.js",
|
5
5
|
"module": "dist/babylon.nodeEditor.max.js",
|
6
6
|
"esnext": "dist/babylon.nodeEditor.max.js",
|
@@ -23,7 +23,7 @@
|
|
23
23
|
"@types/react-dom": ">=16.0.9"
|
24
24
|
},
|
25
25
|
"devDependencies": {
|
26
|
-
"@babylonjs/core": "^7.
|
26
|
+
"@babylonjs/core": "^7.54.1",
|
27
27
|
"react": "^17.0.2",
|
28
28
|
"react-dom": "^17.0.2"
|
29
29
|
},
|