MCPcopy Create free account
hub / github.com/microsoft/SandDance / imageHeight

Function imageHeight

docs/app/js/sanddance-app.js:122665–122667  ·  view source on GitHub ↗
(item, image5)

Source from the content-addressed store, hash-verified

122663 return item.width != null ? item.width : !image4 || !image4.width ? 0 : item.aspect !== false && item.height ? item.height * image4.width / image4.height : image4.width;
122664}
122665function imageHeight(item, image5) {
122666 return item.height != null ? item.height : !image5 || !image5.height ? 0 : item.aspect !== false && item.width ? item.width * image5.height / image5.width : image5.height;
122667}
122668function imageXOffset(align, w6) {
122669 return align === "center" ? w6 / 2 : align === "right" ? w6 : 0;
122670}

Callers 3

attr$4Function · 0.70
bound$4Function · 0.70
draw$3Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected