babylonjs-node-editor 5.26.0 → 5.27.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.nodeEditor.d.ts +217 -114
- package/babylon.nodeEditor.js.map +1 -1
- package/babylon.nodeEditor.max.js.map +1 -1
- package/babylon.nodeEditor.module.d.ts +434 -211
- package/package.json +2 -2
package/babylon.nodeEditor.d.ts
CHANGED
|
@@ -394,7 +394,7 @@ declare module BABYLON.NodeEditor {
|
|
|
394
394
|
get connectedPort(): BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.IPortData>;
|
|
395
395
|
set connectedPort(value: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.IPortData>);
|
|
396
396
|
get direction(): BABYLON.NodeEditor.SharedUIComponents.PortDataDirection;
|
|
397
|
-
get ownerData():
|
|
397
|
+
get ownerData(): BABYLON.NodeMaterialBlock;
|
|
398
398
|
get needDualDirectionValidation(): boolean;
|
|
399
399
|
get hasEndpoints(): boolean;
|
|
400
400
|
get endpoints(): BABYLON.NodeEditor.SharedUIComponents.IPortData[];
|
|
@@ -1027,6 +1027,9 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1027
1027
|
onPanButtonClicked?: () => void;
|
|
1028
1028
|
onZoomButtonClicked?: () => void;
|
|
1029
1029
|
onFitButtonClicked?: () => void;
|
|
1030
|
+
onArtboardColorChanged?: (newColor: string) => void;
|
|
1031
|
+
artboardColor?: string;
|
|
1032
|
+
artboardColorPickerColor?: string;
|
|
1030
1033
|
}
|
|
1031
1034
|
export var CommandBarComponent: React.FC<ICommandBarComponentProps>;
|
|
1032
1035
|
|
|
@@ -1110,6 +1113,104 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1110
1113
|
|
|
1111
1114
|
|
|
1112
1115
|
|
|
1116
|
+
}
|
|
1117
|
+
declare module BABYLON.NodeEditor {
|
|
1118
|
+
|
|
1119
|
+
}
|
|
1120
|
+
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
1121
|
+
export interface IColorComponentEntryProps {
|
|
1122
|
+
value: number;
|
|
1123
|
+
label: string;
|
|
1124
|
+
max?: number;
|
|
1125
|
+
min?: number;
|
|
1126
|
+
onChange: (value: number) => void;
|
|
1127
|
+
disabled?: boolean;
|
|
1128
|
+
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
1129
|
+
}
|
|
1130
|
+
export class ColorComponentEntry extends React.Component<IColorComponentEntryProps> {
|
|
1131
|
+
constructor(props: IColorComponentEntryProps);
|
|
1132
|
+
updateValue(valueString: string): void;
|
|
1133
|
+
lock(): void;
|
|
1134
|
+
unlock(): void;
|
|
1135
|
+
render(): JSX.Element;
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
|
|
1139
|
+
|
|
1140
|
+
}
|
|
1141
|
+
declare module BABYLON.NodeEditor {
|
|
1142
|
+
|
|
1143
|
+
}
|
|
1144
|
+
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
1145
|
+
/**
|
|
1146
|
+
* Interface used to specify creation options for color picker
|
|
1147
|
+
*/
|
|
1148
|
+
export interface IColorPickerProps {
|
|
1149
|
+
color: BABYLON.Color3 | BABYLON.Color4;
|
|
1150
|
+
linearhint?: boolean;
|
|
1151
|
+
debugMode?: boolean;
|
|
1152
|
+
onColorChanged?: (color: BABYLON.Color3 | BABYLON.Color4) => void;
|
|
1153
|
+
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
1154
|
+
backgroundColor?: string;
|
|
1155
|
+
}
|
|
1156
|
+
/**
|
|
1157
|
+
* Interface used to specify creation options for color picker
|
|
1158
|
+
*/
|
|
1159
|
+
export interface IColorPickerState {
|
|
1160
|
+
color: BABYLON.Color3;
|
|
1161
|
+
alpha: number;
|
|
1162
|
+
}
|
|
1163
|
+
/**
|
|
1164
|
+
* Class used to create a color picker
|
|
1165
|
+
*/
|
|
1166
|
+
export class ColorPicker extends React.Component<IColorPickerProps, IColorPickerState> {
|
|
1167
|
+
private _saturationRef;
|
|
1168
|
+
private _hueRef;
|
|
1169
|
+
private _isSaturationPointerDown;
|
|
1170
|
+
private _isHuePointerDown;
|
|
1171
|
+
constructor(props: IColorPickerProps);
|
|
1172
|
+
shouldComponentUpdate(nextProps: IColorPickerProps, nextState: IColorPickerState): boolean;
|
|
1173
|
+
onSaturationPointerDown(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
1174
|
+
onSaturationPointerUp(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
1175
|
+
onSaturationPointerMove(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
1176
|
+
onHuePointerDown(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
1177
|
+
onHuePointerUp(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
1178
|
+
onHuePointerMove(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
1179
|
+
private _evaluateSaturation;
|
|
1180
|
+
private _evaluateHue;
|
|
1181
|
+
componentDidUpdate(): void;
|
|
1182
|
+
raiseOnColorChanged(): void;
|
|
1183
|
+
render(): JSX.Element;
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
|
|
1187
|
+
|
|
1188
|
+
}
|
|
1189
|
+
declare module BABYLON.NodeEditor {
|
|
1190
|
+
|
|
1191
|
+
}
|
|
1192
|
+
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
1193
|
+
export interface IHexColorProps {
|
|
1194
|
+
value: string;
|
|
1195
|
+
expectedLength: number;
|
|
1196
|
+
onChange: (value: string) => void;
|
|
1197
|
+
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
1198
|
+
}
|
|
1199
|
+
export class HexColor extends React.Component<IHexColorProps, {
|
|
1200
|
+
hex: string;
|
|
1201
|
+
}> {
|
|
1202
|
+
constructor(props: IHexColorProps);
|
|
1203
|
+
shouldComponentUpdate(nextProps: IHexColorProps, nextState: {
|
|
1204
|
+
hex: string;
|
|
1205
|
+
}): boolean;
|
|
1206
|
+
lock(): void;
|
|
1207
|
+
unlock(): void;
|
|
1208
|
+
updateHexValue(valueString: string): void;
|
|
1209
|
+
render(): JSX.Element;
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
|
|
1213
|
+
|
|
1113
1214
|
}
|
|
1114
1215
|
declare module BABYLON.NodeEditor {
|
|
1115
1216
|
|
|
@@ -1138,6 +1239,85 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1138
1239
|
|
|
1139
1240
|
|
|
1140
1241
|
|
|
1242
|
+
}
|
|
1243
|
+
declare module BABYLON.NodeEditor {
|
|
1244
|
+
|
|
1245
|
+
}
|
|
1246
|
+
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
1247
|
+
export interface IColorLineComponentProps {
|
|
1248
|
+
label: string;
|
|
1249
|
+
target: any;
|
|
1250
|
+
propertyName: string;
|
|
1251
|
+
onPropertyChangedObservable: BABYLON.Observable<BABYLON.NodeEditor.SharedUIComponents.PropertyChangedEvent>;
|
|
1252
|
+
onChange?: () => void;
|
|
1253
|
+
isLinear?: boolean;
|
|
1254
|
+
icon?: string;
|
|
1255
|
+
iconLabel?: string;
|
|
1256
|
+
disableAlpha?: boolean;
|
|
1257
|
+
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
1258
|
+
}
|
|
1259
|
+
interface IColorLineComponentState {
|
|
1260
|
+
isExpanded: boolean;
|
|
1261
|
+
color: BABYLON.Color4;
|
|
1262
|
+
}
|
|
1263
|
+
export class ColorLineComponent extends React.Component<IColorLineComponentProps, IColorLineComponentState> {
|
|
1264
|
+
constructor(props: IColorLineComponentProps);
|
|
1265
|
+
shouldComponentUpdate(nextProps: IColorLineComponentProps, nextState: IColorLineComponentState): boolean;
|
|
1266
|
+
getValue(props?: Readonly<IColorLineComponentProps> & Readonly<{
|
|
1267
|
+
children?: React.ReactNode;
|
|
1268
|
+
}>): BABYLON.Color4;
|
|
1269
|
+
setColorFromString(colorString: string): void;
|
|
1270
|
+
setColor(newColor: BABYLON.Color4): void;
|
|
1271
|
+
switchExpandState(): void;
|
|
1272
|
+
updateStateR(value: number): void;
|
|
1273
|
+
updateStateG(value: number): void;
|
|
1274
|
+
updateStateB(value: number): void;
|
|
1275
|
+
updateStateA(value: number): void;
|
|
1276
|
+
copyToClipboard(): void;
|
|
1277
|
+
private _convertToColor;
|
|
1278
|
+
private _toColor3;
|
|
1279
|
+
render(): JSX.Element;
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
|
|
1283
|
+
|
|
1284
|
+
}
|
|
1285
|
+
declare module BABYLON.NodeEditor {
|
|
1286
|
+
|
|
1287
|
+
}
|
|
1288
|
+
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
1289
|
+
export interface IColorPickerComponentProps {
|
|
1290
|
+
value: BABYLON.Color4 | BABYLON.Color3;
|
|
1291
|
+
linearHint?: boolean;
|
|
1292
|
+
onColorChanged: (newOne: string) => void;
|
|
1293
|
+
icon?: string;
|
|
1294
|
+
iconLabel?: string;
|
|
1295
|
+
shouldPopRight?: boolean;
|
|
1296
|
+
lockObject?: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
1297
|
+
backgroundColor?: string;
|
|
1298
|
+
}
|
|
1299
|
+
interface IColorPickerComponentState {
|
|
1300
|
+
pickerEnabled: boolean;
|
|
1301
|
+
color: BABYLON.Color3 | BABYLON.Color4;
|
|
1302
|
+
hex: string;
|
|
1303
|
+
}
|
|
1304
|
+
export class ColorPickerLineComponent extends React.Component<IColorPickerComponentProps, IColorPickerComponentState> {
|
|
1305
|
+
private _floatRef;
|
|
1306
|
+
private _floatHostRef;
|
|
1307
|
+
private _coverRef;
|
|
1308
|
+
constructor(props: IColorPickerComponentProps);
|
|
1309
|
+
syncPositions(): void;
|
|
1310
|
+
shouldComponentUpdate(nextProps: IColorPickerComponentProps, nextState: IColorPickerComponentState): boolean;
|
|
1311
|
+
getHexString(props?: Readonly<IColorPickerComponentProps> & Readonly<{
|
|
1312
|
+
children?: React.ReactNode;
|
|
1313
|
+
}>): string;
|
|
1314
|
+
componentDidUpdate(): void;
|
|
1315
|
+
componentDidMount(): void;
|
|
1316
|
+
render(): JSX.Element;
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
|
|
1320
|
+
|
|
1141
1321
|
}
|
|
1142
1322
|
declare module BABYLON.NodeEditor {
|
|
1143
1323
|
|
|
@@ -1161,6 +1341,42 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1161
1341
|
|
|
1162
1342
|
|
|
1163
1343
|
|
|
1344
|
+
}
|
|
1345
|
+
declare module BABYLON.NodeEditor {
|
|
1346
|
+
|
|
1347
|
+
}
|
|
1348
|
+
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
1349
|
+
interface INumericInputComponentProps {
|
|
1350
|
+
label: string;
|
|
1351
|
+
value: number;
|
|
1352
|
+
step?: number;
|
|
1353
|
+
onChange: (value: number) => void;
|
|
1354
|
+
precision?: number;
|
|
1355
|
+
icon?: string;
|
|
1356
|
+
iconLabel?: string;
|
|
1357
|
+
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
1358
|
+
}
|
|
1359
|
+
export class NumericInputComponent extends React.Component<INumericInputComponentProps, {
|
|
1360
|
+
value: string;
|
|
1361
|
+
}> {
|
|
1362
|
+
static defaultProps: {
|
|
1363
|
+
step: number;
|
|
1364
|
+
};
|
|
1365
|
+
private _localChange;
|
|
1366
|
+
constructor(props: INumericInputComponentProps);
|
|
1367
|
+
componentWillUnmount(): void;
|
|
1368
|
+
shouldComponentUpdate(nextProps: INumericInputComponentProps, nextState: {
|
|
1369
|
+
value: string;
|
|
1370
|
+
}): boolean;
|
|
1371
|
+
updateValue(valueString: string): void;
|
|
1372
|
+
onBlur(): void;
|
|
1373
|
+
incrementValue(amount: number): void;
|
|
1374
|
+
onKeyDown(evt: React.KeyboardEvent<HTMLInputElement>): void;
|
|
1375
|
+
render(): JSX.Element;
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
|
|
1379
|
+
|
|
1164
1380
|
}
|
|
1165
1381
|
declare module BABYLON.NodeEditor {
|
|
1166
1382
|
|
|
@@ -2851,119 +3067,6 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
2851
3067
|
|
|
2852
3068
|
|
|
2853
3069
|
|
|
2854
|
-
}
|
|
2855
|
-
declare module BABYLON.NodeEditor {
|
|
2856
|
-
|
|
2857
|
-
}
|
|
2858
|
-
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
2859
|
-
/// <reference types="react" />
|
|
2860
|
-
var _default: {
|
|
2861
|
-
component: ICommandBarComponentProps>;
|
|
2862
|
-
};
|
|
2863
|
-
export var Default: {};
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
}
|
|
2868
|
-
declare module BABYLON.NodeEditor {
|
|
2869
|
-
|
|
2870
|
-
}
|
|
2871
|
-
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
2872
|
-
/// <reference types="react" />
|
|
2873
|
-
var _default: {
|
|
2874
|
-
component: ICommandButtonComponentProps>;
|
|
2875
|
-
};
|
|
2876
|
-
export var Default: {};
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
}
|
|
2881
|
-
declare module BABYLON.NodeEditor {
|
|
2882
|
-
|
|
2883
|
-
}
|
|
2884
|
-
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
2885
|
-
/// <reference types="react" />
|
|
2886
|
-
var _default: {
|
|
2887
|
-
title: string;
|
|
2888
|
-
component: import("react").FC<BABYLON.NodeEditor.SharedUIComponents.ButtonProps>;
|
|
2889
|
-
};
|
|
2890
|
-
export var Default: any;
|
|
2891
|
-
export var Wide: any;
|
|
2892
|
-
export var Small: any;
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
}
|
|
2897
|
-
declare module BABYLON.NodeEditor {
|
|
2898
|
-
|
|
2899
|
-
}
|
|
2900
|
-
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
2901
|
-
/// <reference types="react" />
|
|
2902
|
-
var _default: {
|
|
2903
|
-
title: string;
|
|
2904
|
-
component: import("react").FC<BABYLON.NodeEditor.SharedUIComponents.IconProps>;
|
|
2905
|
-
};
|
|
2906
|
-
export var Light: any;
|
|
2907
|
-
export var Dark: any;
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
}
|
|
2912
|
-
declare module BABYLON.NodeEditor {
|
|
2913
|
-
|
|
2914
|
-
}
|
|
2915
|
-
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
2916
|
-
/// <reference types="react" />
|
|
2917
|
-
var _default: {
|
|
2918
|
-
title: string;
|
|
2919
|
-
component: import("react").FC<BABYLON.NodeEditor.SharedUIComponents.LabelProps>;
|
|
2920
|
-
};
|
|
2921
|
-
export var Default: any;
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
}
|
|
2926
|
-
declare module BABYLON.NodeEditor {
|
|
2927
|
-
|
|
2928
|
-
}
|
|
2929
|
-
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
2930
|
-
var _default: {
|
|
2931
|
-
component: typeof BABYLON.NodeEditor.SharedUIComponents.FileButtonLineComponent;
|
|
2932
|
-
};
|
|
2933
|
-
export var Default: {};
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
}
|
|
2938
|
-
declare module BABYLON.NodeEditor {
|
|
2939
|
-
|
|
2940
|
-
}
|
|
2941
|
-
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
2942
|
-
/// <reference types="react" />
|
|
2943
|
-
var _default: {
|
|
2944
|
-
title: string;
|
|
2945
|
-
component: import("react").FC<BABYLON.NodeEditor.SharedUIComponents.MessageDialogProps>;
|
|
2946
|
-
};
|
|
2947
|
-
export var NoError: any;
|
|
2948
|
-
export var Error: any;
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
}
|
|
2953
|
-
declare module BABYLON.NodeEditor {
|
|
2954
|
-
|
|
2955
|
-
}
|
|
2956
|
-
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
2957
|
-
/// <reference types="react" />
|
|
2958
|
-
var _default: {
|
|
2959
|
-
title: string;
|
|
2960
|
-
component: import("react").FC<BABYLON.NodeEditor.SharedUIComponents.ToggleProps>;
|
|
2961
|
-
};
|
|
2962
|
-
export var Default: any;
|
|
2963
|
-
export var Padded: any;
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
3070
|
}
|
|
2968
3071
|
declare module BABYLON.NodeEditor {
|
|
2969
3072
|
|