Commit graph

96 commits

Author SHA1 Message Date
YishiMichael
4a575afdde
chore: Remove unused namespace constants 2022-09-07 13:23:02 +08:00
YishiMichael
ae115d9992
refactor: Remove expansion of <use> elements 2022-09-07 13:19:08 +08:00
YishiMichael
eadf611f1e
fix: fix an incorrect typing 2022-08-22 22:05:33 +08:00
YishiMichael
93265c7341
Remove a twice-defined method 2022-05-30 10:19:52 +08:00
YishiMichael
a73bd5d4fe
Fix popping bug 2022-05-29 16:48:30 +08:00
YishiMichael
97ac8c9953
Expand use elements 2022-05-29 16:26:40 +08:00
YishiMichael
f0447d7739
Small refactors on StringMobject and relevant classes 2022-05-28 21:43:37 +08:00
YishiMichael
22a3bef670
Resolve conflicts 2022-05-28 12:40:29 +08:00
YishiMichael
1596356385
Reuse hash_string function 2022-05-22 10:29:20 +08:00
Grant Sanderson
d9475a6860 Remove unnecessary imports 2022-04-23 10:16:48 -07:00
YishiMichael
cbb7e69f68
Refactor LabelledString and relevant classes 2022-04-18 18:47:57 +08:00
YishiMichael
9ef9961d0e
Sort imports 2022-04-12 19:19:59 +08:00
YishiMichael
93f8d3f1ca
Some refactors on LabelledString 2022-04-06 22:38:33 +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
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
b06a5d3f23
Refactor Text 2022-02-26 20:31:26 +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
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
ecb729850a Small style fixes 2022-01-26 08:20:45 -08:00
TonyCrane
19778e405a
some cleanups 2022-01-26 19:55:47 +08:00
TonyCrane
833e40c2d4
fix default style 2022-01-26 19:50:27 +08:00
TonyCrane
9df53b8a18
fix the bug of M command with more than 2 args 2022-01-26 14:05:01 +08:00
TonyCrane
ff86b0e378
fix the bug of outdated relative_point after command Z 2022-01-26 13:56:42 +08:00
TonyCrane
92adcd75d4
add style support to svg 2022-01-26 13:53:53 +08:00
TonyCrane
6c8dd14adc
some clean 2022-01-26 11:00:57 +08:00
TonyCrane
8db1164ece
some refactors 2022-01-25 21:48:04 +08:00
TonyCrane
790bf0a104
fix typo 2022-01-25 20:25:30 +08:00
TonyCrane
8205edcc4c
fix a small bug 2022-01-25 20:13:20 +08:00
TonyCrane
05b3c9852e
fix add_smooth_cubic_curve_to when have only one point 2022-01-25 20:06:00 +08:00
TonyCrane
925f2e123f
add comments 2022-01-25 19:54:19 +08:00
TonyCrane
565763a2ff
reconstruct path parser 2022-01-25 19:44:42 +08:00
TonyCrane
6a74c241b8
fix bug of node which is not an element 2022-01-25 16:28:23 +08:00
TonyCrane
416cc8e6d5
add warning for unsupported element type 2022-01-25 14:41:11 +08:00
TonyCrane
d694aed452
add support for skewX and skewY transform 2022-01-25 14:40:02 +08:00
TonyCrane
11379283aa
add support for rotate transform 2022-01-25 14:29:47 +08:00
TonyCrane
dd13559b11
replace warnings.warn with log.warning 2022-01-25 14:09:05 +08:00