babylonjs-node-render-graph-editor 7.39.0 → 7.40.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.
|
@@ -2495,30 +2495,32 @@ export interface ITextInputLineComponentProps {
|
|
|
2495
2495
|
max?: number;
|
|
2496
2496
|
placeholder?: string;
|
|
2497
2497
|
unit?: React.ReactNode;
|
|
2498
|
-
validator?: (
|
|
2498
|
+
validator?: (input: string) => boolean;
|
|
2499
|
+
onValidateChangeFailed?: (invalidInput: string) => void;
|
|
2499
2500
|
multilines?: boolean;
|
|
2500
2501
|
throttlePropertyChangedNotification?: boolean;
|
|
2501
2502
|
throttlePropertyChangedNotificationDelay?: number;
|
|
2502
2503
|
disabled?: boolean;
|
|
2503
2504
|
}
|
|
2504
|
-
|
|
2505
|
-
|
|
2505
|
+
interface ITextInputLineComponentState {
|
|
2506
|
+
input: string;
|
|
2506
2507
|
dragging: boolean;
|
|
2507
|
-
|
|
2508
|
+
inputValid: boolean;
|
|
2509
|
+
}
|
|
2510
|
+
export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, ITextInputLineComponentState> {
|
|
2508
2511
|
private _localChange;
|
|
2509
2512
|
constructor(props: ITextInputLineComponentProps);
|
|
2510
2513
|
componentWillUnmount(): void;
|
|
2511
|
-
shouldComponentUpdate(nextProps: ITextInputLineComponentProps, nextState:
|
|
2512
|
-
value: string;
|
|
2513
|
-
dragging: boolean;
|
|
2514
|
-
}): boolean;
|
|
2514
|
+
shouldComponentUpdate(nextProps: ITextInputLineComponentProps, nextState: ITextInputLineComponentState): boolean;
|
|
2515
2515
|
raiseOnPropertyChanged(newValue: string, previousValue: string): void;
|
|
2516
2516
|
getCurrentNumericValue(value: string): number;
|
|
2517
|
-
|
|
2517
|
+
updateInput(input: string): void;
|
|
2518
|
+
updateValue(adjustedInput?: string, updateState?: boolean): void;
|
|
2518
2519
|
incrementValue(amount: number): void;
|
|
2519
2520
|
onKeyDown(event: React.KeyboardEvent): void;
|
|
2520
2521
|
|
|
2521
2522
|
}
|
|
2523
|
+
export {};
|
|
2522
2524
|
|
|
2523
2525
|
}
|
|
2524
2526
|
declare module "babylonjs-node-render-graph-editor/lines/targetsProxy" {
|
|
@@ -6708,26 +6710,27 @@ declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
|
6708
6710
|
max?: number;
|
|
6709
6711
|
placeholder?: string;
|
|
6710
6712
|
unit?: React.ReactNode;
|
|
6711
|
-
validator?: (
|
|
6713
|
+
validator?: (input: string) => boolean;
|
|
6714
|
+
onValidateChangeFailed?: (invalidInput: string) => void;
|
|
6712
6715
|
multilines?: boolean;
|
|
6713
6716
|
throttlePropertyChangedNotification?: boolean;
|
|
6714
6717
|
throttlePropertyChangedNotificationDelay?: number;
|
|
6715
6718
|
disabled?: boolean;
|
|
6716
6719
|
}
|
|
6717
|
-
|
|
6718
|
-
|
|
6720
|
+
interface ITextInputLineComponentState {
|
|
6721
|
+
input: string;
|
|
6719
6722
|
dragging: boolean;
|
|
6720
|
-
|
|
6723
|
+
inputValid: boolean;
|
|
6724
|
+
}
|
|
6725
|
+
export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, ITextInputLineComponentState> {
|
|
6721
6726
|
private _localChange;
|
|
6722
6727
|
constructor(props: ITextInputLineComponentProps);
|
|
6723
6728
|
componentWillUnmount(): void;
|
|
6724
|
-
shouldComponentUpdate(nextProps: ITextInputLineComponentProps, nextState:
|
|
6725
|
-
value: string;
|
|
6726
|
-
dragging: boolean;
|
|
6727
|
-
}): boolean;
|
|
6729
|
+
shouldComponentUpdate(nextProps: ITextInputLineComponentProps, nextState: ITextInputLineComponentState): boolean;
|
|
6728
6730
|
raiseOnPropertyChanged(newValue: string, previousValue: string): void;
|
|
6729
6731
|
getCurrentNumericValue(value: string): number;
|
|
6730
|
-
|
|
6732
|
+
updateInput(input: string): void;
|
|
6733
|
+
updateValue(adjustedInput?: string, updateState?: boolean): void;
|
|
6731
6734
|
incrementValue(amount: number): void;
|
|
6732
6735
|
onKeyDown(event: React.KeyboardEvent): void;
|
|
6733
6736
|
render(): import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-node-render-graph-editor",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.40.0",
|
|
4
4
|
"main": "babylon.nodeRenderGraphEditor.js",
|
|
5
5
|
"types": "babylon.nodeRenderGraphEditor.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.
|
|
17
|
+
"babylonjs": "^7.51.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@dev/build-tools": "1.0.0",
|