antvis / layout

Layout algorithms for graphs.
193 stars 55 forks source link

grid layout,源码和文档是错乱的 #178

Open mankeheaven opened 1 year ago

mankeheaven commented 1 year ago

源码是execute方法 文档是

const gridLayout = new GridLayout({
  type: 'grid',
  width: 600,
  height: 400,
  rows: 4,
  cols: 4,
})

const newModel = gridLayout.layout(model)

就算调用execute方法,还是各种报not a function的错误。

所以,grid layout和antv x6之间的版本,文档对应的关系是怎样的?