Skip to content

Commit

Permalink
fix: #350: replace nodeUtil.warn with nodeUtil.p2jwarn
Browse files Browse the repository at this point in the history
  • Loading branch information
modesty committed Jun 9, 2024
1 parent bae086f commit 615abfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pdfcanvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ export default class CanvasRenderingContext2D_ {
}

measureText(text) {
nodeUtil.warn("to be implemented: contextPrototype.measureText - ", text);
nodeUtil.p2jwarn("to be implemented: contextPrototype.measureText - ", text);
const chars = text.length || 1;
return { width: chars * (this.currentFont.spaceWidth || 5) };
}
Expand All @@ -286,7 +286,7 @@ export default class CanvasRenderingContext2D_ {
}

clearRect() {
nodeUtil.warn("to be implemented: contextPrototype.clearRect");
nodeUtil.p2jwarn("to be implemented: contextPrototype.clearRect");
}

beginPath() {
Expand Down

0 comments on commit 615abfa

Please sign in to comment.