@babylonjs/node-editor 5.24.0 → 5.25.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.
@@ -1969,9 +1969,14 @@ export interface IOptionsLineComponentProps {
1969
1969
  target: any;
1970
1970
  propertyName: string;
1971
1971
  options: IInspectableOptions[];
1972
+ addInput?: boolean;
1972
1973
  noDirectUpdate?: boolean;
1973
1974
  onSelect?: (value: number | string) => void;
1974
1975
  extractValue?: (target: any) => number | string;
1976
+ addVal?: (newVal: {
1977
+ label: string;
1978
+ value: number;
1979
+ }, prevVal: number) => void;
1975
1980
  onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
1976
1981
  allowNullValue?: boolean;
1977
1982
  icon?: string;
@@ -1979,9 +1984,12 @@ export interface IOptionsLineComponentProps {
1979
1984
  className?: string;
1980
1985
  valuesAreStrings?: boolean;
1981
1986
  defaultIfNull?: number;
1987
+ fromFontDropdown?: boolean;
1988
+ valueProp?: number;
1982
1989
  }
1983
1990
  export class OptionsLineComponent extends React.Component<IOptionsLineComponentProps, {
1984
1991
  value: number | string;
1992
+ addCustom: boolean;
1985
1993
  }> {
1986
1994
  private _localChange;
1987
1995
  private _remapValueIn;
@@ -1990,10 +1998,12 @@ export class OptionsLineComponent extends React.Component<IOptionsLineComponentP
1990
1998
  constructor(props: IOptionsLineComponentProps);
1991
1999
  shouldComponentUpdate(nextProps: IOptionsLineComponentProps, nextState: {
1992
2000
  value: number;
2001
+ addCustom: boolean;
1993
2002
  }): boolean;
1994
2003
  raiseOnPropertyChanged(newValue: number, previousValue: number): void;
1995
2004
  setValue(value: string | number): void;
1996
2005
  updateValue(valueString: string): void;
2006
+ updateCustomValue(): void;
1997
2007
  render(): JSX.Element;
1998
2008
  }
1999
2009
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs/node-editor",
3
- "version": "5.24.0",
3
+ "version": "5.25.0",
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": "^5.24.0",
26
+ "@babylonjs/core": "^5.25.0",
27
27
  "react": "^17.0.2",
28
28
  "react-dom": "^17.0.2",
29
29
  "rimraf": "^3.0.2",