195 Commits

Author SHA1 Message Date
cbb7e69f68 Refactor LabelledString and relevant classes 2022-04-18 18:47:57 +08:00
0406ef70bb Adjust typings for sounds.py and tex_file_writing.py 2022-04-16 14:37:28 +08:00
09952756ce Support hashing Color type in hash_obj 2022-04-15 13:48:24 +08:00
93790cde64 Add import annotations statement 2022-04-12 20:03:48 +08:00
9ef9961d0e Sort imports 2022-04-12 19:19:59 +08:00
0cf3199578 Adjust return type 2022-04-12 11:26:19 +08:00
f307c2a298 Add type annotations for color.py 2022-04-12 11:13:05 +08:00
705f1a528b Separate functionality of ordinary linear interpolation from that using np.outer on arrays 2022-04-11 10:47:11 -07:00
1f32a9e674 Some fix (#1781)
* fix: reduce warning from numpy

* fix: fix ControlsExample
2022-04-07 10:50:18 +08:00
648855dae0 Merge pull request #1772 from YishiMichael/master
Construct LabelledString base class for MarkupText and MTex
2022-04-04 10:01:13 -07:00
39673a80d7 fix: add missing import of annotations 2022-04-02 22:00:02 +08:00
1cde28838f Merge branch '3b1b:master' into master 2022-03-30 22:02:23 +08:00
c4ea794107 use tqdm to display progress bar for long running SVG triangulations 2022-03-28 03:30:10 +00:00
cfba6c431f revert previous changes - we will refactor using tqdm 2022-03-28 02:55:21 +00:00
e11c5def63 style: some style fixes 2022-03-28 08:05:41 +08:00
a3e4246938 use log.debug and display idx+1 2022-03-27 21:59:49 +00:00
969aa82f04 user feedback for SVGs that take a while 2022-03-26 23:43:11 +00:00
9ac1805e7e Refactor MTex 2022-03-26 20:52:28 +08:00
a9349057ad Merge branch 'master' of github.com:3b1b/manim into video-work 2022-03-22 11:30:25 -07:00
f690164087 Merge branch 'master' into master 2022-03-22 11:00:33 -07:00
7bf3615bb1 Refactor rotation methods to use scipy.spatial.transform.Rotation 2022-03-18 17:11:08 -07:00
bf2d9edfe6 Allow interpolate to work on an array of alpha values 2022-03-16 12:23:51 -07:00
e879da32d5 Specify UTF-8 encoding for tex files (#1748) 2022-02-17 19:09:55 +08:00
4fbe948b63 style: insert an empty line after import 2022-02-16 21:08:25 +08:00
9f3b404df6 resolve conflict and add type hints for it 2022-02-16 11:46:55 +08:00
8cac16b452 Update display_during_execution 2022-02-15 21:59:09 +08:00
719cd8cde3 Remove redundant brackets 2022-02-15 21:54:56 +08:00
6f9df8db26 Improve hashing algorithm 2022-02-15 21:38:22 +08:00
3756605a45 Update display_during_execution 2022-02-15 20:55:44 +08:00
db71ed1ae9 fix: fix type hint of remove_empty_value 2022-02-15 14:38:55 +08:00
3744844efa fix: fix type hint of set_array_by_interpolation 2022-02-15 11:35:22 +08:00
66caf0c1ad chore: only import some classes when type checking 2022-02-14 21:34:56 +08:00
a0ed9edb42 resolve conflict 2022-02-14 14:12:06 +08:00
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
7f8216bb09 chore: replace some iterable with npt.ArrayLike 2022-02-13 15:18:04 +08:00
35025631eb chore: fix type hint of bezier 2022-02-13 12:56:03 +08:00
6e292daf58 chore: add type hints to manimlib.utils 2022-02-12 23:47:23 +08:00
0e4edfdd79 improve config helper (#1721) 2022-01-28 00:16:19 +08:00
e8205a5049 Some refactors for MTex 2022-01-26 13:03:14 +08:00
407c53f97c Have rotation_between_vectors handle identical/similar vectors 2021-11-18 17:52:48 -08:00
fbc329d7ce Small bug fix for angle_between_vectors 2021-11-17 12:49:53 -08:00
82bd02d21f Fix angle_between_vectors, add rotation_between_vectors 2021-11-16 17:08:35 -08:00
0e574882b3 Refactor #1637 (#1650)
* Refactor #1637

* Refactor #1637

* Refactor #1637

* Refactor #1637

* Refactor #1637

* Refactor #1637

* Update config.py

Co-authored-by: 鹤翔万里 <tonycrane@foxmail.com>
2021-10-16 13:04:52 +08:00
4466cfe727 Merge branch 'master' into add_warnings 2021-10-15 12:12:36 -07:00
7425057d9f use rich to log 2021-10-07 17:37:10 +08:00
61aec6051a Use generator in place of list 2021-08-21 17:08:28 -07:00
9a78d13212 get_smooth_quadratic_bezier_handle_points edge case for 2 points 2021-08-21 17:07:49 -07:00
25c5aa2c65 Small stylistic cleanup 2021-08-19 09:18:48 -07:00
1e621e8278 fix: fix typo spelling grammar 2021-08-07 22:25:26 +07:00
f09092024f Merge branch 'master' of https://github.com/3b1b/manim 2021-07-28 23:15:03 +08:00