78 lines
1.6 KiB
TypeScript
78 lines
1.6 KiB
TypeScript
/**
|
|
* Vue Flow
|
|
* @module vue-flow
|
|
*/
|
|
|
|
export { default as VueFlow } from './container/VueFlow/VueFlow.vue'
|
|
|
|
export { default as Handle } from './components/Handle/Handle.vue'
|
|
|
|
export { default as Panel } from './components/Panel/Panel.vue'
|
|
|
|
export {
|
|
StraightEdge,
|
|
StepEdge,
|
|
BezierEdge,
|
|
SimpleBezierEdge,
|
|
SmoothStepEdge,
|
|
BaseEdge,
|
|
EdgeText,
|
|
EdgeLabelRenderer,
|
|
} from './components/Edges'
|
|
|
|
export {
|
|
getBezierPath,
|
|
getSimpleBezierPath,
|
|
getSmoothStepPath,
|
|
getStraightPath,
|
|
getSimpleEdgeCenter,
|
|
getBezierEdgeCenter,
|
|
} from './components/Edges/utils'
|
|
|
|
export {
|
|
isNode,
|
|
isEdge,
|
|
isGraphNode,
|
|
isGraphEdge,
|
|
addEdge,
|
|
updateEdge,
|
|
getOutgoers,
|
|
getIncomers,
|
|
getConnectedEdges,
|
|
getTransformForBounds,
|
|
getRectOfNodes,
|
|
pointToRendererPoint,
|
|
rendererPointToPoint,
|
|
/** @deprecated will be removed in the next major version, use `rendererPointToPoint` instead */
|
|
rendererPointToPoint as graphPosToZoomedPos,
|
|
getNodesInside,
|
|
getMarkerId,
|
|
getBoundsofRects,
|
|
connectionExists,
|
|
clamp,
|
|
} from './utils/graph'
|
|
|
|
/**
|
|
* Intended for options API
|
|
* In composition API you can access apply utilities from `useVueFlow`
|
|
*/
|
|
export { applyChanges, applyEdgeChanges, applyNodeChanges } from './utils/changes'
|
|
|
|
export { defaultEdgeTypes, defaultNodeTypes } from './store/state'
|
|
|
|
export { VueFlow as VueFlowInjection, NodeId as NodeIdInjection } from './context'
|
|
|
|
export {
|
|
useZoomPanHelper,
|
|
useVueFlow,
|
|
Storage as GlobalVueFlowStorage,
|
|
useHandle,
|
|
useNode,
|
|
useEdge,
|
|
useGetPointerPosition,
|
|
} from './composables'
|
|
|
|
export { VueFlowError, ErrorCode } from './utils/errors'
|
|
|
|
export * from './types'
|