Skip to content

Commit

Permalink
feat: export helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
sasza2 committed Apr 14, 2024
1 parent 006645a commit 541ba96
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "arrows-svg",
"version": "1.8.0",
"version": "1.8.1",
"description": "SVG arrow between two HTML elements",
"keywords": [
"arrow",
Expand Down
5 changes: 4 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@ assignArrowCreate(window);
export default arrowCreate;
export { arrowCreate }
export { DIRECTION } from './consts';
export { HEAD } from './head';
export { castToAnchor } from './anchor';
export { default as arrowVector } from './arrowVector';
export { headTransformCSS, HeadWithPoint, HEAD } from './head';
export { IArrow, IArrowComponentProps, IArrowProps } from './interfaces/IArrow';
export { default as observer } from './observer/observer';
4 changes: 1 addition & 3 deletions src/interfaces/IArrow.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { RefObject } from 'preact'

import { Anchor } from '../anchor';
import { HeadFactory, HeadFactoryList } from '../head';

Expand All @@ -21,6 +19,6 @@ export interface IArrowComponentProps {
head?: HeadFactory | HeadFactoryList,
from: Anchor,
to: Anchor,
forwardRef?: RefObject<SVGSVGElement>,
forwardRef?: { current: SVGSVGElement | null },
updateDelay?: number,
}

0 comments on commit 541ba96

Please sign in to comment.