@antv/layout
graph layout algorithm
Last updated 3 years ago by kopiluwaky .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @antv/layout 
SYNC missed versions from official npm registry.

About

Layout algorithms for AntV

Installation

# npm
$ npm install @antv/layout --save

# yarn
$ yarn add @antv/layout

Usage

import { GridLayout } from '@antv/layout'

const model = {
  nodes: [
    {
      id: 'node1',
      x: 0,
      y: 0,
    }, {
      id: 'node2',
      x: 20,
      y: 20,
    },
  ],
  edges: [
    {
      source: 'node1',
      target: 'node2',
    },
  ],
}

const gridLayout = new GridLayout({
  type: 'grid',
  width: 600,
  height: 400,
  rows: 4,
  cols: 4,
})

const newModel = gridLayout.layout(model)

Documentation

License

The scripts and documentation in this project are released under the MIT License.

Current Tags

  • 1.2.13                                ...           alpha (a year ago)
  • 1.2.14-beta.9                                ...           beta (2 months ago)
  • 1.2.14-beta.8                                ...           latest (3 months ago)

161 Versions

  • 1.2.14-beta.9                                ...           2 months ago
  • 1.2.14-beta.8                                ...           3 months ago
  • 1.2.14-beta.7                                ...           4 months ago
  • 1.2.14-beta.6                                ...           4 months ago
  • 1.2.14-beta.5                                ...           5 months ago
  • 1.2.14-beta.4                                ...           7 months ago
  • 1.2.14-beta.3                                ...           8 months ago
  • 1.2.14-beta.2                                ...           8 months ago
  • 1.2.14-beta.1                                ...           9 months ago
  • 1.2.14-beta.0                                ...           9 months ago
  • 0.3.25                                ...           a year ago
  • 1.2.13                                ...           a year ago
  • 1.2.12                                ...           a year ago
  • 1.2.11-beta.0                                ...           a year ago
  • 0.3.24                                ...           a year ago
  • 1.2.11                                ...           a year ago
  • 1.2.10                                ...           a year ago
  • 1.2.9                                ...           a year ago
  • 1.2.8                                ...           a year ago
  • 1.2.7                                ...           a year ago
  • 1.2.5                                ...           a year ago
  • 0.3.23                                ...           2 years ago
  • 1.2.4                                ...           2 years ago
  • 1.2.3                                ...           2 years ago
  • 1.2.2                                ...           2 years ago
  • 1.2.1                                ...           2 years ago
  • 0.3.22                                ...           2 years ago
  • 0.3.22-beta.8                                ...           2 years ago
  • 0.3.22-beta.7                                ...           2 years ago
  • 0.3.22-beta.6                                ...           2 years ago
  • 0.3.22-beta.5                                ...           2 years ago
  • 0.3.22-beta.4                                ...           2 years ago
  • 0.3.22-beta.3                                ...           2 years ago
  • 0.3.22-beta.2                                ...           2 years ago
  • 0.3.22-beta.1                                ...           2 years ago
  • 0.3.22-beta.0                                ...           2 years ago
  • 0.3.21                                ...           2 years ago
  • 1.2.0                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
  • 0.3.20                                ...           2 years ago
  • 0.3.19                                ...           2 years ago
  • 1.0.0-alpha.19                                ...           2 years ago
  • 0.3.18                                ...           2 years ago
  • 1.0.0-alpha.18                                ...           2 years ago
  • 0.3.17                                ...           2 years ago
  • 0.3.17-beta.2                                ...           2 years ago
  • 0.3.17-beta.1                                ...           2 years ago
  • 0.3.17-beta.0                                ...           2 years ago
  • 1.0.0-alpha.17                                ...           2 years ago
  • 0.3.16                                ...           2 years ago
  • 0.3.15                                ...           2 years ago
  • 1.0.0-alpha.16                                ...           2 years ago
  • 0.3.15-beta.0                                ...           2 years ago
  • 0.3.14                                ...           2 years ago
  • 1.0.0-alpha.15                                ...           2 years ago
  • 1.0.0-alpha.14                                ...           2 years ago
  • 1.0.0-alpha.13                                ...           2 years ago
  • 1.0.0-alpha.12                                ...           2 years ago
  • 1.0.0-alpha.11                                ...           2 years ago
  • 1.0.0-alpha.10                                ...           2 years ago
  • 1.0.0-alpha.9                                ...           2 years ago
  • 1.0.0-alpha.8                                ...           2 years ago
  • 1.0.0-alpha.7                                ...           2 years ago
  • 1.0.0-alpha.6                                ...           2 years ago
  • 1.0.0-alpha.5                                ...           2 years ago
  • 1.0.0-alpha.4                                ...           2 years ago
  • 1.0.0-alpha.3                                ...           2 years ago
  • 1.0.0-alpha.2                                ...           2 years ago
  • 0.3.13                                ...           2 years ago
  • 1.0.0-alpha.1 [deprecated]           ...           2 years ago
  • 1.0.0-alpha.0 [deprecated]           ...           2 years ago
  • 0.3.12                                ...           2 years ago
  • 0.3.11                                ...           2 years ago
  • 0.3.10                                ...           2 years ago
  • 0.3.9                                ...           2 years ago
  • 0.3.8                                ...           2 years ago
  • 0.3.7                                ...           2 years ago
  • 0.3.6                                ...           2 years ago
  • 0.3.5                                ...           2 years ago
  • 0.3.4                                ...           2 years ago
  • 0.3.3                                ...           2 years ago
  • 0.3.2                                ...           2 years ago
  • 0.3.1                                ...           2 years ago
  • 0.3.0                                ...           2 years ago
  • 0.3.0-beta.5                                ...           2 years ago
  • 0.3.0-beta.4                                ...           2 years ago
  • 0.3.0-beta.3                                ...           2 years ago
  • 0.3.0-beta.2                                ...           2 years ago
  • 0.3.0-beta.1                                ...           2 years ago
  • 0.3.0-beta                                ...           2 years ago
  • 0.2.5                                ...           2 years ago
  • 0.2.4                                ...           3 years ago
  • 0.2.3                                ...           3 years ago
  • 0.2.2                                ...           3 years ago
  • 0.2.1                                ...           3 years ago
  • 0.2.0                                ...           3 years ago
  • 0.2.0-beta.5                                ...           3 years ago
  • 0.2.0-beta.4                                ...           3 years ago
  • 0.2.0-beta.3                                ...           3 years ago
  • 0.2.0-beta.2                                ...           3 years ago
  • 0.2.0-beta.1                                ...           3 years ago
  • 0.2.0-beta.0                                ...           3 years ago
  • 0.1.31                                ...           3 years ago
  • 0.1.30                                ...           3 years ago
  • 0.1.30-beta.1                                ...           3 years ago
  • 0.1.30-beta.0                                ...           3 years ago
  • 0.1.29                                ...           3 years ago
  • 0.1.28                                ...           3 years ago
  • 0.1.27                                ...           3 years ago
  • 0.1.26                                ...           3 years ago
  • 0.1.25                                ...           3 years ago
  • 0.1.24                                ...           3 years ago
  • 0.1.23 [deprecated]           ...           3 years ago
  • 0.1.22                                ...           3 years ago
  • 0.1.21                                ...           3 years ago
  • 0.1.20                                ...           3 years ago
  • 0.1.19                                ...           3 years ago
  • 0.1.19-beta.5                                ...           3 years ago
  • 0.1.19-beta.4                                ...           3 years ago
  • 0.1.19-beta.3                                ...           3 years ago
  • 0.1.19-beta.2                                ...           3 years ago
  • 0.1.19-beta.1                                ...           3 years ago
  • 0.1.19-beta.0                                ...           3 years ago
  • 0.1.19-beta                                ...           3 years ago
  • 0.1.18                                ...           3 years ago
  • 0.1.17                                ...           3 years ago
  • 0.1.16                                ...           3 years ago
  • 0.1.15                                ...           4 years ago
  • 0.1.14                                ...           4 years ago
  • 0.1.13                                ...           4 years ago
  • 0.1.12                                ...           4 years ago
  • 0.1.11                                ...           4 years ago
  • 0.1.10                                ...           4 years ago
  • 0.1.9                                ...           4 years ago
  • 0.1.8                                ...           4 years ago
  • 0.1.7-beta.3                                ...           4 years ago
  • 0.1.7-beta.2                                ...           4 years ago
  • 0.1.7-beta.1                                ...           4 years ago
  • 0.1.6                                ...           4 years ago
  • 0.1.5                                ...           4 years ago
  • 0.1.4                                ...           4 years ago
  • 0.1.3                                ...           4 years ago
  • 0.1.2                                ...           4 years ago
  • 0.1.1                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
  • 0.0.16                                ...           4 years ago
  • 0.0.15                                ...           4 years ago
  • 0.0.14                                ...           4 years ago
  • 0.0.13                                ...           4 years ago
  • 0.0.12                                ...           4 years ago
  • 0.0.11                                ...           4 years ago
  • 0.0.10                                ...           4 years ago
  • 0.0.9                                ...           4 years ago
  • 0.0.8                                ...           4 years ago
  • 0.0.7                                ...           4 years ago
  • 0.0.6                                ...           4 years ago
  • 0.0.5                                ...           4 years ago
  • 0.0.4                                ...           4 years ago
  • 0.0.3                                ...           4 years ago
  • 0.0.2                                ...           4 years ago
Downloads
Total 2
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)

© 2010 - cnpmjs.org x YWFE | Home | YWFE