Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
raw
history blame
627 Bytes
import { ChordSvgProps } from '@nivo/chord'
import { settingsMapper, UnmappedSettings } from '../../../lib/settings'
import { mapLegends } from '../../../lib/property-mappers'
export type MappedChordProps = Omit<ChordSvgProps, 'data' | 'keys' | 'width' | 'height' | 'layers'>
export type UnmappedChordProps = UnmappedSettings<
MappedChordProps,
{
label: string
}
>
export default settingsMapper<UnmappedChordProps, MappedChordProps>({
label: value => {
if (value === `d => \`\${d.id} [\${d.value}]\``) return d => `${d.id} [${d.value}]`
return value
},
legends: mapLegends,
})