MCPcopy Index your code
hub / github.com/microsoft/SandDance / pickEvent

Function pickEvent

docs/app/js/sanddance-app.js:123721–123724  ·  view source on GitHub ↗
(evt)

Source from the content-addressed store, hash-verified

123719 return this;
123720 },
123721 pickEvent (evt) {
123722 const p = point(evt, this._canvas), o = this._origin;
123723 return this.pick(this._scene, p[0], p[1], p[0] - o[0], p[1] - o[1]);
123724 },
123725 // find the scenegraph item at the current mouse position
123726 // x, y -- the absolute x, y mouse coordinates on the canvas element
123727 // gx, gy -- the relative coordinates within the current group

Callers

nothing calls this directly

Calls 1

pointFunction · 0.70

Tested by

no test coverage detected