babylonjs-gui-editor 5.13.1 → 5.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/babylon.guiEditor.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ declare module BABYLON {
|
|
|
6
6
|
export class CommandBarComponent extends React.Component<ICommandBarComponentProps> {
|
|
7
7
|
private _sizeOption;
|
|
8
8
|
private _stopUpdating;
|
|
9
|
+
private _lockObject;
|
|
9
10
|
constructor(props: ICommandBarComponentProps);
|
|
10
11
|
render(): JSX.Element;
|
|
11
12
|
}
|
|
@@ -1063,10 +1064,13 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
1063
1064
|
min?: number;
|
|
1064
1065
|
onChange: (value: number) => void;
|
|
1065
1066
|
disabled?: boolean;
|
|
1067
|
+
lockObject: BABYLON.GuiEditor.SharedUIComponents.LockObject;
|
|
1066
1068
|
}
|
|
1067
1069
|
export class ColorComponentEntry extends React.Component<IColorComponentEntryProps> {
|
|
1068
1070
|
constructor(props: IColorComponentEntryProps);
|
|
1069
1071
|
updateValue(valueString: string): void;
|
|
1072
|
+
lock(): void;
|
|
1073
|
+
unlock(): void;
|
|
1070
1074
|
render(): JSX.Element;
|
|
1071
1075
|
}
|
|
1072
1076
|
|
|
@@ -1085,6 +1089,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
1085
1089
|
linearhint?: boolean;
|
|
1086
1090
|
debugMode?: boolean;
|
|
1087
1091
|
onColorChanged?: (color: Color3 | Color4) => void;
|
|
1092
|
+
lockObject: BABYLON.GuiEditor.SharedUIComponents.LockObject;
|
|
1088
1093
|
}
|
|
1089
1094
|
/**
|
|
1090
1095
|
* Interface used to specify creation options for color picker
|
|
@@ -1127,6 +1132,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
1127
1132
|
value: string;
|
|
1128
1133
|
expectedLength: number;
|
|
1129
1134
|
onChange: (value: string) => void;
|
|
1135
|
+
lockObject: BABYLON.GuiEditor.SharedUIComponents.LockObject;
|
|
1130
1136
|
}
|
|
1131
1137
|
export class HexColor extends React.Component<IHexColorProps, {
|
|
1132
1138
|
hex: string;
|
|
@@ -1135,6 +1141,8 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
1135
1141
|
shouldComponentUpdate(nextProps: IHexColorProps, nextState: {
|
|
1136
1142
|
hex: string;
|
|
1137
1143
|
}): boolean;
|
|
1144
|
+
lock(): void;
|
|
1145
|
+
unlock(): void;
|
|
1138
1146
|
updateHexValue(valueString: string): void;
|
|
1139
1147
|
render(): JSX.Element;
|
|
1140
1148
|
}
|
|
@@ -1301,7 +1309,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
1301
1309
|
onPropertyChangedObservable?: Observable<BABYLON.GuiEditor.SharedUIComponents.PropertyChangedEvent>;
|
|
1302
1310
|
isLinear?: boolean;
|
|
1303
1311
|
icon?: string;
|
|
1304
|
-
lockObject
|
|
1312
|
+
lockObject: BABYLON.GuiEditor.SharedUIComponents.LockObject;
|
|
1305
1313
|
iconLabel?: string;
|
|
1306
1314
|
onChange?: () => void;
|
|
1307
1315
|
}
|
|
@@ -1325,7 +1333,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
1325
1333
|
isLinear?: boolean;
|
|
1326
1334
|
icon?: string;
|
|
1327
1335
|
iconLabel?: string;
|
|
1328
|
-
lockObject
|
|
1336
|
+
lockObject: BABYLON.GuiEditor.SharedUIComponents.LockObject;
|
|
1329
1337
|
}
|
|
1330
1338
|
export class Color4LineComponent extends React.Component<IColor4LineComponentProps> {
|
|
1331
1339
|
render(): JSX.Element;
|
|
@@ -1347,8 +1355,8 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
1347
1355
|
isLinear?: boolean;
|
|
1348
1356
|
icon?: string;
|
|
1349
1357
|
iconLabel?: string;
|
|
1350
|
-
lockObject?: BABYLON.GuiEditor.SharedUIComponents.LockObject;
|
|
1351
1358
|
disableAlpha?: boolean;
|
|
1359
|
+
lockObject: BABYLON.GuiEditor.SharedUIComponents.LockObject;
|
|
1352
1360
|
}
|
|
1353
1361
|
interface IColorLineComponentState {
|
|
1354
1362
|
isExpanded: boolean;
|
|
@@ -1387,6 +1395,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
1387
1395
|
icon?: string;
|
|
1388
1396
|
iconLabel?: string;
|
|
1389
1397
|
shouldPopRight?: boolean;
|
|
1398
|
+
lockObject?: BABYLON.GuiEditor.SharedUIComponents.LockObject;
|
|
1390
1399
|
}
|
|
1391
1400
|
interface IColorPickerComponentState {
|
|
1392
1401
|
pickerEnabled: boolean;
|
|
@@ -1712,6 +1721,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
1712
1721
|
onModeChange?: (mode: number) => void;
|
|
1713
1722
|
onPropertyChangedObservable?: Observable<BABYLON.GuiEditor.SharedUIComponents.PropertyChangedEvent>;
|
|
1714
1723
|
mode?: number;
|
|
1724
|
+
lockObject: BABYLON.GuiEditor.SharedUIComponents.LockObject;
|
|
1715
1725
|
}
|
|
1716
1726
|
export class MatrixLineComponent extends React.Component<IMatrixLineComponentProps, {
|
|
1717
1727
|
value: Matrix;
|
|
@@ -1764,6 +1774,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
1764
1774
|
precision?: number;
|
|
1765
1775
|
icon?: string;
|
|
1766
1776
|
iconLabel?: string;
|
|
1777
|
+
lockObject: BABYLON.GuiEditor.SharedUIComponents.LockObject;
|
|
1767
1778
|
}
|
|
1768
1779
|
export class NumericInputComponent extends React.Component<INumericInputComponentProps, {
|
|
1769
1780
|
value: string;
|
|
@@ -1773,6 +1784,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
1773
1784
|
};
|
|
1774
1785
|
private _localChange;
|
|
1775
1786
|
constructor(props: INumericInputComponentProps);
|
|
1787
|
+
componentWillUnmount(): void;
|
|
1776
1788
|
shouldComponentUpdate(nextProps: INumericInputComponentProps, nextState: {
|
|
1777
1789
|
value: string;
|
|
1778
1790
|
}): boolean;
|
|
@@ -2047,6 +2059,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
2047
2059
|
onPropertyChangedObservable?: Observable<BABYLON.GuiEditor.SharedUIComponents.PropertyChangedEvent>;
|
|
2048
2060
|
icon?: string;
|
|
2049
2061
|
iconLabel?: string;
|
|
2062
|
+
lockObject: BABYLON.GuiEditor.SharedUIComponents.LockObject;
|
|
2050
2063
|
}
|
|
2051
2064
|
export class Vector2LineComponent extends React.Component<IVector2LineComponentProps, {
|
|
2052
2065
|
isExpanded: boolean;
|
|
@@ -2086,6 +2099,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
2086
2099
|
noSlider?: boolean;
|
|
2087
2100
|
icon?: string;
|
|
2088
2101
|
iconLabel?: string;
|
|
2102
|
+
lockObject: BABYLON.GuiEditor.SharedUIComponents.LockObject;
|
|
2089
2103
|
}
|
|
2090
2104
|
export class Vector3LineComponent extends React.Component<IVector3LineComponentProps, {
|
|
2091
2105
|
isExpanded: boolean;
|
|
@@ -2128,6 +2142,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
2128
2142
|
icon?: string;
|
|
2129
2143
|
iconLabel?: string;
|
|
2130
2144
|
value?: Vector4;
|
|
2145
|
+
lockObject: BABYLON.GuiEditor.SharedUIComponents.LockObject;
|
|
2131
2146
|
}
|
|
2132
2147
|
export class Vector4LineComponent extends React.Component<IVector4LineComponentProps, {
|
|
2133
2148
|
isExpanded: boolean;
|
|
@@ -2203,6 +2218,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
2203
2218
|
onEmitNewNode: (nodeData: BABYLON.GuiEditor.SharedUIComponents.INodeData) => BABYLON.GuiEditor.SharedUIComponents.GraphNode;
|
|
2204
2219
|
}
|
|
2205
2220
|
export class GraphCanvasComponent extends React.Component<IGraphCanvasComponentProps> implements BABYLON.GuiEditor.SharedUIComponents.INodeContainer {
|
|
2221
|
+
static readonly NodeWidth = 100;
|
|
2206
2222
|
private readonly _minZoom;
|
|
2207
2223
|
private readonly _maxZoom;
|
|
2208
2224
|
private _hostCanvas;
|
|
@@ -2239,6 +2255,8 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
2239
2255
|
private _oldY;
|
|
2240
2256
|
_frameIsMoving: boolean;
|
|
2241
2257
|
_isLoading: boolean;
|
|
2258
|
+
private _copiedNodes;
|
|
2259
|
+
private _copiedFrames;
|
|
2242
2260
|
get gridSize(): number;
|
|
2243
2261
|
set gridSize(value: number);
|
|
2244
2262
|
get stateManager(): BABYLON.GuiEditor.SharedUIComponents.StateManager;
|
|
@@ -2262,6 +2280,9 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
2262
2280
|
get frameContainer(): HTMLDivElement;
|
|
2263
2281
|
private _selectedFrameAndNodesConflict;
|
|
2264
2282
|
constructor(props: IGraphCanvasComponentProps);
|
|
2283
|
+
handleKeyDown(evt: KeyboardEvent, onRemove: (nodeData: BABYLON.GuiEditor.SharedUIComponents.INodeData) => void, mouseLocationX: number, mouseLocationY: number, dataGenerator: (nodeData: BABYLON.GuiEditor.SharedUIComponents.INodeData) => any, rootElement: HTMLDivElement): void;
|
|
2284
|
+
pasteSelection(copiedNodes: BABYLON.GuiEditor.SharedUIComponents.GraphNode[], currentX: number, currentY: number, dataGenerator: (nodeData: BABYLON.GuiEditor.SharedUIComponents.INodeData) => any, selectNew?: boolean): BABYLON.GuiEditor.SharedUIComponents.GraphNode[];
|
|
2285
|
+
reconnectNewNodes(nodeIndex: number, newNodes: BABYLON.GuiEditor.SharedUIComponents.GraphNode[], sourceNodes: BABYLON.GuiEditor.SharedUIComponents.GraphNode[], done: boolean[]): void;
|
|
2265
2286
|
getCachedData(): any[];
|
|
2266
2287
|
removeDataFromCache(data: any): void;
|
|
2267
2288
|
createNodeFromObject(nodeData: BABYLON.GuiEditor.SharedUIComponents.INodeData, onNodeCreated: (data: any) => void, recursion?: boolean): BABYLON.GuiEditor.SharedUIComponents.GraphNode;
|
|
@@ -2283,6 +2304,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
2283
2304
|
zoomToFit(): void;
|
|
2284
2305
|
processCandidatePort(): void;
|
|
2285
2306
|
connectNodes(nodeA: BABYLON.GuiEditor.SharedUIComponents.GraphNode, pointA: BABYLON.GuiEditor.SharedUIComponents.IPortData, nodeB: BABYLON.GuiEditor.SharedUIComponents.GraphNode, pointB: BABYLON.GuiEditor.SharedUIComponents.IPortData): void;
|
|
2307
|
+
drop(newNode: BABYLON.GuiEditor.SharedUIComponents.GraphNode, targetX: number, targetY: number, offsetX: number, offsetY: number): void;
|
|
2286
2308
|
processEditorData(editorData: BABYLON.GuiEditor.SharedUIComponents.IEditorData): void;
|
|
2287
2309
|
reOrganize(editorData?: Nullable<BABYLON.GuiEditor.SharedUIComponents.IEditorData>, isImportingAFrame?: boolean): void;
|
|
2288
2310
|
addFrame(frameData: BABYLON.GuiEditor.SharedUIComponents.IFrameData): void;
|
|
@@ -2680,8 +2702,8 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
2680
2702
|
onDisposedObservable: Observable<NodeLink>;
|
|
2681
2703
|
get isVisible(): boolean;
|
|
2682
2704
|
set isVisible(value: boolean);
|
|
2683
|
-
get portA(): BABYLON.GuiEditor.SharedUIComponents.
|
|
2684
|
-
get portB(): BABYLON.GuiEditor.SharedUIComponents.
|
|
2705
|
+
get portA(): BABYLON.GuiEditor.SharedUIComponents.FrameNodePort | BABYLON.GuiEditor.SharedUIComponents.NodePort;
|
|
2706
|
+
get portB(): BABYLON.GuiEditor.SharedUIComponents.FrameNodePort | BABYLON.GuiEditor.SharedUIComponents.NodePort | undefined;
|
|
2685
2707
|
get nodeA(): BABYLON.GuiEditor.SharedUIComponents.GraphNode;
|
|
2686
2708
|
get nodeB(): BABYLON.GuiEditor.SharedUIComponents.GraphNode | undefined;
|
|
2687
2709
|
update(endX?: number, endY?: number, straight?: boolean): void;
|
|
@@ -2755,7 +2777,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
2755
2777
|
onGraphNodeRemovalObservable: Observable<BABYLON.GuiEditor.SharedUIComponents.GraphNode>;
|
|
2756
2778
|
onSelectionBoxMoved: Observable<ClientRect | DOMRect>;
|
|
2757
2779
|
onCandidateLinkMoved: Observable<Nullable<Vector2>>;
|
|
2758
|
-
onCandidatePortSelectedObservable: Observable<Nullable<BABYLON.GuiEditor.SharedUIComponents.
|
|
2780
|
+
onCandidatePortSelectedObservable: Observable<Nullable<BABYLON.GuiEditor.SharedUIComponents.FrameNodePort | BABYLON.GuiEditor.SharedUIComponents.NodePort>>;
|
|
2759
2781
|
onNewNodeCreatedObservable: Observable<BABYLON.GuiEditor.SharedUIComponents.GraphNode>;
|
|
2760
2782
|
onRebuildRequiredObservable: Observable<boolean>;
|
|
2761
2783
|
onErrorMessageDialogRequiredObservable: Observable<string>;
|