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

Formatting proof view #773

Merged
merged 5 commits into from
May 31, 2024
Merged

Formatting proof view #773

merged 5 commits into from
May 31, 2024

Conversation

rtetley
Copy link
Collaborator

@rtetley rtetley commented May 30, 2024

Closes #749

rtetley added 5 commits May 30, 2024 14:32
Working "responsive" goal view. The goals break along the break hints when
the window is resized. Done with a naive "break" selection algorithm.
Heuristic which sorts breaks with respect to their box hierarchy.
Trying to find a better algorithm for break selection
Changed the philosophy: rework the received data into something
more workable for my goal view.
I use css selectors to select the boxes
and breaks which leads to a break algo akin to Format.
Later down the line I can re-work the break algo.
@rtetley rtetley marked this pull request as ready for review May 31, 2024 07:01
@rtetley rtetley merged commit 02f8cce into main May 31, 2024
16 checks passed
);
case PpMode.hvBox:
if(lineBreak) {
<span id={id}>
Copy link
Contributor

Choose a reason for hiding this comment

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

missing return here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good catch ! I think handling hvBoxes correctly stilll needs a bit of work anyways !

@rtetley rtetley deleted the formatting-proof-view branch June 19, 2024 05:40
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.

Formatting Proof view
2 participants