babylonjs-node-geometry-editor 7.51.0 → 7.51.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.
@@ -915,6 +915,7 @@ export class PreviewManager {
915
915
  private _matVertexColor;
916
916
  private _matNormals;
917
917
  private _axis;
918
+ private _toDelete;
918
919
  constructor(targetCanvas: HTMLCanvasElement, globalState: GlobalState);
919
920
  private _updateStandardMaterial;
920
921
  private _handleAnimations;
@@ -2603,32 +2604,30 @@ export interface ITextInputLineComponentProps {
2603
2604
  max?: number;
2604
2605
  placeholder?: string;
2605
2606
  unit?: React.ReactNode;
2606
- validator?: (input: string) => boolean;
2607
- onValidateChangeFailed?: (invalidInput: string) => void;
2607
+ validator?: (value: string) => boolean;
2608
2608
  multilines?: boolean;
2609
2609
  throttlePropertyChangedNotification?: boolean;
2610
2610
  throttlePropertyChangedNotificationDelay?: number;
2611
2611
  disabled?: boolean;
2612
2612
  }
2613
- interface ITextInputLineComponentState {
2614
- input: string;
2613
+ export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, {
2614
+ value: string;
2615
2615
  dragging: boolean;
2616
- inputValid: boolean;
2617
- }
2618
- export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, ITextInputLineComponentState> {
2616
+ }> {
2619
2617
  private _localChange;
2620
2618
  constructor(props: ITextInputLineComponentProps);
2621
2619
  componentWillUnmount(): void;
2622
- shouldComponentUpdate(nextProps: ITextInputLineComponentProps, nextState: ITextInputLineComponentState): boolean;
2620
+ shouldComponentUpdate(nextProps: ITextInputLineComponentProps, nextState: {
2621
+ value: string;
2622
+ dragging: boolean;
2623
+ }): boolean;
2623
2624
  raiseOnPropertyChanged(newValue: string, previousValue: string): void;
2624
2625
  getCurrentNumericValue(value: string): number;
2625
- updateInput(input: string): void;
2626
- updateValue(adjustedInput?: string, updateState?: boolean): void;
2626
+ updateValue(value: string, valueToValidate?: string): void;
2627
2627
  incrementValue(amount: number): void;
2628
2628
  onKeyDown(event: React.KeyboardEvent): void;
2629
2629
 
2630
2630
  }
2631
- export {};
2632
2631
 
2633
2632
  }
2634
2633
  declare module "babylonjs-node-geometry-editor/lines/targetsProxy" {
@@ -5065,6 +5064,7 @@ declare module BABYLON.NodeGeometryEditor {
5065
5064
  private _matVertexColor;
5066
5065
  private _matNormals;
5067
5066
  private _axis;
5067
+ private _toDelete;
5068
5068
  constructor(targetCanvas: HTMLCanvasElement, globalState: GlobalState);
5069
5069
  private _updateStandardMaterial;
5070
5070
  private _handleAnimations;
@@ -6842,27 +6842,26 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
6842
6842
  max?: number;
6843
6843
  placeholder?: string;
6844
6844
  unit?: React.ReactNode;
6845
- validator?: (input: string) => boolean;
6846
- onValidateChangeFailed?: (invalidInput: string) => void;
6845
+ validator?: (value: string) => boolean;
6847
6846
  multilines?: boolean;
6848
6847
  throttlePropertyChangedNotification?: boolean;
6849
6848
  throttlePropertyChangedNotificationDelay?: number;
6850
6849
  disabled?: boolean;
6851
6850
  }
6852
- interface ITextInputLineComponentState {
6853
- input: string;
6851
+ export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, {
6852
+ value: string;
6854
6853
  dragging: boolean;
6855
- inputValid: boolean;
6856
- }
6857
- export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, ITextInputLineComponentState> {
6854
+ }> {
6858
6855
  private _localChange;
6859
6856
  constructor(props: ITextInputLineComponentProps);
6860
6857
  componentWillUnmount(): void;
6861
- shouldComponentUpdate(nextProps: ITextInputLineComponentProps, nextState: ITextInputLineComponentState): boolean;
6858
+ shouldComponentUpdate(nextProps: ITextInputLineComponentProps, nextState: {
6859
+ value: string;
6860
+ dragging: boolean;
6861
+ }): boolean;
6862
6862
  raiseOnPropertyChanged(newValue: string, previousValue: string): void;
6863
6863
  getCurrentNumericValue(value: string): number;
6864
- updateInput(input: string): void;
6865
- updateValue(adjustedInput?: string, updateState?: boolean): void;
6864
+ updateValue(value: string, valueToValidate?: string): void;
6866
6865
  incrementValue(amount: number): void;
6867
6866
  onKeyDown(event: React.KeyboardEvent): void;
6868
6867
  render(): import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-node-geometry-editor",
3
- "version": "7.51.0",
3
+ "version": "7.51.1",
4
4
  "main": "babylon.nodeGeometryEditor.js",
5
5
  "types": "babylon.nodeGeometryEditor.module.d.ts",
6
6
  "files": [
@@ -14,7 +14,7 @@
14
14
  "clean": "rimraf dist && rimraf babylon*.* -g"
15
15
  },
16
16
  "dependencies": {
17
- "babylonjs": "^7.51.0"
17
+ "babylonjs": "^7.51.1"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@dev/build-tools": "1.0.0",