Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
2af0403
refactor(lib): change how manim API is imported
jeertmans Oct 13, 2023
e0fdac9
chore(lib): delete old files
jeertmans Oct 13, 2023
01aca2f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 13, 2023
5ebb61c
Merge remote-tracking branch 'origin/refactor-manim' into refactor-manim
jeertmans Oct 13, 2023
f3ff76e
wip: moving all commands
jeertmans Oct 13, 2023
06ff18f
adding animations
jeertmans Oct 13, 2023
9355e3d
fix tests
jeertmans Oct 13, 2023
2211ac6
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 13, 2023
dd57527
fix mypy
jeertmans Oct 13, 2023
effcc75
fixes
jeertmans Oct 13, 2023
418f1f7
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 13, 2023
f5f60e7
trying to fix docs
jeertmans Oct 14, 2023
d4a6148
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 14, 2023
1b1d6c5
wip: docs
jeertmans Oct 16, 2023
c803d67
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 16, 2023
bccff71
make it work
jeertmans Oct 16, 2023
036a796
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 16, 2023
2c3e5cc
wip test
jeertmans Oct 16, 2023
927a489
Merge remote-tracking branch 'origin/refactor-manim' into refactor-manim
jeertmans Oct 16, 2023
fb97409
tests are working
jeertmans Oct 16, 2023
946cb11
improving docs
jeertmans Oct 16, 2023
aa8205a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 16, 2023
85ff07e
fix index
jeertmans Oct 16, 2023
b79da53
docs: nicer shift
jeertmans Oct 16, 2023
6c14ee2
docs: nicer quickstart example
jeertmans Oct 16, 2023
95f84ef
fix tests
jeertmans Oct 17, 2023
353a7f4
change tests
jeertmans Oct 17, 2023
7b37c2d
move coverage to test workflow
jeertmans Oct 17, 2023
b182e72
fix(tests): remove resolve
jeertmans Oct 17, 2023
ffe8322
strict resolve
jeertmans Oct 17, 2023
90a2909
change local path test
jeertmans Oct 17, 2023
4c1df69
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 17, 2023
f8978c2
documented changes
jeertmans Oct 17, 2023
489ea5b
Merge remote-tracking branch 'origin/refactor-manim' into refactor-manim
jeertmans Oct 17, 2023
c010971
cleanup docs
jeertmans Oct 17, 2023
4d166d5
cleanup files
jeertmans Oct 17, 2023
a767aef
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 17, 2023
9300811
fix(ci): set type
jeertmans Oct 17, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions manim_slides/slide/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ def __init__(self):

if MANIM:
try:
from .manim import ThreeDSlide, Slide
from .manim import Slide, ThreeDSlide
except ImportError:
raise ManimApiNotFoundError from None
else:
os.environ[MANIM_API] = "manim"
elif MANIMGL:
try:
from .manimgl import ThreeDSlide, Slide
from .manimgl import Slide, ThreeDSlide
except ImportError:
raise ManimApiNotFoundError from None
else:
Expand Down
6 changes: 3 additions & 3 deletions manim_slides/slide/base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import platform
from abc import ABC, abstractmethod
from pathlib import Path
from typing import (
TYPE_CHECKING,
Expand All @@ -10,12 +11,11 @@
Tuple,
ValuesView,
)
from abc import abstractmethod, ABC

from tqdm import tqdm

from ..config import PresentationConfig, PreSlideConfig, SlideConfig
from ..defaults import FOLDER_PATH, FFMPEG_BIN
from ..defaults import FFMPEG_BIN, FOLDER_PATH
from ..logger import logger
from ..utils import concatenate_video_files, merge_basenames, reverse_video_file

Expand All @@ -34,7 +34,7 @@ class Base(ABC):
_pause_start_animation = 0
_canvas: MutableMapping[str, Mobject] = {}
_wait_time_between_slides = 0.0

@property
@abstractmethod
def _ffmpeg_bin(self) -> Path:
Expand Down
5 changes: 3 additions & 2 deletions manim_slides/slide/manim.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
from pathlib import Path
from typing import Any, List, Optional, Tuple

from manim import ThreeDScene, Scene, config
from manim import Scene, ThreeDScene, config

from .base import Base
from ..defaults import FFMPEG_BIN
from .base import Base


class Slide(Base, Scene):
"""
Inherits from :class:`Scene<manim.scene.scene.Scene>` and provide necessary tools for slides rendering.
"""

@property
def _ffmpeg_bin(self) -> Path:
# Prior to v0.16.0.post0,
Expand Down
8 changes: 4 additions & 4 deletions manim_slides/slide/manimgl.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def _start_at_animation_number(self) -> Optional[int]:


class ThreeDSlide(Slide):
CONFIG = {
"camera_class": ThreeDCamera,
}
pass
CONFIG = {
"camera_class": ThreeDCamera,
}
pass