Seamly2D icon indicating copy to clipboard operation
Seamly2D copied to clipboard

BUG: SVG group includes origin point 0,0

Open slspencer opened this issue 4 months ago • 1 comments

  • Some bounding boxes for pattern pieces in an SVG export file are too big. These bounding boxes, or pattern piece XML groups, erroneously include the origin point which extends the pattern piece's bounding box up to the origin. These extra origin points have been in Seamly's SVG exports all along, they weren't recently introduced.

  • How To Reproduce the bug: Export an SVG layout from Seamly2D version 2024.10.8

  • What should have happened: All bounding boxes should be tight around each pattern piece's cut line.

  • Screenshots

  1. Looking at the SVG file in VSCode. Here is the XML group with a single child <path> 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

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

  2. 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

  • What's your Desktop OS? Windows 10
  • What's your Seamly version from Help/About? Seamly 2024.10.8.1758

slspencer avatar Oct 09 '24 17:10 slspencer