0.0.23 • Published 2 months ago

@gooseberry/org-chart v0.0.23

Weekly downloads
-
License
MIT
Repository
-
Last release
2 months ago

@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

2 months ago

0.0.23

2 months ago

0.0.20

4 months ago

0.0.21

4 months ago

0.0.12

4 months ago

0.0.13

4 months ago

0.0.14

4 months ago

0.0.15

4 months ago

0.0.16

4 months ago

0.0.17

4 months ago

0.0.18

4 months ago

0.0.19

4 months ago

0.0.10

4 months ago

0.0.9

4 months ago

0.0.8

4 months ago

0.0.7

4 months ago

0.0.5

5 months ago

0.0.6

5 months ago

0.0.3

5 months ago

0.0.4

5 months ago

0.0.2

5 months ago