chore(system): rename BaseNode/BaseEdge types to NodeBase/EdgeBase

This commit is contained in:
moklick
2023-06-13 16:54:26 +02:00
parent 65d1c3bbd4
commit 9dfec49ed5
25 changed files with 499 additions and 550 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ import {
type HandleType,
type Connection,
type PanBy,
type BaseNode,
type NodeBase,
type Transform,
type ConnectingHandle,
type OnConnectEnd,
@@ -25,7 +25,7 @@ export type OnPointerDownParams = {
handleId: string | null;
nodeId: string;
isTarget: boolean;
nodes: BaseNode[];
nodes: NodeBase[];
lib: string;
edgeUpdaterType?: HandleType;
updateConnection: UpdateConnection;
+3 -3
View File
@@ -3,7 +3,7 @@ import {
type HandleType,
type NodeHandleBounds,
type XYPosition,
type BaseNode,
type NodeBase,
type ConnectionHandle,
} from '../types';
import { internalsSymbol } from '../constants';
@@ -11,7 +11,7 @@ import { internalsSymbol } from '../constants';
// this functions collects all handles and adds an absolute position
// so that we can later find the closest handle to the mouse position
export function getHandles(
node: BaseNode,
node: NodeBase,
handleBounds: NodeHandleBounds,
type: HandleType,
currentHandle: string
@@ -62,7 +62,7 @@ export function getClosestHandle(
}
type GetHandleLookupParams = {
nodes: BaseNode[];
nodes: NodeBase[];
nodeId: string;
handleId: string | null;
handleType: string;