add icon to move_path_node; fix back small change
This commit is contained in:
parent
644de3504a
commit
7489080291
117
extensions/fablabchemnitz/move_path_node/icon.svg
Normal file
117
extensions/fablabchemnitz/move_path_node/icon.svg
Normal file
@ -0,0 +1,117 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
width="100.0px"
|
||||
height="100.0px"
|
||||
viewBox="0 0 100.0 100.0"
|
||||
version="1.1"
|
||||
id="svg2051"
|
||||
inkscape:version="1.4.2 (1:1.4.2+202505120737+ebf0e940d0)"
|
||||
sodipodi:docname="icon.svg"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<sodipodi:namedview
|
||||
id="namedview2053"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pagecheckerboard="false"
|
||||
inkscape:document-units="px"
|
||||
showgrid="false"
|
||||
inkscape:showpageshadow="false"
|
||||
inkscape:snap-tangential="true"
|
||||
inkscape:snap-perpendicular="true"
|
||||
inkscape:deskcolor="#ffffff"
|
||||
inkscape:lockguides="true"
|
||||
inkscape:zoom="4"
|
||||
inkscape:cx="33.25"
|
||||
inkscape:cy="40.875"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1008"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="layer1"
|
||||
inkscape:export-bgcolor="#ffffffff" />
|
||||
<defs
|
||||
id="defs2048" />
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="scale(3.77953, 3.77953)">
|
||||
<g
|
||||
id="g27">
|
||||
<path
|
||||
id="path26"
|
||||
style="vector-effect:non-scaling-stroke;fill:#000000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.429254;stroke-opacity:1;-inkscape-stroke:hairline"
|
||||
d="m 10.919129,13.229158 v 4.28667 l 2.143754,-2.142916 z"
|
||||
sodipodi:nodetypes="cccc" />
|
||||
<path
|
||||
style="font-size:19.6108px;font-family:'No Continue';-inkscape-font-specification:'No Continue, Normal';text-align:justify;letter-spacing:0px;fill:none;fill-rule:evenodd;stroke:#006ecf;stroke-width:0.243197;stroke-opacity:1"
|
||||
d="M 4.8806648,13.444055 H 5.831238 l 0.5633028,-0.563302 v -2.077179 h -1.513876 z"
|
||||
id="path18" />
|
||||
<path
|
||||
style="font-size:19.6108px;font-family:'No Continue';-inkscape-font-specification:'No Continue, Normal';text-align:justify;letter-spacing:0px;fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.243197;stroke-opacity:1"
|
||||
d="m 1.7825016,8.2687138 h 7.7101938 v 4.6824432 l -1.6546924,1.760305 1.6546924,1.795509 v 4.682535 H 1.7825016 V 8.2687138"
|
||||
id="path17" />
|
||||
<path
|
||||
style="font-size:19.6108px;font-family:'No Continue';-inkscape-font-specification:'No Continue, Normal';text-align:justify;letter-spacing:0px;fill:none;fill-rule:evenodd;stroke:#006ecf;stroke-width:0.243197;stroke-opacity:1"
|
||||
d="M 6.3945408,16.54222 5.831238,15.978916 H 4.8806648 v 2.675689 h 1.513876 z"
|
||||
id="text1" />
|
||||
<circle
|
||||
cx="1.7825016"
|
||||
cy="8.268714"
|
||||
r="0.45958573"
|
||||
id="circle-path17-1"
|
||||
style="fill:#000000;stroke:none;stroke-width:0.919171" />
|
||||
<circle
|
||||
cx="9.4926958"
|
||||
cy="8.268714"
|
||||
r="0.45958573"
|
||||
id="circle-path17-2"
|
||||
style="fill:#000000;stroke:none;stroke-width:0.919171" />
|
||||
<path
|
||||
id="text-path17-1"
|
||||
style="font-size:3.67669px;fill:#999999;stroke-width:0.919171"
|
||||
d="M 10.963148 5.1469693 C 10.796471 5.1469693 10.645792 5.1776753 10.51098 5.2389533 C 10.378619 5.2977804 10.260977 5.3702048 10.15803 5.4559942 L 10.331146 5.6730351 C 10.431642 5.5945987 10.52959 5.5331871 10.625184 5.4890671 C 10.72323 5.4449471 10.835689 5.4229213 10.963148 5.4229213 C 11.100411 5.4229213 11.212221 5.4611412 11.298011 5.5371261 C 11.3838 5.6106599 11.426685 5.7196213 11.426685 5.8642377 C 11.426685 5.9818918 11.403496 6.0908532 11.356922 6.1913494 C 11.310351 6.2893944 11.241425 6.3896754 11.150733 6.4926228 C 11.060041 6.5955701 10.948748 6.7137285 10.816387 6.8460893 L 10.128574 7.5406201 L 10.128574 7.8093374 L 11.864384 7.8093374 L 11.864384 7.5147819 L 10.536818 7.5147819 L 10.536818 7.5003125 L 11.084588 6.9597774 C 11.2194 6.8274165 11.337041 6.703427 11.437537 6.5882241 C 11.538036 6.47057 11.616808 6.3517621 11.673182 6.2316569 C 11.729555 6.1115517 11.757414 5.9828973 11.757414 5.8456342 C 11.757414 5.627484 11.686673 5.4571111 11.544508 5.3345547 C 11.402342 5.2095473 11.208261 5.1469693 10.963148 5.1469693 z M 3.2788675 5.1841763 L 2.5693506 5.7355635 L 2.7383324 5.9526044 L 3.0179017 5.7241947 C 3.0669242 5.6825256 3.1074745 5.6483209 3.1393412 5.6213587 C 3.171206 5.594396 3.2065766 5.561358 3.2457946 5.52214 C 3.2408946 5.5907715 3.2373959 5.656848 3.2349426 5.7205774 C 3.2324892 5.7843066 3.2313252 5.86891 3.2313252 5.9743085 L 3.2313252 7.8093374 L 3.547068 7.8093374 L 3.547068 5.1841763 L 3.2788675 5.1841763 z M 24.260519 5.1841763 L 23.551002 5.7355635 L 23.719984 5.9526044 L 23.999553 5.7241947 C 24.048574 5.6825258 24.088609 5.6483213 24.120476 5.6213587 C 24.152339 5.594396 24.188226 5.561358 24.227446 5.52214 C 24.222559 5.5907715 24.218544 5.656848 24.216077 5.7205774 C 24.213611 5.7843066 24.21246 5.86891 24.21246 5.9743085 L 24.21246 7.8093374 L 24.52872 7.8093374 L 24.52872 5.1841763 L 24.260519 5.1841763 z M 24.234681 9.8298846 C 24.068004 9.8298846 23.917324 9.8600738 23.782512 9.9213518 C 23.650152 9.9801792 23.53251 10.052603 23.429563 10.138393 L 23.602162 10.355434 C 23.702658 10.276998 23.800607 10.215586 23.8962 10.171466 C 23.994246 10.127346 24.107222 10.10532 24.234681 10.10532 C 24.371944 10.10532 24.483238 10.14354 24.569027 10.219525 C 24.654816 10.293059 24.697701 10.40202 24.697701 10.546636 C 24.697701 10.66429 24.674512 10.773251 24.627938 10.873748 C 24.581367 10.971793 24.512958 11.072591 24.422266 11.175538 C 24.331575 11.278485 24.219764 11.396127 24.087403 11.528488 L 23.400107 12.223019 L 23.400107 12.491736 L 25.1354 12.491736 L 25.1354 12.197697 L 23.808351 12.197697 L 23.808351 12.182711 L 24.35612 11.642176 C 24.490932 11.509815 24.608574 11.386343 24.70907 11.271139 C 24.809569 11.153485 24.887824 11.034161 24.944198 10.914055 C 25.000571 10.793951 25.028947 10.665296 25.028947 10.528033 C 25.028947 10.309882 24.957689 10.139509 24.815524 10.016953 C 24.673358 9.8919457 24.479793 9.8298846 24.234681 9.8298846 z " />
|
||||
<path
|
||||
style="font-size:19.6108px;font-family:'No Continue';-inkscape-font-specification:'No Continue, Normal';text-align:justify;letter-spacing:0px;fill:none;fill-rule:evenodd;stroke:#006ecf;stroke-width:0.243197;stroke-opacity:1"
|
||||
d="m 1.7825016,8.2687138 h 7.7101938 v 4.6824432 l -1.6546924,1.760305 1.6546924,1.795509 v 4.682535 H 1.7825016 V 8.2687138"
|
||||
id="path19" />
|
||||
<path
|
||||
style="font-size:19.6108px;font-family:'No Continue';-inkscape-font-specification:'No Continue, Normal';text-align:justify;letter-spacing:0px;fill:none;fill-rule:evenodd;stroke:#006ecf;stroke-width:0.243197;stroke-opacity:1"
|
||||
d="m 18.151907,13.444055 h 0.950574 l 0.563302,-0.563302 v -2.077179 h -1.513876 z"
|
||||
id="path20" />
|
||||
<path
|
||||
style="font-size:19.6108px;font-family:'No Continue';-inkscape-font-specification:'No Continue, Normal';text-align:justify;letter-spacing:0px;fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.243197;stroke-opacity:1"
|
||||
d="m 15.053744,8.2687138 h 7.710193 v 4.6824432 l -1.654692,1.760305 1.654692,1.795509 v 4.682535 H 15.053744 V 8.2687138"
|
||||
id="path21" />
|
||||
<path
|
||||
style="font-size:19.6108px;font-family:'No Continue';-inkscape-font-specification:'No Continue, Normal';text-align:justify;letter-spacing:0px;fill:none;fill-rule:evenodd;stroke:#006ecf;stroke-width:0.243197;stroke-opacity:1"
|
||||
d="m 19.665783,16.54222 -0.563302,-0.563304 h -0.950574 v 2.675689 h 1.513876 z"
|
||||
id="path22" />
|
||||
<path
|
||||
style="font-size:19.6108px;font-family:'No Continue';-inkscape-font-specification:'No Continue, Normal';text-align:justify;letter-spacing:0px;fill:none;fill-rule:evenodd;stroke:#006ecf;stroke-width:0.243197;stroke-opacity:1"
|
||||
d="m 22.763936,8.2687138 v 4.6824432 l -1.654693,1.760305 1.654693,1.795509 v 4.682535 H 15.053742 V 8.2687138 Z"
|
||||
id="path25" />
|
||||
<circle
|
||||
cx="22.763937"
|
||||
cy="8.268714"
|
||||
r="0.45958573"
|
||||
id="circle-path25-1"
|
||||
style="fill:#000000;stroke:none;stroke-width:0.919171" />
|
||||
<circle
|
||||
cx="22.763937"
|
||||
cy="12.951157"
|
||||
r="0.45958573"
|
||||
id="circle-path25-2"
|
||||
style="fill:#000000;stroke:none;stroke-width:0.919171" />
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 8.5 KiB |
@ -48,6 +48,8 @@
|
||||
<submenu name="Paths - Join/Order" />
|
||||
</submenu>
|
||||
</effects-menu>
|
||||
<menu-tip>Change starting / end node of a path and visualize it by dots and numbers. You can also use this extension as a trimmer for open paths.</menu-tip>
|
||||
<icon>icon.svg</icon>
|
||||
</effect>
|
||||
<script>
|
||||
<command location="inx" interpreter="python">move_path_node.py</command>
|
||||
|
@ -154,14 +154,14 @@ class MovePathNode(inkex.EffectExtension):
|
||||
inkex.utils.debug("More moves entered than possible to apply. Path result would be a point, not a line")
|
||||
#return
|
||||
|
||||
composedPath = inkex.Path()
|
||||
for newSubpath in newSubpaths:
|
||||
composedPath.extend(newSubpath)
|
||||
|
||||
if self.options.debug is True:
|
||||
inkex.utils.debug("Composed path = " + str(composedPath))
|
||||
composedPath = inkex.Path()
|
||||
for newSubpath in newSubpaths:
|
||||
composedPath.extend(newSubpath)
|
||||
|
||||
element.path = composedPath
|
||||
if self.options.debug is True:
|
||||
inkex.utils.debug("Composed path = " + str(composedPath))
|
||||
|
||||
element.path = composedPath
|
||||
|
||||
def visualizeFirstTwo(self, element):
|
||||
"""Add a dot label for this path element"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user