Commit graph

70 commits

Author SHA1 Message Date
YishiMichael
cbb7e69f68
Refactor LabelledString and relevant classes 2022-04-18 18:47:57 +08:00
YishiMichael
0e0244128c
Refactor LabelledString and relevant classes 2022-04-17 13:57:03 +08:00
YishiMichael
4f5173b633
Adjust typing 2022-04-16 15:45:55 +08:00
YishiMichael
58127e7511
import Iterables 2022-04-16 15:34:32 +08:00
YishiMichael
b387bc0c95
Adjust typings 2022-04-16 15:29:23 +08:00
YishiMichael
654da85cf6
Adjust typings 2022-04-16 14:09:59 +08:00
YishiMichael
ac4620483c
Support flexible selector types 2022-04-16 12:53:43 +08:00
YishiMichael
4690edec3e
Refactor LabelledString 2022-04-16 00:24:55 +08:00
YishiMichael
a1e77b0ce2
Refactor LabelledString 2022-04-15 23:58:06 +08:00
YishiMichael
dbefc3b256
Refactor LabelledString 2022-04-15 23:30:42 +08:00
YishiMichael
14dfd776dc
Refactor LabelledString 2022-04-15 23:26:41 +08:00
YishiMichael
0a810bb4f1
Refactor LabelledString 2022-04-15 22:54:06 +08:00
YishiMichael
020bd87271
Add back base_color attribute 2022-04-15 13:27:50 +08:00
YishiMichael
eec6b01a72
Refactor labelled_string.py 2022-04-14 21:07:31 +08:00
YishiMichael
0c1e5b337b
Support passing in complete environment tags 2022-04-13 22:51:55 +08:00
YishiMichael
bff9f74b04
Prevent from passing an empty string 2022-04-12 23:19:10 +08:00
YishiMichael
9ef9961d0e
Sort imports 2022-04-12 19:19:59 +08:00
YishiMichael
12bfe88f40
Some refactors 2022-04-11 23:44:33 +08:00
YishiMichael
e23f667c3d
Fix bug when handling multi-line tex 2022-04-10 08:36:13 +08:00
YishiMichael
557707ea75
Support substring and case_sensitive parameters 2022-04-07 00:46:41 +08:00
YishiMichael
93f8d3f1ca
Some refactors on LabelledString 2022-04-06 22:38:33 +08:00
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