-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Masking an image to a multi-line textbox does not work properly #7708
Comments
I guess you came across a group issue If you do #7670 |
If this satisfies you feel free to close |
Thank you very much, I think I'll have to wait until v6.0 is released for this one to be resolve. |
You can try it out, it's pretty stable |
Oh that sounds great, I'll definitely give it go. |
i have same question! If I want to change lines, what should I do?
|
That isn't clear enough |
If I am here there is another option which is subclassing |
I'm sorry, this is the case. TextBox not displayed,Please look at it for me. Thank you! |
https://jsfiddle.net/8cneqdmx/ globalCompositeOperation |
1.Only the text part of the picture needs to be shown, the rest of the picture is transparent 2.The text should be centered 3.I have tried to use pattern to achieve, but it is not easy to center |
not exactly sure why GCO wasn't working, maybe is a text rendering thing |
OHH w/o object caching https://jsfiddle.net/9La5pqek/1/ |
Thank you very much for your answer |
Hi,
I am trying to mask an image to a textbox, If I have a text box with a single line, it works, but the moment the textbox becomes multi-lined it disappears, I tried to debug but have no clue why it happens, everything seems to be normal.
Try this fiddle: https://jsfiddle.net/hoomanaskari/jf093qgm/
Enable the code on line 18
globalCompositeOperation: "destination-in"
and you can see the everything disappears. now if you enable line 17width: 500
and play around with width to make the text a 1 liner, it will reappear.Exactly the same issue if I try it with a text on path.
Thanks in advance.
The text was updated successfully, but these errors were encountered: