Navigation Menu

Skip to content

Commit

Permalink
chore(core): export useMeasure in typings
Browse files Browse the repository at this point in the history
  • Loading branch information
hehex9 authored and plouc committed Jan 7, 2022
1 parent e0a0ffb commit 079770c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/core/index.d.ts
Expand Up @@ -379,6 +379,11 @@ declare module '@nivo/core' {
outerHeight: number
}

export function useMeasure(): [
React.RefObject<HTMLDivElement>,
{ left: number; top: number; width: number; height: number }
]

type SvgWrapperType = (
props: React.PropsWithChildren<{
width: number
Expand Down

0 comments on commit 079770c

Please sign in to comment.