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

Refactored Tikz Backend #15

Merged
merged 6 commits into from
Apr 11, 2023
Merged

Refactored Tikz Backend #15

merged 6 commits into from
Apr 11, 2023

Conversation

Lugrim
Copy link
Owner

@Lugrim Lugrim commented Apr 10, 2023

  • Moved bounding box logic out of the pass for it to be usable by other passes
  • Splitted Tikz Backend into several smaller functions
  • Load template file the same way as HTML Backend (will make things easier when making an actual template engine)

As Bounding-Box is related to an event list, it maes more sense to have
its logic in `event.rs` than in a specific compilation pass.
@Lugrim Lugrim linked an issue Apr 10, 2023 that may be closed by this pull request
Copy link
Collaborator

@Lymkwi Lymkwi left a comment

Choose a reason for hiding this comment

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

Good job. We talked about a couple things that could be improved.

src/event.rs Outdated Show resolved Hide resolved
src/event.rs Outdated Show resolved Hide resolved
src/event.rs Outdated Show resolved Hide resolved
src/passes/latex.rs Show resolved Hide resolved
src/passes/latex.rs Outdated Show resolved Hide resolved
src/passes/latex.rs Outdated Show resolved Hide resolved
src/passes/latex.rs Outdated Show resolved Hide resolved
src/passes/latex.rs Outdated Show resolved Hide resolved
Now using `std::Cmp::Ordering`
src/passes/latex.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@hugnata hugnata left a comment

Choose a reason for hiding this comment

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

Seems good to me 😃

data/template_tikz.tex Show resolved Hide resolved
src/event.rs Show resolved Hide resolved
Copy link
Collaborator

@Docteur-Lalla Docteur-Lalla left a comment

Choose a reason for hiding this comment

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

Looks pretty good to me

@Lugrim Lugrim merged commit 382956b into main Apr 11, 2023
@Lugrim Lugrim deleted the tikz-refactor branch April 11, 2023 15:31
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.

tikz compilation application is too long
4 participants