Anki/ts/image-occlusion
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
..
notes-toolbar Experiment with disabling prettier whitespace sensitivity 2023-06-01 11:11:26 +10:00
shapes Indicate current occlusion type in pop-up menu (#2760) 2023-10-23 09:12:56 +10:00
tools Indicate current occlusion type in pop-up menu (#2760) 2023-10-23 09:12:56 +10:00
add-or-update-note.ts Combine all backend methods into a single js/d.ts file, like in Python 2023-07-03 13:46:38 +10:00
canvas-scale.ts Various changes to I/O handling (#2513) 2023-05-31 13:45:12 +10:00
icons.ts Add text tool to image occlusion (#2705) 2023-10-12 13:40:11 +10:00
image-occlusion-base.scss Add scss formatter 2023-07-03 09:44:38 +10:00
ImageOcclusionPage.svelte Add APIs for IO mask editing (#2758) 2023-10-22 10:40:40 +10:00
ImageOcclusionPicker.svelte Refactor IO image pickers into separate component (#2710) 2023-10-10 13:26:20 +10:00
index.ts image occlusion button in note editor (#2485) 2023-07-27 22:45:49 +10:00
lib.ts Migrate to protobuf-es (#2547) 2023-06-14 22:47:37 +10:00
mask-editor.ts Fix modified polygon not being saved when editing IO note (#2762) 2023-10-22 10:51:45 +10:00
MaskEditor.svelte Add APIs for IO mask editing (#2758) 2023-10-22 10:40:40 +10:00
Notes.svelte image occlusion button in note editor (#2485) 2023-07-27 22:45:49 +10:00
review.scss Add scss formatter 2023-07-03 09:44:38 +10:00
review.ts Add APIs for IO card rendering (#2739) 2023-10-20 09:36:46 +10:00
StickyFooter.svelte Fix "Add" button showing when editing I/O note; hide toast 2023-09-19 14:19:51 +10:00
store.ts follow-up pr for io button in note editor (#2600) 2023-07-31 14:24:26 +10:00
Tags.svelte fix image height issues in iOS safari (#2480) 2023-04-26 16:01:04 +10:00
Toast.svelte Fix "Add" button showing when editing I/O note; hide toast 2023-09-19 14:19:51 +10:00
Toolbar.svelte Indicate current occlusion type in pop-up menu (#2760) 2023-10-23 09:12:56 +10:00
tsconfig.json Various changes to I/O handling (#2513) 2023-05-31 13:45:12 +10:00
types.ts Various changes to I/O handling (#2513) 2023-05-31 13:45:12 +10:00