From: Tan Kian-ting Date: Wed, 15 Nov 2023 04:38:51 +0000 (+0800) Subject: fix grid info X-Git-Url: https://git.kianting.info/?a=commitdiff_plain;h=9c51921978468526aed0da6060900fe54967848e;p=clo fix grid info --- diff --git a/blank.pdf b/blank.pdf index 92353b2..927e353 100644 Binary files a/blank.pdf and b/blank.pdf differ diff --git a/src/libclo/index.js b/src/libclo/index.js index 17b36b4..43e410c 100644 --- a/src/libclo/index.js +++ b/src/libclo/index.js @@ -373,7 +373,7 @@ class Clo { page.drawText('You can create PDFs!'); for (var j = 0; j < 1000; j += 5) { if (j % 50 == 0) { - page.drawText(i.toString(), { x: 50, y: j }); + page.drawText(j.toString(), { x: 50, y: j }); } page.drawLine({ start: { x: 0, y: j }, diff --git a/src/libclo/index.ts b/src/libclo/index.ts index bcd6a46..b9c3b09 100644 --- a/src/libclo/index.ts +++ b/src/libclo/index.ts @@ -457,7 +457,7 @@ export class Clo{ for (var j = 0; j<1000; j+=5){ if (j %50 == 0){ - page.drawText(i.toString(), {x: 50, y: j}); + page.drawText(j.toString(), {x: 50, y: j}); } page.drawLine({