Anki/ts/image-occlusion
Hikaru Y b3f6edc323
Fix polygon tool not working (#2712)
* Fix polygon not converting correctly to cloze

* Fix first polygon disappearing when creating se...

...cond one during editing

Previously, a fabric object was passed directly to a `Shape` such as
`Rectangle` or `Polygon`, so mutating a non-primitive property of the
shape would lead to mutating the original fabric object as well.

* Commit addition of polygon immediately

Unlike the rect or ellipse tools, when the polygon tool was active,
clicking on the canvas did not fire the `object:removed` event and the
`change` event was not dispatched. As a result, an addition of a polygon
was not saved to the DB when switching to another note or closing the
editor in edit mode without performing an action that dispatched the
`change` event.
2023-10-10 13:51:35 +10:00
..
notes-toolbar Experiment with disabling prettier whitespace sensitivity 2023-06-01 11:11:26 +10:00
shapes Fix polygon tool not working (#2712) 2023-10-10 13:51:35 +10:00
tools Fix polygon tool not working (#2712) 2023-10-10 13:51:35 +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 follow-up pr for io button in note editor (#2600) 2023-07-31 14:24:26 +10:00
image-occlusion-base.scss Add scss formatter 2023-07-03 09:44:38 +10:00
ImageOcclusionPage.svelte Fix "Add" button showing when editing I/O note; hide toast 2023-09-19 14:19:51 +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 some issues with undo/redo in mask editor (#2649) 2023-09-10 13:26:41 +10:00
MaskEditor.svelte Fix some issues with undo/redo in mask editor (#2649) 2023-09-10 13:26:41 +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 Various changes to I/O handling (#2513) 2023-05-31 13:45:12 +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 Remove the separate chevron in all/one selector 2023-09-17 11:51:48 +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