Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
feat(treemap): migrate the package to TypeScript
- Loading branch information
Showing
32 changed files
with
1,233 additions
and
963 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { ResponsiveWrapper } from '@nivo/core' | ||
import { DefaultTreeMapDatum, TreeMapDatum, TreeMapSvgProps } from './types' | ||
import { TreeMap } from './TreeMap' | ||
|
||
export const ResponsiveTreeMap = <Datum extends TreeMapDatum = DefaultTreeMapDatum>( | ||
props: Omit<TreeMapSvgProps<Datum>, 'height' | 'width'> | ||
) => ( | ||
<ResponsiveWrapper> | ||
{({ width, height }) => <TreeMap<Datum> width={width} height={height} {...props} />} | ||
</ResponsiveWrapper> | ||
) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { ResponsiveWrapper } from '@nivo/core' | ||
import { DefaultTreeMapDatum, TreeMapDatum, TreeMapCanvasProps } from './types' | ||
import { TreeMapCanvas } from './TreeMapCanvas' | ||
|
||
export const ResponsiveTreeMapCanvas = <Datum extends TreeMapDatum = DefaultTreeMapDatum>( | ||
props: Omit<TreeMapCanvasProps<Datum>, 'height' | 'width'> | ||
) => ( | ||
<ResponsiveWrapper> | ||
{({ width, height }) => <TreeMapCanvas<Datum> width={width} height={height} {...props} />} | ||
</ResponsiveWrapper> | ||
) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { ResponsiveWrapper } from '@nivo/core' | ||
import { DefaultTreeMapDatum, TreeMapDatum, TreeMapHtmlProps } from './types' | ||
import { TreeMapHtml } from './TreeMapHtml' | ||
|
||
export const ResponsiveTreeMapHtml = <Datum extends TreeMapDatum = DefaultTreeMapDatum>( | ||
props: Omit<TreeMapHtmlProps<Datum>, 'height' | 'width'> | ||
) => ( | ||
<ResponsiveWrapper> | ||
{({ width, height }) => <TreeMapHtml<Datum> width={width} height={height} {...props} />} | ||
</ResponsiveWrapper> | ||
) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.