4 ms·
That would be neat indeed. Would it be a lot of extra work? If there is a transparant SVG canvas placed over the element, then the positioning of elements shou
by spockz 5y ago
That would be neat indeed. Would it be a lot of extra work?
If there is a transparant SVG canvas placed over the element, then the positioning of elements should be relatively trivial? It would basically follow the example JavaScript in the post.
- simonw 5y agoMy concern is more about the long-term maintenance of it. If I ship a JavaScript library with the tool, then modify that JavaScript library later, I risk breaking the automated screenshots that were scripted against previous versions of the library. If I'm committing to shipping a library that won't break backwards compatibility, I have to be very confident that I'm designing it well from the start. So I'm probably going to do it at some point, but I'm not going to rush into it.
- zellyn 5y agoThat sounds entirely reasonable. It might also be a good idea to have users call it with something like: Shotscraper.v1.annotate( // etc