SVG/PNG export does not preserve axis/tick font settings and clips axis label
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 55/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- react, typescript
- Área
- data-visualization, frontend
Línea de trabajo
Start by tracing the SVG/PNG export entry point and the axis/tick-label rendering used by the NMRium display; no source files or tests are identified in the issue. Reproduce the problem with changed font family and size, then verify both export formats preserve those settings and keep the δ [ppm] label inside the image frame.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Current behavior
When exporting a spectrum as SVG or PNG, the exported figure does not preserve the font settings used in the NMRium display.
This may be related to #3529, which concerns customization of font size and font family. In the current UI, these settings affect the on-screen spectrum, but they are not reproduced correctly in the exported figure.
Observed behavior:
- Tick-label font size in the exported image differs from the size shown/configured in NMRium.
- Axis-label font size is not preserved.
- The font family changes during export.
- The x-axis label (
δ [ppm]) extends beyond the image boundary and is partially clipped. - The problem occurs with both SVG and PNG export.
Steps to reproduce
- Open a 1D spectrum.
- Change the axis/tick-label font settings.
- Confirm that the new settings are visible in the NMRium display.
- Export the spectrum as SVG or PNG.
- Compare the exported figure with the on-screen spectrum.
Expected behavior
- SVG/PNG export should preserve the configured font size and font family for axis and tick labels.
- The exported figure should visually match the spectrum shown in NMRium.
- Axis labels should remain fully inside the exported image frame.
Screenshots
NMRium display
The configured axis and tick-label font settings are visible in the NMRium interface.
Exported PNG
The exported figure uses different font sizing/font rendering, and the x-axis label is clipped at the bottom.
Related issue
- #3529 — Customize font size, color, ...
- Lenguaje dominante
- TypeScript
- Estrellas
- 83
- Forks
- 35
- Merge medio
- 1 d 4 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
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de cheminfo/nmrium
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
2d AssignmentsAbiertoto discuss
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
Los mantenedores suelen responder en 1 día
-
Auto label peptidesPosiblemente ocupada @hamed-musallam la tomó hace 13 días. Abierto
cheminfo/nmrium#4415 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Expand chemical groupsPosiblemente ocupada @hamed-musallam la tomó hace 13 días. Abiertoenhancement
cheminfo/nmrium#4414 · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de cheminfo/nmrium
Issues similares
-
triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
🎙️ task - drop the raw `./node_modules/.bin/rhachet roles boot` line from bhuild's feedback templateAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
ehmpathy/rhachet-roles-bhuild#639 ·
Los mantenedores suelen responder en 1 día
-
e2e-failure ready-to-code
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
redhat-developer/rhdh-plugin-export-overlays#4650 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 13 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
omdsh-dev/DSH-better-sidebar#1098 ·
Los mantenedores suelen responder en 2 días