@syncfusion/ej2-pdf-export 23.2.6 → 24.1.47

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 23.2.6
3
+ * version : 24.1.47
4
4
  * Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-pdf-export@*",
3
- "_id": "@syncfusion/ej2-pdf-export@23.2.4",
3
+ "_id": "@syncfusion/ej2-pdf-export@24.1.41",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-qbVejUNNK+6ZDujhgFZ5wN4PiKsFI6mdXc028v2YrG7KYVDcA+7McQMMm8w7Ga7u5y75B547rGgyHckChMowIA==",
5
+ "_integrity": "sha512-YsAAeoPkjS3iSmJVRxLQiYS9xzJagRTI9ulGPI8UbZW2vT8hI1tMJoTe0rBeXefgUC0xeFtLyORFhoDo5AyJaw==",
6
6
  "_location": "/@syncfusion/ej2-pdf-export",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -27,16 +27,16 @@
27
27
  "/@syncfusion/ej2-pivotview",
28
28
  "/@syncfusion/ej2-treemap"
29
29
  ],
30
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-pdf-export/-/ej2-pdf-export-23.2.4.tgz",
31
- "_shasum": "0dc8b4c2215d1793bf625a277fdeba99a0a38534",
30
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-pdf-export/-/ej2-pdf-export-24.1.41.tgz",
31
+ "_shasum": "6f89d34b77b8bb688c6d71f9463d156454657aee",
32
32
  "_spec": "@syncfusion/ej2-pdf-export@*",
33
- "_where": "/jenkins/workspace/elease-automation_release_23.1.1/packages/included",
33
+ "_where": "/jenkins/workspace/elease-automation_release_24.1.1/packages/included",
34
34
  "author": {
35
35
  "name": "Syncfusion Inc."
36
36
  },
37
37
  "bundleDependencies": false,
38
38
  "dependencies": {
39
- "@syncfusion/ej2-compression": "~23.2.4"
39
+ "@syncfusion/ej2-compression": "~24.1.41"
40
40
  },
41
41
  "deprecated": false,
42
42
  "description": "Syncfusion TypeScript Component",
@@ -47,7 +47,7 @@
47
47
  "module": "./index.js",
48
48
  "name": "@syncfusion/ej2-pdf-export",
49
49
  "typings": "index.d.ts",
50
- "version": "23.2.6",
50
+ "version": "24.1.47",
51
51
  "sideEffects": false,
52
52
  "homepage": "https://www.syncfusion.com/javascript-ui-controls"
53
53
  }
@@ -1,5 +1,4 @@
1
- import { StreamWriter } from '@syncfusion/ej2-file-utils';
2
- import { Encoding } from '@syncfusion/ej2-file-utils';
1
+ import { Encoding, StreamWriter } from '@syncfusion/ej2-file-utils';
3
2
  import { PdfDocument } from './pdf-document';
4
3
  /**
5
4
  * `PdfDocumentBase` class represent common properties of PdfDocument classes.
@@ -300,6 +300,8 @@ export declare class PdfGraphics {
300
300
  * @private
301
301
  */
302
302
  private startCutIndex;
303
+ private _pathPoints;
304
+ private _pathTypes;
303
305
  /**
304
306
  * Returns the `result` after drawing string.
305
307
  * @private
@@ -528,6 +530,38 @@ export declare class PdfGraphics {
528
530
  * @param height Height of the rectangle to draw.
529
531
  */
530
532
  drawRectangle(pen: PdfPen, brush: PdfBrush, x: number, y: number, width: number, height: number): void;
533
+ /**
534
+ * Draw rounded rectangle specified by a brush, pen, coordinate pair, a width, a height and a radius.
535
+ * ```typescript
536
+ * // Create a new PDF document.
537
+ * let document : PdfDocument = new PdfDocument();
538
+ * // Create a new page
539
+ * let page : PdfPage = document.pages.add();
540
+ * // Create brush for draw rectangle
541
+ * let brush : PdfSolidBrush = new PdfSolidBrush(new PdfColor(238, 130, 238));
542
+ * // Create a new PDF pen
543
+ * let pen: PdfPen = new PdfPen(new PdfColor(255, 0, 0), 1);
544
+ * // Draw rounded rectangle
545
+ * page.graphics.drawRoundedRectangle(pen, brush, 20, 20, 100, 50, 5);
546
+ * // save the document
547
+ * document.save('output.pdf');
548
+ * // destroy the document
549
+ * document.destroy();
550
+ * ```
551
+ * @param pen Stoke color of the rectangle.
552
+ * @param brush Fill color of the rectangle.
553
+ * @param x The x-coordinate of the upper-left corner of the rectangle to draw.
554
+ * @param y The y-coordinate of the upper-left corner of the rectangle to draw.
555
+ * @param width Width of the rectangle to draw.
556
+ * @param height Height of the rectangle to draw.
557
+ * @param radius Radius of the arcs to draw.
558
+ */
559
+ drawRoundedRectangle(pen: PdfPen, brush: PdfBrush, x: number, y: number, width: number, height: number, radius: number): void;
560
+ private _addArc;
561
+ private _addArcPoints;
562
+ private _getLastPoint;
563
+ private _addPoint;
564
+ private _getBezierArcPoints;
531
565
  /**
532
566
  * `Draws the path`.
533
567
  * @private
@@ -984,6 +1018,7 @@ export declare class PdfGraphics {
984
1018
  * @param path Draw path.
985
1019
  */
986
1020
  drawPath(pen: PdfPen, brush: PdfBrush, path: PdfPath): void;
1021
+ private _drawPath;
987
1022
  /**
988
1023
  * `Draws the specified arc`, using its original physical size, at the location specified by a coordinate pair.
989
1024
  * ```typescript
@@ -395,7 +395,6 @@ var PdfGraphics = /** @class */ (function () {
395
395
  this.getResources.getResources().requireProcedureSet(this.procedureSets.text);
396
396
  }
397
397
  };
398
- /* tslint:disable */
399
398
  /**
400
399
  * @public
401
400
  */
@@ -433,7 +432,7 @@ var PdfGraphics = /** @class */ (function () {
433
432
  this.pdfStringLayoutResult = result;
434
433
  this.isUseFontSize = false;
435
434
  }
436
- }; /* tslint:enable */
435
+ };
437
436
  PdfGraphics.prototype.drawLine = function (arg1, arg2, arg3, arg4, arg5) {
438
437
  if (arg2 instanceof PointF) {
439
438
  var temparg2 = arg2;
@@ -453,7 +452,6 @@ var PdfGraphics = /** @class */ (function () {
453
452
  this.getResources.getResources().requireProcedureSet(this.procedureSets.pdf);
454
453
  }
455
454
  };
456
- /* tslint:disable */
457
455
  PdfGraphics.prototype.drawRectangle = function (arg1, arg2, arg3, arg4, arg5, arg6) {
458
456
  if (arg1 instanceof PdfPen && typeof arg2 === 'number') {
459
457
  var temparg3 = arg3;
@@ -494,6 +492,152 @@ var PdfGraphics = /** @class */ (function () {
494
492
  this.drawPathHelper(temparg1, temparg2, false);
495
493
  }
496
494
  };
495
+ /**
496
+ * Draw rounded rectangle specified by a brush, pen, coordinate pair, a width, a height and a radius.
497
+ * ```typescript
498
+ * // Create a new PDF document.
499
+ * let document : PdfDocument = new PdfDocument();
500
+ * // Create a new page
501
+ * let page : PdfPage = document.pages.add();
502
+ * // Create brush for draw rectangle
503
+ * let brush : PdfSolidBrush = new PdfSolidBrush(new PdfColor(238, 130, 238));
504
+ * // Create a new PDF pen
505
+ * let pen: PdfPen = new PdfPen(new PdfColor(255, 0, 0), 1);
506
+ * // Draw rounded rectangle
507
+ * page.graphics.drawRoundedRectangle(pen, brush, 20, 20, 100, 50, 5);
508
+ * // save the document
509
+ * document.save('output.pdf');
510
+ * // destroy the document
511
+ * document.destroy();
512
+ * ```
513
+ * @param pen Stoke color of the rectangle.
514
+ * @param brush Fill color of the rectangle.
515
+ * @param x The x-coordinate of the upper-left corner of the rectangle to draw.
516
+ * @param y The y-coordinate of the upper-left corner of the rectangle to draw.
517
+ * @param width Width of the rectangle to draw.
518
+ * @param height Height of the rectangle to draw.
519
+ * @param radius Radius of the arcs to draw.
520
+ */
521
+ PdfGraphics.prototype.drawRoundedRectangle = function (pen, brush, x, y, width, height, radius) {
522
+ if (pen === null) {
523
+ throw new Error('pen');
524
+ }
525
+ if (brush === null) {
526
+ throw new Error('brush');
527
+ }
528
+ if (radius === 0) {
529
+ this.drawRectangle(pen, brush, x, y, width, height);
530
+ }
531
+ else {
532
+ var bounds = [x, y, width, height];
533
+ var diameter = radius * 2;
534
+ var size = [diameter, diameter];
535
+ var arc = [bounds[0], bounds[1], size[0], size[1]];
536
+ this._pathPoints = [];
537
+ this._pathTypes = [];
538
+ var startFigure = true;
539
+ startFigure = this._addArc(arc[0], arc[1], arc[2], arc[3], 180, 90, startFigure);
540
+ arc[0] = (bounds[0] + bounds[2]) - diameter;
541
+ startFigure = this._addArc(arc[0], arc[1], arc[2], arc[3], 270, 90, startFigure);
542
+ arc[1] = (bounds[1] + bounds[3]) - diameter;
543
+ startFigure = this._addArc(arc[0], arc[1], arc[2], arc[3], 0, 90, startFigure);
544
+ arc[0] = bounds[0];
545
+ startFigure = this._addArc(arc[0], arc[1], arc[2], arc[3], 90, 90, startFigure);
546
+ var index = this._pathPoints.length - 1;
547
+ var type = ((this._pathTypes[index]));
548
+ type = (type | PathPointType.CloseSubpath);
549
+ this._pathTypes[index] = (type);
550
+ this._drawPath(pen, brush, this._pathPoints, this._pathTypes, PdfFillMode.Alternate);
551
+ this._pathPoints = [];
552
+ this._pathTypes = [];
553
+ }
554
+ };
555
+ PdfGraphics.prototype._addArc = function (x, y, width, height, startAngle, sweepAngle, startFigure) {
556
+ var points = this._getBezierArcPoints(x, y, (x + width), (y + height), startAngle, sweepAngle);
557
+ for (var i = 0; i < points.length; i = i + 8) {
558
+ var point = [points[i], points[i + 1], points[i + 2], points[i + 3], points[i + 4], points[i + 5], points[i + 6], points[i + 7]];
559
+ startFigure = this._addArcPoints(point, PathPointType.Bezier3, startFigure);
560
+ }
561
+ return startFigure;
562
+ };
563
+ PdfGraphics.prototype._addArcPoints = function (points, pointType, startFigure) {
564
+ for (var i = 0; i < points.length; i++) {
565
+ var point = new PointF(points[i], points[(i + 1)]);
566
+ if (i === 0) {
567
+ if (this._pathPoints.length === 0 || startFigure) {
568
+ this._addPoint(point, PathPointType.Start);
569
+ startFigure = false;
570
+ }
571
+ else if (point.x !== this._getLastPoint().x || point.y !== this._getLastPoint().y) {
572
+ this._addPoint(point, PathPointType.Line);
573
+ }
574
+ }
575
+ else {
576
+ this._addPoint(point, pointType);
577
+ }
578
+ i++;
579
+ }
580
+ return startFigure;
581
+ };
582
+ PdfGraphics.prototype._getLastPoint = function () {
583
+ var lastPoint = new PointF(0, 0);
584
+ var count = this._pathPoints.length;
585
+ if (count > 0) {
586
+ lastPoint.x = this._pathPoints[(count - 1)].x;
587
+ lastPoint.y = this._pathPoints[(count - 1)].y;
588
+ }
589
+ return lastPoint;
590
+ };
591
+ PdfGraphics.prototype._addPoint = function (point, type) {
592
+ this._pathPoints.push(point);
593
+ this._pathTypes.push(type);
594
+ };
595
+ PdfGraphics.prototype._getBezierArcPoints = function (x1, y1, x2, y2, s1, e1) {
596
+ if ((x1 > x2)) {
597
+ var tmp = void 0;
598
+ tmp = x1;
599
+ x1 = x2;
600
+ x2 = tmp;
601
+ }
602
+ if ((y2 > y1)) {
603
+ var tmp = void 0;
604
+ tmp = y1;
605
+ y1 = y2;
606
+ y2 = tmp;
607
+ }
608
+ var fragAngle;
609
+ var numFragments;
610
+ if ((Math.abs(e1) <= 90)) {
611
+ fragAngle = e1;
612
+ numFragments = 1;
613
+ }
614
+ else {
615
+ numFragments = (Math.ceil((Math.abs(e1) / 90)));
616
+ fragAngle = (e1 / numFragments);
617
+ }
618
+ var xcen = ((x1 + x2) / 2);
619
+ var ycen = ((y1 + y2) / 2);
620
+ var rx = ((x2 - x1) / 2);
621
+ var ry = ((y2 - y1) / 2);
622
+ var halfAng = ((fragAngle * (Math.PI / 360)));
623
+ var kappa = (Math.abs(4.0 / 3.0 * (1.0 - Math.cos(halfAng)) / Math.sin(halfAng)));
624
+ var pointList = [];
625
+ for (var i = 0; (i < numFragments); i++) {
626
+ var theta0 = (((s1 + (i * fragAngle)) * (Math.PI / 180)));
627
+ var theta1 = (((s1 + ((i + 1) * fragAngle)) * (Math.PI / 180)));
628
+ var cos0 = (Math.cos(theta0));
629
+ var cos1 = (Math.cos(theta1));
630
+ var sin0 = (Math.sin(theta0));
631
+ var sin1 = (Math.sin(theta1));
632
+ if ((fragAngle > 0)) {
633
+ pointList.push((xcen + (rx * cos0)), (ycen - (ry * sin0)), (xcen + (rx * (cos0 - (kappa * sin0)))), (ycen - (ry * (sin0 + (kappa * cos0)))), (xcen + (rx * (cos1 + (kappa * sin1)))), (ycen - (ry * (sin1 - (kappa * cos1)))), (xcen + (rx * cos1)), (ycen - (ry * sin1)));
634
+ }
635
+ else {
636
+ pointList.push((xcen + (rx * cos0)), (ycen - (ry * sin0)), (xcen + (rx * (cos0 + (kappa * sin0)))), (ycen - (ry * (sin0 - (kappa * cos0)))), (xcen + (rx * (cos1 - (kappa * sin1)))), (ycen - (ry * (sin1 + (kappa * cos1)))), (xcen + (rx * cos1)), (ycen - (ry * sin1)));
637
+ }
638
+ }
639
+ return pointList;
640
+ };
497
641
  PdfGraphics.prototype.drawPathHelper = function (arg1, arg2, arg3, arg4) {
498
642
  if (typeof arg3 === 'boolean') {
499
643
  var temparg3 = arg3;
@@ -519,7 +663,6 @@ var PdfGraphics = /** @class */ (function () {
519
663
  }
520
664
  }
521
665
  };
522
- /* tslint:disable */
523
666
  PdfGraphics.prototype.drawImage = function (arg1, arg2, arg3, arg4, arg5) {
524
667
  if (typeof arg2 === 'number' && typeof arg3 === 'number' && typeof arg4 === 'undefined') {
525
668
  var size = arg1.physicalDimension;
@@ -556,7 +699,6 @@ var PdfGraphics = /** @class */ (function () {
556
699
  }
557
700
  };
558
701
  //Implementation
559
- /* tslint:disable */
560
702
  /**
561
703
  * Returns `bounds` of the line info.
562
704
  * @private
@@ -572,8 +714,7 @@ var PdfGraphics = /** @class */ (function () {
572
714
  var lineIndent = this.getLineIndent(line, format, layoutRectangle, (lineIndex === 0));
573
715
  hShift += (!this.rightToLeft(format)) ? lineIndent : 0;
574
716
  var x = layoutRectangle.x + hShift;
575
- /* tslint:disable */
576
- var width = (!this.shouldJustify(line, layoutRectangle.width, format)) ? lineWidth - lineIndent : layoutRectangle.width - lineIndent; /* tslint:enable */
717
+ var width = (!this.shouldJustify(line, layoutRectangle.width, format)) ? lineWidth - lineIndent : layoutRectangle.width - lineIndent;
577
718
  var height = result.lineHeight;
578
719
  bounds = new RectangleF(x, y, width, height);
579
720
  }
@@ -623,7 +764,6 @@ var PdfGraphics = /** @class */ (function () {
623
764
  * Adding page number field before page saving.
624
765
  * @private
625
766
  */
626
- /* tslint:disable */
627
767
  PdfGraphics.prototype.pageSave = function (page) {
628
768
  if (page.graphics.automaticFields != null) {
629
769
  for (var i = 0; i < page.graphics.automaticFields.automaticFields.length; i++) {
@@ -756,7 +896,6 @@ var PdfGraphics = /** @class */ (function () {
756
896
  }
757
897
  return shift;
758
898
  };
759
- /* tslint:disable */
760
899
  /**
761
900
  * `Draws layout result`.
762
901
  * @private
@@ -883,9 +1022,7 @@ var PdfGraphics = /** @class */ (function () {
883
1022
  /**
884
1023
  * Draws array of unicode tokens.
885
1024
  */
886
- /* tslint:disable */
887
1025
  PdfGraphics.prototype.drawUnicodeBlocks = function (blocks, words, font, format, wordSpacing) {
888
- /* tslint:enable */
889
1026
  if (blocks == null) {
890
1027
  throw new Error('Argument Null Exception : blocks');
891
1028
  }
@@ -1045,11 +1182,9 @@ var PdfGraphics = /** @class */ (function () {
1045
1182
  var whitespacesCount = StringTokenizer.getCharsCount(line, symbols);
1046
1183
  var hasSpaces = (whitespacesCount > 0 && line[0] !== StringTokenizer.whiteSpace);
1047
1184
  var goodLineBreakStyle = ((lineInfo.lineType & LineType.LayoutBreak) > 0);
1048
- /* tslint:disable */
1049
- var shouldJustify = (justifyStyle && goodWidth && hasSpaces && (goodLineBreakStyle || format.alignment === PdfTextAlignment.Justify)); /* tslint:enable */
1185
+ var shouldJustify = (justifyStyle && goodWidth && hasSpaces && (goodLineBreakStyle || format.alignment === PdfTextAlignment.Justify));
1050
1186
  return shouldJustify;
1051
1187
  };
1052
- /* tslint:disable */
1053
1188
  /**
1054
1189
  * Emulates `Underline, Strikeout` of the text if needed.
1055
1190
  * @private
@@ -1074,9 +1209,7 @@ var PdfGraphics = /** @class */ (function () {
1074
1209
  var lineIndent = this.getLineIndent(lineInfo, format, layoutRectangle, (i === 0));
1075
1210
  hShift += (!this.rightToLeft(format)) ? lineIndent : 0;
1076
1211
  var x1 = layoutRectangle.x + hShift;
1077
- /* tslint:disable */
1078
1212
  var x2 = (!this.shouldJustify(lineInfo, layoutRectangle.width, format)) ? x1 + lineWidth - lineIndent : x1 + layoutRectangle.width - lineIndent;
1079
- /* tslint:enable */
1080
1213
  if (font.underline) {
1081
1214
  var y = underlineYOffset;
1082
1215
  this.drawLine(linePen, x1, y, x2, y);
@@ -1207,7 +1340,6 @@ var PdfGraphics = /** @class */ (function () {
1207
1340
  else if (pen != null) {
1208
1341
  var pdfPen = pen;
1209
1342
  if (typeof this.pageLayer !== 'undefined' && this.pageLayer != null) {
1210
- /* tslint:disable */
1211
1343
  this.colorSpace = this.pageLayer.page.document.colorSpace;
1212
1344
  this.currentColorSpace = this.pageLayer.page.document.colorSpace;
1213
1345
  }
@@ -1244,9 +1376,7 @@ var PdfGraphics = /** @class */ (function () {
1244
1376
  PdfGraphics.prototype.penControl = function (pen, saveState) {
1245
1377
  if (pen != null) {
1246
1378
  this.currentPen = pen;
1247
- /* tslint:disable */
1248
1379
  pen.monitorChanges(this.currentPen, this.pdfStreamWriter, this.getResources, saveState, this.colorSpace, this.matrix.clone());
1249
- /* tslint:enable */
1250
1380
  this.currentPen = pen.clone();
1251
1381
  }
1252
1382
  };
@@ -1269,9 +1399,7 @@ var PdfGraphics = /** @class */ (function () {
1269
1399
  }
1270
1400
  this.currentBrush = lgb;
1271
1401
  var br = (brush);
1272
- /* tslint:disable */
1273
1402
  b.monitorChanges(this.currentBrush, this.pdfStreamWriter, this.getResources, saveState, this.colorSpace);
1274
- /* tslint:enable */
1275
1403
  this.currentBrush = brush;
1276
1404
  brush = null;
1277
1405
  }
@@ -1283,14 +1411,12 @@ var PdfGraphics = /** @class */ (function () {
1283
1411
  PdfGraphics.prototype.fontControl = function (font, format, saveState) {
1284
1412
  if (font != null) {
1285
1413
  var curSubSuper = (format != null) ? format.subSuperScript : PdfSubSuperScript.None;
1286
- /* tslint:disable */
1287
- var prevSubSuper = (this.currentStringFormat != null) ? this.currentStringFormat.subSuperScript : PdfSubSuperScript.None; /* tslint:enable */
1414
+ var prevSubSuper = (this.currentStringFormat != null) ? this.currentStringFormat.subSuperScript : PdfSubSuperScript.None;
1288
1415
  if (saveState || font !== this.currentFont || curSubSuper !== prevSubSuper) {
1289
1416
  var resources = this.getResources.getResources();
1290
1417
  this.currentFont = font;
1291
1418
  this.currentStringFormat = format;
1292
1419
  var size = font.metrics.getSize(format);
1293
- /* tslint:disable */
1294
1420
  this.isEmfTextScaled = false;
1295
1421
  var fontName = resources.getName(font);
1296
1422
  this.pdfStreamWriter.setFont(font, fontName, size);
@@ -1389,7 +1515,6 @@ var PdfGraphics = /** @class */ (function () {
1389
1515
  input.translate(x, this.updateY(y));
1390
1516
  return input;
1391
1517
  };
1392
- /* tslint:disable */
1393
1518
  /**
1394
1519
  * Applies the specified `scaling operation` to the transformation matrix of this Graphics by prepending it to the object's transformation matrix.
1395
1520
  * ```typescript
@@ -1413,7 +1538,6 @@ var PdfGraphics = /** @class */ (function () {
1413
1538
  * @param scaleX Scale factor in the x direction.
1414
1539
  * @param scaleY Scale factor in the y direction.
1415
1540
  */
1416
- /* tslint:enable */
1417
1541
  PdfGraphics.prototype.scaleTransform = function (scaleX, scaleY) {
1418
1542
  var matrix = new PdfTransformationMatrix();
1419
1543
  this.getScaleTransform(scaleX, scaleY, matrix);
@@ -1565,7 +1689,6 @@ var PdfGraphics = /** @class */ (function () {
1565
1689
  this.pdfStreamWriter.restoreGraphicsState();
1566
1690
  return state;
1567
1691
  };
1568
- /* tslint:enable */
1569
1692
  /**
1570
1693
  * `Draws the specified path`, using its original physical size, at the location specified by a coordinate pair.
1571
1694
  * ```typescript
@@ -1596,6 +1719,9 @@ var PdfGraphics = /** @class */ (function () {
1596
1719
  * @param path Draw path.
1597
1720
  */
1598
1721
  PdfGraphics.prototype.drawPath = function (pen, brush, path) {
1722
+ this._drawPath(pen, brush, path.pathPoints, path.pathTypes, path.fillMode);
1723
+ };
1724
+ PdfGraphics.prototype._drawPath = function (pen, brush, pathPoints, pathTypes, fillMode) {
1599
1725
  if (brush instanceof PdfTilingBrush) {
1600
1726
  this.bCSInitialized = false;
1601
1727
  brush.graphics.colorSpace = this.colorSpace;
@@ -1605,8 +1731,8 @@ var PdfGraphics = /** @class */ (function () {
1605
1731
  brush.colorSpace = this.colorSpace;
1606
1732
  }
1607
1733
  this.stateControl(pen, brush, null);
1608
- this.buildUpPath(path.pathPoints, path.pathTypes);
1609
- this.drawPathHelper(pen, brush, path.fillMode, false);
1734
+ this.buildUpPath(pathPoints, pathTypes);
1735
+ this.drawPathHelper(pen, brush, fillMode, false);
1610
1736
  };
1611
1737
  /* tslint:disable-next-line:max-line-length */
1612
1738
  PdfGraphics.prototype.drawArc = function (arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
@@ -1752,6 +1878,7 @@ var PdfGraphics = /** @class */ (function () {
1752
1878
  }
1753
1879
  return pointsList;
1754
1880
  };
1881
+ /* tslint:disable */
1755
1882
  // Constants
1756
1883
  /**
1757
1884
  * Specifies the mask of `path type values`.
@@ -1984,3 +2111,4 @@ var TransparencyData = /** @class */ (function () {
1984
2111
  }
1985
2112
  return TransparencyData;
1986
2113
  }());
2114
+ /* tslint:enable */