@babylonjs/gui-editor 5.0.0-rc.6 → 5.0.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/dist/babylon.guiEditor.js +1 -1
- package/dist/babylon.guiEditor.js.map +1 -1
- package/dist/babylon.guiEditor.max.js +7729 -7119
- package/dist/babylon.guiEditor.max.js.map +1 -1
- package/dist/babylon.guiEditor.module.d.ts +2281 -2375
- package/license.md +71 -0
- package/package.json +24 -8
@@ -1,2680 +1,2586 @@
|
|
1
1
|
|
2
2
|
declare module "@babylonjs/gui-editor/components/commandBarComponent" {
|
3
|
-
import * as React from "react";
|
4
|
-
import { GlobalState } from "@babylonjs/gui-editor/globalState";
|
5
|
-
import "@babylonjs/gui-editor/scss/commandBar.scss";
|
6
|
-
interface ICommandBarComponentProps {
|
7
|
-
globalState: GlobalState;
|
8
|
-
}
|
9
|
-
export class CommandBarComponent extends React.Component<ICommandBarComponentProps> {
|
10
|
-
private
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
render(): JSX.Element;
|
16
|
-
}
|
17
|
-
export {};
|
3
|
+
import * as React from "react";
|
4
|
+
import { GlobalState } from "@babylonjs/gui-editor/globalState";
|
5
|
+
import "@babylonjs/gui-editor/scss/commandBar.scss";
|
6
|
+
interface ICommandBarComponentProps {
|
7
|
+
globalState: GlobalState;
|
8
|
+
}
|
9
|
+
export class CommandBarComponent extends React.Component<ICommandBarComponentProps> {
|
10
|
+
private _sizeOption;
|
11
|
+
constructor(props: ICommandBarComponentProps);
|
12
|
+
render(): JSX.Element;
|
13
|
+
}
|
14
|
+
export {};
|
18
15
|
|
19
16
|
}
|
20
17
|
declare module "@babylonjs/gui-editor/components/commandButtonComponent" {
|
21
|
-
import * as React from "react";
|
22
|
-
interface ICommandButtonComponentProps {
|
23
|
-
tooltip: string;
|
24
|
-
shortcut?: string;
|
25
|
-
icon: string;
|
26
|
-
iconLabel?: string;
|
27
|
-
isActive: boolean;
|
28
|
-
onClick: () => void;
|
29
|
-
altStyle?: boolean;
|
30
|
-
disabled?: boolean;
|
31
|
-
}
|
32
|
-
export class CommandButtonComponent extends React.Component<ICommandButtonComponentProps> {
|
33
|
-
constructor(props: ICommandButtonComponentProps);
|
34
|
-
render(): JSX.Element;
|
35
|
-
}
|
36
|
-
export {};
|
18
|
+
import * as React from "react";
|
19
|
+
interface ICommandButtonComponentProps {
|
20
|
+
tooltip: string;
|
21
|
+
shortcut?: string;
|
22
|
+
icon: string;
|
23
|
+
iconLabel?: string;
|
24
|
+
isActive: boolean;
|
25
|
+
onClick: () => void;
|
26
|
+
altStyle?: boolean;
|
27
|
+
disabled?: boolean;
|
28
|
+
}
|
29
|
+
export class CommandButtonComponent extends React.Component<ICommandButtonComponentProps> {
|
30
|
+
constructor(props: ICommandButtonComponentProps);
|
31
|
+
render(): JSX.Element;
|
32
|
+
}
|
33
|
+
export {};
|
37
34
|
|
38
35
|
}
|
39
36
|
declare module "@babylonjs/gui-editor/components/commandDropdownComponent" {
|
40
|
-
import * as React from "react";
|
41
|
-
import { GlobalState } from "@babylonjs/gui-editor/globalState";
|
42
|
-
interface ICommandDropdownComponentProps {
|
43
|
-
globalState: GlobalState;
|
44
|
-
icon?: string;
|
45
|
-
tooltip: string;
|
46
|
-
defaultValue?: string;
|
47
|
-
items: {
|
48
|
-
label: string;
|
49
|
-
icon?: string;
|
50
|
-
fileButton?: boolean;
|
51
|
-
onClick?: () => void;
|
52
|
-
onCheck?: (value: boolean) => void;
|
53
|
-
storeKey?: string;
|
54
|
-
isActive?: boolean;
|
55
|
-
defaultValue?: boolean | string;
|
56
|
-
subItems?: string[];
|
57
|
-
}[];
|
58
|
-
toRight?: boolean;
|
59
|
-
}
|
60
|
-
export class CommandDropdownComponent extends React.Component<ICommandDropdownComponentProps, {
|
61
|
-
isExpanded: boolean;
|
62
|
-
activeState: string;
|
63
|
-
}> {
|
64
|
-
constructor(props: ICommandDropdownComponentProps);
|
65
|
-
render(): JSX.Element;
|
66
|
-
}
|
67
|
-
export {};
|
37
|
+
import * as React from "react";
|
38
|
+
import { GlobalState } from "@babylonjs/gui-editor/globalState";
|
39
|
+
interface ICommandDropdownComponentProps {
|
40
|
+
globalState: GlobalState;
|
41
|
+
icon?: string;
|
42
|
+
tooltip: string;
|
43
|
+
defaultValue?: string;
|
44
|
+
items: {
|
45
|
+
label: string;
|
46
|
+
icon?: string;
|
47
|
+
fileButton?: boolean;
|
48
|
+
onClick?: () => void;
|
49
|
+
onCheck?: (value: boolean) => void;
|
50
|
+
storeKey?: string;
|
51
|
+
isActive?: boolean;
|
52
|
+
defaultValue?: boolean | string;
|
53
|
+
subItems?: string[];
|
54
|
+
}[];
|
55
|
+
toRight?: boolean;
|
56
|
+
}
|
57
|
+
export class CommandDropdownComponent extends React.Component<ICommandDropdownComponentProps, {
|
58
|
+
isExpanded: boolean;
|
59
|
+
activeState: string;
|
60
|
+
}> {
|
61
|
+
constructor(props: ICommandDropdownComponentProps);
|
62
|
+
render(): JSX.Element;
|
63
|
+
}
|
64
|
+
export {};
|
68
65
|
|
69
66
|
}
|
70
67
|
declare module "@babylonjs/gui-editor/components/guiList/guiListComponent" {
|
71
|
-
import * as React from "react";
|
72
|
-
import { GlobalState } from "@babylonjs/gui-editor/globalState";
|
73
|
-
import "@babylonjs/gui-editor/components/guiList/guiList.scss";
|
74
|
-
interface IGuiListComponentProps {
|
75
|
-
globalState: GlobalState;
|
76
|
-
}
|
77
|
-
export class GuiListComponent extends React.Component<IGuiListComponentProps, {
|
78
|
-
filter: string;
|
79
|
-
}> {
|
80
|
-
private _onResetRequiredObserver;
|
81
|
-
private static _Tooltips;
|
82
|
-
constructor(props: IGuiListComponentProps);
|
83
|
-
componentWillUnmount(): void;
|
84
|
-
filterContent(filter: string): void;
|
85
|
-
render(): JSX.Element;
|
86
|
-
}
|
87
|
-
export {};
|
68
|
+
import * as React from "react";
|
69
|
+
import { GlobalState } from "@babylonjs/gui-editor/globalState";
|
70
|
+
import "@babylonjs/gui-editor/components/guiList/guiList.scss";
|
71
|
+
interface IGuiListComponentProps {
|
72
|
+
globalState: GlobalState;
|
73
|
+
}
|
74
|
+
export class GuiListComponent extends React.Component<IGuiListComponentProps, {
|
75
|
+
filter: string;
|
76
|
+
}> {
|
77
|
+
private _onResetRequiredObserver;
|
78
|
+
private static _Tooltips;
|
79
|
+
constructor(props: IGuiListComponentProps);
|
80
|
+
componentWillUnmount(): void;
|
81
|
+
filterContent(filter: string): void;
|
82
|
+
render(): JSX.Element;
|
83
|
+
}
|
84
|
+
export {};
|
88
85
|
|
89
86
|
}
|
90
87
|
declare module "@babylonjs/gui-editor/components/log/logComponent" {
|
91
|
-
import * as React from "react";
|
92
|
-
import { GlobalState } from "@babylonjs/gui-editor/globalState";
|
93
|
-
import "@babylonjs/gui-editor/components/log/log.scss";
|
94
|
-
interface ILogComponentProps {
|
95
|
-
globalState: GlobalState;
|
96
|
-
}
|
97
|
-
export class LogEntry {
|
98
|
-
message: string;
|
99
|
-
isError: boolean;
|
100
|
-
constructor(message: string, isError: boolean);
|
101
|
-
}
|
102
|
-
export class LogComponent extends React.Component<ILogComponentProps, {
|
103
|
-
logs: LogEntry[];
|
104
|
-
}> {
|
105
|
-
constructor(props: ILogComponentProps);
|
106
|
-
componentDidMount(): void;
|
107
|
-
componentDidUpdate(): void;
|
108
|
-
render(): JSX.Element;
|
109
|
-
}
|
110
|
-
export {};
|
88
|
+
import * as React from "react";
|
89
|
+
import { GlobalState } from "@babylonjs/gui-editor/globalState";
|
90
|
+
import "@babylonjs/gui-editor/components/log/log.scss";
|
91
|
+
interface ILogComponentProps {
|
92
|
+
globalState: GlobalState;
|
93
|
+
}
|
94
|
+
export class LogEntry {
|
95
|
+
message: string;
|
96
|
+
isError: boolean;
|
97
|
+
constructor(message: string, isError: boolean);
|
98
|
+
}
|
99
|
+
export class LogComponent extends React.Component<ILogComponentProps, {
|
100
|
+
logs: LogEntry[];
|
101
|
+
}> {
|
102
|
+
constructor(props: ILogComponentProps);
|
103
|
+
componentDidMount(): void;
|
104
|
+
componentDidUpdate(): void;
|
105
|
+
render(): JSX.Element;
|
106
|
+
}
|
107
|
+
export {};
|
111
108
|
|
112
109
|
}
|
113
110
|
declare module "@babylonjs/gui-editor/components/parentingPropertyGridComponent" {
|
114
|
-
import * as React from "react";
|
115
|
-
import { Control } from "@babylonjs/gui/2D/controls/control";
|
116
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
117
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
118
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
119
|
-
interface IParentingPropertyGridComponentProps {
|
120
|
-
control: Control;
|
121
|
-
lockObject: LockObject;
|
122
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
123
|
-
}
|
124
|
-
export class ParentingPropertyGridComponent extends React.Component<IParentingPropertyGridComponentProps> {
|
125
|
-
constructor(props: IParentingPropertyGridComponentProps);
|
126
|
-
private _columnNumber;
|
127
|
-
private _rowNumber;
|
128
|
-
updateGridPosition(): void;
|
129
|
-
getCellInfo(): void;
|
130
|
-
private _changeCell;
|
131
|
-
render(): JSX.Element;
|
132
|
-
}
|
133
|
-
export {};
|
111
|
+
import * as React from "react";
|
112
|
+
import { Control } from "@babylonjs/gui/2D/controls/control";
|
113
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
114
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
115
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
116
|
+
interface IParentingPropertyGridComponentProps {
|
117
|
+
control: Control;
|
118
|
+
lockObject: LockObject;
|
119
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
120
|
+
}
|
121
|
+
export class ParentingPropertyGridComponent extends React.Component<IParentingPropertyGridComponentProps> {
|
122
|
+
constructor(props: IParentingPropertyGridComponentProps);
|
123
|
+
private _columnNumber;
|
124
|
+
private _rowNumber;
|
125
|
+
updateGridPosition(): void;
|
126
|
+
getCellInfo(): void;
|
127
|
+
private _changeCell;
|
128
|
+
render(): JSX.Element;
|
129
|
+
}
|
130
|
+
export {};
|
134
131
|
|
135
132
|
}
|
136
133
|
declare module "@babylonjs/gui-editor/components/propertyTab/propertyGrids/gui/buttonPropertyGridComponent" {
|
137
|
-
import * as React from "react";
|
138
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
139
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
140
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
141
|
-
import { Rectangle } from "@babylonjs/gui/2D/controls/rectangle";
|
142
|
-
interface IButtonPropertyGridComponentProps {
|
143
|
-
rectangles: Rectangle[];
|
144
|
-
lockObject: LockObject;
|
145
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
146
|
-
onAddComponent: (newComponent: string) => void;
|
147
|
-
}
|
148
|
-
export class ButtonPropertyGridComponent extends React.Component<IButtonPropertyGridComponentProps> {
|
149
|
-
constructor(props: IButtonPropertyGridComponentProps);
|
150
|
-
render(): JSX.Element;
|
151
|
-
}
|
152
|
-
export {};
|
134
|
+
import * as React from "react";
|
135
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
136
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
137
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
138
|
+
import { Rectangle } from "@babylonjs/gui/2D/controls/rectangle";
|
139
|
+
interface IButtonPropertyGridComponentProps {
|
140
|
+
rectangles: Rectangle[];
|
141
|
+
lockObject: LockObject;
|
142
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
143
|
+
onAddComponent: (newComponent: string) => void;
|
144
|
+
}
|
145
|
+
export class ButtonPropertyGridComponent extends React.Component<IButtonPropertyGridComponentProps> {
|
146
|
+
constructor(props: IButtonPropertyGridComponentProps);
|
147
|
+
render(): JSX.Element;
|
148
|
+
}
|
149
|
+
export {};
|
153
150
|
|
154
151
|
}
|
155
152
|
declare module "@babylonjs/gui-editor/components/propertyTab/propertyGrids/gui/checkboxPropertyGridComponent" {
|
156
|
-
import * as React from "react";
|
157
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
158
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
159
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
160
|
-
import { Checkbox } from "@babylonjs/gui/2D/controls/checkbox";
|
161
|
-
interface ICheckboxPropertyGridComponentProps {
|
162
|
-
checkboxes: Checkbox[];
|
163
|
-
lockObject: LockObject;
|
164
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
165
|
-
}
|
166
|
-
export class CheckboxPropertyGridComponent extends React.Component<ICheckboxPropertyGridComponentProps> {
|
167
|
-
constructor(props: ICheckboxPropertyGridComponentProps);
|
168
|
-
render(): JSX.Element;
|
169
|
-
}
|
170
|
-
export {};
|
153
|
+
import * as React from "react";
|
154
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
155
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
156
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
157
|
+
import { Checkbox } from "@babylonjs/gui/2D/controls/checkbox";
|
158
|
+
interface ICheckboxPropertyGridComponentProps {
|
159
|
+
checkboxes: Checkbox[];
|
160
|
+
lockObject: LockObject;
|
161
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
162
|
+
}
|
163
|
+
export class CheckboxPropertyGridComponent extends React.Component<ICheckboxPropertyGridComponentProps> {
|
164
|
+
constructor(props: ICheckboxPropertyGridComponentProps);
|
165
|
+
render(): JSX.Element;
|
166
|
+
}
|
167
|
+
export {};
|
171
168
|
|
172
169
|
}
|
173
170
|
declare module "@babylonjs/gui-editor/components/propertyTab/propertyGrids/gui/colorPickerPropertyGridComponent" {
|
174
|
-
import * as React from "react";
|
175
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
176
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
177
|
-
import { ColorPicker } from "@babylonjs/gui/2D/controls/colorpicker";
|
178
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
179
|
-
interface IColorPickerPropertyGridComponentProps {
|
180
|
-
colorPickers: ColorPicker[];
|
181
|
-
lockObject: LockObject;
|
182
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
183
|
-
}
|
184
|
-
export class ColorPickerPropertyGridComponent extends React.Component<IColorPickerPropertyGridComponentProps> {
|
185
|
-
constructor(props: IColorPickerPropertyGridComponentProps);
|
186
|
-
render(): JSX.Element;
|
187
|
-
}
|
188
|
-
export {};
|
171
|
+
import * as React from "react";
|
172
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
173
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
174
|
+
import { ColorPicker } from "@babylonjs/gui/2D/controls/colorpicker";
|
175
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
176
|
+
interface IColorPickerPropertyGridComponentProps {
|
177
|
+
colorPickers: ColorPicker[];
|
178
|
+
lockObject: LockObject;
|
179
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
180
|
+
}
|
181
|
+
export class ColorPickerPropertyGridComponent extends React.Component<IColorPickerPropertyGridComponentProps> {
|
182
|
+
constructor(props: IColorPickerPropertyGridComponentProps);
|
183
|
+
render(): JSX.Element;
|
184
|
+
}
|
185
|
+
export {};
|
189
186
|
|
190
187
|
}
|
191
188
|
declare module "@babylonjs/gui-editor/components/propertyTab/propertyGrids/gui/commonControlPropertyGridComponent" {
|
192
|
-
import * as React from "react";
|
193
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
194
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
195
|
-
import { Control } from "@babylonjs/gui/2D/controls/control";
|
196
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
197
|
-
interface ICommonControlPropertyGridComponentProps {
|
198
|
-
controls: Control[];
|
199
|
-
lockObject: LockObject;
|
200
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
private
|
207
|
-
private
|
208
|
-
private
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
189
|
+
import * as React from "react";
|
190
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
191
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
192
|
+
import { Control } from "@babylonjs/gui/2D/controls/control";
|
193
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
194
|
+
interface ICommonControlPropertyGridComponentProps {
|
195
|
+
controls: Control[];
|
196
|
+
lockObject: LockObject;
|
197
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
198
|
+
hideDimensions?: boolean;
|
199
|
+
}
|
200
|
+
export class CommonControlPropertyGridComponent extends React.Component<ICommonControlPropertyGridComponentProps> {
|
201
|
+
private _onPropertyChangedObserver;
|
202
|
+
constructor(props: ICommonControlPropertyGridComponentProps);
|
203
|
+
private _getTransformedReferenceCoordinate;
|
204
|
+
private _updateAlignment;
|
205
|
+
private _checkAndUpdateValues;
|
206
|
+
private _markChildrenAsDirty;
|
207
|
+
componentWillUnmount(): void;
|
208
|
+
render(): JSX.Element;
|
209
|
+
}
|
210
|
+
export {};
|
213
211
|
|
214
212
|
}
|
215
213
|
declare module "@babylonjs/gui-editor/components/propertyTab/propertyGrids/gui/containerPropertyGridComponent" {
|
216
|
-
import * as React from "react";
|
217
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
218
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
219
|
-
import { Container } from "@babylonjs/gui/2D/controls/container";
|
220
|
-
interface IContainerPropertyGridComponentProps {
|
221
|
-
containers: Container[];
|
222
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
223
|
-
}
|
224
|
-
export class ContainerPropertyGridComponent extends React.Component<IContainerPropertyGridComponentProps> {
|
225
|
-
render(): JSX.Element;
|
226
|
-
}
|
227
|
-
export {};
|
214
|
+
import * as React from "react";
|
215
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
216
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
217
|
+
import { Container } from "@babylonjs/gui/2D/controls/container";
|
218
|
+
interface IContainerPropertyGridComponentProps {
|
219
|
+
containers: Container[];
|
220
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
221
|
+
}
|
222
|
+
export class ContainerPropertyGridComponent extends React.Component<IContainerPropertyGridComponentProps> {
|
223
|
+
render(): JSX.Element;
|
224
|
+
}
|
225
|
+
export {};
|
228
226
|
|
229
227
|
}
|
230
228
|
declare module "@babylonjs/gui-editor/components/propertyTab/propertyGrids/gui/controlPropertyGridComponent" {
|
231
|
-
import * as React from "react";
|
232
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
233
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
234
|
-
import { Control } from "@babylonjs/gui/2D/controls/control";
|
235
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
236
|
-
interface IControlPropertyGridComponentProps {
|
237
|
-
controls: Control[];
|
238
|
-
lockObject: LockObject;
|
239
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
240
|
-
}
|
241
|
-
export class ControlPropertyGridComponent extends React.Component<IControlPropertyGridComponentProps> {
|
242
|
-
constructor(props: IControlPropertyGridComponentProps);
|
243
|
-
render(): JSX.Element;
|
244
|
-
}
|
245
|
-
export {};
|
229
|
+
import * as React from "react";
|
230
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
231
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
232
|
+
import { Control } from "@babylonjs/gui/2D/controls/control";
|
233
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
234
|
+
interface IControlPropertyGridComponentProps {
|
235
|
+
controls: Control[];
|
236
|
+
lockObject: LockObject;
|
237
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
238
|
+
}
|
239
|
+
export class ControlPropertyGridComponent extends React.Component<IControlPropertyGridComponentProps> {
|
240
|
+
constructor(props: IControlPropertyGridComponentProps);
|
241
|
+
render(): JSX.Element;
|
242
|
+
}
|
243
|
+
export {};
|
246
244
|
|
247
245
|
}
|
248
246
|
declare module "@babylonjs/gui-editor/components/propertyTab/propertyGrids/gui/displayGridPropertyGridComponent" {
|
249
|
-
import * as React from "react";
|
250
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
251
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
252
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
253
|
-
import { DisplayGrid } from "@babylonjs/gui/2D/controls/displayGrid";
|
254
|
-
interface IDisplayGridPropertyGridComponentProps {
|
255
|
-
displayGrids: DisplayGrid[];
|
256
|
-
lockObject: LockObject;
|
257
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
258
|
-
}
|
259
|
-
export class DisplayGridPropertyGridComponent extends React.Component<IDisplayGridPropertyGridComponentProps> {
|
260
|
-
constructor(props: IDisplayGridPropertyGridComponentProps);
|
261
|
-
render(): JSX.Element;
|
262
|
-
}
|
263
|
-
export {};
|
247
|
+
import * as React from "react";
|
248
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
249
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
250
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
251
|
+
import { DisplayGrid } from "@babylonjs/gui/2D/controls/displayGrid";
|
252
|
+
interface IDisplayGridPropertyGridComponentProps {
|
253
|
+
displayGrids: DisplayGrid[];
|
254
|
+
lockObject: LockObject;
|
255
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
256
|
+
}
|
257
|
+
export class DisplayGridPropertyGridComponent extends React.Component<IDisplayGridPropertyGridComponentProps> {
|
258
|
+
constructor(props: IDisplayGridPropertyGridComponentProps);
|
259
|
+
render(): JSX.Element;
|
260
|
+
}
|
261
|
+
export {};
|
264
262
|
|
265
263
|
}
|
266
264
|
declare module "@babylonjs/gui-editor/components/propertyTab/propertyGrids/gui/ellipsePropertyGridComponent" {
|
267
|
-
import * as React from "react";
|
268
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
269
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
270
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
271
|
-
import { Ellipse } from "@babylonjs/gui/2D/controls/ellipse";
|
272
|
-
interface IEllipsePropertyGridComponentProps {
|
273
|
-
ellipses: Ellipse[];
|
274
|
-
lockObject: LockObject;
|
275
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
276
|
-
}
|
277
|
-
export class EllipsePropertyGridComponent extends React.Component<IEllipsePropertyGridComponentProps> {
|
278
|
-
constructor(props: IEllipsePropertyGridComponentProps);
|
279
|
-
render(): JSX.Element;
|
280
|
-
}
|
281
|
-
export {};
|
265
|
+
import * as React from "react";
|
266
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
267
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
268
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
269
|
+
import { Ellipse } from "@babylonjs/gui/2D/controls/ellipse";
|
270
|
+
interface IEllipsePropertyGridComponentProps {
|
271
|
+
ellipses: Ellipse[];
|
272
|
+
lockObject: LockObject;
|
273
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
274
|
+
}
|
275
|
+
export class EllipsePropertyGridComponent extends React.Component<IEllipsePropertyGridComponentProps> {
|
276
|
+
constructor(props: IEllipsePropertyGridComponentProps);
|
277
|
+
render(): JSX.Element;
|
278
|
+
}
|
279
|
+
export {};
|
282
280
|
|
283
281
|
}
|
284
282
|
declare module "@babylonjs/gui-editor/components/propertyTab/propertyGrids/gui/gridPropertyGridComponent" {
|
285
|
-
import * as React from "react";
|
286
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
287
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
288
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
289
|
-
import { Grid } from "@babylonjs/gui/2D/controls/grid";
|
290
|
-
interface IGridPropertyGridComponentProps {
|
291
|
-
grids: Grid[];
|
292
|
-
lockObject: LockObject;
|
293
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
294
|
-
}
|
295
|
-
export class GridPropertyGridComponent extends React.Component<IGridPropertyGridComponentProps> {
|
296
|
-
constructor(props: IGridPropertyGridComponentProps);
|
297
|
-
private _removingColumn;
|
298
|
-
private _removingRow;
|
299
|
-
private _previousGrid;
|
300
|
-
private _rowDefinitions;
|
301
|
-
private _rowEditFlags;
|
302
|
-
private _columnEditFlags;
|
303
|
-
private _columnDefinitions;
|
304
|
-
private _editedRow;
|
305
|
-
private _editedColumn;
|
306
|
-
private _rowChild;
|
307
|
-
private _columnChild;
|
308
|
-
renderRows(): JSX.Element[];
|
309
|
-
setRowValues(): void;
|
310
|
-
setColumnValues(): void;
|
311
|
-
renderColumns(): JSX.Element[];
|
312
|
-
resizeRow(): void;
|
313
|
-
resizeColumn(): void;
|
314
|
-
checkValue(value: string, percent: boolean): string;
|
315
|
-
checkPercentage(value: string): boolean;
|
316
|
-
resetValues(): void;
|
317
|
-
render(): JSX.Element;
|
318
|
-
}
|
319
|
-
export {};
|
283
|
+
import * as React from "react";
|
284
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
285
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
286
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
287
|
+
import { Grid } from "@babylonjs/gui/2D/controls/grid";
|
288
|
+
interface IGridPropertyGridComponentProps {
|
289
|
+
grids: Grid[];
|
290
|
+
lockObject: LockObject;
|
291
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
292
|
+
}
|
293
|
+
export class GridPropertyGridComponent extends React.Component<IGridPropertyGridComponentProps> {
|
294
|
+
constructor(props: IGridPropertyGridComponentProps);
|
295
|
+
private _removingColumn;
|
296
|
+
private _removingRow;
|
297
|
+
private _previousGrid;
|
298
|
+
private _rowDefinitions;
|
299
|
+
private _rowEditFlags;
|
300
|
+
private _columnEditFlags;
|
301
|
+
private _columnDefinitions;
|
302
|
+
private _editedRow;
|
303
|
+
private _editedColumn;
|
304
|
+
private _rowChild;
|
305
|
+
private _columnChild;
|
306
|
+
renderRows(): JSX.Element[];
|
307
|
+
setRowValues(): void;
|
308
|
+
setColumnValues(): void;
|
309
|
+
renderColumns(): JSX.Element[];
|
310
|
+
resizeRow(): void;
|
311
|
+
resizeColumn(): void;
|
312
|
+
checkValue(value: string, percent: boolean): string;
|
313
|
+
checkPercentage(value: string): boolean;
|
314
|
+
resetValues(): void;
|
315
|
+
render(): JSX.Element;
|
316
|
+
}
|
317
|
+
export {};
|
320
318
|
|
321
319
|
}
|
322
320
|
declare module "@babylonjs/gui-editor/components/propertyTab/propertyGrids/gui/imageBasedSliderPropertyGridComponent" {
|
323
|
-
import * as React from "react";
|
324
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
325
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
326
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
327
|
-
import { ImageBasedSlider } from "@babylonjs/gui/2D/controls/sliders/imageBasedSlider";
|
328
|
-
interface IImageBasedSliderPropertyGridComponentProps {
|
329
|
-
imageBasedSliders: ImageBasedSlider[];
|
330
|
-
lockObject: LockObject;
|
331
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
332
|
-
}
|
333
|
-
export class ImageBasedSliderPropertyGridComponent extends React.Component<IImageBasedSliderPropertyGridComponentProps> {
|
334
|
-
constructor(props: IImageBasedSliderPropertyGridComponentProps);
|
335
|
-
render(): JSX.Element;
|
336
|
-
}
|
337
|
-
export {};
|
321
|
+
import * as React from "react";
|
322
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
323
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
324
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
325
|
+
import { ImageBasedSlider } from "@babylonjs/gui/2D/controls/sliders/imageBasedSlider";
|
326
|
+
interface IImageBasedSliderPropertyGridComponentProps {
|
327
|
+
imageBasedSliders: ImageBasedSlider[];
|
328
|
+
lockObject: LockObject;
|
329
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
330
|
+
}
|
331
|
+
export class ImageBasedSliderPropertyGridComponent extends React.Component<IImageBasedSliderPropertyGridComponentProps> {
|
332
|
+
constructor(props: IImageBasedSliderPropertyGridComponentProps);
|
333
|
+
render(): JSX.Element;
|
334
|
+
}
|
335
|
+
export {};
|
338
336
|
|
339
337
|
}
|
340
338
|
declare module "@babylonjs/gui-editor/components/propertyTab/propertyGrids/gui/imagePropertyGridComponent" {
|
341
|
-
import * as React from "react";
|
342
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
343
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
344
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
345
|
-
import { Image } from "@babylonjs/gui/2D/controls/image";
|
346
|
-
interface IImagePropertyGridComponentProps {
|
347
|
-
images: Image[];
|
348
|
-
lockObject: LockObject;
|
349
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
350
|
-
}
|
351
|
-
export class ImagePropertyGridComponent extends React.Component<IImagePropertyGridComponentProps> {
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
339
|
+
import * as React from "react";
|
340
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
341
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
342
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
343
|
+
import { Image } from "@babylonjs/gui/2D/controls/image";
|
344
|
+
interface IImagePropertyGridComponentProps {
|
345
|
+
images: Image[];
|
346
|
+
lockObject: LockObject;
|
347
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
348
|
+
}
|
349
|
+
export class ImagePropertyGridComponent extends React.Component<IImagePropertyGridComponentProps> {
|
350
|
+
private _observers;
|
351
|
+
constructor(props: IImagePropertyGridComponentProps);
|
352
|
+
shouldComponentUpdate(nextProps: IImagePropertyGridComponentProps): boolean;
|
353
|
+
updateObservers(oldImages: Image[], newImages: Image[]): void;
|
354
|
+
componentWillUnmount(): void;
|
355
|
+
toggleAnimations(on: boolean): void;
|
356
|
+
getMaxCells(): number;
|
357
|
+
updateCellSize(): void;
|
358
|
+
render(): JSX.Element;
|
359
|
+
}
|
360
|
+
export {};
|
359
361
|
|
360
362
|
}
|
361
363
|
declare module "@babylonjs/gui-editor/components/propertyTab/propertyGrids/gui/inputTextPropertyGridComponent" {
|
362
|
-
import * as React from "react";
|
363
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
364
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
365
|
-
import { InputText } from "@babylonjs/gui/2D/controls/inputText";
|
366
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
367
|
-
interface IInputTextPropertyGridComponentProps {
|
368
|
-
inputTexts: InputText[];
|
369
|
-
lockObject: LockObject;
|
370
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
371
|
-
}
|
372
|
-
export class InputTextPropertyGridComponent extends React.Component<IInputTextPropertyGridComponentProps> {
|
373
|
-
constructor(props: IInputTextPropertyGridComponentProps);
|
374
|
-
render(): JSX.Element;
|
375
|
-
}
|
376
|
-
export {};
|
364
|
+
import * as React from "react";
|
365
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
366
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
367
|
+
import { InputText } from "@babylonjs/gui/2D/controls/inputText";
|
368
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
369
|
+
interface IInputTextPropertyGridComponentProps {
|
370
|
+
inputTexts: InputText[];
|
371
|
+
lockObject: LockObject;
|
372
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
373
|
+
}
|
374
|
+
export class InputTextPropertyGridComponent extends React.Component<IInputTextPropertyGridComponentProps> {
|
375
|
+
constructor(props: IInputTextPropertyGridComponentProps);
|
376
|
+
render(): JSX.Element;
|
377
|
+
}
|
378
|
+
export {};
|
377
379
|
|
378
380
|
}
|
379
381
|
declare module "@babylonjs/gui-editor/components/propertyTab/propertyGrids/gui/linePropertyGridComponent" {
|
380
|
-
import * as React from "react";
|
381
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
382
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
383
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
384
|
-
import { Line } from "@babylonjs/gui/2D/controls/line";
|
385
|
-
interface ILinePropertyGridComponentProps {
|
386
|
-
lines: Line[];
|
387
|
-
lockObject: LockObject;
|
388
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
389
|
-
}
|
390
|
-
export class LinePropertyGridComponent extends React.Component<ILinePropertyGridComponentProps> {
|
391
|
-
constructor(props: ILinePropertyGridComponentProps);
|
392
|
-
onDashChange(value: string): void;
|
393
|
-
render(): JSX.Element;
|
394
|
-
}
|
395
|
-
export {};
|
382
|
+
import * as React from "react";
|
383
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
384
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
385
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
386
|
+
import { Line } from "@babylonjs/gui/2D/controls/line";
|
387
|
+
interface ILinePropertyGridComponentProps {
|
388
|
+
lines: Line[];
|
389
|
+
lockObject: LockObject;
|
390
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
391
|
+
}
|
392
|
+
export class LinePropertyGridComponent extends React.Component<ILinePropertyGridComponentProps> {
|
393
|
+
constructor(props: ILinePropertyGridComponentProps);
|
394
|
+
onDashChange(value: string): void;
|
395
|
+
render(): JSX.Element;
|
396
|
+
}
|
397
|
+
export {};
|
396
398
|
|
397
399
|
}
|
398
400
|
declare module "@babylonjs/gui-editor/components/propertyTab/propertyGrids/gui/radioButtonPropertyGridComponent" {
|
399
|
-
import * as React from "react";
|
400
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
401
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
402
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
403
|
-
import { RadioButton } from "@babylonjs/gui/2D/controls/radioButton";
|
404
|
-
interface IRadioButtonPropertyGridComponentProps {
|
405
|
-
radioButtons: RadioButton[];
|
406
|
-
lockObject: LockObject;
|
407
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
408
|
-
}
|
409
|
-
export class RadioButtonPropertyGridComponent extends React.Component<IRadioButtonPropertyGridComponentProps> {
|
410
|
-
constructor(props: IRadioButtonPropertyGridComponentProps);
|
411
|
-
render(): JSX.Element;
|
412
|
-
}
|
413
|
-
export {};
|
401
|
+
import * as React from "react";
|
402
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
403
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
404
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
405
|
+
import { RadioButton } from "@babylonjs/gui/2D/controls/radioButton";
|
406
|
+
interface IRadioButtonPropertyGridComponentProps {
|
407
|
+
radioButtons: RadioButton[];
|
408
|
+
lockObject: LockObject;
|
409
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
410
|
+
}
|
411
|
+
export class RadioButtonPropertyGridComponent extends React.Component<IRadioButtonPropertyGridComponentProps> {
|
412
|
+
constructor(props: IRadioButtonPropertyGridComponentProps);
|
413
|
+
render(): JSX.Element;
|
414
|
+
}
|
415
|
+
export {};
|
414
416
|
|
415
417
|
}
|
416
418
|
declare module "@babylonjs/gui-editor/components/propertyTab/propertyGrids/gui/rectanglePropertyGridComponent" {
|
417
|
-
import * as React from "react";
|
418
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
419
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
420
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
421
|
-
import { Rectangle } from "@babylonjs/gui/2D/controls/rectangle";
|
422
|
-
interface IRectanglePropertyGridComponentProps {
|
423
|
-
rectangles: Rectangle[];
|
424
|
-
lockObject: LockObject;
|
425
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
426
|
-
}
|
427
|
-
export class RectanglePropertyGridComponent extends React.Component<IRectanglePropertyGridComponentProps> {
|
428
|
-
constructor(props: IRectanglePropertyGridComponentProps);
|
429
|
-
render(): JSX.Element;
|
430
|
-
}
|
431
|
-
export {};
|
419
|
+
import * as React from "react";
|
420
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
421
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
422
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
423
|
+
import { Rectangle } from "@babylonjs/gui/2D/controls/rectangle";
|
424
|
+
interface IRectanglePropertyGridComponentProps {
|
425
|
+
rectangles: Rectangle[];
|
426
|
+
lockObject: LockObject;
|
427
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
428
|
+
}
|
429
|
+
export class RectanglePropertyGridComponent extends React.Component<IRectanglePropertyGridComponentProps> {
|
430
|
+
constructor(props: IRectanglePropertyGridComponentProps);
|
431
|
+
render(): JSX.Element;
|
432
|
+
}
|
433
|
+
export {};
|
432
434
|
|
433
435
|
}
|
434
436
|
declare module "@babylonjs/gui-editor/components/propertyTab/propertyGrids/gui/scrollViewerPropertyGridComponent" {
|
435
|
-
import * as React from "react";
|
436
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
437
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
438
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
439
|
-
import { ScrollViewer } from "@babylonjs/gui/2D/controls/scrollViewers/scrollViewer";
|
440
|
-
interface IScrollViewerPropertyGridComponentProps {
|
441
|
-
scrollViewers: ScrollViewer[];
|
442
|
-
lockObject: LockObject;
|
443
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
444
|
-
}
|
445
|
-
export class ScrollViewerPropertyGridComponent extends React.Component<IScrollViewerPropertyGridComponentProps> {
|
446
|
-
constructor(props: IScrollViewerPropertyGridComponentProps);
|
447
|
-
render(): JSX.Element;
|
448
|
-
}
|
449
|
-
export {};
|
437
|
+
import * as React from "react";
|
438
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
439
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
440
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
441
|
+
import { ScrollViewer } from "@babylonjs/gui/2D/controls/scrollViewers/scrollViewer";
|
442
|
+
interface IScrollViewerPropertyGridComponentProps {
|
443
|
+
scrollViewers: ScrollViewer[];
|
444
|
+
lockObject: LockObject;
|
445
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
446
|
+
}
|
447
|
+
export class ScrollViewerPropertyGridComponent extends React.Component<IScrollViewerPropertyGridComponentProps> {
|
448
|
+
constructor(props: IScrollViewerPropertyGridComponentProps);
|
449
|
+
render(): JSX.Element;
|
450
|
+
}
|
451
|
+
export {};
|
450
452
|
|
451
453
|
}
|
452
454
|
declare module "@babylonjs/gui-editor/components/propertyTab/propertyGrids/gui/sliderGenericPropertyGridComponent" {
|
453
|
-
import * as React from "react";
|
454
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
455
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
456
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
457
|
-
import { Slider } from "@babylonjs/gui/2D/controls/sliders/slider";
|
458
|
-
interface ISliderGenericPropertyGridComponentProps {
|
459
|
-
sliders: Slider[];
|
460
|
-
lockObject: LockObject;
|
461
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
462
|
-
}
|
463
|
-
export class SliderGenericPropertyGridComponent extends React.Component<ISliderGenericPropertyGridComponentProps> {
|
464
|
-
constructor(props: ISliderGenericPropertyGridComponentProps);
|
465
|
-
render(): JSX.Element;
|
466
|
-
}
|
467
|
-
export {};
|
455
|
+
import * as React from "react";
|
456
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
457
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
458
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
459
|
+
import { Slider } from "@babylonjs/gui/2D/controls/sliders/slider";
|
460
|
+
interface ISliderGenericPropertyGridComponentProps {
|
461
|
+
sliders: Slider[];
|
462
|
+
lockObject: LockObject;
|
463
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
464
|
+
}
|
465
|
+
export class SliderGenericPropertyGridComponent extends React.Component<ISliderGenericPropertyGridComponentProps> {
|
466
|
+
constructor(props: ISliderGenericPropertyGridComponentProps);
|
467
|
+
render(): JSX.Element;
|
468
|
+
}
|
469
|
+
export {};
|
468
470
|
|
469
471
|
}
|
470
472
|
declare module "@babylonjs/gui-editor/components/propertyTab/propertyGrids/gui/sliderPropertyGridComponent" {
|
471
|
-
import * as React from "react";
|
472
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
473
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
474
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
475
|
-
import { Slider } from "@babylonjs/gui/2D/controls/sliders/slider";
|
476
|
-
import { ImageBasedSlider } from "@babylonjs/gui/2D/controls/sliders/imageBasedSlider";
|
477
|
-
interface ISliderPropertyGridComponentProps {
|
478
|
-
sliders: (Slider | ImageBasedSlider)[];
|
479
|
-
lockObject: LockObject;
|
480
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
481
|
-
}
|
482
|
-
export class SliderPropertyGridComponent extends React.Component<ISliderPropertyGridComponentProps> {
|
483
|
-
constructor(props: ISliderPropertyGridComponentProps);
|
484
|
-
render(): JSX.Element;
|
485
|
-
}
|
486
|
-
export {};
|
473
|
+
import * as React from "react";
|
474
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
475
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
476
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
477
|
+
import { Slider } from "@babylonjs/gui/2D/controls/sliders/slider";
|
478
|
+
import { ImageBasedSlider } from "@babylonjs/gui/2D/controls/sliders/imageBasedSlider";
|
479
|
+
interface ISliderPropertyGridComponentProps {
|
480
|
+
sliders: (Slider | ImageBasedSlider)[];
|
481
|
+
lockObject: LockObject;
|
482
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
483
|
+
}
|
484
|
+
export class SliderPropertyGridComponent extends React.Component<ISliderPropertyGridComponentProps> {
|
485
|
+
constructor(props: ISliderPropertyGridComponentProps);
|
486
|
+
render(): JSX.Element;
|
487
|
+
}
|
488
|
+
export {};
|
487
489
|
|
488
490
|
}
|
489
491
|
declare module "@babylonjs/gui-editor/components/propertyTab/propertyGrids/gui/stackPanelPropertyGridComponent" {
|
490
|
-
import * as React from "react";
|
491
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
492
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
493
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
494
|
-
import { StackPanel } from "@babylonjs/gui/2D/controls/stackPanel";
|
495
|
-
interface IStackPanelPropertyGridComponentProps {
|
496
|
-
stackPanels: StackPanel[];
|
497
|
-
lockObject: LockObject;
|
498
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
499
|
-
}
|
500
|
-
export class StackPanelPropertyGridComponent extends React.Component<IStackPanelPropertyGridComponentProps> {
|
501
|
-
constructor(props: IStackPanelPropertyGridComponentProps);
|
502
|
-
render(): JSX.Element;
|
503
|
-
}
|
504
|
-
export {};
|
492
|
+
import * as React from "react";
|
493
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
494
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
495
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
496
|
+
import { StackPanel } from "@babylonjs/gui/2D/controls/stackPanel";
|
497
|
+
interface IStackPanelPropertyGridComponentProps {
|
498
|
+
stackPanels: StackPanel[];
|
499
|
+
lockObject: LockObject;
|
500
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
501
|
+
}
|
502
|
+
export class StackPanelPropertyGridComponent extends React.Component<IStackPanelPropertyGridComponentProps> {
|
503
|
+
constructor(props: IStackPanelPropertyGridComponentProps);
|
504
|
+
render(): JSX.Element;
|
505
|
+
}
|
506
|
+
export {};
|
505
507
|
|
506
508
|
}
|
507
509
|
declare module "@babylonjs/gui-editor/components/propertyTab/propertyGrids/gui/textBlockPropertyGridComponent" {
|
508
|
-
import * as React from "react";
|
509
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
510
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
511
|
-
import { TextBlock } from "@babylonjs/gui/2D/controls/textBlock";
|
512
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
513
|
-
interface ITextBlockPropertyGridComponentProps {
|
514
|
-
textBlocks: TextBlock[];
|
515
|
-
lockObject: LockObject;
|
516
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
517
|
-
}
|
518
|
-
export class TextBlockPropertyGridComponent extends React.Component<ITextBlockPropertyGridComponentProps> {
|
519
|
-
constructor(props: ITextBlockPropertyGridComponentProps);
|
520
|
-
render(): JSX.Element;
|
521
|
-
}
|
522
|
-
export {};
|
510
|
+
import * as React from "react";
|
511
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
512
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
513
|
+
import { TextBlock } from "@babylonjs/gui/2D/controls/textBlock";
|
514
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
515
|
+
interface ITextBlockPropertyGridComponentProps {
|
516
|
+
textBlocks: TextBlock[];
|
517
|
+
lockObject: LockObject;
|
518
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
519
|
+
}
|
520
|
+
export class TextBlockPropertyGridComponent extends React.Component<ITextBlockPropertyGridComponentProps> {
|
521
|
+
constructor(props: ITextBlockPropertyGridComponentProps);
|
522
|
+
render(): JSX.Element;
|
523
|
+
}
|
524
|
+
export {};
|
523
525
|
|
524
526
|
}
|
525
527
|
declare module "@babylonjs/gui-editor/components/propertyTab/propertyTabComponent" {
|
526
|
-
import * as React from "react";
|
527
|
-
import { GlobalState } from "@babylonjs/gui-editor/globalState";
|
528
|
-
import { Control } from "@babylonjs/gui/2D/controls/control";
|
529
|
-
import { AdvancedDynamicTexture } from "@babylonjs/gui/2D/advancedDynamicTexture";
|
530
|
-
import "@babylonjs/gui-editor/components/propertyTab/propertyTab.scss";
|
531
|
-
interface IPropertyTabComponentProps {
|
532
|
-
globalState: GlobalState;
|
533
|
-
}
|
534
|
-
export class PropertyTabComponent extends React.Component<IPropertyTabComponentProps> {
|
535
|
-
private _onBuiltObserver;
|
536
|
-
private _timerIntervalId;
|
537
|
-
private _lockObject;
|
538
|
-
constructor(props: IPropertyTabComponentProps);
|
539
|
-
componentDidMount(): void;
|
540
|
-
componentWillUnmount(): void;
|
541
|
-
load(file: File): void;
|
542
|
-
save(saveCallback: () => void): void;
|
543
|
-
saveLocally: () => void;
|
544
|
-
saveToSnippetServerHelper: (content: string, adt: AdvancedDynamicTexture) => Promise<string>;
|
545
|
-
saveToSnippetServer: () => Promise<void>;
|
546
|
-
loadFromSnippet(): void;
|
547
|
-
renderNode(nodes: Control[]): JSX.Element;
|
548
|
-
/**
|
549
|
-
* returns the class name of a list of controls if they share a class, or an empty string if not
|
550
|
-
* @param nodes
|
551
|
-
*/
|
552
|
-
getControlsCommonClassName(nodes: Control[]): string;
|
553
|
-
renderProperties(nodes: Control[]): JSX.Element | undefined;
|
554
|
-
renderControlIcon(nodes: Control[]): string;
|
555
|
-
render(): JSX.Element | null;
|
556
|
-
}
|
557
|
-
export {};
|
528
|
+
import * as React from "react";
|
529
|
+
import { GlobalState } from "@babylonjs/gui-editor/globalState";
|
530
|
+
import { Control } from "@babylonjs/gui/2D/controls/control";
|
531
|
+
import { AdvancedDynamicTexture } from "@babylonjs/gui/2D/advancedDynamicTexture";
|
532
|
+
import "@babylonjs/gui-editor/components/propertyTab/propertyTab.scss";
|
533
|
+
interface IPropertyTabComponentProps {
|
534
|
+
globalState: GlobalState;
|
535
|
+
}
|
536
|
+
export class PropertyTabComponent extends React.Component<IPropertyTabComponentProps> {
|
537
|
+
private _onBuiltObserver;
|
538
|
+
private _timerIntervalId;
|
539
|
+
private _lockObject;
|
540
|
+
constructor(props: IPropertyTabComponentProps);
|
541
|
+
componentDidMount(): void;
|
542
|
+
componentWillUnmount(): void;
|
543
|
+
load(file: File): void;
|
544
|
+
save(saveCallback: () => void): void;
|
545
|
+
saveLocally: () => void;
|
546
|
+
saveToSnippetServerHelper: (content: string, adt: AdvancedDynamicTexture) => Promise<string>;
|
547
|
+
saveToSnippetServer: () => Promise<void>;
|
548
|
+
loadFromSnippet(): void;
|
549
|
+
renderNode(nodes: Control[]): JSX.Element;
|
550
|
+
/**
|
551
|
+
* returns the class name of a list of controls if they share a class, or an empty string if not
|
552
|
+
* @param nodes
|
553
|
+
*/
|
554
|
+
getControlsCommonClassName(nodes: Control[]): string;
|
555
|
+
renderProperties(nodes: Control[]): JSX.Element | undefined;
|
556
|
+
renderControlIcon(nodes: Control[]): string;
|
557
|
+
render(): JSX.Element | null;
|
558
|
+
}
|
559
|
+
export {};
|
558
560
|
|
559
561
|
}
|
560
562
|
declare module "@babylonjs/gui-editor/components/sceneExplorer/entities/gui/controlTreeItemComponent" {
|
561
|
-
import { IExplorerExtensibilityGroup } from "@babylonjs/core/Debug/debugLayer";
|
562
|
-
import { Control } from "@babylonjs/gui/2D/controls/control";
|
563
|
-
import * as React from "react";
|
564
|
-
import {
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
563
|
+
import { IExplorerExtensibilityGroup } from "@babylonjs/core/Debug/debugLayer";
|
564
|
+
import { Control } from "@babylonjs/gui/2D/controls/control";
|
565
|
+
import * as React from "react";
|
566
|
+
import { GlobalState } from "@babylonjs/gui-editor/globalState";
|
567
|
+
import { DragOverLocation } from "@babylonjs/gui-editor/globalState";
|
568
|
+
interface IControlTreeItemComponentProps {
|
569
|
+
control: Control;
|
570
|
+
extensibilityGroups?: IExplorerExtensibilityGroup[];
|
571
|
+
onClick: () => void;
|
572
|
+
globalState: GlobalState;
|
573
|
+
isHovered: boolean;
|
574
|
+
isDragOver: boolean;
|
575
|
+
dragOverLocation: DragOverLocation;
|
576
|
+
}
|
577
|
+
export class ControlTreeItemComponent extends React.Component<IControlTreeItemComponentProps, {
|
578
|
+
isActive: boolean;
|
579
|
+
isVisible: boolean;
|
580
|
+
isRenaming: boolean;
|
581
|
+
}> {
|
582
|
+
constructor(props: IControlTreeItemComponentProps);
|
583
|
+
highlight(): void;
|
584
|
+
switchVisibility(): void;
|
585
|
+
onRename(name: string): void;
|
586
|
+
render(): JSX.Element;
|
587
|
+
}
|
588
|
+
export {};
|
586
589
|
|
587
590
|
}
|
588
591
|
declare module "@babylonjs/gui-editor/components/sceneExplorer/extensionsComponent" {
|
589
|
-
import * as React from "react";
|
590
|
-
import { IExplorerExtensibilityGroup } from "@babylonjs/core/Debug/debugLayer";
|
591
|
-
interface IExtensionsComponentProps {
|
592
|
-
target: any;
|
593
|
-
extensibilityGroups?: IExplorerExtensibilityGroup[];
|
594
|
-
}
|
595
|
-
export class ExtensionsComponent extends React.Component<IExtensionsComponentProps, {
|
596
|
-
popupVisible: boolean;
|
597
|
-
}> {
|
598
|
-
private _popup;
|
599
|
-
private _extensionRef;
|
600
|
-
constructor(props: IExtensionsComponentProps);
|
601
|
-
showPopup(): void;
|
602
|
-
componentDidMount(): void;
|
603
|
-
componentDidUpdate(): void;
|
604
|
-
render(): JSX.Element | null;
|
605
|
-
}
|
606
|
-
export {};
|
592
|
+
import * as React from "react";
|
593
|
+
import { IExplorerExtensibilityGroup } from "@babylonjs/core/Debug/debugLayer";
|
594
|
+
interface IExtensionsComponentProps {
|
595
|
+
target: any;
|
596
|
+
extensibilityGroups?: IExplorerExtensibilityGroup[];
|
597
|
+
}
|
598
|
+
export class ExtensionsComponent extends React.Component<IExtensionsComponentProps, {
|
599
|
+
popupVisible: boolean;
|
600
|
+
}> {
|
601
|
+
private _popup;
|
602
|
+
private _extensionRef;
|
603
|
+
constructor(props: IExtensionsComponentProps);
|
604
|
+
showPopup(): void;
|
605
|
+
componentDidMount(): void;
|
606
|
+
componentDidUpdate(): void;
|
607
|
+
render(): JSX.Element | null;
|
608
|
+
}
|
609
|
+
export {};
|
607
610
|
|
608
611
|
}
|
609
612
|
declare module "@babylonjs/gui-editor/components/sceneExplorer/sceneExplorerComponent" {
|
610
|
-
import * as React from "react";
|
611
|
-
import { Nullable } from "@babylonjs/core/types";
|
612
|
-
import { IExplorerExtensibilityGroup } from "@babylonjs/core/Debug/debugLayer";
|
613
|
-
import { Scene } from "@babylonjs/core/scene";
|
614
|
-
import { GlobalState } from "@babylonjs/gui-editor/globalState";
|
615
|
-
import "@babylonjs/gui-editor/components/sceneExplorer/sceneExplorer.scss";
|
616
|
-
interface ISceneExplorerFilterComponentProps {
|
617
|
-
onFilter: (filter: string) => void;
|
618
|
-
}
|
619
|
-
export class SceneExplorerFilterComponent extends React.Component<ISceneExplorerFilterComponentProps> {
|
620
|
-
constructor(props: ISceneExplorerFilterComponentProps);
|
621
|
-
render(): JSX.Element;
|
622
|
-
}
|
623
|
-
interface ISceneExplorerComponentProps {
|
624
|
-
scene?: Scene;
|
625
|
-
noCommands?: boolean;
|
626
|
-
noHeader?: boolean;
|
627
|
-
noExpand?: boolean;
|
628
|
-
noClose?: boolean;
|
629
|
-
extensibilityGroups?: IExplorerExtensibilityGroup[];
|
630
|
-
globalState: GlobalState;
|
631
|
-
popupMode?: boolean;
|
632
|
-
onPopup?: () => void;
|
633
|
-
onClose?: () => void;
|
634
|
-
}
|
635
|
-
export class SceneExplorerComponent extends React.Component<ISceneExplorerComponentProps, {
|
636
|
-
filter: Nullable<string>;
|
637
|
-
selectedEntity: any;
|
638
|
-
scene: Nullable<Scene>;
|
639
|
-
}> {
|
640
|
-
private _onSelectionChangeObserver;
|
641
|
-
private _onParrentingChangeObserver;
|
642
|
-
private _onNewSceneObserver;
|
643
|
-
private _onPropertyChangedObservable;
|
644
|
-
constructor(props: ISceneExplorerComponentProps);
|
645
|
-
componentDidMount(): void;
|
646
|
-
componentWillUnmount(): void;
|
647
|
-
filterContent(filter: string): void;
|
648
|
-
findSiblings(parent: any, items: any[], target: any, goNext: boolean, data: {
|
649
|
-
previousOne?: any;
|
650
|
-
found?: boolean;
|
651
|
-
}): boolean;
|
652
|
-
processKeys(keyEvent: React.KeyboardEvent<HTMLDivElement>): void;
|
653
|
-
renderContent(): JSX.Element | null;
|
654
|
-
onClose(): void;
|
655
|
-
onPopup(): void;
|
656
|
-
render(): JSX.Element;
|
657
|
-
}
|
658
|
-
export {};
|
613
|
+
import * as React from "react";
|
614
|
+
import { Nullable } from "@babylonjs/core/types";
|
615
|
+
import { IExplorerExtensibilityGroup } from "@babylonjs/core/Debug/debugLayer";
|
616
|
+
import { Scene } from "@babylonjs/core/scene";
|
617
|
+
import { GlobalState } from "@babylonjs/gui-editor/globalState";
|
618
|
+
import "@babylonjs/gui-editor/components/sceneExplorer/sceneExplorer.scss";
|
619
|
+
interface ISceneExplorerFilterComponentProps {
|
620
|
+
onFilter: (filter: string) => void;
|
621
|
+
}
|
622
|
+
export class SceneExplorerFilterComponent extends React.Component<ISceneExplorerFilterComponentProps> {
|
623
|
+
constructor(props: ISceneExplorerFilterComponentProps);
|
624
|
+
render(): JSX.Element;
|
625
|
+
}
|
626
|
+
interface ISceneExplorerComponentProps {
|
627
|
+
scene?: Scene;
|
628
|
+
noCommands?: boolean;
|
629
|
+
noHeader?: boolean;
|
630
|
+
noExpand?: boolean;
|
631
|
+
noClose?: boolean;
|
632
|
+
extensibilityGroups?: IExplorerExtensibilityGroup[];
|
633
|
+
globalState: GlobalState;
|
634
|
+
popupMode?: boolean;
|
635
|
+
onPopup?: () => void;
|
636
|
+
onClose?: () => void;
|
637
|
+
}
|
638
|
+
export class SceneExplorerComponent extends React.Component<ISceneExplorerComponentProps, {
|
639
|
+
filter: Nullable<string>;
|
640
|
+
selectedEntity: any;
|
641
|
+
scene: Nullable<Scene>;
|
642
|
+
}> {
|
643
|
+
private _onSelectionChangeObserver;
|
644
|
+
private _onParrentingChangeObserver;
|
645
|
+
private _onNewSceneObserver;
|
646
|
+
private _onPropertyChangedObservable;
|
647
|
+
constructor(props: ISceneExplorerComponentProps);
|
648
|
+
componentDidMount(): void;
|
649
|
+
componentWillUnmount(): void;
|
650
|
+
filterContent(filter: string): void;
|
651
|
+
findSiblings(parent: any, items: any[], target: any, goNext: boolean, data: {
|
652
|
+
previousOne?: any;
|
653
|
+
found?: boolean;
|
654
|
+
}): boolean;
|
655
|
+
processKeys(keyEvent: React.KeyboardEvent<HTMLDivElement>): void;
|
656
|
+
renderContent(): JSX.Element | null;
|
657
|
+
onClose(): void;
|
658
|
+
onPopup(): void;
|
659
|
+
render(): JSX.Element;
|
660
|
+
}
|
661
|
+
export {};
|
659
662
|
|
660
663
|
}
|
661
664
|
declare module "@babylonjs/gui-editor/components/sceneExplorer/treeItemComponent" {
|
662
|
-
import * as React from "react";
|
663
|
-
import { Nullable } from "@babylonjs/core/types";
|
664
|
-
import { IExplorerExtensibilityGroup } from "@babylonjs/core/Debug/debugLayer";
|
665
|
-
import { GlobalState } from "@babylonjs/gui-editor/globalState";
|
666
|
-
export interface ITreeItemComponentProps {
|
667
|
-
items?: Nullable<any[]>;
|
668
|
-
label: string;
|
669
|
-
offset: number;
|
670
|
-
filter: Nullable<string>;
|
671
|
-
forceSubitems?: boolean;
|
672
|
-
globalState: GlobalState;
|
673
|
-
entity?: any;
|
674
|
-
selectedEntities: any[];
|
675
|
-
extensibilityGroups?: IExplorerExtensibilityGroup[];
|
676
|
-
contextMenuItems?: {
|
677
|
-
label: string;
|
678
|
-
action: () => void;
|
679
|
-
}[];
|
680
|
-
}
|
681
|
-
export class TreeItemComponent extends React.Component<ITreeItemComponentProps, {
|
682
|
-
isExpanded: boolean;
|
683
|
-
mustExpand: boolean;
|
684
|
-
}> {
|
685
|
-
static _ContextMenuUniqueIdGenerator: number;
|
686
|
-
constructor(props: ITreeItemComponentProps);
|
687
|
-
switchExpandedState(): void;
|
688
|
-
shouldComponentUpdate(nextProps: ITreeItemComponentProps, nextState: {
|
689
|
-
isExpanded: boolean;
|
690
|
-
}): boolean;
|
691
|
-
expandAll(expand: boolean): void;
|
692
|
-
renderContextMenu(): JSX.Element | null;
|
693
|
-
render(): JSX.Element;
|
694
|
-
}
|
665
|
+
import * as React from "react";
|
666
|
+
import { Nullable } from "@babylonjs/core/types";
|
667
|
+
import { IExplorerExtensibilityGroup } from "@babylonjs/core/Debug/debugLayer";
|
668
|
+
import { GlobalState } from "@babylonjs/gui-editor/globalState";
|
669
|
+
export interface ITreeItemComponentProps {
|
670
|
+
items?: Nullable<any[]>;
|
671
|
+
label: string;
|
672
|
+
offset: number;
|
673
|
+
filter: Nullable<string>;
|
674
|
+
forceSubitems?: boolean;
|
675
|
+
globalState: GlobalState;
|
676
|
+
entity?: any;
|
677
|
+
selectedEntities: any[];
|
678
|
+
extensibilityGroups?: IExplorerExtensibilityGroup[];
|
679
|
+
contextMenuItems?: {
|
680
|
+
label: string;
|
681
|
+
action: () => void;
|
682
|
+
}[];
|
683
|
+
}
|
684
|
+
export class TreeItemComponent extends React.Component<ITreeItemComponentProps, {
|
685
|
+
isExpanded: boolean;
|
686
|
+
mustExpand: boolean;
|
687
|
+
}> {
|
688
|
+
static _ContextMenuUniqueIdGenerator: number;
|
689
|
+
constructor(props: ITreeItemComponentProps);
|
690
|
+
switchExpandedState(): void;
|
691
|
+
shouldComponentUpdate(nextProps: ITreeItemComponentProps, nextState: {
|
692
|
+
isExpanded: boolean;
|
693
|
+
}): boolean;
|
694
|
+
expandAll(expand: boolean): void;
|
695
|
+
renderContextMenu(): JSX.Element | null;
|
696
|
+
render(): JSX.Element;
|
697
|
+
}
|
695
698
|
|
696
699
|
}
|
697
700
|
declare module "@babylonjs/gui-editor/components/sceneExplorer/treeItemLabelComponent" {
|
698
|
-
import * as React from "react";
|
699
|
-
interface ITreeItemLabelComponentProps {
|
700
|
-
label?: string;
|
701
|
-
onClick?: () => void;
|
702
|
-
onChange: (newValue: string) => void;
|
703
|
-
bracket: string;
|
704
|
-
renaming: boolean;
|
705
|
-
setRenaming: (renaming: boolean) => void;
|
706
|
-
}
|
707
|
-
interface ITreeItemLabelState {
|
708
|
-
value: string;
|
709
|
-
}
|
710
|
-
export class TreeItemLabelComponent extends React.Component<ITreeItemLabelComponentProps, ITreeItemLabelState> {
|
711
|
-
constructor(props: ITreeItemLabelComponentProps);
|
712
|
-
onClick(): void;
|
713
|
-
onBlur(): void;
|
714
|
-
render(): JSX.Element;
|
715
|
-
}
|
716
|
-
export {};
|
701
|
+
import * as React from "react";
|
702
|
+
interface ITreeItemLabelComponentProps {
|
703
|
+
label?: string;
|
704
|
+
onClick?: () => void;
|
705
|
+
onChange: (newValue: string) => void;
|
706
|
+
bracket: string;
|
707
|
+
renaming: boolean;
|
708
|
+
setRenaming: (renaming: boolean) => void;
|
709
|
+
}
|
710
|
+
interface ITreeItemLabelState {
|
711
|
+
value: string;
|
712
|
+
}
|
713
|
+
export class TreeItemLabelComponent extends React.Component<ITreeItemLabelComponentProps, ITreeItemLabelState> {
|
714
|
+
constructor(props: ITreeItemLabelComponentProps);
|
715
|
+
onClick(): void;
|
716
|
+
onBlur(): void;
|
717
|
+
render(): JSX.Element;
|
718
|
+
}
|
719
|
+
export {};
|
717
720
|
|
718
721
|
}
|
719
722
|
declare module "@babylonjs/gui-editor/components/sceneExplorer/treeItemSelectableComponent" {
|
720
|
-
import { Nullable } from "@babylonjs/core/types";
|
721
|
-
import { IExplorerExtensibilityGroup } from "@babylonjs/core/Debug/debugLayer";
|
722
|
-
import * as React from "react";
|
723
|
-
import {
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
private
|
742
|
-
private
|
743
|
-
|
744
|
-
|
745
|
-
*
|
746
|
-
*
|
747
|
-
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
|
752
|
-
|
753
|
-
|
754
|
-
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
|
723
|
+
import { Nullable } from "@babylonjs/core/types";
|
724
|
+
import { IExplorerExtensibilityGroup } from "@babylonjs/core/Debug/debugLayer";
|
725
|
+
import * as React from "react";
|
726
|
+
import { GlobalState } from "@babylonjs/gui-editor/globalState";
|
727
|
+
import { DragOverLocation } from "@babylonjs/gui-editor/globalState";
|
728
|
+
export interface ITreeItemSelectableComponentProps {
|
729
|
+
entity: any;
|
730
|
+
selectedEntities: any[];
|
731
|
+
mustExpand?: boolean;
|
732
|
+
offset: number;
|
733
|
+
globalState: GlobalState;
|
734
|
+
extensibilityGroups?: IExplorerExtensibilityGroup[];
|
735
|
+
filter: Nullable<string>;
|
736
|
+
}
|
737
|
+
export interface ITreeItemSelectableComponentState {
|
738
|
+
dragOver: boolean;
|
739
|
+
isSelected: boolean;
|
740
|
+
isHovered: boolean;
|
741
|
+
dragOverLocation: DragOverLocation;
|
742
|
+
}
|
743
|
+
export class TreeItemSelectableComponent extends React.Component<ITreeItemSelectableComponentProps, ITreeItemSelectableComponentState> {
|
744
|
+
private _onSelectionChangedObservable;
|
745
|
+
private _onDraggingEndObservable;
|
746
|
+
private _onDraggingStartObservable;
|
747
|
+
/** flag flipped onDragEnter if dragOver is already true
|
748
|
+
* prevents dragLeave from immediately setting dragOver to false
|
749
|
+
* required to make dragging work as expected
|
750
|
+
* see: see: https://github.com/transformation-dev/matrx/tree/master/packages/dragster
|
751
|
+
*/
|
752
|
+
private _secondDragEnter;
|
753
|
+
constructor(props: ITreeItemSelectableComponentProps);
|
754
|
+
switchExpandedState(): void;
|
755
|
+
shouldComponentUpdate(nextProps: ITreeItemSelectableComponentProps, nextState: {
|
756
|
+
isSelected: boolean;
|
757
|
+
}): boolean;
|
758
|
+
scrollIntoView(): void;
|
759
|
+
componentWillUnmount(): void;
|
760
|
+
onSelect(): void;
|
761
|
+
renderChildren(isExpanded: boolean, offset?: boolean): (JSX.Element | null)[] | null;
|
762
|
+
render(): JSX.Element | (JSX.Element | null)[] | null;
|
763
|
+
dragOver(event: React.DragEvent<HTMLDivElement>): void;
|
764
|
+
updateDragOverLocation(event: React.DragEvent<HTMLDivElement>): void;
|
765
|
+
drop(): void;
|
766
|
+
}
|
763
767
|
|
764
768
|
}
|
765
769
|
declare module "@babylonjs/gui-editor/controlTypes" {
|
766
|
-
export const ControlTypes: {
|
767
|
-
className: string;
|
768
|
-
icon: string;
|
769
|
-
}[];
|
770
|
+
export const ControlTypes: {
|
771
|
+
className: string;
|
772
|
+
icon: string;
|
773
|
+
}[];
|
770
774
|
|
771
775
|
}
|
772
776
|
declare module "@babylonjs/gui-editor/diagram/artBoard" {
|
773
|
-
import * as React from "react";
|
774
|
-
import { GlobalState } from "@babylonjs/gui-editor/globalState";
|
775
|
-
import { Rect } from "@babylonjs/gui-editor/diagram/coordinateHelper";
|
776
|
-
interface IArtBoardProps {
|
777
|
-
globalState: GlobalState;
|
778
|
-
}
|
779
|
-
interface IArtBoardState {
|
780
|
-
bounds: Rect;
|
781
|
-
}
|
782
|
-
export class ArtBoardComponent extends React.Component<IArtBoardProps, IArtBoardState> {
|
783
|
-
constructor(props: IArtBoardProps);
|
784
|
-
update(): void;
|
785
|
-
render(): JSX.Element;
|
786
|
-
}
|
787
|
-
export {};
|
777
|
+
import * as React from "react";
|
778
|
+
import { GlobalState } from "@babylonjs/gui-editor/globalState";
|
779
|
+
import { Rect } from "@babylonjs/gui-editor/diagram/coordinateHelper";
|
780
|
+
interface IArtBoardProps {
|
781
|
+
globalState: GlobalState;
|
782
|
+
}
|
783
|
+
interface IArtBoardState {
|
784
|
+
bounds: Rect;
|
785
|
+
}
|
786
|
+
export class ArtBoardComponent extends React.Component<IArtBoardProps, IArtBoardState> {
|
787
|
+
constructor(props: IArtBoardProps);
|
788
|
+
update(): void;
|
789
|
+
render(): JSX.Element;
|
790
|
+
}
|
791
|
+
export {};
|
788
792
|
|
789
793
|
}
|
790
794
|
declare module "@babylonjs/gui-editor/diagram/coordinateHelper" {
|
791
|
-
import { Control } from "@babylonjs/gui/2D/controls/control";
|
792
|
-
import { Matrix2D } from "@babylonjs/gui/2D/math2D";
|
793
|
-
import { Vector2 } from "@babylonjs/core/Maths/math.vector";
|
794
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
795
|
-
import { GlobalState } from "@babylonjs/gui-editor/globalState";
|
796
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
797
|
-
export type DimensionProperties = "width" | "left" | "height" | "top" | "paddingLeft" | "paddingRight" | "paddingTop" | "paddingBottom" | "fontSize";
|
798
|
-
export class Rect {
|
799
|
-
top: number;
|
800
|
-
left: number;
|
801
|
-
right: number;
|
802
|
-
bottom: number;
|
803
|
-
constructor(left: number, top: number, right: number, bottom: number);
|
804
|
-
clone(): Rect;
|
805
|
-
get center(): Vector2;
|
806
|
-
get width(): number;
|
807
|
-
get height(): number;
|
808
|
-
}
|
809
|
-
export class CoordinateHelper {
|
810
|
-
private static _MatrixCache;
|
811
|
-
static GlobalState: GlobalState;
|
812
|
-
/**
|
813
|
-
* Get the scaling of a specific GUI control
|
814
|
-
* @param node the node for which we are getting the scaling
|
815
|
-
* @param relative should we return only the relative scaling (relative to the parent)
|
816
|
-
* @returns an X,Y vector of the scaling
|
817
|
-
*/
|
818
|
-
static GetScale(node: Control, relative?: boolean): Vector2;
|
819
|
-
static GetRotation(node: Control, relative?: boolean): number;
|
820
|
-
/**
|
821
|
-
* This function calculates a local matrix for a node, including it's full transformation and pivot point
|
822
|
-
*
|
823
|
-
* @param node the node to calculate the matrix for
|
824
|
-
* @param storedValues should the stored (cached) values be used to calculate the matrix
|
825
|
-
* @returns a new matrix for the control
|
826
|
-
*/
|
827
|
-
static GetNodeMatrix(node: Control, storedValues?: Rect): Matrix2D;
|
828
|
-
/**
|
829
|
-
* Using the node's tree, calculate its world matrix and return it
|
830
|
-
* @param node the node to calculate the matrix for
|
831
|
-
* @param storedValues used stored valued (cached when pointer down is clicked)
|
832
|
-
* @param stopAt stop looking when this node is found
|
833
|
-
* @returns the world matrix for this node
|
834
|
-
*/
|
835
|
-
static NodeToRTTWorldMatrix(node: Control, storedValues?: Rect, stopAt?: Control): Matrix2D;
|
836
|
-
static NodeToRTTSpace(node: Control, x: number, y: number, reference?: Vector2, storedValues?: Rect, stopAt?: Control): Vector2;
|
837
|
-
static RttToLocalNodeSpace(node: Control, x: number, y: number, reference?: Vector2, storedValues?: Rect): Vector2;
|
838
|
-
static RttToCanvasSpace(x: number, y: number): Vector2;
|
839
|
-
static MousePointerToRTTSpace(node: Control, x?: number, y?: number): Vector2;
|
840
|
-
private static _ResetMatrixArray;
|
841
|
-
static ComputeLocalBounds(node: Control): Rect;
|
842
|
-
/**
|
843
|
-
* converts a node's dimensions to percentage, properties can be specified as a list, or can convert all
|
844
|
-
* @param guiControl
|
845
|
-
* @param properties
|
846
|
-
* @param onPropertyChangedObservable
|
847
|
-
*/
|
848
|
-
static ConvertToPercentage(guiControl: Control, properties?: DimensionProperties[], onPropertyChangedObservable?: Observable<PropertyChangedEvent>): void;
|
849
|
-
static Round(value: number): number;
|
850
|
-
static ConvertToPixels(guiControl: Control, properties?: DimensionProperties[]): void;
|
851
|
-
}
|
852
|
-
|
853
|
-
}
|
854
|
-
declare module "@babylonjs/gui-editor/diagram/
|
855
|
-
import { Control } from "@babylonjs/gui/2D/controls/control";
|
856
|
-
import
|
857
|
-
import
|
858
|
-
import {
|
859
|
-
import {
|
860
|
-
|
861
|
-
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
|
886
|
-
private
|
887
|
-
private
|
888
|
-
private
|
889
|
-
private
|
890
|
-
private
|
891
|
-
private
|
892
|
-
|
893
|
-
|
894
|
-
|
895
|
-
|
896
|
-
|
897
|
-
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
|
902
|
-
|
903
|
-
|
904
|
-
|
905
|
-
|
906
|
-
|
907
|
-
|
908
|
-
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
}
|
919
|
-
export
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
|
795
|
+
import { Control } from "@babylonjs/gui/2D/controls/control";
|
796
|
+
import { Matrix2D } from "@babylonjs/gui/2D/math2D";
|
797
|
+
import { Vector2 } from "@babylonjs/core/Maths/math.vector";
|
798
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
799
|
+
import { GlobalState } from "@babylonjs/gui-editor/globalState";
|
800
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
801
|
+
export type DimensionProperties = "width" | "left" | "height" | "top" | "paddingLeft" | "paddingRight" | "paddingTop" | "paddingBottom" | "fontSize";
|
802
|
+
export class Rect {
|
803
|
+
top: number;
|
804
|
+
left: number;
|
805
|
+
right: number;
|
806
|
+
bottom: number;
|
807
|
+
constructor(left: number, top: number, right: number, bottom: number);
|
808
|
+
clone(): Rect;
|
809
|
+
get center(): Vector2;
|
810
|
+
get width(): number;
|
811
|
+
get height(): number;
|
812
|
+
}
|
813
|
+
export class CoordinateHelper {
|
814
|
+
private static _MatrixCache;
|
815
|
+
static GlobalState: GlobalState;
|
816
|
+
/**
|
817
|
+
* Get the scaling of a specific GUI control
|
818
|
+
* @param node the node for which we are getting the scaling
|
819
|
+
* @param relative should we return only the relative scaling (relative to the parent)
|
820
|
+
* @returns an X,Y vector of the scaling
|
821
|
+
*/
|
822
|
+
static GetScale(node: Control, relative?: boolean): Vector2;
|
823
|
+
static GetRotation(node: Control, relative?: boolean): number;
|
824
|
+
/**
|
825
|
+
* This function calculates a local matrix for a node, including it's full transformation and pivot point
|
826
|
+
*
|
827
|
+
* @param node the node to calculate the matrix for
|
828
|
+
* @param storedValues should the stored (cached) values be used to calculate the matrix
|
829
|
+
* @returns a new matrix for the control
|
830
|
+
*/
|
831
|
+
static GetNodeMatrix(node: Control, storedValues?: Rect): Matrix2D;
|
832
|
+
/**
|
833
|
+
* Using the node's tree, calculate its world matrix and return it
|
834
|
+
* @param node the node to calculate the matrix for
|
835
|
+
* @param storedValues used stored valued (cached when pointer down is clicked)
|
836
|
+
* @param stopAt stop looking when this node is found
|
837
|
+
* @returns the world matrix for this node
|
838
|
+
*/
|
839
|
+
static NodeToRTTWorldMatrix(node: Control, storedValues?: Rect, stopAt?: Control): Matrix2D;
|
840
|
+
static NodeToRTTSpace(node: Control, x: number, y: number, reference?: Vector2, storedValues?: Rect, stopAt?: Control): Vector2;
|
841
|
+
static RttToLocalNodeSpace(node: Control, x: number, y: number, reference?: Vector2, storedValues?: Rect): Vector2;
|
842
|
+
static RttToCanvasSpace(x: number, y: number): Vector2;
|
843
|
+
static MousePointerToRTTSpace(node: Control, x?: number, y?: number): Vector2;
|
844
|
+
private static _ResetMatrixArray;
|
845
|
+
static ComputeLocalBounds(node: Control): Rect;
|
846
|
+
/**
|
847
|
+
* converts a node's dimensions to percentage, properties can be specified as a list, or can convert all
|
848
|
+
* @param guiControl
|
849
|
+
* @param properties
|
850
|
+
* @param onPropertyChangedObservable
|
851
|
+
*/
|
852
|
+
static ConvertToPercentage(guiControl: Control, properties?: DimensionProperties[], onPropertyChangedObservable?: Observable<PropertyChangedEvent>): void;
|
853
|
+
static Round(value: number): number;
|
854
|
+
static ConvertToPixels(guiControl: Control, properties?: DimensionProperties[], onPropertyChangedObservable?: Observable<PropertyChangedEvent>): void;
|
855
|
+
}
|
856
|
+
|
857
|
+
}
|
858
|
+
declare module "@babylonjs/gui-editor/diagram/gizmoGeneric" {
|
859
|
+
import { Control } from "@babylonjs/gui/2D/controls/control";
|
860
|
+
import * as React from "react";
|
861
|
+
import { GlobalState } from "@babylonjs/gui-editor/globalState";
|
862
|
+
import { Rect } from "@babylonjs/gui-editor/diagram/coordinateHelper";
|
863
|
+
import { IScalePoint } from "@babylonjs/gui-editor/diagram/gizmoScalePoint";
|
864
|
+
export interface IGuiGizmoProps {
|
865
|
+
globalState: GlobalState;
|
866
|
+
control: Control;
|
867
|
+
}
|
868
|
+
interface IGuiGizmoState {
|
869
|
+
canvasBounds: Rect;
|
870
|
+
scalePoints: IScalePoint[];
|
871
|
+
scalePointDragging: number;
|
872
|
+
isRotating: boolean;
|
873
|
+
}
|
874
|
+
export class GizmoGeneric extends React.Component<IGuiGizmoProps, IGuiGizmoState> {
|
875
|
+
private _storedValues;
|
876
|
+
private _localBounds;
|
877
|
+
private _rotation;
|
878
|
+
private _gizmoUpdateObserver;
|
879
|
+
private _pointerUpObserver;
|
880
|
+
private _pointerMoveObserver;
|
881
|
+
constructor(props: IGuiGizmoProps);
|
882
|
+
componentDidMount(): void;
|
883
|
+
componentWillUnmount(): void;
|
884
|
+
/**
|
885
|
+
* Update the gizmo's positions
|
886
|
+
* @param force should the update be forced. otherwise it will be updated only when the pointer is down
|
887
|
+
*/
|
888
|
+
updateGizmo(): void;
|
889
|
+
private _onUp;
|
890
|
+
private _onMove;
|
891
|
+
private _rotate;
|
892
|
+
private _dragLocalBounds;
|
893
|
+
private _updateNodeFromLocalBounds;
|
894
|
+
private _beginDraggingScalePoint;
|
895
|
+
private _beginRotate;
|
896
|
+
render(): JSX.Element;
|
897
|
+
}
|
898
|
+
export {};
|
899
|
+
|
900
|
+
}
|
901
|
+
declare module "@babylonjs/gui-editor/diagram/gizmoLine" {
|
902
|
+
/// <reference types="react" />
|
903
|
+
import { GlobalState } from "@babylonjs/gui-editor/globalState";
|
904
|
+
import { Line } from "@babylonjs/gui/2D/controls/line";
|
905
|
+
interface IGizmoLineProps {
|
906
|
+
globalState: GlobalState;
|
907
|
+
control: Line;
|
908
|
+
}
|
909
|
+
export function GizmoLine(props: IGizmoLineProps): JSX.Element;
|
910
|
+
export {};
|
911
|
+
|
912
|
+
}
|
913
|
+
declare module "@babylonjs/gui-editor/diagram/gizmoScalePoint" {
|
914
|
+
/// <reference types="react" />
|
915
|
+
import { Vector2 } from "@babylonjs/core/Maths/math";
|
916
|
+
export enum ScalePointPosition {
|
917
|
+
Top = -1,
|
918
|
+
Left = -1,
|
919
|
+
Center = 0,
|
920
|
+
Right = 1,
|
921
|
+
Bottom = 1
|
922
|
+
}
|
923
|
+
export interface IScalePoint {
|
924
|
+
position: Vector2;
|
925
|
+
horizontalPosition: ScalePointPosition;
|
926
|
+
verticalPosition: ScalePointPosition;
|
927
|
+
rotation: number;
|
928
|
+
isPivot: boolean;
|
929
|
+
defaultRotation: number;
|
930
|
+
}
|
931
|
+
interface IGizmoScalePointProps {
|
932
|
+
scalePoint: IScalePoint;
|
933
|
+
clickable: boolean;
|
934
|
+
key: number;
|
935
|
+
onDrag: () => void;
|
936
|
+
onRotate: () => void;
|
937
|
+
onUp: () => void;
|
938
|
+
overrideCursor?: string;
|
939
|
+
canRotate: boolean;
|
940
|
+
}
|
941
|
+
export function GizmoScalePoint(props: IGizmoScalePointProps): JSX.Element;
|
942
|
+
export {};
|
943
|
+
|
944
|
+
}
|
945
|
+
declare module "@babylonjs/gui-editor/diagram/gizmoWrapper" {
|
946
|
+
import { Nullable } from "@babylonjs/core/types";
|
947
|
+
import { Observer } from "@babylonjs/core/Misc/observable";
|
948
|
+
import * as React from "react";
|
949
|
+
import { GlobalState } from "@babylonjs/gui-editor/globalState";
|
950
|
+
export interface IGizmoWrapperProps {
|
951
|
+
globalState: GlobalState;
|
952
|
+
}
|
953
|
+
export class GizmoWrapper extends React.Component<IGizmoWrapperProps> {
|
954
|
+
observer: Nullable<Observer<void>>;
|
955
|
+
componentWillMount(): void;
|
956
|
+
componentWillUnmount(): void;
|
957
|
+
render(): JSX.Element;
|
958
|
+
}
|
925
959
|
|
926
960
|
}
|
927
961
|
declare module "@babylonjs/gui-editor/diagram/workbench" {
|
928
|
-
import * as React from "react";
|
929
|
-
import { GlobalState } from "@babylonjs/gui-editor/globalState";
|
930
|
-
import { Control } from "@babylonjs/gui/2D/controls/control";
|
931
|
-
import { Vector2, Vector3 } from "@babylonjs/core/Maths/math.vector";
|
932
|
-
import { Scene } from "@babylonjs/core/scene";
|
933
|
-
import { Container } from "@babylonjs/gui/2D/controls/container";
|
934
|
-
import { ISize } from "@babylonjs/core/Maths/math";
|
935
|
-
import "@babylonjs/gui-editor/diagram/workbenchCanvas.scss";
|
936
|
-
export interface IWorkbenchComponentProps {
|
937
|
-
globalState: GlobalState;
|
938
|
-
}
|
939
|
-
export enum ConstraintDirection {
|
940
|
-
NONE = 0,
|
941
|
-
X = 2,
|
942
|
-
Y = 3
|
943
|
-
}
|
944
|
-
export class WorkbenchComponent extends React.Component<IWorkbenchComponentProps> {
|
945
|
-
private _rootContainer;
|
946
|
-
private _setConstraintDirection;
|
947
|
-
private _mouseStartPoint;
|
948
|
-
_scene: Scene;
|
949
|
-
private
|
950
|
-
private
|
951
|
-
private
|
952
|
-
private
|
953
|
-
private
|
954
|
-
private
|
955
|
-
private
|
956
|
-
|
957
|
-
private
|
958
|
-
private
|
959
|
-
private
|
960
|
-
private
|
961
|
-
|
962
|
-
private
|
963
|
-
|
964
|
-
private
|
965
|
-
|
966
|
-
|
967
|
-
private
|
968
|
-
|
969
|
-
private
|
970
|
-
|
971
|
-
private
|
972
|
-
|
973
|
-
|
974
|
-
private
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
|
979
|
-
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
|
989
|
-
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
|
1001
|
-
private
|
1002
|
-
private
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1009
|
-
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
|
1017
|
-
|
1018
|
-
addControls(scene: Scene): void;
|
1019
|
-
panning(): void;
|
1020
|
-
moveControls(moveHorizontal: boolean, amount: number): void;
|
1021
|
-
zoomWheel(event: React.WheelEvent): void;
|
1022
|
-
zooming(delta: number): void;
|
1023
|
-
zeroIfClose(vec: Vector3): void;
|
1024
|
-
render(): JSX.Element;
|
1025
|
-
}
|
962
|
+
import * as React from "react";
|
963
|
+
import { GlobalState } from "@babylonjs/gui-editor/globalState";
|
964
|
+
import { Control } from "@babylonjs/gui/2D/controls/control";
|
965
|
+
import { Vector2, Vector3 } from "@babylonjs/core/Maths/math.vector";
|
966
|
+
import { Scene } from "@babylonjs/core/scene";
|
967
|
+
import { Container } from "@babylonjs/gui/2D/controls/container";
|
968
|
+
import { ISize } from "@babylonjs/core/Maths/math";
|
969
|
+
import "@babylonjs/gui-editor/diagram/workbenchCanvas.scss";
|
970
|
+
export interface IWorkbenchComponentProps {
|
971
|
+
globalState: GlobalState;
|
972
|
+
}
|
973
|
+
export enum ConstraintDirection {
|
974
|
+
NONE = 0,
|
975
|
+
X = 2,
|
976
|
+
Y = 3
|
977
|
+
}
|
978
|
+
export class WorkbenchComponent extends React.Component<IWorkbenchComponentProps> {
|
979
|
+
private _rootContainer;
|
980
|
+
private _setConstraintDirection;
|
981
|
+
private _mouseStartPoint;
|
982
|
+
_scene: Scene;
|
983
|
+
private _constraintDirection;
|
984
|
+
private _panning;
|
985
|
+
private _isOverGUINode;
|
986
|
+
private _engine;
|
987
|
+
private _liveRenderObserver;
|
988
|
+
private _guiRenderObserver;
|
989
|
+
private _doubleClick;
|
990
|
+
_liveGuiTextureRerender: boolean;
|
991
|
+
private _controlsHit;
|
992
|
+
private _pointerTravelDistance;
|
993
|
+
private _processSelectionOnUp;
|
994
|
+
private _visibleRegionContainer;
|
995
|
+
get visibleRegionContainer(): Container;
|
996
|
+
private _panAndZoomContainer;
|
997
|
+
get panAndZoomContainer(): Container;
|
998
|
+
private _trueRootContainer;
|
999
|
+
set trueRootContainer(value: Container);
|
1000
|
+
get trueRootContainer(): Container;
|
1001
|
+
private _nextLiveGuiRender;
|
1002
|
+
private _liveGuiRerenderDelay;
|
1003
|
+
private _defaultGUISize;
|
1004
|
+
private _initialPanningOffset;
|
1005
|
+
private _panningOffset;
|
1006
|
+
private _zoomFactor;
|
1007
|
+
private _zoomModeIncrement;
|
1008
|
+
private _guiSize;
|
1009
|
+
get guiSize(): ISize;
|
1010
|
+
set guiSize(value: ISize);
|
1011
|
+
applyEditorTransformation(): void;
|
1012
|
+
removeEditorTransformation(): void;
|
1013
|
+
constructor(props: IWorkbenchComponentProps);
|
1014
|
+
keyEvent: (evt: KeyboardEvent) => void;
|
1015
|
+
copyToClipboard(copyFn: (content: string) => void): void;
|
1016
|
+
cutToClipboard(copyFn: (content: string) => void): void;
|
1017
|
+
pasteFromClipboard(clipboardContents: string): boolean;
|
1018
|
+
CopyGUIControl(original: Control): void;
|
1019
|
+
blurEvent: () => void;
|
1020
|
+
dispose(): void;
|
1021
|
+
loadFromJson(serializationObject: any): void;
|
1022
|
+
loadFromSnippet(snippetId: string): Promise<void>;
|
1023
|
+
loadToEditor(): void;
|
1024
|
+
updateNodeOutlines(): void;
|
1025
|
+
appendBlock(guiElement: Control): Control;
|
1026
|
+
createNewGuiNode(guiControl: Control): Control;
|
1027
|
+
private parent;
|
1028
|
+
private _reorderGrid;
|
1029
|
+
private _isNotChildInsert;
|
1030
|
+
private _adjustParentingIndex;
|
1031
|
+
isSelected(value: boolean, guiNode: Control): void;
|
1032
|
+
clicked: boolean;
|
1033
|
+
_onMove(guiControl: Control, evt: Vector2, startPos: Vector2): void;
|
1034
|
+
onMove(evt: React.PointerEvent): void;
|
1035
|
+
private _screenToTexturePosition;
|
1036
|
+
private getScaledPointerPosition;
|
1037
|
+
startPanning(): void;
|
1038
|
+
endPanning(): void;
|
1039
|
+
processSelection(): void;
|
1040
|
+
onDown(evt: React.PointerEvent<HTMLElement>): void;
|
1041
|
+
onUp(evt: React.PointerEvent): void;
|
1042
|
+
createGUICanvas(): void;
|
1043
|
+
synchronizeLiveGUI(): void;
|
1044
|
+
addControls(scene: Scene): void;
|
1045
|
+
panning(): void;
|
1046
|
+
moveControls(moveHorizontal: boolean, amount: number): void;
|
1047
|
+
zoomWheel(event: React.WheelEvent): void;
|
1048
|
+
zooming(delta: number): void;
|
1049
|
+
zeroIfClose(vec: Vector3): void;
|
1050
|
+
render(): JSX.Element;
|
1051
|
+
}
|
1026
1052
|
|
1027
1053
|
}
|
1028
1054
|
declare module "@babylonjs/gui-editor/globalState" {
|
1029
|
-
/// <reference types="react" />
|
1030
|
-
import { Nullable } from "@babylonjs/core/types";
|
1031
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
1032
|
-
import { LogEntry } from "@babylonjs/gui-editor/components/log/logComponent";
|
1033
|
-
import { Color3 } from "@babylonjs/core/Maths/math.color";
|
1034
|
-
import { WorkbenchComponent } from "@babylonjs/gui-editor/diagram/workbench";
|
1035
|
-
import { AdvancedDynamicTexture } from "@babylonjs/gui/2D/advancedDynamicTexture";
|
1036
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
1037
|
-
import { Scene } from "@babylonjs/core/scene";
|
1038
|
-
import { Control } from "@babylonjs/gui/2D/controls/control";
|
1039
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
1040
|
-
import { ISize } from "@babylonjs/core/Maths/math";
|
1041
|
-
|
1042
|
-
|
1043
|
-
|
1044
|
-
|
1045
|
-
|
1046
|
-
|
1047
|
-
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1052
|
-
|
1053
|
-
|
1054
|
-
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1062
|
-
|
1063
|
-
|
1064
|
-
|
1065
|
-
|
1066
|
-
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1076
|
-
|
1077
|
-
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
|
1083
|
-
|
1084
|
-
|
1085
|
-
|
1086
|
-
|
1087
|
-
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1094
|
-
|
1095
|
-
|
1096
|
-
|
1097
|
-
|
1098
|
-
|
1099
|
-
|
1100
|
-
|
1101
|
-
|
1102
|
-
|
1103
|
-
|
1104
|
-
|
1105
|
-
|
1106
|
-
|
1107
|
-
|
1108
|
-
|
1109
|
-
|
1110
|
-
|
1111
|
-
|
1112
|
-
|
1113
|
-
|
1114
|
-
|
1115
|
-
|
1116
|
-
|
1117
|
-
|
1118
|
-
|
1119
|
-
|
1120
|
-
|
1121
|
-
|
1122
|
-
|
1123
|
-
|
1055
|
+
/// <reference types="react" />
|
1056
|
+
import { Nullable } from "@babylonjs/core/types";
|
1057
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
1058
|
+
import { LogEntry } from "@babylonjs/gui-editor/components/log/logComponent";
|
1059
|
+
import { Color3 } from "@babylonjs/core/Maths/math.color";
|
1060
|
+
import { WorkbenchComponent } from "@babylonjs/gui-editor/diagram/workbench";
|
1061
|
+
import { AdvancedDynamicTexture } from "@babylonjs/gui/2D/advancedDynamicTexture";
|
1062
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
1063
|
+
import { Scene } from "@babylonjs/core/scene";
|
1064
|
+
import { Control } from "@babylonjs/gui/2D/controls/control";
|
1065
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
1066
|
+
import { ISize } from "@babylonjs/core/Maths/math";
|
1067
|
+
import { KeyboardManager } from "@babylonjs/gui-editor/keyboardManager";
|
1068
|
+
export enum DragOverLocation {
|
1069
|
+
ABOVE = 0,
|
1070
|
+
BELOW = 1,
|
1071
|
+
CENTER = 2,
|
1072
|
+
NONE = 3
|
1073
|
+
}
|
1074
|
+
export enum GUIEditorTool {
|
1075
|
+
SELECT = 0,
|
1076
|
+
PAN = 1,
|
1077
|
+
ZOOM = 2
|
1078
|
+
}
|
1079
|
+
export class GlobalState {
|
1080
|
+
liveGuiTexture: Nullable<AdvancedDynamicTexture>;
|
1081
|
+
guiTexture: AdvancedDynamicTexture;
|
1082
|
+
hostElement: HTMLElement;
|
1083
|
+
hostDocument: HTMLDocument;
|
1084
|
+
hostWindow: Window;
|
1085
|
+
selectedControls: Control[];
|
1086
|
+
onSelectionChangedObservable: Observable<void>;
|
1087
|
+
onResizeObservable: Observable<ISize>;
|
1088
|
+
onBuiltObservable: Observable<void>;
|
1089
|
+
onResetRequiredObservable: Observable<void>;
|
1090
|
+
onUpdateRequiredObservable: Observable<void>;
|
1091
|
+
onLogRequiredObservable: Observable<LogEntry>;
|
1092
|
+
onErrorMessageDialogRequiredObservable: Observable<string>;
|
1093
|
+
onIsLoadingChanged: Observable<boolean>;
|
1094
|
+
onSelectionBoxMoved: Observable<ClientRect | DOMRect>;
|
1095
|
+
onNewSceneObservable: Observable<Nullable<Scene>>;
|
1096
|
+
onGuiNodeRemovalObservable: Observable<Control>;
|
1097
|
+
onPopupClosedObservable: Observable<void>;
|
1098
|
+
private _backgroundColor;
|
1099
|
+
private _outlines;
|
1100
|
+
keys: KeyboardManager;
|
1101
|
+
/** DO NOT USE: in the process of removing */
|
1102
|
+
blockKeyboardEvents: boolean;
|
1103
|
+
onOutlineChangedObservable: Observable<void>;
|
1104
|
+
controlCamera: boolean;
|
1105
|
+
selectionLock: boolean;
|
1106
|
+
workbench: WorkbenchComponent;
|
1107
|
+
onPropertyChangedObservable: Observable<PropertyChangedEvent>;
|
1108
|
+
private _tool;
|
1109
|
+
onToolChangeObservable: Observable<void>;
|
1110
|
+
get tool(): GUIEditorTool;
|
1111
|
+
set tool(newTool: GUIEditorTool);
|
1112
|
+
onFitToWindowObservable: Observable<void>;
|
1113
|
+
onLoadObservable: Observable<File>;
|
1114
|
+
onSaveObservable: Observable<void>;
|
1115
|
+
onSnippetLoadObservable: Observable<void>;
|
1116
|
+
onSnippetSaveObservable: Observable<void>;
|
1117
|
+
onResponsiveChangeObservable: Observable<boolean>;
|
1118
|
+
onParentingChangeObservable: Observable<Nullable<Control>>;
|
1119
|
+
onDropObservable: Observable<void>;
|
1120
|
+
onPropertyGridUpdateRequiredObservable: Observable<void>;
|
1121
|
+
onDraggingEndObservable: Observable<void>;
|
1122
|
+
onDraggingStartObservable: Observable<void>;
|
1123
|
+
onWindowResizeObservable: Observable<void>;
|
1124
|
+
onGizmoUpdateRequireObservable: Observable<void>;
|
1125
|
+
onArtBoardUpdateRequiredObservable: Observable<void>;
|
1126
|
+
onBackgroundColorChangeObservable: Observable<void>;
|
1127
|
+
onPointerMoveObservable: Observable<import("react").PointerEvent<HTMLCanvasElement>>;
|
1128
|
+
onPointerUpObservable: Observable<Nullable<PointerEvent | import("react").PointerEvent<HTMLCanvasElement>>>;
|
1129
|
+
draggedControl: Nullable<Control>;
|
1130
|
+
draggedControlDirection: DragOverLocation;
|
1131
|
+
onCopyObservable: Observable<(content: string) => void>;
|
1132
|
+
onCutObservable: Observable<(content: string) => void>;
|
1133
|
+
onPasteObservable: Observable<string>;
|
1134
|
+
isSaving: boolean;
|
1135
|
+
lockObject: LockObject;
|
1136
|
+
storeEditorData: (serializationObject: any) => void;
|
1137
|
+
customSave?: {
|
1138
|
+
label: string;
|
1139
|
+
action: (data: string) => Promise<string>;
|
1140
|
+
};
|
1141
|
+
customLoad?: {
|
1142
|
+
label: string;
|
1143
|
+
action: (data: string) => Promise<string>;
|
1144
|
+
};
|
1145
|
+
constructor();
|
1146
|
+
/** adds copy, cut and paste listeners to the host window */
|
1147
|
+
registerEventListeners(): void;
|
1148
|
+
get backgroundColor(): Color3;
|
1149
|
+
set backgroundColor(value: Color3);
|
1150
|
+
get outlines(): boolean;
|
1151
|
+
set outlines(value: boolean);
|
1152
|
+
select(control: Control): void;
|
1153
|
+
setSelection(controls: Control[]): void;
|
1154
|
+
deleteSelectedNodes(): void;
|
1155
|
+
isMultiSelectable(control: Control): boolean;
|
1156
|
+
dispose(): void;
|
1157
|
+
}
|
1124
1158
|
|
1125
1159
|
}
|
1126
1160
|
declare module "@babylonjs/gui-editor/guiEditor" {
|
1127
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
1128
|
-
import { AdvancedDynamicTexture } from "@babylonjs/gui/2D/advancedDynamicTexture";
|
1129
|
-
/**
|
1130
|
-
* Interface used to specify creation options for the gui editor
|
1131
|
-
*/
|
1132
|
-
export interface IGUIEditorOptions {
|
1133
|
-
liveGuiTexture?: AdvancedDynamicTexture;
|
1134
|
-
customLoad: {
|
1135
|
-
label: string;
|
1136
|
-
action: (data: string) => Promise<string>;
|
1137
|
-
} | undefined;
|
1138
|
-
hostElement?: HTMLElement;
|
1139
|
-
customSave?: {
|
1140
|
-
label: string;
|
1141
|
-
action: (data: string) => Promise<string>;
|
1142
|
-
};
|
1143
|
-
currentSnippetToken?: string;
|
1144
|
-
customLoadObservable?: Observable<any>;
|
1145
|
-
}
|
1146
|
-
/**
|
1147
|
-
* Class used to create a gui editor
|
1148
|
-
*/
|
1149
|
-
export class GUIEditor {
|
1150
|
-
private static _CurrentState;
|
1151
|
-
/**
|
1152
|
-
* Show the gui editor
|
1153
|
-
* @param options defines the options to use to configure the gui editor
|
1154
|
-
*/
|
1155
|
-
static Show(options: IGUIEditorOptions): Promise<void>;
|
1156
|
-
}
|
1161
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
1162
|
+
import { AdvancedDynamicTexture } from "@babylonjs/gui/2D/advancedDynamicTexture";
|
1163
|
+
/**
|
1164
|
+
* Interface used to specify creation options for the gui editor
|
1165
|
+
*/
|
1166
|
+
export interface IGUIEditorOptions {
|
1167
|
+
liveGuiTexture?: AdvancedDynamicTexture;
|
1168
|
+
customLoad: {
|
1169
|
+
label: string;
|
1170
|
+
action: (data: string) => Promise<string>;
|
1171
|
+
} | undefined;
|
1172
|
+
hostElement?: HTMLElement;
|
1173
|
+
customSave?: {
|
1174
|
+
label: string;
|
1175
|
+
action: (data: string) => Promise<string>;
|
1176
|
+
};
|
1177
|
+
currentSnippetToken?: string;
|
1178
|
+
customLoadObservable?: Observable<any>;
|
1179
|
+
}
|
1180
|
+
/**
|
1181
|
+
* Class used to create a gui editor
|
1182
|
+
*/
|
1183
|
+
export class GUIEditor {
|
1184
|
+
private static _CurrentState;
|
1185
|
+
/**
|
1186
|
+
* Show the gui editor
|
1187
|
+
* @param options defines the options to use to configure the gui editor
|
1188
|
+
*/
|
1189
|
+
static Show(options: IGUIEditorOptions): Promise<void>;
|
1190
|
+
}
|
1157
1191
|
|
1158
1192
|
}
|
1159
1193
|
declare module "@babylonjs/gui-editor/guiNodeTools" {
|
1160
|
-
import { Checkbox } from "@babylonjs/gui/2D/controls/checkbox";
|
1161
|
-
import { ColorPicker } from "@babylonjs/gui/2D/controls/colorpicker";
|
1162
|
-
import { Ellipse } from "@babylonjs/gui/2D/controls/ellipse";
|
1163
|
-
import { Line } from "@babylonjs/gui/2D/controls/line";
|
1164
|
-
import { Rectangle } from "@babylonjs/gui/2D/controls/rectangle";
|
1165
|
-
import { Slider } from "@babylonjs/gui/2D/controls/sliders/slider";
|
1166
|
-
import { TextBlock } from "@babylonjs/gui/2D/controls/textBlock";
|
1167
|
-
import { Image } from "@babylonjs/gui/2D/controls/image";
|
1168
|
-
import { InputText } from "@babylonjs/gui/2D/controls/inputText";
|
1169
|
-
import { Grid } from "@babylonjs/gui/2D/controls/grid";
|
1170
|
-
import { DisplayGrid } from "@babylonjs/gui/2D/controls/displayGrid";
|
1171
|
-
import { StackPanel } from "@babylonjs/gui/2D/controls/stackPanel";
|
1172
|
-
import { RadioButton } from "@babylonjs/gui/2D/controls/radioButton";
|
1173
|
-
import { ImageBasedSlider } from "@babylonjs/gui/2D/controls/sliders/imageBasedSlider";
|
1174
|
-
export class GUINodeTools {
|
1175
|
-
static ImageControlDefaultUrl: string;
|
1176
|
-
static CreateControlFromString(data: string): Grid | Rectangle | Line | TextBlock | Image | Slider | ImageBasedSlider | RadioButton | InputText | ColorPicker |
|
1177
|
-
}
|
1194
|
+
import { Checkbox } from "@babylonjs/gui/2D/controls/checkbox";
|
1195
|
+
import { ColorPicker } from "@babylonjs/gui/2D/controls/colorpicker";
|
1196
|
+
import { Ellipse } from "@babylonjs/gui/2D/controls/ellipse";
|
1197
|
+
import { Line } from "@babylonjs/gui/2D/controls/line";
|
1198
|
+
import { Rectangle } from "@babylonjs/gui/2D/controls/rectangle";
|
1199
|
+
import { Slider } from "@babylonjs/gui/2D/controls/sliders/slider";
|
1200
|
+
import { TextBlock } from "@babylonjs/gui/2D/controls/textBlock";
|
1201
|
+
import { Image } from "@babylonjs/gui/2D/controls/image";
|
1202
|
+
import { InputText } from "@babylonjs/gui/2D/controls/inputText";
|
1203
|
+
import { Grid } from "@babylonjs/gui/2D/controls/grid";
|
1204
|
+
import { DisplayGrid } from "@babylonjs/gui/2D/controls/displayGrid";
|
1205
|
+
import { StackPanel } from "@babylonjs/gui/2D/controls/stackPanel";
|
1206
|
+
import { RadioButton } from "@babylonjs/gui/2D/controls/radioButton";
|
1207
|
+
import { ImageBasedSlider } from "@babylonjs/gui/2D/controls/sliders/imageBasedSlider";
|
1208
|
+
export class GUINodeTools {
|
1209
|
+
static ImageControlDefaultUrl: string;
|
1210
|
+
static CreateControlFromString(data: string): Grid | Rectangle | StackPanel | Line | TextBlock | Image | Slider | ImageBasedSlider | RadioButton | InputText | ColorPicker | Ellipse | Checkbox | DisplayGrid;
|
1211
|
+
}
|
1178
1212
|
|
1179
1213
|
}
|
1180
1214
|
declare module "@babylonjs/gui-editor/index" {
|
1181
|
-
export * from "@babylonjs/gui-editor/guiEditor";
|
1215
|
+
export * from "@babylonjs/gui-editor/guiEditor";
|
1216
|
+
|
1217
|
+
}
|
1218
|
+
declare module "@babylonjs/gui-editor/keyboardManager" {
|
1219
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
1220
|
+
type Key = "control" | "shift" | "alt" | "space" | "meta";
|
1221
|
+
export class KeyboardManager {
|
1222
|
+
private _hostElement;
|
1223
|
+
private _kdListener;
|
1224
|
+
private _kuListener;
|
1225
|
+
private _moveListener;
|
1226
|
+
private _focusOutListener;
|
1227
|
+
private _keys;
|
1228
|
+
onKeyPressedObservable: Observable<Key>;
|
1229
|
+
constructor(hostElement: HTMLElement | HTMLDocument);
|
1230
|
+
private _keyEvent;
|
1231
|
+
private _updateModifierKeys;
|
1232
|
+
private _setKeyDown;
|
1233
|
+
private _clearKeys;
|
1234
|
+
isKeyDown(key: Key): boolean;
|
1235
|
+
dispose(): void;
|
1236
|
+
}
|
1237
|
+
export {};
|
1182
1238
|
|
1183
1239
|
}
|
1184
1240
|
declare module "@babylonjs/gui-editor/legacy/legacy" {
|
1185
|
-
export * from "@babylonjs/gui-editor/index";
|
1241
|
+
export * from "@babylonjs/gui-editor/index";
|
1186
1242
|
|
1187
1243
|
}
|
1188
1244
|
declare module "@babylonjs/gui-editor/nodeLocationInfo" {
|
1189
|
-
export interface INodeLocationInfo {
|
1190
|
-
blockId: number;
|
1191
|
-
x: number;
|
1192
|
-
y: number;
|
1193
|
-
}
|
1194
|
-
export interface IFrameData {
|
1195
|
-
x: number;
|
1196
|
-
y: number;
|
1197
|
-
width: number;
|
1198
|
-
height: number;
|
1199
|
-
color: number[];
|
1200
|
-
name: string;
|
1201
|
-
isCollapsed: boolean;
|
1202
|
-
blocks: number[];
|
1203
|
-
comments: string;
|
1204
|
-
}
|
1205
|
-
export interface IEditorData {
|
1206
|
-
locations: INodeLocationInfo[];
|
1207
|
-
x: number;
|
1208
|
-
y: number;
|
1209
|
-
zoom: number;
|
1210
|
-
frames?: IFrameData[];
|
1211
|
-
map?: {
|
1212
|
-
[key: number]: number;
|
1213
|
-
};
|
1214
|
-
}
|
1245
|
+
export interface INodeLocationInfo {
|
1246
|
+
blockId: number;
|
1247
|
+
x: number;
|
1248
|
+
y: number;
|
1249
|
+
}
|
1250
|
+
export interface IFrameData {
|
1251
|
+
x: number;
|
1252
|
+
y: number;
|
1253
|
+
width: number;
|
1254
|
+
height: number;
|
1255
|
+
color: number[];
|
1256
|
+
name: string;
|
1257
|
+
isCollapsed: boolean;
|
1258
|
+
blocks: number[];
|
1259
|
+
comments: string;
|
1260
|
+
}
|
1261
|
+
export interface IEditorData {
|
1262
|
+
locations: INodeLocationInfo[];
|
1263
|
+
x: number;
|
1264
|
+
y: number;
|
1265
|
+
zoom: number;
|
1266
|
+
frames?: IFrameData[];
|
1267
|
+
map?: {
|
1268
|
+
[key: number]: number;
|
1269
|
+
};
|
1270
|
+
}
|
1215
1271
|
|
1216
1272
|
}
|
1217
1273
|
declare module "@babylonjs/gui-editor/portal" {
|
1218
|
-
import * as React from "react";
|
1219
|
-
import { GlobalState } from "@babylonjs/gui-editor/globalState";
|
1220
|
-
interface IPortalProps {
|
1221
|
-
globalState: GlobalState;
|
1222
|
-
}
|
1223
|
-
export class Portal extends React.Component<IPortalProps> {
|
1224
|
-
render(): React.ReactPortal;
|
1225
|
-
}
|
1226
|
-
export {};
|
1227
|
-
|
1228
|
-
}
|
1229
|
-
declare module "@babylonjs/gui-editor/sharedComponents/floatLineComponent" {
|
1230
|
-
import * as React from "react";
|
1231
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
1232
|
-
import { PropertyChangedEvent } from "@babylonjs/gui-editor/sharedComponents/propertyChangedEvent";
|
1233
|
-
import { GlobalState } from "@babylonjs/gui-editor/globalState";
|
1234
|
-
interface IFloatLineComponentProps {
|
1235
|
-
label: string;
|
1236
|
-
target: any;
|
1237
|
-
propertyName: string;
|
1238
|
-
onChange?: (newValue: number) => void;
|
1239
|
-
isInteger?: boolean;
|
1240
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
1241
|
-
additionalClass?: string;
|
1242
|
-
step?: string;
|
1243
|
-
digits?: number;
|
1244
|
-
globalState: GlobalState;
|
1245
|
-
min?: number;
|
1246
|
-
max?: number;
|
1247
|
-
smallUI?: boolean;
|
1248
|
-
onEnter?: (newValue: number) => void;
|
1249
|
-
}
|
1250
|
-
export class FloatLineComponent extends React.Component<IFloatLineComponentProps, {
|
1251
|
-
value: string;
|
1252
|
-
}> {
|
1253
|
-
private _localChange;
|
1254
|
-
private _store;
|
1255
|
-
private _regExp;
|
1256
|
-
private _digits;
|
1257
|
-
constructor(props: IFloatLineComponentProps);
|
1258
|
-
shouldComponentUpdate(nextProps: IFloatLineComponentProps, nextState: {
|
1259
|
-
value: string;
|
1260
|
-
}): boolean;
|
1261
|
-
raiseOnPropertyChanged(newValue: number, previousValue: number): void;
|
1262
|
-
updateValue(valueString: string): void;
|
1263
|
-
render(): JSX.Element;
|
1264
|
-
}
|
1265
|
-
export {};
|
1266
|
-
|
1267
|
-
}
|
1268
|
-
declare module "@babylonjs/gui-editor/sharedComponents/lineWithFileButtonComponent" {
|
1269
|
-
import * as React from "react";
|
1270
|
-
interface ILineWithFileButtonComponentProps {
|
1271
|
-
title: string;
|
1272
|
-
closed?: boolean;
|
1273
|
-
label: string;
|
1274
|
-
iconImage: any;
|
1275
|
-
onIconClick: (file: File) => void;
|
1276
|
-
accept: string;
|
1277
|
-
uploadName?: string;
|
1278
|
-
}
|
1279
|
-
export class LineWithFileButtonComponent extends React.Component<ILineWithFileButtonComponentProps, {
|
1280
|
-
isExpanded: boolean;
|
1281
|
-
}> {
|
1282
|
-
private _uploadRef;
|
1283
|
-
constructor(props: ILineWithFileButtonComponentProps);
|
1284
|
-
onChange(evt: any): void;
|
1285
|
-
switchExpandedState(): void;
|
1286
|
-
render(): JSX.Element;
|
1287
|
-
}
|
1288
|
-
export {};
|
1274
|
+
import * as React from "react";
|
1275
|
+
import { GlobalState } from "@babylonjs/gui-editor/globalState";
|
1276
|
+
interface IPortalProps {
|
1277
|
+
globalState: GlobalState;
|
1278
|
+
}
|
1279
|
+
export class Portal extends React.Component<IPortalProps> {
|
1280
|
+
render(): React.ReactPortal;
|
1281
|
+
}
|
1282
|
+
export {};
|
1289
1283
|
|
1290
1284
|
}
|
1291
1285
|
declare module "@babylonjs/gui-editor/sharedComponents/messageDialog" {
|
1292
|
-
import * as React from "react";
|
1293
|
-
import { GlobalState } from "@babylonjs/gui-editor/globalState";
|
1294
|
-
interface IMessageDialogComponentProps {
|
1295
|
-
globalState: GlobalState;
|
1296
|
-
}
|
1297
|
-
export class MessageDialogComponent extends React.Component<IMessageDialogComponentProps, {
|
1298
|
-
message: string;
|
1299
|
-
isError: boolean;
|
1300
|
-
}> {
|
1301
|
-
constructor(props: IMessageDialogComponentProps);
|
1302
|
-
render(): JSX.Element | null;
|
1303
|
-
}
|
1304
|
-
export {};
|
1305
|
-
|
1306
|
-
}
|
1307
|
-
declare module "@babylonjs/gui-editor/sharedComponents/numericInputComponent" {
|
1308
|
-
import * as React from "react";
|
1309
|
-
import { GlobalState } from "@babylonjs/gui-editor/globalState";
|
1310
|
-
interface INumericInputComponentProps {
|
1311
|
-
label: string;
|
1312
|
-
value: number;
|
1313
|
-
step?: number;
|
1314
|
-
onChange: (value: number) => void;
|
1315
|
-
globalState: GlobalState;
|
1316
|
-
}
|
1317
|
-
export class NumericInputComponent extends React.Component<INumericInputComponentProps, {
|
1318
|
-
value: string;
|
1319
|
-
}> {
|
1320
|
-
static defaultProps: {
|
1321
|
-
step: number;
|
1322
|
-
};
|
1323
|
-
private _localChange;
|
1324
|
-
constructor(props: INumericInputComponentProps);
|
1325
|
-
shouldComponentUpdate(nextProps: INumericInputComponentProps, nextState: {
|
1326
|
-
value: string;
|
1327
|
-
}): boolean;
|
1328
|
-
updateValue(evt: any): void;
|
1329
|
-
render(): JSX.Element;
|
1330
|
-
}
|
1331
|
-
export {};
|
1332
|
-
|
1333
|
-
}
|
1334
|
-
declare module "@babylonjs/gui-editor/sharedComponents/propertyChangedEvent" {
|
1335
|
-
export class PropertyChangedEvent {
|
1336
|
-
object: any;
|
1337
|
-
property: string;
|
1338
|
-
value: any;
|
1339
|
-
initialValue: any;
|
1340
|
-
}
|
1341
|
-
|
1342
|
-
}
|
1343
|
-
declare module "@babylonjs/gui-editor/sharedComponents/sliderLineComponent" {
|
1344
|
-
import * as React from "react";
|
1345
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
1346
|
-
import { PropertyChangedEvent } from "@babylonjs/gui-editor/sharedComponents/propertyChangedEvent";
|
1347
|
-
import { GlobalState } from "@babylonjs/gui-editor/globalState";
|
1348
|
-
interface ISliderLineComponentProps {
|
1349
|
-
label: string;
|
1350
|
-
target?: any;
|
1351
|
-
propertyName?: string;
|
1352
|
-
minimum: number;
|
1353
|
-
maximum: number;
|
1354
|
-
step: number;
|
1355
|
-
directValue?: number;
|
1356
|
-
useEuler?: boolean;
|
1357
|
-
onChange?: (value: number) => void;
|
1358
|
-
onInput?: (value: number) => void;
|
1359
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
1360
|
-
decimalCount?: number;
|
1361
|
-
globalState: GlobalState;
|
1362
|
-
}
|
1363
|
-
export class SliderLineComponent extends React.Component<ISliderLineComponentProps, {
|
1364
|
-
value: number;
|
1365
|
-
}> {
|
1366
|
-
private _localChange;
|
1367
|
-
constructor(props: ISliderLineComponentProps);
|
1368
|
-
shouldComponentUpdate(nextProps: ISliderLineComponentProps, nextState: {
|
1369
|
-
value: number;
|
1370
|
-
}): boolean;
|
1371
|
-
onChange(newValueString: any): void;
|
1372
|
-
onInput(newValueString: any): void;
|
1373
|
-
prepareDataToRead(value: number): number;
|
1374
|
-
render(): JSX.Element;
|
1375
|
-
}
|
1376
|
-
export {};
|
1377
|
-
|
1378
|
-
}
|
1379
|
-
declare module "@babylonjs/gui-editor/sharedComponents/textInputLineComponent" {
|
1380
|
-
import * as React from "react";
|
1381
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
1382
|
-
import { PropertyChangedEvent } from "@babylonjs/gui-editor/sharedComponents/propertyChangedEvent";
|
1383
|
-
import { GlobalState } from "@babylonjs/gui-editor/globalState";
|
1384
|
-
interface ITextInputLineComponentProps {
|
1385
|
-
label: string;
|
1386
|
-
globalState: GlobalState;
|
1387
|
-
target?: any;
|
1388
|
-
propertyName?: string;
|
1389
|
-
value?: string;
|
1390
|
-
multilines?: boolean;
|
1391
|
-
onChange?: (value: string) => void;
|
1392
|
-
validator?: (value: string) => boolean;
|
1393
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
1394
|
-
}
|
1395
|
-
export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, {
|
1396
|
-
value: string;
|
1397
|
-
}> {
|
1398
|
-
private _localChange;
|
1399
|
-
constructor(props: ITextInputLineComponentProps);
|
1400
|
-
shouldComponentUpdate(nextProps: ITextInputLineComponentProps, nextState: {
|
1401
|
-
value: string;
|
1402
|
-
}): boolean;
|
1403
|
-
raiseOnPropertyChanged(newValue: string, previousValue: string): void;
|
1404
|
-
updateValue(value: string, raisePropertyChanged: boolean): void;
|
1405
|
-
render(): JSX.Element;
|
1406
|
-
}
|
1407
|
-
export {};
|
1286
|
+
import * as React from "react";
|
1287
|
+
import { GlobalState } from "@babylonjs/gui-editor/globalState";
|
1288
|
+
interface IMessageDialogComponentProps {
|
1289
|
+
globalState: GlobalState;
|
1290
|
+
}
|
1291
|
+
export class MessageDialogComponent extends React.Component<IMessageDialogComponentProps, {
|
1292
|
+
message: string;
|
1293
|
+
isError: boolean;
|
1294
|
+
}> {
|
1295
|
+
constructor(props: IMessageDialogComponentProps);
|
1296
|
+
render(): JSX.Element | null;
|
1297
|
+
}
|
1298
|
+
export {};
|
1408
1299
|
|
1409
1300
|
}
|
1410
1301
|
declare module "@babylonjs/gui-editor/tools" {
|
1411
|
-
import { Control } from "@babylonjs/gui/2D/controls/control";
|
1412
|
-
import { Grid } from "@babylonjs/gui/2D/controls/grid";
|
1413
|
-
import { Vector2 } from "@babylonjs/core/Maths/math";
|
1414
|
-
export class Tools {
|
1415
|
-
static LookForItems(item: any, selectedEntities: any[], firstIteration?: boolean): boolean;
|
1416
|
-
private static _RecursiveRemoveHiddenMeshesAndHoistChildren;
|
1417
|
-
static SortAndFilter(parent: any, items: any[]): any[];
|
1418
|
-
static GetCellInfo(grid: Grid, control: Control): Vector2;
|
1419
|
-
static ReorderGrid(grid: Grid, index: number, control: Control, cell: Vector2): void;
|
1420
|
-
}
|
1302
|
+
import { Control } from "@babylonjs/gui/2D/controls/control";
|
1303
|
+
import { Grid } from "@babylonjs/gui/2D/controls/grid";
|
1304
|
+
import { Vector2 } from "@babylonjs/core/Maths/math";
|
1305
|
+
export class Tools {
|
1306
|
+
static LookForItems(item: any, selectedEntities: any[], firstIteration?: boolean): boolean;
|
1307
|
+
private static _RecursiveRemoveHiddenMeshesAndHoistChildren;
|
1308
|
+
static SortAndFilter(parent: any, items: any[]): any[];
|
1309
|
+
static GetCellInfo(grid: Grid, control: Control): Vector2;
|
1310
|
+
static ReorderGrid(grid: Grid, index: number, control: Control, cell: Vector2): void;
|
1311
|
+
}
|
1421
1312
|
|
1422
1313
|
}
|
1423
1314
|
declare module "@babylonjs/gui-editor/workbenchEditor" {
|
1424
|
-
import * as React from "react";
|
1425
|
-
import { GlobalState } from "@babylonjs/gui-editor/globalState";
|
1426
|
-
import { Control } from "@babylonjs/gui/2D/controls/control";
|
1427
|
-
import "@babylonjs/gui-editor/main.scss";
|
1428
|
-
import "@babylonjs/gui-editor/scss/header.scss";
|
1429
|
-
interface IGraphEditorProps {
|
1430
|
-
globalState: GlobalState;
|
1431
|
-
}
|
1432
|
-
interface IGraphEditorState {
|
1433
|
-
showPreviewPopUp: boolean;
|
1434
|
-
}
|
1435
|
-
export class WorkbenchEditor extends React.Component<IGraphEditorProps, IGraphEditorState> {
|
1436
|
-
private _moveInProgress;
|
1437
|
-
private _leftWidth;
|
1438
|
-
private _rightWidth;
|
1439
|
-
private _popUpWindow;
|
1440
|
-
private _draggedItem;
|
1441
|
-
private _rootRef;
|
1442
|
-
componentDidMount(): void;
|
1443
|
-
constructor(props: IGraphEditorProps);
|
1444
|
-
showWaitScreen(): void;
|
1445
|
-
hideWaitScreen(): void;
|
1446
|
-
onPointerDown(evt: React.PointerEvent<HTMLDivElement>): void;
|
1447
|
-
onPointerUp(evt: React.PointerEvent<HTMLDivElement>): void;
|
1448
|
-
resizeColumns(evt: React.PointerEvent<HTMLDivElement>, forLeft?: boolean): void;
|
1449
|
-
buildColumnLayout(): string;
|
1450
|
-
handlePopUp: () => void;
|
1451
|
-
handleClosingPopUp: () => void;
|
1452
|
-
createPopupWindow: (title: string, windowVariableName: string, width?: number, height?: number) => Window | null;
|
1453
|
-
copyStyles: (sourceDoc: HTMLDocument, targetDoc: HTMLDocument) => void;
|
1454
|
-
render(): JSX.Element;
|
1455
|
-
onCreate(value: string): Control;
|
1456
|
-
createToolbar(): JSX.Element;
|
1457
|
-
}
|
1458
|
-
export {};
|
1315
|
+
import * as React from "react";
|
1316
|
+
import { GlobalState } from "@babylonjs/gui-editor/globalState";
|
1317
|
+
import { Control } from "@babylonjs/gui/2D/controls/control";
|
1318
|
+
import "@babylonjs/gui-editor/main.scss";
|
1319
|
+
import "@babylonjs/gui-editor/scss/header.scss";
|
1320
|
+
interface IGraphEditorProps {
|
1321
|
+
globalState: GlobalState;
|
1322
|
+
}
|
1323
|
+
interface IGraphEditorState {
|
1324
|
+
showPreviewPopUp: boolean;
|
1325
|
+
}
|
1326
|
+
export class WorkbenchEditor extends React.Component<IGraphEditorProps, IGraphEditorState> {
|
1327
|
+
private _moveInProgress;
|
1328
|
+
private _leftWidth;
|
1329
|
+
private _rightWidth;
|
1330
|
+
private _popUpWindow;
|
1331
|
+
private _draggedItem;
|
1332
|
+
private _rootRef;
|
1333
|
+
componentDidMount(): void;
|
1334
|
+
constructor(props: IGraphEditorProps);
|
1335
|
+
showWaitScreen(): void;
|
1336
|
+
hideWaitScreen(): void;
|
1337
|
+
onPointerDown(evt: React.PointerEvent<HTMLDivElement>): void;
|
1338
|
+
onPointerUp(evt: React.PointerEvent<HTMLDivElement>): void;
|
1339
|
+
resizeColumns(evt: React.PointerEvent<HTMLDivElement>, forLeft?: boolean): void;
|
1340
|
+
buildColumnLayout(): string;
|
1341
|
+
handlePopUp: () => void;
|
1342
|
+
handleClosingPopUp: () => void;
|
1343
|
+
createPopupWindow: (title: string, windowVariableName: string, width?: number, height?: number) => Window | null;
|
1344
|
+
copyStyles: (sourceDoc: HTMLDocument, targetDoc: HTMLDocument) => void;
|
1345
|
+
render(): JSX.Element;
|
1346
|
+
onCreate(value: string): Control;
|
1347
|
+
createToolbar(): JSX.Element;
|
1348
|
+
}
|
1349
|
+
export {};
|
1459
1350
|
|
1460
1351
|
}
|
1461
1352
|
declare module "shared-ui-components/colorPicker/colorComponentEntry" {
|
1462
|
-
import * as React from "react";
|
1463
|
-
export interface IColorComponentEntryProps {
|
1464
|
-
value: number;
|
1465
|
-
label: string;
|
1466
|
-
max?: number;
|
1467
|
-
min?: number;
|
1468
|
-
onChange: (value: number) => void;
|
1469
|
-
disabled?: boolean;
|
1470
|
-
}
|
1471
|
-
export class ColorComponentEntry extends React.Component<IColorComponentEntryProps> {
|
1472
|
-
constructor(props: IColorComponentEntryProps);
|
1473
|
-
updateValue(valueString: string): void;
|
1474
|
-
render(): JSX.Element;
|
1475
|
-
}
|
1353
|
+
import * as React from "react";
|
1354
|
+
export interface IColorComponentEntryProps {
|
1355
|
+
value: number;
|
1356
|
+
label: string;
|
1357
|
+
max?: number;
|
1358
|
+
min?: number;
|
1359
|
+
onChange: (value: number) => void;
|
1360
|
+
disabled?: boolean;
|
1361
|
+
}
|
1362
|
+
export class ColorComponentEntry extends React.Component<IColorComponentEntryProps> {
|
1363
|
+
constructor(props: IColorComponentEntryProps);
|
1364
|
+
updateValue(valueString: string): void;
|
1365
|
+
render(): JSX.Element;
|
1366
|
+
}
|
1476
1367
|
|
1477
1368
|
}
|
1478
1369
|
declare module "shared-ui-components/colorPicker/colorPicker" {
|
1479
|
-
import * as React from "react";
|
1480
|
-
import { Color3, Color4 } from "@babylonjs/core/Maths/math.color";
|
1481
|
-
import "shared-ui-components/colorPicker/colorPicker.scss";
|
1482
|
-
/**
|
1483
|
-
* Interface used to specify creation options for color picker
|
1484
|
-
*/
|
1485
|
-
export interface IColorPickerProps {
|
1486
|
-
color: Color3 | Color4;
|
1487
|
-
linearhint?: boolean;
|
1488
|
-
debugMode?: boolean;
|
1489
|
-
onColorChanged?: (color: Color3 | Color4) => void;
|
1490
|
-
}
|
1491
|
-
/**
|
1492
|
-
* Interface used to specify creation options for color picker
|
1493
|
-
*/
|
1494
|
-
export interface IColorPickerState {
|
1495
|
-
color: Color3;
|
1496
|
-
alpha: number;
|
1497
|
-
}
|
1498
|
-
/**
|
1499
|
-
* Class used to create a color picker
|
1500
|
-
*/
|
1501
|
-
export class ColorPicker extends React.Component<IColorPickerProps, IColorPickerState> {
|
1502
|
-
private _saturationRef;
|
1503
|
-
private _hueRef;
|
1504
|
-
private _isSaturationPointerDown;
|
1505
|
-
private _isHuePointerDown;
|
1506
|
-
constructor(props: IColorPickerProps);
|
1507
|
-
shouldComponentUpdate(nextProps: IColorPickerProps, nextState: IColorPickerState): boolean;
|
1508
|
-
onSaturationPointerDown(evt: React.PointerEvent<HTMLDivElement>): void;
|
1509
|
-
onSaturationPointerUp(evt: React.PointerEvent<HTMLDivElement>): void;
|
1510
|
-
onSaturationPointerMove(evt: React.PointerEvent<HTMLDivElement>): void;
|
1511
|
-
onHuePointerDown(evt: React.PointerEvent<HTMLDivElement>): void;
|
1512
|
-
onHuePointerUp(evt: React.PointerEvent<HTMLDivElement>): void;
|
1513
|
-
onHuePointerMove(evt: React.PointerEvent<HTMLDivElement>): void;
|
1514
|
-
private _evaluateSaturation;
|
1515
|
-
private _evaluateHue;
|
1516
|
-
componentDidUpdate(): void;
|
1517
|
-
raiseOnColorChanged(): void;
|
1518
|
-
render(): JSX.Element;
|
1519
|
-
}
|
1370
|
+
import * as React from "react";
|
1371
|
+
import { Color3, Color4 } from "@babylonjs/core/Maths/math.color";
|
1372
|
+
import "shared-ui-components/colorPicker/colorPicker.scss";
|
1373
|
+
/**
|
1374
|
+
* Interface used to specify creation options for color picker
|
1375
|
+
*/
|
1376
|
+
export interface IColorPickerProps {
|
1377
|
+
color: Color3 | Color4;
|
1378
|
+
linearhint?: boolean;
|
1379
|
+
debugMode?: boolean;
|
1380
|
+
onColorChanged?: (color: Color3 | Color4) => void;
|
1381
|
+
}
|
1382
|
+
/**
|
1383
|
+
* Interface used to specify creation options for color picker
|
1384
|
+
*/
|
1385
|
+
export interface IColorPickerState {
|
1386
|
+
color: Color3;
|
1387
|
+
alpha: number;
|
1388
|
+
}
|
1389
|
+
/**
|
1390
|
+
* Class used to create a color picker
|
1391
|
+
*/
|
1392
|
+
export class ColorPicker extends React.Component<IColorPickerProps, IColorPickerState> {
|
1393
|
+
private _saturationRef;
|
1394
|
+
private _hueRef;
|
1395
|
+
private _isSaturationPointerDown;
|
1396
|
+
private _isHuePointerDown;
|
1397
|
+
constructor(props: IColorPickerProps);
|
1398
|
+
shouldComponentUpdate(nextProps: IColorPickerProps, nextState: IColorPickerState): boolean;
|
1399
|
+
onSaturationPointerDown(evt: React.PointerEvent<HTMLDivElement>): void;
|
1400
|
+
onSaturationPointerUp(evt: React.PointerEvent<HTMLDivElement>): void;
|
1401
|
+
onSaturationPointerMove(evt: React.PointerEvent<HTMLDivElement>): void;
|
1402
|
+
onHuePointerDown(evt: React.PointerEvent<HTMLDivElement>): void;
|
1403
|
+
onHuePointerUp(evt: React.PointerEvent<HTMLDivElement>): void;
|
1404
|
+
onHuePointerMove(evt: React.PointerEvent<HTMLDivElement>): void;
|
1405
|
+
private _evaluateSaturation;
|
1406
|
+
private _evaluateHue;
|
1407
|
+
componentDidUpdate(): void;
|
1408
|
+
raiseOnColorChanged(): void;
|
1409
|
+
render(): JSX.Element;
|
1410
|
+
}
|
1520
1411
|
|
1521
1412
|
}
|
1522
1413
|
declare module "shared-ui-components/colorPicker/hexColor" {
|
1523
|
-
import * as React from "react";
|
1524
|
-
export interface IHexColorProps {
|
1525
|
-
value: string;
|
1526
|
-
expectedLength: number;
|
1527
|
-
onChange: (value: string) => void;
|
1528
|
-
}
|
1529
|
-
export class HexColor extends React.Component<IHexColorProps, {
|
1530
|
-
hex: string;
|
1531
|
-
}> {
|
1532
|
-
constructor(props: IHexColorProps);
|
1533
|
-
shouldComponentUpdate(nextProps: IHexColorProps, nextState: {
|
1534
|
-
hex: string;
|
1535
|
-
}): boolean;
|
1536
|
-
updateHexValue(valueString: string): void;
|
1537
|
-
render(): JSX.Element;
|
1538
|
-
}
|
1414
|
+
import * as React from "react";
|
1415
|
+
export interface IHexColorProps {
|
1416
|
+
value: string;
|
1417
|
+
expectedLength: number;
|
1418
|
+
onChange: (value: string) => void;
|
1419
|
+
}
|
1420
|
+
export class HexColor extends React.Component<IHexColorProps, {
|
1421
|
+
hex: string;
|
1422
|
+
}> {
|
1423
|
+
constructor(props: IHexColorProps);
|
1424
|
+
shouldComponentUpdate(nextProps: IHexColorProps, nextState: {
|
1425
|
+
hex: string;
|
1426
|
+
}): boolean;
|
1427
|
+
updateHexValue(valueString: string): void;
|
1428
|
+
render(): JSX.Element;
|
1429
|
+
}
|
1539
1430
|
|
1540
1431
|
}
|
1541
1432
|
declare module "shared-ui-components/lines/booleanLineComponent" {
|
1542
|
-
import * as React from "react";
|
1543
|
-
export interface IBooleanLineComponentProps {
|
1544
|
-
label: string;
|
1545
|
-
value: boolean;
|
1546
|
-
icon?: string;
|
1547
|
-
iconLabel?: string;
|
1548
|
-
}
|
1549
|
-
export class BooleanLineComponent extends React.Component<IBooleanLineComponentProps> {
|
1550
|
-
constructor(props: IBooleanLineComponentProps);
|
1551
|
-
render(): JSX.Element;
|
1552
|
-
}
|
1433
|
+
import * as React from "react";
|
1434
|
+
export interface IBooleanLineComponentProps {
|
1435
|
+
label: string;
|
1436
|
+
value: boolean;
|
1437
|
+
icon?: string;
|
1438
|
+
iconLabel?: string;
|
1439
|
+
}
|
1440
|
+
export class BooleanLineComponent extends React.Component<IBooleanLineComponentProps> {
|
1441
|
+
constructor(props: IBooleanLineComponentProps);
|
1442
|
+
render(): JSX.Element;
|
1443
|
+
}
|
1553
1444
|
|
1554
1445
|
}
|
1555
1446
|
declare module "shared-ui-components/lines/buttonLineComponent" {
|
1556
|
-
import * as React from "react";
|
1557
|
-
export interface IButtonLineComponentProps {
|
1558
|
-
label: string;
|
1559
|
-
onClick: () => void;
|
1560
|
-
icon?: string;
|
1561
|
-
iconLabel?: string;
|
1562
|
-
}
|
1563
|
-
export class ButtonLineComponent extends React.Component<IButtonLineComponentProps> {
|
1564
|
-
constructor(props: IButtonLineComponentProps);
|
1565
|
-
render(): JSX.Element;
|
1566
|
-
}
|
1447
|
+
import * as React from "react";
|
1448
|
+
export interface IButtonLineComponentProps {
|
1449
|
+
label: string;
|
1450
|
+
onClick: () => void;
|
1451
|
+
icon?: string;
|
1452
|
+
iconLabel?: string;
|
1453
|
+
}
|
1454
|
+
export class ButtonLineComponent extends React.Component<IButtonLineComponentProps> {
|
1455
|
+
constructor(props: IButtonLineComponentProps);
|
1456
|
+
render(): JSX.Element;
|
1457
|
+
}
|
1567
1458
|
|
1568
1459
|
}
|
1569
1460
|
declare module "shared-ui-components/lines/checkBoxLineComponent" {
|
1570
|
-
import * as React from "react";
|
1571
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
1572
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
1573
|
-
import { IconDefinition } from "@fortawesome/fontawesome-common-types";
|
1574
|
-
export interface ICheckBoxLineComponentProps {
|
1575
|
-
label?: string;
|
1576
|
-
target?: any;
|
1577
|
-
propertyName?: string;
|
1578
|
-
isSelected?: () => boolean;
|
1579
|
-
onSelect?: (value: boolean) => void;
|
1580
|
-
onValueChanged?: () => void;
|
1581
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
1582
|
-
disabled?: boolean;
|
1583
|
-
icon?: string;
|
1584
|
-
iconLabel?: string;
|
1585
|
-
faIcons?: {
|
1586
|
-
enabled: IconDefinition;
|
1587
|
-
disabled: IconDefinition;
|
1588
|
-
};
|
1589
|
-
|
1590
|
-
|
1591
|
-
|
1592
|
-
|
1593
|
-
|
1594
|
-
|
1595
|
-
|
1596
|
-
|
1597
|
-
|
1598
|
-
|
1599
|
-
|
1600
|
-
|
1601
|
-
|
1602
|
-
|
1603
|
-
|
1604
|
-
|
1461
|
+
import * as React from "react";
|
1462
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
1463
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
1464
|
+
import { IconDefinition } from "@fortawesome/fontawesome-common-types";
|
1465
|
+
export interface ICheckBoxLineComponentProps {
|
1466
|
+
label?: string;
|
1467
|
+
target?: any;
|
1468
|
+
propertyName?: string;
|
1469
|
+
isSelected?: () => boolean;
|
1470
|
+
onSelect?: (value: boolean) => void;
|
1471
|
+
onValueChanged?: () => void;
|
1472
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
1473
|
+
disabled?: boolean;
|
1474
|
+
icon?: string;
|
1475
|
+
iconLabel?: string;
|
1476
|
+
faIcons?: {
|
1477
|
+
enabled: IconDefinition;
|
1478
|
+
disabled: IconDefinition;
|
1479
|
+
};
|
1480
|
+
large?: boolean;
|
1481
|
+
}
|
1482
|
+
export class CheckBoxLineComponent extends React.Component<ICheckBoxLineComponentProps, {
|
1483
|
+
isSelected: boolean;
|
1484
|
+
isDisabled?: boolean;
|
1485
|
+
isConflict: boolean;
|
1486
|
+
}> {
|
1487
|
+
private _localChange;
|
1488
|
+
constructor(props: ICheckBoxLineComponentProps);
|
1489
|
+
shouldComponentUpdate(nextProps: ICheckBoxLineComponentProps, nextState: {
|
1490
|
+
isSelected: boolean;
|
1491
|
+
isDisabled: boolean;
|
1492
|
+
isConflict: boolean;
|
1493
|
+
}): boolean;
|
1494
|
+
onChange(): void;
|
1495
|
+
render(): JSX.Element;
|
1496
|
+
}
|
1605
1497
|
|
1606
1498
|
}
|
1607
1499
|
declare module "shared-ui-components/lines/color3LineComponent" {
|
1608
|
-
import * as React from "react";
|
1609
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
1610
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
1611
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
1612
|
-
export interface IColor3LineComponentProps {
|
1613
|
-
label: string;
|
1614
|
-
target: any;
|
1615
|
-
propertyName: string;
|
1616
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
1617
|
-
isLinear?: boolean;
|
1618
|
-
icon?: string;
|
1619
|
-
lockObject?: LockObject;
|
1620
|
-
iconLabel?: string;
|
1621
|
-
onValueChange?: (value: string) => void;
|
1622
|
-
}
|
1623
|
-
export class Color3LineComponent extends React.Component<IColor3LineComponentProps> {
|
1624
|
-
render(): JSX.Element;
|
1625
|
-
}
|
1500
|
+
import * as React from "react";
|
1501
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
1502
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
1503
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
1504
|
+
export interface IColor3LineComponentProps {
|
1505
|
+
label: string;
|
1506
|
+
target: any;
|
1507
|
+
propertyName: string;
|
1508
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
1509
|
+
isLinear?: boolean;
|
1510
|
+
icon?: string;
|
1511
|
+
lockObject?: LockObject;
|
1512
|
+
iconLabel?: string;
|
1513
|
+
onValueChange?: (value: string) => void;
|
1514
|
+
}
|
1515
|
+
export class Color3LineComponent extends React.Component<IColor3LineComponentProps> {
|
1516
|
+
render(): JSX.Element;
|
1517
|
+
}
|
1626
1518
|
|
1627
1519
|
}
|
1628
1520
|
declare module "shared-ui-components/lines/color4LineComponent" {
|
1629
|
-
import * as React from "react";
|
1630
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
1631
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
1632
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
1633
|
-
export interface IColor4LineComponentProps {
|
1634
|
-
label: string;
|
1635
|
-
target?: any;
|
1636
|
-
propertyName: string;
|
1637
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
1638
|
-
onChange?: () => void;
|
1639
|
-
isLinear?: boolean;
|
1640
|
-
icon?: string;
|
1641
|
-
iconLabel?: string;
|
1642
|
-
lockObject?: LockObject;
|
1643
|
-
}
|
1644
|
-
export class Color4LineComponent extends React.Component<IColor4LineComponentProps> {
|
1645
|
-
render(): JSX.Element;
|
1646
|
-
}
|
1521
|
+
import * as React from "react";
|
1522
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
1523
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
1524
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
1525
|
+
export interface IColor4LineComponentProps {
|
1526
|
+
label: string;
|
1527
|
+
target?: any;
|
1528
|
+
propertyName: string;
|
1529
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
1530
|
+
onChange?: () => void;
|
1531
|
+
isLinear?: boolean;
|
1532
|
+
icon?: string;
|
1533
|
+
iconLabel?: string;
|
1534
|
+
lockObject?: LockObject;
|
1535
|
+
}
|
1536
|
+
export class Color4LineComponent extends React.Component<IColor4LineComponentProps> {
|
1537
|
+
render(): JSX.Element;
|
1538
|
+
}
|
1647
1539
|
|
1648
1540
|
}
|
1649
1541
|
declare module "shared-ui-components/lines/colorLineComponent" {
|
1650
|
-
import * as React from "react";
|
1651
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
1652
|
-
import { Color4 } from "@babylonjs/core/Maths/math.color";
|
1653
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
1654
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
1655
|
-
export interface IColorLineComponentProps {
|
1656
|
-
label: string;
|
1657
|
-
target?: any;
|
1658
|
-
propertyName: string;
|
1659
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
1660
|
-
onChange?: () => void;
|
1661
|
-
isLinear?: boolean;
|
1662
|
-
icon?: string;
|
1663
|
-
iconLabel?: string;
|
1664
|
-
lockObject?: LockObject;
|
1665
|
-
disableAlpha?: boolean;
|
1666
|
-
}
|
1667
|
-
interface IColorLineComponentState {
|
1668
|
-
isExpanded: boolean;
|
1669
|
-
color: Color4;
|
1670
|
-
}
|
1671
|
-
export class ColorLineComponent extends React.Component<IColorLineComponentProps, IColorLineComponentState> {
|
1672
|
-
constructor(props: IColorLineComponentProps);
|
1673
|
-
shouldComponentUpdate(nextProps: IColorLineComponentProps, nextState: IColorLineComponentState): boolean;
|
1674
|
-
getValue(props?: Readonly<IColorLineComponentProps> & Readonly<{
|
1675
|
-
children?: React.ReactNode;
|
1676
|
-
}>): Color4;
|
1677
|
-
setColorFromString(colorString: string): void;
|
1678
|
-
setColor(newColor: Color4): void;
|
1679
|
-
switchExpandState(): void;
|
1680
|
-
updateStateR(value: number): void;
|
1681
|
-
updateStateG(value: number): void;
|
1682
|
-
updateStateB(value: number): void;
|
1683
|
-
updateStateA(value: number): void;
|
1684
|
-
copyToClipboard(): void;
|
1685
|
-
private _convertToColor;
|
1686
|
-
private _toColor3;
|
1687
|
-
render(): JSX.Element;
|
1688
|
-
}
|
1689
|
-
export {};
|
1542
|
+
import * as React from "react";
|
1543
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
1544
|
+
import { Color4 } from "@babylonjs/core/Maths/math.color";
|
1545
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
1546
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
1547
|
+
export interface IColorLineComponentProps {
|
1548
|
+
label: string;
|
1549
|
+
target?: any;
|
1550
|
+
propertyName: string;
|
1551
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
1552
|
+
onChange?: () => void;
|
1553
|
+
isLinear?: boolean;
|
1554
|
+
icon?: string;
|
1555
|
+
iconLabel?: string;
|
1556
|
+
lockObject?: LockObject;
|
1557
|
+
disableAlpha?: boolean;
|
1558
|
+
}
|
1559
|
+
interface IColorLineComponentState {
|
1560
|
+
isExpanded: boolean;
|
1561
|
+
color: Color4;
|
1562
|
+
}
|
1563
|
+
export class ColorLineComponent extends React.Component<IColorLineComponentProps, IColorLineComponentState> {
|
1564
|
+
constructor(props: IColorLineComponentProps);
|
1565
|
+
shouldComponentUpdate(nextProps: IColorLineComponentProps, nextState: IColorLineComponentState): boolean;
|
1566
|
+
getValue(props?: Readonly<IColorLineComponentProps> & Readonly<{
|
1567
|
+
children?: React.ReactNode;
|
1568
|
+
}>): Color4;
|
1569
|
+
setColorFromString(colorString: string): void;
|
1570
|
+
setColor(newColor: Color4): void;
|
1571
|
+
switchExpandState(): void;
|
1572
|
+
updateStateR(value: number): void;
|
1573
|
+
updateStateG(value: number): void;
|
1574
|
+
updateStateB(value: number): void;
|
1575
|
+
updateStateA(value: number): void;
|
1576
|
+
copyToClipboard(): void;
|
1577
|
+
private _convertToColor;
|
1578
|
+
private _toColor3;
|
1579
|
+
render(): JSX.Element;
|
1580
|
+
}
|
1581
|
+
export {};
|
1690
1582
|
|
1691
1583
|
}
|
1692
1584
|
declare module "shared-ui-components/lines/colorPickerComponent" {
|
1693
|
-
import * as React from "react";
|
1694
|
-
import { Color4, Color3 } from "@babylonjs/core/Maths/math.color";
|
1695
|
-
export interface IColorPickerComponentProps {
|
1696
|
-
value: Color4 | Color3;
|
1697
|
-
linearHint?: boolean;
|
1698
|
-
onColorChanged: (newOne: string) => void;
|
1699
|
-
icon?: string;
|
1700
|
-
iconLabel?: string;
|
1701
|
-
shouldPopRight?: boolean;
|
1702
|
-
}
|
1703
|
-
interface IColorPickerComponentState {
|
1704
|
-
pickerEnabled: boolean;
|
1705
|
-
color: Color3 | Color4;
|
1706
|
-
hex: string;
|
1707
|
-
}
|
1708
|
-
export class ColorPickerLineComponent extends React.Component<IColorPickerComponentProps, IColorPickerComponentState> {
|
1709
|
-
private _floatRef;
|
1710
|
-
private _floatHostRef;
|
1711
|
-
constructor(props: IColorPickerComponentProps);
|
1712
|
-
syncPositions(): void;
|
1713
|
-
shouldComponentUpdate(nextProps: IColorPickerComponentProps, nextState: IColorPickerComponentState): boolean;
|
1714
|
-
getHexString(props?: Readonly<IColorPickerComponentProps> & Readonly<{
|
1715
|
-
children?: React.ReactNode;
|
1716
|
-
}>): string;
|
1717
|
-
componentDidUpdate(): void;
|
1718
|
-
componentDidMount(): void;
|
1719
|
-
render(): JSX.Element;
|
1720
|
-
}
|
1721
|
-
export {};
|
1585
|
+
import * as React from "react";
|
1586
|
+
import { Color4, Color3 } from "@babylonjs/core/Maths/math.color";
|
1587
|
+
export interface IColorPickerComponentProps {
|
1588
|
+
value: Color4 | Color3;
|
1589
|
+
linearHint?: boolean;
|
1590
|
+
onColorChanged: (newOne: string) => void;
|
1591
|
+
icon?: string;
|
1592
|
+
iconLabel?: string;
|
1593
|
+
shouldPopRight?: boolean;
|
1594
|
+
}
|
1595
|
+
interface IColorPickerComponentState {
|
1596
|
+
pickerEnabled: boolean;
|
1597
|
+
color: Color3 | Color4;
|
1598
|
+
hex: string;
|
1599
|
+
}
|
1600
|
+
export class ColorPickerLineComponent extends React.Component<IColorPickerComponentProps, IColorPickerComponentState> {
|
1601
|
+
private _floatRef;
|
1602
|
+
private _floatHostRef;
|
1603
|
+
constructor(props: IColorPickerComponentProps);
|
1604
|
+
syncPositions(): void;
|
1605
|
+
shouldComponentUpdate(nextProps: IColorPickerComponentProps, nextState: IColorPickerComponentState): boolean;
|
1606
|
+
getHexString(props?: Readonly<IColorPickerComponentProps> & Readonly<{
|
1607
|
+
children?: React.ReactNode;
|
1608
|
+
}>): string;
|
1609
|
+
componentDidUpdate(): void;
|
1610
|
+
componentDidMount(): void;
|
1611
|
+
render(): JSX.Element;
|
1612
|
+
}
|
1613
|
+
export {};
|
1722
1614
|
|
1723
1615
|
}
|
1724
1616
|
declare module "shared-ui-components/lines/draggableLineComponent" {
|
1725
|
-
import * as React from "react";
|
1726
|
-
export interface IButtonLineComponentProps {
|
1727
|
-
data: string;
|
1728
|
-
tooltip: string;
|
1729
|
-
}
|
1730
|
-
export class DraggableLineComponent extends React.Component<IButtonLineComponentProps> {
|
1731
|
-
constructor(props: IButtonLineComponentProps);
|
1732
|
-
render(): JSX.Element;
|
1733
|
-
}
|
1617
|
+
import * as React from "react";
|
1618
|
+
export interface IButtonLineComponentProps {
|
1619
|
+
data: string;
|
1620
|
+
tooltip: string;
|
1621
|
+
}
|
1622
|
+
export class DraggableLineComponent extends React.Component<IButtonLineComponentProps> {
|
1623
|
+
constructor(props: IButtonLineComponentProps);
|
1624
|
+
render(): JSX.Element;
|
1625
|
+
}
|
1734
1626
|
|
1735
1627
|
}
|
1736
1628
|
declare module "shared-ui-components/lines/fileButtonLineComponent" {
|
1737
|
-
import * as React from "react";
|
1738
|
-
interface IFileButtonLineComponentProps {
|
1739
|
-
label: string;
|
1740
|
-
onClick: (file: File) => void;
|
1741
|
-
accept: string;
|
1742
|
-
icon?: string;
|
1743
|
-
iconLabel?: string;
|
1744
|
-
}
|
1745
|
-
export class FileButtonLineComponent extends React.Component<IFileButtonLineComponentProps> {
|
1746
|
-
private static _IDGenerator;
|
1747
|
-
private _id;
|
1748
|
-
private _uploadInputRef;
|
1749
|
-
constructor(props: IFileButtonLineComponentProps);
|
1750
|
-
onChange(evt: any): void;
|
1751
|
-
render(): JSX.Element;
|
1752
|
-
}
|
1753
|
-
export {};
|
1629
|
+
import * as React from "react";
|
1630
|
+
interface IFileButtonLineComponentProps {
|
1631
|
+
label: string;
|
1632
|
+
onClick: (file: File) => void;
|
1633
|
+
accept: string;
|
1634
|
+
icon?: string;
|
1635
|
+
iconLabel?: string;
|
1636
|
+
}
|
1637
|
+
export class FileButtonLineComponent extends React.Component<IFileButtonLineComponentProps> {
|
1638
|
+
private static _IDGenerator;
|
1639
|
+
private _id;
|
1640
|
+
private _uploadInputRef;
|
1641
|
+
constructor(props: IFileButtonLineComponentProps);
|
1642
|
+
onChange(evt: any): void;
|
1643
|
+
render(): JSX.Element;
|
1644
|
+
}
|
1645
|
+
export {};
|
1754
1646
|
|
1755
1647
|
}
|
1756
1648
|
declare module "shared-ui-components/lines/fileMultipleButtonLineComponent" {
|
1757
|
-
import * as React from "react";
|
1758
|
-
interface IFileMultipleButtonLineComponentProps {
|
1759
|
-
label: string;
|
1760
|
-
onClick: (event: any) => void;
|
1761
|
-
accept: string;
|
1762
|
-
icon?: string;
|
1763
|
-
iconLabel?: string;
|
1764
|
-
}
|
1765
|
-
export class FileMultipleButtonLineComponent extends React.Component<IFileMultipleButtonLineComponentProps> {
|
1766
|
-
private static _IDGenerator;
|
1767
|
-
private _id;
|
1768
|
-
private _uploadInputRef;
|
1769
|
-
constructor(props: IFileMultipleButtonLineComponentProps);
|
1770
|
-
onChange(evt: any): void;
|
1771
|
-
render(): JSX.Element;
|
1772
|
-
}
|
1773
|
-
export {};
|
1649
|
+
import * as React from "react";
|
1650
|
+
interface IFileMultipleButtonLineComponentProps {
|
1651
|
+
label: string;
|
1652
|
+
onClick: (event: any) => void;
|
1653
|
+
accept: string;
|
1654
|
+
icon?: string;
|
1655
|
+
iconLabel?: string;
|
1656
|
+
}
|
1657
|
+
export class FileMultipleButtonLineComponent extends React.Component<IFileMultipleButtonLineComponentProps> {
|
1658
|
+
private static _IDGenerator;
|
1659
|
+
private _id;
|
1660
|
+
private _uploadInputRef;
|
1661
|
+
constructor(props: IFileMultipleButtonLineComponentProps);
|
1662
|
+
onChange(evt: any): void;
|
1663
|
+
render(): JSX.Element;
|
1664
|
+
}
|
1665
|
+
export {};
|
1774
1666
|
|
1775
1667
|
}
|
1776
1668
|
declare module "shared-ui-components/lines/floatLineComponent" {
|
1777
|
-
import * as React from "react";
|
1778
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
1779
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
1780
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
1781
|
-
interface IFloatLineComponentProps {
|
1782
|
-
label: string;
|
1783
|
-
target: any;
|
1784
|
-
propertyName: string;
|
1785
|
-
lockObject?: LockObject;
|
1786
|
-
onChange?: (newValue: number) => void;
|
1787
|
-
isInteger?: boolean;
|
1788
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
1789
|
-
additionalClass?: string;
|
1790
|
-
step?: string;
|
1791
|
-
digits?: number;
|
1792
|
-
useEuler?: boolean;
|
1793
|
-
min?: number;
|
1794
|
-
max?: number;
|
1795
|
-
smallUI?: boolean;
|
1796
|
-
onEnter?: (newValue: number) => void;
|
1797
|
-
icon?: string;
|
1798
|
-
iconLabel?: string;
|
1799
|
-
defaultValue?: number;
|
1800
|
-
|
1801
|
-
|
1802
|
-
|
1803
|
-
|
1804
|
-
|
1805
|
-
|
1806
|
-
}> {
|
1807
|
-
private _localChange;
|
1808
|
-
private _store;
|
1809
|
-
constructor(props: IFloatLineComponentProps);
|
1810
|
-
componentWillUnmount(): void;
|
1811
|
-
getValueString(value: any): string;
|
1812
|
-
shouldComponentUpdate(nextProps: IFloatLineComponentProps, nextState: {
|
1813
|
-
value: string;
|
1814
|
-
|
1815
|
-
|
1816
|
-
|
1817
|
-
|
1818
|
-
|
1819
|
-
|
1820
|
-
|
1821
|
-
|
1669
|
+
import * as React from "react";
|
1670
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
1671
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
1672
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
1673
|
+
interface IFloatLineComponentProps {
|
1674
|
+
label: string;
|
1675
|
+
target: any;
|
1676
|
+
propertyName: string;
|
1677
|
+
lockObject?: LockObject;
|
1678
|
+
onChange?: (newValue: number) => void;
|
1679
|
+
isInteger?: boolean;
|
1680
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
1681
|
+
additionalClass?: string;
|
1682
|
+
step?: string;
|
1683
|
+
digits?: number;
|
1684
|
+
useEuler?: boolean;
|
1685
|
+
min?: number;
|
1686
|
+
max?: number;
|
1687
|
+
smallUI?: boolean;
|
1688
|
+
onEnter?: (newValue: number) => void;
|
1689
|
+
icon?: string;
|
1690
|
+
iconLabel?: string;
|
1691
|
+
defaultValue?: number;
|
1692
|
+
arrows?: boolean;
|
1693
|
+
unit?: React.ReactNode;
|
1694
|
+
}
|
1695
|
+
export class FloatLineComponent extends React.Component<IFloatLineComponentProps, {
|
1696
|
+
value: string;
|
1697
|
+
dragging: boolean;
|
1698
|
+
}> {
|
1699
|
+
private _localChange;
|
1700
|
+
private _store;
|
1701
|
+
constructor(props: IFloatLineComponentProps);
|
1702
|
+
componentWillUnmount(): void;
|
1703
|
+
getValueString(value: any): string;
|
1704
|
+
shouldComponentUpdate(nextProps: IFloatLineComponentProps, nextState: {
|
1705
|
+
value: string;
|
1706
|
+
dragging: boolean;
|
1707
|
+
}): boolean;
|
1708
|
+
raiseOnPropertyChanged(newValue: number, previousValue: number): void;
|
1709
|
+
updateValue(valueString: string): void;
|
1710
|
+
lock(): void;
|
1711
|
+
unlock(): void;
|
1712
|
+
incrementValue(amount: number): void;
|
1713
|
+
onKeyDown(event: React.KeyboardEvent): void;
|
1714
|
+
render(): JSX.Element;
|
1715
|
+
}
|
1716
|
+
export {};
|
1822
1717
|
|
1823
1718
|
}
|
1824
1719
|
declare module "shared-ui-components/lines/hexLineComponent" {
|
1825
|
-
import * as React from "react";
|
1826
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
1827
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
1828
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
1829
|
-
interface IHexLineComponentProps {
|
1830
|
-
label: string;
|
1831
|
-
target: any;
|
1832
|
-
propertyName: string;
|
1833
|
-
lockObject?: LockObject;
|
1834
|
-
onChange?: (newValue: number) => void;
|
1835
|
-
isInteger?: boolean;
|
1836
|
-
replaySourceReplacement?: string;
|
1837
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
1838
|
-
additionalClass?: string;
|
1839
|
-
step?: string;
|
1840
|
-
digits?: number;
|
1841
|
-
useEuler?: boolean;
|
1842
|
-
min?: number;
|
1843
|
-
icon?: string;
|
1844
|
-
iconLabel?: string;
|
1845
|
-
}
|
1846
|
-
export class HexLineComponent extends React.Component<IHexLineComponentProps, {
|
1847
|
-
value: string;
|
1848
|
-
}> {
|
1849
|
-
private _localChange;
|
1850
|
-
private _store;
|
1851
|
-
private _propertyChange;
|
1852
|
-
constructor(props: IHexLineComponentProps);
|
1853
|
-
componentWillUnmount(): void;
|
1854
|
-
shouldComponentUpdate(nextProps: IHexLineComponentProps, nextState: {
|
1855
|
-
value: string;
|
1856
|
-
}): boolean;
|
1857
|
-
raiseOnPropertyChanged(newValue: number, previousValue: number): void;
|
1858
|
-
convertToHexString(valueString: string): string;
|
1859
|
-
updateValue(valueString: string, raisePropertyChanged: boolean): void;
|
1860
|
-
lock(): void;
|
1861
|
-
unlock(): void;
|
1862
|
-
render(): JSX.Element;
|
1863
|
-
}
|
1864
|
-
export {};
|
1720
|
+
import * as React from "react";
|
1721
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
1722
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
1723
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
1724
|
+
interface IHexLineComponentProps {
|
1725
|
+
label: string;
|
1726
|
+
target: any;
|
1727
|
+
propertyName: string;
|
1728
|
+
lockObject?: LockObject;
|
1729
|
+
onChange?: (newValue: number) => void;
|
1730
|
+
isInteger?: boolean;
|
1731
|
+
replaySourceReplacement?: string;
|
1732
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
1733
|
+
additionalClass?: string;
|
1734
|
+
step?: string;
|
1735
|
+
digits?: number;
|
1736
|
+
useEuler?: boolean;
|
1737
|
+
min?: number;
|
1738
|
+
icon?: string;
|
1739
|
+
iconLabel?: string;
|
1740
|
+
}
|
1741
|
+
export class HexLineComponent extends React.Component<IHexLineComponentProps, {
|
1742
|
+
value: string;
|
1743
|
+
}> {
|
1744
|
+
private _localChange;
|
1745
|
+
private _store;
|
1746
|
+
private _propertyChange;
|
1747
|
+
constructor(props: IHexLineComponentProps);
|
1748
|
+
componentWillUnmount(): void;
|
1749
|
+
shouldComponentUpdate(nextProps: IHexLineComponentProps, nextState: {
|
1750
|
+
value: string;
|
1751
|
+
}): boolean;
|
1752
|
+
raiseOnPropertyChanged(newValue: number, previousValue: number): void;
|
1753
|
+
convertToHexString(valueString: string): string;
|
1754
|
+
updateValue(valueString: string, raisePropertyChanged: boolean): void;
|
1755
|
+
lock(): void;
|
1756
|
+
unlock(): void;
|
1757
|
+
render(): JSX.Element;
|
1758
|
+
}
|
1759
|
+
export {};
|
1865
1760
|
|
1866
1761
|
}
|
1867
1762
|
declare module "shared-ui-components/lines/iconButtonLineComponent" {
|
1868
|
-
import * as React from "react";
|
1869
|
-
export interface IIconButtonLineComponentProps {
|
1870
|
-
icon: string;
|
1871
|
-
onClick: () => void;
|
1872
|
-
tooltip: string;
|
1873
|
-
active?: boolean;
|
1874
|
-
}
|
1875
|
-
export class IconButtonLineComponent extends React.Component<IIconButtonLineComponentProps> {
|
1876
|
-
constructor(props: IIconButtonLineComponentProps);
|
1877
|
-
render(): JSX.Element;
|
1878
|
-
}
|
1763
|
+
import * as React from "react";
|
1764
|
+
export interface IIconButtonLineComponentProps {
|
1765
|
+
icon: string;
|
1766
|
+
onClick: () => void;
|
1767
|
+
tooltip: string;
|
1768
|
+
active?: boolean;
|
1769
|
+
}
|
1770
|
+
export class IconButtonLineComponent extends React.Component<IIconButtonLineComponentProps> {
|
1771
|
+
constructor(props: IIconButtonLineComponentProps);
|
1772
|
+
render(): JSX.Element;
|
1773
|
+
}
|
1879
1774
|
|
1880
1775
|
}
|
1881
1776
|
declare module "shared-ui-components/lines/iconComponent" {
|
1882
|
-
import * as React from "react";
|
1883
|
-
interface IIconComponentProps {
|
1884
|
-
icon: string;
|
1885
|
-
label?: string;
|
1886
|
-
}
|
1887
|
-
export class IconComponent extends React.Component<IIconComponentProps> {
|
1888
|
-
render(): JSX.Element;
|
1889
|
-
}
|
1890
|
-
export {};
|
1777
|
+
import * as React from "react";
|
1778
|
+
interface IIconComponentProps {
|
1779
|
+
icon: string;
|
1780
|
+
label?: string;
|
1781
|
+
}
|
1782
|
+
export class IconComponent extends React.Component<IIconComponentProps> {
|
1783
|
+
render(): JSX.Element;
|
1784
|
+
}
|
1785
|
+
export {};
|
1891
1786
|
|
1892
1787
|
}
|
1893
1788
|
declare module "shared-ui-components/lines/indentedTextLineComponent" {
|
1894
|
-
import * as React from "react";
|
1895
|
-
interface IIndentedTextLineComponentProps {
|
1896
|
-
value?: string;
|
1897
|
-
color?: string;
|
1898
|
-
underline?: boolean;
|
1899
|
-
onLink?: () => void;
|
1900
|
-
url?: string;
|
1901
|
-
additionalClass?: string;
|
1902
|
-
}
|
1903
|
-
export class IndentedTextLineComponent extends React.Component<IIndentedTextLineComponentProps> {
|
1904
|
-
constructor(props: IIndentedTextLineComponentProps);
|
1905
|
-
onLink(): void;
|
1906
|
-
renderContent(): JSX.Element;
|
1907
|
-
render(): JSX.Element;
|
1908
|
-
}
|
1909
|
-
export {};
|
1789
|
+
import * as React from "react";
|
1790
|
+
interface IIndentedTextLineComponentProps {
|
1791
|
+
value?: string;
|
1792
|
+
color?: string;
|
1793
|
+
underline?: boolean;
|
1794
|
+
onLink?: () => void;
|
1795
|
+
url?: string;
|
1796
|
+
additionalClass?: string;
|
1797
|
+
}
|
1798
|
+
export class IndentedTextLineComponent extends React.Component<IIndentedTextLineComponentProps> {
|
1799
|
+
constructor(props: IIndentedTextLineComponentProps);
|
1800
|
+
onLink(): void;
|
1801
|
+
renderContent(): JSX.Element;
|
1802
|
+
render(): JSX.Element;
|
1803
|
+
}
|
1804
|
+
export {};
|
1910
1805
|
|
1911
1806
|
}
|
1912
1807
|
declare module "shared-ui-components/lines/inputArrowsComponent" {
|
1913
|
-
import * as React from "react";
|
1914
|
-
interface IInputArrowsComponentProps {
|
1915
|
-
incrementValue: (amount: number) => void;
|
1916
|
-
setDragging: (dragging: boolean) => void;
|
1917
|
-
}
|
1918
|
-
export class InputArrowsComponent extends React.Component<IInputArrowsComponentProps> {
|
1919
|
-
private _arrowsRef;
|
1920
|
-
private _drag;
|
1921
|
-
private _releaseListener;
|
1922
|
-
|
1923
|
-
|
1924
|
-
|
1808
|
+
import * as React from "react";
|
1809
|
+
interface IInputArrowsComponentProps {
|
1810
|
+
incrementValue: (amount: number) => void;
|
1811
|
+
setDragging: (dragging: boolean) => void;
|
1812
|
+
}
|
1813
|
+
export class InputArrowsComponent extends React.Component<IInputArrowsComponentProps> {
|
1814
|
+
private _arrowsRef;
|
1815
|
+
private _drag;
|
1816
|
+
private _releaseListener;
|
1817
|
+
private _lockChangeListener;
|
1818
|
+
render(): JSX.Element;
|
1819
|
+
}
|
1820
|
+
export {};
|
1925
1821
|
|
1926
1822
|
}
|
1927
1823
|
declare module "shared-ui-components/lines/iSelectedLineContainer" {
|
1928
|
-
export interface ISelectedLineContainer {
|
1929
|
-
selectedLineContainerTitles: Array<string>;
|
1930
|
-
selectedLineContainerTitlesNoFocus: Array<string>;
|
1931
|
-
}
|
1824
|
+
export interface ISelectedLineContainer {
|
1825
|
+
selectedLineContainerTitles: Array<string>;
|
1826
|
+
selectedLineContainerTitlesNoFocus: Array<string>;
|
1827
|
+
}
|
1932
1828
|
|
1933
1829
|
}
|
1934
1830
|
declare module "shared-ui-components/lines/lineContainerComponent" {
|
1935
|
-
import * as React from "react";
|
1936
|
-
import { ISelectedLineContainer } from "shared-ui-components/lines/iSelectedLineContainer";
|
1937
|
-
interface ILineContainerComponentProps {
|
1938
|
-
selection?: ISelectedLineContainer;
|
1939
|
-
title: string;
|
1940
|
-
children: any[] | any;
|
1941
|
-
closed?: boolean;
|
1942
|
-
}
|
1943
|
-
export class LineContainerComponent extends React.Component<ILineContainerComponentProps, {
|
1944
|
-
isExpanded: boolean;
|
1945
|
-
isHighlighted: boolean;
|
1946
|
-
}> {
|
1947
|
-
constructor(props: ILineContainerComponentProps);
|
1948
|
-
switchExpandedState(): void;
|
1949
|
-
renderHeader(): JSX.Element;
|
1950
|
-
componentDidMount(): void;
|
1951
|
-
render(): JSX.Element;
|
1952
|
-
}
|
1953
|
-
export {};
|
1831
|
+
import * as React from "react";
|
1832
|
+
import { ISelectedLineContainer } from "shared-ui-components/lines/iSelectedLineContainer";
|
1833
|
+
interface ILineContainerComponentProps {
|
1834
|
+
selection?: ISelectedLineContainer;
|
1835
|
+
title: string;
|
1836
|
+
children: any[] | any;
|
1837
|
+
closed?: boolean;
|
1838
|
+
}
|
1839
|
+
export class LineContainerComponent extends React.Component<ILineContainerComponentProps, {
|
1840
|
+
isExpanded: boolean;
|
1841
|
+
isHighlighted: boolean;
|
1842
|
+
}> {
|
1843
|
+
constructor(props: ILineContainerComponentProps);
|
1844
|
+
switchExpandedState(): void;
|
1845
|
+
renderHeader(): JSX.Element;
|
1846
|
+
componentDidMount(): void;
|
1847
|
+
render(): JSX.Element;
|
1848
|
+
}
|
1849
|
+
export {};
|
1954
1850
|
|
1955
1851
|
}
|
1956
1852
|
declare module "shared-ui-components/lines/linkButtonComponent" {
|
1957
|
-
import * as React from "react";
|
1958
|
-
import { IconProp } from "@fortawesome/fontawesome-svg-core";
|
1959
|
-
interface ILinkButtonComponentProps {
|
1960
|
-
label: string;
|
1961
|
-
buttonLabel: string;
|
1962
|
-
url?: string;
|
1963
|
-
onClick: () => void;
|
1964
|
-
icon?: IconProp;
|
1965
|
-
onIconClick?: () => void;
|
1966
|
-
}
|
1967
|
-
export class LinkButtonComponent extends React.Component<ILinkButtonComponentProps> {
|
1968
|
-
constructor(props: ILinkButtonComponentProps);
|
1969
|
-
onLink(): void;
|
1970
|
-
render(): JSX.Element;
|
1971
|
-
}
|
1972
|
-
export {};
|
1853
|
+
import * as React from "react";
|
1854
|
+
import { IconProp } from "@fortawesome/fontawesome-svg-core";
|
1855
|
+
interface ILinkButtonComponentProps {
|
1856
|
+
label: string;
|
1857
|
+
buttonLabel: string;
|
1858
|
+
url?: string;
|
1859
|
+
onClick: () => void;
|
1860
|
+
icon?: IconProp;
|
1861
|
+
onIconClick?: () => void;
|
1862
|
+
}
|
1863
|
+
export class LinkButtonComponent extends React.Component<ILinkButtonComponentProps> {
|
1864
|
+
constructor(props: ILinkButtonComponentProps);
|
1865
|
+
onLink(): void;
|
1866
|
+
render(): JSX.Element;
|
1867
|
+
}
|
1868
|
+
export {};
|
1973
1869
|
|
1974
1870
|
}
|
1975
1871
|
declare module "shared-ui-components/lines/messageLineComponent" {
|
1976
|
-
import * as React from "react";
|
1977
|
-
import { IconProp } from "@fortawesome/fontawesome-svg-core";
|
1978
|
-
interface IMessageLineComponentProps {
|
1979
|
-
text: string;
|
1980
|
-
color?: string;
|
1981
|
-
icon?: IconProp;
|
1982
|
-
}
|
1983
|
-
export class MessageLineComponent extends React.Component<IMessageLineComponentProps> {
|
1984
|
-
constructor(props: IMessageLineComponentProps);
|
1985
|
-
render(): JSX.Element;
|
1986
|
-
}
|
1987
|
-
export {};
|
1872
|
+
import * as React from "react";
|
1873
|
+
import { IconProp } from "@fortawesome/fontawesome-svg-core";
|
1874
|
+
interface IMessageLineComponentProps {
|
1875
|
+
text: string;
|
1876
|
+
color?: string;
|
1877
|
+
icon?: IconProp;
|
1878
|
+
}
|
1879
|
+
export class MessageLineComponent extends React.Component<IMessageLineComponentProps> {
|
1880
|
+
constructor(props: IMessageLineComponentProps);
|
1881
|
+
render(): JSX.Element;
|
1882
|
+
}
|
1883
|
+
export {};
|
1988
1884
|
|
1989
1885
|
}
|
1990
1886
|
declare module "shared-ui-components/lines/numericInputComponent" {
|
1991
|
-
import * as React from "react";
|
1992
|
-
interface INumericInputComponentProps {
|
1993
|
-
label: string;
|
1994
|
-
value: number;
|
1995
|
-
step?: number;
|
1996
|
-
onChange: (value: number) => void;
|
1997
|
-
precision?: number;
|
1998
|
-
icon?: string;
|
1999
|
-
iconLabel?: string;
|
2000
|
-
}
|
2001
|
-
export class NumericInputComponent extends React.Component<INumericInputComponentProps, {
|
2002
|
-
value: string;
|
2003
|
-
}> {
|
2004
|
-
static defaultProps: {
|
2005
|
-
step: number;
|
2006
|
-
};
|
2007
|
-
private _localChange;
|
2008
|
-
constructor(props: INumericInputComponentProps);
|
2009
|
-
shouldComponentUpdate(nextProps: INumericInputComponentProps, nextState: {
|
2010
|
-
value: string;
|
2011
|
-
}): boolean;
|
2012
|
-
updateValue(evt: any): void;
|
2013
|
-
onBlur(): void;
|
2014
|
-
render(): JSX.Element;
|
2015
|
-
}
|
2016
|
-
export {};
|
1887
|
+
import * as React from "react";
|
1888
|
+
interface INumericInputComponentProps {
|
1889
|
+
label: string;
|
1890
|
+
value: number;
|
1891
|
+
step?: number;
|
1892
|
+
onChange: (value: number) => void;
|
1893
|
+
precision?: number;
|
1894
|
+
icon?: string;
|
1895
|
+
iconLabel?: string;
|
1896
|
+
}
|
1897
|
+
export class NumericInputComponent extends React.Component<INumericInputComponentProps, {
|
1898
|
+
value: string;
|
1899
|
+
}> {
|
1900
|
+
static defaultProps: {
|
1901
|
+
step: number;
|
1902
|
+
};
|
1903
|
+
private _localChange;
|
1904
|
+
constructor(props: INumericInputComponentProps);
|
1905
|
+
shouldComponentUpdate(nextProps: INumericInputComponentProps, nextState: {
|
1906
|
+
value: string;
|
1907
|
+
}): boolean;
|
1908
|
+
updateValue(evt: any): void;
|
1909
|
+
onBlur(): void;
|
1910
|
+
render(): JSX.Element;
|
1911
|
+
}
|
1912
|
+
export {};
|
2017
1913
|
|
2018
1914
|
}
|
2019
1915
|
declare module "shared-ui-components/lines/optionsLineComponent" {
|
2020
|
-
import * as React from "react";
|
2021
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
2022
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2023
|
-
import { IInspectableOptions } from "@babylonjs/core/Misc/iInspectable";
|
2024
|
-
export const Null_Value: number;
|
2025
|
-
export interface IOptionsLineComponentProps {
|
2026
|
-
label: string;
|
2027
|
-
target: any;
|
2028
|
-
propertyName: string;
|
2029
|
-
options: IInspectableOptions[];
|
2030
|
-
noDirectUpdate?: boolean;
|
2031
|
-
onSelect?: (value: number) => void;
|
2032
|
-
extractValue?: () => number;
|
2033
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2034
|
-
allowNullValue?: boolean;
|
2035
|
-
icon?: string;
|
2036
|
-
iconLabel?: string;
|
2037
|
-
}
|
2038
|
-
export class OptionsLineComponent extends React.Component<IOptionsLineComponentProps, {
|
2039
|
-
value: number;
|
2040
|
-
}> {
|
2041
|
-
private _localChange;
|
2042
|
-
private _remapValueIn;
|
2043
|
-
private _remapValueOut;
|
2044
|
-
constructor(props: IOptionsLineComponentProps);
|
2045
|
-
shouldComponentUpdate(nextProps: IOptionsLineComponentProps, nextState: {
|
2046
|
-
value: number;
|
2047
|
-
}): boolean;
|
2048
|
-
raiseOnPropertyChanged(newValue: number, previousValue: number): void;
|
2049
|
-
updateValue(valueString: string): void;
|
2050
|
-
render(): JSX.Element;
|
2051
|
-
}
|
1916
|
+
import * as React from "react";
|
1917
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
1918
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
1919
|
+
import { IInspectableOptions } from "@babylonjs/core/Misc/iInspectable";
|
1920
|
+
export const Null_Value: number;
|
1921
|
+
export interface IOptionsLineComponentProps {
|
1922
|
+
label: string;
|
1923
|
+
target: any;
|
1924
|
+
propertyName: string;
|
1925
|
+
options: IInspectableOptions[];
|
1926
|
+
noDirectUpdate?: boolean;
|
1927
|
+
onSelect?: (value: number) => void;
|
1928
|
+
extractValue?: () => number;
|
1929
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
1930
|
+
allowNullValue?: boolean;
|
1931
|
+
icon?: string;
|
1932
|
+
iconLabel?: string;
|
1933
|
+
}
|
1934
|
+
export class OptionsLineComponent extends React.Component<IOptionsLineComponentProps, {
|
1935
|
+
value: number;
|
1936
|
+
}> {
|
1937
|
+
private _localChange;
|
1938
|
+
private _remapValueIn;
|
1939
|
+
private _remapValueOut;
|
1940
|
+
constructor(props: IOptionsLineComponentProps);
|
1941
|
+
shouldComponentUpdate(nextProps: IOptionsLineComponentProps, nextState: {
|
1942
|
+
value: number;
|
1943
|
+
}): boolean;
|
1944
|
+
raiseOnPropertyChanged(newValue: number, previousValue: number): void;
|
1945
|
+
updateValue(valueString: string): void;
|
1946
|
+
render(): JSX.Element;
|
1947
|
+
}
|
2052
1948
|
|
2053
1949
|
}
|
2054
1950
|
declare module "shared-ui-components/lines/popup" {
|
2055
|
-
export class Popup {
|
2056
|
-
static CreatePopup(title: string, windowVariableName: string, width?: number, height?: number): HTMLDivElement | null;
|
2057
|
-
private static _CopyStyles;
|
2058
|
-
}
|
1951
|
+
export class Popup {
|
1952
|
+
static CreatePopup(title: string, windowVariableName: string, width?: number, height?: number): HTMLDivElement | null;
|
1953
|
+
private static _CopyStyles;
|
1954
|
+
}
|
2059
1955
|
|
2060
1956
|
}
|
2061
1957
|
declare module "shared-ui-components/lines/radioLineComponent" {
|
2062
|
-
import * as React from "react";
|
2063
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
2064
|
-
interface IRadioButtonLineComponentProps {
|
2065
|
-
onSelectionChangedObservable: Observable<RadioButtonLineComponent>;
|
2066
|
-
label: string;
|
2067
|
-
isSelected: () => boolean;
|
2068
|
-
onSelect: () => void;
|
2069
|
-
icon?: string;
|
2070
|
-
iconLabel?: string;
|
2071
|
-
}
|
2072
|
-
export class RadioButtonLineComponent extends React.Component<IRadioButtonLineComponentProps, {
|
2073
|
-
isSelected: boolean;
|
2074
|
-
}> {
|
2075
|
-
private _onSelectionChangedObserver;
|
2076
|
-
constructor(props: IRadioButtonLineComponentProps);
|
2077
|
-
componentDidMount(): void;
|
2078
|
-
componentWillUnmount(): void;
|
2079
|
-
onChange(): void;
|
2080
|
-
render(): JSX.Element;
|
2081
|
-
}
|
2082
|
-
export {};
|
1958
|
+
import * as React from "react";
|
1959
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
1960
|
+
interface IRadioButtonLineComponentProps {
|
1961
|
+
onSelectionChangedObservable: Observable<RadioButtonLineComponent>;
|
1962
|
+
label: string;
|
1963
|
+
isSelected: () => boolean;
|
1964
|
+
onSelect: () => void;
|
1965
|
+
icon?: string;
|
1966
|
+
iconLabel?: string;
|
1967
|
+
}
|
1968
|
+
export class RadioButtonLineComponent extends React.Component<IRadioButtonLineComponentProps, {
|
1969
|
+
isSelected: boolean;
|
1970
|
+
}> {
|
1971
|
+
private _onSelectionChangedObserver;
|
1972
|
+
constructor(props: IRadioButtonLineComponentProps);
|
1973
|
+
componentDidMount(): void;
|
1974
|
+
componentWillUnmount(): void;
|
1975
|
+
onChange(): void;
|
1976
|
+
render(): JSX.Element;
|
1977
|
+
}
|
1978
|
+
export {};
|
2083
1979
|
|
2084
1980
|
}
|
2085
1981
|
declare module "shared-ui-components/lines/sliderLineComponent" {
|
2086
|
-
import * as React from "react";
|
2087
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
2088
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2089
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
2090
|
-
interface ISliderLineComponentProps {
|
2091
|
-
label: string;
|
2092
|
-
target?: any;
|
2093
|
-
propertyName?: string;
|
2094
|
-
minimum: number;
|
2095
|
-
maximum: number;
|
2096
|
-
step: number;
|
2097
|
-
directValue?: number;
|
2098
|
-
useEuler?: boolean;
|
2099
|
-
onChange?: (value: number) => void;
|
2100
|
-
onInput?: (value: number) => void;
|
2101
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2102
|
-
decimalCount?: number;
|
2103
|
-
margin?: boolean;
|
2104
|
-
icon?: string;
|
2105
|
-
iconLabel?: string;
|
2106
|
-
lockObject?: LockObject;
|
2107
|
-
|
2108
|
-
|
2109
|
-
|
2110
|
-
|
2111
|
-
|
2112
|
-
|
2113
|
-
|
2114
|
-
|
2115
|
-
|
2116
|
-
|
2117
|
-
|
2118
|
-
|
2119
|
-
|
2120
|
-
|
2121
|
-
|
1982
|
+
import * as React from "react";
|
1983
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
1984
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
1985
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
1986
|
+
interface ISliderLineComponentProps {
|
1987
|
+
label: string;
|
1988
|
+
target?: any;
|
1989
|
+
propertyName?: string;
|
1990
|
+
minimum: number;
|
1991
|
+
maximum: number;
|
1992
|
+
step: number;
|
1993
|
+
directValue?: number;
|
1994
|
+
useEuler?: boolean;
|
1995
|
+
onChange?: (value: number) => void;
|
1996
|
+
onInput?: (value: number) => void;
|
1997
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
1998
|
+
decimalCount?: number;
|
1999
|
+
margin?: boolean;
|
2000
|
+
icon?: string;
|
2001
|
+
iconLabel?: string;
|
2002
|
+
lockObject?: LockObject;
|
2003
|
+
unit?: React.ReactNode;
|
2004
|
+
}
|
2005
|
+
export class SliderLineComponent extends React.Component<ISliderLineComponentProps, {
|
2006
|
+
value: number;
|
2007
|
+
}> {
|
2008
|
+
private _localChange;
|
2009
|
+
constructor(props: ISliderLineComponentProps);
|
2010
|
+
shouldComponentUpdate(nextProps: ISliderLineComponentProps, nextState: {
|
2011
|
+
value: number;
|
2012
|
+
}): boolean;
|
2013
|
+
onChange(newValueString: any): void;
|
2014
|
+
onInput(newValueString: any): void;
|
2015
|
+
prepareDataToRead(value: number): number;
|
2016
|
+
render(): JSX.Element;
|
2017
|
+
}
|
2018
|
+
export {};
|
2122
2019
|
|
2123
2020
|
}
|
2124
2021
|
declare module "shared-ui-components/lines/targetsProxy" {
|
2125
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2126
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
2127
|
-
export const conflictingValuesPlaceholder = "\u2014";
|
2128
|
-
/**
|
2129
|
-
*
|
2130
|
-
* @param targets a list of selected targets
|
2131
|
-
* @param onPropertyChangedObservable
|
2132
|
-
* @param getProperty
|
2133
|
-
* @returns a proxy object that can be passed as a target into the input
|
2134
|
-
*/
|
2135
|
-
export function makeTargetsProxy<Type>(targets: Type[], onPropertyChangedObservable?: Observable<PropertyChangedEvent>, getProperty?: (target: Type, property: keyof Type) => any): any;
|
2022
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2023
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
2024
|
+
export const conflictingValuesPlaceholder = "\u2014";
|
2025
|
+
/**
|
2026
|
+
*
|
2027
|
+
* @param targets a list of selected targets
|
2028
|
+
* @param onPropertyChangedObservable
|
2029
|
+
* @param getProperty
|
2030
|
+
* @returns a proxy object that can be passed as a target into the input
|
2031
|
+
*/
|
2032
|
+
export function makeTargetsProxy<Type>(targets: Type[], onPropertyChangedObservable?: Observable<PropertyChangedEvent>, getProperty?: (target: Type, property: keyof Type) => any): any;
|
2136
2033
|
|
2137
2034
|
}
|
2138
2035
|
declare module "shared-ui-components/lines/textInputLineComponent" {
|
2139
|
-
import * as React from "react";
|
2140
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
2141
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2142
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
2143
|
-
interface ITextInputLineComponentProps {
|
2144
|
-
label?: string;
|
2145
|
-
lockObject?: LockObject;
|
2146
|
-
target?: any;
|
2147
|
-
propertyName?: string;
|
2148
|
-
value?: string;
|
2149
|
-
onChange?: (value: string) => void;
|
2150
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2151
|
-
icon?: string;
|
2152
|
-
iconLabel?: string;
|
2153
|
-
noUnderline?: boolean;
|
2154
|
-
numbersOnly?: boolean;
|
2155
|
-
delayInput?: boolean;
|
2156
|
-
|
2157
|
-
|
2158
|
-
|
2159
|
-
|
2160
|
-
|
2161
|
-
|
2162
|
-
|
2163
|
-
|
2164
|
-
|
2165
|
-
|
2166
|
-
|
2167
|
-
|
2168
|
-
|
2169
|
-
|
2170
|
-
|
2171
|
-
|
2172
|
-
|
2173
|
-
|
2174
|
-
|
2175
|
-
|
2176
|
-
|
2177
|
-
|
2178
|
-
|
2179
|
-
|
2180
|
-
|
2181
|
-
|
2182
|
-
|
2183
|
-
|
2184
|
-
}
|
2185
|
-
export {};
|
2036
|
+
import * as React from "react";
|
2037
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
2038
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2039
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
2040
|
+
export interface ITextInputLineComponentProps {
|
2041
|
+
label?: string;
|
2042
|
+
lockObject?: LockObject;
|
2043
|
+
target?: any;
|
2044
|
+
propertyName?: string;
|
2045
|
+
value?: string;
|
2046
|
+
onChange?: (value: string) => void;
|
2047
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2048
|
+
icon?: string;
|
2049
|
+
iconLabel?: string;
|
2050
|
+
noUnderline?: boolean;
|
2051
|
+
numbersOnly?: boolean;
|
2052
|
+
delayInput?: boolean;
|
2053
|
+
arrows?: boolean;
|
2054
|
+
arrowsIncrement?: (amount: number) => void;
|
2055
|
+
step?: number;
|
2056
|
+
numeric?: boolean;
|
2057
|
+
roundValues?: boolean;
|
2058
|
+
min?: number;
|
2059
|
+
max?: number;
|
2060
|
+
placeholder?: string;
|
2061
|
+
unit?: React.ReactNode;
|
2062
|
+
}
|
2063
|
+
export class TextInputLineComponent extends React.Component<ITextInputLineComponentProps, {
|
2064
|
+
value: string;
|
2065
|
+
dragging: boolean;
|
2066
|
+
}> {
|
2067
|
+
private _localChange;
|
2068
|
+
constructor(props: ITextInputLineComponentProps);
|
2069
|
+
componentWillUnmount(): void;
|
2070
|
+
shouldComponentUpdate(nextProps: ITextInputLineComponentProps, nextState: {
|
2071
|
+
value: string;
|
2072
|
+
dragging: boolean;
|
2073
|
+
}): boolean;
|
2074
|
+
raiseOnPropertyChanged(newValue: string, previousValue: string): void;
|
2075
|
+
getCurrentNumericValue(value: string): number;
|
2076
|
+
updateValue(value: string): void;
|
2077
|
+
incrementValue(amount: number): void;
|
2078
|
+
onKeyDown(event: React.KeyboardEvent): void;
|
2079
|
+
render(): JSX.Element;
|
2080
|
+
}
|
2186
2081
|
|
2187
2082
|
}
|
2188
2083
|
declare module "shared-ui-components/lines/textLineComponent" {
|
2189
|
-
import * as React from "react";
|
2190
|
-
interface ITextLineComponentProps {
|
2191
|
-
label?: string;
|
2192
|
-
value?: string;
|
2193
|
-
color?: string;
|
2194
|
-
underline?: boolean;
|
2195
|
-
onLink?: () => void;
|
2196
|
-
url?: string;
|
2197
|
-
ignoreValue?: boolean;
|
2198
|
-
additionalClass?: string;
|
2199
|
-
icon?: string;
|
2200
|
-
iconLabel?: string;
|
2201
|
-
tooltip?: string;
|
2202
|
-
}
|
2203
|
-
export class TextLineComponent extends React.Component<ITextLineComponentProps> {
|
2204
|
-
constructor(props: ITextLineComponentProps);
|
2205
|
-
onLink(): void;
|
2206
|
-
renderContent(): JSX.Element | null;
|
2207
|
-
render(): JSX.Element;
|
2208
|
-
}
|
2209
|
-
export {};
|
2084
|
+
import * as React from "react";
|
2085
|
+
interface ITextLineComponentProps {
|
2086
|
+
label?: string;
|
2087
|
+
value?: string;
|
2088
|
+
color?: string;
|
2089
|
+
underline?: boolean;
|
2090
|
+
onLink?: () => void;
|
2091
|
+
url?: string;
|
2092
|
+
ignoreValue?: boolean;
|
2093
|
+
additionalClass?: string;
|
2094
|
+
icon?: string;
|
2095
|
+
iconLabel?: string;
|
2096
|
+
tooltip?: string;
|
2097
|
+
}
|
2098
|
+
export class TextLineComponent extends React.Component<ITextLineComponentProps> {
|
2099
|
+
constructor(props: ITextLineComponentProps);
|
2100
|
+
onLink(): void;
|
2101
|
+
renderContent(): JSX.Element | null;
|
2102
|
+
render(): JSX.Element;
|
2103
|
+
}
|
2104
|
+
export {};
|
2105
|
+
|
2106
|
+
}
|
2107
|
+
declare module "shared-ui-components/lines/unitButton" {
|
2108
|
+
/// <reference types="react" />
|
2109
|
+
interface IUnitButtonProps {
|
2110
|
+
unit: string;
|
2111
|
+
locked?: boolean;
|
2112
|
+
onClick?: (unit: string) => void;
|
2113
|
+
}
|
2114
|
+
export function UnitButton(props: IUnitButtonProps): JSX.Element;
|
2115
|
+
export {};
|
2210
2116
|
|
2211
2117
|
}
|
2212
2118
|
declare module "shared-ui-components/lines/valueLineComponent" {
|
2213
|
-
import * as React from "react";
|
2214
|
-
interface IValueLineComponentProps {
|
2215
|
-
label: string;
|
2216
|
-
value: number;
|
2217
|
-
color?: string;
|
2218
|
-
fractionDigits?: number;
|
2219
|
-
units?: string;
|
2220
|
-
icon?: string;
|
2221
|
-
iconLabel?: string;
|
2222
|
-
}
|
2223
|
-
export class ValueLineComponent extends React.Component<IValueLineComponentProps> {
|
2224
|
-
constructor(props: IValueLineComponentProps);
|
2225
|
-
render(): JSX.Element;
|
2226
|
-
}
|
2227
|
-
export {};
|
2119
|
+
import * as React from "react";
|
2120
|
+
interface IValueLineComponentProps {
|
2121
|
+
label: string;
|
2122
|
+
value: number;
|
2123
|
+
color?: string;
|
2124
|
+
fractionDigits?: number;
|
2125
|
+
units?: string;
|
2126
|
+
icon?: string;
|
2127
|
+
iconLabel?: string;
|
2128
|
+
}
|
2129
|
+
export class ValueLineComponent extends React.Component<IValueLineComponentProps> {
|
2130
|
+
constructor(props: IValueLineComponentProps);
|
2131
|
+
render(): JSX.Element;
|
2132
|
+
}
|
2133
|
+
export {};
|
2228
2134
|
|
2229
2135
|
}
|
2230
2136
|
declare module "shared-ui-components/lines/vector2LineComponent" {
|
2231
|
-
import * as React from "react";
|
2232
|
-
import { Vector2 } from "@babylonjs/core/Maths/math.vector";
|
2233
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
2234
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2235
|
-
interface IVector2LineComponentProps {
|
2236
|
-
label: string;
|
2237
|
-
target: any;
|
2238
|
-
propertyName: string;
|
2239
|
-
step?: number;
|
2240
|
-
onChange?: (newvalue: Vector2) => void;
|
2241
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2242
|
-
icon?: string;
|
2243
|
-
iconLabel?: string;
|
2244
|
-
}
|
2245
|
-
export class Vector2LineComponent extends React.Component<IVector2LineComponentProps, {
|
2246
|
-
isExpanded: boolean;
|
2247
|
-
value: Vector2;
|
2248
|
-
}> {
|
2249
|
-
static defaultProps: {
|
2250
|
-
step: number;
|
2251
|
-
};
|
2252
|
-
private _localChange;
|
2253
|
-
constructor(props: IVector2LineComponentProps);
|
2254
|
-
shouldComponentUpdate(nextProps: IVector2LineComponentProps, nextState: {
|
2255
|
-
isExpanded: boolean;
|
2256
|
-
value: Vector2;
|
2257
|
-
}): boolean;
|
2258
|
-
switchExpandState(): void;
|
2259
|
-
raiseOnPropertyChanged(previousValue: Vector2): void;
|
2260
|
-
updateStateX(value: number): void;
|
2261
|
-
updateStateY(value: number): void;
|
2262
|
-
render(): JSX.Element;
|
2263
|
-
}
|
2264
|
-
export {};
|
2137
|
+
import * as React from "react";
|
2138
|
+
import { Vector2 } from "@babylonjs/core/Maths/math.vector";
|
2139
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
2140
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2141
|
+
interface IVector2LineComponentProps {
|
2142
|
+
label: string;
|
2143
|
+
target: any;
|
2144
|
+
propertyName: string;
|
2145
|
+
step?: number;
|
2146
|
+
onChange?: (newvalue: Vector2) => void;
|
2147
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2148
|
+
icon?: string;
|
2149
|
+
iconLabel?: string;
|
2150
|
+
}
|
2151
|
+
export class Vector2LineComponent extends React.Component<IVector2LineComponentProps, {
|
2152
|
+
isExpanded: boolean;
|
2153
|
+
value: Vector2;
|
2154
|
+
}> {
|
2155
|
+
static defaultProps: {
|
2156
|
+
step: number;
|
2157
|
+
};
|
2158
|
+
private _localChange;
|
2159
|
+
constructor(props: IVector2LineComponentProps);
|
2160
|
+
shouldComponentUpdate(nextProps: IVector2LineComponentProps, nextState: {
|
2161
|
+
isExpanded: boolean;
|
2162
|
+
value: Vector2;
|
2163
|
+
}): boolean;
|
2164
|
+
switchExpandState(): void;
|
2165
|
+
raiseOnPropertyChanged(previousValue: Vector2): void;
|
2166
|
+
updateStateX(value: number): void;
|
2167
|
+
updateStateY(value: number): void;
|
2168
|
+
render(): JSX.Element;
|
2169
|
+
}
|
2170
|
+
export {};
|
2265
2171
|
|
2266
2172
|
}
|
2267
2173
|
declare module "shared-ui-components/lines/vector3LineComponent" {
|
2268
|
-
import * as React from "react";
|
2269
|
-
import { Vector3 } from "@babylonjs/core/Maths/math.vector";
|
2270
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
2271
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2272
|
-
interface IVector3LineComponentProps {
|
2273
|
-
label: string;
|
2274
|
-
target: any;
|
2275
|
-
propertyName: string;
|
2276
|
-
step?: number;
|
2277
|
-
onChange?: (newvalue: Vector3) => void;
|
2278
|
-
useEuler?: boolean;
|
2279
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2280
|
-
noSlider?: boolean;
|
2281
|
-
icon?: string;
|
2282
|
-
iconLabel?: string;
|
2283
|
-
}
|
2284
|
-
export class Vector3LineComponent extends React.Component<IVector3LineComponentProps, {
|
2285
|
-
isExpanded: boolean;
|
2286
|
-
value: Vector3;
|
2287
|
-
}> {
|
2288
|
-
static defaultProps: {
|
2289
|
-
step: number;
|
2290
|
-
};
|
2291
|
-
private _localChange;
|
2292
|
-
constructor(props: IVector3LineComponentProps);
|
2293
|
-
getCurrentValue(): any;
|
2294
|
-
shouldComponentUpdate(nextProps: IVector3LineComponentProps, nextState: {
|
2295
|
-
isExpanded: boolean;
|
2296
|
-
value: Vector3;
|
2297
|
-
}): boolean;
|
2298
|
-
switchExpandState(): void;
|
2299
|
-
raiseOnPropertyChanged(previousValue: Vector3): void;
|
2300
|
-
updateVector3(): void;
|
2301
|
-
updateStateX(value: number): void;
|
2302
|
-
updateStateY(value: number): void;
|
2303
|
-
updateStateZ(value: number): void;
|
2304
|
-
render(): JSX.Element;
|
2305
|
-
}
|
2306
|
-
export {};
|
2174
|
+
import * as React from "react";
|
2175
|
+
import { Vector3 } from "@babylonjs/core/Maths/math.vector";
|
2176
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
2177
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2178
|
+
interface IVector3LineComponentProps {
|
2179
|
+
label: string;
|
2180
|
+
target: any;
|
2181
|
+
propertyName: string;
|
2182
|
+
step?: number;
|
2183
|
+
onChange?: (newvalue: Vector3) => void;
|
2184
|
+
useEuler?: boolean;
|
2185
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2186
|
+
noSlider?: boolean;
|
2187
|
+
icon?: string;
|
2188
|
+
iconLabel?: string;
|
2189
|
+
}
|
2190
|
+
export class Vector3LineComponent extends React.Component<IVector3LineComponentProps, {
|
2191
|
+
isExpanded: boolean;
|
2192
|
+
value: Vector3;
|
2193
|
+
}> {
|
2194
|
+
static defaultProps: {
|
2195
|
+
step: number;
|
2196
|
+
};
|
2197
|
+
private _localChange;
|
2198
|
+
constructor(props: IVector3LineComponentProps);
|
2199
|
+
getCurrentValue(): any;
|
2200
|
+
shouldComponentUpdate(nextProps: IVector3LineComponentProps, nextState: {
|
2201
|
+
isExpanded: boolean;
|
2202
|
+
value: Vector3;
|
2203
|
+
}): boolean;
|
2204
|
+
switchExpandState(): void;
|
2205
|
+
raiseOnPropertyChanged(previousValue: Vector3): void;
|
2206
|
+
updateVector3(): void;
|
2207
|
+
updateStateX(value: number): void;
|
2208
|
+
updateStateY(value: number): void;
|
2209
|
+
updateStateZ(value: number): void;
|
2210
|
+
render(): JSX.Element;
|
2211
|
+
}
|
2212
|
+
export {};
|
2307
2213
|
|
2308
2214
|
}
|
2309
2215
|
declare module "shared-ui-components/lines/vector4LineComponent" {
|
2310
|
-
import * as React from "react";
|
2311
|
-
import { Vector4 } from "@babylonjs/core/Maths/math.vector";
|
2312
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
2313
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2314
|
-
interface IVector4LineComponentProps {
|
2315
|
-
label: string;
|
2316
|
-
target: any;
|
2317
|
-
propertyName: string;
|
2318
|
-
step?: number;
|
2319
|
-
onChange?: (newvalue: Vector4) => void;
|
2320
|
-
useEuler?: boolean;
|
2321
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2322
|
-
icon?: string;
|
2323
|
-
iconLabel?: string;
|
2324
|
-
}
|
2325
|
-
export class Vector4LineComponent extends React.Component<IVector4LineComponentProps, {
|
2326
|
-
isExpanded: boolean;
|
2327
|
-
value: Vector4;
|
2328
|
-
}> {
|
2329
|
-
static defaultProps: {
|
2330
|
-
step: number;
|
2331
|
-
};
|
2332
|
-
private _localChange;
|
2333
|
-
constructor(props: IVector4LineComponentProps);
|
2334
|
-
getCurrentValue(): any;
|
2335
|
-
shouldComponentUpdate(nextProps: IVector4LineComponentProps, nextState: {
|
2336
|
-
isExpanded: boolean;
|
2337
|
-
value: Vector4;
|
2338
|
-
}): boolean;
|
2339
|
-
switchExpandState(): void;
|
2340
|
-
raiseOnPropertyChanged(previousValue: Vector4): void;
|
2341
|
-
updateVector4(): void;
|
2342
|
-
updateStateX(value: number): void;
|
2343
|
-
updateStateY(value: number): void;
|
2344
|
-
updateStateZ(value: number): void;
|
2345
|
-
updateStateW(value: number): void;
|
2346
|
-
render(): JSX.Element;
|
2347
|
-
}
|
2348
|
-
export {};
|
2216
|
+
import * as React from "react";
|
2217
|
+
import { Vector4 } from "@babylonjs/core/Maths/math.vector";
|
2218
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
2219
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2220
|
+
interface IVector4LineComponentProps {
|
2221
|
+
label: string;
|
2222
|
+
target: any;
|
2223
|
+
propertyName: string;
|
2224
|
+
step?: number;
|
2225
|
+
onChange?: (newvalue: Vector4) => void;
|
2226
|
+
useEuler?: boolean;
|
2227
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2228
|
+
icon?: string;
|
2229
|
+
iconLabel?: string;
|
2230
|
+
}
|
2231
|
+
export class Vector4LineComponent extends React.Component<IVector4LineComponentProps, {
|
2232
|
+
isExpanded: boolean;
|
2233
|
+
value: Vector4;
|
2234
|
+
}> {
|
2235
|
+
static defaultProps: {
|
2236
|
+
step: number;
|
2237
|
+
};
|
2238
|
+
private _localChange;
|
2239
|
+
constructor(props: IVector4LineComponentProps);
|
2240
|
+
getCurrentValue(): any;
|
2241
|
+
shouldComponentUpdate(nextProps: IVector4LineComponentProps, nextState: {
|
2242
|
+
isExpanded: boolean;
|
2243
|
+
value: Vector4;
|
2244
|
+
}): boolean;
|
2245
|
+
switchExpandState(): void;
|
2246
|
+
raiseOnPropertyChanged(previousValue: Vector4): void;
|
2247
|
+
updateVector4(): void;
|
2248
|
+
updateStateX(value: number): void;
|
2249
|
+
updateStateY(value: number): void;
|
2250
|
+
updateStateZ(value: number): void;
|
2251
|
+
updateStateW(value: number): void;
|
2252
|
+
render(): JSX.Element;
|
2253
|
+
}
|
2254
|
+
export {};
|
2349
2255
|
|
2350
2256
|
}
|
2351
2257
|
declare module "shared-ui-components/propertyChangedEvent" {
|
2352
|
-
export class PropertyChangedEvent {
|
2353
|
-
object: any;
|
2354
|
-
property: string;
|
2355
|
-
value: any;
|
2356
|
-
initialValue: any;
|
2357
|
-
allowNullValue?: boolean;
|
2358
|
-
}
|
2258
|
+
export class PropertyChangedEvent {
|
2259
|
+
object: any;
|
2260
|
+
property: string;
|
2261
|
+
value: any;
|
2262
|
+
initialValue: any;
|
2263
|
+
allowNullValue?: boolean;
|
2264
|
+
}
|
2359
2265
|
|
2360
2266
|
}
|
2361
2267
|
declare module "shared-ui-components/stringTools" {
|
2362
|
-
export class StringTools {
|
2363
|
-
private static _SaveAs;
|
2364
|
-
private static _Click;
|
2365
|
-
/**
|
2366
|
-
* Download a string into a file that will be saved locally by the browser
|
2367
|
-
* @param document
|
2368
|
-
* @param content defines the string to download locally as a file
|
2369
|
-
* @param filename
|
2370
|
-
*/
|
2371
|
-
static DownloadAsFile(document: HTMLDocument, content: string, filename: string): void;
|
2372
|
-
}
|
2268
|
+
export class StringTools {
|
2269
|
+
private static _SaveAs;
|
2270
|
+
private static _Click;
|
2271
|
+
/**
|
2272
|
+
* Download a string into a file that will be saved locally by the browser
|
2273
|
+
* @param document
|
2274
|
+
* @param content defines the string to download locally as a file
|
2275
|
+
* @param filename
|
2276
|
+
*/
|
2277
|
+
static DownloadAsFile(document: HTMLDocument, content: string, filename: string): void;
|
2278
|
+
}
|
2373
2279
|
|
2374
2280
|
}
|
2375
2281
|
declare module "shared-ui-components/tabs/propertyGrids/gui/checkboxPropertyGridComponent" {
|
2376
|
-
import * as React from "react";
|
2377
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
2378
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2379
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
2380
|
-
import { Checkbox } from "@babylonjs/gui/2D/controls/checkbox";
|
2381
|
-
interface ICheckboxPropertyGridComponentProps {
|
2382
|
-
checkbox: Checkbox;
|
2383
|
-
lockObject: LockObject;
|
2384
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2385
|
-
}
|
2386
|
-
export class CheckboxPropertyGridComponent extends React.Component<ICheckboxPropertyGridComponentProps> {
|
2387
|
-
constructor(props: ICheckboxPropertyGridComponentProps);
|
2388
|
-
render(): JSX.Element;
|
2389
|
-
}
|
2390
|
-
export {};
|
2282
|
+
import * as React from "react";
|
2283
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
2284
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2285
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
2286
|
+
import { Checkbox } from "@babylonjs/gui/2D/controls/checkbox";
|
2287
|
+
interface ICheckboxPropertyGridComponentProps {
|
2288
|
+
checkbox: Checkbox;
|
2289
|
+
lockObject: LockObject;
|
2290
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2291
|
+
}
|
2292
|
+
export class CheckboxPropertyGridComponent extends React.Component<ICheckboxPropertyGridComponentProps> {
|
2293
|
+
constructor(props: ICheckboxPropertyGridComponentProps);
|
2294
|
+
render(): JSX.Element;
|
2295
|
+
}
|
2296
|
+
export {};
|
2391
2297
|
|
2392
2298
|
}
|
2393
2299
|
declare module "shared-ui-components/tabs/propertyGrids/gui/colorPickerPropertyGridComponent" {
|
2394
|
-
import * as React from "react";
|
2395
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
2396
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2397
|
-
import { ColorPicker } from "@babylonjs/gui/2D/controls/colorpicker";
|
2398
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
2399
|
-
interface IColorPickerPropertyGridComponentProps {
|
2400
|
-
colorPicker: ColorPicker;
|
2401
|
-
lockObject: LockObject;
|
2402
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2403
|
-
}
|
2404
|
-
export class ColorPickerPropertyGridComponent extends React.Component<IColorPickerPropertyGridComponentProps> {
|
2405
|
-
constructor(props: IColorPickerPropertyGridComponentProps);
|
2406
|
-
render(): JSX.Element;
|
2407
|
-
}
|
2408
|
-
export {};
|
2300
|
+
import * as React from "react";
|
2301
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
2302
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2303
|
+
import { ColorPicker } from "@babylonjs/gui/2D/controls/colorpicker";
|
2304
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
2305
|
+
interface IColorPickerPropertyGridComponentProps {
|
2306
|
+
colorPicker: ColorPicker;
|
2307
|
+
lockObject: LockObject;
|
2308
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2309
|
+
}
|
2310
|
+
export class ColorPickerPropertyGridComponent extends React.Component<IColorPickerPropertyGridComponentProps> {
|
2311
|
+
constructor(props: IColorPickerPropertyGridComponentProps);
|
2312
|
+
render(): JSX.Element;
|
2313
|
+
}
|
2314
|
+
export {};
|
2409
2315
|
|
2410
2316
|
}
|
2411
2317
|
declare module "shared-ui-components/tabs/propertyGrids/gui/commonControlPropertyGridComponent" {
|
2412
|
-
import * as React from "react";
|
2413
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
2414
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2415
|
-
import { Control } from "@babylonjs/gui/2D/controls/control";
|
2416
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
2417
|
-
interface ICommonControlPropertyGridComponentProps {
|
2418
|
-
controls?: Control[];
|
2419
|
-
control?: Control;
|
2420
|
-
lockObject: LockObject;
|
2421
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2422
|
-
}
|
2423
|
-
export class CommonControlPropertyGridComponent extends React.Component<ICommonControlPropertyGridComponentProps> {
|
2424
|
-
constructor(props: ICommonControlPropertyGridComponentProps);
|
2425
|
-
renderGridInformation(control: Control): JSX.Element | null;
|
2426
|
-
render(): JSX.Element | undefined;
|
2427
|
-
}
|
2428
|
-
export {};
|
2318
|
+
import * as React from "react";
|
2319
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
2320
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2321
|
+
import { Control } from "@babylonjs/gui/2D/controls/control";
|
2322
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
2323
|
+
interface ICommonControlPropertyGridComponentProps {
|
2324
|
+
controls?: Control[];
|
2325
|
+
control?: Control;
|
2326
|
+
lockObject: LockObject;
|
2327
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2328
|
+
}
|
2329
|
+
export class CommonControlPropertyGridComponent extends React.Component<ICommonControlPropertyGridComponentProps> {
|
2330
|
+
constructor(props: ICommonControlPropertyGridComponentProps);
|
2331
|
+
renderGridInformation(control: Control): JSX.Element | null;
|
2332
|
+
render(): JSX.Element | undefined;
|
2333
|
+
}
|
2334
|
+
export {};
|
2429
2335
|
|
2430
2336
|
}
|
2431
2337
|
declare module "shared-ui-components/tabs/propertyGrids/gui/controlPropertyGridComponent" {
|
2432
|
-
import * as React from "react";
|
2433
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
2434
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2435
|
-
import { Control } from "@babylonjs/gui/2D/controls/control";
|
2436
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
2437
|
-
interface IControlPropertyGridComponentProps {
|
2438
|
-
control: Control;
|
2439
|
-
lockObject: LockObject;
|
2440
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2441
|
-
}
|
2442
|
-
export class ControlPropertyGridComponent extends React.Component<IControlPropertyGridComponentProps> {
|
2443
|
-
constructor(props: IControlPropertyGridComponentProps);
|
2444
|
-
render(): JSX.Element;
|
2445
|
-
}
|
2446
|
-
export {};
|
2338
|
+
import * as React from "react";
|
2339
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
2340
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2341
|
+
import { Control } from "@babylonjs/gui/2D/controls/control";
|
2342
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
2343
|
+
interface IControlPropertyGridComponentProps {
|
2344
|
+
control: Control;
|
2345
|
+
lockObject: LockObject;
|
2346
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2347
|
+
}
|
2348
|
+
export class ControlPropertyGridComponent extends React.Component<IControlPropertyGridComponentProps> {
|
2349
|
+
constructor(props: IControlPropertyGridComponentProps);
|
2350
|
+
render(): JSX.Element;
|
2351
|
+
}
|
2352
|
+
export {};
|
2447
2353
|
|
2448
2354
|
}
|
2449
2355
|
declare module "shared-ui-components/tabs/propertyGrids/gui/ellipsePropertyGridComponent" {
|
2450
|
-
import * as React from "react";
|
2451
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
2452
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2453
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
2454
|
-
import { Ellipse } from "@babylonjs/gui/2D/controls/ellipse";
|
2455
|
-
interface IEllipsePropertyGridComponentProps {
|
2456
|
-
ellipse: Ellipse;
|
2457
|
-
lockObject: LockObject;
|
2458
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2459
|
-
}
|
2460
|
-
export class EllipsePropertyGridComponent extends React.Component<IEllipsePropertyGridComponentProps> {
|
2461
|
-
constructor(props: IEllipsePropertyGridComponentProps);
|
2462
|
-
render(): JSX.Element;
|
2463
|
-
}
|
2464
|
-
export {};
|
2356
|
+
import * as React from "react";
|
2357
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
2358
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2359
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
2360
|
+
import { Ellipse } from "@babylonjs/gui/2D/controls/ellipse";
|
2361
|
+
interface IEllipsePropertyGridComponentProps {
|
2362
|
+
ellipse: Ellipse;
|
2363
|
+
lockObject: LockObject;
|
2364
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2365
|
+
}
|
2366
|
+
export class EllipsePropertyGridComponent extends React.Component<IEllipsePropertyGridComponentProps> {
|
2367
|
+
constructor(props: IEllipsePropertyGridComponentProps);
|
2368
|
+
render(): JSX.Element;
|
2369
|
+
}
|
2370
|
+
export {};
|
2465
2371
|
|
2466
2372
|
}
|
2467
2373
|
declare module "shared-ui-components/tabs/propertyGrids/gui/gridPropertyGridComponent" {
|
2468
|
-
import * as React from "react";
|
2469
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
2470
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2471
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
2472
|
-
import { Grid } from "@babylonjs/gui/2D/controls/grid";
|
2473
|
-
interface IGridPropertyGridComponentProps {
|
2474
|
-
grid: Grid;
|
2475
|
-
lockObject: LockObject;
|
2476
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2477
|
-
}
|
2478
|
-
export class GridPropertyGridComponent extends React.Component<IGridPropertyGridComponentProps> {
|
2479
|
-
constructor(props: IGridPropertyGridComponentProps);
|
2480
|
-
renderRows(): JSX.Element[];
|
2481
|
-
renderColumns(): JSX.Element[];
|
2482
|
-
render(): JSX.Element;
|
2483
|
-
}
|
2484
|
-
export {};
|
2374
|
+
import * as React from "react";
|
2375
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
2376
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2377
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
2378
|
+
import { Grid } from "@babylonjs/gui/2D/controls/grid";
|
2379
|
+
interface IGridPropertyGridComponentProps {
|
2380
|
+
grid: Grid;
|
2381
|
+
lockObject: LockObject;
|
2382
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2383
|
+
}
|
2384
|
+
export class GridPropertyGridComponent extends React.Component<IGridPropertyGridComponentProps> {
|
2385
|
+
constructor(props: IGridPropertyGridComponentProps);
|
2386
|
+
renderRows(): JSX.Element[];
|
2387
|
+
renderColumns(): JSX.Element[];
|
2388
|
+
render(): JSX.Element;
|
2389
|
+
}
|
2390
|
+
export {};
|
2485
2391
|
|
2486
2392
|
}
|
2487
2393
|
declare module "shared-ui-components/tabs/propertyGrids/gui/imageBasedSliderPropertyGridComponent" {
|
2488
|
-
import * as React from "react";
|
2489
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
2490
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2491
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
2492
|
-
import { ImageBasedSlider } from "@babylonjs/gui/2D/controls/sliders/imageBasedSlider";
|
2493
|
-
interface IImageBasedSliderPropertyGridComponentProps {
|
2494
|
-
imageBasedSlider: ImageBasedSlider;
|
2495
|
-
lockObject: LockObject;
|
2496
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2497
|
-
}
|
2498
|
-
export class ImageBasedSliderPropertyGridComponent extends React.Component<IImageBasedSliderPropertyGridComponentProps> {
|
2499
|
-
constructor(props: IImageBasedSliderPropertyGridComponentProps);
|
2500
|
-
render(): JSX.Element;
|
2501
|
-
}
|
2502
|
-
export {};
|
2394
|
+
import * as React from "react";
|
2395
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
2396
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2397
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
2398
|
+
import { ImageBasedSlider } from "@babylonjs/gui/2D/controls/sliders/imageBasedSlider";
|
2399
|
+
interface IImageBasedSliderPropertyGridComponentProps {
|
2400
|
+
imageBasedSlider: ImageBasedSlider;
|
2401
|
+
lockObject: LockObject;
|
2402
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2403
|
+
}
|
2404
|
+
export class ImageBasedSliderPropertyGridComponent extends React.Component<IImageBasedSliderPropertyGridComponentProps> {
|
2405
|
+
constructor(props: IImageBasedSliderPropertyGridComponentProps);
|
2406
|
+
render(): JSX.Element;
|
2407
|
+
}
|
2408
|
+
export {};
|
2503
2409
|
|
2504
2410
|
}
|
2505
2411
|
declare module "shared-ui-components/tabs/propertyGrids/gui/imagePropertyGridComponent" {
|
2506
|
-
import * as React from "react";
|
2507
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
2508
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2509
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
2510
|
-
import { Image } from "@babylonjs/gui/2D/controls/image";
|
2511
|
-
interface IImagePropertyGridComponentProps {
|
2512
|
-
image: Image;
|
2513
|
-
lockObject: LockObject;
|
2514
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2515
|
-
}
|
2516
|
-
export class ImagePropertyGridComponent extends React.Component<IImagePropertyGridComponentProps> {
|
2517
|
-
constructor(props: IImagePropertyGridComponentProps);
|
2518
|
-
render(): JSX.Element;
|
2519
|
-
}
|
2520
|
-
export {};
|
2412
|
+
import * as React from "react";
|
2413
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
2414
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2415
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
2416
|
+
import { Image } from "@babylonjs/gui/2D/controls/image";
|
2417
|
+
interface IImagePropertyGridComponentProps {
|
2418
|
+
image: Image;
|
2419
|
+
lockObject: LockObject;
|
2420
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2421
|
+
}
|
2422
|
+
export class ImagePropertyGridComponent extends React.Component<IImagePropertyGridComponentProps> {
|
2423
|
+
constructor(props: IImagePropertyGridComponentProps);
|
2424
|
+
render(): JSX.Element;
|
2425
|
+
}
|
2426
|
+
export {};
|
2521
2427
|
|
2522
2428
|
}
|
2523
2429
|
declare module "shared-ui-components/tabs/propertyGrids/gui/inputTextPropertyGridComponent" {
|
2524
|
-
import * as React from "react";
|
2525
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
2526
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2527
|
-
import { InputText } from "@babylonjs/gui/2D/controls/inputText";
|
2528
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
2529
|
-
interface IInputTextPropertyGridComponentProps {
|
2530
|
-
inputText: InputText;
|
2531
|
-
lockObject: LockObject;
|
2532
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2533
|
-
}
|
2534
|
-
export class InputTextPropertyGridComponent extends React.Component<IInputTextPropertyGridComponentProps> {
|
2535
|
-
constructor(props: IInputTextPropertyGridComponentProps);
|
2536
|
-
render(): JSX.Element;
|
2537
|
-
}
|
2538
|
-
export {};
|
2430
|
+
import * as React from "react";
|
2431
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
2432
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2433
|
+
import { InputText } from "@babylonjs/gui/2D/controls/inputText";
|
2434
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
2435
|
+
interface IInputTextPropertyGridComponentProps {
|
2436
|
+
inputText: InputText;
|
2437
|
+
lockObject: LockObject;
|
2438
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2439
|
+
}
|
2440
|
+
export class InputTextPropertyGridComponent extends React.Component<IInputTextPropertyGridComponentProps> {
|
2441
|
+
constructor(props: IInputTextPropertyGridComponentProps);
|
2442
|
+
render(): JSX.Element;
|
2443
|
+
}
|
2444
|
+
export {};
|
2539
2445
|
|
2540
2446
|
}
|
2541
2447
|
declare module "shared-ui-components/tabs/propertyGrids/gui/linePropertyGridComponent" {
|
2542
|
-
import * as React from "react";
|
2543
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
2544
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2545
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
2546
|
-
import { Line } from "@babylonjs/gui/2D/controls/line";
|
2547
|
-
interface ILinePropertyGridComponentProps {
|
2548
|
-
line: Line;
|
2549
|
-
lockObject: LockObject;
|
2550
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2551
|
-
}
|
2552
|
-
export class LinePropertyGridComponent extends React.Component<ILinePropertyGridComponentProps> {
|
2553
|
-
constructor(props: ILinePropertyGridComponentProps);
|
2554
|
-
onDashChange(value: string): void;
|
2555
|
-
render(): JSX.Element;
|
2556
|
-
}
|
2557
|
-
export {};
|
2448
|
+
import * as React from "react";
|
2449
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
2450
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2451
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
2452
|
+
import { Line } from "@babylonjs/gui/2D/controls/line";
|
2453
|
+
interface ILinePropertyGridComponentProps {
|
2454
|
+
line: Line;
|
2455
|
+
lockObject: LockObject;
|
2456
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2457
|
+
}
|
2458
|
+
export class LinePropertyGridComponent extends React.Component<ILinePropertyGridComponentProps> {
|
2459
|
+
constructor(props: ILinePropertyGridComponentProps);
|
2460
|
+
onDashChange(value: string): void;
|
2461
|
+
render(): JSX.Element;
|
2462
|
+
}
|
2463
|
+
export {};
|
2558
2464
|
|
2559
2465
|
}
|
2560
2466
|
declare module "shared-ui-components/tabs/propertyGrids/gui/radioButtonPropertyGridComponent" {
|
2561
|
-
import * as React from "react";
|
2562
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
2563
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2564
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
2565
|
-
import { RadioButton } from "@babylonjs/gui/2D/controls/radioButton";
|
2566
|
-
interface IRadioButtonPropertyGridComponentProps {
|
2567
|
-
radioButtons: RadioButton[];
|
2568
|
-
lockObject: LockObject;
|
2569
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2570
|
-
}
|
2571
|
-
export class RadioButtonPropertyGridComponent extends React.Component<IRadioButtonPropertyGridComponentProps> {
|
2572
|
-
constructor(props: IRadioButtonPropertyGridComponentProps);
|
2573
|
-
render(): JSX.Element;
|
2574
|
-
}
|
2575
|
-
export {};
|
2467
|
+
import * as React from "react";
|
2468
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
2469
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2470
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
2471
|
+
import { RadioButton } from "@babylonjs/gui/2D/controls/radioButton";
|
2472
|
+
interface IRadioButtonPropertyGridComponentProps {
|
2473
|
+
radioButtons: RadioButton[];
|
2474
|
+
lockObject: LockObject;
|
2475
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2476
|
+
}
|
2477
|
+
export class RadioButtonPropertyGridComponent extends React.Component<IRadioButtonPropertyGridComponentProps> {
|
2478
|
+
constructor(props: IRadioButtonPropertyGridComponentProps);
|
2479
|
+
render(): JSX.Element;
|
2480
|
+
}
|
2481
|
+
export {};
|
2576
2482
|
|
2577
2483
|
}
|
2578
2484
|
declare module "shared-ui-components/tabs/propertyGrids/gui/rectanglePropertyGridComponent" {
|
2579
|
-
import * as React from "react";
|
2580
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
2581
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2582
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
2583
|
-
import { Rectangle } from "@babylonjs/gui/2D/controls/rectangle";
|
2584
|
-
interface IRectanglePropertyGridComponentProps {
|
2585
|
-
rectangle: Rectangle;
|
2586
|
-
lockObject: LockObject;
|
2587
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2588
|
-
}
|
2589
|
-
export class RectanglePropertyGridComponent extends React.Component<IRectanglePropertyGridComponentProps> {
|
2590
|
-
constructor(props: IRectanglePropertyGridComponentProps);
|
2591
|
-
render(): JSX.Element;
|
2592
|
-
}
|
2593
|
-
export {};
|
2485
|
+
import * as React from "react";
|
2486
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
2487
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2488
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
2489
|
+
import { Rectangle } from "@babylonjs/gui/2D/controls/rectangle";
|
2490
|
+
interface IRectanglePropertyGridComponentProps {
|
2491
|
+
rectangle: Rectangle;
|
2492
|
+
lockObject: LockObject;
|
2493
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2494
|
+
}
|
2495
|
+
export class RectanglePropertyGridComponent extends React.Component<IRectanglePropertyGridComponentProps> {
|
2496
|
+
constructor(props: IRectanglePropertyGridComponentProps);
|
2497
|
+
render(): JSX.Element;
|
2498
|
+
}
|
2499
|
+
export {};
|
2594
2500
|
|
2595
2501
|
}
|
2596
2502
|
declare module "shared-ui-components/tabs/propertyGrids/gui/scrollViewerPropertyGridComponent" {
|
2597
|
-
import * as React from "react";
|
2598
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
2599
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2600
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
2601
|
-
import { ScrollViewer } from "@babylonjs/gui/2D/controls/scrollViewers/scrollViewer";
|
2602
|
-
interface IScrollViewerPropertyGridComponentProps {
|
2603
|
-
scrollViewer: ScrollViewer;
|
2604
|
-
lockObject: LockObject;
|
2605
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2606
|
-
}
|
2607
|
-
export class ScrollViewerPropertyGridComponent extends React.Component<IScrollViewerPropertyGridComponentProps> {
|
2608
|
-
constructor(props: IScrollViewerPropertyGridComponentProps);
|
2609
|
-
render(): JSX.Element;
|
2610
|
-
}
|
2611
|
-
export {};
|
2503
|
+
import * as React from "react";
|
2504
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
2505
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2506
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
2507
|
+
import { ScrollViewer } from "@babylonjs/gui/2D/controls/scrollViewers/scrollViewer";
|
2508
|
+
interface IScrollViewerPropertyGridComponentProps {
|
2509
|
+
scrollViewer: ScrollViewer;
|
2510
|
+
lockObject: LockObject;
|
2511
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2512
|
+
}
|
2513
|
+
export class ScrollViewerPropertyGridComponent extends React.Component<IScrollViewerPropertyGridComponentProps> {
|
2514
|
+
constructor(props: IScrollViewerPropertyGridComponentProps);
|
2515
|
+
render(): JSX.Element;
|
2516
|
+
}
|
2517
|
+
export {};
|
2612
2518
|
|
2613
2519
|
}
|
2614
2520
|
declare module "shared-ui-components/tabs/propertyGrids/gui/sliderPropertyGridComponent" {
|
2615
|
-
import * as React from "react";
|
2616
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
2617
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2618
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
2619
|
-
import { Slider } from "@babylonjs/gui/2D/controls/sliders/slider";
|
2620
|
-
interface ISliderPropertyGridComponentProps {
|
2621
|
-
slider: Slider;
|
2622
|
-
lockObject: LockObject;
|
2623
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2624
|
-
}
|
2625
|
-
export class SliderPropertyGridComponent extends React.Component<ISliderPropertyGridComponentProps> {
|
2626
|
-
constructor(props: ISliderPropertyGridComponentProps);
|
2627
|
-
render(): JSX.Element;
|
2628
|
-
}
|
2629
|
-
export {};
|
2521
|
+
import * as React from "react";
|
2522
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
2523
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2524
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
2525
|
+
import { Slider } from "@babylonjs/gui/2D/controls/sliders/slider";
|
2526
|
+
interface ISliderPropertyGridComponentProps {
|
2527
|
+
slider: Slider;
|
2528
|
+
lockObject: LockObject;
|
2529
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2530
|
+
}
|
2531
|
+
export class SliderPropertyGridComponent extends React.Component<ISliderPropertyGridComponentProps> {
|
2532
|
+
constructor(props: ISliderPropertyGridComponentProps);
|
2533
|
+
render(): JSX.Element;
|
2534
|
+
}
|
2535
|
+
export {};
|
2630
2536
|
|
2631
2537
|
}
|
2632
2538
|
declare module "shared-ui-components/tabs/propertyGrids/gui/stackPanelPropertyGridComponent" {
|
2633
|
-
import * as React from "react";
|
2634
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
2635
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2636
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
2637
|
-
import { StackPanel } from "@babylonjs/gui/2D/controls/stackPanel";
|
2638
|
-
interface IStackPanelPropertyGridComponentProps {
|
2639
|
-
stackPanel: StackPanel;
|
2640
|
-
lockObject: LockObject;
|
2641
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2642
|
-
}
|
2643
|
-
export class StackPanelPropertyGridComponent extends React.Component<IStackPanelPropertyGridComponentProps> {
|
2644
|
-
constructor(props: IStackPanelPropertyGridComponentProps);
|
2645
|
-
render(): JSX.Element;
|
2646
|
-
}
|
2647
|
-
export {};
|
2539
|
+
import * as React from "react";
|
2540
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
2541
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2542
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
2543
|
+
import { StackPanel } from "@babylonjs/gui/2D/controls/stackPanel";
|
2544
|
+
interface IStackPanelPropertyGridComponentProps {
|
2545
|
+
stackPanel: StackPanel;
|
2546
|
+
lockObject: LockObject;
|
2547
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2548
|
+
}
|
2549
|
+
export class StackPanelPropertyGridComponent extends React.Component<IStackPanelPropertyGridComponentProps> {
|
2550
|
+
constructor(props: IStackPanelPropertyGridComponentProps);
|
2551
|
+
render(): JSX.Element;
|
2552
|
+
}
|
2553
|
+
export {};
|
2648
2554
|
|
2649
2555
|
}
|
2650
2556
|
declare module "shared-ui-components/tabs/propertyGrids/gui/textBlockPropertyGridComponent" {
|
2651
|
-
import * as React from "react";
|
2652
|
-
import { Observable } from "@babylonjs/core/Misc/observable";
|
2653
|
-
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2654
|
-
import { TextBlock } from "@babylonjs/gui/2D/controls/textBlock";
|
2655
|
-
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
2656
|
-
interface ITextBlockPropertyGridComponentProps {
|
2657
|
-
textBlock: TextBlock;
|
2658
|
-
lockObject: LockObject;
|
2659
|
-
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2660
|
-
}
|
2661
|
-
export class TextBlockPropertyGridComponent extends React.Component<ITextBlockPropertyGridComponentProps> {
|
2662
|
-
constructor(props: ITextBlockPropertyGridComponentProps);
|
2663
|
-
render(): JSX.Element;
|
2664
|
-
}
|
2665
|
-
export {};
|
2557
|
+
import * as React from "react";
|
2558
|
+
import { Observable } from "@babylonjs/core/Misc/observable";
|
2559
|
+
import { PropertyChangedEvent } from "shared-ui-components/propertyChangedEvent";
|
2560
|
+
import { TextBlock } from "@babylonjs/gui/2D/controls/textBlock";
|
2561
|
+
import { LockObject } from "shared-ui-components/tabs/propertyGrids/lockObject";
|
2562
|
+
interface ITextBlockPropertyGridComponentProps {
|
2563
|
+
textBlock: TextBlock;
|
2564
|
+
lockObject: LockObject;
|
2565
|
+
onPropertyChangedObservable?: Observable<PropertyChangedEvent>;
|
2566
|
+
}
|
2567
|
+
export class TextBlockPropertyGridComponent extends React.Component<ITextBlockPropertyGridComponentProps> {
|
2568
|
+
constructor(props: ITextBlockPropertyGridComponentProps);
|
2569
|
+
render(): JSX.Element;
|
2570
|
+
}
|
2571
|
+
export {};
|
2666
2572
|
|
2667
2573
|
}
|
2668
2574
|
declare module "shared-ui-components/tabs/propertyGrids/lockObject" {
|
2669
|
-
/**
|
2670
|
-
* Class used to provide lock mechanism
|
2671
|
-
*/
|
2672
|
-
export class LockObject {
|
2673
|
-
/**
|
2674
|
-
* Gets or set if the lock is engaged
|
2675
|
-
*/
|
2676
|
-
lock: boolean;
|
2677
|
-
}
|
2575
|
+
/**
|
2576
|
+
* Class used to provide lock mechanism
|
2577
|
+
*/
|
2578
|
+
export class LockObject {
|
2579
|
+
/**
|
2580
|
+
* Gets or set if the lock is engaged
|
2581
|
+
*/
|
2582
|
+
lock: boolean;
|
2583
|
+
}
|
2678
2584
|
|
2679
2585
|
}
|
2680
2586
|
|