Skip to content

upgraded to elkjs 0.11.1#32

Open
el3ctrician wants to merge 2 commits into
Nic30:masterfrom
el3ctrician:master
Open

upgraded to elkjs 0.11.1#32
el3ctrician wants to merge 2 commits into
Nic30:masterfrom
el3ctrician:master

Conversation

@el3ctrician
Copy link
Copy Markdown
Contributor

i tried updating to elkjs only tests failed due to worker being terminated while during tests a fake worker was used. i wrapped the worker call in try/catch but i did dig deeper seems working in browser by using the examples and the tests passes

Comment thread src/elk/elk-d3.js
if (this.layouter) {
try {
this.layouter.terminateWorker();
} catch(e) {}
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Can you set your IDE/autoformat/editor to same style so the whitespaces have same width? I mean for example this line is misaligned.

Comment thread package.json
"engines" : {
"npm" : ">=8.5.1",
"node" : ">=12.22.9"
"engines": {
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

If possible avoid commiting style changes together with the code changes.
I hope you know about https://code.visualstudio.com/docs/sourcecontrol/staging-commits

@Nic30
Copy link
Copy Markdown
Owner

Nic30 commented May 14, 2026

Can you post the error message for layouter.terminateWorker()? try-catch ignore is definitely not a preferred solution.

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