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.
53 lines
1.8 KiB
XML
53 lines
1.8 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 43.283438 55.959375
|
|
C 43.283438 55.12 42.603437 54.44 41.764063 54.44
|
|
L 32.658437 54.44
|
|
C 31.829687 54.44 31.139063 55.12 31.139063 55.959375
|
|
L 31.139063 65.065
|
|
C 31.139063 65.904375 31.829687 66.584375 32.658437 66.584375
|
|
L 41.764063 66.584375
|
|
C 42.603437 66.584375 43.283438 65.904375 43.283438 65.065
|
|
z
|
|
M 55.279063 33.19
|
|
C 55.279063 24.49875 46.173438 18.0175 38.045313 18.0175
|
|
C 30.310312 18.0175 24.540937 21.31125 20.439687 28.11125
|
|
C 20.025312 28.79125 20.174062 29.62 20.822187 30.119375
|
|
L 27.048437 34.858125
|
|
C 27.345937 35.049375 27.654062 35.16625 27.994062 35.16625
|
|
C 28.408437 35.16625 28.865313 34.9325 29.173437 34.560625
|
|
C 31.404688 31.745 32.318438 30.841875 33.232187 30.19375
|
|
C 34.060937 29.62 35.622812 29.08875 37.333438 29.08875
|
|
C 40.404062 29.08875 43.177188 30.990625 43.177188 33.115625
|
|
C 43.177188 35.54875 41.955313 36.791875 39.033438 38.12
|
|
C 35.697187 39.639375 31.139063 43.591875 31.139063 48.181875
|
|
L 31.139063 49.8925
|
|
C 31.139063 50.72125 31.670313 52.0175 32.509687 52.0175
|
|
L 41.615313 52.0175
|
|
C 42.486563 52.0175 43.134687 51.029375 43.134687 50.19
|
|
C 43.134687 49.095625 44.537188 46.47125 46.779063 45.185625
|
|
C 50.380938 43.166875 55.279063 40.404375 55.279063 33.19
|
|
z
|
|
"/>
|
|
</g>
|
|
</g>
|
|
</svg>
|