How to use the @nivo/voronoi.VoronoiDefaultProps.enablePoints function in @nivo/voronoi

To help you get started, we’ve selected a few @nivo/voronoi examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github plouc / nivo / website / src / data / components / voronoi / props.js View on Github external
},
    {
        key: 'cellLineColor',
        help: 'Border color for cells.',
        type: 'string',
        required: false,
        defaultValue: defaults.cellLineColor,
        controlType: 'colorPicker',
        group: 'Cells',
    },
    {
        key: 'enablePoints',
        help: 'Enable/disable points.',
        type: 'boolean',
        required: false,
        defaultValue: defaults.enablePoints,
        controlType: 'switch',
        group: 'Points',
    },
    {
        key: 'pointSize',
        help: 'Size of points.',
        type: 'number',
        required: false,
        defaultValue: defaults.siteSize,
        controlType: 'range',
        group: 'Points',
        controlOptions: {
            unit: 'px',
            min: 0,
            max: 12,
            step: 1,
github plouc / nivo / website / src / components / charts / voronoi / props.js View on Github external
{
        key: 'cellLineColor',
        description: 'Border color for cells.',
        type: '{string}',
        required: false,
        default: defaults.cellLineColor,
        controlType: 'colorPicker',
        controlGroup: 'Cells',
    },
    {
        key: 'enablePoints',
        scopes: '*',
        description: 'Enable/disable points.',
        type: '{boolean}',
        required: false,
        default: defaults.enablePoints,
        controlType: 'switch',
        controlGroup: 'Points',
    },
    {
        key: 'pointSize',
        description: 'Size of points (px).',
        type: '{number}',
        required: false,
        default: defaults.siteSize,
        controlType: 'range',
        controlGroup: 'Points',
        controlOptions: {
            unit: 'px',
            min: 0,
            max: 12,
            step: 1,