MIT License

项目介绍

antvis/X6 是一个托管在 GitHub 上的开源项目,主要使用 TypeScript 编写,采用 MIT License 许可证,目前获得 6.8k 个 Star、1.9k 次 Fork。

仓库全名
antvis/X6
开源许可证
MIT License
Star 数
6.8k
Fork 数
1.9k
未关闭 Issue
156

README 摘要

X6: Graph Editing and Visualization Engine Official Documentation • Quick Start • Graph Examples • FAQ • Demo Template • Awesome X6 AntV X6 is a graph editing engine based on HTML and SVG, providing low-cost customization capabilities and out-of-the-box built-in extensions that make it easy to quickly build applications such as DAG diagrams, ER diagrams, flowcharts, lineage graphs, and more. We hope developers can…

完整内容见 GitHub 原始 README 或本页 。

常见问题

X6 用什么语言开发?

主要使用 TypeScript 编写,采用 MIT License 许可证,目前有 6.8k 个 Star。

X6 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 X6 的源码?

可以直接克隆仓库:git clone https://github.com/antvis/X6.git,默认分支为 master;安装与运行步骤见仓库 README。

X6 最近还在维护吗?

仓库最近一次更新为 2 周前,当前有 156 个未关闭 Issue;Star 数为 6.8k,可作为社区活跃度的参考。

语言占比

Astro
HTML
JavaScript
Less
MDX
Shell
TypeScript
Vue

Release

README

English | 简体中文

X6: Graph Editing and Visualization Engine

x6 flow

NPM Package build coverage Package size NPM Downloads MIT License Language PRs Welcome website Ask DeepWiki

antvis%2FX6 | Trendshift

Official Documentation • Quick Start • Graph Examples • FAQ • Demo Template • Awesome X6

AntV X6 is a graph editing engine based on HTML and SVG, providing low-cost customization capabilities and out-of-the-box built-in extensions that make it easy to quickly build applications such as DAG diagrams, ER diagrams, flowcharts, lineage graphs, and more. We hope developers can use X6 to rapidly build various graph editing applications they need, making process relationship data controllable, interactive, and visualized.

✨ Features

As a professional graph editing and visualization engine, X6 has the following features:

  • 🌱 Highly Customizable: Supports customizing node styles and interactions using SVG / HTML / React / Vue / Angular, with a comprehensive event system that allows listening to any events occurring within the chart.
  • 🚀 Out-of-the-Box: Built-in 10+ graph editing extensions, such as lasso selection, alignment lines, minimap, etc.
  • 🧲 Data-Driven: Based on the MVC architecture, allowing users to focus more on data logic and business logic.
  • 💯 Server-Side Rendering: Supports server-side rendering with good browser compatibility.

🔨 Getting Started

You can install via package managers like NPM or Yarn.

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

# yarn
$ yarn add @antv/x6

After successful installation, you can import the Graph object using import.

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

const graph = new Graph({
  container: document.getElementById('container'),
  grid: true,
})

const source = graph.addNode({
  x: 300,
  y: 40,
  width: 80,
  height: 40,
  label: 'Hello',
});

const target = graph.addNode({
  x: 420,
  y: 180,
  width: 80,
  height: 40,
  label: 'World',
});

graph.addEdge({
  source,
  target,
});

If everything goes smoothly, you will get a simple flowchart canvas as shown below.

🧑🏻‍💻 Local Development

# Install project dependencies and initialize build
$ pnpm install

# Start examples to view results
pnpm run start:examples

📮 Contribution

Thank you to everyone who has contributed to this project and all supporters! 🙏

Contribution Leaderboard
  • Issue Feedback: If you encounter any issues with X6 during use, feel free to submit an Issue along with minimal reproducible code.
  • Contribution Guide: How to participate in the development and contribution of X6.
  • Discussion Ideas: Discuss on GitHub Discussion or DingTalk group.

📄 License

MIT.

评论

暂无评论