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.

22 lines (21 loc) 921 B
import { IMinMaxPoint, IPoint, IRect, ISize } from '@foblex/2d'; import { IFDragHandler } from '../index'; import { ILineAlignmentResult, LineService } from '../../f-line-alignment'; import { Injector } from '@angular/core'; export declare class FLineAlignmentDragHandler implements IFDragHandler { private _lineService; private _size; private _draggedNodeRect; private _rects; private _restrictions; readonly fEventType = "line-alignment"; private readonly _fComponentsStore; private _debounceTimer; private readonly _transform; constructor(_injector: Injector, _lineService: LineService, _size: ISize, _draggedNodeRect: IRect, _rects: IRect[], _restrictions: IMinMaxPoint); onPointerMove(difference: IPoint): void; private _drawIntersectingLines; private _getDifference; findNearestCoordinate(difference: IPoint): ILineAlignmentResult; onPointerUp(): void; }