GraphiteEditor / GraphiteEditor/Graphite

SVG importer ignores `clipPath` applied to a group

Abierto
#4,331 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Rust
Estrellas
27.2k
Forks
1.3k
Merge medio
20 h 5 min
PR fusionados (30 d)
57

Descripción

## 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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
rust
Área
computer-graphics
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Tranquilo
Claridad
Bastante claro
Aptitud para principiantes
55/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.