MCPcopy Create free account
hub / github.com/facebook/Rapid / mouse

Method mouse

modules/core/MapSystem.js:503–506  ·  view source on GitHub ↗

* mouse * Gets the current [x,y] pixel location of the pointer * (or center of map if there is no readily available pointer coordinate) * @return Array [x,y] pixel location of pointer (or center of the map)

()

Source from the content-addressed store, hash-verified

501 * @return Array [x,y] pixel location of pointer (or center of the map)
502 */
503 mouse() {
504 const gfx = this.context.systems.gfx;
505 return gfx.events?.coord?.map || this.centerPoint();
506 }
507
508
509 /**

Callers 3

mouseLocMethod · 0.95
_doPasteMethod · 0.80
operationFunction · 0.80

Calls 1

centerPointMethod · 0.95

Tested by

no test coverage detected