babylonjs-node-editor 5.31.2 → 5.32.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.
@@ -1096,8 +1096,9 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
1096
1096
  active?: boolean;
1097
1097
  onClick?: () => void;
1098
1098
  color: "light" | "dark";
1099
- size: "default" | "small" | "wide";
1099
+ size: "default" | "small" | "wide" | "smaller";
1100
1100
  title?: string;
1101
+ backgroundColor?: string;
1101
1102
  };
1102
1103
  export var Button: React.FC<ButtonProps>;
1103
1104
 
@@ -1780,6 +1781,34 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
1780
1781
 
1781
1782
 
1782
1783
 
1784
+ }
1785
+ declare module BABYLON.NodeEditor {
1786
+
1787
+ }
1788
+ declare module BABYLON.NodeEditor.SharedUIComponents {
1789
+ /// <reference types="react" />
1790
+ /**
1791
+ * This components represents an options menu with optional
1792
+ * customizable properties. Option IDs should be unique.
1793
+ */
1794
+ export interface IOption {
1795
+ label: string;
1796
+ value: string;
1797
+ id: string;
1798
+ }
1799
+ export interface IOptionsLineComponentProps {
1800
+ options: IOption[];
1801
+ addOptionPlaceholder?: string;
1802
+ onOptionAdded?: (newOption: IOption) => void;
1803
+ onOptionSelected: (selectedOptionValue: string) => void;
1804
+ selectedOptionValue: string;
1805
+ validateNewOptionValue?: (newOptionValue: string) => boolean;
1806
+ addOptionText?: string;
1807
+ }
1808
+ export const OptionsLineComponent: (props: IOptionsLineComponentProps) => JSX.Element;
1809
+
1810
+
1811
+
1783
1812
  }
1784
1813
  declare module BABYLON.NodeEditor {
1785
1814
 
@@ -1794,6 +1823,26 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
1794
1823
 
1795
1824
 
1796
1825
 
1826
+ }
1827
+ declare module BABYLON.NodeEditor {
1828
+
1829
+ }
1830
+ declare module BABYLON.NodeEditor.SharedUIComponents {
1831
+ /// <reference types="react" />
1832
+ export interface ITextInputProps {
1833
+ label?: string;
1834
+ placeholder?: string;
1835
+ submitValue: (newValue: string) => void;
1836
+ validateValue?: (value: string) => boolean;
1837
+ cancelSubmit?: () => void;
1838
+ }
1839
+ /**
1840
+ * This component represents a text input that can be submitted or cancelled on buttons
1841
+ */
1842
+ export const TextInputWithSubmit: (props: ITextInputProps) => JSX.Element;
1843
+
1844
+
1845
+
1797
1846
  }
1798
1847
  declare module BABYLON.NodeEditor {
1799
1848
 
@@ -2398,14 +2447,9 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
2398
2447
  target: any;
2399
2448
  propertyName: string;
2400
2449
  options: BABYLON.IInspectableOptions[];
2401
- addInput?: boolean;
2402
2450
  noDirectUpdate?: boolean;
2403
2451
  onSelect?: (value: number | string) => void;
2404
2452
  extractValue?: (target: any) => number | string;
2405
- addVal?: (newVal: {
2406
- label: string;
2407
- value: number;
2408
- }, prevVal: number) => void;
2409
2453
  onPropertyChangedObservable?: BABYLON.Observable<BABYLON.NodeEditor.SharedUIComponents.PropertyChangedEvent>;
2410
2454
  allowNullValue?: boolean;
2411
2455
  icon?: string;
@@ -2413,13 +2457,9 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
2413
2457
  className?: string;
2414
2458
  valuesAreStrings?: boolean;
2415
2459
  defaultIfNull?: number;
2416
- fromFontDropdown?: boolean;
2417
- valueProp?: number;
2418
- fallbackValue?: number;
2419
2460
  }
2420
2461
  export class OptionsLineComponent extends React.Component<IOptionsLineComponentProps, {
2421
2462
  value: number | string;
2422
- addCustom: boolean;
2423
2463
  }> {
2424
2464
  private _localChange;
2425
2465
  private _remapValueIn;
@@ -2428,12 +2468,10 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
2428
2468
  constructor(props: IOptionsLineComponentProps);
2429
2469
  shouldComponentUpdate(nextProps: IOptionsLineComponentProps, nextState: {
2430
2470
  value: number;
2431
- addCustom: boolean;
2432
2471
  }): boolean;
2433
2472
  raiseOnPropertyChanged(newValue: number, previousValue: number): void;
2434
2473
  setValue(value: string | number): void;
2435
2474
  updateValue(valueString: string): void;
2436
- updateCustomValue(): void;
2437
2475
  render(): JSX.Element;
2438
2476
  }
2439
2477