Converts to pixels.
double convertToPixels(double value, int from) { return value * _unitsProportions[from]; }