Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(extractors): add missing typograph properties in Figma extractor #73

Merged
merged 1 commit into from
Feb 11, 2020

Conversation

roperzh
Copy link
Member

@roperzh roperzh commented Feb 10, 2020

No description provided.

@phil-lgr
Copy link

@roperzh wow that was fast thank you!

Copy link
Contributor

@dbuscaglia dbuscaglia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - I see some serious magic numbering of constants, but I assume this is just what we do for specific extractors

@@ -467,11 +471,11 @@ describe('Figma', () => {
{
name: 'Foobar Typograph',
initializer:
'new Typograph({fontSize: 9001, color: Color.rgba(100, 100, 100, 1), font: helloFonts.Foobar.BoldItalic})',
'new Typograph({letterSpacing: 0.4824822, fontSize: 9001, lineHeight: 11, color: Color.rgba(100, 100, 100, 1), font: helloFonts.Foobar.BoldItalic})',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these seem like magic numbers and are repeated. do we always just inline these things?

@codecov
Copy link

codecov bot commented Feb 11, 2020

Codecov Report

Merging #73 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #73      +/-   ##
==========================================
+ Coverage   92.59%   92.59%   +<.01%     
==========================================
  Files         113      113              
  Lines        2661     2662       +1     
  Branches       77       77              
==========================================
+ Hits         2464     2465       +1     
  Misses        176      176              
  Partials       21       21

@roperzh
Copy link
Member Author

roperzh commented Feb 11, 2020

Thanks for the review! Yes, you are right, that is a just test mock we are using. Relevant changes are in extractors/figma.ts.

Merging.

@roperzh roperzh merged commit 9dafce7 into master Feb 11, 2020
@roperzh roperzh deleted the rob/figma-missing-typograph-properties branch February 11, 2020 00:24
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.

3 participants