Commit graph

460 commits

Author SHA1 Message Date
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
Grant Sanderson
a9349057ad Merge branch 'master' of github.com:3b1b/manim into video-work 2022-03-22 11:30:25 -07:00
Grant Sanderson
e812b99594 Re-add necessary imports 2022-03-22 11:07:26 -07:00
Grant Sanderson
f690164087
Merge branch 'master' into master 2022-03-22 11:00:33 -07:00
YishiMichael
e5ce0ca286
Reorganize methods 2022-03-22 20:46:35 +08:00
YishiMichael
a8c2a9fa3f
Clean up code 2022-03-21 23:11:37 +08:00
YishiMichael
cabc1322d6
Clean up code 2022-03-21 23:06:47 +08:00
YishiMichael
c51811d2f1
Except IndexError for MTex.get_part_by_tex 2022-03-21 22:45:06 +08:00
Grant Sanderson
66819f5dbc Add 2d and 3d pianos 2022-03-17 12:00:29 -07:00
YishiMichael
2a0709664d
Add explicit return statement 2022-03-17 11:33:53 +08:00
YishiMichael
de46df78dc
Modify warning message 2022-03-17 10:58:41 +08:00
YishiMichael
2d764e12f4
fix char escaping bug 2022-03-03 21:09:05 +08:00
YishiMichael
d744311f15
add warning for slicing methods 2022-03-03 20:47:44 +08:00
YishiMichael
11af9508f2
add back get_parts_by_text, get_part_by_text methods 2022-03-03 20:38:15 +08:00
YishiMichael
a227ffde05
PEP8: reorder imports 2022-03-02 20:28:26 +08:00
YishiMichael
e0b0ae280e
Allow passing strings to local_configs 2022-03-02 19:59:14 +08:00
YishiMichael
fce38fd8a5
Modify default value of apply_space_chars 2022-03-02 19:52:45 +08:00
YishiMichael
52a99a0c49
Add global_config, local_configs params 2022-03-02 19:34:56 +08:00
YishiMichael
956e3a69c7
Refactor Text 2022-03-02 18:38:24 +08:00
YishiMichael
b06a5d3f23
Refactor Text 2022-02-26 20:31:26 +08:00
TonyCrane
4fbe948b63
style: insert an empty line after import 2022-02-16 21:08:25 +08:00
TonyCrane
05bee011d2
chore: update type hint of SVGMobject 2022-02-16 20:37:07 +08:00
TonyCrane
9f3b404df6
resolve conflict and add type hints for it 2022-02-16 11:46:55 +08:00
YishiMichael
6f9df8db26
Improve hashing algorithm 2022-02-15 21:38:22 +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
Grant Sanderson
602809758e
Video work (#1739)
* Enable setting points to a null list, and adding one point at a time.

* Add refresh_locked_data

* Add presenter mode to scenes with -p option

* Allow for an embed by hitting e during interaction

* Add set_min_height, etc.

* Make sure null parametric curve has at least one point

* Account for edge case where \{ is used in Tex

* Allow for logging notes in wait calls, useful for presenter mode

* Simplify choose, and add gen_choose for fractional amounts

* Default to no top on axes

* Allow match_x, match_y, etc. to take in a point

* Allow wait calls to ignore presenter mode

* Just use math.combo, no caching with choose(n, r)

* Use generator instead of list in bezier

* Bubble init_colors should override

* Account for "px" values read in from an svg

* Stop displaying when writing is happening

* Update the way Bubble override SVG colors
2022-02-13 15:16:16 -08:00
Elisha Hollander
f9351536e4
minor fixes (#1737) 2022-02-13 11:12: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
Grant Sanderson
fad9ed2df7
Merge pull request #1720 from YishiMichael/master
Handle explicit color-related commands
2022-01-29 08:01:48 -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
TonyCrane
aa135280ac
support <line> tag in SVG 2022-01-27 17:23:58 +08:00
TonyCrane
f0160822ba
fix bug of ref map 2022-01-27 17:17:19 +08:00
TonyCrane
48e07d1817
parse style attribute using tinycss 2022-01-27 17:16:52 +08:00
TonyCrane
3ef5899a24
some cleanups 2022-01-27 16:43:45 +08:00
TonyCrane
f895455264
add parser for <style> tag of SVG 2022-01-27 16:37:51 +08:00
Grant Sanderson
c315300ff1
Merge branch 'master' into master 2022-01-26 08:54:18 -08:00
Grant Sanderson
8a29de5ef0 Override style for Text 2022-01-26 08:21:00 -08:00
Grant Sanderson
ecb729850a Small style fixes 2022-01-26 08:20:45 -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
TonyCrane
ebb75d1235
cached SVGMobject in SingleStringTex with default color 2022-01-26 20:37:44 +08:00
TonyCrane
9af23415a2
synchronize SingleStringTex's color to SVGMobject 2022-01-26 20:20:48 +08:00