Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
},
{
key: 'borderColor',
help: 'Method to compute border color.',
type: 'string | object | Function',
required: false,
defaultValue: defaults.borderColor,
controlType: 'inheritedColor',
group: 'Style',
},
{
key: 'enableRadialLabels',
help: 'Enable/disable radial labels.',
type: 'boolean',
required: false,
defaultValue: defaults.enableRadialLabels,
controlType: 'switch',
group: 'Radial labels',
},
{
key: 'radialLabel',
help: 'Radial label',
description: `
Defines how to get label text,
can be a string (used to access current node data property)
or a function which will receive the actual node data.
`,
type: 'string | Function',
required: false,
defaultValue: 'id',
controlType: 'choices',
group: 'Radial labels',