mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
- Pass vertical/rtl mode into selection code. - Added new image for vertical selection handle. selection_bar.pyj: - Made code agnostic to text direction. - Changed names to start and end rather than left and right to reflect new behavior. - Track vertical/rtl state from selection message. - Handle selection position modified to support all possible text orientations. - Switch to vertical selection handle in vertical mode. - Cap selection size at 60px to avoid comically large (and unusable) handles when selecting large element, such as an image. select.pyj: - Improved selection behavior when selected range extents are on nodes by search the node's DOM tree for something with a reasonable bounding box. - To work around bugs with collapsed range rects and vertical text, use character bounding boxes in most cases. - Add width to selection range extents.
7 lines
570 B
XML
7 lines
570 B
XML
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
<svg xmlns:svg="http://www.w3.org/2000/svg" width="94" height="64" viewBox="0 0 25.4 16.933333" version="1.1">
|
|
<path
|
|
style="stroke-width:1.2"
|
|
d="M 0.40531915,0.22517714 C 0.57570388,5.3511725 1.2577531,11.548814 5.6244322,14.821275 9.1147504,16.85191 12.195909,12.670186 13.111224,9.6410928 c 1.028474,-2.9493579 1.716378,-6.4799769 1.424227,-9.41591566 -4.7100448,0 -9.4200882,0 -14.13013185,0 z m 14.49602685,0.00368 c 3.49955,0 6.999102,0 10.498654,0 -3.499552,0 -6.999104,0 -10.498654,0 z"/>
|
|
</svg>
|