@chialab/pdfjs-lib 1.0.0-alpha.2 → 1.0.0-alpha.3
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/browser/index.js +2 -5
- package/dist/node/index.js +2 -5
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
|
@@ -24635,7 +24635,7 @@ PDFPageProxy.prototype.getAnnotations = async function(params) {
|
|
|
24635
24635
|
firstFill = false;
|
|
24636
24636
|
continue;
|
|
24637
24637
|
}
|
|
24638
|
-
if (fn === OPS.stroke) {
|
|
24638
|
+
if (fn === OPS.stroke || fn === OPS.closeStroke) {
|
|
24639
24639
|
if (currentLineWidth === null) {
|
|
24640
24640
|
annotation.borderStyle.width = 1;
|
|
24641
24641
|
}
|
|
@@ -24643,7 +24643,7 @@ PDFPageProxy.prototype.getAnnotations = async function(params) {
|
|
|
24643
24643
|
currentLineWidth = null;
|
|
24644
24644
|
continue;
|
|
24645
24645
|
}
|
|
24646
|
-
if (fn === OPS.fillStroke) {
|
|
24646
|
+
if (fn === OPS.fillStroke || fn === OPS.closeFillStroke) {
|
|
24647
24647
|
if (currentFillColor) {
|
|
24648
24648
|
annotation.interiorColor = currentFillColor;
|
|
24649
24649
|
currentFillColor = null;
|
|
@@ -24663,9 +24663,6 @@ PDFPageProxy.prototype.getAnnotations = async function(params) {
|
|
|
24663
24663
|
annotation.borderStyle.width = currentLineWidth;
|
|
24664
24664
|
}
|
|
24665
24665
|
if (fn === OPS.setStrokeRGBColor && firstStroke) {
|
|
24666
|
-
if (!annotation.borderStyle.width) {
|
|
24667
|
-
annotation.borderStyle.width = 1;
|
|
24668
|
-
}
|
|
24669
24666
|
annotation.color = args;
|
|
24670
24667
|
}
|
|
24671
24668
|
if (fn === OPS.setFillRGBColor && firstFill) {
|
package/dist/node/index.js
CHANGED
|
@@ -24945,7 +24945,7 @@ PDFPageProxy.prototype.getAnnotations = async function(params) {
|
|
|
24945
24945
|
firstFill = false;
|
|
24946
24946
|
continue;
|
|
24947
24947
|
}
|
|
24948
|
-
if (fn === OPS.stroke) {
|
|
24948
|
+
if (fn === OPS.stroke || fn === OPS.closeStroke) {
|
|
24949
24949
|
if (currentLineWidth === null) {
|
|
24950
24950
|
annotation.borderStyle.width = 1;
|
|
24951
24951
|
}
|
|
@@ -24953,7 +24953,7 @@ PDFPageProxy.prototype.getAnnotations = async function(params) {
|
|
|
24953
24953
|
currentLineWidth = null;
|
|
24954
24954
|
continue;
|
|
24955
24955
|
}
|
|
24956
|
-
if (fn === OPS.fillStroke) {
|
|
24956
|
+
if (fn === OPS.fillStroke || fn === OPS.closeFillStroke) {
|
|
24957
24957
|
if (currentFillColor) {
|
|
24958
24958
|
annotation.interiorColor = currentFillColor;
|
|
24959
24959
|
currentFillColor = null;
|
|
@@ -24973,9 +24973,6 @@ PDFPageProxy.prototype.getAnnotations = async function(params) {
|
|
|
24973
24973
|
annotation.borderStyle.width = currentLineWidth;
|
|
24974
24974
|
}
|
|
24975
24975
|
if (fn === OPS.setStrokeRGBColor && firstStroke) {
|
|
24976
|
-
if (!annotation.borderStyle.width) {
|
|
24977
|
-
annotation.borderStyle.width = 1;
|
|
24978
|
-
}
|
|
24979
24976
|
annotation.color = args;
|
|
24980
24977
|
}
|
|
24981
24978
|
if (fn === OPS.setFillRGBColor && firstFill) {
|
package/package.json
CHANGED