Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function createHoverAnchor({ point, group, layer }) {
const hoverAnchor = new Konva.Circle({
name: "hoverAnchor",
x: point[0],
y: point[1],
stroke: green.primary,
fill: green[0],
strokeWidth: 2,
radius: 5,
});
group.add(hoverAnchor);
layer.draw();
return hoverAnchor;
}