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

Function getStyle

test/jasmine/tests/map_test.js:1368–1381  ·  view source on GitHub ↗
(gd, mode, prop)

Source from the content-addressed store, hash-verified

1366 }
1367
1368 function getStyle(gd, mode, prop) {
1369 var mapInfo = getMapInfo(gd);
1370 var values = [];
1371
1372 mapInfo.traceLayers.forEach(function(l) {
1373 var info = mapInfo.layers[l];
1374
1375 if(l.indexOf(mode) === -1) return;
1376
1377 values.push(info.paint._values[prop].value.value);
1378 });
1379
1380 return values;
1381 }
1382
1383 function getGeoJsonData(gd, mode) {
1384 var mapInfo = getMapInfo(gd);

Callers 1

assertMarkerColorFunction · 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…