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

feat: Add print option for diagrams only #17

Merged
merged 2 commits into from
Jun 24, 2024

Conversation

freshavocado7
Copy link
Contributor

@freshavocado7 freshavocado7 commented Jun 19, 2024

The option to print a diagram has been added. When a diagram SVG is enlarged, a toolbar now appears at the top with options to print or close. Future features could include a slideshow of all diagrams, zoom in/zoom out, download image, and more.

In addition in order to enhance the user experience, larger SVGs are now being adjusted to fit the screen.

Closes: #5

@freshavocado7 freshavocado7 requested review from vik378 and ewuerger June 19, 2024 12:21
Copy link
Member

@ewuerger ewuerger left a comment

Choose a reason for hiding this comment

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

LGTM.

Copy link
Member

@ewuerger ewuerger left a comment

Choose a reason for hiding this comment

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

LGTM.

Comment on lines 53 to 54
setAdjustedHeight('100%');
setAdjustedWidth('100%');
Copy link
Member

Choose a reason for hiding this comment

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

Can't we initialize with '100%' in useState()? That would make the else case obsolete.

@freshavocado7 freshavocado7 force-pushed the feat-add-diagram-print-button branch from 2c43b6f to 2ea6bcc Compare June 24, 2024 13:54
@freshavocado7 freshavocado7 force-pushed the feat-add-diagram-print-button branch from 2ea6bcc to d7b271b Compare June 24, 2024 14:07
@freshavocado7 freshavocado7 merged commit d9f707a into master Jun 24, 2024
9 checks passed
@freshavocado7 freshavocado7 deleted the feat-add-diagram-print-button branch June 24, 2024 14:19
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.

Add print button for diagram only
2 participants