Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
{
key: 'cellHoverOpacity',
flavors: ['svg', 'canvas'],
help: 'Cell opacity on hover.',
required: false,
defaultValue: defaults.cellHoverOpacity,
type: 'number',
controlType: 'opacity',
group: 'Interactivity',
},
{
key: 'cellHoverOthersOpacity',
flavors: ['svg', 'canvas'],
help: 'Cell opacity when not hovered.',
required: false,
defaultValue: defaults.cellHoverOthersOpacity,
type: 'number',
controlType: 'opacity',
group: 'Interactivity',
},
...motionProperties(['svg'], defaults),
]
export const groups = groupProperties(props)
default: defaults.cellHoverOpacity,
type: '{number}',
controlType: 'range',
controlGroup: 'Interactivity',
controlOptions: {
min: 0,
max: 1,
step: 0.05,
},
},
{
key: 'cellHoverOthersOpacity',
scopes: ['HeatMap', 'HeatMapCanvas'],
description: 'Cell opacity when not hovered (0~1).',
required: false,
default: defaults.cellHoverOthersOpacity,
type: '{number}',
controlType: 'range',
controlGroup: 'Interactivity',
controlOptions: {
min: 0,
max: 1,
step: 0.05,
},
},
/*——————————————————————————————————————————————————————————————————————————
Motion
————————————————————————————————————————————————————————————————————————————*/
...motionProperties(['HeatMap'], defaults),
]