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.

29 lines (28 loc) 1.14 kB
import { IFDragHandler } from '../../f-drag-handler'; import { FNodeOutletBase, FNodeOutputBase } from '../../../f-connectors'; import { IPoint } from '@foblex/2d'; import { Injector } from '@angular/core'; export declare class FCreateConnectionDragHandler implements IFDragHandler { private _fOutputOrOutlet; fEventType: string; fData: any; private readonly _fResult; private readonly _fMediator; private readonly _fComponentsStore; private readonly _toConnectorRect; private get _fConnection(); private get _fSnapConnection(); private _fOutputWithRect; private _canBeConnectedInputs; constructor(_injector: Injector, _fOutputOrOutlet: FNodeOutputBase | FNodeOutletBase, _onPointerDownPosition: IPoint); prepareDragSequence(): void; private _getAndMarkCanBeConnectedInputs; private _initializeSnapConnection; private _initializeConnectionForCreate; onPointerMove(difference: IPoint): void; private _drawConnectionForCreate; private _drawSnapConnection; private _findClosestInput; private _getClosestInputForSnapConnection; onPointerUp(): void; }