@chialab/pdfjs-lib 1.0.0-alpha.25 → 1.0.0-alpha.26

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.
@@ -28001,23 +28001,23 @@ CanvasGraphics.prototype.beginDrawing = function(options) {
28001
28001
  }
28002
28002
  return beginDrawing.call(this, options);
28003
28003
  };
28004
- CanvasGraphics.prototype.beginMarkedContent = function(type) {
28005
- beginMarkedContent.call(this, this.ctx);
28004
+ CanvasGraphics.prototype.beginMarkedContent = function(opIdx, type) {
28005
+ beginMarkedContent.call(this, opIdx, this.ctx);
28006
28006
  if (this.ctx instanceof SvgCanvasContext) {
28007
28007
  this.ctx.beginMarkedContent(type);
28008
28008
  }
28009
28009
  };
28010
- CanvasGraphics.prototype.beginMarkedContentProps = function(type, props) {
28011
- beginMarkedContentProps.call(this, type, props);
28010
+ CanvasGraphics.prototype.beginMarkedContentProps = function(opIdx, type, props) {
28011
+ beginMarkedContentProps.call(this, opIdx, type, props);
28012
28012
  if (this.ctx instanceof SvgCanvasContext) {
28013
28013
  this.ctx.beginMarkedContent(type, props);
28014
28014
  }
28015
28015
  };
28016
- CanvasGraphics.prototype.endMarkedContent = function() {
28016
+ CanvasGraphics.prototype.endMarkedContent = function(opIdx) {
28017
28017
  if (this.ctx instanceof SvgCanvasContext) {
28018
28018
  this.ctx.endMarkedContent();
28019
28019
  }
28020
- endMarkedContent.call(this);
28020
+ endMarkedContent.call(this, opIdx);
28021
28021
  };
28022
28022
  Object.assign(CanvasGraphics.prototype, {
28023
28023
  [OPS.beginMarkedContent]: CanvasGraphics.prototype.beginMarkedContent,
@@ -27042,23 +27042,23 @@ CanvasGraphics.prototype.beginDrawing = function(options) {
27042
27042
  }
27043
27043
  return beginDrawing.call(this, options);
27044
27044
  };
27045
- CanvasGraphics.prototype.beginMarkedContent = function(type) {
27046
- beginMarkedContent.call(this, this.ctx);
27045
+ CanvasGraphics.prototype.beginMarkedContent = function(opIdx, type) {
27046
+ beginMarkedContent.call(this, opIdx, this.ctx);
27047
27047
  if (this.ctx instanceof SvgCanvasContext) {
27048
27048
  this.ctx.beginMarkedContent(type);
27049
27049
  }
27050
27050
  };
27051
- CanvasGraphics.prototype.beginMarkedContentProps = function(type, props) {
27052
- beginMarkedContentProps.call(this, type, props);
27051
+ CanvasGraphics.prototype.beginMarkedContentProps = function(opIdx, type, props) {
27052
+ beginMarkedContentProps.call(this, opIdx, type, props);
27053
27053
  if (this.ctx instanceof SvgCanvasContext) {
27054
27054
  this.ctx.beginMarkedContent(type, props);
27055
27055
  }
27056
27056
  };
27057
- CanvasGraphics.prototype.endMarkedContent = function() {
27057
+ CanvasGraphics.prototype.endMarkedContent = function(opIdx) {
27058
27058
  if (this.ctx instanceof SvgCanvasContext) {
27059
27059
  this.ctx.endMarkedContent();
27060
27060
  }
27061
- endMarkedContent.call(this);
27061
+ endMarkedContent.call(this, opIdx);
27062
27062
  };
27063
27063
  Object.assign(CanvasGraphics.prototype, {
27064
27064
  [OPS.beginMarkedContent]: CanvasGraphics.prototype.beginMarkedContent,
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.25",
4
+ "version": "1.0.0-alpha.26",
5
5
  "type": "module",
6
6
  "author": "Chialab <dev@chialab.it>",
7
7
  "license": "MIT",