Liking cljdoc? Tell your friends :D
ClojureScript only.

reagent-flow.core

A ClojureScript library that wraps ReactFlow

A ClojureScript library that wraps ReactFlow
raw docstring

add-edgecljs

(add-edge edge source)

Returns a vector of edges with edge added to the source.

Returns a vector of edges with `edge` added to the `source`.
sourceraw docstring

apply-edge-changescljs

(apply-edge-changes changes source)

Returns a vector of edges with changes applied to the source.

Returns a vector of edges with `changes` applied to the `source`.
sourceraw docstring

apply-node-changescljs

(apply-node-changes changes source)

Returns a vector of nodes with changes applied to the source.

Returns a vector of nodes with `changes` applied to the `source`.
sourceraw docstring

backgroundcljs

source

base-edgecljs

source

bezier-edgecljs

source

change-keyscljs

(change-keys m f)

Walks a map and replaces all keys by applying function to the keys.

Walks a map and replaces all keys by applying function to the keys.
sourceraw docstring

control-buttoncljs

source

controlscljs

source

edge-textcljs

source

FlowBaseEdgePropscljs

source

FlowBezierEdgePropscljs

source

FlowBezierPathOptionscljs

source

FlowBoxcljs

source

FlowConnectioncljs

source

FlowConnectionLineComponentcljs

source

FlowConnectionLineComponentPropscljs

source

FlowConnectionLineTypecljs

source

FlowConnectionModecljs

source

FlowCoordinateExtentcljs

source

FlowDefaultEdgeOptionscljs

source

FlowDimensionscljs

source

FlowEdgecljs

source

FlowEdgeAddChangecljs

source

FlowEdgeChangecljs

source

FlowEdgeMarkercljs

source

FlowEdgeMarkerTypecljs

source

FlowEdgeMouseHandlercljs

source

FlowEdgePropscljs

source

FlowEdgeRemoveChangecljs

source

FlowEdgeResetChangecljs

source

FlowEdgeSelectionChangecljs

source

FlowEdgeTextPropscljs

source

FlowEdgeTypescljs

source

FlowEdgeTypesWrappedcljs

source

FlowFitBoundscljs

source

FlowFitBoundsOptionscljs

source

FlowFitViewcljs

source

FlowFitViewOptionscljs

source

FlowGetViewportcljs

source

FlowGetZoomcljs

source

FlowHandlePropscljs

source

FlowHandleTypecljs

source

FlowInstancecljs

source

FlowKeyCodecljs

source

FlowMarkerTypecljs

source

FlowNodecljs

source

FlowNodeAddChangecljs

source

FlowNodeBoundscljs

source

FlowNodeChangecljs

source

FlowNodeDimensionChangecljs

source

FlowNodeDimensionUpdatecljs

source

FlowNodeDragHandlercljs

source

FlowNodeDragItemcljs

source

FlowNodeHandleBoundscljs

source

FlowNodeInternalscljs

source

FlowNodeMouseHandlercljs

source

FlowNodeOrigincljs

source

FlowNodePositionChangecljs

source

FlowNodePropscljs

source

FlowNodeRemoveChangecljs

source

FlowNodeResetChangecljs

source

FlowNodeSelectionChangecljs

source

FlowNodeTypescljs

source

FlowNodeTypesWrappedcljs

source

FlowOnConnectcljs

source

FlowOnConnectEndcljs

source

FlowOnConnectStartcljs

source

FlowOnConnectStartParamscljs

source

FlowOnEdgesChangecljs

source

FlowOnEdgesDeletecljs

source

FlowOnEdgeUpdateFunccljs

source

FlowOnInitcljs

source

FlowOnMovecljs

source

FlowOnMoveEndcljs

source

FlowOnMoveStartcljs

source

FlowOnNodesChangecljs

source

FlowOnNodesDeletecljs

source

FlowOnSelectionChangeFunccljs

source

FlowOnSelectionChangeParamscljs

source

FlowOnViewportChangecljs

source

FlowPanelPositioncljs

source

FlowPanOnScrollModecljs

source

FlowPositioncljs

source

FlowProjectcljs

source

FlowProOptionscljs

source

FlowReactFlowActionscljs

source

FlowReactFlowInstancecljs

source

FlowReactFlowJsonObjectcljs

source

FlowReactFlowPropscljs

source

FlowReactFlowRefTypecljs

source

FlowReactFlowStatecljs

source

FlowReactFlowStorecljs

source

FlowRectcljs

source

FlowSelectionDragHandlercljs

source

FlowSetCentercljs

source

FlowSetCenterOptionscljs

source

FlowSetViewportcljs

source

FlowSmoothStepEdgePropscljs

source

FlowSmoothStepPathOptionscljs

source

FlowSnapGridcljs

source

FlowStartHandlecljs

source

FlowTransformcljs

source

FlowUnselectNodesAndEdgesParamscljs

source

FlowUpdateNodeInternalscljs

source

FlowViewportcljs

source

FlowViewportHelperFunctionOptionscljs

source

FlowViewportHelperFunctionscljs

source

FlowWrapEdgePropscljs

source

FlowWrapNodePropscljs

source

FlowXYPositioncljs

source

FlowXYZPositioncljs

source

FlowZoomInOutcljs

source

FlowZoomTocljs

source

get-connections-by-node-idcljs

(get-connections-by-node-id connections id & which)

Returns a vector of connections where the node with id is either the source or the target.

Returns an empty vector if no connections are found.

Returns a vector of connections where the node with `id` is either
the source or the target.

Returns an empty vector if no connections are found.
sourceraw docstring

get-node-by-idcljs

(get-node-by-id nodes id)

Returns a map of the node with id from nodes. The returned map is supplemented with the keyword index.

Returns nil if the node is not found.

Returns a map of the node with `id` from `nodes`. 
The returned map is supplemented with the keyword `index`.

Returns `nil` if the node is not found.
sourceraw docstring

handlecljs

source

panelcljs

source

positioncljs

source

reagent-flowcljs

(reagent-flow params & children)

This is the main component of reagent-flow. It differs from ReactFlow in a few ways.

  • You pass regular Clojure data-structures to all paramaters, so vectors instead of arrays, maps instead of objects and so on.
  • Viewport events are baked in, so you use the events on-viewport-(change|start|end) to listen for changes in the Viewport.
  • reagent-flow-provider is also used, so if you need to have multiple flows on the same page, just be sure to give each of them a unique id.

Note! Node-types & edge-types are called directly from within ReactFlow, so the parameters returned are in their JavaScript-form. A nice pattern, is to only rely on the id from the parameters and do lookups in your state manually. Ex. (defn- custom-node [{:keys [id]}] (let [node (flow/get-node-by-id @nodes id) data (:data node)] [:p (:label data)])

This is the main component of `reagent-flow`. It differs from
`ReactFlow` in a few ways.

 - You pass regular Clojure data-structures to all paramaters, so
   vectors instead of arrays, maps instead of objects and so on.
 - Viewport events are baked in, so you use the events
   `on-viewport-(change|start|end)` to listen for changes in the
   Viewport.
 - reagent-flow-provider is also used, so if you need to have
   multiple flows on the same page, just be sure to give each of them a
   unique `id`.

 Note!
 Node-types & edge-types are called directly from within ReactFlow,
 so the parameters returned are in their JavaScript-form. A nice
 pattern, is to only rely on the `id` from the parameters and do
 lookups in your state manually.
 Ex.
 (defn- custom-node [{:keys [id]}]
   (let [node (flow/get-node-by-id @nodes id)
         data (:data node)]
     [:p (:label data)])
sourceraw docstring

simple-bezier-edgecljs

source

smooth-step-edgecljs

source

step-edgecljs

source

straight-edgecljs

source

use-update-node-internalscljs

source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close