17 Commits

Author SHA1 Message Date
Stefan Breunig
1fca69f0b3
actually find nearest point of shape (#889)
For any shape with a dimension smaller than 2*epsilon, there can be
multiple potential points to select from. In practice this resulted
in e.g. the top right corner being highlighted when the cursor was
placed below the bottom right corner.
2022-06-12 10:03:14 -07:00
Zhang Ch. N
861fbe9a2b
UX: Increase size of vertex controls around shape (#863)
* Increase shape vertex control size

* Increase canvas epsilon
2022-04-29 23:38:55 -07:00
Sam.An
5c38b6bcdd
Fix draw annotations error (#833) 2021-12-27 19:05:21 -08:00
Cerno_b
c35f09747a
Pep 8 (#720)
* rename local variables in main file

* additional renaming of functions and variables

* Rename main file functions

* Rename functions and variables in canvas.py

* Rename functions and locals for remaining files

* Rename non-Qt derived class' members

* Rename members of Qt-derived classes

* Fix paint label issue
2021-03-14 16:56:14 -07:00
chenghsiung
5d6557f994
Adaptively adjust label size (#678)
* Adjust label font size based on image size

* Adjust the upper boundary of the painted label

* Set font size based on both image width & height
2021-01-01 11:54:27 -08:00
tzutalin
ca28daddec Rename lib.py to utils.py and add test cases for natural sort 2019-01-26 23:16:21 -08:00
ap193uee
c88eb28e7c Added offset to label's y-pos so that the label does not overflow the image (#324) 2018-07-09 19:48:57 -07:00
vdalv
e7a7b64f7e Add option to enable/disable label painting 2018-05-18 22:51:57 -07:00
Javier Garcia
82ace1acfc Fixed bug in shape.py 2018-02-15 13:35:46 +01:00
tzutalin
deb8b844f9 Show label text at the top-left of the rect 2018-01-30 18:50:30 +08:00
Jaewoo Choi
95ff5062fe fix a bug: creating a box with one point 2017-08-22 20:57:05 +09:00
tzutalin
14edc88a64 Fix runtime errors for py3qt5 2017-07-25 16:43:04 +08:00
ChrisDal
0dae300a61 Add difficult in Shape
Add in shape 
Add in copy shape
2017-04-25 09:48:32 +02:00
tzutalin
ce853362e5 Update README and copying the rect won't add prefix string 2017-03-01 20:33:14 +08:00
Thibaut Mattio
c5c2a34a39 Apply PEP recommendation on formatting
Running pylint to make the code complient with PEP recommendations on lintage.
2017-02-28 11:50:15 +08:00
Ryan Flynn
2beed27cf2 add support for QT5, fallback to QT4 2017-01-02 21:55:30 -05:00
TzuTa Lin
8d81647864 mv some of python files to libs 2015-09-17 15:22:58 +08:00