babylonjs-gui-editor 7.50.0 → 7.51.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.
- package/babylon.guiEditor.d.ts +10 -9
- package/babylon.guiEditor.js +1 -1
- package/babylon.guiEditor.js.map +1 -1
- package/babylon.guiEditor.max.js +52390 -52381
- package/babylon.guiEditor.module.d.ts +21 -18
- package/package.json +3 -3
package/babylon.guiEditor.d.ts
CHANGED
|
@@ -2879,26 +2879,27 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
2879
2879
|
max?: number;
|
|
2880
2880
|
placeholder?: string;
|
|
2881
2881
|
unit?: React.ReactNode;
|
|
2882
|
-
validator?: (
|
|
2882
|
+
validator?: (input: string) => boolean;
|
|
2883
|
+
onValidateChangeFailed?: (invalidInput: string) => void;
|
|
2883
2884
|
multilines?: boolean;
|
|
2884
2885
|
throttlePropertyChangedNotification?: boolean;
|
|
2885
2886
|
throttlePropertyChangedNotificationDelay?: number;
|
|
2886
2887
|
disabled?: boolean;
|
|
2887
2888
|
}
|
|
2888
|
-
|
|
2889
|
-
|
|
2889
|
+
interface ITextInputLineComponentState {
|
|
2890
|
+
input: string;
|
|
2890
2891
|
dragging: boolean;
|
|
2891
|
-
|
|
2892
|
+
inputValid: boolean;
|
|
2893
|
+
}
|
|
2894
|
+
export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, ITextInputLineComponentState> {
|
|
2892
2895
|
private _localChange;
|
|
2893
2896
|
constructor(props: ITextInputLineComponentProps);
|
|
2894
2897
|
componentWillUnmount(): void;
|
|
2895
|
-
shouldComponentUpdate(nextProps: ITextInputLineComponentProps, nextState:
|
|
2896
|
-
value: string;
|
|
2897
|
-
dragging: boolean;
|
|
2898
|
-
}): boolean;
|
|
2898
|
+
shouldComponentUpdate(nextProps: ITextInputLineComponentProps, nextState: ITextInputLineComponentState): boolean;
|
|
2899
2899
|
raiseOnPropertyChanged(newValue: string, previousValue: string): void;
|
|
2900
2900
|
getCurrentNumericValue(value: string): number;
|
|
2901
|
-
|
|
2901
|
+
updateInput(input: string): void;
|
|
2902
|
+
updateValue(adjustedInput?: string, updateState?: boolean): void;
|
|
2902
2903
|
incrementValue(amount: number): void;
|
|
2903
2904
|
onKeyDown(event: React.KeyboardEvent): void;
|
|
2904
2905
|
render(): import("react/jsx-runtime").JSX.Element;
|