Skip to content

Conversation

brettz9
Copy link
Contributor

@brettz9 brettz9 commented Apr 8, 2014

Provide values for px, pc, em, ex and utilize switch for divisor determination.

Provide values for px, pc, em, ex and utilize switch for divisor determination.
@brettz9
Copy link
Contributor Author

brettz9 commented Apr 8, 2014

Not fully sure this is correct, but what I could piece together. SVG-Edit uses these units, and I'm using @ahwolf's SVG plug-in to jsPDF and thought it made more sense for the conversions to be internal to jsPDF.

@diegocr
Copy link
Contributor

diegocr commented Apr 8, 2014

I don't see a problem mergin your patch since it shouldn't cause any issue with existing code.

However... could you please change that to one-line cases, so that it's easy to read?

I.e:

case 'pt':  k = 1;          break;
case 'mm':  k = 72 / 25.4;  break;
etc

Thanks!

@brettz9
Copy link
Contributor Author

brettz9 commented Apr 9, 2014

Done!

diegocr added a commit that referenced this pull request Apr 9, 2014
@diegocr diegocr merged commit c9c84c7 into parallax:master Apr 9, 2014
@diegocr
Copy link
Contributor

diegocr commented Apr 9, 2014

Thanks!

@brettz9 brettz9 deleted the patch-1 branch April 9, 2014 01:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants