Skip to content

Commit

Permalink
refactor: inline calculations (#452)
Browse files Browse the repository at this point in the history
* refactor: calculate expressions manually

* chore: fix build scripts

* chore: update dependencies

* chore: update dependencies

* style: lint fixes

* chore: update dependencies
  • Loading branch information
schoero authored Feb 26, 2025
1 parent 9652ba3 commit f848109
Show file tree
Hide file tree
Showing 32 changed files with 1,852 additions and 3,282 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ Once you have imported SwissQRBill and PDFKit, it is quite easy to create a simp

```js
import { createWriteStream } from "node:fs";

import PDFDocument from "pdfkit";
import { SwissQRBill } from "swissqrbill/pdf";

Expand Down
3 changes: 2 additions & 1 deletion examples/browser-bundling-with-webpack/src/pdf.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import BlobStream from "blob-stream";
import fs from "fs";

import BlobStream from "blob-stream";
import PDFDocument from "pdfkit";
import HelveticaBold from "pdfkit/js/data/Helvetica-Bold.afm";
import Helvetica from "pdfkit/js/data/Helvetica.afm";
Expand Down
1 change: 1 addition & 0 deletions examples/how-to-create-a-complete-qr-bill/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { createWriteStream } from "fs";

import PDFDocument from "pdfkit";
import { SwissQRBill, Table } from "swissqrbill/pdf";
import { mm2pt } from "swissqrbill/utils";
Expand Down
1 change: 1 addition & 0 deletions examples/node-cjs-javascript/src/pdf.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const { createWriteStream } = require("fs");

const PDFDocument = require("pdfkit");
const { SwissQRBill } = require("swissqrbill/pdf");

Expand Down
1 change: 1 addition & 0 deletions examples/node-cjs-javascript/src/svg.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const { writeFileSync } = require("fs");

const { SwissQRBill } = require("swissqrbill/svg");

const data = require("./data.js");
Expand Down
1 change: 1 addition & 0 deletions examples/node-esm-javascript/src/pdf.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { createWriteStream } from "fs";

import PDFDocument from "pdfkit";
import { SwissQRBill } from "swissqrbill/pdf";

Expand Down
1 change: 1 addition & 0 deletions examples/node-esm-javascript/src/svg.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { writeFileSync } from "fs";

import { SwissQRBill } from "swissqrbill/svg";

import { data } from "./data.js";
Expand Down
Loading

0 comments on commit f848109

Please sign in to comment.