Fill tool in GraphTool doesn't work if fill point is too close to a boundary

Abierto
#1,473 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 4 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
perl

Línea de trabajo

Start with the fill handling in parserGraphTool.pl and run the four GraphTool examples from the issue's MWE, varying the fill point and snapSizeX. Find where a fill point within half a snapSize of a boundary is discarded or snapped. Done means either the fill works for those cases, or the POD documents the limitation as intended, as the maintainer proposed. Check with the thread first, since the expected behaviour is not yet settled.

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

Descripción

If the fill point in a GraphTool fill object is within half of the snapSize of a boundary, then the region does not get filled. See the MWE below.

If this is the expected behaviour then we should put a note in the POD about it.

DOCUMENT();

loadMacros('PGstandard.pl', 'PGML.pl', 'parserGraphTool.pl', 'PGcourse.pl');

$gt1 = GraphTool(
    "{line,solid,(0,0),(0,-1)},
    {fill,(-1/2,0)}"
);

$gt2 = GraphTool(
    "{line,solid,(0,0),(0,-1)},
    {fill,(-.5001,0)}"
);

$gt3 = GraphTool(
    "{line,solid,(0,0),(0,-1)},
    {fill,(-1/4,0)}"
)->with(snapSizeX => 1/2);

$gt4 = GraphTool(
    "{line,solid,(0,0),(0,-1)},
    {fill,(-.251,0)}"
)->with(snapSizeX => 1/2);

BEGIN_PGML
[@ $gt1->generateAnswerGraph() @]*

[@ $gt2->generateAnswerGraph() @]*

[@ $gt3->generateAnswerGraph() @]*

[@ $gt4->generateAnswerGraph() @]*
END_PGML

ENDDOCUMENT();
Lenguaje dominante
Perl
Estrellas
48
Forks
78
Merge medio
5 d 13 h
PR fusionados (30 d)
9

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de openwebwork/pg

Todos los issues de openwebwork/pg

Issues similares

Más issues de Perl

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.