antvis / layout

Layout algorithms for graphs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

importScripts' on 'WorkerGlobalScope': The script at 'https://unpkg.com/@antv/layout@latest/dist/layout.min.js' failed to load.

joannasun opened this issue · comments

importScripts' on 'WorkerGlobalScope': The script at 'https://unpkg.com/@antv/layout@latest/dist/layout.min.js' failed to load.

版本升级1.2.0的报错的解决方案
在layout中增加配置workerScriptURL。
layout: {
workerScriptURL: "https://unpkg.com/@antv/layout@0.3.0/dist/layout.min.js",
},

commented

hello 想请问下 在 g6 中如何配置呢

commented

workerScriptURL: "https://unpkg.com/@antv/layout@0.3.0/dist/layout.min.js",

为啥子这样子改就 ok 了呀 🤔

如果是内网还需要下载这个js文件到本地。感觉这个配置有点不合理,是否能优化?