Closed bordoray closed 4 months ago
translator/vector/symbol
ディレクトリ内の複数のファイルが変更されました。主な変更点は、convert_to_point
関数の削除と、新しいget_stroke_width_pt
関数の導入に関連しています。これにより、ポリゴンシンボルと線シンボルのアウトライン幅の処理が改善されました。また、QGISのマップキャンバス上で見える「非常に細い線」が、Illustratorでインポートした際にも正しく表示されるようになりました。
ファイル | 変更内容 |
---|---|
.../symbol/fill.py , .../symbol/line.py |
convert_to_point 関数の削除とget_stroke_width_pt 関数の導入。line.py ではto_rgba のインポートをto_rgba, get_stroke_width_pt に変更。 |
.../symbol/marker.py |
get_stroke_width_pt 関数を使用してoutline_width の計算を更新。 |
Objective | Addressed | Explanation |
---|---|---|
#167: Fix hairline width -> 0 | ✅ |
🐰✨
細い線、心は広く
変更の風、新たな光を当てる
コードのうさぎ、喜びに飛び跳ねる
Illustratorも見逃さず抱く
細い線の誓い、永遠に変わらず
🌟🌿
Issue
close #167
変更内容:Description
テスト手順:Test
Summary by CodeRabbit
fill.py
およびline.py
モジュールでconvert_to_point
関数をget_stroke_width_pt
関数に置き換えました。line.py
でto_rgba
関数のインポートをto_rgba, get_stroke_width_pt
に置き換えました。marker.py
でtranslator.vector.symbol.utils
からget_stroke_width_pt
関数を追加しました。get_stroke_width_pt
関数を導入して、ライン幅をポイント単位で計算するようにしました。