Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const style = {
width: 2 * r,
height: 2 * r,
borderRadius: r,
transform: translate,
WebkitTransform: translate,
background: `radial-gradient(circle at ${r * 2 / 3}px ${r * 2 / 3}px,#5cabff,#000)`,
position: 'absolute',
top: 0,
left: 0,
};
return (
<div style="{translateStyle(style)}">
);
}
</div>
tooltipDimension: boxWidth,
viewBoxDimension: viewBox.width,
});
translateY = this.getTranslate({
key: 'y',
tooltipDimension: boxHeight,
viewBoxDimension: viewBox.height,
});
} else {
outerStyle.visibility = 'hidden';
}
}
outerStyle = {
...translateStyle({
transform: this.props.useTranslate3d ? `translate3d(${translateX}px, ${translateY}px, 0)` : `translate(${translateX}px, ${translateY}px)`,
}),
...outerStyle,
};
if (isAnimationActive && active) {
outerStyle = {
...translateStyle({
transition: `transform ${animationDuration}ms ${animationEasing}`,
}),
...outerStyle,
};
}
const cls = classNames(CLS_PREFIX, {
[`${CLS_PREFIX}-right`]: isNumber(translateX) && coordinate && isNumber(coordinate.x) && translateX >= coordinate.x,
return (
<svg version="1.1" viewBox="{`0" height="{ropeLength" width="{ropeLength">
<line style="{translateStyle({" stroke="black" y2="{y2}" x2="{x2}" y1="0" x1="{x1}"></line>
</svg>
);
}