-
-
Notifications
You must be signed in to change notification settings - Fork 1k
/
index.d.ts
42 lines (30 loc) · 1.02 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import * as React from 'react'
import { Dimensions, Box, Theme } from '@nivo/core'
declare module '@nivo/voronoi' {
export interface VoronoiDatum {
id: string | number
x: number
y: number
}
export type VoronoiDomain = [number, number]
export type VoronoiCustomLayer = (...args: any[]) => React.ReactNode
export interface VoronoiProps {
data: VoronoiDatum[]
xDomain?: VoronoiDomain
yDomain?: VoronoiDomain
layers?: ('links' | 'cells' | 'points' | 'bounds' | VoronoiCustomLayer)[]
theme?: Theme
margin?: Box
enableLinks?: boolean
linkLineWidth?: number
linkLineColor?: string
enableCells?: boolean
cellLineWidth?: number
cellLineColor?: string
enablePoints?: boolean
pointSize?: number
pointColor?: string
}
export class Voronoi extends React.Component<VoronoiProps & Dimensions> {}
export class ResponsiveVoronoi extends React.Component<VoronoiProps> {}
}