SVG and PDF export of 2d sketches is incorrect for contours with custom styles with "contours are filled" set
維護者通常 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 內容生成。
描述
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:
Actual behavior
The exported SVG and PDF have incorrectly filled contours:
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 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
solvespace/solvespace 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 76/100
solvespace/solvespace#1775 · 3 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 74/100
solvespace/solvespace#1774 ·
維護者通常 1 天內回覆
-
Python bindings waiting-on-reporter
難度 2/5 1-3 小時 新手友好度 72/100
solvespace/solvespace#1773 · 2 則留言 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 25/100
solvespace/solvespace#1796 · 4 則留言 ·
維護者通常 1 天內回覆
-
難度 3/5 1-2 天 新手友好度 68/100
solvespace/solvespace#1794 ·
維護者通常 1 天內回覆
查看 solvespace/solvespace 的全部 Issue
相似的 Issue
-
Linux npm packaging leaves workspace files that block subsequent CI checkout可能已有人在做 @Spockkk0225 今天認領。 未關閉ci
難度 2/5 1-3 小時 新手友好度 73/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 3 天內回覆
-
Bug
難度 2/5 1-3 小時 新手友好度 68/100
SCIInstitute/SCIRun#2909 ·
維護者通常 2 天內回覆
-
area: packaging blocked dependencies P3: low post-stable value: medium
難度 2/5 1-3 小時 新手友好度 66/100
patrick-hudson/put.gd-desktop#1210 ·
維護者通常 1 天內回覆