Skip to content

feat: new focusing effect: crop figures reversibly #128

Open
zzzhehao wants to merge 3 commits intoqmd-lab:mainfrom
zzzhehao:feat-crop
Open

feat: new focusing effect: crop figures reversibly #128
zzzhehao wants to merge 3 commits intoqmd-lab:mainfrom
zzzhehao:feat-crop

Conversation

@zzzhehao
Copy link

@zzzhehao zzzhehao commented Nov 3, 2024

When presenting complex figures, simple pan or zoom effects may not optimally guide the audience's attention. To address this, I've added a crop effect to remove distracting parts of the figure. Use [@cr-myfigure]{data-crop="20%, 20%, 20%, 20%"} to specify the cropping portions on all four sides of the figure (top, right, bottom, left). To remove all existing cropping effects, simply call the figure without any specification: @cr-myfigure.

Brief introduction has been added in docs/guide/focus-effects.qmd.

Here a quick demo video.

@andrewpbray
Copy link
Contributor

Thanks for the PR!

We're very keen to work on this with you but it'll be about a week before we can take a look.

@zzzhehao
Copy link
Author

zzzhehao commented Nov 8, 2024

Thanks for the PR!

We're very keen to work on this with you but it'll be about a week before we can take a look.

No stress, I also opened PR completely unannounced. I got the idea and did some tiny modification for my own work, I just pushed to share it but it most probably needs some polishing from the developing side.

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