2021-03-02 02:23:27 +00:00
|
|
|
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
|
|
|
<svg
|
|
|
|
|
id="Слой_1"
|
|
|
|
|
data-name="Слой 1"
|
|
|
|
|
viewBox="0 0 24 24"
|
|
|
|
|
version="1.1"
|
Rework item distribution
This splits the tool into two separate tools: by center and
by even gaps. Previously, this was automatically decided, based on
if the items could have any gaps between them. This was unintuitive
as it would appear to arrange by centre point sometimes but not others.
When items aren't all the same width, the results can then be very
different, based only on the starting positions.
The new behaviour is to have a dedicated tool for each, which echos
how graphical programs like Inkscape manage this.
The by-gaps method is then extended to work for overlapping items
(when items overlap, the overlaps are made equal). The logic is
centralised in kimath/geometry, and some QA is added. This should
make it easier to extend to eeschema, for example.
This also (attempts to) address some rounding issues which could
cause minor, but compounding, errors to build up along the list
of items.
Also, fix bugs in the collection filtering - previously items
like markers were filtered out only after the selection size
was used to compute the gaps between items.
2024-05-04 07:41:21 +00:00
|
|
|
|
sodipodi:docname="distribute_vertical_centers.svg"
|
|
|
|
|
inkscape:version="1.3.2 (091e20ef0f, 2023-11-25, custom)"
|
|
|
|
|
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"
|
|
|
|
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
|
|
|
xmlns:cc="http://creativecommons.org/ns#"
|
|
|
|
|
xmlns:dc="http://purl.org/dc/elements/1.1/">
|
2021-03-02 02:23:27 +00:00
|
|
|
|
<sodipodi:namedview
|
2021-03-11 13:39:07 +00:00
|
|
|
|
pagecolor="#ffffff"
|
2021-03-02 02:23:27 +00:00
|
|
|
|
bordercolor="#666666"
|
|
|
|
|
borderopacity="1"
|
|
|
|
|
objecttolerance="10"
|
|
|
|
|
gridtolerance="10"
|
|
|
|
|
guidetolerance="10"
|
|
|
|
|
inkscape:pageopacity="0"
|
|
|
|
|
inkscape:pageshadow="2"
|
|
|
|
|
inkscape:window-width="1609"
|
|
|
|
|
inkscape:window-height="1035"
|
|
|
|
|
id="namedview30"
|
|
|
|
|
showgrid="true"
|
|
|
|
|
inkscape:zoom="20.307321"
|
Rework item distribution
This splits the tool into two separate tools: by center and
by even gaps. Previously, this was automatically decided, based on
if the items could have any gaps between them. This was unintuitive
as it would appear to arrange by centre point sometimes but not others.
When items aren't all the same width, the results can then be very
different, based only on the starting positions.
The new behaviour is to have a dedicated tool for each, which echos
how graphical programs like Inkscape manage this.
The by-gaps method is then extended to work for overlapping items
(when items overlap, the overlaps are made equal). The logic is
centralised in kimath/geometry, and some QA is added. This should
make it easier to extend to eeschema, for example.
This also (attempts to) address some rounding issues which could
cause minor, but compounding, errors to build up along the list
of items.
Also, fix bugs in the collection filtering - previously items
like markers were filtered out only after the selection size
was used to compute the gaps between items.
2024-05-04 07:41:21 +00:00
|
|
|
|
inkscape:cx="3.7424927"
|
|
|
|
|
inkscape:cy="17.112055"
|
2021-03-02 02:23:27 +00:00
|
|
|
|
inkscape:window-x="0"
|
|
|
|
|
inkscape:window-y="23"
|
|
|
|
|
inkscape:window-maximized="0"
|
|
|
|
|
inkscape:document-rotation="0"
|
Rework item distribution
This splits the tool into two separate tools: by center and
by even gaps. Previously, this was automatically decided, based on
if the items could have any gaps between them. This was unintuitive
as it would appear to arrange by centre point sometimes but not others.
When items aren't all the same width, the results can then be very
different, based only on the starting positions.
The new behaviour is to have a dedicated tool for each, which echos
how graphical programs like Inkscape manage this.
The by-gaps method is then extended to work for overlapping items
(when items overlap, the overlaps are made equal). The logic is
centralised in kimath/geometry, and some QA is added. This should
make it easier to extend to eeschema, for example.
This also (attempts to) address some rounding issues which could
cause minor, but compounding, errors to build up along the list
of items.
Also, fix bugs in the collection filtering - previously items
like markers were filtered out only after the selection size
was used to compute the gaps between items.
2024-05-04 07:41:21 +00:00
|
|
|
|
inkscape:current-layer="Слой_1"
|
|
|
|
|
inkscape:showpageshadow="2"
|
|
|
|
|
inkscape:pagecheckerboard="0"
|
|
|
|
|
inkscape:deskcolor="#d1d1d1">
|
2021-03-02 02:23:27 +00:00
|
|
|
|
<inkscape:grid
|
|
|
|
|
type="xygrid"
|
|
|
|
|
id="grid_kicad"
|
|
|
|
|
spacingx="0.5"
|
|
|
|
|
spacingy="0.5"
|
|
|
|
|
color="#9999ff"
|
|
|
|
|
opacity="0.13"
|
Rework item distribution
This splits the tool into two separate tools: by center and
by even gaps. Previously, this was automatically decided, based on
if the items could have any gaps between them. This was unintuitive
as it would appear to arrange by centre point sometimes but not others.
When items aren't all the same width, the results can then be very
different, based only on the starting positions.
The new behaviour is to have a dedicated tool for each, which echos
how graphical programs like Inkscape manage this.
The by-gaps method is then extended to work for overlapping items
(when items overlap, the overlaps are made equal). The logic is
centralised in kimath/geometry, and some QA is added. This should
make it easier to extend to eeschema, for example.
This also (attempts to) address some rounding issues which could
cause minor, but compounding, errors to build up along the list
of items.
Also, fix bugs in the collection filtering - previously items
like markers were filtered out only after the selection size
was used to compute the gaps between items.
2024-05-04 07:41:21 +00:00
|
|
|
|
empspacing="2"
|
|
|
|
|
originx="0"
|
|
|
|
|
originy="0"
|
|
|
|
|
units="px"
|
|
|
|
|
visible="true" />
|
2021-03-02 02:23:27 +00:00
|
|
|
|
</sodipodi:namedview>
|
|
|
|
|
<metadata
|
|
|
|
|
id="metadata43">
|
|
|
|
|
<rdf:RDF>
|
|
|
|
|
<cc:Work
|
|
|
|
|
rdf:about="">
|
|
|
|
|
<dc:format>image/svg+xml</dc:format>
|
|
|
|
|
<dc:type
|
|
|
|
|
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
Rework item distribution
This splits the tool into two separate tools: by center and
by even gaps. Previously, this was automatically decided, based on
if the items could have any gaps between them. This was unintuitive
as it would appear to arrange by centre point sometimes but not others.
When items aren't all the same width, the results can then be very
different, based only on the starting positions.
The new behaviour is to have a dedicated tool for each, which echos
how graphical programs like Inkscape manage this.
The by-gaps method is then extended to work for overlapping items
(when items overlap, the overlaps are made equal). The logic is
centralised in kimath/geometry, and some QA is added. This should
make it easier to extend to eeschema, for example.
This also (attempts to) address some rounding issues which could
cause minor, but compounding, errors to build up along the list
of items.
Also, fix bugs in the collection filtering - previously items
like markers were filtered out only after the selection size
was used to compute the gaps between items.
2024-05-04 07:41:21 +00:00
|
|
|
|
<dc:title>distribute_vertical_centers</dc:title>
|
|
|
|
|
<cc:license
|
|
|
|
|
rdf:resource="http://creativecommons.org/licenses/by-sa/4.0/" />
|
2021-03-02 02:23:27 +00:00
|
|
|
|
</cc:Work>
|
|
|
|
|
<cc:License
|
|
|
|
|
rdf:about="http://creativecommons.org/licenses/by-sa/4.0/">
|
|
|
|
|
<cc:permits
|
|
|
|
|
rdf:resource="http://creativecommons.org/ns#Reproduction" />
|
|
|
|
|
<cc:permits
|
|
|
|
|
rdf:resource="http://creativecommons.org/ns#Distribution" />
|
|
|
|
|
<cc:requires
|
|
|
|
|
rdf:resource="http://creativecommons.org/ns#Notice" />
|
|
|
|
|
<cc:requires
|
|
|
|
|
rdf:resource="http://creativecommons.org/ns#Attribution" />
|
|
|
|
|
<cc:permits
|
|
|
|
|
rdf:resource="http://creativecommons.org/ns#DerivativeWorks" />
|
|
|
|
|
<cc:requires
|
|
|
|
|
rdf:resource="http://creativecommons.org/ns#ShareAlike" />
|
|
|
|
|
</cc:License>
|
|
|
|
|
</rdf:RDF>
|
|
|
|
|
</metadata>
|
|
|
|
|
<defs
|
|
|
|
|
id="defs116574">
|
|
|
|
|
<style
|
2021-05-01 19:19:30 +00:00
|
|
|
|
id="style116572">.cls-1,.cls-3{fill:none;stroke-linecap:round;stroke-linejoin:round;}.cls-1{stroke:#42B8EB;stroke-width:1.0035px;}.cls-2{fill:#8f8f8f;}.cls-3{stroke:#DED3DD;}.cls-4{fill:#DED3DD;}</style>
|
2021-03-02 02:23:27 +00:00
|
|
|
|
</defs>
|
|
|
|
|
<title
|
Rework item distribution
This splits the tool into two separate tools: by center and
by even gaps. Previously, this was automatically decided, based on
if the items could have any gaps between them. This was unintuitive
as it would appear to arrange by centre point sometimes but not others.
When items aren't all the same width, the results can then be very
different, based only on the starting positions.
The new behaviour is to have a dedicated tool for each, which echos
how graphical programs like Inkscape manage this.
The by-gaps method is then extended to work for overlapping items
(when items overlap, the overlaps are made equal). The logic is
centralised in kimath/geometry, and some QA is added. This should
make it easier to extend to eeschema, for example.
This also (attempts to) address some rounding issues which could
cause minor, but compounding, errors to build up along the list
of items.
Also, fix bugs in the collection filtering - previously items
like markers were filtered out only after the selection size
was used to compute the gaps between items.
2024-05-04 07:41:21 +00:00
|
|
|
|
id="title116576">distribute_vertical_centers</title>
|
2021-03-02 02:23:27 +00:00
|
|
|
|
<path
|
|
|
|
|
id="line116578"
|
|
|
|
|
style="fill:none;stroke:#42B8EB;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none"
|
|
|
|
|
d="M 22.000301,6.000402 H 2.000302"
|
|
|
|
|
sodipodi:nodetypes="cc" />
|
|
|
|
|
<rect
|
|
|
|
|
class="cls-2"
|
|
|
|
|
x="-18.000301"
|
|
|
|
|
y="-10.000302"
|
|
|
|
|
width="12"
|
|
|
|
|
height="8"
|
|
|
|
|
id="rect116580"
|
2021-05-01 19:19:30 +00:00
|
|
|
|
style="fill:#DED3DD;fill-opacity:1;stroke-width:0.999997"
|
2021-03-02 02:23:27 +00:00
|
|
|
|
transform="scale(-1)" />
|
|
|
|
|
<path
|
|
|
|
|
id="line116586"
|
|
|
|
|
style="fill:none;stroke:#42B8EB;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none"
|
|
|
|
|
d="m 22.000302,18.000302 h -20"
|
|
|
|
|
sodipodi:nodetypes="cc" />
|
|
|
|
|
<rect
|
|
|
|
|
class="cls-2"
|
|
|
|
|
x="-19.998554"
|
|
|
|
|
y="-22.000196"
|
|
|
|
|
width="15.999365"
|
|
|
|
|
height="7.9980106"
|
|
|
|
|
transform="matrix(-0.99999999,1.243547e-4,-7.9587011e-5,-1,0,0)"
|
|
|
|
|
id="rect116588"
|
2021-05-01 19:19:30 +00:00
|
|
|
|
style="fill:#DED3DD;fill-opacity:1;stroke-width:1" />
|
2021-03-02 02:23:27 +00:00
|
|
|
|
</svg>
|