Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/artem-mangilev/ngx-vflow
/ functions
Functions
398 in github.com/artem-mangilev/ngx-vflow
⨍
Functions
398
◇
Types & classes
425
↓ 49 callers
Function
isDefined
(data: T | undefined)
projects/ngx-vflow-lib/src/lib/vflow/utils/is-defined.ts:1
↓ 26 callers
Method
model
()
projects/ngx-vflow-lib/src/lib/vflow/directives/drag-handle.directive.ts:14
↓ 26 callers
Method
nodes
(newNodes: Node[])
projects/ngx-vflow-lib/src/lib/vflow/components/vflow/vflow.component.ts:312
↓ 19 callers
Function
smoothStepPath
( { sourcePoint, targetPoint, sourcePosition, targetPosition }: CurveFactoryParams, borderRadius: number =
projects/ngx-vflow-lib/src/lib/vflow/math/edge-path/smooth-step-path.ts:184
↓ 15 callers
Function
createModel
(params: { id: string; type?: 'default' | 'default-group'; selected?: boolean; draggable?: boo
projects/ngx-vflow-lib/src/lib/vflow/services/draggable.service.spec.ts:45
↓ 14 callers
Function
align
(num: number, constant: number)
projects/ngx-vflow-lib/src/lib/vflow/utils/align-number.ts:1
↓ 12 callers
Function
createNode
( node: StaticNode<T>, options: CreateNodeOptions = { useDefaults: true }, )
projects/ngx-vflow-lib/src/lib/vflow/interfaces/node.interface.ts:157
↓ 12 callers
Method
edges
(newEdges: Edge[])
projects/ngx-vflow-lib/src/lib/vflow/components/vflow/vflow.component.ts:336
↓ 11 callers
Function
createParams
( sourcePoint = { x: 100, y: 200 }, targetPoint = { x: 400, y: 200 }, sourcePosition: 'top' | 'bot
projects/ngx-vflow-lib/src/lib/vflow/math/edge-path/smooth-step-path.spec.ts:6
↓ 9 callers
Function
allowRootZoomForNodeTarget
(event: Event, isSelectionKeyboardMode: boolean)
projects/ngx-vflow-lib/src/lib/vflow/utils/allow-root-zoom-for-node-target.ts:5
↓ 9 callers
Method
connection
(connection: ConnectionModel)
projects/ngx-vflow-lib/src/lib/vflow/components/vflow/vflow.component.ts:266
↓ 9 callers
Function
getPointOnLineByRatio
(start: Point, end: Point, ratio: number)
projects/ngx-vflow-lib/src/lib/vflow/math/point-on-line-by-ratio.ts:8
↓ 8 callers
Method
batchAnimationFrame
(callback: () => void)
projects/ngx-vflow-lib/src/lib/vflow/services/request-animation-frame-batching.service.ts:8
↓ 8 callers
Function
scalePoint
(point: Point, scale: number)
projects/ngx-vflow-demo/src/app/categories/cookbook/rope-curve/demo/rope-curve-demo.component.ts:391
↓ 6 callers
Method
getDragBehavior
* Node drag behavior. Updated node's coordinate according to dragging * * @param model * @returns
projects/ngx-vflow-lib/src/lib/vflow/services/draggable.service.ts:68
↓ 6 callers
Function
hashCode
(str: string)
projects/ngx-vflow-lib/src/lib/vflow/utils/hash.ts:1
↓ 6 callers
Method
isActiveAction
(action: KeyboardAction)
projects/ngx-vflow-lib/src/lib/vflow/services/keyboard.service.ts:70
↓ 6 callers
Method
model
()
projects/ngx-vflow-lib/src/lib/vflow/public-components/resizable/resizable.component.ts:67
↓ 6 callers
Function
nodeToRect
(node: NodeModel)
projects/ngx-vflow-lib/src/lib/vflow/utils/nodes.ts:51
↓ 6 callers
Function
randomHex
()
projects/ngx-vflow-demo/src/app/categories/cookbook/force/demo/force-layout-demo.component.ts:140
↓ 6 callers
Method
setPoint
(point: Point)
projects/ngx-vflow-lib/src/lib/vflow/models/node.model.ts:250
↓ 5 callers
Function
addPoints
(a: Point, b: Point)
projects/ngx-vflow-demo/src/app/categories/cookbook/rope-curve/demo/rope-curve-demo.component.ts:384
↓ 5 callers
Function
createEdge
( edge: StaticEdge<T>, options: CreateEdgeOptions = { useDefaults: true }, )
projects/ngx-vflow-lib/src/lib/vflow/interfaces/edge.interface.ts:47
↓ 5 callers
Method
getDragNodes
(model: NodeModel)
projects/ngx-vflow-lib/src/lib/vflow/services/draggable.service.ts:129
↓ 5 callers
Method
nodeChangesOfType
(type: T)
projects/ngx-vflow-lib/src/lib/vflow/directives/changes-controller.directive.ts:76
↓ 5 callers
Method
optimization
(newOptimization: Optimization)
projects/ngx-vflow-lib/src/lib/vflow/components/vflow/vflow.component.ts:214
↓ 5 callers
Method
updateHost
()
projects/ngx-vflow-lib/src/lib/vflow/models/handle.model.ts:130
↓ 4 callers
Method
addObserver
(element: Element, callback: (resizeEntry: ResizeObserverEntry) => void)
projects/ngx-vflow-lib/src/lib/vflow/services/resize-observer.service.ts:23
↓ 4 callers
Function
clamp
(value: number, min: number, max: number)
projects/ngx-vflow-demo/src/app/categories/cookbook/rope-curve/demo/rope-curve-demo.component.ts:365
↓ 4 callers
Method
clearPreselection
()
projects/ngx-vflow-lib/src/lib/vflow/directives/selection-box-context.directive.ts:133
↓ 4 callers
Method
edgeChangesOfType
(type: T)
projects/ngx-vflow-lib/src/lib/vflow/directives/changes-controller.directive.ts:83
↓ 4 callers
Function
edgeFactor
(distance: number)
projects/ngx-vflow-lib/src/lib/vflow/directives/auto-pan.directive.ts:121
↓ 4 callers
Method
entitiesSelectable
(value: boolean)
projects/ngx-vflow-lib/src/lib/vflow/components/vflow/vflow.component.ts:225
↓ 4 callers
Function
extendedComputed
( computedCallback: (currentValue: TValue) => TValue, options?: CreateComputedOptions<TValue>, )
projects/ngx-vflow-lib/src/lib/vflow/utils/signals/extended-computed.ts:29
↓ 4 callers
Function
lerpPoint
(a: Point, b: Point, ratio: number)
projects/ngx-vflow-demo/src/app/categories/cookbook/rope-curve/demo/rope-curve-demo.component.ts:369
↓ 4 callers
Method
onDestroy
()
projects/ngx-vflow-lib/src/lib/vflow/models/handle.model.ts:122
↓ 4 callers
Function
round
(num: number)
projects/ngx-vflow-lib/src/lib/vflow/utils/round.ts:1
↓ 4 callers
Method
select
(entity: FlowEntity | null, context: SelectionContext)
projects/ngx-vflow-lib/src/lib/vflow/interfaces/selection-strategy.interface.ts:17
↓ 4 callers
Function
subtractPoints
(a: Point, b: Point)
projects/ngx-vflow-demo/src/app/categories/cookbook/rope-curve/demo/rope-curve-demo.component.ts:377
↓ 3 callers
Method
applyEndpointPins
(sourcePoint: Point, targetPoint: Point)
projects/ngx-vflow-demo/src/app/categories/cookbook/rope-curve/demo/rope-curve-demo.component.ts:172
↓ 3 callers
Function
bezierPath
({ sourcePoint, targetPoint, sourcePosition, targetPosition, }: CurveFactoryParams)
projects/ngx-vflow-lib/src/lib/vflow/math/edge-path/bezier-path.ts:6
↓ 3 callers
Function
createEdges
( edges: StaticEdge<T>[], options: CreateEdgeOptions = { useDefaults: true }, )
projects/ngx-vflow-lib/src/lib/vflow/interfaces/edge.interface.ts:89
↓ 3 callers
Function
createNodes
( nodes: StaticNode<T>[], options: CreateNodeOptions = { useDefaults: true }, )
projects/ngx-vflow-lib/src/lib/vflow/interfaces/node.interface.ts:300
↓ 3 callers
Method
duration
(duration: number)
projects/ngx-vflow-lib/src/lib/vflow/directives/map-context.directive.ts:139
↓ 3 callers
Method
fitView
()
projects/ngx-vflow-demo/src/app/categories/cookbook/vizdom-layout/demo/vizdom-layout-demo.component.ts:68
↓ 3 callers
Function
getDistance
(a: Point, b: Point)
projects/ngx-vflow-demo/src/app/categories/cookbook/rope-curve/demo/rope-curve-demo.component.ts:323
↓ 3 callers
Function
getNodesFlowBounds
(nodes: NodeModel[])
projects/ngx-vflow-lib/src/lib/vflow/utils/nodes.ts:14
↓ 3 callers
Function
getPointOnBezier
* Get point on bezier curve by ratio
projects/ngx-vflow-lib/src/lib/vflow/math/edge-path/bezier-path.ts:86
↓ 3 callers
Method
getSourceHandlePoint
()
projects/ngx-vflow-demo/src/app/categories/cookbook/rope-curve/demo/rope-curve-demo.component.ts:245
↓ 3 callers
Method
getTargetHandlePoint
()
projects/ngx-vflow-demo/src/app/categories/cookbook/rope-curve/demo/rope-curve-demo.component.ts:253
↓ 3 callers
Function
isCallable
(type: StaticNode<T>['type'] | any)
projects/ngx-vflow-lib/src/lib/vflow/utils/is-callable.ts:3
↓ 3 callers
Function
isCustomNodeComponent
(type: any)
projects/ngx-vflow-lib/src/lib/vflow/utils/is-vflow-component.ts:3
↓ 3 callers
Function
isPointInRect
(point: Point, rect: Rect)
projects/ngx-vflow-lib/src/lib/vflow/utils/rect.ts:50
↓ 3 callers
Function
mapTransformToViewportState
(transform: ZoomTransform)
projects/ngx-vflow-lib/src/lib/vflow/directives/map-context.directive.ts:122
↓ 3 callers
Function
pointOnPolylineByRatio
(points: Point[], ratio: number)
projects/ngx-vflow-demo/src/app/categories/cookbook/rope-curve/demo/rope-curve-demo.component.ts:327
↓ 3 callers
Method
removeObserver
(element: Element)
projects/ngx-vflow-lib/src/lib/vflow/services/resize-observer.service.ts:34
↓ 3 callers
Method
selectionBox
(value: SelectionBoxSettings)
projects/ngx-vflow-lib/src/lib/vflow/components/vflow/vflow.component.ts:246
↓ 3 callers
Method
setIdleStatus
()
projects/ngx-vflow-lib/src/lib/vflow/services/flow-status.service.ts:127
↓ 3 callers
Function
straightPath
({ sourcePoint, targetPoint }: CurveFactoryParams)
projects/ngx-vflow-lib/src/lib/vflow/math/edge-path/straigh-path.ts:4
↓ 3 callers
Function
toLazySignal
( source: Observable<T> | Subscribable<T>, options?: ToSignalOptions<T> & { initialValue?: U }, )
projects/ngx-vflow-lib/src/lib/vflow/utils/signals/to-lazy-signal.ts:59
↓ 3 callers
Method
transition
()
projects/ngx-vflow-lib/src/lib/vflow/directives/map-context.directive.ts:138
↓ 2 callers
Function
addNodesToEdges
(nodes: NodeModel[], edges: EdgeModel[])
projects/ngx-vflow-lib/src/lib/vflow/utils/add-nodes-to-edges.ts:4
↓ 2 callers
Function
adjustDirection
(connection: ConnectionInternal)
projects/ngx-vflow-lib/src/lib/vflow/utils/adjust-direction.ts:8
↓ 2 callers
Method
background
(value: Background | string)
projects/ngx-vflow-lib/src/lib/vflow/components/vflow/vflow.component.ts:209
↓ 2 callers
Function
borderRadius
(ctx: CanvasRenderingContext2D, node: NodeModel, radius: number)
projects/ngx-vflow-lib/src/lib/vflow/components/preview-flow/draw-node.ts:105
↓ 2 callers
Function
buildFallbackSamples
(sourcePoint: Point, targetPoint: Point)
projects/ngx-vflow-demo/src/app/categories/cookbook/rope-curve/demo/rope-curve-demo.component.ts:295
↓ 2 callers
Function
calcControlPoint
* Calculate control point based on provided point * * @param point relative this point control point is gonna be computed (the source or the target)
projects/ngx-vflow-lib/src/lib/vflow/math/edge-path/bezier-path.ts:30
↓ 2 callers
Method
clearDrag
(element: Element)
projects/ngx-vflow-lib/src/lib/vflow/services/draggable.service.ts:55
↓ 2 callers
Function
distance
(a: Point, b: Point)
projects/ngx-vflow-lib/src/lib/vflow/math/edge-path/smooth-step-path.ts:37
↓ 2 callers
Method
documentPointToFlowPoint
(documentPoint: Point)
projects/ngx-vflow-lib/src/lib/vflow/directives/selection-box-context.directive.ts:96
↓ 2 callers
Method
documentPointToFlowPoint
(point: Point, options?: { spaces: boolean })
projects/ngx-vflow-lib/src/lib/vflow/components/vflow/vflow.component.ts:498
↓ 2 callers
Function
dot
(a: Point, b: Point)
projects/ngx-vflow-demo/src/app/categories/cookbook/rope-curve/demo/rope-curve-demo.component.ts:398
↓ 2 callers
Method
elevateEdgesOnSelect
(value: boolean)
projects/ngx-vflow-lib/src/lib/vflow/components/vflow/vflow.component.ts:294
↓ 2 callers
Function
getBoundsOfRects
(rects: Rect[])
projects/ngx-vflow-lib/src/lib/vflow/utils/rect.ts:54
↓ 2 callers
Method
getContext
()
projects/ngx-vflow-lib/src/lib/vflow/components/connection/connection.component.ts:122
↓ 2 callers
Method
getDefaultViewport
* The default value used by d3, just copy it here * * @returns default viewport value
projects/ngx-vflow-lib/src/lib/vflow/services/viewport.service.ts:21
↓ 2 callers
Method
getIntesectingNodes
* Gets nodes that intersect with the specified node * * @template T - The type of data associated with the nodes * @param nodeId - The ID of
projects/ngx-vflow-lib/src/lib/vflow/components/vflow/vflow.component.ts:516
↓ 2 callers
Function
getNodesBounds
(nodes: NodeModel[])
projects/ngx-vflow-lib/src/lib/vflow/utils/nodes.ts:6
↓ 2 callers
Function
getOS
()
projects/ngx-vflow-lib/src/lib/vflow/utils/get-os.ts:1
↓ 2 callers
Function
getOppositePostion
(position: Position)
projects/ngx-vflow-lib/src/lib/vflow/components/connection/connection.component.ts:149
↓ 2 callers
Method
getPathFactoryParams
( sourcePoint: Point, targetPoint: Point, sourcePosition: Position, targetPosition: Position,
projects/ngx-vflow-lib/src/lib/vflow/components/connection/connection.component.ts:131
↓ 2 callers
Function
getPointAtRatio
(ratio: number)
projects/ngx-vflow-lib/src/lib/vflow/math/edge-path/smooth-step-path.ts:240
↓ 2 callers
Method
getSelectionRect
()
projects/ngx-vflow-lib/src/lib/vflow/directives/selection-box-context.directive.ts:100
↓ 2 callers
Function
getSpacePoints
(point: Point, groups: NodeModel[])
projects/ngx-vflow-lib/src/lib/vflow/utils/get-space-points.ts:12
↓ 2 callers
Function
getVelocity
(previousPoint: Point, currentPoint: Point, dt: number)
projects/ngx-vflow-demo/src/app/categories/cookbook/rope-curve/demo/rope-curve-demo.component.ts:402
↓ 2 callers
Function
getViewportForBounds
( bounds: Rect, width: number, height: number, minZoom: number, maxZoom: number, padding: number,
projects/ngx-vflow-lib/src/lib/vflow/utils/viewport.ts:5
↓ 2 callers
Method
initializeRope
(sourcePoint: Point, targetPoint: Point)
projects/ngx-vflow-demo/src/app/categories/cookbook/rope-curve/demo/rope-curve-demo.component.ts:150
↓ 2 callers
Function
isGroupNode
(node: NodeModel)
projects/ngx-vflow-lib/src/lib/vflow/utils/is-group-node.ts:3
↓ 2 callers
Function
isNodeDragStartStatus
(params: FlowStatus)
projects/ngx-vflow-lib/src/lib/vflow/services/flow-status.service.ts:237
↓ 2 callers
Function
isNodeDragStatus
(params: FlowStatus)
projects/ngx-vflow-lib/src/lib/vflow/services/flow-status.service.ts:241
↓ 2 callers
Function
isSelectionBoxEndStatus
(params: FlowStatus)
projects/ngx-vflow-lib/src/lib/vflow/services/flow-status.service.ts:249
↓ 2 callers
Method
layout
* Method that responsible to layout and render passed nodes and edges
projects/ngx-vflow-demo/src/app/categories/cookbook/vizdom-layout/demo/vizdom-layout-demo.component.ts:78
↓ 2 callers
Method
maxZoom
(value: number)
projects/ngx-vflow-lib/src/lib/vflow/components/vflow/vflow.component.ts:201
↓ 2 callers
Method
minZoom
(value: number)
projects/ngx-vflow-lib/src/lib/vflow/components/vflow/vflow.component.ts:193
↓ 2 callers
Function
mockModel
()
projects/ngx-vflow-lib/testing/src/provide-custom-node-mocks.ts:18
↓ 2 callers
Method
moveNode
* @todo make it unit testable
projects/ngx-vflow-lib/src/lib/vflow/services/draggable.service.ts:158
↓ 2 callers
Function
randomHex
()
projects/ngx-vflow-demo/src/app/categories/cookbook/vizdom-layout/demo/vizdom-layout-demo.component.ts:130
↓ 2 callers
Function
rectToSides
(rect: Rect)
projects/ngx-vflow-lib/src/lib/vflow/utils/rect.ts:16
↓ 2 callers
Function
rectsIntersect
(rectA: Rect, rectB: Rect)
projects/ngx-vflow-lib/src/lib/vflow/utils/rect.ts:25
↓ 2 callers
Method
reset
()
projects/ngx-vflow-lib/src/lib/vflow/models/selection-box.model.ts:31
next →
1–100 of 398, ranked by callers