36 Commits

Author SHA1 Message Date
4c1f1f8749 Clean up TransformMatchingStrings 2022-12-30 15:09:07 -08:00
4335e85659 Abstract away logic of TransformMatchingStrings to a new version of TransformMatchingParts 2022-12-30 13:54:55 -08:00
25ac5f3507 Use Mobject.1.has_same_shape_as in TransformMatchingStrings 2022-12-29 12:03:17 -08:00
4330f78ed6 Enable lag_ratio for TransformMatchingStrings 2022-12-29 10:44:52 -08:00
926f3515bf Write new TransformMatchingStrings 2022-12-28 13:39:46 -08:00
33682b7199 MTex is the new Tex, Tex is now OldTex
Global replace
Tex -> OldTex
TexText -> OldTexText
MTex -> Tex
MTexText -> TexText
2022-12-21 13:18:20 -08:00
c96cdf43a1 Make sure mutability of dict arguments won't cause problems
One could argue that a pattern of "arg: dict | None = None" followed by "self.param = arg or dict()" is better, but that would make for an inconsistent pattern in cases where the default argument is not None.
2022-12-18 09:38:28 -08:00
a6db0877de Remove stray imports 2022-12-16 15:21:14 -08:00
afab37c2d2 Remove stray digest_config references 2022-12-16 11:00:59 -08:00
4aa7d439f1 Kill CONFIG in transform_matching_parts animations 2022-12-14 15:55:02 -08:00
f0447d7739 Small refactors on StringMobject and relevant classes 2022-05-28 21:43:37 +08:00
22a3bef670 Resolve conflicts 2022-05-28 12:40:29 +08:00
cdadaf8a8c Rename LabelledString to StringMobject 2022-05-06 22:09:58 +08:00
1cb7401141 [WIP] Refactor LabelledString and relevant classes 2022-05-04 21:56:13 +08:00
ab8f78f40f [WIP] Refactor LabelledString and relevant classes 2022-05-03 23:39:37 +08:00
03cb42ba15 [WIP] Refactor LabelledString and relevant classes 2022-05-02 22:40:06 +08:00
e085c2e214 Refactor LabelledString and relevant classes 2022-04-23 17:17:43 +08:00
e23f667c3d Fix bug when handling multi-line tex 2022-04-10 08:36:13 +08:00
d5ab9a91c4 Reorganize files 2022-03-31 16:15:58 +08:00
0add9b6e3a Rename file 2022-03-30 21:57:27 +08:00
c5ec47b0e9 Refactor LabelledString 2022-03-30 21:53:00 +08:00
7e8b3a4c6b Refactor LabelledString 2022-03-29 23:38:06 +08:00
0e31ff12e2 Tiny fix for TransformMatchingString 2022-03-28 18:54:43 +08:00
473aaea399 Construct LabelledString 2022-03-28 17:55:50 +08:00
4fbe948b63 style: insert an empty line after import 2022-02-16 21:08:25 +08:00
41c4023986 chore: add type hints to manimlib.animation 2022-02-15 18:39:45 +08:00
d6b20a7306 Refactor MTex and implement TransformMatchingMTex (#1725)
* Some small refactors

* Refactor MTex

* Implement TransformMatchingMTex

* Some refactors

* Some refactors

* Some small refactors

* Strip strings before matching

* Implement get_submob_tex

* Use RGB color mode

* Some small refactors
2022-02-07 08:21:53 -08:00
7023548ec6 Fix TransformMatchingParts bug 2021-12-13 16:03:12 -08:00
42d8888f8e Allow any VMobject to be passed into TransformMatchingTex, so that slicing into Tex works 2021-03-31 23:28:49 -07:00
73edeaa153 Fix TexTransformExample 2021-01-30 17:52:02 -08:00
f91c81dd6a Rename TexMobject -> Tex and TextMobject -> TexText 2021-01-18 08:20:14 -10:00
5eee39803f Rename get_tex_string -> get_tex 2021-01-07 12:14:51 -08:00
5939f24cd4 Added key_map option and made key methods static 2021-01-07 11:48:16 -08:00
e187728f0c Add transform_mismatches option 2021-01-06 16:14:36 -08:00
c0b90b398c Add TransformMatchingShapes and TransformMatchingTex 2021-01-05 18:03:06 -08:00
2d709758d0 Added TransformMatchingParts for smarter tex transforms 2021-01-04 23:09:29 -08:00