Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
width: {number},
height: {number},
color: {string},
opacity: {number},
borderWidth: {number},
borderColor: {string},
textColor: {string},
}
`}
),
help: `Cell shape, can be one of: 'rect', 'circle', if a function is provided, it must return a valid SVG element.`,
type: '{string|Function}',
required: false,
default: defaults.cellShape,
controlType: 'choices',
controlGroup: 'Style',
controlOptions: {
choices: ['rect', 'circle', 'Custom(props) => (…)'].map(key => ({
label: key,
value: key,
})),
},
},
{
key: 'colors',
scopes: '*',
description: 'Defines color range.',
type: '{string|Function|Array}',
required: false,
default: 'nivo',
value: number,
x: number,
y: number,
width: number,
height: number,
color: string,
opacity: number,
borderWidth: number,
borderColor: string,
textColor: string,
}
\`\`\`
`,
type: 'string | Function',
required: false,
defaultValue: defaults.cellShape,
controlType: 'choices',
group: 'Style',
controlOptions: {
choices: ['rect', 'circle', 'Custom(props) => (…)'].map(key => ({
label: key,
value: key,
})),
},
},
{
key: 'colors',
help: 'Defines color range.',
type: 'string | Function | string[]',
required: false,
defaultValue: 'nivo',
controlType: 'quantizeColors',