{"name":"@antv/x6","version":"1.0.0-beta.5","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.5","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":"fa616fd6b0e49c8daf17ebdf81a98aa934c965df","tarball":"http://registry-npm.ywwl.com/@antv/x6/download/@antv/x6-1.0.0-beta.5.tgz","fileCount":2218,"integrity":"sha512-sBFQB7/hJ+WG5QB2qvdfHuHk3QG48MBlaUHDzAzRBfq7pBKKr9D+NHVFFh3bT2QZwhvsJgf68+IFjXnrA/R/ZA==","signatures":[{"sig":"MEYCIQCF5PZHkfZ85+H4HcWOlaDsODE14RHyPsNMeiFyEjlWjAIhAPOM9dFWFcECJgs4aZdxHIDV8OzvacXeSHAFUG0xDquo","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12243124,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfs5N7CRA9TVsSAnZWagAA1+IP/3whJbVu7EHWcY8VInXO\nUTKXVCSQWIrRForbxTyDIUHOAdqDGop9g2ZFOIaG7rn8ahdaOhUTNNxuhm3G\newa4VEXFVrsFkCUkq3V461+V3Y7o3VSP7UQMC/jrL6frVyi+tD5LiS2vbvU5\nrcvgTgwIolAlSSsM9wcqEUemBafOHJm7brRu8FAF+MVAJVCr/bmeFmfn8Fdb\nrABNQaJidbC/7FU9FTzmfENoU6EvPBbds05ex8RzEOFAsQrSN7cIG1Y+LGsU\nUSSPlD0SWpEqtmD4hUWC+i3fDNGDwA8DAyVWQfhL+EeZ/fu2FdR2k75GzWOa\nLJYiUKy/vLUp2/TZ2jLZgUqD0WdgBPRscM+K3nI/EmSrL7c3u3PsYuJH/3+6\nR2ZTrkYPvUuguG3//R8Rky2SUL5o9aeZmtbHZXWg7T6DSq7dx9gw1/eMLgyg\nGIdB/hnVvAgtLRU/ICWZHlE4lVkLiXd8OGlJixhnZrhAGUkO8nRB9abc9Cay\ntd4sv4vEJgswgSsLuxIaUp5NytWvaZ3cMfXG/uLPYHvQgskIvafSnxJdoiY9\n/O2HtPSL1fnAFOKls5lO1AlYqRe7GaxLcde+3DEV+K6uLxB9EMMg15p2BKDU\n5XYfUVC+dgsZvSZGDIVxhVRgPQsTBZ+zC+AUCrONu6XO4bYPcW/WBo2X4qDb\nKcxi\r\n=rQ9U\r\n-----END PGP SIGNATURE-----\r\n","size":2205979,"noattachment":false,"key":"/@antv/x6/-/@antv/x6-1.0.0-beta.5.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","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":"git+ssh://git@github.com/antvis/x6.git","type":"git","directory":"packages/x6"},"_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.5_1605604218719_0.21632014154742762","host":"s3://npm-registry-packages"},"publish_time":1605604218959,"_cnpm_publish_time":1605604218959,"dist-tags":{"@antv/x6@1.35.1":"1.35.1","beta":"3.1.4-beta.1","latest":"3.1.8"}}