MCPcopy Index your code
hub / github.com/plotly/plotly.js / _assertLayout

Function _assertLayout

test/jasmine/tests/map_test.js:1070–1079  ·  view source on GitHub ↗
(center, zoom)

Source from the content-addressed store, hash-verified

1068 }
1069
1070 function _assertLayout(center, zoom) {
1071 var mapInfo = getMapInfo(gd);
1072 var layout = gd.layout.map;
1073
1074 expect([mapInfo.center.lng, mapInfo.center.lat]).toBeCloseToArray(center);
1075 expect(mapInfo.zoom).toBeCloseTo(zoom);
1076
1077 expect([layout.center.lon, layout.center.lat]).toBeCloseToArray(center);
1078 expect(layout.zoom).toBeCloseTo(zoom);
1079 }
1080
1081 function _assert(center, zoom, lon0, lat0, lon1, lat1) {
1082 _assertLayout(center, zoom);

Callers 2

_assertFunction · 0.85
map_test.jsFile · 0.85

Calls 1

getMapInfoFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…