Skip to content

template-fonts - #171

Merged
narekhovhannisyan merged 32 commits into
masterfrom
template-fonts
Apr 11, 2019
Merged

narekhovhannisyan merged 32 commits into
masterfrom
template-fonts

Conversation

@narekhovhannisyan

@narekhovhannisyan narekhovhannisyan commented Apr 10, 2019 •

Copy link
Copy Markdown
Contributor
  • added fonts resources from which it's possible to get fonts by id and set character size
  • added getFonts getter and setFonts, resetFonts setters to project data instance
  • added usage examples for resources and getter/setters
  • updated the documentation according to changes and updated old mistakes
  • release 0.4.2

@emarukyan
emarukyan requested a review from a team April 10, 2019 07:41
Comment thread docs/FONTS.md Outdated
- [Check if project is Lego](#check-if-project-is-lego)
- [Get project title](#get-project-title)
- [Get mute music](#get-mute-music)
- [Get mute music](#get-mute-music)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Duplicated line.

Comment thread docs/FONTS.md Outdated
Comment thread lib/resources/fonts.js
Comment thread docs/FONTS.md
`getTemplateVailabeFonts` function returns object containing all fonts.
The object which returned has method `getFontById` which accepts `fontId` as parameter.
`getFontId` method return flatten font.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please write this way:
getTemplateAvailabeFonts function returns an object containing all fonts. The returned object has getFontById method which accepts fontId parameter.
getFontId method returns flattened font.

@ArtyomHov ArtyomHov Apr 10, 2019 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

it is not understandable it returns an id of a single font or all ids of available fonts.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Let's))

Comment thread docs/FONTS.md
Comment thread docs/project-data-api/PROJECT_DATA_API.md
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