diff --git a/manimlib/config.py b/manimlib/config.py index c3c2aa62..19f731e6 100644 --- a/manimlib/config.py +++ b/manimlib/config.py @@ -21,11 +21,6 @@ if TYPE_CHECKING: from typing import Optional -# This has to be here instead of in constants.py -# due to its use in creating the camera configuration -FRAME_HEIGHT: float = 8.0 - - def parse_cli(): try: parser = argparse.ArgumentParser() @@ -347,9 +342,6 @@ def get_camera_config(args: Optional[Namespace] = None, global_config: Optional[ camera_config = { "pixel_width": width, "pixel_height": height, - "frame_config": { - "frame_shape": ((width / height) * FRAME_HEIGHT, FRAME_HEIGHT), - }, "fps": fps, } diff --git a/manimlib/constants.py b/manimlib/constants.py index 4b67cdb8..4dcdb508 100644 --- a/manimlib/constants.py +++ b/manimlib/constants.py @@ -2,7 +2,6 @@ from __future__ import annotations import numpy as np from manimlib.config import get_resolution -from manimlib.config import FRAME_HEIGHT from typing import TYPE_CHECKING if TYPE_CHECKING: @@ -20,6 +19,7 @@ DEFAULT_FPS: int = 30 # Sizes relevant to default camera frame ASPECT_RATIO: float = DEFAULT_PIXEL_WIDTH / DEFAULT_PIXEL_HEIGHT +FRAME_HEIGHT: float = 8.0 FRAME_WIDTH: float = FRAME_HEIGHT * ASPECT_RATIO FRAME_SHAPE: tuple[float, float] = (FRAME_WIDTH, FRAME_HEIGHT) FRAME_Y_RADIUS: float = FRAME_HEIGHT / 2