anki/ts/image-occlusion/shapes
Hikaru Y a53806e24a
Indicate current occlusion type in pop-up menu (#2760)
* Simplify handling of occlusion types in editor code

- Unify updateIONoteInEditMode(), setOcclusionFieldInner() and
setOcclusionField() into updateOcclusionsField()
- Don't use `includeInactive` property of Shape class in editor code
- Drop `isEditMode`

+
Update the occlusions field every time a mask or text is updated, not
only in editing mode but also in adding mode, so that IO cards can be
previewed correctly in the card layout screen

* Indicate current occlusion type in pop-up menu

https://forums.ankiweb.net/t/anki-23-10-beta-5-6/35677/46

* Fix a11y warnings in Toolbar.svelte

* Drop `occludeInactive` parameter from `MaskEditorAPI.getShapes()`
2023-10-23 09:12:56 +10:00
..
base.ts Indicate current occlusion type in pop-up menu (#2760) 2023-10-23 09:12:56 +10:00
ellipse.ts Add APIs for IO card rendering (#2739) 2023-10-20 09:36:46 +10:00
floats.ts image occlusion button in note editor (#2485) 2023-07-27 22:45:49 +10:00
from-cloze.ts Add APIs for IO card rendering (#2739) 2023-10-20 09:36:46 +10:00
index.ts Add APIs for IO mask editing (#2758) 2023-10-22 10:40:40 +10:00
polygon.ts Add APIs for IO card rendering (#2739) 2023-10-20 09:36:46 +10:00
position.ts
rectangle.ts Add APIs for IO card rendering (#2739) 2023-10-20 09:36:46 +10:00
text.ts Add APIs for IO card rendering (#2739) 2023-10-20 09:36:46 +10:00
to-cloze.ts Indicate current occlusion type in pop-up menu (#2760) 2023-10-23 09:12:56 +10:00