Merge pull request #5140 from dimaMachina/tsdoc-6

fix: improve TSDoc comments for `MiniMapProps` and `PanelProps`
This commit is contained in:
Moritz Klack
2025-04-02 10:13:27 +02:00
committed by GitHub
3 changed files with 73 additions and 22 deletions
@@ -1,4 +1,4 @@
import { forwardRef, type HTMLAttributes, type ReactNode } from 'react';
import { HTMLAttributes, forwardRef } from 'react';
import cc from 'classcat';
import type { PanelPosition } from '@xyflow/system';
@@ -10,10 +10,10 @@ import type { ReactFlowState } from '../../types';
*/
export type PanelProps = HTMLAttributes<HTMLDivElement> & {
/**
* The position of the panel
* The position of the panel.
* @default "top-left"
*/
position?: PanelPosition;
children: ReactNode;
};
const selector = (s: ReactFlowState) => (s.userSelectionActive ? 'none' : 'all');