How to use the @nivo/voronoi.VoronoiDefaultProps.enableCells 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: 'linkLineColor',
        help: 'Links color.',
        type: 'string',
        required: false,
        defaultValue: defaults.linkLineColor,
        controlType: 'colorPicker',
        group: 'Links',
    },
    {
        key: 'enableCells',
        help: 'Enable/disable cells.',
        type: 'boolean',
        required: false,
        defaultValue: defaults.enableCells,
        controlType: 'switch',
        group: 'Cells',
    },
    {
        key: 'cellLineWidth',
        help: 'Border width for cells.',
        type: 'number',
        required: false,
        defaultValue: defaults.cellLineWidth,
        controlType: 'lineWidth',
        group: 'Cells',
    },
    {
        key: 'cellLineColor',
        help: 'Border color for cells.',
        type: 'string',
github plouc / nivo / website / src / components / charts / voronoi / props.js View on Github external
key: 'linkLineColor',
        description: 'Links color.',
        type: '{string}',
        required: false,
        default: defaults.linkLineColor,
        controlType: 'colorPicker',
        controlGroup: 'Links',
    },

    {
        key: 'enableCells',
        scopes: '*',
        description: 'Enable/disable cells.',
        type: '{boolean}',
        required: false,
        default: defaults.enableCells,
        controlType: 'switch',
        controlGroup: 'Cells',
    },
    {
        key: 'cellLineWidth',
        description: 'Border width for cells (px).',
        type: '{number}',
        required: false,
        default: defaults.cellLineWidth,
        controlType: 'range',
        controlGroup: 'Cells',
        controlOptions: {
            unit: 'px',
            min: 0,
            max: 12,
            step: 1,