Skip to content

Releases: ExploreMaths/CodeVideoRenderer

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的问题

CodeVideoRenderer 1.0.8

08 Nov 04:51
7b4e72b

Choose a tag to compare

修复代码偏移问题

由于Cascadia Code会将>=变成导致manim内部错误,因此将字体换回Consolas

删除/renderer/config.py中的无用常量

CodeVideoRenderer 1.0.7.post3

06 Nov 14:01
37b3b25

Choose a tag to compare

pip未上传完整代码,重新上传
pip did not upload the complete code; please re-upload it.