Skip to content

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.

3 participants