babylonjs-node-geometry-editor 6.39.0 → 6.40.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.
|
@@ -4,7 +4,7 @@ declare module BABYLON.NodeGeometryEditor {
|
|
|
4
4
|
* Static class for BlockTools
|
|
5
5
|
*/
|
|
6
6
|
export class BlockTools {
|
|
7
|
-
static GetBlockFromString(data: string): BABYLON.GeometryCrossBlock | BABYLON.GeometryClampBlock | BABYLON.BooleanGeometryBlock | BABYLON.GeometryTextureFetchBlock | BABYLON.GeometryTextureBlock | BABYLON.BoundingBlock | BABYLON.MatrixComposeBlock | BABYLON.GeometryInfoBlock | BABYLON.GeometryCollectionBlock | BABYLON.GeometryOptimizeBlock | BABYLON.NullBlock | BABYLON.TeleportInBlock | BABYLON.TeleportOutBlock | BABYLON.DebugBlock | BABYLON.IntFloatConverterBlock | BABYLON.ConditionBlock | BABYLON.GeometryLerpBlock | BABYLON.GeometryNLerpBlock | BABYLON.GeometrySmoothStepBlock | BABYLON.GeometryStepBlock | BABYLON.MappingBlock | BABYLON.SetMaterialIDBlock | BABYLON.InstantiateOnVolumeBlock | BABYLON.InstantiateOnFacesBlock | BABYLON.InstantiateOnVerticesBlock | BABYLON.InstantiateBlock | BABYLON.MapRangeBlock | BABYLON.NormalizeVectorBlock | BABYLON.MeshBlock | BABYLON.VectorConverterBlock | BABYLON.TranslationBlock | BABYLON.ScalingBlock | BABYLON.AlignBlock | BABYLON.RotationXBlock | BABYLON.RotationYBlock | BABYLON.RotationZBlock | BABYLON.ComputeNormalsBlock | BABYLON.SetPositionsBlock | BABYLON.SetNormalsBlock | BABYLON.SetColorsBlock | BABYLON.SetTangentsBlock | BABYLON.SetUVsBlock | BABYLON.NoiseBlock | BABYLON.RandomBlock | BABYLON.GeometryOutputBlock | BABYLON.GridBlock | BABYLON.DiscBlock | BABYLON.IcoSphereBlock | BABYLON.BoxBlock | BABYLON.TorusBlock | BABYLON.SphereBlock | BABYLON.CylinderBlock | BABYLON.CapsuleBlock | BABYLON.PlaneBlock | BABYLON.GeometryElbowBlock | BABYLON.MergeGeometryBlock | BABYLON.GeometryTransformBlock | BABYLON.GeometryModBlock | BABYLON.GeometryPowBlock | BABYLON.GeometryInputBlock | BABYLON.MathBlock | BABYLON.GeometryTrigonometryBlock | BABYLON.GeometryArcTan2Block | BABYLON.InstantiateLinearBlock | BABYLON.InstantiateRadialBlock | null;
|
|
7
|
+
static GetBlockFromString(data: string): BABYLON.GeometryCurveBlock | BABYLON.GeometryCrossBlock | BABYLON.GeometryClampBlock | BABYLON.BooleanGeometryBlock | BABYLON.GeometryTextureFetchBlock | BABYLON.GeometryTextureBlock | BABYLON.BoundingBlock | BABYLON.MatrixComposeBlock | BABYLON.GeometryInfoBlock | BABYLON.GeometryCollectionBlock | BABYLON.GeometryOptimizeBlock | BABYLON.NullBlock | BABYLON.TeleportInBlock | BABYLON.TeleportOutBlock | BABYLON.DebugBlock | BABYLON.IntFloatConverterBlock | BABYLON.ConditionBlock | BABYLON.GeometryLerpBlock | BABYLON.GeometryNLerpBlock | BABYLON.GeometrySmoothStepBlock | BABYLON.GeometryStepBlock | BABYLON.MappingBlock | BABYLON.SetMaterialIDBlock | BABYLON.InstantiateOnVolumeBlock | BABYLON.InstantiateOnFacesBlock | BABYLON.InstantiateOnVerticesBlock | BABYLON.InstantiateBlock | BABYLON.MapRangeBlock | BABYLON.NormalizeVectorBlock | BABYLON.MeshBlock | BABYLON.VectorConverterBlock | BABYLON.TranslationBlock | BABYLON.ScalingBlock | BABYLON.AlignBlock | BABYLON.RotationXBlock | BABYLON.RotationYBlock | BABYLON.RotationZBlock | BABYLON.ComputeNormalsBlock | BABYLON.SetPositionsBlock | BABYLON.SetNormalsBlock | BABYLON.SetColorsBlock | BABYLON.SetTangentsBlock | BABYLON.SetUVsBlock | BABYLON.NoiseBlock | BABYLON.RandomBlock | BABYLON.GeometryOutputBlock | BABYLON.GridBlock | BABYLON.DiscBlock | BABYLON.IcoSphereBlock | BABYLON.BoxBlock | BABYLON.TorusBlock | BABYLON.SphereBlock | BABYLON.CylinderBlock | BABYLON.CapsuleBlock | BABYLON.PlaneBlock | BABYLON.GeometryElbowBlock | BABYLON.MergeGeometryBlock | BABYLON.GeometryTransformBlock | BABYLON.GeometryModBlock | BABYLON.GeometryPowBlock | BABYLON.GeometryInputBlock | BABYLON.MathBlock | BABYLON.GeometryTrigonometryBlock | BABYLON.GeometryArcTan2Block | BABYLON.InstantiateLinearBlock | BABYLON.InstantiateRadialBlock | null;
|
|
8
8
|
static GetColorFromConnectionNodeType(type: BABYLON.NodeGeometryBlockConnectionPointTypes): string;
|
|
9
9
|
static GetConnectionNodeTypeFromString(type: string): BABYLON.NodeGeometryBlockConnectionPointTypes.Int | BABYLON.NodeGeometryBlockConnectionPointTypes.Float | BABYLON.NodeGeometryBlockConnectionPointTypes.Vector2 | BABYLON.NodeGeometryBlockConnectionPointTypes.Vector3 | BABYLON.NodeGeometryBlockConnectionPointTypes.Vector4 | BABYLON.NodeGeometryBlockConnectionPointTypes.Matrix | BABYLON.NodeGeometryBlockConnectionPointTypes.AutoDetect;
|
|
10
10
|
static GetStringFromConnectionNodeType(type: BABYLON.NodeGeometryBlockConnectionPointTypes): "" | "Int" | "Float" | "Vector2" | "Vector3" | "Vector4" | "Matrix";
|
|
@@ -1115,6 +1115,8 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
1115
1115
|
}
|
|
1116
1116
|
/**
|
|
1117
1117
|
* An icon that can be dragged by the user
|
|
1118
|
+
* @param props properties
|
|
1119
|
+
* @returns draggable icon element
|
|
1118
1120
|
*/
|
|
1119
1121
|
export var DraggableIcon: React.FC<IDraggableIconProps>;
|
|
1120
1122
|
|
|
@@ -1164,6 +1166,8 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
1164
1166
|
}
|
|
1165
1167
|
/**
|
|
1166
1168
|
* This component receives the drop events and updates the layout accordingly
|
|
1169
|
+
* @param props properties
|
|
1170
|
+
* @returns DragHandler element
|
|
1167
1171
|
*/
|
|
1168
1172
|
export var FlexibleDragHandler: React.FC<IFlexibleDragHandlerProps>;
|
|
1169
1173
|
|
|
@@ -1190,6 +1194,8 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
1190
1194
|
/**
|
|
1191
1195
|
* This component contains the drag and drop zone for the resize bars that
|
|
1192
1196
|
* allow redefining width and height of layout elements
|
|
1197
|
+
* @param props properties
|
|
1198
|
+
* @returns drop zone element
|
|
1193
1199
|
*/
|
|
1194
1200
|
export var FlexibleDropZone: React.FC<IFlexibleDropZoneProps>;
|
|
1195
1201
|
|
|
@@ -1207,6 +1213,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
1207
1213
|
}
|
|
1208
1214
|
/**
|
|
1209
1215
|
* Component responsible for mapping the layout to the actual components
|
|
1216
|
+
* @returns GridContainer element
|
|
1210
1217
|
*/
|
|
1211
1218
|
export var FlexibleGridContainer: React.FC<IFlexibleGridContainerProps>;
|
|
1212
1219
|
|
|
@@ -1229,6 +1236,8 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
1229
1236
|
/**
|
|
1230
1237
|
* This component represents a grid layout that can be resized and rearranged
|
|
1231
1238
|
* by the user.
|
|
1239
|
+
* @param props properties
|
|
1240
|
+
* @returns layout element
|
|
1232
1241
|
*/
|
|
1233
1242
|
export var FlexibleGridLayout: React.FC<IFlexibleGridLayoutProps>;
|
|
1234
1243
|
|
|
@@ -1275,6 +1284,8 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
1275
1284
|
};
|
|
1276
1285
|
/**
|
|
1277
1286
|
* A component that renders a bar that the user can drag to resize.
|
|
1287
|
+
* @param props properties
|
|
1288
|
+
* @returns resize bar element
|
|
1278
1289
|
*/
|
|
1279
1290
|
export var FlexibleResizeBar: React.FC<IFlexibleRowResizerProps>;
|
|
1280
1291
|
|
|
@@ -1315,6 +1326,8 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
1315
1326
|
* to activate or drag to reorder. It also listens for
|
|
1316
1327
|
* drop events if the user wants to drop another tab
|
|
1317
1328
|
* after it.
|
|
1329
|
+
* @param props properties
|
|
1330
|
+
* @returns FlexibleTab element
|
|
1318
1331
|
*/
|
|
1319
1332
|
export var FlexibleTab: React.FC<IFlexibleTabProps>;
|
|
1320
1333
|
|
|
@@ -1349,6 +1362,8 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
1349
1362
|
/**
|
|
1350
1363
|
* This component contains a set of tabs of which only one is visible at a time.
|
|
1351
1364
|
* The tabs can also be dragged from and to different containers.
|
|
1365
|
+
* @param props properties
|
|
1366
|
+
* @returns tabs container element
|
|
1352
1367
|
*/
|
|
1353
1368
|
export var FlexibleTabsContainer: React.FC<IFlexibleTabsContainerProps>;
|
|
1354
1369
|
|
|
@@ -1484,11 +1499,15 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
1484
1499
|
export const removeLayoutRowAndRedistributePercentages: (layout: BABYLON.NodeGeometryEditor.SharedUIComponents.Layout, column: number, row: number) => void;
|
|
1485
1500
|
/**
|
|
1486
1501
|
* Add a percentage string to a number
|
|
1502
|
+
* @param p1 the percentage string
|
|
1503
|
+
* @param p2 the number
|
|
1504
|
+
* @returns the sum of the percentage string and the number
|
|
1487
1505
|
*/
|
|
1488
1506
|
export const addPercentageStringToNumber: (p1: string, p2: number) => number;
|
|
1489
1507
|
/**
|
|
1490
1508
|
* Parses a percentage string into a number
|
|
1491
1509
|
* @param p the percentage string
|
|
1510
|
+
* @returns the parsed number
|
|
1492
1511
|
*/
|
|
1493
1512
|
export const parsePercentage: (p: string) => number;
|
|
1494
1513
|
|
|
@@ -1719,6 +1738,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
1719
1738
|
/**
|
|
1720
1739
|
* This component is used to initiate a connection between two nodes. Simply
|
|
1721
1740
|
* drag the handle in a node and drop it in another node to create a connection.
|
|
1741
|
+
* @returns connector element
|
|
1722
1742
|
*/
|
|
1723
1743
|
export var GraphConnectorHandler: React.FC<IGraphConnectorHandlerProps>;
|
|
1724
1744
|
|
|
@@ -1801,6 +1821,8 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
1801
1821
|
/**
|
|
1802
1822
|
* This component draws a SVG line between two points, with an optional marker
|
|
1803
1823
|
* indicating direction
|
|
1824
|
+
* @param props properties
|
|
1825
|
+
* @returns graph line element
|
|
1804
1826
|
*/
|
|
1805
1827
|
export var GraphLine: React.FC<IGraphLineProps>;
|
|
1806
1828
|
|
|
@@ -1860,6 +1882,8 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
1860
1882
|
}
|
|
1861
1883
|
/**
|
|
1862
1884
|
* This component contains all the nodes and handles their dragging
|
|
1885
|
+
* @param props properties
|
|
1886
|
+
* @returns graph node container element
|
|
1863
1887
|
*/
|
|
1864
1888
|
export var GraphNodesContainer: React.FC<IGraphContainerProps>;
|
|
1865
1889
|
|
|
@@ -1968,6 +1992,8 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
1968
1992
|
}
|
|
1969
1993
|
/**
|
|
1970
1994
|
* This component represents a text input that can be submitted or cancelled on buttons
|
|
1995
|
+
* @param props properties
|
|
1996
|
+
* @returns TextInputWithSubmit element
|
|
1971
1997
|
*/
|
|
1972
1998
|
export const TextInputWithSubmit: (props: ITextInputProps) => JSX.Element;
|
|
1973
1999
|
|
|
@@ -2277,6 +2303,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
2277
2303
|
unit?: React.ReactNode;
|
|
2278
2304
|
onDragStart?: (newValue: number) => void;
|
|
2279
2305
|
onDragStop?: (newValue: number) => void;
|
|
2306
|
+
disabled?: boolean;
|
|
2280
2307
|
}
|
|
2281
2308
|
export class FloatLineComponent extends React.Component<IFloatLineComponentProps, {
|
|
2282
2309
|
value: string;
|