babylonjs-gui-editor 7.53.3 → 7.54.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.
@@ -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>) => 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, img: HTMLImageElement, pip: HTMLDivElement) => void;
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 _img: HTMLImageElement;
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;
@@ -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;
@@ -6768,7 +6779,17 @@ declare module BABYLON {
6768
6779
  declare module BABYLON.GuiEditor.SharedUIComponents {
6769
6780
  export const IsFramePortData: (variableToCheck: any) => variableToCheck is BABYLON.GuiEditor.SharedUIComponents.FramePortData;
6770
6781
  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;
6782
+ 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;
6783
+ export function GetListOfAcceptedTypes<T extends Record<string, string | number>>(types: T, allValue: number, autoDetectValue: number, port: {
6784
+ acceptedConnectionPointTypes: number[];
6785
+ excludedConnectionPointTypes: number[];
6786
+ type: number;
6787
+ }, skips?: number[]): string[];
6788
+ export function GetConnectionErrorMessage<T extends Record<string, string | number>>(sourceType: number, types: T, allValue: number, autoDetectValue: number, port: {
6789
+ acceptedConnectionPointTypes: number[];
6790
+ excludedConnectionPointTypes: number[];
6791
+ type: number;
6792
+ }, skips?: number[]): string;
6772
6793
 
6773
6794
 
6774
6795
 
@@ -6816,7 +6837,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
6816
6837
  exportData: (data: any, frame?: Nullable<BABYLON.GuiEditor.SharedUIComponents.GraphFrame>) => string;
6817
6838
  isElbowConnectionAllowed: (nodeA: BABYLON.GuiEditor.SharedUIComponents.FrameNodePort | BABYLON.GuiEditor.SharedUIComponents.NodePort, nodeB: BABYLON.GuiEditor.SharedUIComponents.FrameNodePort | BABYLON.GuiEditor.SharedUIComponents.NodePort) => boolean;
6818
6839
  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;
6840
+ applyNodePortDesign: (data: BABYLON.GuiEditor.SharedUIComponents.IPortData, element: HTMLElement, imgHost: HTMLDivElement, pip: HTMLDivElement) => boolean;
6820
6841
  getPortColor: (portData: BABYLON.GuiEditor.SharedUIComponents.IPortData) => string;
6821
6842
  storeEditorData: (serializationObject: any, frame?: Nullable<BABYLON.GuiEditor.SharedUIComponents.GraphFrame>) => void;
6822
6843
  getEditorDataMap: () => {
@@ -6890,7 +6911,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
6890
6911
  node: BABYLON.GuiEditor.SharedUIComponents.GraphNode;
6891
6912
  protected _element: HTMLDivElement;
6892
6913
  protected _portContainer: HTMLElement;
6893
- protected _img: HTMLImageElement;
6914
+ protected _imgHost: HTMLDivElement;
6894
6915
  protected _pip: HTMLDivElement;
6895
6916
  protected _stateManager: BABYLON.GuiEditor.SharedUIComponents.StateManager;
6896
6917
  protected _portLabelElement: Element;
@@ -6977,6 +6998,7 @@ declare module BABYLON {
6977
6998
  declare module BABYLON.GuiEditor.SharedUIComponents {
6978
6999
  export class GraphNode {
6979
7000
  content: BABYLON.GuiEditor.SharedUIComponents.INodeData;
7001
+ private static _IdGenerator;
6980
7002
  private _visual;
6981
7003
  private _headerContainer;
6982
7004
  private _headerIcon;
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.0",
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.0",
18
+ "babylonjs-gui": "^7.54.0"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@dev/build-tools": "1.0.0",