formatferry 1.0.16 → 1.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -22547,7 +22547,6 @@ function extractVectorLines(fnArray, argsArray, pageWidth, pageHeight) {
|
|
|
22547
22547
|
let pathStartX = 0;
|
|
22548
22548
|
let pathStartY = 0;
|
|
22549
22549
|
let pending = [];
|
|
22550
|
-
const isPathOp = (op) => op === PDF_OP.moveTo || op === PDF_OP.lineTo || op === PDF_OP.closePath || op === PDF_OP.rectangle;
|
|
22551
22550
|
const isStrokeOp = (op) => op === PDF_OP.stroke || op === PDF_OP.closeStroke || op === PDF_OP.fillStroke;
|
|
22552
22551
|
const flushPending = () => {
|
|
22553
22552
|
for (const p of pending) {
|
|
@@ -22573,6 +22572,7 @@ function extractVectorLines(fnArray, argsArray, pageWidth, pageHeight) {
|
|
|
22573
22572
|
const op = fnArray[i];
|
|
22574
22573
|
const args = argsArray[i] ?? [];
|
|
22575
22574
|
if (op === PDF_OP.moveTo) {
|
|
22575
|
+
pending = [];
|
|
22576
22576
|
curX = args[0] ?? 0;
|
|
22577
22577
|
curY = args[1] ?? 0;
|
|
22578
22578
|
pathStartX = curX;
|
|
@@ -22598,8 +22598,6 @@ function extractVectorLines(fnArray, argsArray, pageWidth, pageHeight) {
|
|
|
22598
22598
|
curY = pathStartY;
|
|
22599
22599
|
} else if (isStrokeOp(op)) {
|
|
22600
22600
|
flushPending();
|
|
22601
|
-
} else if (!isPathOp(op)) {
|
|
22602
|
-
pending = [];
|
|
22603
22601
|
}
|
|
22604
22602
|
}
|
|
22605
22603
|
return lines;
|
|
@@ -25317,8 +25315,8 @@ import { readFileSync as readFileSync4 } from "fs";
|
|
|
25317
25315
|
import { resolve, dirname as dirname3 } from "path";
|
|
25318
25316
|
import { fileURLToPath } from "url";
|
|
25319
25317
|
var getVersion = () => {
|
|
25320
|
-
if ("1.0.
|
|
25321
|
-
return "1.0.
|
|
25318
|
+
if ("1.0.17") {
|
|
25319
|
+
return "1.0.17";
|
|
25322
25320
|
}
|
|
25323
25321
|
try {
|
|
25324
25322
|
const __dirname = dirname3(fileURLToPath(import.meta.url));
|