MCPcopy Index your code
hub / github.com/mudler/LocalAI / isMouseOver

Method isMouseOver

core/http/static/p2panimation.js:54–57  ·  view source on GitHub ↗
(mouseX, mouseY)

Source from the content-addressed store, hash-verified

52 }
53
54 isMouseOver(mouseX, mouseY) {
55 // Increase the draggable area by checking if the mouse is within a larger radius
56 return Math.hypot(mouseX - this.x, mouseY - this.y) < dragAreaRadius;
57 }
58}
59
60function connectParticles() {

Callers 1

p2panimation.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected