Skip to content

Refactor LabelledString and relevant classes#1779

Merged
3b1b merged 8 commits into3b1b:masterfrom
YishiMichael:master
Apr 6, 2022
Merged

Refactor LabelledString and relevant classes#1779
3b1b merged 8 commits into3b1b:masterfrom
YishiMichael:master

Conversation

@YishiMichael
Copy link
Copy Markdown
Contributor

Motivation

Some refactors on LabelledString and relevant classes.

Proposed changes

  • M manimlib/mobject/numbers.py: Remove the cache dict, since SVGMobjects are already cached.
  • M manimlib/mobject/svg/labelled_string.py: Support passing in svg_default.color and svg_default.fill_color as aliases of base_color; improve algorithm.
  • M manimlib/mobject/svg/mtex_mobject.py: Some refactors.
  • M manimlib/mobject/svg/text_mobject.py: Some refactors.
  • M manimlib/mobject/svg/svg_mobject.py: Add an empty line.

@TonyCrane TonyCrane requested a review from 3b1b April 6, 2022 15:18
@3b1b 3b1b merged commit 13c731e into 3b1b:master Apr 6, 2022
TonyCrane added a commit that referenced this pull request Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants