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

Function imageXOffset

docs/app/js/sanddance-app.js:122668–122670  ·  view source on GitHub ↗
(align, w6)

Source from the content-addressed store, hash-verified

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}
122671function imageYOffset(baseline, h11) {
122672 return baseline === "middle" ? h11 / 2 : baseline === "bottom" ? h11 : 0;
122673}

Callers 3

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

Calls

no outgoing calls

Tested by

no test coverage detected