Explorar el Código

Merge branch 'feature-tianyong' into gym-test

TIANYONG hace 5 meses
padre
commit
a29cf03490
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/helpers/svgToPng.ts

+ 1 - 1
src/helpers/svgToPng.ts

@@ -9,7 +9,7 @@ export const getSvgPngToSize = (osmd: any) => {
           var state = backend.ctx.state;
           var width = backend.ctx.width / state.scale.x;
           var height = backend.ctx.height / state.scale.y;
-          const textX = width - 120,textY = height - 50;
+          const textX = width - 90,textY = height - 90;
           const textDom = `<g><text x="${textX}" y="${textY}" stroke-width="3" fill="#000000" stroke="none" stroke-dasharray="none" font-family="Times New Roman" font-size="36px" font-weight="bold" font-style="none">${idx+1}/${len}</text></g>`
           backend.ctx.svg.innerHTML = backend.ctx.svg.innerHTML + textDom;
           var cont = new XMLSerializer().serializeToString(