Commit graph

49 commits

Author SHA1 Message Date
YishiMichael
d5ab9a91c4
Reorganize files 2022-03-31 16:15:58 +08:00
YishiMichael
a8039d803e
Rename file 2022-03-30 21:58:27 +08:00
YishiMichael
c5ec47b0e9
Refactor LabelledString 2022-03-30 21:53:00 +08:00
YishiMichael
7e8b3a4c6b
Refactor LabelledString 2022-03-29 23:38:06 +08:00
YishiMichael
89e139009b
Remove an error raising 2022-03-28 19:17:40 +08:00
YishiMichael
45faa9063b
Add items for hash_seed 2022-03-28 19:02:50 +08:00
YishiMichael
473aaea399
Construct LabelledString 2022-03-28 17:55:50 +08:00
YishiMichael
3b01ec48e6
Refactor MTex 2022-03-27 14:44:50 +08:00
YishiMichael
e44a2fc8c6
Refactor MTex 2022-03-27 00:29:22 +08:00
YishiMichael
9ac1805e7e
Refactor MTex 2022-03-26 20:52:28 +08:00
YishiMichael
4a03d196a6
Adjust typings 2022-03-23 13:34:30 +08:00
YishiMichael
519e2f4f1e
Adjust some typings 2022-03-23 12:21:40 +08:00
TonyCrane
9f3b404df6
resolve conflict and add type hints for it 2022-02-16 11:46:55 +08:00
YishiMichael
0cab23b2ba
Reorganize inheriting order of SVGMobject 2022-02-15 20:16:15 +08:00
TonyCrane
773e013af9
chore: add type hints to manimlib.mobject.svg 2022-02-14 22:55:41 +08:00
YishiMichael
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
YishiMichael
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
YishiMichael
7093f7d02d
Some small refactors to MTex (#1723) 2022-01-30 12:42:35 +08:00
YishiMichael
725155409b
Some small refactors 2022-01-29 21:06:54 +08:00
YishiMichael
a6675eb043
Some small refactors 2022-01-29 14:35:27 +08:00
YishiMichael
5d2dcec307
Fix color-related bugs 2022-01-29 14:05:52 +08:00
YishiMichael
6c39cac62b
Remove redundant attribute 2022-01-28 01:19:02 +08:00
YishiMichael
831b7d455c
Handle explicit color-related commands 2022-01-27 23:09:05 +08:00
Grant Sanderson
c315300ff1
Merge branch 'master' into master 2022-01-26 08:54:18 -08:00
Grant Sanderson
a770291053 Include style in MTex.get_mobjects_from 2022-01-26 08:20:38 -08:00
YishiMichael
942a7e71b8 Update MTex 2022-01-26 23:46:13 +08:00
YishiMichael
e8205a5049 Some refactors for MTex 2022-01-26 13:03:14 +08:00
Michael W
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
Michael W
155839bde9
Add unbreakable_commands parameter 2021-12-13 12:46:29 +08:00
Michael W
6821a7c20e
Handle empty strings 2021-12-07 14:12:08 +08:00
Michael W
00f72da493
Some small refactor 2021-12-07 13:17:48 +08:00
Michael W
744916507c
Add a debugging method 2021-12-07 12:55:52 +08:00
Michael W
88d863c1d7
Support get_tex() for submobjects of MTex 2021-12-07 00:34:07 +08:00
Michael W
4631508b7d
Add get_tex() method 2021-12-06 13:48:17 +08:00
Michael W
8803088121
Fix bugs concerned with child environments 2021-12-06 09:44:59 +08:00
Michael W
1d466cb299
Add Exception for indices_of_part() 2021-12-05 22:17:09 +08:00
Michael W
17d31045b2
Add TransformMatchingMTex 2021-12-05 11:45:42 +08:00
Michael W
950466c1da
Some refactors 2021-12-05 10:21:55 +08:00
Michael W
8b1715379d
Some small refactors 2021-11-29 09:48:00 +08:00
Michael W
2501fac32f
Some small refactors 2021-11-29 09:38:48 +08:00
Michael W
1aec0462ec
Some small refactors 2021-11-29 01:43:48 +08:00
Michael W
83c70a59d8
Sort superscripts and subscripts in submobjects 2021-11-29 01:15:38 +08:00
Michael W
758f2ec236
Some small refactor 2021-11-28 23:38:12 +08:00
Michael W
e8ebfa312b
Prevent infinite loops from unexpected inputs 2021-11-28 13:26:54 +08:00
Michael W
dae24891fa
Add get_all_isolated_substrings method 2021-11-28 13:03:33 +08:00
Michael W
a4f9de1ca1
Fix bugs concerned with coloring 2021-11-28 12:14:29 +08:00
Michael W
697028cd4c
Add slicing and indexing methods 2021-11-27 23:07:46 +08:00
Michael W
c84acc0023
Remove disabled methods 2021-11-27 19:53:52 +08:00
Michael W
13a5f6d6ff
Add MTex 2021-11-27 16:19:01 +08:00