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) 581 B
import { IMinMaxPoint, IPoint } from '@foblex/2d'; import { Injector } from '@angular/core'; export declare class PointBoundsLimiter { private _onPointerDown; private readonly _limit; private readonly _fComponentsStore; private readonly _vCellSize; private readonly _hCellSize; constructor(_injector: Injector, _onPointerDown: IPoint, _limit: IMinMaxPoint); limit(difference: IPoint, adjustCellSize: boolean): IPoint; private _cellSizeStrategies; private _applyCellSize; private _skipCellSize; private _clamp; private _snapToGrid; }