refactor(svelte/react): cleanup exports
This commit is contained in:
@@ -1,22 +1,81 @@
|
||||
import { SvelteFlow } from '$lib/container/SvelteFlow';
|
||||
// main component
|
||||
export { SvelteFlow } from '$lib/container/SvelteFlow';
|
||||
export * from '$lib/container/SvelteFlow/types';
|
||||
|
||||
export * from '$lib/container/SvelteFlow';
|
||||
// components
|
||||
export * from '$lib/container/Panel';
|
||||
|
||||
export * from '$lib/components/SvelteFlowProvider';
|
||||
export * from '$lib/components/EdgeLabelRenderer';
|
||||
export * from '$lib/components/BaseEdge';
|
||||
export * from '$lib/components/Handle';
|
||||
|
||||
// plugins
|
||||
export * from '$lib/plugins/Controls';
|
||||
export * from '$lib/plugins/Background';
|
||||
export * from '$lib/plugins/Minimap';
|
||||
|
||||
export * from '$lib/types';
|
||||
// utils
|
||||
export * from '$lib/utils';
|
||||
|
||||
export * from '$lib/hooks/useSvelteFlow';
|
||||
|
||||
export * from '@xyflow/system';
|
||||
// types
|
||||
export type { Edge, EdgeProps, EdgeTypes, DefaultEdgeOptions } from '$lib/types/edges';
|
||||
export type { HandleComponentProps, FitViewOptions } from '$lib/types/general';
|
||||
export type { Node, NodeTypes, DefaultNodeOptions } from '$lib/types/nodes';
|
||||
|
||||
export default SvelteFlow;
|
||||
// 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 IsValidConnection,
|
||||
type Viewport,
|
||||
type SnapGrid,
|
||||
PanOnScrollMode,
|
||||
type ViewportHelperFunctionOptions,
|
||||
type SetCenterOptions,
|
||||
type FitBoundsOptions,
|
||||
type PanelPosition,
|
||||
type ProOptions,
|
||||
SelectionMode,
|
||||
type SelectionRect,
|
||||
type OnError,
|
||||
type NodeOrigin,
|
||||
type OnNodeDrag,
|
||||
type OnSelectionDrag,
|
||||
Position,
|
||||
type XYPosition,
|
||||
type XYZPosition,
|
||||
type Dimensions,
|
||||
type Rect,
|
||||
type Box,
|
||||
type Transform,
|
||||
type CoordinateExtent
|
||||
} from '@xyflow/system';
|
||||
|
||||
// system utils
|
||||
export {
|
||||
type GetBezierPathParams,
|
||||
getBezierEdgeCenter,
|
||||
getBezierPath,
|
||||
getEdgeCenter,
|
||||
type GetSmoothStepPathParams,
|
||||
getSmoothStepPath,
|
||||
type GetStraightPathParams,
|
||||
getStraightPath,
|
||||
getTransformForBounds,
|
||||
getRectOfNodes
|
||||
} from '@xyflow/system';
|
||||
|
||||
Reference in New Issue
Block a user