antonioru / antonioru/beautiful-react-diagrams

Nodes autolayout

未关闭
#61 1 条评论 4 个 reaction 已指派 0 人 在 GitHub 查看
enhancement feature request
主要语言
JavaScript
星标
2.7k
派生
171
PR 合并指标
30 天内没有已合并 PR

描述

**Is your feature request related to a problem? Please describe.**
At the moment, the developer shall define the nodes' coordinates to provide a valid schema, unfortunately this is not always ideal (and might result quite tedious for the developer) it would be nice to have an auto-layout feature .

**Describe the solution you'd like**

A prop to define if a Diagram is "autolayout"
```

```

And a function to programmatically re-organise the layout exported from the `useSchema` hook

```
const [schema, { autolayout }] = useSchema();
```

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。