refactor(utils): remove getMarkerEnd

This commit is contained in:
moklick
2023-06-12 12:09:48 +02:00
parent 811f6f008f
commit 82d8e91a09

View File

@@ -1,5 +1,5 @@
import { Transform, internalsSymbol } from '../..';
import { type MarkerType, BaseEdge, BaseNode } from '../../types';
import { BaseEdge, BaseNode } from '../../types';
import { isNumeric, getOverlappingArea, boxToRect, nodeToBox, getBoundsOfBoxes } from '../utils';
// this is used for straight edges and simple smoothstep edges (LTR, RTL, BTT, TTB)
@@ -23,14 +23,6 @@ export function getEdgeCenter({
return [centerX, centerY, xOffset, yOffset];
}
export const getMarkerEnd = (markerType?: MarkerType, markerEndId?: string): string => {
if (typeof markerEndId !== 'undefined' && markerEndId) {
return `url(#${markerEndId})`;
}
return typeof markerType !== 'undefined' ? `url(#react-flow__${markerType})` : 'none';
};
const defaultEdgeTree = [{ level: 0, isMaxLevel: true, edges: [] }];
export type GroupedEdges<EdgeType extends BaseEdge> = {