57 Commits

Author SHA1 Message Date
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
065900c6ac Some refactors 2022-04-27 23:04:24 +08:00
e085c2e214 Refactor LabelledString and relevant classes 2022-04-23 17:17:43 +08:00
12bfe88f40 Some refactors 2022-04-11 23:44:33 +08:00
e23f667c3d Fix bug when handling multi-line tex 2022-04-10 08:36:13 +08:00
557707ea75 Support substring and case_sensitive parameters 2022-04-07 00:46:41 +08:00
93f8d3f1ca Some refactors on LabelledString 2022-04-06 22:38:33 +08:00
d5ab9a91c4 Reorganize files 2022-03-31 16:15:58 +08:00
a8039d803e Rename file 2022-03-30 21:58: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
89e139009b Remove an error raising 2022-03-28 19:17:40 +08:00
45faa9063b Add items for hash_seed 2022-03-28 19:02:50 +08:00
473aaea399 Construct LabelledString 2022-03-28 17:55:50 +08:00
3b01ec48e6 Refactor MTex 2022-03-27 14:44:50 +08:00
e44a2fc8c6 Refactor MTex 2022-03-27 00:29:22 +08:00
9ac1805e7e Refactor MTex 2022-03-26 20:52:28 +08:00
4a03d196a6 Adjust typings 2022-03-23 13:34:30 +08:00
519e2f4f1e Adjust some typings 2022-03-23 12:21:40 +08:00
9f3b404df6 resolve conflict and add type hints for it 2022-02-16 11:46:55 +08:00
0cab23b2ba Reorganize inheriting order of SVGMobject 2022-02-15 20:16:15 +08:00
773e013af9 chore: add type hints to manimlib.mobject.svg 2022-02-14 22:55:41 +08:00
67f5b10626 Attempt to refactor SVGMobject with svgelements (#1731)
* 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

* Try refactoring SVGMobject with svglib

* Refactor SVGMobject using svgelements

* Refactor SVGMobject using svgelements

* Use functions instead of func names as dict values

* style: modify import order to conform to PEP8

* Set default values to None

* modify import order

* Remove unused import

Co-authored-by: TonyCrane <tonycrane@foxmail.com>
2022-02-11 07:53:21 -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
7093f7d02d Some small refactors to MTex (#1723) 2022-01-30 12:42:35 +08:00
725155409b Some small refactors 2022-01-29 21:06:54 +08:00
a6675eb043 Some small refactors 2022-01-29 14:35:27 +08:00
5d2dcec307 Fix color-related bugs 2022-01-29 14:05:52 +08:00
6c39cac62b Remove redundant attribute 2022-01-28 01:19:02 +08:00
831b7d455c Handle explicit color-related commands 2022-01-27 23:09:05 +08:00
c315300ff1 Merge branch 'master' into master 2022-01-26 08:54:18 -08:00
a770291053 Include style in MTex.get_mobjects_from 2022-01-26 08:20:38 -08:00
942a7e71b8 Update MTex 2022-01-26 23:46:13 +08:00
e8205a5049 Some refactors for MTex 2022-01-26 13:03:14 +08:00
0de303d5e0 Some refactors
- Split out `_TexParser` class
- Replace `math_mode` parameter with `tex_environment`
- Fix the bug that braces following even number of backslashes aren't matched
2021-12-13 21:01:27 +08:00
155839bde9 Add unbreakable_commands parameter 2021-12-13 12:46:29 +08:00
6821a7c20e Handle empty strings 2021-12-07 14:12:08 +08:00
00f72da493 Some small refactor 2021-12-07 13:17:48 +08:00
744916507c Add a debugging method 2021-12-07 12:55:52 +08:00
88d863c1d7 Support get_tex() for submobjects of MTex 2021-12-07 00:34:07 +08:00
4631508b7d Add get_tex() method 2021-12-06 13:48:17 +08:00
8803088121 Fix bugs concerned with child environments 2021-12-06 09:44:59 +08:00
1d466cb299 Add Exception for indices_of_part() 2021-12-05 22:17:09 +08:00
17d31045b2 Add TransformMatchingMTex 2021-12-05 11:45:42 +08:00
950466c1da Some refactors 2021-12-05 10:21:55 +08:00
8b1715379d Some small refactors 2021-11-29 09:48:00 +08:00
2501fac32f Some small refactors 2021-11-29 09:38:48 +08:00
1aec0462ec Some small refactors 2021-11-29 01:43:48 +08:00
83c70a59d8 Sort superscripts and subscripts in submobjects 2021-11-29 01:15:38 +08:00