anki/ts/image-occlusion/tools
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
..
add-from-cloze.ts Various changes to I/O handling (#2513) 2023-05-31 13:45:12 +10:00
index.ts Feature image occlusion (#2367) 2023-03-29 12:33:19 +10:00
lib.ts Various changes to I/O handling (#2513) 2023-05-31 13:45:12 +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 Feature image occlusion (#2367) 2023-03-29 12:33:19 +10:00
tool-ellipse.ts Fix some issues with undo/redo in mask editor (#2649) 2023-09-10 13:26:41 +10:00
tool-polygon.ts Fix polygon tool not working (#2712) 2023-10-10 13:51:35 +10:00
tool-rect.ts Fix some issues with undo/redo in mask editor (#2649) 2023-09-10 13:26:41 +10:00
tool-undo-redo.ts Fix some issues with undo/redo in mask editor (#2649) 2023-09-10 13:26:41 +10:00