mirror of
https://github.com/grafana/grafana.git
synced 2025-08-01 15:42:13 +08:00

* Chore: Add no-restricted-globals eslint rule * Fix eslint warnings * Revert some changes * Update * Feedback
10 lines
315 B
JavaScript
10 lines
315 B
JavaScript
import { layout } from './forceLayout';
|
|
|
|
// Separate from main implementation so it does not trip out tests
|
|
// eslint-disable-next-line no-restricted-globals
|
|
addEventListener('message', (event) => {
|
|
const { nodes, edges, config } = event.data;
|
|
layout(nodes, edges, config);
|
|
postMessage({ nodes, edges });
|
|
});
|