Skip to content

Commit

Permalink
Removes console logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Parker committed Apr 29, 2024
1 parent 985c992 commit 0fcf44b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/shapes/primitives/text_measurement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ class TextMeasurement {

const tm = ctx.measureText(text);

console.log(`text: "${text}", height: ${tm.actualBoundingBoxAscent + tm.actualBoundingBoxDescent}`)
return {
width: this.t.translateAbsWidth(tm.width),
height: this.t.translateAbsHeight(tm.actualBoundingBoxAscent + tm.actualBoundingBoxDescent)
Expand Down
1 change: 0 additions & 1 deletion src/tex_generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ class TexGenerator {

adaptor.setAttribute(svgNode, 'width', adjustedWidth + 'px');
adaptor.setAttribute(svgNode, 'height', adjustedHeight + 'px');
console.log(`text: "${text}", width: ${adjustedWidth}, height: ${adjustedHeight}`)

const image64 = 'data:image/svg+xml;base64,' + btoa(adaptor.outerHTML(svgNode));
return { width: adjustedWidth, height: adjustedHeight, imageData: image64 };
Expand Down

0 comments on commit 0fcf44b

Please sign in to comment.