Do better with `ratio` fix
Do better with `ratio` fix

That `let` was bothering me, looking at the diff.

Instead, lets mutate `xd` and `yd` separately, and build `ratio` once,
using a ternary over the same condition. I think this reads much better.

iFixit/node-markup,iFixit/node-markup,iFixit/node-markup