@babylonjs/node-geometry-editor 7.51.0 → 7.51.2

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" {
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.2",
4
4
  "main": "dist/babylon.nodeGeometryEditor.max.js",
5
5
  "module": "dist/babylon.nodeGeometryEditor.max.js",
6
6
  "esnext": "dist/babylon.nodeGeometryEditor.max.js",
@@ -23,7 +23,7 @@
23
23
  "@types/react-dom": ">=16.0.9"
24
24
  },
25
25
  "devDependencies": {
26
- "@babylonjs/core": "^7.51.0",
26
+ "@babylonjs/core": "^7.51.2",
27
27
  "react": "^17.0.2",
28
28
  "react-dom": "^17.0.2"
29
29
  },