Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
data: generateData(),
settings: {
margin: {
top: 50,
right: 90,
bottom: 50,
left: 90,
},
layout: BulletDefaultProps.layout,
reverse: BulletDefaultProps.reverse,
spacing: 46,
titlePosition: BulletDefaultProps.titlePosition,
titleAlign: 'start',
titleOffsetX: -70,
titleOffsetY: BulletDefaultProps.titleOffsetY,
titleRotation: BulletDefaultProps.titleRotation,
measureSize: 0.2,
markerSize: 0.6,
axisPosition: BulletDefaultProps.axisPosition,
rangeColors: BulletDefaultProps.rangeColors,
measureColors: BulletDefaultProps.measureColors,
markerColors: BulletDefaultProps.markerColors,
animate: true,
motionStiffness: 90,
motionDamping: 12,
theme: nivoTheme,
},
}
diceRoll = () => {
this.setState({ data: generateData() })
}const initialProperties = {
margin: {
top: 50,
right: 90,
bottom: 50,
left: 90,
},
layout: BulletDefaultProps.layout,
reverse: BulletDefaultProps.reverse,
spacing: 46,
titlePosition: BulletDefaultProps.titlePosition,
titleAlign: 'start',
titleOffsetX: -70,
titleOffsetY: BulletDefaultProps.titleOffsetY,
titleRotation: BulletDefaultProps.titleRotation,
measureSize: 0.2,
markerSize: 0.6,
axisPosition: BulletDefaultProps.axisPosition,
rangeColors: BulletDefaultProps.rangeColors,
measureColors: BulletDefaultProps.measureColors,
markerColors: BulletDefaultProps.markerColors,
animate: true,
motionStiffness: 90,
motionDamping: 12,
}
const Bullet = () => {
return (required: false,
defaultValue: defaults.titleOffset,
controlType: 'range',
group: 'Title',
controlOptions: {
min: -100,
max: 100,
unit: 'px',
},
},
{
key: 'titleRotation',
help: 'title rotation.',
type: 'number',
required: false,
defaultValue: defaults.titleRotation,
controlType: 'angle',
group: 'Title',
controlOptions: {
start: 90,
min: -360,
max: 360,
step: 5,
},
},
{
key: 'onRangeClick',
flavors: ['svg'],
type: '(range, event) => void',
group: 'Interactivity',
required: false,
help: 'onClick handler for ranges.',