Releases: ExploreMaths/CodeVideoRenderer
CodeVideoRenderer 1.2.3
See details at https://pypi.org/project/codevideorenderer/1.2.3/.
What's Changed
Additions 🚀
- Added
moviepyversion requirement<2.0.0for Python 3.8 - Added
typing-extensionsdependency with a minimum required version of4.0.0 - Added
imageio-ffmpegdependency with a minimum required version of0.4.0 - Added
typeguarddependency with a minimum required version of3.0 - Added import of
annotations(from__future__) intyping.pyandutils.pyfor compatibility with Python 3.8, 3.9
Changes 🧹
- Downgraded the minimum required version of the
manimdependency from0.20.1to0.18.0 - Downgraded the minimum required version of the
numpydependency from2.4.2to1.24.4 - Downgraded the minimum required version of the
pillowdependency from11.2.1to9.1 - Downgraded the minimum required Python version from
3.9to3.8 - Modified the import methods of
TypeAlias,UnionTypeandVideoFileClipfor compatibility with Python 3.8, 3.9 - Replaced all type annotations in the format of
type | typewithUnion[type, type]for compatibility with Python 3.8, 3.9 - Changed all
PathLike[str]toPathLike(asPathLikein Python 3.8 does not support generics) - Replaced all type annotations in the formats of
tuple[...],list[...]anddict[...]withTuple[...],List[...]andDict[...]respectively for compatibility with Python 3.8 - Switched the type checker from
typeChecker()totypeguard.typechecked()
Deletions 🗑️
- Removed
checkType()andtypeChecker()fromutils.py
CodeVideoRenderer 1.2.2
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_styleparameter in theCameraFollowCursorCVclass to"material".
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的问题