{"name":"@antv/x6","version":"1.0.0-beta.3","keywords":["graph","diagram","flowchart","uml","x6-editor","editor","svg","x6","antv"],"author":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"license":"MIT","_id":"@antv/x6@1.0.0-beta.3","maintainers":[{"name":"kn9117","email":"1175863618@qq.com"},{"name":"chenluli","email":"chenluuli@gmail.com"},{"name":"winniexing","email":"wanyingxing@gmail.com"},{"name":"newbyvector","email":"vectorse@126.com"},{"name":"l1ud0ngq1","email":"lliudongqi@gmail.com"},{"name":"boyu.zlj","email":"boyu.zlj@antfin.com"},{"name":"wufenfen92","email":"747042796@qq.com"},{"name":"kasmine","email":"xinming002@gmail.com"},{"name":"zengyue","email":"yezengyue@gmail.com"},{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},{"name":"panyuqi","email":"pyqiverson@gmail.com"},{"name":"ccnuzindex","email":"ccnuzindex@gmail.com"},{"name":"kopiluwaky","email":"yanyanwang93@gmail.com"},{"name":"pomelo-nwu","email":"czynwu@gmail.com"},{"name":"afc163","email":"afc163@gmail.com"},{"name":"zqlu","email":"zqlu.cn@gmail.com"},{"name":"jeffy2012","email":"yuanjiefeng@gmail.com"},{"name":"neoddish","email":"neoddish@outlook.com"},{"name":"dengfuping","email":"dengfuping_develop@163.com"},{"name":"baizn","email":"576375879@qq.com"},{"name":"atool","email":"i@hust.cc"},{"name":"army8735","email":"army8735@qq.com"},{"name":"lzxue","email":"120635640@qq.com"},{"name":"elaine.q.10","email":"yilin.qyl@antfin.com"},{"name":"sakuya223","email":"360965398@qq.com"},{"name":"leungwensen","email":"leungwensen@gmail.com"},{"name":"dori","email":"418466938@qq.com"},{"name":"simaq","email":"sima.zhang1990@gmail.com"},{"name":"dxq613","email":"dxq613@gmail.com"}],"contributors":[],"homepage":"https://github.com/antvis/x6","bugs":{"url":"https://github.com/antvis/x6/issues"},"dist":{"shasum":"0270222cc3253c089bfd0c5c69d3abd480848847","tarball":"http://registry-npm.ywwl.com/@antv/x6/download/@antv/x6-1.0.0-beta.3.tgz","fileCount":2206,"integrity":"sha512-XAR6PHH6wEgazWFI5OBMFSNFhURtJBdBTyonjTXEltiWFlWDHLEjNe09eEl+wG75qasOCbjIsQNwtf8wEJCYJQ==","signatures":[{"sig":"MEUCIQDMLrzROMpCPr3QWaYGcLMLPgKjdZAtQZZyhmApjg7RVAIgOR4THpwVjUvp02dNB7gZHTDzMqDbSL/U5Em+L5s9WxA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12018070,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfn3cECRA9TVsSAnZWagAAT2wQAIkyule6VhumWt7j1gxg\n7/QdG/ERWyLZLe1a/xHfd1DnQ6kYMKTVVQk5/8pXaN25gmZjOQDISxpknwvu\nyJg4ghSHozuXV1ZaytwOF+jRTucNEklJGIpDOsCBOJ9+2rDMz211Qv5OvFNm\nF+0Ge7OQ4Hxsnj2PRcUcLGnNHo8NBin4a09flYW2NiiZQ5WAAakwXlI/FcKn\nyhuFeb1dN1AVV35ws98emq1Du9IH6V2NVFuC/t5q3rPgRsBkEBABfQBUWpEK\nAsqlXtoLY1/BP5LfNBN6lwVRTibkgM410jWgYXt/IsS1+JTX98kvuNE7lVUR\n/2r09pc27ueTAPq6corZ4X1HrNTOypWeyntm8pE73mDLYpvvYfhuVZEMmnIV\ncD0m+iAVzYcWo7Z3iwKvVuMHxUovZve/BT3qVw99Wsfn2w1g1DX0Q/9A9qwL\nsDNf9fgm+9p1l+uk2Ev2Nmdso4Ef4BwViNlkQfptlSbvr3q3Z5yjPq/6KkNV\nyxcDqtbH5DQG4Hc3Rm/R97TNkLi2az2sRpvLSUGybdHxMQJ54vZWZt2ZjkS/\nn1JpHd3IqXW6jcrGBlXYL+4yRnFCrSv29zFxCH7Xvoc9FGenEC0tdxWxSGvY\nROuqtDUnxYZsgecLX2xCy6fNe8iYgq40Dd44lZKayARtT0mZfjZpwpZ7AJki\n8wQG\r\n=giNB\r\n-----END PGP SIGNATURE-----\r\n","size":2185188,"noattachment":false,"key":"/@antv/x6/-/@antv/x6-1.0.0-beta.3.tgz"},"main":"lib/index.js","types":"lib/index.d.ts","unpkg":"dist/x6.js","module":"es/index.js","readme":"<h1 align=\"center\">X6</h1>\n\n<p align=\"center\"><strong>JavaScript diagramming library that uses SVG and HTML for rendering.</strong></p>\n\n<p align=\"center\">\n<a href=\"https://github.com/antvis/x6/blob/master/LICENSE\"><img src=\"https://img.shields.io/badge/license-MIT_License-green.svg?style=flat-square\" alt=\"MIT License\"></a>\n<a href=\"https://www.typescriptlang.org\"><img alt=\"Language\" src=\"https://img.shields.io/badge/language-TypeScript-blue.svg?style=flat-square\"></a>\n<a href=\"https://github.com/antvis/x6/pulls\"><img alt=\"PRs Welcome\" src=\"https://img.shields.io/badge/PRs-Welcome-brightgreen.svg?style=flat-square\"></a>\n<a href=\"https://x6.antv.vision\"><img alt=\"website\" src=\"https://img.shields.io/static/v1?label=&labelColor=505050&message=website&color=0076D6&style=flat-square&logo=google-chrome&logoColor=0076D6\"></a>\n<a href=\"https://travis-ci.org/antvis/x6\"><img alt=\"build\" src=\"https://img.shields.io/travis/antvis/x6.svg?style=flat-square\"></a>\n<a href=\"https://coveralls.io/github/antvis/x6\"><img alt=\"coverage\" src=\"https://img.shields.io/coveralls/antvis/x6/master.svg?style=flat-square\"></a>\n<a href=\"https://lgtm.com/projects/g/antvis/x6/context:javascript\"><img alt=\"Language grade: JavaScript\" src=\"https://img.shields.io/lgtm/grade/javascript/g/antvis/x6.svg?logo=lgtm&style=flat-square\"></a>\n</p>\n\n<p align=\"center\">\n<a href=\"https://www.npmjs.com/package/@antv/x6\"><img alt=\"NPM Package\" src=\"https://img.shields.io/npm/v/@antv/x6.svg?style=flat-square\"></a>\n<a href=\"https://www.npmjs.com/package/@antv/x6\"><img alt=\"NPM Downloads\" src=\"http://img.shields.io/npm/dm/@antv/x6.svg?style=flat-square\"></a>\n<a href=\"https://david-dm.org/antvis/x6\"><img alt=\"NPM Dependencies\" src=\"https://img.shields.io/david/antvis/x6?style=flat-square\"></a>\n<a href=\"https://david-dm.org/antvis/x6?path=packages/x6\"><img alt=\"Dependency Status\" src=\"https://david-dm.org/antvis/x6.svg?style=flat-square&path=packages/x6\"></a>\n<a href=\"https://david-dm.org/antvis/x6?type=dev&path=packages/x6\"><img alt=\"devDependencies Status\" src=\"https://david-dm.org/antvis/x6/dev-status.svg?style=flat-square&path=packages/x6\" ></a>\n</p>\n\n## Features\n\n- 🌱　easy-to-customize: based on well known SVG/HTML/CSS or React to custom nodes and edges\n- 🚀　out-of-the-box: built-in 10+ plugins, such as selection, dnd, redo/undo, snapline, minimap, etc.\n- 🧲　data-driven: base on MVC architecture, you can focus on data logic and business logic\n- 💯　highly-event-driven: you can react on any event that happens inside the graph\n\n## Installation\n\n```shell\n# npm\n$ npm install @antv/x6 --save\n\n# yarn\n$ yarn add @antv/x6\n```\n\n## Usage\n\n**Step 1**: specify a container the render the diagram.\n\n```html\n<div id=\"container\" style=\"width: 600px; height: 400px\"></div>\n```\n\n**Step 2**: render nodes and edges.\n\n```ts\nimport { Graph } from '@antv/x6'\n\n// Create an instance of Graph.\nconst graph = new Graph({\n  container: document.getElementById('container'),\n})\n\n// Render source node.\nconst source = graph.addNode({\n  x: 60,\n  y: 60,\n  width: 80,\n  height: 40,\n  label: 'Hello',\n})\n\n// Render target node.\nconst target = graph.addNode({\n  x: 240,\n  y: 240,\n  width: 80,\n  height: 40,\n  label: 'World',\n})\n\n// Render edge from source to target.\ngraph.addEdge({\n  source,\n  target,\n})\n```\n\n## Documentation\n\n- [About](https://x6.antv.vision/zh/docs/tutorial/about)\n- [Getting started](https://x6.antv.vision/zh/docs/tutorial/getting-started)\n- [Basic usage](https://x6.antv.vision/zh/docs/tutorial/basic/graph)\n- [Advanced practice](https://x6.antv.vision/zh/docs/tutorial/intermediate/serialization)\n- [Senior guidance](https://x6.antv.vision/zh/docs/tutorial/advanced/animation)\n\n## Development\n\n```shell\n# install yarn and lerna\n$ npm install yarn -g\n$ npm install lerna -g\n\n# install deps and build\n$ yarn bootstrap\n\n# run tests\n$ yarn test\n\n# build\n$ yarn build\n```\n\n## Experience Improvement Program Description\n\nIn order to serve the users better, x6 will send the URL and version information back to the AntV server:\n\nhttps://kcart.alipay.com/web/bi.do\n\nExcept for URL and x6 version information, no other information will be collected. You can also turn it off with the following code:\n\n```ts\nimport { Config } from '@antv/x6'\n\nConfig.track(false)\n```\n\n## Contributing\n\nPlease let us know how can we help. Do check out [issues](https://github.com/antvis/x6/issues) for bug reports or suggestions first.\n\nTo become a contributor, please follow our [contributing guide](https://github.com/antvis/x6/blob/master/CONTRIBUTING.md).\n","gitHead":"3284a526d9d97c99e7ef55c2157a46474c9a6a69","scripts":{"lint":"run-s lint:ts lint:es lint:style","test":"karma start","build":"run-p build:readme build:version build:dev build:umd","clean":"run-p clean:build clean:coverage","lint:es":"eslint --ext .js scripts --fix","lint:ts":"tslint -c tslint.json -p tsconfig.json --fix","prepare":"run-s build:version test build","pretest":"run-p clean:coverage","prebuild":"run-s lint clean","build:cjs":"tsc --module commonjs --target es5 --outDir ./lib","build:dev":"run-p build:csstype build:less build:cjs build:esm","build:esm":"tsc --module esnext --target es2015 --outDir ./es","build:umd":"rollup -c","coveralls":"cat ./test/coverage/lcov.info | coveralls","precommit":"lint-staged","build:less":"node ./scripts/style","lint:style":"stylelint 'src/**/*.less' --syntax less --fix","build:watch":"yarn build:esm --w","clean:build":"rimraf dist es lib","build:readme":"node ./scripts/readme.js","build:csstype":"node ./scripts/csstype.js","build:version":"node ./scripts/version.js","clean:coverage":"rimraf ./test/coverage"},"_npmUser":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"repository":{"url":"https://github.com/antvis/x6/tree/master/packages/x6","type":"git"},"_npmVersion":"6.14.8","description":"JavaScript diagramming library that uses SVG and HTML for rendering.","directories":{},"lint-staged":{"*.js":["eslint --fix"],"src/**/*.ts":["tslint -c tslint.json -p ./tsconfig.json --fix"],"src/**/*.less":["stylelint --syntax less --fix"]},"_nodeVersion":"12.19.0","dependencies":{"jquery":"^3.4.1","csstype":"^3.0.3","lodash-es":"^4.17.15","mousetrap":"^1.6.3","utility-types":"^3.10.0","jquery-mousewheel":"^3.1.13"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"less":"^3.10.3","karma":"^5.1.1","sinon":"^9.0.2","eslint":"^7.11.0","rimraf":"^3.0.0","rollup":"^2.10.5","tslint":"^6.1.3","ts-node":"^9.0.0","coveralls":"^3.0.6","karma-cli":"^2.0.0","stylelint":"^13.3.3","typescript":"^4.0.2","@types/node":"^14.0.1","lint-staged":"^10.2.2","npm-run-all":"^4.1.5","@types/sinon":"^9.0.0","jasmine-core":"^3.6.0","@types/jquery":"^3.3.31","karma-jasmine":"^4.0.1","@types/jasmine":"^3.5.14","@types/lodash-es":"^4.17.3","@types/mousetrap":"^1.6.3","karma-typescript":"^5.2.0","karma-spec-reporter":"^0.0.32","rollup-plugin-terser":"^7.0.2","karma-chrome-launcher":"^3.1.0","rollup-plugin-filesize":"^9.0.0","rollup-plugin-progress":"^1.1.2","@rollup/plugin-commonjs":"^15.1.0","@types/jquery-mousewheel":"^3.1.8","@rollup/plugin-typescript":"^6.0.0","@rollup/plugin-node-resolve":"^9.0.0","karma-typescript-es6-transform":"^5.1.0"},"_npmOperationalInternal":{"tmp":"tmp/x6_1.0.0-beta.3_1604286212227_0.3729275266372891","host":"s3://npm-registry-packages"},"publish_time":1604286212408,"_cnpm_publish_time":1604286212408,"dist-tags":{"@antv/x6@1.35.1":"1.35.1","beta":"3.1.4-beta.1","latest":"3.1.8"}}