@babylonjs/gui-editor 5.0.0-rc.1 → 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.guiEditor.max.js +280 -336
- package/babylon.guiEditor.max.js.map +1 -1
- package/babylon.guiEditor.module.d.ts +58 -65
- 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 {
|
@@ -709,7 +709,6 @@ declare module "@babylonjs/gui-editor/sharedUiComponents/lines/colorLineComponen
|
|
709
709
|
interface IColorLineComponentState {
|
710
710
|
isExpanded: boolean;
|
711
711
|
color: Color4;
|
712
|
-
colorString: string;
|
713
712
|
}
|
714
713
|
export class ColorLineComponent extends React.Component<IColorLineComponentProps, IColorLineComponentState> {
|
715
714
|
constructor(props: IColorLineComponentProps);
|
@@ -717,20 +716,14 @@ declare module "@babylonjs/gui-editor/sharedUiComponents/lines/colorLineComponen
|
|
717
716
|
getValue(props?: Readonly<IColorLineComponentProps> & Readonly<{
|
718
717
|
children?: React.ReactNode;
|
719
718
|
}>): Color4;
|
720
|
-
getValueAsString(props?: Readonly<IColorLineComponentProps> & Readonly<{
|
721
|
-
children?: React.ReactNode;
|
722
|
-
}>): string;
|
723
719
|
setColorFromString(colorString: string): void;
|
724
|
-
setColor(
|
725
|
-
updateColor(newColor: Color4): void;
|
720
|
+
setColor(newColor: Color4): void;
|
726
721
|
switchExpandState(): void;
|
727
722
|
updateStateR(value: number): void;
|
728
723
|
updateStateG(value: number): void;
|
729
724
|
updateStateB(value: number): void;
|
730
725
|
updateStateA(value: number): void;
|
731
726
|
copyToClipboard(): void;
|
732
|
-
get colorString(): string;
|
733
|
-
set colorString(_: string);
|
734
727
|
private convertToColor;
|
735
728
|
private toColor3;
|
736
729
|
render(): JSX.Element;
|
@@ -1202,7 +1195,6 @@ declare module "@babylonjs/gui-editor/components/propertyTab/propertyTabComponen
|
|
1202
1195
|
private _onBuiltObserver;
|
1203
1196
|
private _timerIntervalId;
|
1204
1197
|
private _lockObject;
|
1205
|
-
private _sizeOption;
|
1206
1198
|
constructor(props: IPropertyTabComponentProps);
|
1207
1199
|
componentDidMount(): void;
|
1208
1200
|
componentWillUnmount(): void;
|
@@ -1497,6 +1489,7 @@ declare module "@babylonjs/gui-editor/components/commandBarComponent" {
|
|
1497
1489
|
private _panning;
|
1498
1490
|
private _zooming;
|
1499
1491
|
private _selecting;
|
1492
|
+
private _sizeOption;
|
1500
1493
|
constructor(props: ICommandBarComponentProps);
|
1501
1494
|
render(): JSX.Element;
|
1502
1495
|
}
|
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.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": [
|