@babylonjs/gui-editor 5.0.0-rc.1 → 5.0.0-rc.2
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.max.js +383 -415
- package/babylon.guiEditor.max.js.map +1 -1
- package/babylon.guiEditor.module.d.ts +57 -57
- package/package.json +2 -2
@@ -319,52 +319,15 @@ declare module "@babylonjs/gui-editor/globalState" {
|
|
319
319
|
isMultiSelectable(control: Control): boolean;
|
320
320
|
}
|
321
321
|
}
|
322
|
-
declare module "@babylonjs/gui-editor/sharedUiComponents/
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
* @param setter an optional setter function to override the default setter behavior
|
332
|
-
* @returns a proxy object that can be passed as a target into the input
|
333
|
-
*/
|
334
|
-
export function makeTargetsProxy<Type>(targets: Type[], onPropertyChangedObservable?: Observable<PropertyChangedEvent>, getProperty?: (target: Type, property: keyof Type) => any): any;
|
335
|
-
}
|
336
|
-
declare module "@babylonjs/gui-editor/sharedUiComponents/lines/checkBoxLineComponent" {
|
337
|
-
import * as React from "react";
|
338
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
339
|
-
import { PropertyChangedEvent } from "@babylonjs/gui-editor/sharedUiComponents/propertyChangedEvent";
|
340
|
-
export interface ICheckBoxLineComponentProps {
|
341
|
-
label?: string;
|
342
|
-
target?: any;
|
343
|
-
propertyName?: string;
|
344
|
-
isSelected?: () => boolean;
|
345
|
-
onSelect?: (value: boolean) => void;
|
346
|
-
onValueChanged?: () => void;
|
347
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
348
|
-
disabled?: boolean;
|
349
|
-
icon?: string;
|
350
|
-
iconLabel?: string;
|
351
|
-
faIcons?: {
|
352
|
-
};
|
353
|
-
}
|
354
|
-
export class CheckBoxLineComponent extends React.Component<ICheckBoxLineComponentProps, {
|
355
|
-
isSelected: boolean;
|
356
|
-
isDisabled?: boolean;
|
357
|
-
isConflict: boolean;
|
358
|
-
}> {
|
359
|
-
private _localChange;
|
360
|
-
constructor(props: ICheckBoxLineComponentProps);
|
361
|
-
shouldComponentUpdate(nextProps: ICheckBoxLineComponentProps, nextState: {
|
362
|
-
isSelected: boolean;
|
363
|
-
isDisabled: boolean;
|
364
|
-
isConflict: boolean;
|
365
|
-
}): boolean;
|
366
|
-
onChange(): void;
|
367
|
-
render(): JSX.Element;
|
322
|
+
declare module "@babylonjs/gui-editor/sharedUiComponents/stringTools" {
|
323
|
+
export class StringTools {
|
324
|
+
private static _SaveAs;
|
325
|
+
private static _Click;
|
326
|
+
/**
|
327
|
+
* Download a string into a file that will be saved locally by the browser
|
328
|
+
* @param content defines the string to download locally as a file
|
329
|
+
*/
|
330
|
+
static DownloadAsFile(document: HTMLDocument, content: string, filename: string): void;
|
368
331
|
}
|
369
332
|
}
|
370
333
|
declare module "@babylonjs/gui-editor/sharedUiComponents/lines/textLineComponent" {
|
@@ -389,16 +352,19 @@ declare module "@babylonjs/gui-editor/sharedUiComponents/lines/textLineComponent
|
|
389
352
|
render(): JSX.Element;
|
390
353
|
}
|
391
354
|
}
|
392
|
-
declare module "@babylonjs/gui-editor/sharedUiComponents/
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
355
|
+
declare module "@babylonjs/gui-editor/sharedUiComponents/lines/targetsProxy" {
|
356
|
+
import { PropertyChangedEvent } from "@babylonjs/gui-editor/sharedUiComponents/propertyChangedEvent";
|
357
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
358
|
+
export const conflictingValuesPlaceholder = "\u2014";
|
359
|
+
/**
|
360
|
+
*
|
361
|
+
* @param propertyName the property that the input changes
|
362
|
+
* @param targets a list of selected targets
|
363
|
+
* @param defaultValue the value that should be returned when two targets have conflicting values
|
364
|
+
* @param setter an optional setter function to override the default setter behavior
|
365
|
+
* @returns a proxy object that can be passed as a target into the input
|
366
|
+
*/
|
367
|
+
export function makeTargetsProxy<Type>(targets: Type[], onPropertyChangedObservable?: Observable<PropertyChangedEvent>, getProperty?: (target: Type, property: keyof Type) => any): any;
|
402
368
|
}
|
403
369
|
declare module "@babylonjs/gui-editor/sharedUiComponents/lines/floatLineComponent" {
|
404
370
|
import * as React from "react";
|
@@ -556,6 +522,40 @@ declare module "@babylonjs/gui-editor/components/commandButtonComponent" {
|
|
556
522
|
render(): JSX.Element;
|
557
523
|
}
|
558
524
|
}
|
525
|
+
declare module "@babylonjs/gui-editor/sharedUiComponents/lines/checkBoxLineComponent" {
|
526
|
+
import * as React from "react";
|
527
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
528
|
+
import { PropertyChangedEvent } from "@babylonjs/gui-editor/sharedUiComponents/propertyChangedEvent";
|
529
|
+
export interface ICheckBoxLineComponentProps {
|
530
|
+
label?: string;
|
531
|
+
target?: any;
|
532
|
+
propertyName?: string;
|
533
|
+
isSelected?: () => boolean;
|
534
|
+
onSelect?: (value: boolean) => void;
|
535
|
+
onValueChanged?: () => void;
|
536
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
537
|
+
disabled?: boolean;
|
538
|
+
icon?: string;
|
539
|
+
iconLabel?: string;
|
540
|
+
faIcons?: {
|
541
|
+
};
|
542
|
+
}
|
543
|
+
export class CheckBoxLineComponent extends React.Component<ICheckBoxLineComponentProps, {
|
544
|
+
isSelected: boolean;
|
545
|
+
isDisabled?: boolean;
|
546
|
+
isConflict: boolean;
|
547
|
+
}> {
|
548
|
+
private _localChange;
|
549
|
+
constructor(props: ICheckBoxLineComponentProps);
|
550
|
+
shouldComponentUpdate(nextProps: ICheckBoxLineComponentProps, nextState: {
|
551
|
+
isSelected: boolean;
|
552
|
+
isDisabled: boolean;
|
553
|
+
isConflict: boolean;
|
554
|
+
}): boolean;
|
555
|
+
onChange(): void;
|
556
|
+
render(): JSX.Element;
|
557
|
+
}
|
558
|
+
}
|
559
559
|
declare module "@babylonjs/gui-editor/sharedUiComponents/lines/numericInputComponent" {
|
560
560
|
import * as React from "react";
|
561
561
|
interface INumericInputComponentProps {
|
@@ -1202,7 +1202,6 @@ declare module "@babylonjs/gui-editor/components/propertyTab/propertyTabComponen
|
|
1202
1202
|
private _onBuiltObserver;
|
1203
1203
|
private _timerIntervalId;
|
1204
1204
|
private _lockObject;
|
1205
|
-
private _sizeOption;
|
1206
1205
|
constructor(props: IPropertyTabComponentProps);
|
1207
1206
|
componentDidMount(): void;
|
1208
1207
|
componentWillUnmount(): void;
|
@@ -1497,6 +1496,7 @@ declare module "@babylonjs/gui-editor/components/commandBarComponent" {
|
|
1497
1496
|
private _panning;
|
1498
1497
|
private _zooming;
|
1499
1498
|
private _selecting;
|
1499
|
+
private _sizeOption;
|
1500
1500
|
constructor(props: ICommandBarComponentProps);
|
1501
1501
|
render(): JSX.Element;
|
1502
1502
|
}
|
package/package.json
CHANGED
@@ -4,14 +4,14 @@
|
|
4
4
|
},
|
5
5
|
"name": "@babylonjs/gui-editor",
|
6
6
|
"description": "The Babylon.js GUI editor.",
|
7
|
-
"version": "5.0.0-rc.
|
7
|
+
"version": "5.0.0-rc.2",
|
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.2",
|
15
15
|
"tslib": "^2.3.1"
|
16
16
|
},
|
17
17
|
"files": [
|