dagre-d3-es
<p align="center"> <a href="https://tbo47.github.io/" ><img src="https://img.shields.io/badge/created_by-tbo47-blue.svg" alt="Created by tbo47"></a> <a href="https://www.npmjs.com/dagre-d3-es"><img src="https://img.shields.io/npm/v/dagre-d3-es.svg?log
Last updated 4 months ago by teebo47 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install dagre-d3-es 
SYNC missed versions from official npm registry.

Created by tbo47 dagre-d3-es on npm  dagre-d3-es on npm

dagre-d3-es

dagre-d3-es is a fork of dagre-d3 using the more modern ES6 javascript syntax.

It uses ES modules, thus the name dagre-d3-es.

dagre-d3-es follows d3 versions. Ex: dagre-d3-es version 7 depends on d3 version 7.

Demos

Install

npm install dagre-d3-es

Code example

Coming from the legacy dagre-d3, the main changes in your code will be:

import * as dagreD3 from 'dagre-d3-es';
...
const g = new dagreD3.graphlib.Graph().setGraph({});
...
const zoom = d3.zoom().on('zoom', (zoomEvent) => {
  inner.attr('transform', zoomEvent.transform);
});

Current Tags

  • 7.0.14                                ...           latest (4 months ago)

16 Versions

  • 7.0.14                                ...           4 months ago
  • 7.0.13                                ...           6 months ago
  • 7.0.12                                ...           6 months ago
  • 7.0.11                                ...           2 years ago
  • 7.0.10                                ...           3 years ago
  • 7.0.9                                ...           3 years ago
  • 7.0.8                                ...           3 years ago
  • 7.0.6                                ...           3 years ago
  • 7.0.5                                ...           3 years ago
  • 7.0.4                                ...           3 years ago
  • 7.0.2                                ...           3 years ago
  • 7.0.1                                ...           4 years ago
  • 7.0.0                                ...           4 years ago
  • 5.0.2                                ...           4 years ago
  • 5.0.1                                ...           4 years ago
  • 5.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 4
Last Day 0
Last Week 4
Last Month 4
Dependencies (2)
Dev Dependencies (8)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |