Anki/ts/image-occlusion/tools
Damien Elmes 6643b1bc58 fix select all and change ordinal in edit mode in io (#3109)
* fix select all and change ordinal in edit mode in io

* make ordinal undefined for all shapes in group/ungroup

* fix group shapes and some ui fixes

* Don't add node_modules/* to dprint deps

* use minimum ordinal when shape merged, use max ordinal++ when ungrouped, in add mode no ordinal preset so NaN

* use state for ungroup shape

* maintain existing ordinal in editing mode

* fix order of ordinal in ungroup shape

* refactor: remove for loop, use forEach

(cherry picked from commit 477f932f35)
2024-04-11 15:14:25 +07:00
..
add-from-cloze.ts fix: blur in io, remove panzoom and use fabricjs for panzoom (#3052) 2024-03-09 10:35:23 +00:00
api.ts fix: blur in io, remove panzoom and use fabricjs for panzoom (#3052) 2024-03-09 10:35:23 +00:00
from-shapes.ts Fix IO mask position slightly off in edit mode (#3121) 2024-04-11 15:03:31 +07:00
index.ts Add text tool to image occlusion (#2705) 2023-10-12 13:40:11 +10:00
lib.ts fix select all and change ordinal in edit mode in io (#3109) 2024-04-11 15:14:25 +07:00
more-tools.ts fix: blur in io, remove panzoom and use fabricjs for panzoom (#3052) 2024-03-09 10:35:23 +00:00
shortcuts.ts add select all tool (#2981) 2024-01-30 15:43:15 +10:00
tool-aligns.ts Feature image occlusion (#2367) 2023-03-29 12:33:19 +10:00
tool-buttons.ts fix: ensure proper drawing of shape tools after pan/zoom (#3066) 2024-03-16 14:05:51 +07:00
tool-cursor.ts fix: blur in io, remove panzoom and use fabricjs for panzoom (#3052) 2024-03-09 10:35:23 +00:00
tool-ellipse.ts fix: blur in io, remove panzoom and use fabricjs for panzoom (#3052) 2024-03-09 10:35:23 +00:00
tool-polygon.ts fix: blur in io, remove panzoom and use fabricjs for panzoom (#3052) 2024-03-09 10:35:23 +00:00
tool-rect.ts fix: blur in io, remove panzoom and use fabricjs for panzoom (#3052) 2024-03-09 10:35:23 +00:00
tool-text.ts fix: blur in io, remove panzoom and use fabricjs for panzoom (#3052) 2024-03-09 10:35:23 +00:00
tool-undo-redo.ts fix select all and change ordinal in edit mode in io (#3109) 2024-04-11 15:14:25 +07:00
tool-zoom.ts better pan zoom with space for drag, shift for horizontal scroll and ctrl for zoom (#3080) 2024-03-18 14:26:41 +00:00