antvis / F6

F6 is a graph visualization engine which provides quick and smooth operations on mobile devices.
https://f6.antv.vision
MIT License
133 stars 21 forks source link

h5 layout dagre 报错 The layout method: 'dagre' does not exist! Please specify it first. #146

Closed jzstkarol closed 2 years ago

jzstkarol commented 2 years ago

layout: { type: "dagre", ranksep: 100, nodesep: 30, rankdir: "LR" },

jzstkarol commented 2 years ago

image

ICMI commented 2 years ago

https://github.com/antvis/F6/blob/c2b2576eb936ac3664535ff70c3dd3e8b805e5ee/packages/f6/stories/generalGraph/dagreConfigurationTranslate/index.tsx#L3

参考这个dagre的使用,需要import后,register下

jzstkarol commented 2 years ago

秒回 感谢!