@babylonjs/node-editor 5.0.0-rc.3 → 5.0.0-rc.4
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.nodeEditor.max.js +53 -140
- package/babylon.nodeEditor.max.js.map +1 -1
- package/babylon.nodeEditor.module.d.ts +10 -29
- package/package.json +2 -2
|
@@ -821,21 +821,16 @@ declare module "@babylonjs/node-editor/sharedComponents/color3LineComponent" {
|
|
|
821
821
|
onChange?: () => void;
|
|
822
822
|
globalState: GlobalState;
|
|
823
823
|
}
|
|
824
|
-
|
|
824
|
+
interface IColor3LineComponentState {
|
|
825
825
|
isExpanded: boolean;
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
private _localChange;
|
|
826
|
+
}
|
|
827
|
+
export class Color3LineComponent extends React.Component<IColor3LineComponentProps, IColor3LineComponentState> {
|
|
829
828
|
constructor(props: IColor3LineComponentProps);
|
|
830
|
-
shouldComponentUpdate(nextProps: IColor3LineComponentProps, nextState: {
|
|
831
|
-
color: Color3 | Color4;
|
|
832
|
-
}): boolean;
|
|
833
829
|
onChange(newValue: string): void;
|
|
834
830
|
switchExpandState(): void;
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
updateStateB(value: number): void;
|
|
831
|
+
updateColor(newValue: Color3 | Color4): void;
|
|
832
|
+
modifyColor(modifier: (previous: Color3 | Color4) => void): void;
|
|
833
|
+
getCurrentColor(): Color3 | Color4;
|
|
839
834
|
copyToClipboard(): void;
|
|
840
835
|
render(): JSX.Element;
|
|
841
836
|
}
|
|
@@ -1173,20 +1168,13 @@ declare module "@babylonjs/node-editor/sharedComponents/color4LineComponent" {
|
|
|
1173
1168
|
}
|
|
1174
1169
|
export class Color4LineComponent extends React.Component<IColor4LineComponentProps, {
|
|
1175
1170
|
isExpanded: boolean;
|
|
1176
|
-
color: Color4;
|
|
1177
1171
|
}> {
|
|
1178
|
-
private _localChange;
|
|
1179
1172
|
constructor(props: IColor4LineComponentProps);
|
|
1180
|
-
shouldComponentUpdate(nextProps: IColor4LineComponentProps, nextState: {
|
|
1181
|
-
color: Color4;
|
|
1182
|
-
}): boolean;
|
|
1183
1173
|
onChange(newValue: string): void;
|
|
1184
1174
|
switchExpandState(): void;
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
updateStateB(value: number): void;
|
|
1189
|
-
updateStateA(value: number): void;
|
|
1175
|
+
updateColor(newValue: Color4): void;
|
|
1176
|
+
modifyColor(modifier: (previous: Color4) => void): void;
|
|
1177
|
+
getCurrentColor(): Color4;
|
|
1190
1178
|
copyToClipboard(): void;
|
|
1191
1179
|
render(): JSX.Element;
|
|
1192
1180
|
}
|
|
@@ -2366,7 +2354,6 @@ declare module "@babylonjs/node-editor/sharedUiComponents/lines/colorLineCompone
|
|
|
2366
2354
|
interface IColorLineComponentState {
|
|
2367
2355
|
isExpanded: boolean;
|
|
2368
2356
|
color: Color4;
|
|
2369
|
-
colorString: string;
|
|
2370
2357
|
}
|
|
2371
2358
|
export class ColorLineComponent extends React.Component<IColorLineComponentProps, IColorLineComponentState> {
|
|
2372
2359
|
constructor(props: IColorLineComponentProps);
|
|
@@ -2374,20 +2361,14 @@ declare module "@babylonjs/node-editor/sharedUiComponents/lines/colorLineCompone
|
|
|
2374
2361
|
getValue(props?: Readonly<IColorLineComponentProps> & Readonly<{
|
|
2375
2362
|
children?: React.ReactNode;
|
|
2376
2363
|
}>): Color4;
|
|
2377
|
-
getValueAsString(props?: Readonly<IColorLineComponentProps> & Readonly<{
|
|
2378
|
-
children?: React.ReactNode;
|
|
2379
|
-
}>): string;
|
|
2380
2364
|
setColorFromString(colorString: string): void;
|
|
2381
|
-
setColor(
|
|
2382
|
-
updateColor(newColor: Color4): void;
|
|
2365
|
+
setColor(newColor: Color4): void;
|
|
2383
2366
|
switchExpandState(): void;
|
|
2384
2367
|
updateStateR(value: number): void;
|
|
2385
2368
|
updateStateG(value: number): void;
|
|
2386
2369
|
updateStateB(value: number): void;
|
|
2387
2370
|
updateStateA(value: number): void;
|
|
2388
2371
|
copyToClipboard(): void;
|
|
2389
|
-
get colorString(): string;
|
|
2390
|
-
set colorString(_: string);
|
|
2391
2372
|
private convertToColor;
|
|
2392
2373
|
private toColor3;
|
|
2393
2374
|
render(): JSX.Element;
|
package/package.json
CHANGED
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
},
|
|
5
5
|
"name": "@babylonjs/node-editor",
|
|
6
6
|
"description": "The Babylon.js node material editor.",
|
|
7
|
-
"version": "5.0.0-rc.
|
|
7
|
+
"version": "5.0.0-rc.4",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
10
|
"url": "https://github.com/BabylonJS/Babylon.js.git"
|
|
11
11
|
},
|
|
12
12
|
"license": "Apache-2.0",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@babylonjs/core": "5.0.0-rc.
|
|
14
|
+
"@babylonjs/core": "5.0.0-rc.4",
|
|
15
15
|
"tslib": "^2.3.1"
|
|
16
16
|
},
|
|
17
17
|
"files": [
|