Commit graph

4 commits

Author SHA1 Message Date
Darylgolden
6018ebf445 Revert "Merge branch 'main' of https://github.com/ManimCommunity/manim"
This reverts commit e7f9d23aa7, reversing
changes made to afe91d02b6.
2023-07-31 15:29:39 +08:00
Benjamin Hackl
b3b90ef346
Rewrote unstable tests for :mod:.text_mobject to be non-graphical (#2982)
* removed text test control data

* rewrote text tests to be non-graphical

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-10-26 19:52:08 +02:00
Laith Bahodi
2275ec5916
:class:~.MathTex, :class:~.Tex, :class:~.Text and :class:~.MarkupText inherit color from their parent mobjects. (#2467)
* comment out color-related things from tex_mob

* add change to svg_mobject

* MarkupText handles colour internally

* MarkupText handles colour internally

* make coordinate_system.py colour agnostic

* get_line_from_axis_to_point

* add typings for SingleStringMathTex

* add typings for MathTex

* make internal methods internal

* black + isort

* fix typo

* black + isort

* fix typo

* revert internalizing change

* Revert "Merge branch 'mathtexx' of https://github.com/hydrobeam/manim into mathtexx"

This reverts commit 6be3c39814, reversing
changes made to 2b30b446ae.

* remove accidental import

* do it in a less bad way

* WIP: Text2setting causing problems

* allow tex_mobject.py to inherit colour

* allow tex_mobject.py to inherit colour

* add tests

* remove undeedde imports + formatting

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fix warnings from pre-commit hooks

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fix some tests

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* remove other color_inheritance test

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fix typo

* accomodate the color->attribute PR

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Fix tests and doc build

add a check for None when inheriting colour in
`coordinate_systems.py`, and turn written tests
into graphical tests

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Comment out `Text` color inheritance test.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Set font for text_color_inheritance test

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Small change to retrigger docs build

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-02-19 19:57:19 +01:00
Marcin Serwin
540dc70d2f
Update Text to use new ManimPango color setting (#2341)
* Find indexes in stripped text, not original text

* Add regression test

* Only run the test in linux environement

* Rewrite text2settings in Text to set text color via pango

* Make gradient in Text use pango coloring

* Bump manimpango to newest version

* Update test to use new frames_comparison

* Don't remove svg file on exception

* Bump manimpango

* Fix pre-commit errors

* Fix index bug

* Deprecate no longer used functions set_color_by_t2x

* Remove old commented out code

* Update poetry.lock
2022-01-03 18:46:04 +05:30