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

Function countVisibleLayers

test/jasmine/tests/map_test.js:557–566  ·  view source on GitHub ↗
(gd)

Source from the content-addressed store, hash-verified

555 };
556
557 function countVisibleLayers(gd) {
558 var mapInfo = getMapInfo(gd);
559
560 var sourceLen = mapInfo.layoutSources.length;
561 var layerLen = mapInfo.layoutLayers.length;
562
563 if(sourceLen !== layerLen) return null;
564
565 return layerLen;
566 }
567
568 function getLayerLength(gd) {
569 return Lib.filterVisible(gd._fullLayout.map.layers || []).length;

Callers 1

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…