manim 0.18.0.post0__py3-none-any.whl → 0.18.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of manim might be problematic. Click here for more details.
- manim/__init__.py +3 -6
- manim/__main__.py +18 -10
- manim/_config/__init__.py +5 -2
- manim/_config/cli_colors.py +12 -8
- manim/_config/default.cfg +1 -1
- manim/_config/logger_utils.py +9 -8
- manim/_config/utils.py +637 -449
- manim/animation/animation.py +9 -2
- manim/animation/composition.py +78 -40
- manim/animation/creation.py +12 -6
- manim/animation/fading.py +0 -1
- manim/animation/indication.py +10 -21
- manim/animation/movement.py +1 -2
- manim/animation/rotation.py +1 -1
- manim/animation/specialized.py +1 -1
- manim/animation/speedmodifier.py +7 -2
- manim/animation/transform_matching_parts.py +1 -1
- manim/camera/camera.py +13 -4
- manim/cli/cfg/group.py +18 -8
- manim/cli/checkhealth/checks.py +2 -0
- manim/cli/checkhealth/commands.py +2 -0
- manim/cli/default_group.py +13 -5
- manim/cli/init/commands.py +4 -1
- manim/cli/plugins/commands.py +3 -0
- manim/cli/render/commands.py +27 -20
- manim/cli/render/ease_of_access_options.py +4 -3
- manim/cli/render/global_options.py +9 -7
- manim/cli/render/output_options.py +6 -5
- manim/cli/render/render_options.py +13 -13
- manim/constants.py +54 -15
- manim/gui/gui.py +2 -0
- manim/mobject/geometry/arc.py +4 -4
- manim/mobject/geometry/boolean_ops.py +13 -9
- manim/mobject/geometry/line.py +16 -8
- manim/mobject/geometry/polygram.py +17 -5
- manim/mobject/geometry/tips.py +2 -2
- manim/mobject/graph.py +379 -106
- manim/mobject/graphing/coordinate_systems.py +17 -20
- manim/mobject/graphing/functions.py +14 -10
- manim/mobject/graphing/number_line.py +1 -1
- manim/mobject/mobject.py +175 -72
- manim/mobject/opengl/opengl_compatibility.py +2 -0
- manim/mobject/opengl/opengl_geometry.py +26 -1
- manim/mobject/opengl/opengl_image_mobject.py +2 -0
- manim/mobject/opengl/opengl_mobject.py +3 -0
- manim/mobject/opengl/opengl_point_cloud_mobject.py +2 -0
- manim/mobject/opengl/opengl_surface.py +2 -0
- manim/mobject/opengl/opengl_three_dimensions.py +2 -0
- manim/mobject/opengl/opengl_vectorized_mobject.py +19 -14
- manim/mobject/svg/brace.py +2 -0
- manim/mobject/svg/svg_mobject.py +2 -2
- manim/mobject/table.py +0 -1
- manim/mobject/text/code_mobject.py +2 -0
- manim/mobject/text/numbers.py +2 -0
- manim/mobject/text/tex_mobject.py +1 -1
- manim/mobject/text/text_mobject.py +43 -6
- manim/mobject/three_d/three_d_utils.py +4 -4
- manim/mobject/three_d/three_dimensions.py +4 -4
- manim/mobject/types/image_mobject.py +5 -1
- manim/mobject/types/point_cloud_mobject.py +2 -0
- manim/mobject/types/vectorized_mobject.py +124 -29
- manim/mobject/value_tracker.py +3 -3
- manim/mobject/vector_field.py +3 -1
- manim/plugins/__init__.py +15 -1
- manim/plugins/plugins_flags.py +11 -5
- manim/renderer/cairo_renderer.py +12 -2
- manim/renderer/opengl_renderer.py +2 -3
- manim/renderer/opengl_renderer_window.py +2 -0
- manim/renderer/shader_wrapper.py +2 -0
- manim/renderer/vectorized_mobject_rendering.py +5 -0
- manim/scene/scene.py +22 -6
- manim/scene/scene_file_writer.py +3 -1
- manim/scene/section.py +2 -0
- manim/scene/three_d_scene.py +5 -6
- manim/scene/vector_space_scene.py +21 -5
- manim/typing.py +567 -67
- manim/utils/bezier.py +9 -18
- manim/utils/caching.py +2 -0
- manim/utils/color/BS381.py +1 -0
- manim/utils/color/XKCD.py +1 -0
- manim/utils/color/core.py +31 -13
- manim/utils/commands.py +8 -1
- manim/utils/debug.py +0 -1
- manim/utils/deprecation.py +3 -2
- manim/utils/docbuild/__init__.py +17 -0
- manim/utils/docbuild/autoaliasattr_directive.py +197 -0
- manim/utils/docbuild/autocolor_directive.py +9 -4
- manim/utils/docbuild/manim_directive.py +18 -9
- manim/utils/docbuild/module_parsing.py +198 -0
- manim/utils/exceptions.py +6 -0
- manim/utils/family.py +2 -0
- manim/utils/family_ops.py +5 -0
- manim/utils/file_ops.py +6 -2
- manim/utils/hashing.py +2 -0
- manim/utils/ipython_magic.py +2 -0
- manim/utils/module_ops.py +2 -0
- manim/utils/opengl.py +14 -0
- manim/utils/parameter_parsing.py +31 -0
- manim/utils/paths.py +12 -20
- manim/utils/rate_functions.py +6 -8
- manim/utils/space_ops.py +81 -36
- manim/utils/testing/__init__.py +17 -0
- manim/utils/testing/frames_comparison.py +7 -5
- manim/utils/tex.py +124 -196
- manim/utils/tex_file_writing.py +2 -0
- manim/utils/tex_templates.py +1 -0
- {manim-0.18.0.post0.dist-info → manim-0.18.1.dist-info}/LICENSE.community +1 -1
- {manim-0.18.0.post0.dist-info → manim-0.18.1.dist-info}/METADATA +29 -35
- manim-0.18.1.dist-info/RECORD +217 -0
- manim/cli/new/__init__.py +0 -0
- manim/cli/new/group.py +0 -189
- manim/plugins/import_plugins.py +0 -43
- manim-0.18.0.post0.dist-info/RECORD +0 -217
- {manim-0.18.0.post0.dist-info → manim-0.18.1.dist-info}/LICENSE +0 -0
- {manim-0.18.0.post0.dist-info → manim-0.18.1.dist-info}/WHEEL +0 -0
- {manim-0.18.0.post0.dist-info → manim-0.18.1.dist-info}/entry_points.txt +0 -0
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
manim/__init__.py,sha256=n8Pi3wEcWmuot3Rfu13SxpDHcyWUAi0GX3ANitZiOT0,3568
|
|
2
|
+
manim/__main__.py,sha256=__emqXjiLVfQJPB8aABzve_4v-cxLL8r1osN4vY8A20,1739
|
|
3
|
+
manim/_config/__init__.py,sha256=Lm8-gfk4ESYqr-kJJlY6oNQXnam61xs7HZXZZ1V9RJo,2716
|
|
4
|
+
manim/_config/cli_colors.py,sha256=WJ7xnSalY3CSgUWqodxryuZPVCSji7L7BPYJM0T8Qaw,1819
|
|
5
|
+
manim/_config/default.cfg,sha256=KPJfyC7t8r9_2WMsRWBSk6dZX1qih3NQZQo9TuiJY2M,5394
|
|
6
|
+
manim/_config/logger_utils.py,sha256=LXO-SCuXVYbH67mrUKU6Mm4EqKQ6kIYhoucEF5H3au4,5388
|
|
7
|
+
manim/_config/utils.py,sha256=oeBkLrfrusNRnBuYRME4dixEYqq-9l_O27b0ih6R4TA,62440
|
|
8
|
+
manim/animation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
+
manim/animation/animation.py,sha256=jkpOCOz5gXf1SGikjxBcxi5CCdkacuodoXBRzXYpV-Q,20285
|
|
10
|
+
manim/animation/changing.py,sha256=GdksMFYiXcl_6X3Hnjfr-SNiHJ9W2hQOcuBFj1beuFk,5523
|
|
11
|
+
manim/animation/composition.py,sha256=Lu0Eju9rx1kyt0pLvjKdjCMi6vcQHa-QoLw-6AMnLJs,15339
|
|
12
|
+
manim/animation/creation.py,sha256=dv_TveBjGPYSiwMcVWH7X8LU8oRjiyTYY9e5M7TANEs,20397
|
|
13
|
+
manim/animation/fading.py,sha256=KVaC83USQLg50eA1IbT08vstO3RfN2RNLSFQxxpCQ_U,5823
|
|
14
|
+
manim/animation/growing.py,sha256=pEUwKG8UPFNpi1pFJBu6dpvIQr91kXos0oQfVgsLaOI,7154
|
|
15
|
+
manim/animation/indication.py,sha256=Nrqxq5kgclw8NipOsGqtBOheFIh4gpMiUoKmuhhrzms,20829
|
|
16
|
+
manim/animation/movement.py,sha256=_g6wBobHEsT7x2dux39IGAX5K6joM0NajxnNa6Ge8dU,5062
|
|
17
|
+
manim/animation/numbers.py,sha256=FmpuRQZ6UB_IUJ8eUwHIpBz9dsZnGumIwjlLVc4wQsQ,1427
|
|
18
|
+
manim/animation/rotation.py,sha256=XrS05Zmi1O1Ll18fR29dCax_OHhZ82TbNLgJpFDFqGo,3229
|
|
19
|
+
manim/animation/specialized.py,sha256=-OQS3Ue5Y2nYNt3SnRsMs-KBk9ym9QXos-8ts1vL0a8,2923
|
|
20
|
+
manim/animation/speedmodifier.py,sha256=aACo5cFfHr7lis0C2iNYl6ahnF8hB2Hyd5sLXWFjCIw,9882
|
|
21
|
+
manim/animation/transform.py,sha256=HQW36dAwmx96zPRkEaT-uV3t7rK83IRSmME3FOY2I_M,30617
|
|
22
|
+
manim/animation/transform_matching_parts.py,sha256=XqmnjQxy1EdD5a8N_SCWiL9NfHNWY7ZdDxxRp_uq0Pc,10413
|
|
23
|
+
manim/animation/updaters/__init__.py,sha256=jgKFveRzPwFLbVHkTfJrv3qDIrgD-yuFKYsMRkwpPJc,169
|
|
24
|
+
manim/animation/updaters/mobject_update_utils.py,sha256=dJ2pNL0_1zYmA0FYiUC2rjaJyFsE6T5sjmTgzWpKn6k,6653
|
|
25
|
+
manim/animation/updaters/update.py,sha256=FDiqMrQDU6BxXa4WXfOEahIUSE2haZ6vO4j_xL_XYbM,1719
|
|
26
|
+
manim/camera/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
27
|
+
manim/camera/camera.py,sha256=nZTIFlXokh4tOQs9KtZs0ElZA3owSBag4HeXswo7Mfs,45478
|
|
28
|
+
manim/camera/mapping_camera.py,sha256=x0xmSiSwEH2so8bAfxIUW_l6ZdfxYD1FFDktZhFCLP8,4995
|
|
29
|
+
manim/camera/moving_camera.py,sha256=D1EIEqnHtWodqyZtO9AMiZ-IMQP2G4ZfMe9nm9kwy_A,8102
|
|
30
|
+
manim/camera/multi_camera.py,sha256=IbD0O_-MQgbuXhsODB8VU-19w1ExSEVxJXMw2tRccBQ,3382
|
|
31
|
+
manim/camera/three_d_camera.py,sha256=a8V1W7dqa-NuNoqiRdpWYlyE65rPxvoHKonKIPG-ggM,14744
|
|
32
|
+
manim/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
33
|
+
manim/cli/cfg/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
34
|
+
manim/cli/cfg/group.py,sha256=BIlZQsTwiSHbFPVtcE2nhRu8kz2guPdp3Y1W-QAn9qY,9823
|
|
35
|
+
manim/cli/checkhealth/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
36
|
+
manim/cli/checkhealth/checks.py,sha256=V6OCHZI8ITbWfkbs2D4oxciDtm_rlUDSRJyNRfs7Jfw,6109
|
|
37
|
+
manim/cli/checkhealth/commands.py,sha256=vCMIiwk-Fkur5cbai-d_e-sFZrcPCjbhEG63TBy0RKU,2794
|
|
38
|
+
manim/cli/default_group.py,sha256=3LbAIaV-2Yyiygvy1dyo2Pokzaia4ktz43WvHF8MeE0,2458
|
|
39
|
+
manim/cli/init/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
40
|
+
manim/cli/init/commands.py,sha256=ydqtDujaP_XQJTX1Hd8JXSPSPkndTC3WOjURrufj5zs,5901
|
|
41
|
+
manim/cli/plugins/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
42
|
+
manim/cli/plugins/commands.py,sha256=ERSZDMkyw_wtVzFya-_HAzbEm4FMVxlI6dW3XIOZZpo,710
|
|
43
|
+
manim/cli/render/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
44
|
+
manim/cli/render/commands.py,sha256=gKLYcyG96iLBJ8q64Ty-6TeLhYeZPp9t6HAYEc3d9t4,4985
|
|
45
|
+
manim/cli/render/ease_of_access_options.py,sha256=rHc4hczj3PkC8ISSoFxqavCcdP1wcLLwg_CIGGLpWGs,1046
|
|
46
|
+
manim/cli/render/global_options.py,sha256=VkAJOpyYC6mSI0EAnv9-W5dXIjeXafF36JnI07aYAGs,3058
|
|
47
|
+
manim/cli/render/output_options.py,sha256=j4CtQmo62h3DDHW7G1IBPuwFAMuXa2DiRscWnZYEb3w,1052
|
|
48
|
+
manim/cli/render/render_options.py,sha256=oE8Slz7Bfq3sw0rmwWJg0FY4ROFVx6AIfdO0Ata0HCA,3840
|
|
49
|
+
manim/constants.py,sha256=Bjs04QSAj3JetqqsbXQDlCn0yXmVdt45r59mQnAKi7Y,8304
|
|
50
|
+
manim/gui/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
51
|
+
manim/gui/gui.py,sha256=VucH_fhq3KiR-hvSfSxTK609EJpJgHfJ_dIn2kCPsVU,2702
|
|
52
|
+
manim/mobject/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
53
|
+
manim/mobject/frame.py,sha256=zGFMMmMtgYwnXX47DLJs3qaCCE-NPFyAjfV0NTzHEb8,878
|
|
54
|
+
manim/mobject/geometry/__init__.py,sha256=2coukoxKXDE6LmqDDcF_chBZPYYb6oe3y4T8duV8Lvk,191
|
|
55
|
+
manim/mobject/geometry/arc.py,sha256=90-1x2MfPaFNGHeXY1BvReUvjAoNjF9BQ_RfOdLwn-8,42027
|
|
56
|
+
manim/mobject/geometry/boolean_ops.py,sha256=9kFNXfa2qfPZQcZSNW6a_CVyFF1aUBIGaKw8OdkXYZc,10164
|
|
57
|
+
manim/mobject/geometry/labeled.py,sha256=TRB45DnYjekHF5WWPNa_yDtbE4YRDRp6-UnGhyjRS8U,5560
|
|
58
|
+
manim/mobject/geometry/line.py,sha256=qU0Ho-S54fS2OyXh5g64t4sEoU-8RLFr8uPptH7IyXw,37352
|
|
59
|
+
manim/mobject/geometry/polygram.py,sha256=SHuNJAiCmVJJDAqXtG5iEaulp8mEOc2VkYz4_6vLsb8,24317
|
|
60
|
+
manim/mobject/geometry/shape_matchers.py,sha256=ATKg33IljjXMPwAGRH0XnbNxDM72tlL_aEMn-5yIKoU,6132
|
|
61
|
+
manim/mobject/geometry/tips.py,sha256=3N2vfgCENlkWefnb9W2g7WGPpyR8pLk9awiXF3srpsw,10037
|
|
62
|
+
manim/mobject/graph.py,sha256=ZDpy0YItsXOmlu7hkz6CX63GQaVyVAnfsxbsadpSx-8,64657
|
|
63
|
+
manim/mobject/graphing/__init__.py,sha256=Lf9tyLlxTBckPLMI7ZACu8YxRrsMExOoqpi-657OMQ8,213
|
|
64
|
+
manim/mobject/graphing/coordinate_systems.py,sha256=ZehppXoiYhlUXA0G6ZbJqNNKToUGUoKB4yos-u2wipI,116878
|
|
65
|
+
manim/mobject/graphing/functions.py,sha256=Uf1yPrMVeEvojCyk1uMuQADDLrhB7XRLloCr3MI2b6w,10652
|
|
66
|
+
manim/mobject/graphing/number_line.py,sha256=Slykv1TzOsSTCpu4X3ZmZATl2MCMejY2_7sr3YovZ2o,23734
|
|
67
|
+
manim/mobject/graphing/probability.py,sha256=ugLpuW8Dya8mD5AIweB8Sfa_EVOeLEHTWa0ZxVFJEJM,17608
|
|
68
|
+
manim/mobject/graphing/scale.py,sha256=t7zw4RCJRqAzbYKagpfRXS_1AXhecPMnXrBjFGCPB1g,5145
|
|
69
|
+
manim/mobject/logo.py,sha256=j7qxkyAXEN9LS4rhaXW0nOrNbZ7TMG1BkyS2El1-SYo,14232
|
|
70
|
+
manim/mobject/matrix.py,sha256=V9ErLEwn8pD6oTh2AioDkPVBwKNINVcOEXJKIWv2dDM,19553
|
|
71
|
+
manim/mobject/mobject.py,sha256=pUBdd8gzLfvedQvMCSvV8tZ7oZLOrxK0allZcR0NPj4,101450
|
|
72
|
+
manim/mobject/opengl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
73
|
+
manim/mobject/opengl/dot_cloud.py,sha256=QrsRx_nbCn6-1TsYtKyCvkhHCgJ3PNs-bRz1EHDoNeE,1474
|
|
74
|
+
manim/mobject/opengl/opengl_compatibility.py,sha256=y-BoiXutCuHugAnTNdv0fekL3-LTzjhoYJouB7JwpOk,1589
|
|
75
|
+
manim/mobject/opengl/opengl_geometry.py,sha256=09yASZ6EHnWpCK6E-Bmdw51bRDPN6BfqnXb3yMBawKo,27223
|
|
76
|
+
manim/mobject/opengl/opengl_image_mobject.py,sha256=Z50cZ5IzhjxMnFwfKHr67EHX8LtGEJchJXVcS2oIWbE,2493
|
|
77
|
+
manim/mobject/opengl/opengl_mobject.py,sha256=KfloxNJ8ZbH0Ihfypw8yB6toPNf4UObT4__NHSYwzEY,95245
|
|
78
|
+
manim/mobject/opengl/opengl_point_cloud_mobject.py,sha256=LsmoKmcWnosVBOPSx3RlAQ1BTlplqnoV_J2BbSggMD0,6270
|
|
79
|
+
manim/mobject/opengl/opengl_surface.py,sha256=f0epUDtCFECYJmrUZXQWEO0iGhRHgZSnO6GSKnxCBQo,16194
|
|
80
|
+
manim/mobject/opengl/opengl_three_dimensions.py,sha256=_MfDmxNGi6F5jgMTCwV9vHxaUAM_jnTaoELL1pv0pUU,1788
|
|
81
|
+
manim/mobject/opengl/opengl_vectorized_mobject.py,sha256=gOXyrXN9kRCDZfAq7VI40MaZq0eGPgMDcaDRuw2ZucU,64669
|
|
82
|
+
manim/mobject/svg/__init__.py,sha256=j8-PFkUAsx4E-e7AHm3CoMjo22VlKzPORQAsyFWnSd4,130
|
|
83
|
+
manim/mobject/svg/brace.py,sha256=4e8kn6WAT3rDyjWUt1dJOsXRIe0CZQzl6iG3jFI4rLs,12332
|
|
84
|
+
manim/mobject/svg/svg_mobject.py,sha256=nxaltkOCOP5f-0XWpyNUN_M74hCIu3cmUAAVuIwvjpo,20937
|
|
85
|
+
manim/mobject/table.py,sha256=JwLe3QhrVlsAyjQdngZ2kiUy9TkDiI1_kttnjFgTv_I,41859
|
|
86
|
+
manim/mobject/text/__init__.py,sha256=AwHG8zeX2Hycw8oG2HacdHmhpH24QQDnHXTlAmVdgU0,188
|
|
87
|
+
manim/mobject/text/code_mobject.py,sha256=vaIpgkkSfJ27ebVncbxQxD2dKASOPanTMhrRO77fUi4,23669
|
|
88
|
+
manim/mobject/text/numbers.py,sha256=5Y6q8_GABq7OCpHxJtaK2Wo3lkd6XwqyAxSGglta7Eg,16904
|
|
89
|
+
manim/mobject/text/tex_mobject.py,sha256=E3U0kqJnzFeUfrEnvBlmS52U_uomNTWwAIWEEQXzrow,17940
|
|
90
|
+
manim/mobject/text/text_mobject.py,sha256=k1rbHoVO_jTJzWnXmjSV9VObIKLV0rhKyrXD77K1JHo,58599
|
|
91
|
+
manim/mobject/three_d/__init__.py,sha256=yiscdLu12eEoygyGp05V789zhouqEADin7owAkC9yU4,154
|
|
92
|
+
manim/mobject/three_d/polyhedra.py,sha256=FJrx5Pp5K9d_L24SAHfLemucJ9c4D1PznILzw0PQ9fw,12493
|
|
93
|
+
manim/mobject/three_d/three_d_utils.py,sha256=l-z9K2i6-47_1InV1CUpkA1albzTTWKv5peHkceyDG4,2099
|
|
94
|
+
manim/mobject/three_d/three_dimensions.py,sha256=rCtzEMkmp0ZxoM7fbkRJr-XgECkYQVx9epMh856o1wg,37960
|
|
95
|
+
manim/mobject/types/__init__.py,sha256=H-S04JNHysKk9Obs2tctXVoTyIzDL7JnZqqHt1GuWSY,172
|
|
96
|
+
manim/mobject/types/image_mobject.py,sha256=BvBy1IC2UglphqSqdfF-RZ61bc2fRsQ3OIfZ8XTN5lA,11631
|
|
97
|
+
manim/mobject/types/point_cloud_mobject.py,sha256=DSu_BwChi8d8CIGax4rQpvUxU-_DUbZ5n83ztCPRHzI,12151
|
|
98
|
+
manim/mobject/types/vectorized_mobject.py,sha256=YWQEPvfCkiIZHK-4js6HZuzrqe0sKCM8KUC7ZROlbAE,92298
|
|
99
|
+
manim/mobject/utils.py,sha256=jp5aKkECeRu_0lrIhFuW7QGP4vei3vMNolruK4ik5kQ,3273
|
|
100
|
+
manim/mobject/value_tracker.py,sha256=pXKZlviqTimflVK8toNOcOiTfucD5Or2u9-d1duTJV0,6334
|
|
101
|
+
manim/mobject/vector_field.py,sha256=TRLo0EfIm5Tz7VZ7RvZbS2njVL20rrKDV8c9Qw0_Ah8,39581
|
|
102
|
+
manim/opengl/__init__.py,sha256=0c5YcbaiITuYAmvvaBBM4Usye0fSLCyP4LtGuF5tq5M,560
|
|
103
|
+
manim/plugins/__init__.py,sha256=ZPUzM0gGNDUVAgQ4mYXVXKR7gIkpk25l_qk0s3PaJQY,376
|
|
104
|
+
manim/plugins/plugins_flags.py,sha256=ftQtgPFc3YH4cpDqxA3M3qlBfIianoeYU5lKUV4MV6A,691
|
|
105
|
+
manim/renderer/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
106
|
+
manim/renderer/cairo_renderer.py,sha256=2jpNVOCEKrH6l7efj4A_RhFR1ik9He2-fsawULwVdKs,9169
|
|
107
|
+
manim/renderer/opengl_renderer.py,sha256=IpUxoLqvjLLlB5MxIpZTx6Ucz8IBkWfybzT03ciB0-Q,20789
|
|
108
|
+
manim/renderer/opengl_renderer_window.py,sha256=HajngInbCVRh83Gv1HqPC6npDZGVktPRaaP2AfB12p0,4909
|
|
109
|
+
manim/renderer/shader.py,sha256=tow0aGXq-ZMijmhJ8oaSNUQPa5aXerRe2FzXrVagZDc,14708
|
|
110
|
+
manim/renderer/shader_wrapper.py,sha256=t8eK-14FvZeV9LghH5eznWhB7LEHhe6tm2qu0kDuSd8,5915
|
|
111
|
+
manim/renderer/shaders/default/frag.glsl,sha256=FEQmM7RUwcZlxPu5lkDcEXoyR2EfKjNC9hpaPce_ZBE,98
|
|
112
|
+
manim/renderer/shaders/default/vert.glsl,sha256=0thKIk9CzuSLGLh-6RyvFZDsnoSTpVC0v2WNjryMGIM,232
|
|
113
|
+
manim/renderer/shaders/design.frag,sha256=drjgYTVETgocxxw1HqCK7Dc3WPS8kYMy4jmhwRy7EDY,216
|
|
114
|
+
manim/renderer/shaders/design_2.frag,sha256=0TbGy2iXwHeYVaevH7q3VH0AVM54KpONdl9bW4CO1iU,961
|
|
115
|
+
manim/renderer/shaders/design_3.frag,sha256=UlSV0TmcuYmG5EmtNZQgU4kWo0j7neByEClwbXD0h6w,1301
|
|
116
|
+
manim/renderer/shaders/image/frag.glsl,sha256=UZ7Yym-2tpEnnwXpD_-SIOXqt8cNTxnCzFoUUeRyRS0,200
|
|
117
|
+
manim/renderer/shaders/image/vert.glsl,sha256=Hfu3lyryOu5MvS0noJYlV-0vwOG7tNUFkZKMjVfg658,459
|
|
118
|
+
manim/renderer/shaders/include/NOTE.md,sha256=QKht_AYgi0FgRsD1HiG-AUZZPqEAloaJK64GgkuN8mY,582
|
|
119
|
+
manim/renderer/shaders/include/add_light.glsl,sha256=Me-idksLiLW9ORe5mmekgak1RL3m2-J_Yftcql9nDrY,1600
|
|
120
|
+
manim/renderer/shaders/include/camera_uniform_declarations.glsl,sha256=--B_TrdWpq6sVs-gK7yrkJYIXmSkPE_k_27NNs6mOoE,254
|
|
121
|
+
manim/renderer/shaders/include/finalize_color.glsl,sha256=8CeC46PTrNA3LB4SolWw_EHdz87H4pFmm3-r5iysDz8,1864
|
|
122
|
+
manim/renderer/shaders/include/get_gl_Position.glsl,sha256=qaeeXlQOIBZisRC3scExg1LoFpOxHXTqbZYclIPbVac,1245
|
|
123
|
+
manim/renderer/shaders/include/get_rotated_surface_unit_normal_vector.glsl,sha256=76EfKsK1vwuNa7_9hgw-W_Cx3iZ3zpVY4KA6Fa69Gw0,551
|
|
124
|
+
manim/renderer/shaders/include/get_unit_normal.glsl,sha256=bmASU8UvsWunNcj-kdtJKjhBNLvG5pUdYn4iDOzg1Tw,773
|
|
125
|
+
manim/renderer/shaders/include/position_point_into_frame.glsl,sha256=4KMgtO2xlaASeR6uD2GKJMfAi7fuiYL32u_rFKtF5IE,742
|
|
126
|
+
manim/renderer/shaders/include/quadratic_bezier_distance.glsl,sha256=ujrpryJfKH_MY5SAd4a8T4U_ZLX1o0bBu6DdmTkOxTc,2853
|
|
127
|
+
manim/renderer/shaders/include/quadratic_bezier_geometry_functions.glsl,sha256=pjQQjecQOugsoZgN2cXY5HKG1uME6rJ0EDqFJgCqX7k,2747
|
|
128
|
+
manim/renderer/shaders/manim_coords/frag.glsl,sha256=FEQmM7RUwcZlxPu5lkDcEXoyR2EfKjNC9hpaPce_ZBE,98
|
|
129
|
+
manim/renderer/shaders/manim_coords/vert.glsl,sha256=GMKQNT4YTWiHaeo8Vt5YfaFqJaeukEVxz4rYM1E1fRM,287
|
|
130
|
+
manim/renderer/shaders/quadratic_bezier_fill/frag.glsl,sha256=YTMxssSBy9Jw4-7M55L2pX0CdUW0h9cButmIuP8X9Uw,1836
|
|
131
|
+
manim/renderer/shaders/quadratic_bezier_fill/geom.glsl,sha256=jKXzyZ884bdmcl0SOSHD6xiRY1Oz6OTEWAcDPXUqLrc,3544
|
|
132
|
+
manim/renderer/shaders/quadratic_bezier_fill/vert.glsl,sha256=ZqPIgPAO_vADjfdyurk7GFDUyv85bG0nCAyYEsK4R-c,523
|
|
133
|
+
manim/renderer/shaders/quadratic_bezier_stroke/frag.glsl,sha256=Y5hLAhwygRIWtS-mq2kNYFae99cxRaAOfBap4gVpt3A,2683
|
|
134
|
+
manim/renderer/shaders/quadratic_bezier_stroke/geom.glsl,sha256=DkQZVQiOLS_-3IW02L7shkGT4DMdEwmZ5IObW3UQipE,9059
|
|
135
|
+
manim/renderer/shaders/quadratic_bezier_stroke/vert.glsl,sha256=tKhrGSFDRvbzE8Tuq7HBX28Po5aBpL4Imxq2lvmas-Y,743
|
|
136
|
+
manim/renderer/shaders/simple_vert.glsl,sha256=TbktrXHFjx_E3hh_pIhdRB49wP0lBjwVr3pVhSM9ZBE,296
|
|
137
|
+
manim/renderer/shaders/surface/frag.glsl,sha256=89jqCkBp-f7ulliICIBQVD-6rlXmzLEOalSvrxbLJY4,396
|
|
138
|
+
manim/renderer/shaders/surface/vert.glsl,sha256=I7JTYje09VTPmkQY6aYtO8oE0FjoTBeQVUgRY6MSkDo,567
|
|
139
|
+
manim/renderer/shaders/test/frag.glsl,sha256=vE4h2JLaY4XKgnFLZg5x07jBnLG-Z5YyzVb189yUzsA,96
|
|
140
|
+
manim/renderer/shaders/test/vert.glsl,sha256=_rTflweplsaDNDY0vm70K0wUtzELbeauOS7Kx_fCc3U,152
|
|
141
|
+
manim/renderer/shaders/textured_surface/frag.glsl,sha256=7HHOlQC0jEN1R7N0frUpPOqSHj8PZZHaOUdsd_tfF2A,956
|
|
142
|
+
manim/renderer/shaders/textured_surface/vert.glsl,sha256=11ZxiIDxJiOev3LRpnhH57KKHI7jZri8egaYm9RfGt0,647
|
|
143
|
+
manim/renderer/shaders/true_dot/frag.glsl,sha256=IN4GuJBmwr17IBgxNg-mPzkwOEQV2ggUCSxbbMft3Ec,791
|
|
144
|
+
manim/renderer/shaders/true_dot/geom.glsl,sha256=Dyzn7dmICA6-zH_aNATBiq_Omt6U2UF4MBG9gstogrw,1101
|
|
145
|
+
manim/renderer/shaders/true_dot/vert.glsl,sha256=LUYkOS-WYj8DEb0CcyWPovslevus81-cgbspJVraY_o,362
|
|
146
|
+
manim/renderer/shaders/vectorized_mobject_fill/frag.glsl,sha256=UFVAChopcw4nrEUnPywV9rjFohY2_RTe3qQermGhBbo,324
|
|
147
|
+
manim/renderer/shaders/vectorized_mobject_fill/vert.glsl,sha256=uAvuQoulD_2nJ9JxvnutM4saFke2mTpU3c46_2ZC6lw,435
|
|
148
|
+
manim/renderer/shaders/vectorized_mobject_stroke/frag.glsl,sha256=Rgbdwi-UVQyTmikHYQioo8vnt9hInA4TIzebBARzoX4,2720
|
|
149
|
+
manim/renderer/shaders/vectorized_mobject_stroke/vert.glsl,sha256=yOKnXHyDKJ805_RveoLLVJFUXRF0HKBBRfKkjjRaebY,4430
|
|
150
|
+
manim/renderer/shaders/vertex_colors/frag.glsl,sha256=nGY9iyvoYy9pfjtiFDsZ1TFQsXHQ2kkz0S0Imgl2kO4,93
|
|
151
|
+
manim/renderer/shaders/vertex_colors/vert.glsl,sha256=I1HQwwKS0pmnfVnLAMAXsUJY4ynXf7ha3CaZuSkPshI,281
|
|
152
|
+
manim/renderer/vectorized_mobject_rendering.py,sha256=5JwmZKGRQEZWYIkdejbJeeKhHDzdIXwRZPnND0MXnCw,9391
|
|
153
|
+
manim/scene/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
154
|
+
manim/scene/moving_camera_scene.py,sha256=Vg5I6Zd_kG27JNi14dphwkOXK8UU2E0cQ1l188FDQuw,3765
|
|
155
|
+
manim/scene/scene.py,sha256=ql_SpsmbhiHRhcZx2LAtYz1U8Cbg8wYHI_SSdZJU7Bc,60976
|
|
156
|
+
manim/scene/scene_file_writer.py,sha256=igLNh7bQ-UdZOkBiWleGMFzqsm1hy2s1eGerDdZGnoo,26306
|
|
157
|
+
manim/scene/section.py,sha256=qV-dj0rttQnR32clhAiHoMnnbRja0VbKI0-xd0Yi7KQ,3674
|
|
158
|
+
manim/scene/three_d_scene.py,sha256=OAuoZdhbZt__OMWaI-e0vtEzIa3llfJUFWWs8RXr0DA,19730
|
|
159
|
+
manim/scene/vector_space_scene.py,sha256=23moVIPdBswuhNxylXgOnsWdg2JL1ltrd3-whHFcD3Q,38322
|
|
160
|
+
manim/scene/zoomed_scene.py,sha256=eC6WO8OYOT-V7REtUlhXdqTyI9HrdPWFOnlY90blEUA,6980
|
|
161
|
+
manim/templates/Axes.mtp,sha256=gfMRnB0PjXF0m6u9IcbI_pm48eDqxCkylKICWdDAP-M,313
|
|
162
|
+
manim/templates/Default.mtp,sha256=AHqIgMY-rjIHaeuFSgi4n2KXaLORmACjTdPhUnFgZdY,547
|
|
163
|
+
manim/templates/MovingCamera.mtp,sha256=NLiT2ZPutKTzt8As2gDJDqXMBNB8d-7Y3PFXS0HhMas,327
|
|
164
|
+
manim/templates/template.cfg,sha256=XKiKX2mMT7x_3-EiPKAhHUpuiW_K4_RU6Iu1ZYOzQzw,134
|
|
165
|
+
manim/typing.py,sha256=z94gtPKB4sL4c7ZFboRZXcETFM4mX3zBzpbj3ytedW8,15987
|
|
166
|
+
manim/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
167
|
+
manim/utils/bezier.py,sha256=XhuwdxXG8tAJEp4dTk-8eyr9hkQF2v9E_yM3i9A8z8E,23876
|
|
168
|
+
manim/utils/caching.py,sha256=4zyXKpOLk9noW7Ul6g74haXkqezuRwENIdf-kpKjgL0,2744
|
|
169
|
+
manim/utils/color/AS2700.py,sha256=Not0hoeAELGcbS_kKCfbnrH3UQldZurciuhLi9MejX4,8707
|
|
170
|
+
manim/utils/color/BS381.py,sha256=QaMt6keXSWgXPuBrXNxfGqEpYojVE69db28BFV1Mj7U,11014
|
|
171
|
+
manim/utils/color/X11.py,sha256=O9FDhHtFQo6jIqbSfzZBgRjNddrLVwSsJE8OyraefvU,17665
|
|
172
|
+
manim/utils/color/XKCD.py,sha256=B9xNkRXRbcRN1imIupP-pq-iRhvfGE0G0-NPLEAkR_Y,32614
|
|
173
|
+
manim/utils/color/__init__.py,sha256=PBlfF4pQp_jXogZlzWihcsimNWQ9qEubcuZvleMmHZg,1222
|
|
174
|
+
manim/utils/color/core.py,sha256=77gQulGdzFY0mhMdMmmZvu_PpCzCESoKwwDOi_W4Zmo,32935
|
|
175
|
+
manim/utils/color/manim_colors.py,sha256=5eo-KIpEZZw1-USS7ecgF1lyboR_okBtka9iUEIgbvE,6858
|
|
176
|
+
manim/utils/commands.py,sha256=_Vl_mAZ5COvlXtS6yvbJb9DBY39BEo5e6WMpMQcbjW4,1310
|
|
177
|
+
manim/utils/config_ops.py,sha256=LeeZXTxEHqzbzML1kuBe9VxEDz9chPfRlMWFkUSDrOA,2101
|
|
178
|
+
manim/utils/debug.py,sha256=vN7Nr6wJ2V2g-au82iQ-O_xk-0uId891t2wdLvJSdLM,2233
|
|
179
|
+
manim/utils/deprecation.py,sha256=xlvrOFXyzY65cdE5pE0nPanYfFdAfb9iy6y-dO4e_3Q,15072
|
|
180
|
+
manim/utils/docbuild/__init__.py,sha256=QPyVFDiH3EB9j2xLO1DB2ju5JB3cCY6R9ISQzrZFFJA,437
|
|
181
|
+
manim/utils/docbuild/autoaliasattr_directive.py,sha256=UsT-Zmjq1ZNlUafIh1H6m5u3plMtQ1W0_FAib66_tbs,7603
|
|
182
|
+
manim/utils/docbuild/autocolor_directive.py,sha256=pakIWLuUeHsQ3jA-Din01O_p9D9P833G4WJiQhJwYIY,3091
|
|
183
|
+
manim/utils/docbuild/manim_directive.py,sha256=LPMnxYLyHzLPjhIGAMOXxszunpxDY_2gbg-8d2S4r7E,14232
|
|
184
|
+
manim/utils/docbuild/module_parsing.py,sha256=HIYsb-nRMebdsZW5_IYGCJI59JmF1g0tPtb_vg7Pd1U,7674
|
|
185
|
+
manim/utils/exceptions.py,sha256=LDOIE6Vcai4Np6y83UuMWdiSITZ43Ac5BE_jPXKFr00,308
|
|
186
|
+
manim/utils/family.py,sha256=IfS-qVWgS7xsHafdBYrmXtFxQnXyWEV0rpEDgDe_kRg,1222
|
|
187
|
+
manim/utils/family_ops.py,sha256=6ld6gF2QLwNPrRILqeqtOwRIXBDm_hHIa6Nz-qq2SaI,1557
|
|
188
|
+
manim/utils/file_ops.py,sha256=1fzjrDKuEkk4gNMmzGfk8kt66KSTolaqNTxtOwqdoiI,7834
|
|
189
|
+
manim/utils/hashing.py,sha256=kG8Y1OU8sxcQhnvNK6CXbNvj-BjV-v2h5cS9EvwGC9U,13588
|
|
190
|
+
manim/utils/images.py,sha256=BDuBDFWfugl-ibLNhtThOzIl3GvjfYckJlnUfckVWJ0,1664
|
|
191
|
+
manim/utils/ipython_magic.py,sha256=JNdQ-MaBHPfxfWWNPVPNmJhi9CStk9YkQBIuKhdw3N8,7827
|
|
192
|
+
manim/utils/iterables.py,sha256=K5235_xupuJJ-iVkhWSO8o0f4XsKKGx_LgUJoLuewAg,12298
|
|
193
|
+
manim/utils/module_ops.py,sha256=Xy1AYxwMN_pGshlFHqn51dJH_i23WQcqh2ZiWEcaAqs,4553
|
|
194
|
+
manim/utils/opengl.py,sha256=Wu6yyclYPP__H2CZm1w-rI1krEOH4D05FdokXHutxFw,3665
|
|
195
|
+
manim/utils/parameter_parsing.py,sha256=0OF7cuGdo2DL6rHDTdxFJKsh8wZXLi__vEWj2BQBbkY,751
|
|
196
|
+
manim/utils/paths.py,sha256=5KDAMcKGrai9h-IQYsta5UmSVvI7V3DwT0MdwE1HoLc,11222
|
|
197
|
+
manim/utils/rate_functions.py,sha256=y4_uSnVwzlJRftAGlzulICGQl5CPVFlo7XcIq1FMvlk,12752
|
|
198
|
+
manim/utils/simple_functions.py,sha256=52ynDLAJgABN84OVEMLuvIuciPToW_KQ4WruOaNpHOQ,3389
|
|
199
|
+
manim/utils/sounds.py,sha256=jzxC3C6sITuBnQabHIWQVQ5WEpA0RRw1JOik81UlHn0,475
|
|
200
|
+
manim/utils/space_ops.py,sha256=MT00KHCpALMk6OB5Tbq51-Ea2aLwSDjL5G0ydoro2RE,23326
|
|
201
|
+
manim/utils/testing/__init__.py,sha256=VGuOYWP08ZEot6AQeY9ZVcZF3G5SUO51WdD5mvG9wW4,418
|
|
202
|
+
manim/utils/testing/_frames_testers.py,sha256=oRFls38xjqW1h-tv-MMFtIZNRxxT45zLYjQZiXlRat8,3808
|
|
203
|
+
manim/utils/testing/_show_diff.py,sha256=qsY8VpBPAjOxaZetsFLr6Fz_xgJAGCBuucn6aretVDw,1723
|
|
204
|
+
manim/utils/testing/_test_class_makers.py,sha256=QiBrFqfxoeFCgAsAFyIU4WvsKo807hxDx6K9jh-Q0ms,2074
|
|
205
|
+
manim/utils/testing/config_graphical_tests_monoframe.cfg,sha256=FCf168PQDrTiwv-WurqRDyL4ndwtfBvTS9Bl23MEAyE,161
|
|
206
|
+
manim/utils/testing/config_graphical_tests_multiframes.cfg,sha256=bzzl4TpReJ7E4JR0OazZnXp1JFvje9rbYP5p3sDF0ys,158
|
|
207
|
+
manim/utils/testing/frames_comparison.py,sha256=Dx3oWBU4Og3EY5WIy1061gITmVOT-_QRXdqJk2LqmrM,10158
|
|
208
|
+
manim/utils/tex.py,sha256=lg3_Zi7o8F_9fKSgYne3uUwTrkxlFIEXrWdw4UzaK7s,6712
|
|
209
|
+
manim/utils/tex_file_writing.py,sha256=pQcj8oO1j-um6URietXjsMG4O1mw8krPwJf7PHhfT1s,11233
|
|
210
|
+
manim/utils/tex_templates.py,sha256=IBEXOAPvyXWE5Ep8xBX8H9EuSynBQwP4_fCiv_hOPPw,28518
|
|
211
|
+
manim/utils/unit.py,sha256=5xJOBYysVqSLIsb6xDviaRdG2U9SRAWHx-pLvtc4yVk,941
|
|
212
|
+
manim-0.18.1.dist-info/LICENSE,sha256=xqki_Bz67XrA-Hqh3Hfr9aPI0czFqwHaMxU_DQE78Bk,1072
|
|
213
|
+
manim-0.18.1.dist-info/LICENSE.community,sha256=eOh7tki98IyCfdOYoR4py990wyA5adNzjbo-sJ1cICI,1088
|
|
214
|
+
manim-0.18.1.dist-info/METADATA,sha256=iEporTdTq5M6Ncm7F8VIrJYQFrhG8s0445rbglPn9ik,10852
|
|
215
|
+
manim-0.18.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
216
|
+
manim-0.18.1.dist-info/entry_points.txt,sha256=T_f5FcXeR4Hoz6Bf4reBBM8LzwalFtW4pXXyU7rsuo0,73
|
|
217
|
+
manim-0.18.1.dist-info/RECORD,,
|
manim/cli/new/__init__.py
DELETED
|
File without changes
|
manim/cli/new/group.py
DELETED
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
|
|
3
|
-
import configparser
|
|
4
|
-
from pathlib import Path
|
|
5
|
-
|
|
6
|
-
import click
|
|
7
|
-
import cloup
|
|
8
|
-
|
|
9
|
-
from ... import console
|
|
10
|
-
from ...constants import CONTEXT_SETTINGS, EPILOG, QUALITIES
|
|
11
|
-
from ...utils.file_ops import (
|
|
12
|
-
add_import_statement,
|
|
13
|
-
copy_template_files,
|
|
14
|
-
get_template_names,
|
|
15
|
-
get_template_path,
|
|
16
|
-
)
|
|
17
|
-
|
|
18
|
-
CFG_DEFAULTS = {
|
|
19
|
-
"frame_rate": 30,
|
|
20
|
-
"background_color": "BLACK",
|
|
21
|
-
"background_opacity": 1,
|
|
22
|
-
"scene_names": "Default",
|
|
23
|
-
"resolution": (854, 480),
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
def select_resolution():
|
|
28
|
-
"""Prompts input of type click.Choice from user. Presents options from QUALITIES constant.
|
|
29
|
-
|
|
30
|
-
Returns
|
|
31
|
-
-------
|
|
32
|
-
:class:`tuple`
|
|
33
|
-
Tuple containing height and width.
|
|
34
|
-
"""
|
|
35
|
-
resolution_options = []
|
|
36
|
-
for quality in QUALITIES.items():
|
|
37
|
-
resolution_options.append(
|
|
38
|
-
(quality[1]["pixel_height"], quality[1]["pixel_width"]),
|
|
39
|
-
)
|
|
40
|
-
resolution_options.pop()
|
|
41
|
-
choice = click.prompt(
|
|
42
|
-
"\nSelect resolution:\n",
|
|
43
|
-
type=click.Choice([f"{i[0]}p" for i in resolution_options]),
|
|
44
|
-
show_default=False,
|
|
45
|
-
default="480p",
|
|
46
|
-
)
|
|
47
|
-
return [res for res in resolution_options if f"{res[0]}p" == choice][0]
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
def update_cfg(cfg_dict: dict, project_cfg_path: Path):
|
|
51
|
-
"""Updates the manim.cfg file after reading it from the project_cfg_path.
|
|
52
|
-
|
|
53
|
-
Parameters
|
|
54
|
-
----------
|
|
55
|
-
cfg_dict
|
|
56
|
-
values used to update manim.cfg found project_cfg_path.
|
|
57
|
-
project_cfg_path
|
|
58
|
-
Path of manim.cfg file.
|
|
59
|
-
"""
|
|
60
|
-
config = configparser.ConfigParser()
|
|
61
|
-
config.read(project_cfg_path)
|
|
62
|
-
cli_config = config["CLI"]
|
|
63
|
-
for key, value in cfg_dict.items():
|
|
64
|
-
if key == "resolution":
|
|
65
|
-
cli_config["pixel_height"] = str(value[0])
|
|
66
|
-
cli_config["pixel_width"] = str(value[1])
|
|
67
|
-
else:
|
|
68
|
-
cli_config[key] = str(value)
|
|
69
|
-
|
|
70
|
-
with project_cfg_path.open("w") as conf:
|
|
71
|
-
config.write(conf)
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
@cloup.command(
|
|
75
|
-
context_settings=CONTEXT_SETTINGS,
|
|
76
|
-
epilog=EPILOG,
|
|
77
|
-
)
|
|
78
|
-
@cloup.argument("project_name", type=Path, required=False)
|
|
79
|
-
@cloup.option(
|
|
80
|
-
"-d",
|
|
81
|
-
"--default",
|
|
82
|
-
"default_settings",
|
|
83
|
-
is_flag=True,
|
|
84
|
-
help="Default settings for project creation.",
|
|
85
|
-
nargs=1,
|
|
86
|
-
)
|
|
87
|
-
def project(default_settings, **args):
|
|
88
|
-
"""Creates a new project.
|
|
89
|
-
|
|
90
|
-
PROJECT_NAME is the name of the folder in which the new project will be initialized.
|
|
91
|
-
"""
|
|
92
|
-
if args["project_name"]:
|
|
93
|
-
project_name = args["project_name"]
|
|
94
|
-
else:
|
|
95
|
-
project_name = click.prompt("Project Name", type=Path)
|
|
96
|
-
|
|
97
|
-
# in the future when implementing a full template system. Choices are going to be saved in some sort of config file for templates
|
|
98
|
-
template_name = click.prompt(
|
|
99
|
-
"Template",
|
|
100
|
-
type=click.Choice(get_template_names(), False),
|
|
101
|
-
default="Default",
|
|
102
|
-
)
|
|
103
|
-
|
|
104
|
-
if project_name.is_dir():
|
|
105
|
-
console.print(
|
|
106
|
-
f"\nFolder [red]{project_name}[/red] exists. Please type another name\n",
|
|
107
|
-
)
|
|
108
|
-
else:
|
|
109
|
-
project_name.mkdir()
|
|
110
|
-
new_cfg = {}
|
|
111
|
-
new_cfg_path = Path.resolve(project_name / "manim.cfg")
|
|
112
|
-
|
|
113
|
-
if not default_settings:
|
|
114
|
-
for key, value in CFG_DEFAULTS.items():
|
|
115
|
-
if key == "scene_names":
|
|
116
|
-
new_cfg[key] = template_name + "Template"
|
|
117
|
-
elif key == "resolution":
|
|
118
|
-
new_cfg[key] = select_resolution()
|
|
119
|
-
else:
|
|
120
|
-
new_cfg[key] = click.prompt(f"\n{key}", default=value)
|
|
121
|
-
|
|
122
|
-
console.print("\n", new_cfg)
|
|
123
|
-
if click.confirm("Do you want to continue?", default=True, abort=True):
|
|
124
|
-
copy_template_files(project_name, template_name)
|
|
125
|
-
update_cfg(new_cfg, new_cfg_path)
|
|
126
|
-
else:
|
|
127
|
-
copy_template_files(project_name, template_name)
|
|
128
|
-
update_cfg(CFG_DEFAULTS, new_cfg_path)
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
@cloup.command(
|
|
132
|
-
context_settings=CONTEXT_SETTINGS,
|
|
133
|
-
no_args_is_help=True,
|
|
134
|
-
epilog=EPILOG,
|
|
135
|
-
)
|
|
136
|
-
@cloup.argument("scene_name", type=str, required=True)
|
|
137
|
-
@cloup.argument("file_name", type=str, required=False)
|
|
138
|
-
def scene(**args):
|
|
139
|
-
"""Inserts a SCENE to an existing FILE or creates a new FILE.
|
|
140
|
-
|
|
141
|
-
SCENE is the name of the scene that will be inserted.
|
|
142
|
-
|
|
143
|
-
FILE is the name of file in which the SCENE will be inserted.
|
|
144
|
-
"""
|
|
145
|
-
if not Path("main.py").exists():
|
|
146
|
-
raise FileNotFoundError(f"{Path('main.py')} : Not a valid project directory.")
|
|
147
|
-
|
|
148
|
-
template_name = click.prompt(
|
|
149
|
-
"template",
|
|
150
|
-
type=click.Choice(get_template_names(), False),
|
|
151
|
-
default="Default",
|
|
152
|
-
)
|
|
153
|
-
scene = (get_template_path() / f"{template_name}.mtp").resolve().read_text()
|
|
154
|
-
scene = scene.replace(template_name + "Template", args["scene_name"], 1)
|
|
155
|
-
|
|
156
|
-
if args["file_name"]:
|
|
157
|
-
file_name = Path(args["file_name"] + ".py")
|
|
158
|
-
|
|
159
|
-
if file_name.is_file():
|
|
160
|
-
# file exists so we are going to append new scene to that file
|
|
161
|
-
with file_name.open("a") as f:
|
|
162
|
-
f.write("\n\n\n" + scene)
|
|
163
|
-
else:
|
|
164
|
-
# file does not exist so we create a new file, append the scene and prepend the import statement
|
|
165
|
-
file_name.write_text("\n\n\n" + scene)
|
|
166
|
-
|
|
167
|
-
add_import_statement(file_name)
|
|
168
|
-
else:
|
|
169
|
-
# file name is not provided so we assume it is main.py
|
|
170
|
-
# if main.py does not exist we do not continue
|
|
171
|
-
with Path("main.py").open("a") as f:
|
|
172
|
-
f.write("\n\n\n" + scene)
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
@cloup.group(
|
|
176
|
-
context_settings=CONTEXT_SETTINGS,
|
|
177
|
-
invoke_without_command=True,
|
|
178
|
-
no_args_is_help=True,
|
|
179
|
-
epilog=EPILOG,
|
|
180
|
-
help="Create a new project or insert a new scene.",
|
|
181
|
-
deprecated=True,
|
|
182
|
-
)
|
|
183
|
-
@cloup.pass_context
|
|
184
|
-
def new(ctx):
|
|
185
|
-
pass
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
new.add_command(project)
|
|
189
|
-
new.add_command(scene)
|
manim/plugins/import_plugins.py
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
|
|
3
|
-
import types
|
|
4
|
-
|
|
5
|
-
import pkg_resources
|
|
6
|
-
|
|
7
|
-
from .. import config, logger
|
|
8
|
-
|
|
9
|
-
__all__ = []
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
plugins_requested: list[str] = config["plugins"]
|
|
13
|
-
if "" in plugins_requested:
|
|
14
|
-
plugins_requested.remove("")
|
|
15
|
-
for plugin in pkg_resources.iter_entry_points("manim.plugins"):
|
|
16
|
-
if plugin.name not in plugins_requested:
|
|
17
|
-
continue
|
|
18
|
-
loaded_plugin = plugin.load()
|
|
19
|
-
if isinstance(loaded_plugin, types.ModuleType):
|
|
20
|
-
# it is a module so it can't be called
|
|
21
|
-
# see if __all__ is defined
|
|
22
|
-
# if it is defined use that to load all the modules necessary
|
|
23
|
-
# essentially this would be similar to `from plugin import *``
|
|
24
|
-
# if not just import the module with the plugin name
|
|
25
|
-
if hasattr(loaded_plugin, "__all__"):
|
|
26
|
-
for thing in loaded_plugin.__all__: # type: ignore
|
|
27
|
-
exec(f"{thing}=loaded_plugin.{thing}")
|
|
28
|
-
__all__.append(thing)
|
|
29
|
-
else:
|
|
30
|
-
exec(f"{plugin.name}=loaded_plugin")
|
|
31
|
-
__all__.append(plugin.name)
|
|
32
|
-
elif isinstance(loaded_plugin, types.FunctionType):
|
|
33
|
-
# call the function first
|
|
34
|
-
# it will return a list of modules to add globally
|
|
35
|
-
# finally add it
|
|
36
|
-
lists = loaded_plugin()
|
|
37
|
-
for lst in lists:
|
|
38
|
-
exec(f"{lst.__name__}=lst")
|
|
39
|
-
__all__.append(lst.__name__)
|
|
40
|
-
plugins_requested.remove(plugin.name)
|
|
41
|
-
|
|
42
|
-
if plugins_requested != []:
|
|
43
|
-
logger.warning("Missing Plugins: %s", plugins_requested)
|