Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@antv/x6

Package Overview
Dependencies
Maintainers
22
Versions
405
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antv/x6

JavaScript diagramming library

  • 0.1.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
42K
increased by4.35%
Maintainers
22
Weekly downloads
 
Created
Source

x6

JavaScript diagramming library

MIT License Language

build:? coverage:? Language grade: JavaScript

NPM Package NPM Downloads NPM Dependencies

Installation

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

# yarn
$ yarn add @antv/x6

Usage

<div id="container" style="width: 600px; height: 400px"></div>
import { Graph } from '@antv/x6'

const container = document.getElementById('container')
const graph = new Graph(container)
const node1 = graph.addNode({
  data: 'Hello',
  x: 60,
  y: 60,
  width: 80,
  height: 30,
})
const node2 = graph.addNode({
  data: 'World',
  x: 240,
  y: 240,
  width: 80,
  height: 30,
})
const edge = graph.addEdge({ data: 'x6', source: node1, target: node2 })

Development

# install global yarn and lerna
$ npm install yarn -g
$ npm install lerna -g

# install dependencies
$ yarn bootstrap

# run tests
$ yarn test

# build 
$ yarn build

Experience Improvement Program Description

In order to serve the users better, x6 will send the URL and version information back to the AntV server:

https://kcart.alipay.com/web/bi.do

Except for URL and x6 version information, no other information will be collected. You can also turn it off with the following code:

x6.track(false)

Contributing

Please let us know how can we help. Do check out issues for bug reports or suggestions first.

To become a contributor, please follow our contributing guide.

Keywords

FAQs

Package last updated on 11 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc