anki/ts/image-occlusion/shapes
Abdo 9e147c6335
Add text tool to image occlusion (#2705)
* Add text tool to IO

* Remove unnecessary parentheses

* Fix text objects always grouped

* Remove log

* Fix text objects hidden on back side

* Implement text scaling

* Add inverse text outline

* Warn about IO notes with only text objects

This will result in a different error message than the case where no
objects are added at all though, and the user can bypass the warning.
Maybe this is better to avoid discarding the user's work if they have
spent some time adding text.

* Add isValidType

* Use matches!

* Lock aspect ratio of text objects

* Reword misleading comment

The confusion probably comes from the Fabric docs, which apparently need updating: http://fabricjs.com/docs/fabric.Canvas.html#uniformScaling

* Do not count text objects when calculating current index

* Make text objects respond to size changes

* Fix uniform scaling not working when editing

* Use Arial font

* Escape colons and unify parsing

* Handle scale factor when restricting shape to view

* Use 'cloned'

* Add text background

* Tweak drawShape's params
2023-10-12 13:40:11 +10:00
..
base.ts Various changes to I/O handling (#2513) 2023-05-31 13:45:12 +10:00
ellipse.ts Various changes to I/O handling (#2513) 2023-05-31 13:45:12 +10:00
floats.ts image occlusion button in note editor (#2485) 2023-07-27 22:45:49 +10:00
from-cloze.ts Add text tool to image occlusion (#2705) 2023-10-12 13:40:11 +10:00
polygon.ts Various changes to I/O handling (#2513) 2023-05-31 13:45:12 +10:00
position.ts Various changes to I/O handling (#2513) 2023-05-31 13:45:12 +10:00
rectangle.ts Various changes to I/O handling (#2513) 2023-05-31 13:45:12 +10:00
text.ts Add text tool to image occlusion (#2705) 2023-10-12 13:40:11 +10:00
to-cloze.ts Add text tool to image occlusion (#2705) 2023-10-12 13:40:11 +10:00