@chialab/pdfjs-lib 1.0.0-alpha.34 → 1.0.0-alpha.35

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.
@@ -42430,6 +42430,7 @@ async function createTextLayerV2(page, {
42430
42430
  }
42431
42431
  chunks.push({
42432
42432
  text,
42433
+ width: textWidth,
42433
42434
  margin: margin * finalFontSize,
42434
42435
  scale: graphicWidth / textWidth
42435
42436
  });
@@ -22,6 +22,7 @@ export interface TextLayerAnchor extends TextLayerElement {
22
22
  }
23
23
  export interface TextLayerChunk {
24
24
  text: string;
25
+ width: number;
25
26
  margin: number;
26
27
  scale?: number;
27
28
  }
@@ -41072,6 +41072,7 @@ async function createTextLayerV2(page, {
41072
41072
  }
41073
41073
  chunks.push({
41074
41074
  text,
41075
+ width: textWidth,
41075
41076
  margin: margin * finalFontSize,
41076
41077
  scale: graphicWidth / textWidth
41077
41078
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@chialab/pdfjs-lib",
3
3
  "description": "A custom Mozilla's PDF.js build with better Node support and extras.",
4
- "version": "1.0.0-alpha.34",
4
+ "version": "1.0.0-alpha.35",
5
5
  "type": "module",
6
6
  "author": "Chialab <dev@chialab.it>",
7
7
  "license": "MIT",