graph layout algorithm


Keywords
graph, layout, algorithm, antv
License
MIT
Install
npm install @antv/layout@0.1.3

Documentation

@antv/layout

Build Status Coverage Status npm Version npm Download npm License

This is a collection of basic layout algorithms. We provide the following packages to support different runtime environments:

Online benchmarks: https://antv.vision/layout/index.html

Development

We use Vite to start a dev server:

$ pnpm dev

Test

$ pnpm test

Publish

Using Changesets with pnpm: https://pnpm.io/next/using-changesets

The generated markdown files in the .changeset directory should be committed to the repository.

pnpm changeset

This will bump the versions of the packages previously specified with pnpm changeset (and any dependents of those) and update the changelog files.

pnpm changeset version

Commit the changes. This command will publish all packages that have bumped versions not yet present in the registry.

pnpm publish -r

If you want to publish versions for test:

pnpm changeset pre enter alpha   # 发布 alpha 版本
pnpm changeset pre enter beta    # 发布 beta 版本
pnpm changeset pre enter rc      # 发布 rc 版本