Merge pull request #5136 from dimaMachina/tsdoc-2
fix: improve TSDoc comments for `EdgeBase`
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'@xyflow/system': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: improve TSDoc comments for `EdgeBase`
|
||||||
@@ -4,44 +4,41 @@ export type EdgeBase<
|
|||||||
EdgeData extends Record<string, unknown> = Record<string, unknown>,
|
EdgeData extends Record<string, unknown> = Record<string, unknown>,
|
||||||
EdgeType extends string | undefined = string | undefined
|
EdgeType extends string | undefined = string | undefined
|
||||||
> = {
|
> = {
|
||||||
/** Unique id of an edge */
|
/** Unique id of an edge. */
|
||||||
id: string;
|
id: string;
|
||||||
/** Type of an edge defined in edgeTypes */
|
/** Type of edge defined in `edgeTypes`. */
|
||||||
type?: EdgeType;
|
type?: EdgeType;
|
||||||
/** Id of source node */
|
/** Id of source node. */
|
||||||
source: string;
|
source: string;
|
||||||
/** Id of target node */
|
/** Id of target node. */
|
||||||
target: string;
|
target: string;
|
||||||
/**
|
/** Id of source handle, only needed if there are multiple handles per node. */
|
||||||
* Id of source handle
|
|
||||||
* only needed if there are multiple handles per node
|
|
||||||
*/
|
|
||||||
sourceHandle?: string | null;
|
sourceHandle?: string | null;
|
||||||
/**
|
/** Id of target handle, only needed if there are multiple handles per node. */
|
||||||
* Id of target handle
|
|
||||||
* only needed if there are multiple handles per node
|
|
||||||
*/
|
|
||||||
targetHandle?: string | null;
|
targetHandle?: string | null;
|
||||||
animated?: boolean;
|
animated?: boolean;
|
||||||
hidden?: boolean;
|
hidden?: boolean;
|
||||||
deletable?: boolean;
|
deletable?: boolean;
|
||||||
selectable?: boolean;
|
selectable?: boolean;
|
||||||
/** Arbitrary data passed to an edge */
|
/** Arbitrary data passed to an edge. */
|
||||||
data?: EdgeData;
|
data?: EdgeData;
|
||||||
selected?: boolean;
|
selected?: boolean;
|
||||||
/**
|
/**
|
||||||
* Set the marker on the beginning of an edge
|
* Set the marker on the beginning of an edge.
|
||||||
* @example 'arrow', 'arrowclosed' or custom marker
|
* @example 'arrow', 'arrowclosed' or custom marker
|
||||||
*/
|
*/
|
||||||
markerStart?: EdgeMarkerType;
|
markerStart?: EdgeMarkerType;
|
||||||
/**
|
/**
|
||||||
* Set the marker on the end of an edge
|
* Set the marker on the end of an edge.
|
||||||
* @example 'arrow', 'arrowclosed' or custom marker
|
* @example 'arrow', 'arrowclosed' or custom marker
|
||||||
*/
|
*/
|
||||||
markerEnd?: EdgeMarkerType;
|
markerEnd?: EdgeMarkerType;
|
||||||
zIndex?: number;
|
zIndex?: number;
|
||||||
ariaLabel?: string;
|
ariaLabel?: string;
|
||||||
/** Padding around the edge where interaction is still possible */
|
/**
|
||||||
|
* ReactFlow renders an invisible path around each edge to make them easier to click or tap on.
|
||||||
|
* This property sets the width of that invisible path.
|
||||||
|
*/
|
||||||
interactionWidth?: number;
|
interactionWidth?: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user