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.
@@ -2096,7 +2096,17 @@ import { NodeLink } from "babylonjs-gui-editor/nodeGraphSystem/nodeLink";
2096
2096
  import { FramePortData } from "babylonjs-gui-editor/nodeGraphSystem/types/framePortData";
2097
2097
  export const IsFramePortData: (variableToCheck: any) => variableToCheck is FramePortData;
2098
2098
  export const RefreshNode: (node: GraphNode, visitedNodes?: Set<GraphNode>, visitedLinks?: Set<NodeLink>, canvas?: GraphCanvasComponent) => void;
2099
- export const BuildFloatUI: (container: HTMLDivElement, document: Document, displayName: string, isInteger: boolean, source: any, propertyName: string, onChange: () => void, min?: number, max?: number, visualPropertiesRefresh?: Array<() => void>) => void;
2099
+ 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;
2100
+ export function GetListOfAcceptedTypes<T extends Record<string, string | number>>(types: T, allValue: number, autoDetectValue: number, port: {
2101
+ acceptedConnectionPointTypes: number[];
2102
+ excludedConnectionPointTypes: number[];
2103
+ type: number;
2104
+ }, skips?: number[]): string[];
2105
+ export function GetConnectionErrorMessage<T extends Record<string, string | number>>(sourceType: number, types: T, allValue: number, autoDetectValue: number, port: {
2106
+ acceptedConnectionPointTypes: number[];
2107
+ excludedConnectionPointTypes: number[];
2108
+ type: number;
2109
+ }, skips?: number[]): string;
2100
2110
 
2101
2111
  }
2102
2112
  declare module "babylonjs-gui-editor/nodeGraphSystem/stateManager" {
@@ -2151,7 +2161,7 @@ export class StateManager {
2151
2161
  exportData: (data: any, frame?: Nullable<GraphFrame>) => string;
2152
2162
  isElbowConnectionAllowed: (nodeA: FrameNodePort | NodePort, nodeB: FrameNodePort | NodePort) => boolean;
2153
2163
  isDebugConnectionAllowed: (nodeA: FrameNodePort | NodePort, nodeB: FrameNodePort | NodePort) => boolean;
2154
- applyNodePortDesign: (data: IPortData, element: HTMLElement, img: HTMLImageElement, pip: HTMLDivElement) => void;
2164
+ applyNodePortDesign: (data: IPortData, element: HTMLElement, imgHost: HTMLDivElement, pip: HTMLDivElement) => boolean;
2155
2165
  getPortColor: (portData: IPortData) => string;
2156
2166
  storeEditorData: (serializationObject: any, frame?: Nullable<GraphFrame>) => void;
2157
2167
  getEditorDataMap: () => {
@@ -2221,7 +2231,7 @@ export class NodePort {
2221
2231
  node: GraphNode;
2222
2232
  protected _element: HTMLDivElement;
2223
2233
  protected _portContainer: HTMLElement;
2224
- protected _img: HTMLImageElement;
2234
+ protected _imgHost: HTMLDivElement;
2225
2235
  protected _pip: HTMLDivElement;
2226
2236
  protected _stateManager: StateManager;
2227
2237
  protected _portLabelElement: Element;
@@ -2304,6 +2314,7 @@ import { IPortData } from "babylonjs-gui-editor/nodeGraphSystem/interfaces/portD
2304
2314
  import { IEditablePropertyOption } from "babylonjs/Decorators/nodeDecorator";
2305
2315
  export class GraphNode {
2306
2316
  content: INodeData;
2317
+ private static _IdGenerator;
2307
2318
  private _visual;
2308
2319
  private _headerContainer;
2309
2320
  private _headerIcon;
@@ -3064,6 +3075,31 @@ interface IUnitButtonProps {
3064
3075
 
3065
3076
  export {};
3066
3077
 
3078
+ }
3079
+ declare module "babylonjs-gui-editor/lines/textureButtonLineComponent" {
3080
+ import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
3081
+ import { Scene } from "babylonjs/scene";
3082
+ import * as React from "react";
3083
+ interface ITextureButtonLineProps {
3084
+ label: string;
3085
+ scene: Scene;
3086
+ onClick: (file: File) => void;
3087
+ onLink: (texture: BaseTexture) => void;
3088
+ accept: string;
3089
+ }
3090
+ interface ITextureButtonLineState {
3091
+ isOpen: boolean;
3092
+ }
3093
+ export class TextureButtonLine extends React.Component<ITextureButtonLineProps, ITextureButtonLineState> {
3094
+ private static _IDGenerator;
3095
+ private _id;
3096
+ private _uploadInputRef;
3097
+ constructor(props: ITextureButtonLineProps);
3098
+ onChange(evt: any): void;
3099
+
3100
+ }
3101
+ export {};
3102
+
3067
3103
  }
3068
3104
  declare module "babylonjs-gui-editor/lines/textLineComponent" {
3069
3105
  import * as React from "react";
@@ -6768,7 +6804,17 @@ declare module BABYLON {
6768
6804
  declare module BABYLON.GuiEditor.SharedUIComponents {
6769
6805
  export const IsFramePortData: (variableToCheck: any) => variableToCheck is BABYLON.GuiEditor.SharedUIComponents.FramePortData;
6770
6806
  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;
6771
- export const BuildFloatUI: (container: HTMLDivElement, document: Document, displayName: string, isInteger: boolean, source: any, propertyName: string, onChange: () => void, min?: number, max?: number, visualPropertiesRefresh?: Array<() => void>) => void;
6807
+ 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;
6808
+ export function GetListOfAcceptedTypes<T extends Record<string, string | number>>(types: T, allValue: number, autoDetectValue: number, port: {
6809
+ acceptedConnectionPointTypes: number[];
6810
+ excludedConnectionPointTypes: number[];
6811
+ type: number;
6812
+ }, skips?: number[]): string[];
6813
+ export function GetConnectionErrorMessage<T extends Record<string, string | number>>(sourceType: number, types: T, allValue: number, autoDetectValue: number, port: {
6814
+ acceptedConnectionPointTypes: number[];
6815
+ excludedConnectionPointTypes: number[];
6816
+ type: number;
6817
+ }, skips?: number[]): string;
6772
6818
 
6773
6819
 
6774
6820
 
@@ -6816,7 +6862,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
6816
6862
  exportData: (data: any, frame?: Nullable<BABYLON.GuiEditor.SharedUIComponents.GraphFrame>) => string;
6817
6863
  isElbowConnectionAllowed: (nodeA: BABYLON.GuiEditor.SharedUIComponents.FrameNodePort | BABYLON.GuiEditor.SharedUIComponents.NodePort, nodeB: BABYLON.GuiEditor.SharedUIComponents.FrameNodePort | BABYLON.GuiEditor.SharedUIComponents.NodePort) => boolean;
6818
6864
  isDebugConnectionAllowed: (nodeA: BABYLON.GuiEditor.SharedUIComponents.FrameNodePort | BABYLON.GuiEditor.SharedUIComponents.NodePort, nodeB: BABYLON.GuiEditor.SharedUIComponents.FrameNodePort | BABYLON.GuiEditor.SharedUIComponents.NodePort) => boolean;
6819
- applyNodePortDesign: (data: BABYLON.GuiEditor.SharedUIComponents.IPortData, element: HTMLElement, img: HTMLImageElement, pip: HTMLDivElement) => void;
6865
+ applyNodePortDesign: (data: BABYLON.GuiEditor.SharedUIComponents.IPortData, element: HTMLElement, imgHost: HTMLDivElement, pip: HTMLDivElement) => boolean;
6820
6866
  getPortColor: (portData: BABYLON.GuiEditor.SharedUIComponents.IPortData) => string;
6821
6867
  storeEditorData: (serializationObject: any, frame?: Nullable<BABYLON.GuiEditor.SharedUIComponents.GraphFrame>) => void;
6822
6868
  getEditorDataMap: () => {
@@ -6890,7 +6936,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
6890
6936
  node: BABYLON.GuiEditor.SharedUIComponents.GraphNode;
6891
6937
  protected _element: HTMLDivElement;
6892
6938
  protected _portContainer: HTMLElement;
6893
- protected _img: HTMLImageElement;
6939
+ protected _imgHost: HTMLDivElement;
6894
6940
  protected _pip: HTMLDivElement;
6895
6941
  protected _stateManager: BABYLON.GuiEditor.SharedUIComponents.StateManager;
6896
6942
  protected _portLabelElement: Element;
@@ -6977,6 +7023,7 @@ declare module BABYLON {
6977
7023
  declare module BABYLON.GuiEditor.SharedUIComponents {
6978
7024
  export class GraphNode {
6979
7025
  content: BABYLON.GuiEditor.SharedUIComponents.INodeData;
7026
+ private static _IdGenerator;
6980
7027
  private _visual;
6981
7028
  private _headerContainer;
6982
7029
  private _headerIcon;
@@ -7778,6 +7825,33 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
7778
7825
 
7779
7826
 
7780
7827
 
7828
+ }
7829
+ declare module BABYLON {
7830
+
7831
+
7832
+ }
7833
+ declare module BABYLON.GuiEditor.SharedUIComponents {
7834
+ interface ITextureButtonLineProps {
7835
+ label: string;
7836
+ scene: Scene;
7837
+ onClick: (file: File) => void;
7838
+ onLink: (texture: BaseTexture) => void;
7839
+ accept: string;
7840
+ }
7841
+ interface ITextureButtonLineState {
7842
+ isOpen: boolean;
7843
+ }
7844
+ export class TextureButtonLine extends React.Component<ITextureButtonLineProps, ITextureButtonLineState> {
7845
+ private static _IDGenerator;
7846
+ private _id;
7847
+ private _uploadInputRef;
7848
+ constructor(props: ITextureButtonLineProps);
7849
+ onChange(evt: any): void;
7850
+ render(): import("react/jsx-runtime").JSX.Element;
7851
+ }
7852
+
7853
+
7854
+
7781
7855
  }
7782
7856
  declare module BABYLON {
7783
7857
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-gui-editor",
3
- "version": "7.53.3",
3
+ "version": "7.54.1",
4
4
  "main": "babylon.guiEditor.max.js",
5
5
  "types": "babylon.guiEditor.module.d.ts",
6
6
  "files": [
@@ -14,8 +14,8 @@
14
14
  "clean": "rimraf dist && rimraf babylon*.* -g"
15
15
  },
16
16
  "dependencies": {
17
- "babylonjs": "^7.53.3",
18
- "babylonjs-gui": "^7.53.3"
17
+ "babylonjs": "^7.54.1",
18
+ "babylonjs-gui": "^7.54.1"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@dev/build-tools": "1.0.0",