{"name":"@antv/x6","version":"1.0.0-beta.1","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.1","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":"d8a1dd034e5b6576becc6047d0b371e8d541dcfd","tarball":"http://registry-npm.ywwl.com/@antv/x6/download/@antv/x6-1.0.0-beta.1.tgz","fileCount":2206,"integrity":"sha512-UxUUDF6sbAVLJy4/4bfTP9ZZKN1O29hjUZZXoDZVbAQSJJ7ECgZttTwY3VPcmPzlPv6FV3ADf3wliLoYq3zxyw==","signatures":[{"sig":"MEUCIHh499D5TeggAL28JhMVieeOR0adqw7WNijrimsHEAETAiEA9/B6zSiSzuzmdkFi1GF8/j/Fo488wy2NLg06rqZOZoY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12018555,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfn12xCRA9TVsSAnZWagAAtmUP/2a4jJkH6rhQY8hbBBb2\ns9wpKhp6X4R5IXxbofnT4OCobFE5Hu0GsKJJvVn8BES30bUsjWk86eyhzDUU\n8y0cRjeUj/vDYesfUy3zKqEnSCig+nZ/zdYkiUf5DfLGXoz6uPELhXZZ8dXJ\nrYFV/lJtHAOD6DcfCF8VIJwT7e1O7rE0uWRgeABjJLr6LUaQ0knoZyUNyBof\nuZqWJzYpxN0nWVLvZNIkepwRf8TIPFOXluszFazkCUGw3tu3CDDmS/uO+PpE\ntku71K7s3LmDT+qQvNMvqmTe8clv3ksWMYLKFodCB7cf+b+ecz8MDzENgc6A\nWBj2VH7ib+hMjpIhOQ5K/UgMTnDDTb1um7GQyMitI0eljkTszQaGtVFkZo7a\nvXn8+0cbe5h52GtRNKzMuI5lfOeNXinwXdUSYP9MhI9hCse+ab/bdyb1IVuY\ngLP6t1o6x526BjTkszkBnkAI7heYpKI1DX/KMDObL1LF27AJupctAitqamYT\ntSLtlrBAM1N/cswyT8CsbDreyN9X3SgSm1itkZEmCC/k4WPV/tSYaVC1hPzj\nxSk8qML10foVcpoLSPej6rX0ivMCkgm+XmmZcngNHkRZeZClfAX7lba2h/y+\nHhqPajc9DSrfRSJm8Lp5GiAnH9Hm+bp1HIaiuyoVRJGhr5kGG69MQA6INtYf\nadGD\r\n=ka1Q\r\n-----END PGP SIGNATURE-----\r\n","size":2185286,"noattachment":false,"key":"/@antv/x6/-/@antv/x6-1.0.0-beta.1.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.1_1604279728677_0.21376939826365793","host":"s3://npm-registry-packages"},"publish_time":1604279729046,"_cnpm_publish_time":1604279729046,"dist-tags":{"@antv/x6@1.35.1":"1.35.1","beta":"3.1.4-beta.1","latest":"3.1.8"}}