Skip to content

Releases: ExploreMaths/CodeVideoRenderer

CodeVideoRenderer 1.2.3

04 May 06:21

Choose a tag to compare

See details at https://pypi.org/project/codevideorenderer/1.2.3/.

What's Changed

Additions 🚀

  • Added moviepy version requirement <2.0.0 for Python 3.8
  • Added typing-extensions dependency with a minimum required version of 4.0.0
  • Added imageio-ffmpeg dependency with a minimum required version of 0.4.0
  • Added typeguard dependency with a minimum required version of 3.0
  • Added import of annotations (from __future__) in typing.py and utils.py for compatibility with Python 3.8, 3.9

Changes 🧹

  • Downgraded the minimum required version of the manim dependency from 0.20.1 to 0.18.0
  • Downgraded the minimum required version of the numpy dependency from 2.4.2 to 1.24.4
  • Downgraded the minimum required version of the pillow dependency from 11.2.1 to 9.1
  • Downgraded the minimum required Python version from 3.9 to 3.8
  • Modified the import methods of TypeAlias, UnionType and VideoFileClip for compatibility with Python 3.8, 3.9
  • Replaced all type annotations in the format of type | type with Union[type, type] for compatibility with Python 3.8, 3.9
  • Changed all PathLike[str] to PathLike (as PathLike in Python 3.8 does not support generics)
  • Replaced all type annotations in the formats of tuple[...], list[...] and dict[...] with Tuple[...], List[...] and Dict[...] respectively for compatibility with Python 3.8
  • Switched the type checker from typeChecker() to typeguard.typechecked()

Deletions 🗑️

  • Removed checkType() and typeChecker() from utils.py

CodeVideoRenderer 1.2.2

27 Apr 11:55

Choose a tag to compare

See details at https://pypi.org/project/codevideorenderer/1.2.2/.

What's Changed

Changes 🧹

  • Convert all documents (functions, classes, constants) to the reStructuredText format for better compatibility with Sphinx documentation.

  • Change the default value of the formatter_style parameter in the CameraFollowCursorCV class to "material".

CodeVideoRenderer 1.2.1

22 Mar 11:43

Choose a tag to compare

See details at https://pypi.org/project/codevideorenderer/1.2.1/.

What's Changed

Additions 🚀

  • Add the __version__ variable to __init__.py

  • Add the __all__ variable to config.py, renderer.py, typing.py, and utils.py

  • Add the formatter_style parameter to the CameraFollowCursorCV class

  • Add beautification for terminal error messages

  • Add parameter descriptions and type annotations for all functions and classes

  • Add the __getattribute__ function to the CameraFollowCursorCV class to prevent data modification by changing attributes

  • Add the CodeVideoRendererFont font to support Chinese characters

  • Add the NOT_AVAILABLE_CHARACTERS variable to config.py

  • Add the Parameters class to the CameraFollowCursorCV class for managing and retrieving parameters

  • Add version.py to manage package version

Changes 🧹

  • Change the function name format from aaa_bbb (snake_case) to aaaBbb (camelCase)

  • Change the PygmentsLanguage class to a Literal type

  • Refactor the default_progress_bar function into the DefaultProgressBar class

  • Split CameraFollowCursorCVR.py into renderer.py, typing.py, and utils.py

  • Modify the whitespace handling logic to improve rendering speed

  • Make partial modifications to the parameters and descriptions of the CameraFollowCursorCV class

  • Modify some terminal output content

  • Update the value of CODE_OFFSET in config.py

Fixes 🐛

  • Fix the code offset issue caused by @gaojj2000 in #5
  • Fix the code_line_rectangle offset issue that occurs when code offset happens

Deletions 🗑️

  • Remove the DEFAULT_CODE_FORMATTER_STYLE, AVAILABLE_CHARACTERS, and EMPTY_CHARACTER variables from config.py

CodeVideoRenderer 1.1.2

11 Feb 06:27

Choose a tag to compare

处理manim会统一去掉每行前面都有的空格 导致的光标位置错误的问题(详见#5

CodeVideoRenderer 1.1.1

25 Dec 11:19
9b92438

Choose a tag to compare

兼容manim==0.19.1的更新(详见#3

type_checker进行修改,适配Literal

优化终端显示

增加发光效果

functions.py整合到CameraFollowCursorCVR.py

适配OpenGL渲染,处理了切换OpenGL渲染时的相关问题(详见#4

CameraFollowCursorCV中增加renderer参数,用于设置渲染器

使用timeit模块计算渲染时间,避免冗余变量

删除渲染Scene前的汇总输出

删除config.py中的无用常量

CameraFollowCursorCVlanguage参数的类型从str改为PygmentsLanguage

修改文件组织架构

CodeVideoRenderer 1.1.0

24 Nov 12:37
8c63e2c

Choose a tag to compare

修改相机运动逻辑

增加开头动画

修复在render()中使用output=False时无法终止输出的问题

CodeVideoRenderer 1.0.9.post2

17 Nov 12:59
ada2090

Choose a tag to compare

更改光标与字符的间距

CodeVideoRenderer 1.0.9.post1

17 Nov 12:48
92f66ee

Choose a tag to compare

修复type_checker装饰器的部分问题

更改进度条样式,增加{task.completed}/{task.total}一栏

CodeVideoRenderer 1.0.9

16 Nov 10:56
4658997

Choose a tag to compare

重写相机移动逻辑,增加相机自动缩放功能

使用rich输出渲染开始时的数据

重写渲染进度条,现使用rich.progress进行进度条输出

重写类型检查,使用rich.traceback抛出更美观的错误

CodeVideoRenderer 1.0.8.post1

08 Nov 14:35
54e0ed6

Choose a tag to compare

修复__init__.py的问题