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

Refactoring 01 (MVP): init refactor #481

Merged
merged 5 commits into from
Oct 1, 2020
Merged

Conversation

Konstiman
Copy link
Contributor

This PR introduces another part of the MVP refactoring: the refactored and fixed init_start_visualization function in the mediator.

Changes summary:

  • The sequence of the calls in init_start_visualization is changed, so the canvas setup (with the heading measurement) happens AFTER the whole heading is rendered. I had to split prepareData function (io.js) into two. The whole call sequence is simplified, so there's no repeated code.
  • Therefore I could remove the hardcoded values from canvas and list (the author image dimensions).
  • I also simplified the canvas a bit by moving the initScales function call to the constructor.

@chreman chreman merged commit 359bb24 into master Oct 1, 2020
@Konstiman Konstiman deleted the refactoring-01-mvp-init branch December 21, 2020 11:50
chreman added a commit to chreman/Headstart that referenced this pull request Oct 13, 2021
…toring-01-mvp-init

Refactoring 01 (MVP): init refactor

Former-commit-id: 359bb24
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