Major changes: - Fixed right-click handler to directly set mode to NONE instead of relying on main app signal handling - Added safety checks in left-click handler to prevent drawing when no draggable point is found in NONE mode - Enhanced mode compatibility by treating Python None as SketchMode.NONE in set_mode() method - Added comprehensive debug logging for mode changes and interaction state tracking - Resolved integration issue where persistent constraint modes were prematurely reset by main app - Ensured point dragging is only enabled in NONE mode, preventing accidental polyline creation This fixes the reported issue where deactivating the line tool would still create lines when dragging, and ensures proper mode transitions between drawing tools and selection/drag mode.
74 lines
2.5 KiB
XML
74 lines
2.5 KiB
XML
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
|
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
<!-- Created with matplotlib (http://matplotlib.org/) -->
|
|
<svg height="72pt" version="1.1" viewBox="0 0 72 72" width="72pt" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
<defs>
|
|
<style type="text/css">
|
|
*{stroke-linecap:butt;stroke-linejoin:round;}
|
|
</style>
|
|
</defs>
|
|
<g id="figure_1">
|
|
<g id="patch_1">
|
|
<path d="M 0 72
|
|
L 72 72
|
|
L 72 0
|
|
L 0 0
|
|
z
|
|
" style="fill:none;opacity:0;"/>
|
|
</g>
|
|
<g id="text_1">
|
|
<path d="M 70 37.44
|
|
C 70 36.8025 69.734375 36.18625 69.2775 35.74
|
|
L 59.56625 26.018125
|
|
C 59.109375 25.56125 58.50375 25.295625 57.855625 25.295625
|
|
C 56.5275 25.295625 55.433125 26.400625 55.433125 27.72875
|
|
L 55.433125 32.584375
|
|
L 40.855625 32.584375
|
|
L 40.855625 18.0175
|
|
L 45.71125 18.0175
|
|
C 47.039375 18.0175 48.144375 16.9125 48.144375 15.584375
|
|
C 48.144375 14.93625 47.87875 14.330625 47.421875 13.87375
|
|
L 37.710625 4.1625
|
|
C 37.25375 3.705625 36.648125 3.44 36 3.44
|
|
C 35.351875 3.44 34.74625 3.705625 34.289375 4.1625
|
|
L 24.578125 13.87375
|
|
C 24.12125 14.330625 23.855625 14.93625 23.855625 15.584375
|
|
C 23.855625 16.9125 24.960625 18.0175 26.28875 18.0175
|
|
L 31.144375 18.0175
|
|
L 31.144375 32.584375
|
|
L 16.566875 32.584375
|
|
L 16.566875 27.72875
|
|
C 16.566875 26.400625 15.4725 25.295625 14.144375 25.295625
|
|
C 13.49625 25.295625 12.890625 25.56125 12.43375 26.018125
|
|
L 2.7225 35.74
|
|
C 2.265625 36.18625 2 36.8025 2 37.44
|
|
C 2 38.088125 2.265625 38.69375 2.7225 39.150625
|
|
L 12.43375 48.861875
|
|
C 12.890625 49.31875 13.49625 49.584375 14.144375 49.584375
|
|
C 15.4725 49.584375 16.566875 48.49 16.566875 47.161875
|
|
L 16.566875 42.295625
|
|
L 31.144375 42.295625
|
|
L 31.144375 56.873125
|
|
L 26.28875 56.873125
|
|
C 24.960625 56.873125 23.855625 57.9675 23.855625 59.295625
|
|
C 23.855625 59.94375 24.12125 60.549375 24.578125 61.00625
|
|
L 34.289375 70.7175
|
|
C 34.74625 71.174375 35.351875 71.44 36 71.44
|
|
C 36.648125 71.44 37.25375 71.174375 37.710625 70.7175
|
|
L 47.421875 61.00625
|
|
C 47.87875 60.549375 48.144375 59.94375 48.144375 59.295625
|
|
C 48.144375 57.9675 47.039375 56.873125 45.71125 56.873125
|
|
L 40.855625 56.873125
|
|
L 40.855625 42.295625
|
|
L 55.433125 42.295625
|
|
L 55.433125 47.161875
|
|
C 55.433125 48.49 56.5275 49.584375 57.855625 49.584375
|
|
C 58.50375 49.584375 59.109375 49.31875 59.56625 48.861875
|
|
L 69.2775 39.150625
|
|
C 69.734375 38.69375 70 38.088125 70 37.44
|
|
"/>
|
|
</g>
|
|
</g>
|
|
</svg>
|