Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
defaultValue: defaults.enableArea,
controlType: 'switch',
group: 'Style',
},
{
key: 'areaBaselineValue',
help: 'Define the value to be used for area baseline.',
description: `
Define the value to be used for area baseline.
Please note that this value isn't the
position of the baseline but the value used
to compute it.
`,
type: 'number | string | Date',
required: false,
defaultValue: defaults.areaBaselineValue,
controlType: 'range',
group: 'Style',
controlOptions: {
min: 0,
max: 200,
step: 10,
},
},
{
key: 'areaOpacity',
help: 'Area opacity (0~1), depends on enableArea.',
required: false,
defaultValue: defaults.areaOpacity,
type: 'number',
controlType: 'opacity',
group: 'Style',