babylonjs-gui-editor 5.25.0 → 5.26.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
CHANGED
|
@@ -1220,6 +1220,76 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
1220
1220
|
|
|
1221
1221
|
|
|
1222
1222
|
|
|
1223
|
+
}
|
|
1224
|
+
declare module BABYLON {
|
|
1225
|
+
|
|
1226
|
+
}
|
|
1227
|
+
declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
1228
|
+
export interface ICommandBarComponentProps {
|
|
1229
|
+
onSaveButtonClicked?: () => void;
|
|
1230
|
+
onSaveToSnippetButtonClicked?: () => void;
|
|
1231
|
+
onLoadFromSnippetButtonClicked?: () => void;
|
|
1232
|
+
onHelpButtonClicked?: () => void;
|
|
1233
|
+
onGiveFeedbackButtonClicked?: () => void;
|
|
1234
|
+
onSelectButtonClicked?: () => void;
|
|
1235
|
+
onPanButtonClicked?: () => void;
|
|
1236
|
+
onZoomButtonClicked?: () => void;
|
|
1237
|
+
onFitButtonClicked?: () => void;
|
|
1238
|
+
}
|
|
1239
|
+
export var CommandBarComponent: React.FC<ICommandBarComponentProps>;
|
|
1240
|
+
|
|
1241
|
+
|
|
1242
|
+
|
|
1243
|
+
}
|
|
1244
|
+
declare module BABYLON {
|
|
1245
|
+
|
|
1246
|
+
}
|
|
1247
|
+
declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
1248
|
+
export interface ICommandButtonComponentProps {
|
|
1249
|
+
tooltip: string;
|
|
1250
|
+
shortcut?: string;
|
|
1251
|
+
icon: string;
|
|
1252
|
+
iconLabel?: string;
|
|
1253
|
+
isActive: boolean;
|
|
1254
|
+
onClick: () => void;
|
|
1255
|
+
disabled?: boolean;
|
|
1256
|
+
}
|
|
1257
|
+
export var CommandButtonComponent: React.FC<ICommandButtonComponentProps>;
|
|
1258
|
+
|
|
1259
|
+
|
|
1260
|
+
|
|
1261
|
+
}
|
|
1262
|
+
declare module BABYLON {
|
|
1263
|
+
|
|
1264
|
+
}
|
|
1265
|
+
declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
1266
|
+
interface ICommandDropdownComponentProps {
|
|
1267
|
+
icon?: string;
|
|
1268
|
+
tooltip: string;
|
|
1269
|
+
defaultValue?: string;
|
|
1270
|
+
items: {
|
|
1271
|
+
label: string;
|
|
1272
|
+
icon?: string;
|
|
1273
|
+
fileButton?: boolean;
|
|
1274
|
+
onClick?: () => void;
|
|
1275
|
+
onCheck?: (value: boolean) => void;
|
|
1276
|
+
storeKey?: string;
|
|
1277
|
+
isActive?: boolean;
|
|
1278
|
+
defaultValue?: boolean | string;
|
|
1279
|
+
subItems?: string[];
|
|
1280
|
+
}[];
|
|
1281
|
+
toRight?: boolean;
|
|
1282
|
+
}
|
|
1283
|
+
export class CommandDropdownComponent extends React.Component<ICommandDropdownComponentProps, {
|
|
1284
|
+
isExpanded: boolean;
|
|
1285
|
+
activeState: string;
|
|
1286
|
+
}> {
|
|
1287
|
+
constructor(props: ICommandDropdownComponentProps);
|
|
1288
|
+
render(): JSX.Element;
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
|
|
1292
|
+
|
|
1223
1293
|
}
|
|
1224
1294
|
declare module BABYLON {
|
|
1225
1295
|
|
|
@@ -1244,6 +1314,7 @@ declare module BABYLON {
|
|
|
1244
1314
|
}
|
|
1245
1315
|
declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
1246
1316
|
export function ClassNames(names: any, styleObject: any): string;
|
|
1317
|
+
export function JoinClassNames(styleObject: any, ...names: string[]): string;
|
|
1247
1318
|
|
|
1248
1319
|
|
|
1249
1320
|
|
|
@@ -1275,6 +1346,29 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
1275
1346
|
|
|
1276
1347
|
|
|
1277
1348
|
|
|
1349
|
+
}
|
|
1350
|
+
declare module BABYLON {
|
|
1351
|
+
|
|
1352
|
+
}
|
|
1353
|
+
declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
1354
|
+
export interface IFileButtonLineComponentProps {
|
|
1355
|
+
label: string;
|
|
1356
|
+
onClick: (file: File) => void;
|
|
1357
|
+
accept: string;
|
|
1358
|
+
icon?: string;
|
|
1359
|
+
iconLabel?: string;
|
|
1360
|
+
}
|
|
1361
|
+
export class FileButtonLineComponent extends React.Component<IFileButtonLineComponentProps> {
|
|
1362
|
+
private static _IDGenerator;
|
|
1363
|
+
private _id;
|
|
1364
|
+
private _uploadInputRef;
|
|
1365
|
+
constructor(props: IFileButtonLineComponentProps);
|
|
1366
|
+
onChange(evt: any): void;
|
|
1367
|
+
render(): JSX.Element;
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
|
|
1371
|
+
|
|
1278
1372
|
}
|
|
1279
1373
|
declare module BABYLON {
|
|
1280
1374
|
|
|
@@ -1910,6 +2004,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
1910
2004
|
defaultIfNull?: number;
|
|
1911
2005
|
fromFontDropdown?: boolean;
|
|
1912
2006
|
valueProp?: number;
|
|
2007
|
+
fallbackValue?: number;
|
|
1913
2008
|
}
|
|
1914
2009
|
export class OptionsLineComponent extends React.Component<IOptionsLineComponentProps, {
|
|
1915
2010
|
value: number | string;
|
|
@@ -2964,6 +3059,32 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
2964
3059
|
|
|
2965
3060
|
|
|
2966
3061
|
|
|
3062
|
+
}
|
|
3063
|
+
declare module BABYLON {
|
|
3064
|
+
|
|
3065
|
+
}
|
|
3066
|
+
declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
3067
|
+
/// <reference types="react" />
|
|
3068
|
+
var _default: {
|
|
3069
|
+
component: ICommandBarComponentProps>;
|
|
3070
|
+
};
|
|
3071
|
+
export var Default: {};
|
|
3072
|
+
|
|
3073
|
+
|
|
3074
|
+
|
|
3075
|
+
}
|
|
3076
|
+
declare module BABYLON {
|
|
3077
|
+
|
|
3078
|
+
}
|
|
3079
|
+
declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
3080
|
+
/// <reference types="react" />
|
|
3081
|
+
var _default: {
|
|
3082
|
+
component: ICommandButtonComponentProps>;
|
|
3083
|
+
};
|
|
3084
|
+
export var Default: {};
|
|
3085
|
+
|
|
3086
|
+
|
|
3087
|
+
|
|
2967
3088
|
}
|
|
2968
3089
|
declare module BABYLON {
|
|
2969
3090
|
|
|
@@ -3009,6 +3130,18 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
3009
3130
|
|
|
3010
3131
|
|
|
3011
3132
|
|
|
3133
|
+
}
|
|
3134
|
+
declare module BABYLON {
|
|
3135
|
+
|
|
3136
|
+
}
|
|
3137
|
+
declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
3138
|
+
var _default: {
|
|
3139
|
+
component: typeof BABYLON.GuiEditor.SharedUIComponents.FileButtonLineComponent;
|
|
3140
|
+
};
|
|
3141
|
+
export var Default: {};
|
|
3142
|
+
|
|
3143
|
+
|
|
3144
|
+
|
|
3012
3145
|
}
|
|
3013
3146
|
declare module BABYLON {
|
|
3014
3147
|
|