Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Indented layoutCfg.indent support function #3109

Merged
merged 2 commits into from
Oct 15, 2021

Conversation

pwpow
Copy link
Contributor

@pwpow pwpow commented Aug 12, 2021

We can set node's horizontal offset dynamically with function,
which allow user to create custom layout.

Closes #3081

Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Description of change

We can set node's horizontal offset dynamically with function,
which allow user to create custom layout.

Closes antvis#3081
};
```

**Required**: false<br />**Description**: When the type is Number, the colunm separation is a fixed value; When the type is Function, the distance between the node and the root node is the return value of the function.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return value -> returned value

@Yanyan-Wang
Copy link
Contributor

感谢 pr!

@pwpow pwpow requested a review from Yanyan-Wang August 23, 2021 10:14
@Yanyan-Wang Yanyan-Wang merged commit 5a339c0 into antvis:master Oct 15, 2021
Yanyan-Wang pushed a commit that referenced this pull request Jun 13, 2022
* docs: Indented layoutCfg.indent support function

We can set node's horizontal offset dynamically with function,
which allow user to create custom layout.

Closes #3081

* docs: Indented layoutCfg.indent support function

Co-authored-by: powellpeng <powellpeng@tencent.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[功能要求] 树图布局 缩进树Indented 的 indent 属性支持设置function
2 participants