Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
type: '{number}',
controlType: 'choices',
controlGroup: 'Interactivity',
controlOptions: {
choices: ['cell', 'row', 'column', 'rowColumn'].map(key => ({
label: key,
value: key,
})),
},
},
{
key: 'cellHoverOpacity',
scopes: ['HeatMap', 'HeatMapCanvas'],
description: 'Cell opacity on hover (0~1).',
required: false,
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}',
type: 'string',
controlType: 'choices',
group: 'Interactivity',
controlOptions: {
choices: ['cell', 'row', 'column', 'rowColumn'].map(key => ({
label: key,
value: key,
})),
},
},
{
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),
]