Files
xyflow/packages/svelte/src/lib/index.ts
T
2024-03-13 16:53:32 +01:00

121 lines
2.9 KiB
TypeScript

// main component
export { SvelteFlow } from '$lib/container/SvelteFlow';
export * from '$lib/container/SvelteFlow/types';
// components
export * from '$lib/container/Panel';
export * from '$lib/components/SvelteFlowProvider';
export * from '$lib/components/EdgeLabelRenderer';
export * from '$lib/components/ViewportPortal';
export * from '$lib/components/BaseEdge';
export { BezierEdge, StepEdge, SmoothStepEdge, StraightEdge } from '$lib/components/edges';
export * from '$lib/components/Handle';
export * from '$lib/components/EdgeLabel';
// plugins
export * from '$lib/plugins/Controls';
export * from '$lib/plugins/Background';
export * from '$lib/plugins/Minimap';
export * from '$lib/plugins/NodeToolbar';
export * from '$lib/plugins/NodeResizer';
// store
export { useStore } from '$lib/store';
// utils
export * from '$lib/utils';
//hooks
export * from '$lib/hooks/useSvelteFlow';
export * from '$lib/hooks/useUpdateNodeInternals';
export * from '$lib/hooks/useConnection';
export * from '$lib/hooks/useNodesEdges';
export * from '$lib/hooks/useHandleConnections';
export * from '$lib/hooks/useNodesData';
export { useInitialized, useNodesInitialized } from '$lib/hooks/useInitialized';
// types
export type {
Edge,
EdgeProps,
BezierEdgeProps,
SmoothStepEdgeProps,
StepEdgeProps,
StraightEdgeProps,
EdgeTypes,
DefaultEdgeOptions
} from '$lib/types/edges';
export type { HandleComponentProps, FitViewOptions } from '$lib/types/general';
export type { Node, NodeTypes, DefaultNodeOptions, BuiltInNode, NodeProps } from '$lib/types/nodes';
export type { SvelteFlowStore } from '$lib/store/types';
// system types
export {
type SmoothStepPathOptions,
type BezierPathOptions,
ConnectionLineType,
type EdgeMarker,
type EdgeMarkerType,
MarkerType,
type OnMove,
type OnMoveStart,
type OnMoveEnd,
type Connection,
type ConnectionStatus,
ConnectionMode,
type OnConnectStartParams,
type OnConnectStart,
type OnConnect,
type OnConnectEnd,
type Viewport,
type SnapGrid,
PanOnScrollMode,
type ViewportHelperFunctionOptions,
type SetCenterOptions,
type FitBoundsOptions,
type PanelPosition,
type ProOptions,
SelectionMode,
type SelectionRect,
type OnError,
type NodeOrigin,
type OnSelectionDrag,
Position,
type XYPosition,
type XYZPosition,
type Dimensions,
type Rect,
type Box,
type Transform,
type CoordinateExtent,
type ColorMode,
type ColorModeClass,
type ShouldResize,
type OnResizeStart,
type OnResize,
type OnResizeEnd,
type ControlPosition,
type ControlLinePosition,
type ResizeControlVariant
} from '@xyflow/system';
// system utils
export {
type GetBezierPathParams,
getBezierEdgeCenter,
getBezierPath,
getEdgeCenter,
type GetSmoothStepPathParams,
getSmoothStepPath,
type GetStraightPathParams,
getStraightPath,
getViewportForBounds,
getNodesBounds,
getIncomers,
getOutgoers,
getConnectedEdges,
addEdge,
updateEdge,
internalsSymbol
} from '@xyflow/system';