babylonjs-node-editor 5.24.0 → 5.26.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.
@@ -1012,6 +1012,76 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
1012
1012
 
1013
1013
 
1014
1014
 
1015
+ }
1016
+ declare module BABYLON.NodeEditor {
1017
+
1018
+ }
1019
+ declare module BABYLON.NodeEditor.SharedUIComponents {
1020
+ export interface ICommandBarComponentProps {
1021
+ onSaveButtonClicked?: () => void;
1022
+ onSaveToSnippetButtonClicked?: () => void;
1023
+ onLoadFromSnippetButtonClicked?: () => void;
1024
+ onHelpButtonClicked?: () => void;
1025
+ onGiveFeedbackButtonClicked?: () => void;
1026
+ onSelectButtonClicked?: () => void;
1027
+ onPanButtonClicked?: () => void;
1028
+ onZoomButtonClicked?: () => void;
1029
+ onFitButtonClicked?: () => void;
1030
+ }
1031
+ export var CommandBarComponent: React.FC<ICommandBarComponentProps>;
1032
+
1033
+
1034
+
1035
+ }
1036
+ declare module BABYLON.NodeEditor {
1037
+
1038
+ }
1039
+ declare module BABYLON.NodeEditor.SharedUIComponents {
1040
+ export interface ICommandButtonComponentProps {
1041
+ tooltip: string;
1042
+ shortcut?: string;
1043
+ icon: string;
1044
+ iconLabel?: string;
1045
+ isActive: boolean;
1046
+ onClick: () => void;
1047
+ disabled?: boolean;
1048
+ }
1049
+ export var CommandButtonComponent: React.FC<ICommandButtonComponentProps>;
1050
+
1051
+
1052
+
1053
+ }
1054
+ declare module BABYLON.NodeEditor {
1055
+
1056
+ }
1057
+ declare module BABYLON.NodeEditor.SharedUIComponents {
1058
+ interface ICommandDropdownComponentProps {
1059
+ icon?: string;
1060
+ tooltip: string;
1061
+ defaultValue?: string;
1062
+ items: {
1063
+ label: string;
1064
+ icon?: string;
1065
+ fileButton?: boolean;
1066
+ onClick?: () => void;
1067
+ onCheck?: (value: boolean) => void;
1068
+ storeKey?: string;
1069
+ isActive?: boolean;
1070
+ defaultValue?: boolean | string;
1071
+ subItems?: string[];
1072
+ }[];
1073
+ toRight?: boolean;
1074
+ }
1075
+ export class CommandDropdownComponent extends React.Component<ICommandDropdownComponentProps, {
1076
+ isExpanded: boolean;
1077
+ activeState: string;
1078
+ }> {
1079
+ constructor(props: ICommandDropdownComponentProps);
1080
+ render(): JSX.Element;
1081
+ }
1082
+
1083
+
1084
+
1015
1085
  }
1016
1086
  declare module BABYLON.NodeEditor {
1017
1087
 
@@ -1036,6 +1106,7 @@ declare module BABYLON.NodeEditor {
1036
1106
  }
1037
1107
  declare module BABYLON.NodeEditor.SharedUIComponents {
1038
1108
  export function ClassNames(names: any, styleObject: any): string;
1109
+ export function JoinClassNames(styleObject: any, ...names: string[]): string;
1039
1110
 
1040
1111
 
1041
1112
 
@@ -1067,6 +1138,29 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
1067
1138
 
1068
1139
 
1069
1140
 
1141
+ }
1142
+ declare module BABYLON.NodeEditor {
1143
+
1144
+ }
1145
+ declare module BABYLON.NodeEditor.SharedUIComponents {
1146
+ export interface IFileButtonLineComponentProps {
1147
+ label: string;
1148
+ onClick: (file: File) => void;
1149
+ accept: string;
1150
+ icon?: string;
1151
+ iconLabel?: string;
1152
+ }
1153
+ export class FileButtonLineComponent extends React.Component<IFileButtonLineComponentProps> {
1154
+ private static _IDGenerator;
1155
+ private _id;
1156
+ private _uploadInputRef;
1157
+ constructor(props: IFileButtonLineComponentProps);
1158
+ onChange(evt: any): void;
1159
+ render(): JSX.Element;
1160
+ }
1161
+
1162
+
1163
+
1070
1164
  }
1071
1165
  declare module BABYLON.NodeEditor {
1072
1166
 
@@ -1685,9 +1779,14 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
1685
1779
  target: any;
1686
1780
  propertyName: string;
1687
1781
  options: BABYLON.IInspectableOptions[];
1782
+ addInput?: boolean;
1688
1783
  noDirectUpdate?: boolean;
1689
1784
  onSelect?: (value: number | string) => void;
1690
1785
  extractValue?: (target: any) => number | string;
1786
+ addVal?: (newVal: {
1787
+ label: string;
1788
+ value: number;
1789
+ }, prevVal: number) => void;
1691
1790
  onPropertyChangedObservable?: BABYLON.Observable<BABYLON.NodeEditor.SharedUIComponents.PropertyChangedEvent>;
1692
1791
  allowNullValue?: boolean;
1693
1792
  icon?: string;
@@ -1695,9 +1794,13 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
1695
1794
  className?: string;
1696
1795
  valuesAreStrings?: boolean;
1697
1796
  defaultIfNull?: number;
1797
+ fromFontDropdown?: boolean;
1798
+ valueProp?: number;
1799
+ fallbackValue?: number;
1698
1800
  }
1699
1801
  export class OptionsLineComponent extends React.Component<IOptionsLineComponentProps, {
1700
1802
  value: number | string;
1803
+ addCustom: boolean;
1701
1804
  }> {
1702
1805
  private _localChange;
1703
1806
  private _remapValueIn;
@@ -1706,10 +1809,12 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
1706
1809
  constructor(props: IOptionsLineComponentProps);
1707
1810
  shouldComponentUpdate(nextProps: IOptionsLineComponentProps, nextState: {
1708
1811
  value: number;
1812
+ addCustom: boolean;
1709
1813
  }): boolean;
1710
1814
  raiseOnPropertyChanged(newValue: number, previousValue: number): void;
1711
1815
  setValue(value: string | number): void;
1712
1816
  updateValue(valueString: string): void;
1817
+ updateCustomValue(): void;
1713
1818
  render(): JSX.Element;
1714
1819
  }
1715
1820
 
@@ -2746,6 +2851,32 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
2746
2851
 
2747
2852
 
2748
2853
 
2854
+ }
2855
+ declare module BABYLON.NodeEditor {
2856
+
2857
+ }
2858
+ declare module BABYLON.NodeEditor.SharedUIComponents {
2859
+ /// <reference types="react" />
2860
+ var _default: {
2861
+ component: ICommandBarComponentProps>;
2862
+ };
2863
+ export var Default: {};
2864
+
2865
+
2866
+
2867
+ }
2868
+ declare module BABYLON.NodeEditor {
2869
+
2870
+ }
2871
+ declare module BABYLON.NodeEditor.SharedUIComponents {
2872
+ /// <reference types="react" />
2873
+ var _default: {
2874
+ component: ICommandButtonComponentProps>;
2875
+ };
2876
+ export var Default: {};
2877
+
2878
+
2879
+
2749
2880
  }
2750
2881
  declare module BABYLON.NodeEditor {
2751
2882
 
@@ -2791,6 +2922,18 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
2791
2922
 
2792
2923
 
2793
2924
 
2925
+ }
2926
+ declare module BABYLON.NodeEditor {
2927
+
2928
+ }
2929
+ declare module BABYLON.NodeEditor.SharedUIComponents {
2930
+ var _default: {
2931
+ component: typeof BABYLON.NodeEditor.SharedUIComponents.FileButtonLineComponent;
2932
+ };
2933
+ export var Default: {};
2934
+
2935
+
2936
+
2794
2937
  }
2795
2938
  declare module BABYLON.NodeEditor {
2796
2939