antvis / layout

Layout algorithms for graphs.
207 stars 55 forks source link

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

Open joannasun opened 1 year ago

joannasun commented 1 year ago

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

joannasun commented 1 year ago

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

hua-bang commented 1 year ago

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

hua-bang commented 1 year ago

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

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

yangyili commented 11 months ago

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