SVG importer ignores `fill-rule="evenodd"`

オープン
#4,332 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

  • #4337 @NicTanghe による — マージされずにクローズ

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
rust

調査の方向性

まず SVG importer の場所を特定し、fill-rule-evenodd.svg で問題を再現して、Graphite の結果をブラウザーまたは別の SVG viewer と比較します。importer が fill-rule="evenodd" をどのように処理しているかを追跡します。内側の正方形が透明な穴になり、インポートされた形状が SVG のレンダリングと一致すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Description

The SVG importer does not respect fill-rule="evenodd". A compound path whose inner subpath should create a transparent hole is imported as a solid shape. follow up of #4329

Steps to reproduce

  1. Open fill-rule-evenodd.svg in a browser or another SVG viewer. It appears as a purple square with a transparent square hole.
  2. Import the same file into Graphite.
  3. Compare the imported result with the browser rendering.

Expected behavior

The imported shape is a purple square with a transparent square hole, matching the SVG rendering in a browser.
Image

Actual behavior

The inner square is filled, so the imported result is a solid purple square. The importer behaves as if the path used the default nonzero fill rule.

Image
主要言語
Rust
スター
27.8k
フォーク
1.3k
平均マージ
10時間 53分
マージ済み PR(30日)
195

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

GraphiteEditor/Graphite のほかの issue

GraphiteEditor/Graphite の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。