FashionFreedom / Seamly2D

Open source patternmaking software to democratize fashion.
https://seamly.io
GNU General Public License v3.0
600 stars 110 forks source link

BUG: SVG group includes origin point 0,0 #1197

Open slspencer opened 3 hours ago

slspencer commented 3 hours ago
  1. Looking at the SVG file in VSCode. Here is the XML group with a single child \ element that has attribute d="M0,0":

    <g stroke-opacity="1" stroke-linejoin="round" font-family="Arial" transform="matrix(1,0,0,1,0,0)" 
    font-style="normal" fill="none" font-weight="400" stroke="#000000" stroke-width="1" 
    stroke-linecap="round" font-size="10.6667">
    <path vector-effect="none" fill-rule="evenodd" d="M0,0"/>\
    </g>

    image

  2. Looking at the SVG file in Inkscape. The sleeve piece's bounding box extends up to origin point 0,0: image

  3. Looking at the SVG file in Inskcape, with [Shift][Cntrl][X] to view the XML. (Inkscape assigns id's to groups and elements. Seamly's SVG files don't have IDs) The sleeve piece's Inkscape assigned group id=g140, the origin point group id=g126 under g140. The group g140 is causing the bounding box to extend up to the origin point. image

slspencer commented 3 hours ago

This is the SVG file with extra origin points in some pattern piece groups.
The cutline and seamline will not display properly if you use a dark theme.
You can download this SVG file by right-clicking on the image below and selecting 'Save Image As'.


2024-10-09-b-Ald 2002 - Tailored Jkt V1-Std-Waist-Shape-FairCurve-ALD-PercentsV2_layout_01