@babylonjs/gui-editor 5.0.0-rc.0 → 5.0.0-rc.1
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 +461 -381
- package/babylon.guiEditor.max.js.map +1 -1
- package/babylon.guiEditor.module.d.ts +98 -84
- package/package.json +2 -2
@@ -1,4 +1,10 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
+
declare module "@babylonjs/gui-editor/controlTypes" {
|
3
|
+
export const ControlTypes: {
|
4
|
+
className: string;
|
5
|
+
icon: string;
|
6
|
+
}[];
|
7
|
+
}
|
2
8
|
declare module "@babylonjs/gui-editor/components/log/logComponent" {
|
3
9
|
import * as React from "react";
|
4
10
|
import { GlobalState } from "@babylonjs/gui-editor/globalState";
|
@@ -47,7 +53,7 @@ declare module "@babylonjs/gui-editor/diagram/coordinateHelper" {
|
|
47
53
|
import { Observable } from "@babylonjs/core/Misc/observable";
|
48
54
|
import { GlobalState } from "@babylonjs/gui-editor/globalState";
|
49
55
|
import { PropertyChangedEvent } from "@babylonjs/gui-editor/sharedUiComponents/propertyChangedEvent";
|
50
|
-
export type DimensionProperties = "width" | "left" | "height" | "top" | "paddingLeft" | "paddingRight" | "paddingTop" | "paddingBottom";
|
56
|
+
export type DimensionProperties = "width" | "left" | "height" | "top" | "paddingLeft" | "paddingRight" | "paddingTop" | "paddingBottom" | "fontSize";
|
51
57
|
export class Rect {
|
52
58
|
top: number;
|
53
59
|
left: number;
|
@@ -105,7 +111,6 @@ declare module "@babylonjs/gui-editor/diagram/workbench" {
|
|
105
111
|
import { Control } from "@babylonjs/gui/2D/controls/control";
|
106
112
|
import { Vector2, Vector3 } from "@babylonjs/core/Maths/math.vector";
|
107
113
|
import { Scene } from "@babylonjs/core/scene";
|
108
|
-
import { IWheelEvent } from "@babylonjs/core/Events/deviceInputEvents";
|
109
114
|
import { Container } from "@babylonjs/gui/2D/controls/container";
|
110
115
|
import { ISize } from "@babylonjs/core/Maths/math";
|
111
116
|
export interface IWorkbenchComponentProps {
|
@@ -202,7 +207,7 @@ declare module "@babylonjs/gui-editor/diagram/workbench" {
|
|
202
207
|
addControls(scene: Scene): void;
|
203
208
|
panning(): void;
|
204
209
|
moveControls(moveHorizontal: boolean, amount: number): void;
|
205
|
-
zoomWheel(event:
|
210
|
+
zoomWheel(event: WheelEvent): number;
|
206
211
|
zooming(delta: number): void;
|
207
212
|
zeroIfClose(vec: Vector3): void;
|
208
213
|
render(): JSX.Element;
|
@@ -314,37 +319,6 @@ declare module "@babylonjs/gui-editor/globalState" {
|
|
314
319
|
isMultiSelectable(control: Control): boolean;
|
315
320
|
}
|
316
321
|
}
|
317
|
-
declare module "@babylonjs/gui-editor/sharedUiComponents/lines/buttonLineComponent" {
|
318
|
-
import * as React from "react";
|
319
|
-
export interface IButtonLineComponentProps {
|
320
|
-
label: string;
|
321
|
-
onClick: () => void;
|
322
|
-
icon?: string;
|
323
|
-
iconLabel?: string;
|
324
|
-
}
|
325
|
-
export class ButtonLineComponent extends React.Component<IButtonLineComponentProps> {
|
326
|
-
constructor(props: IButtonLineComponentProps);
|
327
|
-
render(): JSX.Element;
|
328
|
-
}
|
329
|
-
}
|
330
|
-
declare module "@babylonjs/gui-editor/sharedUiComponents/lines/fileButtonLineComponent" {
|
331
|
-
import * as React from "react";
|
332
|
-
interface IFileButtonLineComponentProps {
|
333
|
-
label: string;
|
334
|
-
onClick: (file: File) => void;
|
335
|
-
accept: string;
|
336
|
-
icon?: string;
|
337
|
-
iconLabel?: string;
|
338
|
-
}
|
339
|
-
export class FileButtonLineComponent extends React.Component<IFileButtonLineComponentProps> {
|
340
|
-
private static _IDGenerator;
|
341
|
-
private _id;
|
342
|
-
private uploadInputRef;
|
343
|
-
constructor(props: IFileButtonLineComponentProps);
|
344
|
-
onChange(evt: any): void;
|
345
|
-
render(): JSX.Element;
|
346
|
-
}
|
347
|
-
}
|
348
322
|
declare module "@babylonjs/gui-editor/sharedUiComponents/lines/targetsProxy" {
|
349
323
|
import { PropertyChangedEvent } from "@babylonjs/gui-editor/sharedUiComponents/propertyChangedEvent";
|
350
324
|
import { Observable } from "@babylonjs/core/Misc/observable";
|
@@ -382,8 +356,6 @@ declare module "@babylonjs/gui-editor/sharedUiComponents/lines/checkBoxLineCompo
|
|
382
356
|
isDisabled?: boolean;
|
383
357
|
isConflict: boolean;
|
384
358
|
}> {
|
385
|
-
private static _UniqueIdSeed;
|
386
|
-
private _uniqueId;
|
387
359
|
private _localChange;
|
388
360
|
constructor(props: ICheckBoxLineComponentProps);
|
389
361
|
shouldComponentUpdate(nextProps: ICheckBoxLineComponentProps, nextState: {
|
@@ -530,7 +502,7 @@ declare module "@babylonjs/gui-editor/sharedUiComponents/lines/textInputLineComp
|
|
530
502
|
import { PropertyChangedEvent } from "@babylonjs/gui-editor/sharedUiComponents/propertyChangedEvent";
|
531
503
|
import { LockObject } from "@babylonjs/gui-editor/sharedUiComponents/tabs/propertyGrids/lockObject";
|
532
504
|
interface ITextInputLineComponentProps {
|
533
|
-
label
|
505
|
+
label?: string;
|
534
506
|
lockObject: LockObject;
|
535
507
|
target?: any;
|
536
508
|
propertyName?: string;
|
@@ -764,6 +736,50 @@ declare module "@babylonjs/gui-editor/sharedUiComponents/lines/colorLineComponen
|
|
764
736
|
render(): JSX.Element;
|
765
737
|
}
|
766
738
|
}
|
739
|
+
declare module "@babylonjs/gui-editor/sharedUiComponents/lines/iconComponent" {
|
740
|
+
import * as React from "react";
|
741
|
+
interface IIconComponentProps {
|
742
|
+
icon: string;
|
743
|
+
label?: string;
|
744
|
+
}
|
745
|
+
export class IconComponent extends React.Component<IIconComponentProps> {
|
746
|
+
render(): JSX.Element;
|
747
|
+
}
|
748
|
+
}
|
749
|
+
declare module "@babylonjs/gui-editor/sharedUiComponents/lines/optionsLineComponent" {
|
750
|
+
import * as React from "react";
|
751
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
752
|
+
import { PropertyChangedEvent } from "@babylonjs/gui-editor/sharedUiComponents/propertyChangedEvent";
|
753
|
+
import { IInspectableOptions } from "@babylonjs/core/Misc/iInspectable";
|
754
|
+
export const Null_Value: number;
|
755
|
+
export interface IOptionsLineComponentProps {
|
756
|
+
label: string;
|
757
|
+
target: any;
|
758
|
+
propertyName: string;
|
759
|
+
options: IInspectableOptions[];
|
760
|
+
noDirectUpdate?: boolean;
|
761
|
+
onSelect?: (value: number) => void;
|
762
|
+
extractValue?: () => number;
|
763
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
764
|
+
allowNullValue?: boolean;
|
765
|
+
icon?: string;
|
766
|
+
iconLabel?: string;
|
767
|
+
}
|
768
|
+
export class OptionsLineComponent extends React.Component<IOptionsLineComponentProps, {
|
769
|
+
value: number;
|
770
|
+
}> {
|
771
|
+
private _localChange;
|
772
|
+
private remapValueIn;
|
773
|
+
private remapValueOut;
|
774
|
+
constructor(props: IOptionsLineComponentProps);
|
775
|
+
shouldComponentUpdate(nextProps: IOptionsLineComponentProps, nextState: {
|
776
|
+
value: number;
|
777
|
+
}): boolean;
|
778
|
+
raiseOnPropertyChanged(newValue: number, previousValue: number): void;
|
779
|
+
updateValue(valueString: string): void;
|
780
|
+
render(): JSX.Element;
|
781
|
+
}
|
782
|
+
}
|
767
783
|
declare module "@babylonjs/gui-editor/components/propertyTab/propertyGrids/gui/commonControlPropertyGridComponent" {
|
768
784
|
import * as React from "react";
|
769
785
|
import { Observable } from "@babylonjs/core/Misc/observable";
|
@@ -852,40 +868,6 @@ declare module "@babylonjs/gui-editor/components/propertyTab/propertyGrids/gui/r
|
|
852
868
|
render(): JSX.Element;
|
853
869
|
}
|
854
870
|
}
|
855
|
-
declare module "@babylonjs/gui-editor/sharedUiComponents/lines/optionsLineComponent" {
|
856
|
-
import * as React from "react";
|
857
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
858
|
-
import { PropertyChangedEvent } from "@babylonjs/gui-editor/sharedUiComponents/propertyChangedEvent";
|
859
|
-
import { IInspectableOptions } from "@babylonjs/core/Misc/iInspectable";
|
860
|
-
export const Null_Value: number;
|
861
|
-
export interface IOptionsLineComponentProps {
|
862
|
-
label: string;
|
863
|
-
target: any;
|
864
|
-
propertyName: string;
|
865
|
-
options: IInspectableOptions[];
|
866
|
-
noDirectUpdate?: boolean;
|
867
|
-
onSelect?: (value: number) => void;
|
868
|
-
extractValue?: () => number;
|
869
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
870
|
-
allowNullValue?: boolean;
|
871
|
-
icon?: string;
|
872
|
-
iconLabel?: string;
|
873
|
-
}
|
874
|
-
export class OptionsLineComponent extends React.Component<IOptionsLineComponentProps, {
|
875
|
-
value: number;
|
876
|
-
}> {
|
877
|
-
private _localChange;
|
878
|
-
private remapValueIn;
|
879
|
-
private remapValueOut;
|
880
|
-
constructor(props: IOptionsLineComponentProps);
|
881
|
-
shouldComponentUpdate(nextProps: IOptionsLineComponentProps, nextState: {
|
882
|
-
value: number;
|
883
|
-
}): boolean;
|
884
|
-
raiseOnPropertyChanged(newValue: number, previousValue: number): void;
|
885
|
-
updateValue(valueString: string): void;
|
886
|
-
render(): JSX.Element;
|
887
|
-
}
|
888
|
-
}
|
889
871
|
declare module "@babylonjs/gui-editor/components/propertyTab/propertyGrids/gui/textBlockPropertyGridComponent" {
|
890
872
|
import * as React from "react";
|
891
873
|
import { Observable } from "@babylonjs/core/Misc/observable";
|
@@ -989,6 +971,19 @@ declare module "@babylonjs/gui-editor/components/propertyTab/propertyGrids/gui/i
|
|
989
971
|
render(): JSX.Element;
|
990
972
|
}
|
991
973
|
}
|
974
|
+
declare module "@babylonjs/gui-editor/components/propertyTab/propertyGrids/gui/containerPropertyGridComponent" {
|
975
|
+
import * as React from "react";
|
976
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
977
|
+
import { PropertyChangedEvent } from "@babylonjs/gui-editor/sharedUiComponents/propertyChangedEvent";
|
978
|
+
import { Container } from "@babylonjs/gui/2D/controls/container";
|
979
|
+
interface IContainerPropertyGridComponentProps {
|
980
|
+
containers: Container[];
|
981
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
982
|
+
}
|
983
|
+
export class ContainerPropertyGridComponent extends React.Component<IContainerPropertyGridComponentProps> {
|
984
|
+
render(): JSX.Element;
|
985
|
+
}
|
986
|
+
}
|
992
987
|
declare module "@babylonjs/gui-editor/components/propertyTab/propertyGrids/gui/rectanglePropertyGridComponent" {
|
993
988
|
import * as React from "react";
|
994
989
|
import { Observable } from "@babylonjs/core/Misc/observable";
|
@@ -1445,6 +1440,24 @@ declare module "@babylonjs/gui-editor/components/sceneExplorer/sceneExplorerComp
|
|
1445
1440
|
render(): JSX.Element;
|
1446
1441
|
}
|
1447
1442
|
}
|
1443
|
+
declare module "@babylonjs/gui-editor/sharedUiComponents/lines/fileButtonLineComponent" {
|
1444
|
+
import * as React from "react";
|
1445
|
+
interface IFileButtonLineComponentProps {
|
1446
|
+
label: string;
|
1447
|
+
onClick: (file: File) => void;
|
1448
|
+
accept: string;
|
1449
|
+
icon?: string;
|
1450
|
+
iconLabel?: string;
|
1451
|
+
}
|
1452
|
+
export class FileButtonLineComponent extends React.Component<IFileButtonLineComponentProps> {
|
1453
|
+
private static _IDGenerator;
|
1454
|
+
private _id;
|
1455
|
+
private uploadInputRef;
|
1456
|
+
constructor(props: IFileButtonLineComponentProps);
|
1457
|
+
onChange(evt: any): void;
|
1458
|
+
render(): JSX.Element;
|
1459
|
+
}
|
1460
|
+
}
|
1448
1461
|
declare module "@babylonjs/gui-editor/components/commandDropdownComponent" {
|
1449
1462
|
import * as React from "react";
|
1450
1463
|
import { GlobalState } from "@babylonjs/gui-editor/globalState";
|
@@ -1585,13 +1598,13 @@ declare module "@babylonjs/gui-editor/workbenchEditor" {
|
|
1585
1598
|
showPreviewPopUp: boolean;
|
1586
1599
|
}
|
1587
1600
|
export class WorkbenchEditor extends React.Component<IGraphEditorProps, IGraphEditorState> {
|
1588
|
-
private _startX;
|
1589
1601
|
private _moveInProgress;
|
1590
1602
|
private _leftWidth;
|
1591
1603
|
private _rightWidth;
|
1592
1604
|
private _toolBarIconSize;
|
1593
1605
|
private _popUpWindow;
|
1594
1606
|
private _draggedItem;
|
1607
|
+
private _rootRef;
|
1595
1608
|
componentDidMount(): void;
|
1596
1609
|
constructor(props: IGraphEditorProps);
|
1597
1610
|
showWaitScreen(): void;
|
@@ -1605,18 +1618,6 @@ declare module "@babylonjs/gui-editor/workbenchEditor" {
|
|
1605
1618
|
createPopupWindow: (title: string, windowVariableName: string, width?: number, height?: number) => Window | null;
|
1606
1619
|
copyStyles: (sourceDoc: HTMLDocument, targetDoc: HTMLDocument) => void;
|
1607
1620
|
render(): JSX.Element;
|
1608
|
-
_items: {
|
1609
|
-
label: string;
|
1610
|
-
icon?: string;
|
1611
|
-
fileButton?: boolean;
|
1612
|
-
onClick?: () => void;
|
1613
|
-
onCheck?: (value: boolean) => void;
|
1614
|
-
storeKey?: string;
|
1615
|
-
isActive?: boolean;
|
1616
|
-
defaultValue?: boolean | string;
|
1617
|
-
subItems?: string[];
|
1618
|
-
}[];
|
1619
|
-
createItems(): void;
|
1620
1621
|
onCreate(value: string): Control;
|
1621
1622
|
createToolbar(): JSX.Element;
|
1622
1623
|
}
|
@@ -1914,6 +1915,19 @@ declare module "@babylonjs/gui-editor/sharedUiComponents/lines/booleanLineCompon
|
|
1914
1915
|
render(): JSX.Element;
|
1915
1916
|
}
|
1916
1917
|
}
|
1918
|
+
declare module "@babylonjs/gui-editor/sharedUiComponents/lines/buttonLineComponent" {
|
1919
|
+
import * as React from "react";
|
1920
|
+
export interface IButtonLineComponentProps {
|
1921
|
+
label: string;
|
1922
|
+
onClick: () => void;
|
1923
|
+
icon?: string;
|
1924
|
+
iconLabel?: string;
|
1925
|
+
}
|
1926
|
+
export class ButtonLineComponent extends React.Component<IButtonLineComponentProps> {
|
1927
|
+
constructor(props: IButtonLineComponentProps);
|
1928
|
+
render(): JSX.Element;
|
1929
|
+
}
|
1930
|
+
}
|
1917
1931
|
declare module "@babylonjs/gui-editor/sharedUiComponents/lines/color4LineComponent" {
|
1918
1932
|
import * as React from "react";
|
1919
1933
|
import { Observable } from "@babylonjs/core/Misc/observable";
|
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.1",
|
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.1",
|
15
15
|
"tslib": "^2.3.1"
|
16
16
|
},
|
17
17
|
"files": [
|