MCPcopy Index your code
hub / github.com/TruthHun/BookStack / readImageData

Function readImageData

static/word2md/mammoth.browser.js:1242–1252  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

1240 }
1241
1242 function readImageData(element) {
1243 var relationshipId = element.attributes['r:id'];
1244
1245 if (relationshipId) {
1246 return readImage(
1247 findEmbeddedImageFile(relationshipId),
1248 element.attributes["o:title"]);
1249 } else {
1250 return emptyResultWithMessages([warning("A v:imagedata element without a relationship ID was ignored")]);
1251 }
1252 }
1253
1254 function findEmbeddedImageFile(relationshipId) {
1255 var path = uris.uriToZipEntryName("word", relationships.findTargetByRelationshipId(relationshipId));

Callers

nothing calls this directly

Calls 4

readImageFunction · 0.70
findEmbeddedImageFileFunction · 0.70
emptyResultWithMessagesFunction · 0.70
warningFunction · 0.70

Tested by

no test coverage detected