react-native-leader-line
Version:
React Native port of leader-line library for drawing arrow lines and connectors
32 lines • 1.96 kB
JavaScript
// Main components
export { LeaderLine } from "./components/LeaderLine";
export { LeaderLineClass } from "./components/LeaderLineClass";
// Performance-optimized components
export { default as MemoizedLabel } from "./components/MemoizedLabel";
export { default as MemoizedPath } from "./components/MemoizedPath";
// Imperative API (leader-line compatibility)
export { LeaderLineImperative, createLeaderLine as createImperativeLeaderLine, LEADER_LINE_VERSION } from "./components/LeaderLineImperative";
// Hooks
export { useAttachment } from "./hooks/useAttachment";
export { useLeaderLine } from "./hooks/useLeaderLine";
export { useLeaderLineAnimation } from "./hooks/useLeaderLineAnimation";
export { useLeaderLineManager } from "./hooks/useLeaderLineManager";
export { useMultipleLabels } from "./hooks/useMultipleLabels";
export { useImperativeLeaderLine, useLeaderLineCompatibility } from "./hooks/useImperativeLeaderLine";
// Utility functions (matching original leader-line API)
export { areaAnchor,
// Math utilities
calculateConnectionPoints, calculatePathBoundingBox, calculatePathBoundingBoxWithOutline, createEnhancedPlugPath, createPlugPath, generateDashArray, generateEnhancedPathData, generatePathData, getAngle, getDistance, getSocketPoint, mouseHoverAnchor, normalizeOutlineOptions, normalizePlugOutlineOptions,
// Anchor functions (original API compatibility)
pointAnchor, } from "./utils/math";
// Import required types for the helper function
import { LeaderLineClass } from "./components/LeaderLineClass";
// Helper function for original API compatibility
export const createLeaderLine = (start, end, options = {}) => {
return new LeaderLineClass(start, end, options);
};
// Default export (main component for easy importing)
export { LeaderLine as default } from "./components/LeaderLine";
// Version tracking for development
export { LIBRARY_VERSION, VERSION_NOTES, BUILD_TIMESTAMP } from "./version";
//# sourceMappingURL=index.js.map