mirror of
https://github.com/jeertmans/manim-slides.git
synced 2025-08-06 14:19:52 +08:00
feat(lib): add auto_next
option (#304)
* feat(lib): add `auto_next` option As suggested in #302, you can now automatically skip a slide. It works both with `present` and `convert --to=html`! Closes #302 * chore(ci): add trigger on push on main
This commit is contained in:
@ -79,9 +79,11 @@ class Slide(BaseSlide, Scene): # type: ignore[misc]
|
||||
"""
|
||||
self.next_slide(*args, **kwargs)
|
||||
|
||||
def next_slide(self, *args: Any, loop: bool = False, **kwargs: Any) -> None:
|
||||
def next_slide(
|
||||
self, *args: Any, loop: bool = False, auto_next: bool = False, **kwargs: Any
|
||||
) -> None:
|
||||
Scene.next_section(self, *args, **kwargs)
|
||||
BaseSlide.next_slide(self, loop=loop)
|
||||
BaseSlide.next_slide(self, loop=loop, auto_next=auto_next)
|
||||
|
||||
def render(self, *args: Any, **kwargs: Any) -> None:
|
||||
"""MANIM render."""
|
||||
|
Reference in New Issue
Block a user