-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Fixed Some bugs of code_mobject.py and Text_mobject.py #90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, but I still think it is not the best solution to use .chars[i] to stand for all chars, and Text[i] stands for visible chars. This will make a big difference to people who has already used Text.
I think it’s better not to change the structure or usage of Text.
You have done a good job to fix the bad display of Transform, but create .chars which changes the basic usage of Text.
What about trying rewriting __getitem__() to make Text[i] stand for all chars instead of using .chars.
i tried but don't work afficiently |
25 days ago we added spaces, before that |
How many of them already used |
No, before you create |
Probibaly No one is using Text[] directly |
what if all community thinks that then this manim is possibly not made You can see almost all 3b1b video's script don't work because we improved manim |
|
Many people I know are using |
|
let me think about it |
|
It is in our guidelines to include documentation in your PR. You can take all the time you want for that, don't worry |
|
@PgBiel please review documentions of Code(). |
|
This is my first documentation. |
PgBiel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well that's a very good first try, and I congratulate you for that. I have a few complaints, though, but nothing that can't be solved... (WIll attempt to take a better look later)
| TEXT_MOB_SCALE_FACTOR = 0.05 | ||
|
|
||
|
|
||
| def remove_invisible_chars(mobject): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe a little docstring could be useful here
Co-authored-by: Pg Biel <[email protected]>
Co-authored-by: Pg Biel <[email protected]>
Co-authored-by: Pg Biel <[email protected]>
Co-authored-by: Pg Biel <[email protected]>
Co-authored-by: Pg Biel <[email protected]>
Co-authored-by: Pg Biel <[email protected]>
Co-authored-by: Pg Biel <[email protected]>
Co-authored-by: Pg Biel <[email protected]>
Co-authored-by: Pg Biel <[email protected]>
|
Thanku @PgBiel for that. |
Co-authored-by: Pg Biel <[email protected]>
|
You're welcome! Make sure to take a look at each of the suggestions, and tell me if any questions remain. |
|
@NavpreetDevpuri can you please bring this up to date with master? |
|
@safinsingh done reopened #198 |
|
Is https://github.com/3b1b/manim no longer in developement ? |
It is still in development, see the shaders branch there. It's just that the de facto only developer there is 3b1b ;) |
|
alright understood, here we are developing this library further according to our needs and creativity and the main repo is used by 3b1b so he will be developing it according to his own requirements. |
Fixed 3b1b/manim#1067
NOTE : SurroundingRectangle() only contains visible text.
Output

Output

Added new parameters
background_stroke_widthandbackground_stroke_colorOutput

Updated Paragraph() and added new methods
set_line_to_initial_position()andset_all_lines_to_initial_positions()Output
