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