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

Method centerPoint

modules/core/MapSystem.js:482–484  ·  view source on GitHub ↗

* centerPoint * Returns the [x,y] pixel at the center of the viewport * @return Array [x,y] pixel at the center of the viewport

()

Source from the content-addressed store, hash-verified

480 * @return Array [x,y] pixel at the center of the viewport
481 */
482 centerPoint() {
483 return this.context.viewport.center();
484 }
485
486
487 /**

Callers 1

mouseMethod · 0.95

Calls 1

centerMethod · 0.80

Tested by

no test coverage detected