babylonjs-node-editor 5.13.2 → 5.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/babylon.nodeEditor.d.ts +34 -143
- package/babylon.nodeEditor.js +1 -1
- package/babylon.nodeEditor.js.map +1 -1
- package/babylon.nodeEditor.max.js +553 -783
- package/babylon.nodeEditor.max.js.map +1 -1
- package/babylon.nodeEditor.module.d.ts +85 -311
- package/package.json +2 -2
package/babylon.nodeEditor.d.ts
CHANGED
|
@@ -140,6 +140,7 @@ declare module BABYLON.NodeEditor {
|
|
|
140
140
|
interface IInputsPropertyTabComponentProps {
|
|
141
141
|
globalState: GlobalState;
|
|
142
142
|
inputs: BABYLON.InputBlock[];
|
|
143
|
+
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
143
144
|
}
|
|
144
145
|
export class InputsPropertyTabComponent extends React.Component<IInputsPropertyTabComponentProps> {
|
|
145
146
|
constructor(props: IInputsPropertyTabComponentProps);
|
|
@@ -152,6 +153,7 @@ declare module BABYLON.NodeEditor {
|
|
|
152
153
|
interface IColor3PropertyTabComponentProps {
|
|
153
154
|
globalState: GlobalState;
|
|
154
155
|
inputBlock: BABYLON.InputBlock;
|
|
156
|
+
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
155
157
|
}
|
|
156
158
|
export class Color3PropertyTabComponent extends React.Component<IColor3PropertyTabComponentProps> {
|
|
157
159
|
render(): JSX.Element;
|
|
@@ -161,6 +163,7 @@ declare module BABYLON.NodeEditor {
|
|
|
161
163
|
interface IColor4PropertyTabComponentProps {
|
|
162
164
|
globalState: GlobalState;
|
|
163
165
|
inputBlock: BABYLON.InputBlock;
|
|
166
|
+
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
164
167
|
}
|
|
165
168
|
export class Color4PropertyTabComponent extends React.Component<IColor4PropertyTabComponentProps> {
|
|
166
169
|
render(): JSX.Element;
|
|
@@ -179,6 +182,7 @@ declare module BABYLON.NodeEditor {
|
|
|
179
182
|
interface IMatrixPropertyTabComponentProps {
|
|
180
183
|
globalState: GlobalState;
|
|
181
184
|
inputBlock: BABYLON.InputBlock;
|
|
185
|
+
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
182
186
|
}
|
|
183
187
|
export class MatrixPropertyTabComponent extends React.Component<IMatrixPropertyTabComponentProps> {
|
|
184
188
|
render(): JSX.Element;
|
|
@@ -188,6 +192,7 @@ declare module BABYLON.NodeEditor {
|
|
|
188
192
|
interface IVector2PropertyTabComponentProps {
|
|
189
193
|
globalState: GlobalState;
|
|
190
194
|
inputBlock: BABYLON.InputBlock;
|
|
195
|
+
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
191
196
|
}
|
|
192
197
|
export class Vector2PropertyTabComponent extends React.Component<IVector2PropertyTabComponentProps> {
|
|
193
198
|
render(): JSX.Element;
|
|
@@ -197,6 +202,7 @@ declare module BABYLON.NodeEditor {
|
|
|
197
202
|
interface IVector3PropertyTabComponentProps {
|
|
198
203
|
globalState: GlobalState;
|
|
199
204
|
inputBlock: BABYLON.InputBlock;
|
|
205
|
+
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
200
206
|
}
|
|
201
207
|
export class Vector3PropertyTabComponent extends React.Component<IVector3PropertyTabComponentProps> {
|
|
202
208
|
render(): JSX.Element;
|
|
@@ -206,6 +212,7 @@ declare module BABYLON.NodeEditor {
|
|
|
206
212
|
interface IVector4PropertyTabComponentProps {
|
|
207
213
|
globalState: GlobalState;
|
|
208
214
|
inputBlock: BABYLON.InputBlock;
|
|
215
|
+
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
209
216
|
}
|
|
210
217
|
export class Vector4PropertyTabComponent extends React.Component<IVector4PropertyTabComponentProps> {
|
|
211
218
|
render(): JSX.Element;
|
|
@@ -214,6 +221,7 @@ declare module BABYLON.NodeEditor {
|
|
|
214
221
|
|
|
215
222
|
interface IPropertyTabComponentProps {
|
|
216
223
|
globalState: GlobalState;
|
|
224
|
+
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
217
225
|
}
|
|
218
226
|
interface IPropertyTabComponentState {
|
|
219
227
|
currentNode: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.GraphNode>;
|
|
@@ -303,7 +311,6 @@ declare module BABYLON.NodeEditor {
|
|
|
303
311
|
embedHostWidth?: string;
|
|
304
312
|
}
|
|
305
313
|
export class GraphEditor extends React.Component<IGraphEditorProps, IGraphEditorState> {
|
|
306
|
-
static readonly NodeWidth = 100;
|
|
307
314
|
private _graphCanvasRef;
|
|
308
315
|
private _diagramContainerRef;
|
|
309
316
|
private _graphCanvas;
|
|
@@ -313,8 +320,6 @@ declare module BABYLON.NodeEditor {
|
|
|
313
320
|
private _leftWidth;
|
|
314
321
|
private _rightWidth;
|
|
315
322
|
private _previewManager;
|
|
316
|
-
private _copiedNodes;
|
|
317
|
-
private _copiedFrames;
|
|
318
323
|
private _mouseLocationX;
|
|
319
324
|
private _mouseLocationY;
|
|
320
325
|
private _onWidgetKeyUpPointer;
|
|
@@ -325,8 +330,6 @@ declare module BABYLON.NodeEditor {
|
|
|
325
330
|
componentDidMount(): void;
|
|
326
331
|
componentWillUnmount(): void;
|
|
327
332
|
constructor(props: IGraphEditorProps);
|
|
328
|
-
reconnectNewNodes(nodeIndex: number, newNodes: BABYLON.NodeEditor.SharedUIComponents.GraphNode[], sourceNodes: BABYLON.NodeEditor.SharedUIComponents.GraphNode[], done: boolean[]): void;
|
|
329
|
-
pasteSelection(copiedNodes: BABYLON.NodeEditor.SharedUIComponents.GraphNode[], currentX: number, currentY: number, selectNew?: boolean): BABYLON.NodeEditor.SharedUIComponents.GraphNode[] | undefined;
|
|
330
333
|
zoomToFit(): void;
|
|
331
334
|
buildMaterial(autoConfigure?: boolean): void;
|
|
332
335
|
build(ignoreEditorData?: boolean): void;
|
|
@@ -782,7 +785,7 @@ declare module BABYLON.NodeEditor {
|
|
|
782
785
|
isSelected?: () => boolean;
|
|
783
786
|
onSelect?: (value: boolean) => void;
|
|
784
787
|
onValueChanged?: () => void;
|
|
785
|
-
onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
|
|
788
|
+
onPropertyChangedObservable?: BABYLON.Observable<BABYLON.NodeEditor.SharedUIComponents.PropertyChangedEvent>;
|
|
786
789
|
disabled?: boolean;
|
|
787
790
|
}
|
|
788
791
|
export class CheckBoxLineComponent extends React.Component<ICheckBoxLineComponentProps, {
|
|
@@ -802,29 +805,6 @@ declare module BABYLON.NodeEditor {
|
|
|
802
805
|
}
|
|
803
806
|
|
|
804
807
|
|
|
805
|
-
export interface IColorPickerComponentProps {
|
|
806
|
-
value: BABYLON.Color4 | BABYLON.Color3;
|
|
807
|
-
onColorChanged: (newOne: string) => void;
|
|
808
|
-
globalState: GlobalState;
|
|
809
|
-
}
|
|
810
|
-
interface IColorPickerComponentState {
|
|
811
|
-
pickerEnabled: boolean;
|
|
812
|
-
color: BABYLON.Color3 | BABYLON.Color4;
|
|
813
|
-
hex: string;
|
|
814
|
-
}
|
|
815
|
-
export class ColorPickerLineComponent extends React.Component<IColorPickerComponentProps, IColorPickerComponentState> {
|
|
816
|
-
private _floatRef;
|
|
817
|
-
private _floatHostRef;
|
|
818
|
-
constructor(props: IColorPickerComponentProps);
|
|
819
|
-
syncPositions(): void;
|
|
820
|
-
shouldComponentUpdate(nextProps: IColorPickerComponentProps, nextState: IColorPickerComponentState): boolean;
|
|
821
|
-
componentDidUpdate(): void;
|
|
822
|
-
componentDidMount(): void;
|
|
823
|
-
setPickerState(enabled: boolean): void;
|
|
824
|
-
render(): JSX.Element;
|
|
825
|
-
}
|
|
826
|
-
|
|
827
|
-
|
|
828
808
|
export interface IButtonLineComponentProps {
|
|
829
809
|
data: string;
|
|
830
810
|
tooltip: string;
|
|
@@ -863,40 +843,6 @@ declare module BABYLON.NodeEditor {
|
|
|
863
843
|
}
|
|
864
844
|
|
|
865
845
|
|
|
866
|
-
interface IFloatLineComponentProps {
|
|
867
|
-
label: string;
|
|
868
|
-
target: any;
|
|
869
|
-
propertyName: string;
|
|
870
|
-
onChange?: (newValue: number) => void;
|
|
871
|
-
isInteger?: boolean;
|
|
872
|
-
onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
|
|
873
|
-
additionalClass?: string;
|
|
874
|
-
step?: string;
|
|
875
|
-
digits?: number;
|
|
876
|
-
globalState: GlobalState;
|
|
877
|
-
min?: number;
|
|
878
|
-
max?: number;
|
|
879
|
-
smallUI?: boolean;
|
|
880
|
-
onEnter?: (newValue: number) => void;
|
|
881
|
-
}
|
|
882
|
-
export class FloatLineComponent extends React.Component<IFloatLineComponentProps, {
|
|
883
|
-
value: string;
|
|
884
|
-
}> {
|
|
885
|
-
private _localChange;
|
|
886
|
-
private _store;
|
|
887
|
-
private _regExp;
|
|
888
|
-
private _onFocus;
|
|
889
|
-
constructor(props: IFloatLineComponentProps);
|
|
890
|
-
shouldComponentUpdate(nextProps: IFloatLineComponentProps, nextState: {
|
|
891
|
-
value: string;
|
|
892
|
-
}): boolean;
|
|
893
|
-
componentWillUnmount(): void;
|
|
894
|
-
raiseOnPropertyChanged(newValue: number, previousValue: number): void;
|
|
895
|
-
updateValue(valueString: string): void;
|
|
896
|
-
render(): JSX.Element;
|
|
897
|
-
}
|
|
898
|
-
|
|
899
|
-
|
|
900
846
|
interface ILineContainerComponentProps {
|
|
901
847
|
title: string;
|
|
902
848
|
children: any[] | any;
|
|
@@ -944,88 +890,12 @@ declare module BABYLON.NodeEditor {
|
|
|
944
890
|
}
|
|
945
891
|
|
|
946
892
|
|
|
947
|
-
interface INumericInputComponentProps {
|
|
948
|
-
label: string;
|
|
949
|
-
value: number;
|
|
950
|
-
step?: number;
|
|
951
|
-
onChange: (value: number) => void;
|
|
952
|
-
globalState: GlobalState;
|
|
953
|
-
}
|
|
954
|
-
export class NumericInputComponent extends React.Component<INumericInputComponentProps, {
|
|
955
|
-
value: string;
|
|
956
|
-
}> {
|
|
957
|
-
static defaultProps: {
|
|
958
|
-
step: number;
|
|
959
|
-
};
|
|
960
|
-
private _localChange;
|
|
961
|
-
constructor(props: INumericInputComponentProps);
|
|
962
|
-
shouldComponentUpdate(nextProps: INumericInputComponentProps, nextState: {
|
|
963
|
-
value: string;
|
|
964
|
-
}): boolean;
|
|
965
|
-
updateValue(evt: any): void;
|
|
966
|
-
render(): JSX.Element;
|
|
967
|
-
}
|
|
968
|
-
|
|
969
|
-
|
|
970
893
|
export class Popup {
|
|
971
894
|
static CreatePopup(title: string, windowVariableName: string, width?: number, height?: number): HTMLDivElement | null;
|
|
972
895
|
static _CopyStyles(sourceDoc: HTMLDocument, targetDoc: HTMLDocument): void;
|
|
973
896
|
}
|
|
974
897
|
|
|
975
898
|
|
|
976
|
-
export class PropertyChangedEvent {
|
|
977
|
-
object: any;
|
|
978
|
-
property: string;
|
|
979
|
-
value: any;
|
|
980
|
-
initialValue: any;
|
|
981
|
-
}
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
interface ISliderLineComponentProps {
|
|
985
|
-
label: string;
|
|
986
|
-
target?: any;
|
|
987
|
-
propertyName?: string;
|
|
988
|
-
minimum: number;
|
|
989
|
-
maximum: number;
|
|
990
|
-
step: number;
|
|
991
|
-
directValue?: number;
|
|
992
|
-
useEuler?: boolean;
|
|
993
|
-
onChange?: (value: number) => void;
|
|
994
|
-
onInput?: (value: number) => void;
|
|
995
|
-
onPropertyChangedObservable?: BABYLON.Observable<PropertyChangedEvent>;
|
|
996
|
-
decimalCount?: number;
|
|
997
|
-
globalState: GlobalState;
|
|
998
|
-
}
|
|
999
|
-
export class SliderLineComponent extends React.Component<ISliderLineComponentProps, {
|
|
1000
|
-
value: number;
|
|
1001
|
-
}> {
|
|
1002
|
-
private _localChange;
|
|
1003
|
-
constructor(props: ISliderLineComponentProps);
|
|
1004
|
-
shouldComponentUpdate(nextProps: ISliderLineComponentProps, nextState: {
|
|
1005
|
-
value: number;
|
|
1006
|
-
}): boolean;
|
|
1007
|
-
onChange(newValueString: any): void;
|
|
1008
|
-
onInput(newValueString: any): void;
|
|
1009
|
-
prepareDataToRead(value: number): number;
|
|
1010
|
-
render(): JSX.Element;
|
|
1011
|
-
}
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
interface ITextLineComponentProps {
|
|
1015
|
-
label: string;
|
|
1016
|
-
value: string;
|
|
1017
|
-
color?: string;
|
|
1018
|
-
underline?: boolean;
|
|
1019
|
-
onLink?: () => void;
|
|
1020
|
-
}
|
|
1021
|
-
export class TextLineComponent extends React.Component<ITextLineComponentProps> {
|
|
1022
|
-
constructor(props: ITextLineComponentProps);
|
|
1023
|
-
onLink(): void;
|
|
1024
|
-
renderContent(): JSX.Element;
|
|
1025
|
-
render(): JSX.Element;
|
|
1026
|
-
}
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
899
|
interface ITextureLineComponentProps {
|
|
1030
900
|
texture: BABYLON.BaseTexture;
|
|
1031
901
|
width: number;
|
|
@@ -1062,10 +932,13 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1062
932
|
min?: number;
|
|
1063
933
|
onChange: (value: number) => void;
|
|
1064
934
|
disabled?: boolean;
|
|
935
|
+
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
1065
936
|
}
|
|
1066
937
|
export class ColorComponentEntry extends React.Component<IColorComponentEntryProps> {
|
|
1067
938
|
constructor(props: IColorComponentEntryProps);
|
|
1068
939
|
updateValue(valueString: string): void;
|
|
940
|
+
lock(): void;
|
|
941
|
+
unlock(): void;
|
|
1069
942
|
render(): JSX.Element;
|
|
1070
943
|
}
|
|
1071
944
|
|
|
@@ -1084,6 +957,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1084
957
|
linearhint?: boolean;
|
|
1085
958
|
debugMode?: boolean;
|
|
1086
959
|
onColorChanged?: (color: BABYLON.Color3 | BABYLON.Color4) => void;
|
|
960
|
+
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
1087
961
|
}
|
|
1088
962
|
/**
|
|
1089
963
|
* Interface used to specify creation options for color picker
|
|
@@ -1126,6 +1000,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1126
1000
|
value: string;
|
|
1127
1001
|
expectedLength: number;
|
|
1128
1002
|
onChange: (value: string) => void;
|
|
1003
|
+
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
1129
1004
|
}
|
|
1130
1005
|
export class HexColor extends React.Component<IHexColorProps, {
|
|
1131
1006
|
hex: string;
|
|
@@ -1134,6 +1009,8 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1134
1009
|
shouldComponentUpdate(nextProps: IHexColorProps, nextState: {
|
|
1135
1010
|
hex: string;
|
|
1136
1011
|
}): boolean;
|
|
1012
|
+
lock(): void;
|
|
1013
|
+
unlock(): void;
|
|
1137
1014
|
updateHexValue(valueString: string): void;
|
|
1138
1015
|
render(): JSX.Element;
|
|
1139
1016
|
}
|
|
@@ -1300,7 +1177,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1300
1177
|
onPropertyChangedObservable?: BABYLON.Observable<BABYLON.NodeEditor.SharedUIComponents.PropertyChangedEvent>;
|
|
1301
1178
|
isLinear?: boolean;
|
|
1302
1179
|
icon?: string;
|
|
1303
|
-
lockObject
|
|
1180
|
+
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
1304
1181
|
iconLabel?: string;
|
|
1305
1182
|
onChange?: () => void;
|
|
1306
1183
|
}
|
|
@@ -1324,7 +1201,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1324
1201
|
isLinear?: boolean;
|
|
1325
1202
|
icon?: string;
|
|
1326
1203
|
iconLabel?: string;
|
|
1327
|
-
lockObject
|
|
1204
|
+
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
1328
1205
|
}
|
|
1329
1206
|
export class Color4LineComponent extends React.Component<IColor4LineComponentProps> {
|
|
1330
1207
|
render(): JSX.Element;
|
|
@@ -1346,8 +1223,8 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1346
1223
|
isLinear?: boolean;
|
|
1347
1224
|
icon?: string;
|
|
1348
1225
|
iconLabel?: string;
|
|
1349
|
-
lockObject?: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
1350
1226
|
disableAlpha?: boolean;
|
|
1227
|
+
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
1351
1228
|
}
|
|
1352
1229
|
interface IColorLineComponentState {
|
|
1353
1230
|
isExpanded: boolean;
|
|
@@ -1386,6 +1263,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1386
1263
|
icon?: string;
|
|
1387
1264
|
iconLabel?: string;
|
|
1388
1265
|
shouldPopRight?: boolean;
|
|
1266
|
+
lockObject?: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
1389
1267
|
}
|
|
1390
1268
|
interface IColorPickerComponentState {
|
|
1391
1269
|
pickerEnabled: boolean;
|
|
@@ -1711,6 +1589,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1711
1589
|
onModeChange?: (mode: number) => void;
|
|
1712
1590
|
onPropertyChangedObservable?: BABYLON.Observable<BABYLON.NodeEditor.SharedUIComponents.PropertyChangedEvent>;
|
|
1713
1591
|
mode?: number;
|
|
1592
|
+
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
1714
1593
|
}
|
|
1715
1594
|
export class MatrixLineComponent extends React.Component<IMatrixLineComponentProps, {
|
|
1716
1595
|
value: BABYLON.Matrix;
|
|
@@ -1763,6 +1642,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1763
1642
|
precision?: number;
|
|
1764
1643
|
icon?: string;
|
|
1765
1644
|
iconLabel?: string;
|
|
1645
|
+
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
1766
1646
|
}
|
|
1767
1647
|
export class NumericInputComponent extends React.Component<INumericInputComponentProps, {
|
|
1768
1648
|
value: string;
|
|
@@ -1772,6 +1652,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1772
1652
|
};
|
|
1773
1653
|
private _localChange;
|
|
1774
1654
|
constructor(props: INumericInputComponentProps);
|
|
1655
|
+
componentWillUnmount(): void;
|
|
1775
1656
|
shouldComponentUpdate(nextProps: INumericInputComponentProps, nextState: {
|
|
1776
1657
|
value: string;
|
|
1777
1658
|
}): boolean;
|
|
@@ -1961,7 +1842,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1961
1842
|
}): boolean;
|
|
1962
1843
|
raiseOnPropertyChanged(newValue: string, previousValue: string): void;
|
|
1963
1844
|
getCurrentNumericValue(value: string): number;
|
|
1964
|
-
updateValue(value: string): void;
|
|
1845
|
+
updateValue(value: string, valueToValidate?: string): void;
|
|
1965
1846
|
incrementValue(amount: number): void;
|
|
1966
1847
|
onKeyDown(event: React.KeyboardEvent): void;
|
|
1967
1848
|
render(): JSX.Element;
|
|
@@ -2046,6 +1927,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
2046
1927
|
onPropertyChangedObservable?: BABYLON.Observable<BABYLON.NodeEditor.SharedUIComponents.PropertyChangedEvent>;
|
|
2047
1928
|
icon?: string;
|
|
2048
1929
|
iconLabel?: string;
|
|
1930
|
+
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
2049
1931
|
}
|
|
2050
1932
|
export class Vector2LineComponent extends React.Component<IVector2LineComponentProps, {
|
|
2051
1933
|
isExpanded: boolean;
|
|
@@ -2085,6 +1967,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
2085
1967
|
noSlider?: boolean;
|
|
2086
1968
|
icon?: string;
|
|
2087
1969
|
iconLabel?: string;
|
|
1970
|
+
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
2088
1971
|
}
|
|
2089
1972
|
export class Vector3LineComponent extends React.Component<IVector3LineComponentProps, {
|
|
2090
1973
|
isExpanded: boolean;
|
|
@@ -2127,6 +2010,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
2127
2010
|
icon?: string;
|
|
2128
2011
|
iconLabel?: string;
|
|
2129
2012
|
value?: BABYLON.Vector4;
|
|
2013
|
+
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
2130
2014
|
}
|
|
2131
2015
|
export class Vector4LineComponent extends React.Component<IVector4LineComponentProps, {
|
|
2132
2016
|
isExpanded: boolean;
|
|
@@ -2202,6 +2086,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
2202
2086
|
onEmitNewNode: (nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData) => BABYLON.NodeEditor.SharedUIComponents.GraphNode;
|
|
2203
2087
|
}
|
|
2204
2088
|
export class GraphCanvasComponent extends React.Component<IGraphCanvasComponentProps> implements BABYLON.NodeEditor.SharedUIComponents.INodeContainer {
|
|
2089
|
+
static readonly NodeWidth = 100;
|
|
2205
2090
|
private readonly _minZoom;
|
|
2206
2091
|
private readonly _maxZoom;
|
|
2207
2092
|
private _hostCanvas;
|
|
@@ -2238,6 +2123,8 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
2238
2123
|
private _oldY;
|
|
2239
2124
|
_frameIsMoving: boolean;
|
|
2240
2125
|
_isLoading: boolean;
|
|
2126
|
+
private _copiedNodes;
|
|
2127
|
+
private _copiedFrames;
|
|
2241
2128
|
get gridSize(): number;
|
|
2242
2129
|
set gridSize(value: number);
|
|
2243
2130
|
get stateManager(): BABYLON.NodeEditor.SharedUIComponents.StateManager;
|
|
@@ -2261,6 +2148,9 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
2261
2148
|
get frameContainer(): HTMLDivElement;
|
|
2262
2149
|
private _selectedFrameAndNodesConflict;
|
|
2263
2150
|
constructor(props: IGraphCanvasComponentProps);
|
|
2151
|
+
handleKeyDown(evt: KeyboardEvent, onRemove: (nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData) => void, mouseLocationX: number, mouseLocationY: number, dataGenerator: (nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData) => any, rootElement: HTMLDivElement): void;
|
|
2152
|
+
pasteSelection(copiedNodes: BABYLON.NodeEditor.SharedUIComponents.GraphNode[], currentX: number, currentY: number, dataGenerator: (nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData) => any, selectNew?: boolean): BABYLON.NodeEditor.SharedUIComponents.GraphNode[];
|
|
2153
|
+
reconnectNewNodes(nodeIndex: number, newNodes: BABYLON.NodeEditor.SharedUIComponents.GraphNode[], sourceNodes: BABYLON.NodeEditor.SharedUIComponents.GraphNode[], done: boolean[]): void;
|
|
2264
2154
|
getCachedData(): any[];
|
|
2265
2155
|
removeDataFromCache(data: any): void;
|
|
2266
2156
|
createNodeFromObject(nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData, onNodeCreated: (data: any) => void, recursion?: boolean): BABYLON.NodeEditor.SharedUIComponents.GraphNode;
|
|
@@ -2282,6 +2172,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
2282
2172
|
zoomToFit(): void;
|
|
2283
2173
|
processCandidatePort(): void;
|
|
2284
2174
|
connectNodes(nodeA: BABYLON.NodeEditor.SharedUIComponents.GraphNode, pointA: BABYLON.NodeEditor.SharedUIComponents.IPortData, nodeB: BABYLON.NodeEditor.SharedUIComponents.GraphNode, pointB: BABYLON.NodeEditor.SharedUIComponents.IPortData): void;
|
|
2175
|
+
drop(newNode: BABYLON.NodeEditor.SharedUIComponents.GraphNode, targetX: number, targetY: number, offsetX: number, offsetY: number): void;
|
|
2285
2176
|
processEditorData(editorData: BABYLON.NodeEditor.SharedUIComponents.IEditorData): void;
|
|
2286
2177
|
reOrganize(editorData?: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.IEditorData>, isImportingAFrame?: boolean): void;
|
|
2287
2178
|
addFrame(frameData: BABYLON.NodeEditor.SharedUIComponents.IFrameData): void;
|