anki/ts/image-occlusion/tools
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
..
add-from-cloze.ts Add APIs for IO mask editing (#2758) 2023-10-22 10:40:40 +10:00
api.ts Indicate current occlusion type in pop-up menu (#2760) 2023-10-23 09:12:56 +10:00
from-shapes.ts Add APIs for IO mask editing (#2758) 2023-10-22 10:40:40 +10:00
index.ts Add text tool to image occlusion (#2705) 2023-10-12 13:40:11 +10:00
lib.ts Add APIs for IO mask editing (#2758) 2023-10-22 10:40:40 +10:00
more-tools.ts Feature image occlusion (#2367) 2023-03-29 12:33:19 +10:00
tool-aligns.ts Feature image occlusion (#2367) 2023-03-29 12:33:19 +10:00
tool-buttons.ts Add text tool to image occlusion (#2705) 2023-10-12 13:40:11 +10:00
tool-ellipse.ts Fix selected shapes shifting to canvas origin (#2729) 2023-10-13 09:58:43 +10:00
tool-polygon.ts Fix modified polygon not being saved when editing IO note (#2762) 2023-10-22 10:51:45 +10:00
tool-rect.ts Fix selected shapes shifting to canvas origin (#2729) 2023-10-13 09:58:43 +10:00
tool-text.ts Fix selected shapes shifting to canvas origin (#2729) 2023-10-13 09:58:43 +10:00
tool-undo-redo.ts Commit addition of IO shapes immediately (#2750) 2023-10-20 09:38:03 +10:00