@babylonjs/node-editor 5.0.0-beta.6 → 5.0.0-beta.7
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.
|
@@ -2158,6 +2158,20 @@ declare module "@babylonjs/node-editor/sharedUiComponents/lines/buttonLineCompon
|
|
|
2158
2158
|
render(): JSX.Element;
|
|
2159
2159
|
}
|
|
2160
2160
|
}
|
|
2161
|
+
declare module "@babylonjs/node-editor/sharedUiComponents/lines/targetsProxy" {
|
|
2162
|
+
import { PropertyChangedEvent } from "@babylonjs/node-editor/sharedUiComponents/propertyChangedEvent";
|
|
2163
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
|
2164
|
+
export const conflictingValuesPlaceholder = "\u2014";
|
|
2165
|
+
/**
|
|
2166
|
+
*
|
|
2167
|
+
* @param propertyName the property that the input changes
|
|
2168
|
+
* @param targets a list of selected targets
|
|
2169
|
+
* @param defaultValue the value that should be returned when two targets have conflicting values
|
|
2170
|
+
* @param setter an optional setter function to override the default setter behavior
|
|
2171
|
+
* @returns a proxy object that can be passed as a target into the input
|
|
2172
|
+
*/
|
|
2173
|
+
export function makeTargetsProxy(targets: any[], onPropertyChangedObservable?: Observable<PropertyChangedEvent>): {};
|
|
2174
|
+
}
|
|
2161
2175
|
declare module "@babylonjs/node-editor/sharedUiComponents/lines/checkBoxLineComponent" {
|
|
2162
2176
|
import * as React from "react";
|
|
2163
2177
|
import { Observable } from "@babylonjs/core/Misc/observable";
|
|
@@ -2179,6 +2193,7 @@ declare module "@babylonjs/node-editor/sharedUiComponents/lines/checkBoxLineComp
|
|
|
2179
2193
|
export class CheckBoxLineComponent extends React.Component<ICheckBoxLineComponentProps, {
|
|
2180
2194
|
isSelected: boolean;
|
|
2181
2195
|
isDisabled?: boolean;
|
|
2196
|
+
isConflict: boolean;
|
|
2182
2197
|
}> {
|
|
2183
2198
|
private static _UniqueIdSeed;
|
|
2184
2199
|
private _uniqueId;
|
|
@@ -2187,11 +2202,23 @@ declare module "@babylonjs/node-editor/sharedUiComponents/lines/checkBoxLineComp
|
|
|
2187
2202
|
shouldComponentUpdate(nextProps: ICheckBoxLineComponentProps, nextState: {
|
|
2188
2203
|
isSelected: boolean;
|
|
2189
2204
|
isDisabled: boolean;
|
|
2205
|
+
isConflict: boolean;
|
|
2190
2206
|
}): boolean;
|
|
2191
2207
|
onChange(): void;
|
|
2192
2208
|
render(): JSX.Element;
|
|
2193
2209
|
}
|
|
2194
2210
|
}
|
|
2211
|
+
declare module "@babylonjs/node-editor/sharedUiComponents/tabs/propertyGrids/lockObject" {
|
|
2212
|
+
/**
|
|
2213
|
+
* Class used to provide lock mechanism
|
|
2214
|
+
*/
|
|
2215
|
+
export class LockObject {
|
|
2216
|
+
/**
|
|
2217
|
+
* Gets or set if the lock is engaged
|
|
2218
|
+
*/
|
|
2219
|
+
lock: boolean;
|
|
2220
|
+
}
|
|
2221
|
+
}
|
|
2195
2222
|
declare module "@babylonjs/node-editor/sharedUiComponents/lines/numericInputComponent" {
|
|
2196
2223
|
import * as React from "react";
|
|
2197
2224
|
interface INumericInputComponentProps {
|
|
@@ -2241,22 +2268,14 @@ declare module "@babylonjs/node-editor/sharedUiComponents/lines/colorPickerCompo
|
|
|
2241
2268
|
constructor(props: IColorPickerComponentProps);
|
|
2242
2269
|
syncPositions(): void;
|
|
2243
2270
|
shouldComponentUpdate(nextProps: IColorPickerComponentProps, nextState: IColorPickerComponentState): boolean;
|
|
2271
|
+
getHexString(props?: Readonly<IColorPickerComponentProps> & Readonly<{
|
|
2272
|
+
children?: React.ReactNode;
|
|
2273
|
+
}>): string;
|
|
2244
2274
|
componentDidUpdate(): void;
|
|
2245
2275
|
componentDidMount(): void;
|
|
2246
2276
|
render(): JSX.Element;
|
|
2247
2277
|
}
|
|
2248
2278
|
}
|
|
2249
|
-
declare module "@babylonjs/node-editor/sharedUiComponents/tabs/propertyGrids/lockObject" {
|
|
2250
|
-
/**
|
|
2251
|
-
* Class used to provide lock mechanism
|
|
2252
|
-
*/
|
|
2253
|
-
export class LockObject {
|
|
2254
|
-
/**
|
|
2255
|
-
* Gets or set if the lock is engaged
|
|
2256
|
-
*/
|
|
2257
|
-
lock: boolean;
|
|
2258
|
-
}
|
|
2259
|
-
}
|
|
2260
2279
|
declare module "@babylonjs/node-editor/sharedUiComponents/lines/textInputLineComponent" {
|
|
2261
2280
|
import * as React from "react";
|
|
2262
2281
|
import { Observable } from "@babylonjs/core/Misc/observable";
|
|
@@ -2290,83 +2309,91 @@ declare module "@babylonjs/node-editor/sharedUiComponents/lines/textInputLineCom
|
|
|
2290
2309
|
render(): JSX.Element;
|
|
2291
2310
|
}
|
|
2292
2311
|
}
|
|
2293
|
-
declare module "@babylonjs/node-editor/sharedUiComponents/lines/
|
|
2312
|
+
declare module "@babylonjs/node-editor/sharedUiComponents/lines/colorLineComponent" {
|
|
2294
2313
|
import * as React from "react";
|
|
2295
2314
|
import { Observable } from "@babylonjs/core/Misc/observable";
|
|
2315
|
+
import { Color4 } from "@babylonjs/core/Maths/math.color";
|
|
2296
2316
|
import { PropertyChangedEvent } from "@babylonjs/node-editor/sharedUiComponents/propertyChangedEvent";
|
|
2297
|
-
import { Color3, Color4 } from "@babylonjs/core/Maths/math.color";
|
|
2298
2317
|
import { LockObject } from "@babylonjs/node-editor/sharedUiComponents/tabs/propertyGrids/lockObject";
|
|
2299
|
-
export interface
|
|
2318
|
+
export interface IColorLineComponentProps {
|
|
2300
2319
|
label: string;
|
|
2301
|
-
target
|
|
2320
|
+
target?: any;
|
|
2302
2321
|
propertyName: string;
|
|
2303
2322
|
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
2323
|
+
onChange?: () => void;
|
|
2304
2324
|
isLinear?: boolean;
|
|
2305
2325
|
icon?: string;
|
|
2306
|
-
lockObject?: LockObject;
|
|
2307
2326
|
iconLabel?: string;
|
|
2308
|
-
|
|
2327
|
+
lockObject?: LockObject;
|
|
2328
|
+
disableAlpha?: boolean;
|
|
2309
2329
|
}
|
|
2310
|
-
|
|
2330
|
+
interface IColorLineComponentState {
|
|
2311
2331
|
isExpanded: boolean;
|
|
2312
|
-
color:
|
|
2313
|
-
|
|
2314
|
-
}
|
|
2315
|
-
|
|
2316
|
-
constructor(props:
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2332
|
+
color: Color4;
|
|
2333
|
+
colorString: string;
|
|
2334
|
+
}
|
|
2335
|
+
export class ColorLineComponent extends React.Component<IColorLineComponentProps, IColorLineComponentState> {
|
|
2336
|
+
constructor(props: IColorLineComponentProps);
|
|
2337
|
+
shouldComponentUpdate(nextProps: IColorLineComponentProps, nextState: IColorLineComponentState): boolean;
|
|
2338
|
+
getValue(props?: Readonly<IColorLineComponentProps> & Readonly<{
|
|
2339
|
+
children?: React.ReactNode;
|
|
2340
|
+
}>): Color4;
|
|
2341
|
+
getValueAsString(props?: Readonly<IColorLineComponentProps> & Readonly<{
|
|
2342
|
+
children?: React.ReactNode;
|
|
2343
|
+
}>): string;
|
|
2344
|
+
setColorFromString(colorString: string): void;
|
|
2345
|
+
setColor(color: Color4): void;
|
|
2346
|
+
updateColor(newColor: Color4): void;
|
|
2324
2347
|
switchExpandState(): void;
|
|
2325
|
-
raiseOnPropertyChanged(previousValue: Color3 | Color4): void;
|
|
2326
2348
|
updateStateR(value: number): void;
|
|
2327
2349
|
updateStateG(value: number): void;
|
|
2328
2350
|
updateStateB(value: number): void;
|
|
2351
|
+
updateStateA(value: number): void;
|
|
2329
2352
|
copyToClipboard(): void;
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
private
|
|
2333
|
-
private
|
|
2353
|
+
get colorString(): string;
|
|
2354
|
+
set colorString(_: string);
|
|
2355
|
+
private convertToColor;
|
|
2356
|
+
private toColor3;
|
|
2357
|
+
render(): JSX.Element;
|
|
2358
|
+
}
|
|
2359
|
+
}
|
|
2360
|
+
declare module "@babylonjs/node-editor/sharedUiComponents/lines/color3LineComponent" {
|
|
2361
|
+
import * as React from "react";
|
|
2362
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
|
2363
|
+
import { PropertyChangedEvent } from "@babylonjs/node-editor/sharedUiComponents/propertyChangedEvent";
|
|
2364
|
+
import { LockObject } from "@babylonjs/node-editor/sharedUiComponents/tabs/propertyGrids/lockObject";
|
|
2365
|
+
export interface IColor3LineComponentProps {
|
|
2366
|
+
label: string;
|
|
2367
|
+
target: any;
|
|
2368
|
+
propertyName: string;
|
|
2369
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
2370
|
+
isLinear?: boolean;
|
|
2371
|
+
icon?: string;
|
|
2372
|
+
lockObject?: LockObject;
|
|
2373
|
+
iconLabel?: string;
|
|
2374
|
+
onValueChange?: (value: string) => void;
|
|
2375
|
+
}
|
|
2376
|
+
export class Color3LineComponent extends React.Component<IColor3LineComponentProps> {
|
|
2334
2377
|
render(): JSX.Element;
|
|
2335
2378
|
}
|
|
2336
2379
|
}
|
|
2337
2380
|
declare module "@babylonjs/node-editor/sharedUiComponents/lines/color4LineComponent" {
|
|
2338
2381
|
import * as React from "react";
|
|
2339
2382
|
import { Observable } from "@babylonjs/core/Misc/observable";
|
|
2340
|
-
import { Color4 } from "@babylonjs/core/Maths/math.color";
|
|
2341
2383
|
import { PropertyChangedEvent } from "@babylonjs/node-editor/sharedUiComponents/propertyChangedEvent";
|
|
2384
|
+
import { LockObject } from "@babylonjs/node-editor/sharedUiComponents/tabs/propertyGrids/lockObject";
|
|
2342
2385
|
export interface IColor4LineComponentProps {
|
|
2343
2386
|
label: string;
|
|
2344
|
-
target
|
|
2387
|
+
target?: any;
|
|
2345
2388
|
propertyName: string;
|
|
2346
2389
|
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
2347
2390
|
onChange?: () => void;
|
|
2348
2391
|
isLinear?: boolean;
|
|
2349
2392
|
icon?: string;
|
|
2350
2393
|
iconLabel?: string;
|
|
2394
|
+
lockObject?: LockObject;
|
|
2351
2395
|
}
|
|
2352
|
-
export class Color4LineComponent extends React.Component<IColor4LineComponentProps
|
|
2353
|
-
isExpanded: boolean;
|
|
2354
|
-
color: Color4;
|
|
2355
|
-
}> {
|
|
2356
|
-
private _localChange;
|
|
2357
|
-
constructor(props: IColor4LineComponentProps);
|
|
2358
|
-
shouldComponentUpdate(nextProps: IColor4LineComponentProps, nextState: {
|
|
2359
|
-
color: Color4;
|
|
2360
|
-
}): boolean;
|
|
2361
|
-
setPropertyValue(newColor: Color4): void;
|
|
2362
|
-
onChange(newValue: string): void;
|
|
2363
|
-
switchExpandState(): void;
|
|
2364
|
-
raiseOnPropertyChanged(previousValue: Color4): void;
|
|
2365
|
-
updateStateR(value: number): void;
|
|
2366
|
-
updateStateG(value: number): void;
|
|
2367
|
-
updateStateB(value: number): void;
|
|
2368
|
-
updateStateA(value: number): void;
|
|
2369
|
-
copyToClipboard(): void;
|
|
2396
|
+
export class Color4LineComponent extends React.Component<IColor4LineComponentProps> {
|
|
2370
2397
|
render(): JSX.Element;
|
|
2371
2398
|
}
|
|
2372
2399
|
}
|
|
@@ -2486,6 +2513,7 @@ declare module "@babylonjs/node-editor/sharedUiComponents/lines/floatLineCompone
|
|
|
2486
2513
|
private _store;
|
|
2487
2514
|
constructor(props: IFloatLineComponentProps);
|
|
2488
2515
|
componentWillUnmount(): void;
|
|
2516
|
+
getValueString(value: any): string;
|
|
2489
2517
|
shouldComponentUpdate(nextProps: IFloatLineComponentProps, nextState: {
|
|
2490
2518
|
value: string;
|
|
2491
2519
|
}): boolean;
|
|
@@ -2841,14 +2869,15 @@ declare module "@babylonjs/node-editor/sharedUiComponents/tabs/propertyGrids/gui
|
|
|
2841
2869
|
import { Control } from "@babylonjs/gui/2D/controls/control";
|
|
2842
2870
|
import { LockObject } from "@babylonjs/node-editor/sharedUiComponents/tabs/propertyGrids/lockObject";
|
|
2843
2871
|
interface ICommonControlPropertyGridComponentProps {
|
|
2844
|
-
|
|
2872
|
+
controls?: Control[];
|
|
2873
|
+
control?: Control;
|
|
2845
2874
|
lockObject: LockObject;
|
|
2846
2875
|
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
2847
2876
|
}
|
|
2848
2877
|
export class CommonControlPropertyGridComponent extends React.Component<ICommonControlPropertyGridComponentProps> {
|
|
2849
2878
|
constructor(props: ICommonControlPropertyGridComponentProps);
|
|
2850
|
-
renderGridInformation(): JSX.Element | null;
|
|
2851
|
-
render(): JSX.Element;
|
|
2879
|
+
renderGridInformation(control: Control): JSX.Element | null;
|
|
2880
|
+
render(): JSX.Element | undefined;
|
|
2852
2881
|
}
|
|
2853
2882
|
}
|
|
2854
2883
|
declare module "@babylonjs/node-editor/sharedUiComponents/tabs/propertyGrids/gui/checkboxPropertyGridComponent" {
|
|
@@ -3005,7 +3034,7 @@ declare module "@babylonjs/node-editor/sharedUiComponents/tabs/propertyGrids/gui
|
|
|
3005
3034
|
import { LockObject } from "@babylonjs/node-editor/sharedUiComponents/tabs/propertyGrids/lockObject";
|
|
3006
3035
|
import { RadioButton } from "@babylonjs/gui/2D/controls/radioButton";
|
|
3007
3036
|
interface IRadioButtonPropertyGridComponentProps {
|
|
3008
|
-
|
|
3037
|
+
radioButtons: RadioButton[];
|
|
3009
3038
|
lockObject: LockObject;
|
|
3010
3039
|
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
|
3011
3040
|
}
|
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-beta.
|
|
7
|
+
"version": "5.0.0-beta.7",
|
|
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-beta.
|
|
14
|
+
"@babylonjs/core": "5.0.0-beta.7",
|
|
15
15
|
"tslib": "^2.3.1"
|
|
16
16
|
},
|
|
17
17
|
"files": [
|