MCPcopy Index your code
hub / github.com/cifertech/DisplayKit / getMonoBitmapForElement

Function getMonoBitmapForElement

app.js:4985–4991  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

4983}
4984
4985function getMonoBitmapForElement(el) {
4986 if (!el) return null;
4987 if (Array.isArray(el.monoBitmap) && el.monoBitmap.length) return el.monoBitmap;
4988 const a = getAssetById(el.assetId);
4989 if (a && Array.isArray(a.monoBitmap) && a.monoBitmap.length) return a.monoBitmap;
4990 return null;
4991}
4992
4993function getImageDimsForElement(el) {
4994 if (!el) return null;

Callers 1

generateU8g2CodeFunction · 0.85

Calls 1

getAssetByIdFunction · 0.85

Tested by

no test coverage detected