anki icon indicating copy to clipboard operation
anki copied to clipboard

Weird Behaviour with Overlapping Text and Cloze Mask

Open brishtibheja opened this issue 1 year ago • 7 comments

Steps

  1. Load an image for IO.
  2. Create a rectangle mask.
  3. Now create a text mask using the tool.
  4. Put the rectangle above the text.

Behaviour

The rectangle always go below the text. In review, these cards' cloze mask appear hidden by the text above it.

This seem to happen because the rectangle is created in step#2 before the text is created. If I switch the order of events, now I can't put the text above the cloze mask i.e. the cloze always go below the text.

Also noticed, editing these cards during review can reverse the behaviour.

brishtibheja avatar Nov 23 '24 08:11 brishtibheja

That's because z-index of masks is not remembered.

abdnh avatar Nov 24 '24 23:11 abdnh

can the developer add the z-index? this behaviour should be fixed

NoErrorNoCry avatar Jun 13 '25 14:06 NoErrorNoCry

perhaps, text masks should have a lower z-index so we can hide them; and have an additional feature to write text on occlusion masks. this can handle two different use cases.

brishtibheja avatar Jun 13 '25 15:06 brishtibheja

I think when text support was added, it was so users could add labels to the masks. Can you explain the use case where you want them under the masks?

dae avatar Jun 14 '25 05:06 dae

i want to add labels too, but sometimes i want to test myself on those labels. there's the option of using external software but it makes using IO a pain as editing anything later gets harder.

brishtibheja avatar Jun 14 '25 08:06 brishtibheja

Example picture with Image-Occlusion with hidden text: Image

The same picture with open fields: Image

i am using this to remember the word for the specific part of this technical device.

NoErrorNoCry avatar Jun 17 '25 10:06 NoErrorNoCry

I think when text support was added, it was so users could add labels to the masks. Can you explain the use case where you want them under the masks?

It’s funny, I had never thought of using the text option this way. I’m commenting here because I also wanted to point out the issue, which is particularly annoying. Personally, I use text a lot for anatomy diagrams to add details or sometimes to correct a caption that’s no longer accurate. It works really well, but as soon as I edit the card, all the text jumps on top of the masks and I have to redo everything.

Thanks in advance!

Halogenes avatar Aug 27 '25 20:08 Halogenes