0.0.23 • Published 1 year ago
@gooseberry/org-chart v0.0.23
@gooseberry/org-chart
使用 d3 编写的组织架构图
Install
Using npm:
npm install @gooseberry/org-chart
Usage
import { createOrgChart } from "@gooseberry/org-chart";
import * as d3 from "d3";
createOrgChart("#root", {
width: document.body.offsetWidth,
height: document.body.offsetHeight,
treeOptions: {
data: generateTreeDate(5),
renderNode(node) {
return d3.create<SVGElement>("svg:text").text(node.id);
},
},
}).tree.autoLayout({ rankdir: "LR", nodesep: 100, ranksep: 1000 });
0.0.22
1 year ago
0.0.23
1 year ago
0.0.20
2 years ago
0.0.21
2 years ago
0.0.12
2 years ago
0.0.13
2 years ago
0.0.14
2 years ago
0.0.15
2 years ago
0.0.16
2 years ago
0.0.17
2 years ago
0.0.18
2 years ago
0.0.19
2 years ago
0.0.10
2 years ago
0.0.9
2 years ago
0.0.8
2 years ago
0.0.7
2 years ago
0.0.5
2 years ago
0.0.6
2 years ago
0.0.3
2 years ago
0.0.4
2 years ago
0.0.2
2 years ago