Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
key: 'sliceTooltip',
flavors: ['svg', 'canvas'],
group: 'Interactivity',
help: `Custom slice tooltip`,
type: 'Function',
required: false,
},
{
key: 'enableCrosshair',
flavors: ['svg'],
group: 'Interactivity',
help: 'Enable/disable crosshair.',
type: 'boolean',
required: false,
controlType: 'switch',
defaultValue: defaults.enableCrosshair,
},
{
key: 'crosshairType',
flavors: ['svg'],
group: 'Interactivity',
required: false,
defaultValue: defaults.crosshairType,
help: `Crosshair type, forced to slices axis if enabled.`,
type: 'string',
controlType: 'choices',
controlOptions: {
disabled: true,
choices: [
'x',
'y',
'top-left',