From 0e954647c647ff86b4066d7d323cb271fd18df19 Mon Sep 17 00:00:00 2001 From: Ralf Sternberg Date: Sat, 18 Jan 2025 12:17:36 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Small=20fix=20in=20text=20exampl?= =?UTF-8?q?e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/src/text.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/src/text.js b/examples/src/text.js index 98c3c89..6f84bbf 100644 --- a/examples/src/text.js +++ b/examples/src/text.js @@ -1,6 +1,6 @@ import { readFile, writeFile } from 'node:fs/promises'; -import { PdfMaker, rows, span, text } from '../../src/index.ts'; +import { PdfMaker, rows, span, text } from 'pdfmkr'; const document = { defaultStyle: { @@ -64,9 +64,9 @@ const document = { // Text alignment rows( [ - span('Text can be left-aligned …', { textAlign: 'left' }), - span('centered,', { textAlign: 'center' }), - span('… or right-aligned', { textAlign: 'right' }), + text('Text can be left-aligned …', { textAlign: 'left' }), + text('centered,', { textAlign: 'center' }), + text('… or right-aligned', { textAlign: 'right' }), ], { margin: { y: 10 } }, ),