Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
),
},
{
key: 'labelTextColor',
scopes: '*',
description: (
<span>
how to compute label text color,{' '}
see dedicated documentation.
</span>
),
help: 'Method to compute label text color.',
type: '{string|Function}',
required: false,
default: defaults.labelTextColor,
controlType: 'color',
controlGroup: 'Labels',
controlOptions: {
withCustomColor: true,
},
},
{
key: 'labelSkipRadius',
scopes: '*',
description: 'Skip label rendering if node radius is lower than given value, 0 to disable.',
type: '{number}',
required: false,
default: defaults.labelSkipRadius,
controlType: 'range',
controlGroup: 'Labels',
controlOptions: {
description: `
How to format label,
[see d3.format() documentation](https://github.com/d3/d3-format/blob/master/README.md#format).
`,
type: 'string | Function',
},
{
key: 'labelTextColor',
help: 'Method to compute label text color.',
description: `
how to compute label text color,
[see dedicated documentation](self:/guides/colors).
`,
type: 'string | object | Function',
required: false,
defaultValue: defaults.labelTextColor,
controlType: 'inheritedColor',
group: 'Labels',
},
{
key: 'labelSkipRadius',
help: 'Skip label rendering if node radius is lower than given value, 0 to disable.',
type: 'number',
required: false,
defaultValue: defaults.labelSkipRadius,
controlType: 'range',
group: 'Labels',
controlOptions: {
unit: 'px',
min: 0,
max: 32,
},