UNPKG

@foblex/flow

Version:

An Angular library designed to simplify the creation and manipulation of dynamic flow. Provides components for flows, nodes, and connections, automating node manipulation and inter-node connections.

17 lines (16 loc) 734 B
import { IPoint } from '@foblex/2d'; import { IFDragHandler } from '../f-drag-handler'; import { FNodeBase } from '../../f-node'; import { BaseConnectionDragHandler } from './connection-drag-handlers'; export declare class FNodeMoveDragHandler implements IFDragHandler { fNode: FNodeBase; fSourceHandlers: BaseConnectionDragHandler[]; fTargetHandlers: BaseConnectionDragHandler[]; readonly fEventType = "move-node"; private readonly _onPointerDownPosition; constructor(fNode: FNodeBase, fSourceHandlers?: BaseConnectionDragHandler[], fTargetHandlers?: BaseConnectionDragHandler[]); onPointerMove(difference: IPoint): void; private _calculateNewPosition; private _redraw; onPointerUp(): void; }