chore(edges): remove group type
This commit is contained in:
@@ -10,7 +10,6 @@ import {
|
|||||||
type PanZoomInstance,
|
type PanZoomInstance,
|
||||||
type CoordinateExtent,
|
type CoordinateExtent,
|
||||||
type IsValidConnection,
|
type IsValidConnection,
|
||||||
type GroupedEdges,
|
|
||||||
type NodeOrigin,
|
type NodeOrigin,
|
||||||
type OnError,
|
type OnError,
|
||||||
devWarn,
|
devWarn,
|
||||||
|
|||||||
@@ -23,12 +23,6 @@ export function getEdgeCenter({
|
|||||||
return [centerX, centerY, xOffset, yOffset];
|
return [centerX, centerY, xOffset, yOffset];
|
||||||
}
|
}
|
||||||
|
|
||||||
export type GroupedEdges<EdgeType extends EdgeBase> = {
|
|
||||||
edges: EdgeType[];
|
|
||||||
level: number;
|
|
||||||
isMaxLevel: boolean;
|
|
||||||
};
|
|
||||||
|
|
||||||
export function adjustEdgeZIndex(edge: EdgeBase, nodeLookup: Map<string, NodeBase>, elevateEdgesOnSelect: boolean) {
|
export function adjustEdgeZIndex(edge: EdgeBase, nodeLookup: Map<string, NodeBase>, elevateEdgesOnSelect: boolean) {
|
||||||
const hasZIndex = isNumeric(edge.zIndex);
|
const hasZIndex = isNumeric(edge.zIndex);
|
||||||
let z = hasZIndex ? edge.zIndex! : 0;
|
let z = hasZIndex ? edge.zIndex! : 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user