Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
{
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',
'top',
'top-right',
'right',
'bottom-right',
'bottom',
'bottom-left',
'left',