d3-flextree介绍2

https://github.com/Klortho/d3-flextree?tab=readme-ov-file

This plugin provides a more general version of the D3 tree layout module.

Unlike tree, this plugin allows for nodes of variable sizes; like tree, the algorithm is fast, running in O(n) time.

这个插件提供了一个更通用的版本的D3树布局模块

tree不同,这个插件允许节点大小可变;与tree一样,该算法是快速的,运行时间为O(n)

查看Demo

flextree() is a factory function that returns a layout instance.

A layout is a function that
computes the positions of nodes in a tree diagram.

Properties attached to the layout control various parameters of the algorithm.

Try d3-flextree in your browser.

flextree()是一个工厂函数,它返回一个布局实例

layout是一个函数,用于
计算树状图中节点的位置

控制算法的各种参数附加到layout的属性

在您的浏览器中尝试d3-flextree

https://npm.runkit.com/d3-flextree

Installing

If you use npm, npm install d3-flextree.

Otherwise, download the latest release.

AMD, CommonJS, and browser environments are supported.

Alternatively,
you can use it straight from the jsdelivr CDN

at https://cdn.jsdelivr.net/npm/d3-flextree@2.0.0/build/d3-flextree.min.js.

or

d3-flextree.js

如果您使用npm,请npm install d3-flextree

否则,请下载最新版本。

支持AMDCommonJS浏览器环境

或者,
您可以直接从jsdelivr CDN使用它

https://cdn.jsdelivr.net/npm/d3-flextree@2.0.0/build/d3-flextree.min.js

或者

d3-flextree.js

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值