babylonjs-node-geometry-editor 6.39.0 → 6.41.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.
|
@@ -66,11 +66,13 @@ import { GeometryModBlock } from "babylonjs/Meshes/Node/Blocks/geometryModBlock"
|
|
|
66
66
|
import { GeometryPowBlock } from "babylonjs/Meshes/Node/Blocks/geometryPowBlock";
|
|
67
67
|
import { GeometryClampBlock } from "babylonjs/Meshes/Node/Blocks/geometryClampBlock";
|
|
68
68
|
import { GeometryCrossBlock } from "babylonjs/Meshes/Node/Blocks/geometryCrossBlock";
|
|
69
|
+
import { GeometryCurveBlock } from "babylonjs/Meshes/Node/Blocks/geometryCurveBlock";
|
|
70
|
+
import { GeometryDesaturateBlock } from "babylonjs/Meshes/Node/Blocks/geometryDesaturateBlock";
|
|
69
71
|
/**
|
|
70
72
|
* Static class for BlockTools
|
|
71
73
|
*/
|
|
72
74
|
export class BlockTools {
|
|
73
|
-
static GetBlockFromString(data: string): GeometryCrossBlock | GeometryClampBlock | BooleanGeometryBlock | GeometryTextureFetchBlock | GeometryTextureBlock | BoundingBlock | MatrixComposeBlock | GeometryInfoBlock | GeometryCollectionBlock | GeometryOptimizeBlock | NullBlock | TeleportInBlock | TeleportOutBlock | DebugBlock | IntFloatConverterBlock | ConditionBlock | GeometryLerpBlock | GeometryNLerpBlock | GeometrySmoothStepBlock | GeometryStepBlock | MappingBlock | SetMaterialIDBlock | InstantiateOnVolumeBlock | InstantiateOnFacesBlock | InstantiateOnVerticesBlock | InstantiateBlock | MapRangeBlock | NormalizeVectorBlock | MeshBlock | VectorConverterBlock | TranslationBlock | ScalingBlock | AlignBlock | RotationXBlock | RotationYBlock | RotationZBlock | ComputeNormalsBlock | SetPositionsBlock | SetNormalsBlock | SetColorsBlock | SetTangentsBlock | SetUVsBlock | NoiseBlock | RandomBlock | GeometryOutputBlock | GridBlock | DiscBlock | IcoSphereBlock | BoxBlock | TorusBlock | SphereBlock | CylinderBlock | CapsuleBlock | PlaneBlock | GeometryElbowBlock | MergeGeometryBlock | GeometryTransformBlock | GeometryModBlock | GeometryPowBlock | GeometryInputBlock | MathBlock | GeometryTrigonometryBlock | GeometryArcTan2Block | InstantiateLinearBlock | InstantiateRadialBlock | null;
|
|
75
|
+
static GetBlockFromString(data: string): GeometryDesaturateBlock | GeometryCurveBlock | GeometryCrossBlock | GeometryClampBlock | BooleanGeometryBlock | GeometryTextureFetchBlock | GeometryTextureBlock | BoundingBlock | MatrixComposeBlock | GeometryInfoBlock | GeometryCollectionBlock | GeometryOptimizeBlock | NullBlock | TeleportInBlock | TeleportOutBlock | DebugBlock | IntFloatConverterBlock | ConditionBlock | GeometryLerpBlock | GeometryNLerpBlock | GeometrySmoothStepBlock | GeometryStepBlock | MappingBlock | SetMaterialIDBlock | InstantiateOnVolumeBlock | InstantiateOnFacesBlock | InstantiateOnVerticesBlock | InstantiateBlock | MapRangeBlock | NormalizeVectorBlock | MeshBlock | VectorConverterBlock | TranslationBlock | ScalingBlock | AlignBlock | RotationXBlock | RotationYBlock | RotationZBlock | ComputeNormalsBlock | SetPositionsBlock | SetNormalsBlock | SetColorsBlock | SetTangentsBlock | SetUVsBlock | NoiseBlock | RandomBlock | GeometryOutputBlock | GridBlock | DiscBlock | IcoSphereBlock | BoxBlock | TorusBlock | SphereBlock | CylinderBlock | CapsuleBlock | PlaneBlock | GeometryElbowBlock | MergeGeometryBlock | GeometryTransformBlock | GeometryModBlock | GeometryPowBlock | GeometryInputBlock | MathBlock | GeometryTrigonometryBlock | GeometryArcTan2Block | InstantiateLinearBlock | InstantiateRadialBlock | null;
|
|
74
76
|
static GetColorFromConnectionNodeType(type: NodeGeometryBlockConnectionPointTypes): string;
|
|
75
77
|
static GetConnectionNodeTypeFromString(type: string): NodeGeometryBlockConnectionPointTypes.Int | NodeGeometryBlockConnectionPointTypes.Float | NodeGeometryBlockConnectionPointTypes.Vector2 | NodeGeometryBlockConnectionPointTypes.Vector3 | NodeGeometryBlockConnectionPointTypes.Vector4 | NodeGeometryBlockConnectionPointTypes.Matrix | NodeGeometryBlockConnectionPointTypes.AutoDetect;
|
|
76
78
|
static GetStringFromConnectionNodeType(type: NodeGeometryBlockConnectionPointTypes): "" | "Int" | "Float" | "Vector2" | "Vector3" | "Vector4" | "Matrix";
|
|
@@ -1361,6 +1363,8 @@ export interface IDraggableIconProps {
|
|
|
1361
1363
|
}
|
|
1362
1364
|
/**
|
|
1363
1365
|
* An icon that can be dragged by the user
|
|
1366
|
+
* @param props properties
|
|
1367
|
+
* @returns draggable icon element
|
|
1364
1368
|
*/
|
|
1365
1369
|
export const DraggableIcon: FC<IDraggableIconProps>;
|
|
1366
1370
|
|
|
@@ -1402,6 +1406,8 @@ export interface IFlexibleDragHandlerProps {
|
|
|
1402
1406
|
}
|
|
1403
1407
|
/**
|
|
1404
1408
|
* This component receives the drop events and updates the layout accordingly
|
|
1409
|
+
* @param props properties
|
|
1410
|
+
* @returns DragHandler element
|
|
1405
1411
|
*/
|
|
1406
1412
|
export const FlexibleDragHandler: FC<IFlexibleDragHandlerProps>;
|
|
1407
1413
|
|
|
@@ -1424,6 +1430,8 @@ export interface IFlexibleDropZoneProps {
|
|
|
1424
1430
|
/**
|
|
1425
1431
|
* This component contains the drag and drop zone for the resize bars that
|
|
1426
1432
|
* allow redefining width and height of layout elements
|
|
1433
|
+
* @param props properties
|
|
1434
|
+
* @returns drop zone element
|
|
1427
1435
|
*/
|
|
1428
1436
|
export const FlexibleDropZone: FC<IFlexibleDropZoneProps>;
|
|
1429
1437
|
|
|
@@ -1437,6 +1445,7 @@ export interface IFlexibleGridContainerProps {
|
|
|
1437
1445
|
}
|
|
1438
1446
|
/**
|
|
1439
1447
|
* Component responsible for mapping the layout to the actual components
|
|
1448
|
+
* @returns GridContainer element
|
|
1440
1449
|
*/
|
|
1441
1450
|
export const FlexibleGridContainer: FC<IFlexibleGridContainerProps>;
|
|
1442
1451
|
|
|
@@ -1456,6 +1465,8 @@ export interface IFlexibleGridLayoutProps {
|
|
|
1456
1465
|
/**
|
|
1457
1466
|
* This component represents a grid layout that can be resized and rearranged
|
|
1458
1467
|
* by the user.
|
|
1468
|
+
* @param props properties
|
|
1469
|
+
* @returns layout element
|
|
1459
1470
|
*/
|
|
1460
1471
|
export const FlexibleGridLayout: FC<IFlexibleGridLayoutProps>;
|
|
1461
1472
|
|
|
@@ -1499,6 +1510,8 @@ export type ResizeItem = {
|
|
|
1499
1510
|
};
|
|
1500
1511
|
/**
|
|
1501
1512
|
* A component that renders a bar that the user can drag to resize.
|
|
1513
|
+
* @param props properties
|
|
1514
|
+
* @returns resize bar element
|
|
1502
1515
|
*/
|
|
1503
1516
|
export const FlexibleResizeBar: FC<IFlexibleRowResizerProps>;
|
|
1504
1517
|
|
|
@@ -1536,6 +1549,8 @@ export interface IFlexibleTabProps {
|
|
|
1536
1549
|
* to activate or drag to reorder. It also listens for
|
|
1537
1550
|
* drop events if the user wants to drop another tab
|
|
1538
1551
|
* after it.
|
|
1552
|
+
* @param props properties
|
|
1553
|
+
* @returns FlexibleTab element
|
|
1539
1554
|
*/
|
|
1540
1555
|
export const FlexibleTab: FC<IFlexibleTabProps>;
|
|
1541
1556
|
|
|
@@ -1567,6 +1582,8 @@ export interface IFlexibleTabsContainerProps {
|
|
|
1567
1582
|
/**
|
|
1568
1583
|
* This component contains a set of tabs of which only one is visible at a time.
|
|
1569
1584
|
* The tabs can also be dragged from and to different containers.
|
|
1585
|
+
* @param props properties
|
|
1586
|
+
* @returns tabs container element
|
|
1570
1587
|
*/
|
|
1571
1588
|
export const FlexibleTabsContainer: FC<IFlexibleTabsContainerProps>;
|
|
1572
1589
|
|
|
@@ -1690,11 +1707,15 @@ export const getPosInLayout: (layout: Layout, column: number, row?: number) => L
|
|
|
1690
1707
|
export const removeLayoutRowAndRedistributePercentages: (layout: Layout, column: number, row: number) => void;
|
|
1691
1708
|
/**
|
|
1692
1709
|
* Add a percentage string to a number
|
|
1710
|
+
* @param p1 the percentage string
|
|
1711
|
+
* @param p2 the number
|
|
1712
|
+
* @returns the sum of the percentage string and the number
|
|
1693
1713
|
*/
|
|
1694
1714
|
export const addPercentageStringToNumber: (p1: string, p2: number) => number;
|
|
1695
1715
|
/**
|
|
1696
1716
|
* Parses a percentage string into a number
|
|
1697
1717
|
* @param p the percentage string
|
|
1718
|
+
* @returns the parsed number
|
|
1698
1719
|
*/
|
|
1699
1720
|
export const parsePercentage: (p: string) => number;
|
|
1700
1721
|
|
|
@@ -1906,6 +1927,7 @@ export interface IGraphConnectorHandlerProps {
|
|
|
1906
1927
|
/**
|
|
1907
1928
|
* This component is used to initiate a connection between two nodes. Simply
|
|
1908
1929
|
* drag the handle in a node and drop it in another node to create a connection.
|
|
1930
|
+
* @returns connector element
|
|
1909
1931
|
*/
|
|
1910
1932
|
export const GraphConnectorHandler: FC<IGraphConnectorHandlerProps>;
|
|
1911
1933
|
|
|
@@ -1975,6 +1997,8 @@ export const MarkerArrowId = "arrow";
|
|
|
1975
1997
|
/**
|
|
1976
1998
|
* This component draws a SVG line between two points, with an optional marker
|
|
1977
1999
|
* indicating direction
|
|
2000
|
+
* @param props properties
|
|
2001
|
+
* @returns graph line element
|
|
1978
2002
|
*/
|
|
1979
2003
|
export const GraphLine: FC<IGraphLineProps>;
|
|
1980
2004
|
|
|
@@ -2022,6 +2046,8 @@ export interface IGraphContainerProps {
|
|
|
2022
2046
|
}
|
|
2023
2047
|
/**
|
|
2024
2048
|
* This component contains all the nodes and handles their dragging
|
|
2049
|
+
* @param props properties
|
|
2050
|
+
* @returns graph node container element
|
|
2025
2051
|
*/
|
|
2026
2052
|
export const GraphNodesContainer: FC<IGraphContainerProps>;
|
|
2027
2053
|
|
|
@@ -2117,6 +2143,8 @@ export interface ITextInputProps {
|
|
|
2117
2143
|
}
|
|
2118
2144
|
/**
|
|
2119
2145
|
* This component represents a text input that can be submitted or cancelled on buttons
|
|
2146
|
+
* @param props properties
|
|
2147
|
+
* @returns TextInputWithSubmit element
|
|
2120
2148
|
*/
|
|
2121
2149
|
export const TextInputWithSubmit: (props: ITextInputProps) => JSX.Element;
|
|
2122
2150
|
|
|
@@ -2399,6 +2427,7 @@ interface IFloatLineComponentProps {
|
|
|
2399
2427
|
unit?: React.ReactNode;
|
|
2400
2428
|
onDragStart?: (newValue: number) => void;
|
|
2401
2429
|
onDragStop?: (newValue: number) => void;
|
|
2430
|
+
disabled?: boolean;
|
|
2402
2431
|
}
|
|
2403
2432
|
export class FloatLineComponent extends React.Component<IFloatLineComponentProps, {
|
|
2404
2433
|
value: string;
|
|
@@ -4105,7 +4134,7 @@ declare module BABYLON.NodeGeometryEditor {
|
|
|
4105
4134
|
* Static class for BlockTools
|
|
4106
4135
|
*/
|
|
4107
4136
|
export class BlockTools {
|
|
4108
|
-
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;
|
|
4137
|
+
static GetBlockFromString(data: string): BABYLON.GeometryDesaturateBlock | 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;
|
|
4109
4138
|
static GetColorFromConnectionNodeType(type: BABYLON.NodeGeometryBlockConnectionPointTypes): string;
|
|
4110
4139
|
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;
|
|
4111
4140
|
static GetStringFromConnectionNodeType(type: BABYLON.NodeGeometryBlockConnectionPointTypes): "" | "Int" | "Float" | "Vector2" | "Vector3" | "Vector4" | "Matrix";
|
|
@@ -5216,6 +5245,8 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
5216
5245
|
}
|
|
5217
5246
|
/**
|
|
5218
5247
|
* An icon that can be dragged by the user
|
|
5248
|
+
* @param props properties
|
|
5249
|
+
* @returns draggable icon element
|
|
5219
5250
|
*/
|
|
5220
5251
|
export var DraggableIcon: React.FC<IDraggableIconProps>;
|
|
5221
5252
|
|
|
@@ -5265,6 +5296,8 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
5265
5296
|
}
|
|
5266
5297
|
/**
|
|
5267
5298
|
* This component receives the drop events and updates the layout accordingly
|
|
5299
|
+
* @param props properties
|
|
5300
|
+
* @returns DragHandler element
|
|
5268
5301
|
*/
|
|
5269
5302
|
export var FlexibleDragHandler: React.FC<IFlexibleDragHandlerProps>;
|
|
5270
5303
|
|
|
@@ -5291,6 +5324,8 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
5291
5324
|
/**
|
|
5292
5325
|
* This component contains the drag and drop zone for the resize bars that
|
|
5293
5326
|
* allow redefining width and height of layout elements
|
|
5327
|
+
* @param props properties
|
|
5328
|
+
* @returns drop zone element
|
|
5294
5329
|
*/
|
|
5295
5330
|
export var FlexibleDropZone: React.FC<IFlexibleDropZoneProps>;
|
|
5296
5331
|
|
|
@@ -5308,6 +5343,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
5308
5343
|
}
|
|
5309
5344
|
/**
|
|
5310
5345
|
* Component responsible for mapping the layout to the actual components
|
|
5346
|
+
* @returns GridContainer element
|
|
5311
5347
|
*/
|
|
5312
5348
|
export var FlexibleGridContainer: React.FC<IFlexibleGridContainerProps>;
|
|
5313
5349
|
|
|
@@ -5330,6 +5366,8 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
5330
5366
|
/**
|
|
5331
5367
|
* This component represents a grid layout that can be resized and rearranged
|
|
5332
5368
|
* by the user.
|
|
5369
|
+
* @param props properties
|
|
5370
|
+
* @returns layout element
|
|
5333
5371
|
*/
|
|
5334
5372
|
export var FlexibleGridLayout: React.FC<IFlexibleGridLayoutProps>;
|
|
5335
5373
|
|
|
@@ -5376,6 +5414,8 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
5376
5414
|
};
|
|
5377
5415
|
/**
|
|
5378
5416
|
* A component that renders a bar that the user can drag to resize.
|
|
5417
|
+
* @param props properties
|
|
5418
|
+
* @returns resize bar element
|
|
5379
5419
|
*/
|
|
5380
5420
|
export var FlexibleResizeBar: React.FC<IFlexibleRowResizerProps>;
|
|
5381
5421
|
|
|
@@ -5416,6 +5456,8 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
5416
5456
|
* to activate or drag to reorder. It also listens for
|
|
5417
5457
|
* drop events if the user wants to drop another tab
|
|
5418
5458
|
* after it.
|
|
5459
|
+
* @param props properties
|
|
5460
|
+
* @returns FlexibleTab element
|
|
5419
5461
|
*/
|
|
5420
5462
|
export var FlexibleTab: React.FC<IFlexibleTabProps>;
|
|
5421
5463
|
|
|
@@ -5450,6 +5492,8 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
5450
5492
|
/**
|
|
5451
5493
|
* This component contains a set of tabs of which only one is visible at a time.
|
|
5452
5494
|
* The tabs can also be dragged from and to different containers.
|
|
5495
|
+
* @param props properties
|
|
5496
|
+
* @returns tabs container element
|
|
5453
5497
|
*/
|
|
5454
5498
|
export var FlexibleTabsContainer: React.FC<IFlexibleTabsContainerProps>;
|
|
5455
5499
|
|
|
@@ -5585,11 +5629,15 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
5585
5629
|
export const removeLayoutRowAndRedistributePercentages: (layout: BABYLON.NodeGeometryEditor.SharedUIComponents.Layout, column: number, row: number) => void;
|
|
5586
5630
|
/**
|
|
5587
5631
|
* Add a percentage string to a number
|
|
5632
|
+
* @param p1 the percentage string
|
|
5633
|
+
* @param p2 the number
|
|
5634
|
+
* @returns the sum of the percentage string and the number
|
|
5588
5635
|
*/
|
|
5589
5636
|
export const addPercentageStringToNumber: (p1: string, p2: number) => number;
|
|
5590
5637
|
/**
|
|
5591
5638
|
* Parses a percentage string into a number
|
|
5592
5639
|
* @param p the percentage string
|
|
5640
|
+
* @returns the parsed number
|
|
5593
5641
|
*/
|
|
5594
5642
|
export const parsePercentage: (p: string) => number;
|
|
5595
5643
|
|
|
@@ -5820,6 +5868,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
5820
5868
|
/**
|
|
5821
5869
|
* This component is used to initiate a connection between two nodes. Simply
|
|
5822
5870
|
* drag the handle in a node and drop it in another node to create a connection.
|
|
5871
|
+
* @returns connector element
|
|
5823
5872
|
*/
|
|
5824
5873
|
export var GraphConnectorHandler: React.FC<IGraphConnectorHandlerProps>;
|
|
5825
5874
|
|
|
@@ -5902,6 +5951,8 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
5902
5951
|
/**
|
|
5903
5952
|
* This component draws a SVG line between two points, with an optional marker
|
|
5904
5953
|
* indicating direction
|
|
5954
|
+
* @param props properties
|
|
5955
|
+
* @returns graph line element
|
|
5905
5956
|
*/
|
|
5906
5957
|
export var GraphLine: React.FC<IGraphLineProps>;
|
|
5907
5958
|
|
|
@@ -5961,6 +6012,8 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
5961
6012
|
}
|
|
5962
6013
|
/**
|
|
5963
6014
|
* This component contains all the nodes and handles their dragging
|
|
6015
|
+
* @param props properties
|
|
6016
|
+
* @returns graph node container element
|
|
5964
6017
|
*/
|
|
5965
6018
|
export var GraphNodesContainer: React.FC<IGraphContainerProps>;
|
|
5966
6019
|
|
|
@@ -6069,6 +6122,8 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
6069
6122
|
}
|
|
6070
6123
|
/**
|
|
6071
6124
|
* This component represents a text input that can be submitted or cancelled on buttons
|
|
6125
|
+
* @param props properties
|
|
6126
|
+
* @returns TextInputWithSubmit element
|
|
6072
6127
|
*/
|
|
6073
6128
|
export const TextInputWithSubmit: (props: ITextInputProps) => JSX.Element;
|
|
6074
6129
|
|
|
@@ -6378,6 +6433,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
6378
6433
|
unit?: React.ReactNode;
|
|
6379
6434
|
onDragStart?: (newValue: number) => void;
|
|
6380
6435
|
onDragStop?: (newValue: number) => void;
|
|
6436
|
+
disabled?: boolean;
|
|
6381
6437
|
}
|
|
6382
6438
|
export class FloatLineComponent extends React.Component<IFloatLineComponentProps, {
|
|
6383
6439
|
value: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-node-geometry-editor",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.41.0",
|
|
4
4
|
"main": "babylon.nodeGeometryEditor.js",
|
|
5
5
|
"types": "babylon.nodeGeometryEditor.module.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"clean": "rimraf dist && rimraf babylon*.*"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"babylonjs": "^6.
|
|
17
|
+
"babylonjs": "^6.41.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@dev/build-tools": "1.0.0",
|