SVG and PDF export of 2d sketches is incorrect for contours with custom styles with "contours are filled" set

未關閉
#1,475 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
35/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
cpp

研究方向

Start by comparing the SVG exports from the two attached test files: TextOnAPanel.slvs and TextOnAPanelFilledContoursCustomStyle.slvs. The issue identifies the added class='s100' fill='#4c4c4c' on each contour/path as the difference; trace the SVG and PDF export paths from there. Done means filled contours in both exports match the expected shaded areas.

由索引模型根據 Issue 內容生成。

描述

bug
System information
  • SolveSpace version: 2afabadfa5e21ad37dfcac24cf8244e2ffcdbd78
  • Operating system: any
Expected behavior

If a sketch - where the contours are assigned a custom style with "contours are filled" - is exported to a SVG or PDF the exported file should have the correct shaded/filled areas:
image

Actual behavior

The exported SVG and PDF have incorrectly filled contours:
image

Additional information

https://solvespace.com/forum.pl?action=viewthread&parent=4296&tt=1721818868

TextOnAPanel_SVG_PDF_Export.zip

The above zip file contains two test slvs files:

  • TextOnAPanel.slvs uses the default styles and the exported SVG is only countours - this OK
  • TextOnAPanelFilledContoursCustomStyle.slvs uses a custom style with "contours are filled" set and the SVG export is wrong.

If one compares the two SVG files the only difference is the extra
class='s100' fill='#4c4c4c'
added to each contour/path.

This is apparently not the right thing to do.

主要語言
C++
星號
4.2k
分支
600
平均合併
9 小時 37 分鐘
30 天內合併 PR
9

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

solvespace/solvespace 的其他 Issue

查看 solvespace/solvespace 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。