Skip to content
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

[Feature Request] Ability to apply DemoMonkey to canvas labels #19

Open
vnl opened this issue Aug 29, 2022 · 3 comments
Open

[Feature Request] Ability to apply DemoMonkey to canvas labels #19

vnl opened this issue Aug 29, 2022 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@vnl
Copy link

vnl commented Aug 29, 2022

Ability to apply DemoMonkey to canvas labels

@svrnm
Copy link
Owner

svrnm commented Aug 29, 2022

hey @vnl, how's it going?:-)

The problem with canvas is that from a DOM-perspective they are like images, a black box. So applying modifications to them requires special attention. I looked into that a while ago for AppD and the only solution I could come up with was very specific to the APIs of the product.

@vnl
Copy link
Author

vnl commented Aug 29, 2022

Thanks @svrnm I do understand. They act like images. Ah well.

@svrnm
Copy link
Owner

svrnm commented Sep 28, 2022

follow up on that: What could work is monkey patching the related APIs of canvas (see here: https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Drawing_text?retiredLocale=de): So when those APIs are called they go through a list of replacements from DemoMonkey end then call the original command. This of course comes with lots of problems & only works when the text is created for the first time.

If you (or anybody) else is up for that challenge I am happy to take a contribution for that.

@svrnm svrnm added the help wanted Extra attention is needed label Sep 28, 2022
@svrnm svrnm added the enhancement New feature or request label Dec 12, 2024
@svrnm svrnm changed the title Feature Request: Ability to apply DemoMonkey to canvas labels [Feature Request] Ability to apply DemoMonkey to canvas labels Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants