GraphiteEditor / GraphiteEditor/Graphite
Make the Fill tool work on strokes
- Lenguaje dominante
- Rust
- Estrellas
- 27.2k
- Forks
- 1.3k
- Merge medio
- 20 h 5 min
- PR fusionados (30 d)
- 57
Descripción
When hovering over a layer stroke, it should display the dotted overlay like we do for fills:

So in this image, we'd have the white dotted lines over the black layer stroke instead. See .
Additionally, we'd like to prevent the dotted overlays from extending into half the stroke area, like we see above. This can be achieved by using some compositing tricks with the 2D canvas API to render the stroke in such a manner that it erases the drawable area where the fill dotted pattern goes. (This can't affect other overlays also drawn in that area, though, so no erasing the full canvas in that area.)
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Comienza con el renderizado de la superposición de hover del Fill tool y la ruta de composición del 2D canvas, utilizando la documentación de CanvasRenderingContext2D strokeStyle como referencia para el comportamiento del stroke. Haz que la superposición punteada aparezca al pasar el cursor sobre el stroke de una capa, mantenla dentro del área del stroke y evita borrar otras superposiciones; verifica el resultado con la imagen adjunta.
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
- Nueva funcionalidad
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 45/100