@babylonjs/node-geometry-editor 6.38.1 → 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.
@@ -66,11 +66,12 @@ import { GeometryModBlock } from "@babylonjs/core/Meshes/Node/Blocks/geometryMod
66
66
  import { GeometryPowBlock } from "@babylonjs/core/Meshes/Node/Blocks/geometryPowBlock";
67
67
  import { GeometryClampBlock } from "@babylonjs/core/Meshes/Node/Blocks/geometryClampBlock";
68
68
  import { GeometryCrossBlock } from "@babylonjs/core/Meshes/Node/Blocks/geometryCrossBlock";
69
+ import { GeometryCurveBlock } from "@babylonjs/core/Meshes/Node/Blocks/geometryCurveBlock";
69
70
  /**
70
71
  * Static class for BlockTools
71
72
  */
72
73
  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;
74
+ static GetBlockFromString(data: string): 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
75
  static GetColorFromConnectionNodeType(type: NodeGeometryBlockConnectionPointTypes): string;
75
76
  static GetConnectionNodeTypeFromString(type: string): NodeGeometryBlockConnectionPointTypes.Int | NodeGeometryBlockConnectionPointTypes.Float | NodeGeometryBlockConnectionPointTypes.Vector2 | NodeGeometryBlockConnectionPointTypes.Vector3 | NodeGeometryBlockConnectionPointTypes.Vector4 | NodeGeometryBlockConnectionPointTypes.Matrix | NodeGeometryBlockConnectionPointTypes.AutoDetect;
76
77
  static GetStringFromConnectionNodeType(type: NodeGeometryBlockConnectionPointTypes): "" | "Int" | "Float" | "Vector2" | "Vector3" | "Vector4" | "Matrix";
@@ -1361,6 +1362,8 @@ export interface IDraggableIconProps {
1361
1362
  }
1362
1363
  /**
1363
1364
  * An icon that can be dragged by the user
1365
+ * @param props properties
1366
+ * @returns draggable icon element
1364
1367
  */
1365
1368
  export const DraggableIcon: FC<IDraggableIconProps>;
1366
1369
 
@@ -1402,6 +1405,8 @@ export interface IFlexibleDragHandlerProps {
1402
1405
  }
1403
1406
  /**
1404
1407
  * This component receives the drop events and updates the layout accordingly
1408
+ * @param props properties
1409
+ * @returns DragHandler element
1405
1410
  */
1406
1411
  export const FlexibleDragHandler: FC<IFlexibleDragHandlerProps>;
1407
1412
 
@@ -1424,6 +1429,8 @@ export interface IFlexibleDropZoneProps {
1424
1429
  /**
1425
1430
  * This component contains the drag and drop zone for the resize bars that
1426
1431
  * allow redefining width and height of layout elements
1432
+ * @param props properties
1433
+ * @returns drop zone element
1427
1434
  */
1428
1435
  export const FlexibleDropZone: FC<IFlexibleDropZoneProps>;
1429
1436
 
@@ -1437,6 +1444,7 @@ export interface IFlexibleGridContainerProps {
1437
1444
  }
1438
1445
  /**
1439
1446
  * Component responsible for mapping the layout to the actual components
1447
+ * @returns GridContainer element
1440
1448
  */
1441
1449
  export const FlexibleGridContainer: FC<IFlexibleGridContainerProps>;
1442
1450
 
@@ -1456,6 +1464,8 @@ export interface IFlexibleGridLayoutProps {
1456
1464
  /**
1457
1465
  * This component represents a grid layout that can be resized and rearranged
1458
1466
  * by the user.
1467
+ * @param props properties
1468
+ * @returns layout element
1459
1469
  */
1460
1470
  export const FlexibleGridLayout: FC<IFlexibleGridLayoutProps>;
1461
1471
 
@@ -1499,6 +1509,8 @@ export type ResizeItem = {
1499
1509
  };
1500
1510
  /**
1501
1511
  * A component that renders a bar that the user can drag to resize.
1512
+ * @param props properties
1513
+ * @returns resize bar element
1502
1514
  */
1503
1515
  export const FlexibleResizeBar: FC<IFlexibleRowResizerProps>;
1504
1516
 
@@ -1536,6 +1548,8 @@ export interface IFlexibleTabProps {
1536
1548
  * to activate or drag to reorder. It also listens for
1537
1549
  * drop events if the user wants to drop another tab
1538
1550
  * after it.
1551
+ * @param props properties
1552
+ * @returns FlexibleTab element
1539
1553
  */
1540
1554
  export const FlexibleTab: FC<IFlexibleTabProps>;
1541
1555
 
@@ -1567,6 +1581,8 @@ export interface IFlexibleTabsContainerProps {
1567
1581
  /**
1568
1582
  * This component contains a set of tabs of which only one is visible at a time.
1569
1583
  * The tabs can also be dragged from and to different containers.
1584
+ * @param props properties
1585
+ * @returns tabs container element
1570
1586
  */
1571
1587
  export const FlexibleTabsContainer: FC<IFlexibleTabsContainerProps>;
1572
1588
 
@@ -1690,11 +1706,15 @@ export const getPosInLayout: (layout: Layout, column: number, row?: number) => L
1690
1706
  export const removeLayoutRowAndRedistributePercentages: (layout: Layout, column: number, row: number) => void;
1691
1707
  /**
1692
1708
  * Add a percentage string to a number
1709
+ * @param p1 the percentage string
1710
+ * @param p2 the number
1711
+ * @returns the sum of the percentage string and the number
1693
1712
  */
1694
1713
  export const addPercentageStringToNumber: (p1: string, p2: number) => number;
1695
1714
  /**
1696
1715
  * Parses a percentage string into a number
1697
1716
  * @param p the percentage string
1717
+ * @returns the parsed number
1698
1718
  */
1699
1719
  export const parsePercentage: (p: string) => number;
1700
1720
 
@@ -1906,6 +1926,7 @@ export interface IGraphConnectorHandlerProps {
1906
1926
  /**
1907
1927
  * This component is used to initiate a connection between two nodes. Simply
1908
1928
  * drag the handle in a node and drop it in another node to create a connection.
1929
+ * @returns connector element
1909
1930
  */
1910
1931
  export const GraphConnectorHandler: FC<IGraphConnectorHandlerProps>;
1911
1932
 
@@ -1975,6 +1996,8 @@ export const MarkerArrowId = "arrow";
1975
1996
  /**
1976
1997
  * This component draws a SVG line between two points, with an optional marker
1977
1998
  * indicating direction
1999
+ * @param props properties
2000
+ * @returns graph line element
1978
2001
  */
1979
2002
  export const GraphLine: FC<IGraphLineProps>;
1980
2003
 
@@ -2022,6 +2045,8 @@ export interface IGraphContainerProps {
2022
2045
  }
2023
2046
  /**
2024
2047
  * This component contains all the nodes and handles their dragging
2048
+ * @param props properties
2049
+ * @returns graph node container element
2025
2050
  */
2026
2051
  export const GraphNodesContainer: FC<IGraphContainerProps>;
2027
2052
 
@@ -2117,6 +2142,8 @@ export interface ITextInputProps {
2117
2142
  }
2118
2143
  /**
2119
2144
  * This component represents a text input that can be submitted or cancelled on buttons
2145
+ * @param props properties
2146
+ * @returns TextInputWithSubmit element
2120
2147
  */
2121
2148
  export const TextInputWithSubmit: (props: ITextInputProps) => JSX.Element;
2122
2149
 
@@ -2399,6 +2426,7 @@ interface IFloatLineComponentProps {
2399
2426
  unit?: React.ReactNode;
2400
2427
  onDragStart?: (newValue: number) => void;
2401
2428
  onDragStop?: (newValue: number) => void;
2429
+ disabled?: boolean;
2402
2430
  }
2403
2431
  export class FloatLineComponent extends React.Component<IFloatLineComponentProps, {
2404
2432
  value: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs/node-geometry-editor",
3
- "version": "6.38.1",
3
+ "version": "6.40.0",
4
4
  "main": "dist/babylon.nodeGeometryEditor.max.js",
5
5
  "module": "dist/babylon.nodeGeometryEditor.max.js",
6
6
  "esnext": "dist/babylon.nodeGeometryEditor.max.js",
@@ -23,7 +23,7 @@
23
23
  "@types/react-dom": ">=16.0.9"
24
24
  },
25
25
  "devDependencies": {
26
- "@babylonjs/core": "^6.38.1",
26
+ "@babylonjs/core": "^6.40.0",
27
27
  "react": "^17.0.2",
28
28
  "react-dom": "^17.0.2"
29
29
  },