You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
after Rendering with your Library i tried to draw additional Text to the Canvas which never worked. So I went through your Code and found that you use ctx.translate which changes the default Location where you draw. Maybe you should reset the translation after you are finished with Rendering. This could be done with just one simple Line of Code:
ctx.setTransform(1, 0, 0, 1, 0, 0);
I made an example in JSFiddle to show what i mean JSFiddle
Just uncomment the Line which I marked and the Text is at the Right position.
Other than that, your Library is great!
Cheers
The text was updated successfully, but these errors were encountered:
Hi,
after Rendering with your Library i tried to draw additional Text to the Canvas which never worked. So I went through your Code and found that you use ctx.translate which changes the default Location where you draw. Maybe you should reset the translation after you are finished with Rendering. This could be done with just one simple Line of Code:
ctx.setTransform(1, 0, 0, 1, 0, 0);
I made an example in JSFiddle to show what i mean
JSFiddle
Just uncomment the Line which I marked and the Text is at the Right position.
Other than that, your Library is great!
Cheers
The text was updated successfully, but these errors were encountered: