Open kleinerpirat opened 3 years ago
I originally envisioned the occlusion mode to enable adding occlusions to any pictures, and keep track of them. Something that held me back (apart from being complicated :) ), was at the point of programming I still thought of the text [[rect1::1,2,3,4]]
as an editing API. I didn't want to make it more more complicated than necessary. By now I don't think anymore anybody will go out of their to change occlusions by textually editing the coordinates :)
Being completely honest, I don't think I'll work on Closet before the next major Anki version (which looks to be 2.1.49 at the point of writing).
[[#abc::foo]]]bar[[/abc]]
, once again, because I don't think users should be editing the commands directly. rect
), users could easily edit them (change coordinates, change colors, change shapes) while still being accessible. This also motivates point 2. If you look at the Mathjax editor, it pretty much resembles, how I'd like the Occlusion editor to work:I've basically already programmed all the puzzle pieces, to make the perfect occlusion editor, just need to do it again :)
automatically activate occlusion mode in the browser
I'll make another issue for that.
When hovering the IO button, the following tooltip appears:
This suggests to me that there is a possibility to put a single field into occlusion mode too, but I don't think that's the case.
Wouldn't it be better to only put the field into occlusion mode that contains the first image - or even more specific, only occlude the first image and leave the rest, if there are any further images in the same field? ->
editable.querySelector("img")
AFAIK, there is no way to create individual occlusion commands for multiple images, and restricting the occlusion mode to the first image would make that more obvious.
Another thing I was wondering is whether it's feasible to automatically activate occlusion mode in the browser if a note contains occlusion commands? That would fit nicely with https://github.com/hgiesel/closet/issues/42 I believe.