GraphiteEditor / GraphiteEditor/Graphite

SVG importer ignores `clipPath` applied to a group

Đang mở
#4,331 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Rust
Star
27.2k
Fork
1.3k
Merge trung bình
20 giờ 5 phút
Pull request đã merge (30 ngày)
57

Mô tả

## Description

The SVG importer does not respect a `clipPath` applied to a group. Content that should be cropped to the clipping shape is imported without clipping. follow up of #4329

## Steps to reproduce

1. Open `clip-path.svg` in a browser or another SVG viewer. It appears as a blue circle because a circle clips a larger square.
2. Import the same file into Graphite.
3. Compare the imported result with the browser rendering.

## Expected behavior

Only the circular portion of the blue square is visible, matching the SVG rendering in a browser.

Image

## Actual behavior

The clipping path is ignored and the full blue square is visible.

Image

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Start by reproducing the issue with clip-path.svg, comparing its browser rendering with the imported result in Graphite. Trace the SVG importer’s handling of clipPath applied to a group, and verify completion when the imported artwork shows only the circular portion of the blue square, matching the SVG rendering.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
rust
Lĩnh vực
computer-graphics
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
55/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.