feat(curve): update api report signature

Signed-off-by: andrmaz <60042277+andrmaz@users.noreply.github.com>
This commit is contained in:
andrmaz
2022-10-06 08:36:50 +02:00
parent 58947b5695
commit 3d3a2962c4
5 changed files with 19 additions and 1 deletions
+5
View File
@@ -203,6 +203,9 @@ export type CreateButtonProps = {
title: string;
} & Partial<Pick<LinkProps_3, 'to'>>;
// @public
type Curve = 'curveStepBefore' | 'curveMonotoneX';
// @public (undocumented)
export type CustomProviderClassKey = 'form' | 'button';
@@ -239,6 +242,7 @@ export interface DependencyGraphProps<NodeData, EdgeData>
acyclicer?: 'greedy';
// Warning: (ae-unresolved-link) The @link reference could not be resolved: This type of declaration is not supported yet by the resolver
align?: Alignment;
curve?: Curve;
defs?: SVGDefsElement | SVGDefsElement[];
// Warning: (ae-unresolved-link) The @link reference could not be resolved: This type of declaration is not supported yet by the resolver
direction?: Direction;
@@ -269,6 +273,7 @@ declare namespace DependencyGraphTypes {
DependencyNode,
RenderNodeProps,
RenderNodeFunction,
Curve,
Direction,
Alignment,
Ranker,
@@ -76,6 +76,10 @@ export type RenderNodeFunction<T = {}> = (
) => React.ReactNode;
/**
* Graph curve factory
*
* @public
*
* @see {@link @types/d3-shape/index.d.ts#curveMonotoneX}
* @see {@link @types/d3-shape/index.d.ts#curveStepBefore}
*/
+5
View File
@@ -30,6 +30,7 @@ export const CatalogGraphPage: (props: {
mergeRelations?: boolean | undefined;
direction?: Direction | undefined;
showFilters?: boolean | undefined;
curve?: Curve | undefined;
}
| undefined;
}) => JSX.Element;
@@ -54,6 +55,9 @@ export const catalogGraphPlugin: BackstagePlugin<
// @public
export const catalogGraphRouteRef: RouteRef<undefined>;
// @public
export type Curve = 'curveStepBefore' | 'curveMonotoneX';
// @public
export enum Direction {
BOTTOM_TOP = 'BT',
@@ -119,6 +123,7 @@ export const EntityRelationsGraph: (props: {
renderLabel?:
| DependencyGraphTypes.RenderLabelFunction<EntityEdge>
| undefined;
curve?: Curve | undefined;
}) => JSX.Element;
// @public
@@ -41,7 +41,7 @@ describe('<CurveFilter/>', () => {
await waitFor(() => {
expect(getByText('Monotone X')).toBeInTheDocument();
expect(onChange).toBeCalledWith('curveMonotoneX');
expect(onChange).toHaveBeenCalledWith('curveMonotoneX');
});
});
});
@@ -110,6 +110,10 @@ export enum Direction {
}
/**
* Graph curve factory
*
* @public
*
* @see {@link @types/d3-shape/index.d.ts#curveMonotoneX}
* @see {@link @types/d3-shape/index.d.ts#curveStepBefore}
*/