Returns the height to be used when scaling
Scale Result using the given factor. Affects: snapshots and elements.
Scale T to fit within the given maxWidth and maxHeight.
Helper method to convert an object to JSON
Returns the width to be used when scaling