Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testString appended to body twice as svg text on doc.svg() #272

Closed
wants to merge 1 commit into from
Closed

testString appended to body twice as svg text on doc.svg() #272

wants to merge 1 commit into from

Conversation

AnnaLena2704
Copy link
Contributor

No description provided.

Copy link
Member

@HackbrettXXX HackbrettXXX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can also remove the ?? new TextMeasure from the Context constructor:

this.textMeasure = values.textMeasure ?? new TextMeasure()

const debug = false
const debug = true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert this change

@@ -35,6 +35,10 @@ for (const test of window.tests) {
// await svg2pdf(svgElement, pdf, svg2pdfOptions)

comparePdf(pdf.output(), `/test/specs/${name}/reference.pdf`, debug)

if (document.querySelector('svg')) {
expect.fail('svg element left')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"svg element left" sounds like "svg element just left the room" :D
Maybe something like: "svg measuring element must not remain in document"

Comment on lines 20 to 23
constructor() {
debugger
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants