868 Commits

Author SHA1 Message Date
05bee011d2 chore: update type hint of SVGMobject 2022-02-16 20:37:07 +08:00
9f3b404df6 resolve conflict and add type hints for it 2022-02-16 11:46:55 +08:00
97ca42d454 Merge pull request #1745 from YishiMichael/master
Reorganize inheriting order and refactor SVGMobject
2022-02-15 10:05:53 -08:00
0bb9216c14 Update hash_obj method 2022-02-15 21:50:14 +08:00
6f9df8db26 Improve hashing algorithm 2022-02-15 21:38:22 +08:00
0cab23b2ba Reorganize inheriting order of SVGMobject 2022-02-15 20:16:15 +08:00
d19e0cb9ab fix: remove import before future 2022-02-15 14:56:00 +08:00
4c16bfc2c0 chore: add type hints to manimlib.mobject 2022-02-15 14:37:15 +08:00
aef02bfcf9 changed hashing 2022-02-15 11:45:17 +08:00
9d04e287d7 Removed init_colors 2022-02-15 10:20:06 +08:00
97c0f4857b Update numbers.py
Added config passing for text
2022-02-15 09:35:10 +08:00
773e013af9 chore: add type hints to manimlib.mobject.svg 2022-02-14 22:55:41 +08:00
61c70b426c remove unnecessary import 2022-02-14 21:43:22 +08:00
9bdcc8b635 style: remove quotes of annotations according to PEP 563 2022-02-14 21:41:45 +08:00
66caf0c1ad chore: only import some classes when type checking 2022-02-14 21:34:56 +08:00
7fb6f352c4 fix: fix some bugs caused by type hints and imports 2022-02-14 20:02:24 +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
9a8aee481d chore: add type hints to manimlib.event_handler 2022-02-13 20:03:05 +08:00
992e61ddf2 style: rename Color type to ManimColor 2022-02-13 19:02:28 +08:00
19187ead06 chore: add type hints to manimlib.mobject.types 2022-02-13 18:56:50 +08:00
e78113373a chore: add type hints to manimlib.mobject.mobject 2022-02-13 15:11:35 +08:00
f9351536e4 minor fixes (#1737) 2022-02-13 11:12: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
baba6929df Implement ImplicitFunction (#1727) 2022-02-07 08:24:40 -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
d2e0811285 import Iterable from collections.abc instead of collections 2022-02-04 10:55:59 +08:00
56e5696163 Update boolean_ops.py 2022-01-31 23:29:36 +08:00
7093f7d02d Some small refactors to MTex (#1723) 2022-01-30 12:42:35 +08:00
fad9ed2df7 Merge pull request #1720 from YishiMichael/master
Handle explicit color-related commands
2022-01-29 08:01:48 -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
2bd25a55fa add back override parameter to init_colors 2022-01-28 00:20:13 +08:00
831b7d455c Handle explicit color-related commands 2022-01-27 23:09:05 +08:00
aa135280ac support <line> tag in SVG 2022-01-27 17:23:58 +08:00
f0160822ba fix bug of ref map 2022-01-27 17:17:19 +08:00
48e07d1817 parse style attribute using tinycss 2022-01-27 17:16:52 +08:00
3ef5899a24 some cleanups 2022-01-27 16:43:45 +08:00
f895455264 add parser for <style> tag of SVG 2022-01-27 16:37:51 +08:00
c315300ff1 Merge branch 'master' into master 2022-01-26 08:54:18 -08:00
8a29de5ef0 Override style for Text 2022-01-26 08:21:00 -08:00
ecb729850a Small style fixes 2022-01-26 08:20:45 -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
ebb75d1235 cached SVGMobject in SingleStringTex with default color 2022-01-26 20:37:44 +08:00
9af23415a2 synchronize SingleStringTex's color to SVGMobject 2022-01-26 20:20:48 +08:00
19778e405a some cleanups 2022-01-26 19:55:47 +08:00
833e40c2d4 fix default style 2022-01-26 19:50:27 +08:00