You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running a layout with workerEnabled G6 will fetch the the layout script from unpkg (i.e. https://unpkg.com/@antv/[email protected]/dist/layout.min.js). However, this file is already included within node_modules as a dependency. I know users can use the workerScriptURL property, but that requires users to first upload the file to their own CDN. Why can't G6 just use the dependency directly for instantiating the worker?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When running a layout with
workerEnabled
G6 will fetch the the layout script from unpkg (i.e. https://unpkg.com/@antv/[email protected]/dist/layout.min.js). However, this file is already included withinnode_modules
as a dependency. I know users can use theworkerScriptURL
property, but that requires users to first upload the file to their own CDN. Why can't G6 just use the dependency directly for instantiating the worker?Beta Was this translation helpful? Give feedback.
All reactions