Releases: ExploreMaths/CodeVideoRenderer
CodeVideoRenderer 1.2.1
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 toconfig.py,renderer.py,typing.py, andutils.py -
Add the
formatter_styleparameter to theCameraFollowCursorCVclass -
Add beautification for terminal error messages
-
Add parameter descriptions and type annotations for all functions and classes
-
Add the
__getattribute__function to theCameraFollowCursorCVclass to prevent data modification by changing attributes -
Add the CodeVideoRendererFont font to support Chinese characters
-
Add the
NOT_AVAILABLE_CHARACTERSvariable toconfig.py -
Add the
Parametersclass to theCameraFollowCursorCVclass for managing and retrieving parameters -
Add
version.pyto manage package version
Changes 🧹
-
Change the function name format from
aaa_bbb(snake_case) toaaaBbb(camelCase) -
Change the
PygmentsLanguageclass to aLiteraltype -
Refactor the
default_progress_barfunction into theDefaultProgressBarclass -
Split
CameraFollowCursorCVR.pyintorenderer.py,typing.py, andutils.py -
Modify the whitespace handling logic to improve rendering speed
-
Make partial modifications to the parameters and descriptions of the
CameraFollowCursorCVclass -
Modify some terminal output content
-
Update the value of
CODE_OFFSETinconfig.py
Fixes 🐛
- Fix the code offset issue caused by @gaojj2000 in #5
- Fix the
code_line_rectangleoffset issue that occurs when code offset happens
Deletions 🗑️
- Remove the
DEFAULT_CODE_FORMATTER_STYLE,AVAILABLE_CHARACTERS, andEMPTY_CHARACTERvariables fromconfig.py
CodeVideoRenderer 1.1.2
处理manim会统一去掉每行前面都有的空格 导致的光标位置错误的问题(详见#5)
CodeVideoRenderer 1.1.1
兼容manim==0.19.1的更新(详见#3)
对type_checker进行修改,适配Literal
优化终端显示
增加发光效果
将functions.py整合到CameraFollowCursorCVR.py中
适配OpenGL渲染,处理了切换OpenGL渲染时的相关问题(详见#4)
在CameraFollowCursorCV中增加renderer参数,用于设置渲染器
使用timeit模块计算渲染时间,避免冗余变量
删除渲染Scene前的汇总输出
删除config.py中的无用常量
将CameraFollowCursorCV中language参数的类型从str改为PygmentsLanguage
修改文件组织架构
CodeVideoRenderer 1.1.0
修改相机运动逻辑
增加开头动画
修复在render()中使用output=False时无法终止输出的问题
CodeVideoRenderer 1.0.9.post2
更改光标与字符的间距
CodeVideoRenderer 1.0.9.post1
修复type_checker装饰器的部分问题
更改进度条样式,增加{task.completed}/{task.total}一栏
CodeVideoRenderer 1.0.9
重写相机移动逻辑,增加相机自动缩放功能
使用rich输出渲染开始时的数据
重写渲染进度条,现使用rich.progress进行进度条输出
重写类型检查,使用rich.traceback抛出更美观的错误
CodeVideoRenderer 1.0.8.post1
修复__init__.py的问题
CodeVideoRenderer 1.0.8
修复代码偏移问题
由于Cascadia Code会将>=变成≥导致manim内部错误,因此将字体换回Consolas
删除/renderer/config.py中的无用常量
CodeVideoRenderer 1.0.7.post3
pip未上传完整代码,重新上传
pip did not upload the complete code; please re-upload it.