Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
default: 'Depends on device',
type: `{number}`,
controlType: 'range',
controlGroup: 'Base',
controlOptions: {
min: 1,
max: 2,
},
},
{
key: 'leavesOnly',
scopes: '*',
description: 'Only render leaf nodes (skip parent nodes).',
type: '{boolean}',
required: false,
default: defaults.leavesOnly,
controlType: 'switch',
controlGroup: 'Base',
},
{
key: 'padding',
scopes: '*',
description: (
<span>
sets the approximate padding between adjacent circles, in pixels. see{' '}
<a rel="noopener noreferrer" href="https://github.com/d3/d3-hierarchy#pack_padding">
official d3 documentation
</a></span>
required: false,
defaultValue: 'Depends on device',
type: `number`,
controlType: 'range',
group: 'Base',
controlOptions: {
min: 1,
max: 2,
},
},
{
key: 'leavesOnly',
help: 'Only render leaf nodes (skip parent nodes).',
type: 'boolean',
required: false,
defaultValue: defaults.leavesOnly,
controlType: 'switch',
group: 'Base',
},
{
key: 'margin',
help: 'Chart margin.',
type: 'object',
required: false,
controlType: 'margin',
group: 'Base',
},
{
key: 'padding',
help: 'Padding between each circle.',
description: `
Padding between adjacent circles.