Skip to content

Commit

Permalink
upps, remove helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
tsubik committed May 9, 2023
1 parent b73db97 commit b4be49d
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions app/assets/javascripts/visibility.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,18 +72,5 @@ $(document).ready(function() {
}
}

function getCursorPosition(canvas, event) {
const rect = canvas.getBoundingClientRect()
const x = event.clientX - rect.left
const y = event.clientY - rect.top
console.log("x: " + x + " y: " + y)
console.log("clientX: " + event.clientX + " clientY: " + event.clientY);
}

const canvas = document.querySelector('#chart-1')
canvas.addEventListener('mousedown', function(e) {
getCursorPosition(canvas, e)
})

updateColumnVisiblity();
});

0 comments on commit b4be49d

Please sign in to comment.