elkjs | ELK 's layout algorithms for JavaScript
kandi X-RAY | elkjs Summary
kandi X-RAY | elkjs Summary
The Eclipse Layout Kernel (ELK) implements an infrastructure to connect diagram editors or viewers to automatic layout algorithms. This library takes the layout-relevant part of ELK and makes it available to the JavaScript world. ELK's flagship is a layer-based layout algorithm that is particularly suited for node-link diagrams with an inherent direction and ports (explicit attachment points on a node's border). It is based on the ideas originally introduced by Sugiyama et al. An example can be seen in the screenshot below. Note that elkjs is not a diagramming framework itself - it computes positions for the elements of a diagram. elkjs is the successor of klayjs. You can see elkjs live in action in conjunction with TypeFox's sprotty diagramming framework.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of elkjs
elkjs Key Features
elkjs Examples and Code Snippets
Community Discussions
Trending Discussions on elkjs
QUESTION
I have come across the following issue, one of the software libraries I'm using has an optional dependency on 'web-worker'. If the web-worker package is available it will use it, if it cannot find the web-worker package, it will use an alternative code path that does not use the web-worker package.
The problem I run into is that when trying to create an angular build, it will give the following error.
Module not found: Error: Can't resolve 'web-worker' in 'C:\Gitdata\project\dev\angular\node_modules\elkjs\lib'
If I check the main.js file from this package, almost the first thing it does is check if web-worker is available, if it's not it will not try to load web-worker.
...ANSWER
Answered 2021-Sep-14 at 14:49You can tell webpack to ignore the web-worker
module that elkjs
is trying to require
with the webpack.IgnorePlugin
.
Inside your webpack.config.js
:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install elkjs
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page