@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/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";
70
+ import { GeometryDesaturateBlock } from "@babylonjs/core/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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs/node-geometry-editor",
3
- "version": "6.39.0",
3
+ "version": "6.41.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.39.0",
26
+ "@babylonjs/core": "^6.41.0",
27
27
  "react": "^17.0.2",
28
28
  "react-dom": "^17.0.2"
29
29
  },