{"name":"@antv/g6","version":"5.0.41","keywords":["antv","g6","graph","graph analysis","graph editor","graph visualization","relational data"],"author":{"name":"https://github.com/orgs/antvis/people"},"license":"MIT","_id":"@antv/g6@5.0.41","homepage":"https://g6.antv.antgroup.com/","bugs":{"url":"https://github.com/antvis/g6/issues"},"dist":{"shasum":"37b1884a6233bf06f889d29d9909196cfa982351","tarball":"http://registry-npm.ywwl.com/@antv/g6/download/@antv/g6-5.0.41.tgz","fileCount":1951,"integrity":"sha512-u8xJzvmI3thkBaDmL46797fC0AE9OPJSurEuLTLFfwN7zsdMZc4w9L6OSTvpxJlcnX7QKbjShUiKnGCoU9oA/w==","signatures":[{"sig":"MEYCIQDCD05YlqB043KozIW+uOOaxa9Swl2xE/qoSJnmliFkSQIhAN5Tk+R6Vk8iuTeekMXQjHAp63okebsDD7TO68bzUesR","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6846437,"size":1225920,"noattachment":false,"key":"/@antv/g6/-/@antv/g6-5.0.41.tgz"},"main":"lib/index.js","_from":"file:antv-g6-5.0.41.tgz","types":"lib/index.d.ts","module":"esm/index.js","scripts":{"ci":"run-s lint type-check build test","dev":"vite","fix":"eslint ./src ./__tests__ --fix && prettier ./src __tests__ --write ","tag":"node ./scripts/tag.mjs","jest":"node --expose-gc --max-old-space-size=1024 --unhandled-rejections=strict ../../node_modules/jest/bin/jest --coverage --logHeapUsage --detectOpenHandles","lint":"eslint ./src __tests__ --quiet && prettier ./src __tests__ --check","size":"limit-size","test":"jest","build":"run-p build:*","start":"rimraf ./lib && tsc --module commonjs --outDir lib --watch","readme":"cp ../../README.* ./","version":"node ./scripts/version.mjs","coverage":"jest --coverage","build:cjs":"rimraf ./lib && tsc --module commonjs --outDir lib -p tsconfig.build.json","build:esm":"rimraf ./esm && tsc --module ESNext --outDir esm -p tsconfig.build.json","build:umd":"rimraf ./dist && rollup -c && npm run size","test:unit":"npm run jest __tests__/unit","bundle-vis":"cross-env BUNDLE_VIS=1 npm run build:umd","type-check":"tsc --noEmit","coverage:open":"open coverage/lcov-report/index.html","build:dev:watch":"npm run build:esm -- --watch","test:integration":"npm run jest __tests__/integration"},"_npmUser":{"name":"iaaron","email":"943720372@qq.com"},"_resolved":"/tmp/a90262269f24360e25cf76067b1eb48a/antv-g6-5.0.41.tgz","_integrity":"sha512-u8xJzvmI3thkBaDmL46797fC0AE9OPJSurEuLTLFfwN7zsdMZc4w9L6OSTvpxJlcnX7QKbjShUiKnGCoU9oA/w==","limit-size":[{"gzip":true,"path":"dist/g6.min.js","limit":"320 Kb"},{"path":"dist/g6.min.js","limit":"1.1 Mb"}],"repository":{"url":"git+https://github.com/antvis/g6.git","type":"git"},"_npmVersion":"10.8.2","description":"A Graph Visualization Framework in JavaScript","directories":{},"_nodeVersion":"18.20.5","dependencies":{"@antv/g":"^6.1.14","hull.js":"^1.0.6","@antv/util":"^3.3.10","@antv/layout":"1.2.14-beta.9","bubblesets-js":"^2.3.4","@antv/g-canvas":"^2.0.32","@antv/graphlib":"^2.0.4","@antv/algorithm":"^0.1.26","@antv/component":"^2.1.2","@antv/hierarchy":"^0.6.14","@antv/event-emitter":"^0.1.3","@antv/g-plugin-dragndrop":"^2.0.25"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"cross-env":"^7.0.3","@antv/g-svg":"^2.0.27","@antv/g-webgl":"^2.0.36","xmlserializer":"^0.6.1","@types/hull.js":"^1.0.4","@antv/layout-gpu":"^1.1.7","jest-canvas-mock":"^2.5.2","jest-random-mock":"^1.0.0","@antv/layout-wasm":"^1.4.2","@types/xmlserializer":"^0.6.6"},"_npmOperationalInternal":{"tmp":"tmp/g6_5.0.41_1736321400609_0.649107862887381","host":"s3://npm-registry-packages-npm-production"},"readme":"<img src=\"https://gw.alipayobjects.com/zos/antfincdn/R8sN%24GNdh6/language.svg\" width=\"18\"> [English](./README.md) | 简体中文\n\n<h1 align=\"center\">\n<b>G6：图可视分析引擎</b>\n</h1>\n\n![](https://user-images.githubusercontent.com/6113694/45008751-ea465300-b036-11e8-8e2a-166cbb338ce2.png)\n\n[![npm Version](https://img.shields.io/npm/v/@antv/g6.svg)](https://www.npmjs.com/package/@antv/g6)\n[![Build Status](https://github.com/antvis/G6/actions/workflows/build.yml/badge.svg)](https://github.com/antvis/G6/actions/workflows/build.yml)\n[![Coverage Status](https://coveralls.io/repos/github/antvis/G6/badge.svg)](https://coveralls.io/github/antvis/G6)\n[![npm Download](https://img.shields.io/npm/dm/@antv/g6.svg)](https://www.npmjs.com/package/@antv/g6)\n![typescript](https://img.shields.io/badge/language-typescript-blue.svg)\n[![npm License](https://img.shields.io/npm/l/@antv/g6.svg)](https://www.npmjs.com/package/@antv/g6)\n\n<p align=\"center\">\n  <a href=\"https://g6.antv.antgroup.com/manual/introduction\">简介</a> •\n  <a href=\"https://g6.antv.antgroup.com/examples\">图表示例</a> •\n  <a href=\"https://g6.antv.antgroup.com/manual/getting-started/quick-start\">快速开始</a> •\n  <a href=\"https://g6.antv.antgroup.com/api/graph/method\">API</a>\n</p>\n\n[G6](https://github.com/antvis/g6) 是一个图可视化引擎。它提供了图的绘制、布局、分析、交互、动画、主题、插件等图可视化和分析的基础能力。基于 G6，用户可以快速搭建自己的图可视化分析应用，让关系数据变得简单，透明，有意义。\n\n<img src='https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*_PJ5SZELwq0AAAAAAAAAAAAADmJ7AQ/original' width=550 alt='' />\n\n<img src='https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*zTjwQaXokeQAAAAAAAAAAABkARQnAQ' width=550 alt='' />\n\n<img src='https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*zau8QJcVpDQAAAAAAAAAAABkARQnAQ' height=200 alt='' /><img src='https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*RIlETY_S6IoAAAAAAAAAAABkARQnAQ' height=200 alt='' />\n\n<img src='https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*cDzXR4jIWr8AAAAAAAAAAABkARQnAQ' height=150 alt='' /><img src='https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*HTasSJGC4koAAAAAAAAAAABkARQnAQ' height=150 alt='' />\n\n<img src=\"https://user-images.githubusercontent.com/6113694/44995293-02858600-afd5-11e8-840c-349e4730d63d.gif\" height=150 alt='' /><img src=\"https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*I9OdTbXJIi0AAAAAAAAAAABkARQnAQ\" height=150 alt='' /><img src=\"https://gw.alipayobjects.com/mdn/rms_f8c6a0/afts/img/A*xoufSYcjK2AAAAAAAAAAAABkARQnAQ\" height=150 alt='' />\n\n## ✨ 特性\n\nG6 作为一款专业的图可视化引擎，具有以下特性：\n\n- **丰富的元素**：内置丰富的节点、边、Combo UI 元素，样式配置丰富，支持数据回调，且具备有灵活扩展自定义元素的机制。\n- **可控的交互**：内置 10+ 交互行为，且提供丰富的各类事件，便于扩展自定义的交互行为。\n- **高性能布局**：内置 10+ 常用的图布局，部分基于 GPU、Rust 并行计算提升性能，支持自定义布局。\n- **便捷的组件**：优化内置组件功能及性能，且有灵活的扩展性，便于业务实现定制能力。\n- **多主题色板**：提供了亮色、暗色两套内置主题，在 AntV 新色板前提下，融入 20+ 常用社区色板。\n- **多环境渲染**：发挥 [G](https://github.com/antvis/g) 能力， 支持 Canvas、SVG 以及 WebGL，和 Node.js 服务端渲染；基于 WebGL 提供强大 3D 渲染和空间交互的插件包。\n- **React 体系**：利用 React 前端生态，支持 React 节点，大大丰富 G6 的节点呈现样式。\n\n## 🔨 开始使用\n\n可以通过 NPM 或 Yarn 等包管理器来安装。\n\n```bash\n$ npm install @antv/g6\n```\n\n成功安装之后，可以通过 import 导入 `Graph` 对象。\n\n```html\n<div id=\"container\"></div>\n```\n\n```js\nimport { Graph } from '@antv/g6';\n\n// 准备数据\nconst data = {\n  nodes: [\n    /* your nodes data */\n  ],\n  edges: [\n    /* your edges data */\n  ],\n};\n\n// 初始化图表实例\nconst graph = new Graph({\n  container: 'container',\n  data,\n  node: {\n    palette: {\n      type: 'group',\n      field: 'cluster',\n    },\n  },\n  layout: {\n    type: 'force',\n  },\n  behaviors: ['drag-canvas', 'drag-node'],\n});\n\n// 渲染图\ngraph.render();\n```\n\n一切顺利，你可以得到下面的力导图!\n\n<img src=\"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*ue4iTYurc6sAAAAAAAAAAAAADmJ7AQ/fmt.webp\" height=\"300\" />\n\n## 🌍 生态\n\n- **Ant Design Charts**： React 图表库，基于 G2、G6、X6、L7。\n- **Graphin**：基于 G6 的 React 简单封装，以及图可视化应用研发的 SDK。\n\n更多生态开源项目，欢迎 PR 收录进来。\n\n## 📮 贡献\n\n- **问题反馈**：使用过程遇到的 G6 的问题，欢迎提交 Issue，并附上可以复现问题的最小案例代码。\n- **贡献指南**：如何参与到 G6 的[开发和贡献](https://g6.antv.antgroup.com/manual/contribute)。\n- **想法讨论**：在 GitHub Discussion 上或者钉钉群里面讨论。\n\n<div>\n  <img src=\"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*CQoGSoFBzaUAAAAAAAAAAAAADmJ7AQ/fmt.webp\" height=\"256\" />\n</div>\n\n## 📄 License\n\n[MIT](./LICENSE).\n","publish_time":1736321400799,"maintainers":[{"name":"lvisei","email":"yunji.me@outlook.com"},{"name":"freestyle21","email":"675861708@qq.com"},{"name":"soundquiet","email":"fulingsun515@gmail.com"},{"name":"elaine.q.10","email":"yilin.qyl@antfin.com"},{"name":"sturuby","email":"xingya.shi@gmail.com"},{"name":"sakuya223","email":"360965398@qq.com"},{"name":"serializedowen","email":"wjh199455@gmail.com"},{"name":"xdzhao","email":"zhaoxiaodong@zju.edu.cn"},{"name":"yangzhanmei","email":"15809244435@163.com"},{"name":"wjgogogo","email":"906626481@qq.com"},{"name":"leungwensen","email":"leungwensen@gmail.com"},{"name":"dori","email":"418466938@qq.com"},{"name":"iaaron","email":"943720372@qq.com"},{"name":"yard","email":"zjwengyidong@outlook.com"},{"name":"simaq","email":"sima.zhang1990@gmail.com"},{"name":"dxq613","email":"dxq613@gmail.com"},{"name":"intchous","email":"h.a.p.p.y.y.x.d@163.com"},{"name":"susan_ann","email":"lisuwe_n@163.com"},{"name":"jinke.li","email":"jinke.li666@gmail.com"},{"name":"lzxue","email":"120635640@qq.com"},{"name":"army8735","email":"army8735@qq.com"},{"name":"atool","email":"i@hust.cc"},{"name":"baizn","email":"576375879@qq.com"},{"name":"dengfuping","email":"dengfuping_private@163.com"},{"name":"neoddish","email":"neoddish@outlook.com"},{"name":"jeffy2012","email":"yuanjiefeng@gmail.com"},{"name":"zqlu","email":"zqlu.cn@gmail.com"},{"name":"afc163","email":"afc163@gmail.com"},{"name":"pomelo-nwu","email":"czynwu@gmail.com"},{"name":"kopiluwaky","email":"yanyanwang93@gmail.com"},{"name":"ccnuzindex","email":"ccnuzindex@gmail.com"},{"name":"panyuqi","email":"pyqiverson@gmail.com"},{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},{"name":"zengyue","email":"yezengyue@gmail.com"},{"name":"kasmine","email":"736929286@qq.com"},{"name":"boyu.zlj","email":"boyu.zlj@antfin.com"},{"name":"l1ud0ngq1","email":"lliudongqi@gmail.com"},{"name":"newbyvector","email":"vectorse@126.com"},{"name":"winniexing","email":"wanyingxing@gmail.com"},{"name":"chenluli","email":"chenluuli@gmail.com"},{"name":"kn9117","email":"1175863618@qq.com"},{"name":"xdddst","email":"deng25st@163.com"},{"name":"semious2020","email":"semious@163.com"},{"name":"esora","email":"tygyh2012@gmail.com"},{"name":"nadia_liu","email":"1803275951@qq.com"},{"name":"bbsqq","email":"1491812683@qq.com"},{"name":"mxz96102","email":"mxz96102@qq.com"},{"name":"openwayne","email":"openwayne@gmail.com"},{"name":"pearmini","email":"subairui@icloud.com"},{"name":"pddpd","email":"pddpengdi@gmail.com"},{"name":"yiqianyao","email":"2912401452@qq.com"},{"name":"zhanba","email":"c5e1856@gmail.com"},{"name":"cxxxxxn","email":"christy05.chen@gmail.com"},{"name":"laixingui.lxg","email":"laixingui.lxg@alibaba-inc.com"},{"name":"susiwen8","email":"susiwen8@gmail.com"},{"name":"yanxiong","email":"ojh496845051@gmail.com"},{"name":"zeyuwang","email":"zywangx@gmail.com"},{"name":"rainy25ghz","email":"1748420480@qq.com"},{"name":"zhangjunjie-loki","email":"zhangjunjie0730@163.com"},{"name":"flash1","email":"2523863783@qq.com"},{"name":"yisi.wang","email":"aptx.wang@gmail.com"},{"name":"dreammy23","email":"caomengyuan2015@163.com"},{"name":"biupiubiupiu","email":"lcx.seima@gmail.com"},{"name":"basketduck","email":"hiphone96@gmail.com"},{"name":"xuying1027","email":"370064808@qq.com"},{"name":"banxuan","email":"zhuyuxin0627@gmail.com"},{"name":"bqxbqxbqx","email":"boqingxin14@gmail.com"}],"_cnpm_publish_time":1736321400799,"dist-tags":{"beta":"5.1.0-beta.1","latest":"5.1.1"}}