Skip to content

feat: new focusing effect: crop figures reversibly #128

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

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

Conversation

@zzzhehao

@zzzhehao zzzhehao commented Nov 3, 2024

Copy link
Copy Markdown

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
Copy Markdown
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

zzzhehao commented Nov 8, 2024

Copy link
Copy Markdown
Author

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