Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const initialProperties = {
margin: {
top: 40,
right: 100,
bottom: 40,
left: 100,
},
align: AreaBumpDefaultProps.align,
interpolation: AreaBumpDefaultProps.interpolation,
spacing: 8,
xPadding: AreaBumpDefaultProps.xPadding,
colors: { scheme: 'nivo' },
blendMode: 'multiply',
fillOpacity: AreaBumpDefaultProps.fillOpacity,
activeFillOpacity: AreaBumpDefaultProps.activeFillOpacity,
inactiveFillOpacity: AreaBumpDefaultProps.inactiveFillOpacity,
borderWidth: AreaBumpDefaultProps.borderWidth,
activeBorderWidth: AreaBumpDefaultProps.activeBorderWidth,
inactiveBorderWidth: AreaBumpDefaultProps.inactiveBorderWidth,
borderColor: AreaBumpDefaultProps.borderColor,
borderOpacity: AreaBumpDefaultProps.borderOpacity,
activeBorderOpacity: AreaBumpDefaultProps.activeBorderOpacity,
inactiveBorderOpacity: AreaBumpDefaultProps.inactiveBorderOpacity,
startLabel: 'id',
startLabelPadding: AreaBumpDefaultProps.startLabelPadding,
startLabelTextColor: AreaBumpDefaultProps.startLabelTextColor,
endLabel: 'id',
endLabelPadding: AreaBumpDefaultProps.endLabelPadding,
endLabelTextColor: AreaBumpDefaultProps.endLabelTextColor,
type: 'string',
help: 'Defines CSS mix-blend-mode property.',
description: `
Defines CSS \`mix-blend-mode\` property, see
[MDN documentation](https://developer.mozilla.org/fr/docs/Web/CSS/mix-blend-mode).
`,
required: false,
defaultValue: defaults.blendMode,
controlType: 'blendMode',
},
{
key: 'fillOpacity',
group: 'Style',
type: 'number | (serie: Serie) => number',
help: 'Area fill opacity.',
defaultValue: defaults.fillOpacity,
controlType: 'opacity',
},
{
key: 'activeFillOpacity',
group: 'Style',
type: 'number | (serie: Serie) => number',
help: 'Area fill opacity for active series.',
defaultValue: defaults.activeFillOpacity,
controlType: 'opacity',
},
{
key: 'inactiveFillOpacity',
group: 'Style',
type: 'number | (serie: Serie) => number',
help: 'Area fill opacity for inactive series.',
defaultValue: defaults.inactiveFillOpacity,