{"name":"dagre-d3-es","version":"7.0.11","keywords":["dagre-d3"],"license":"MIT","_id":"dagre-d3-es@7.0.11","maintainers":[{"name":"teebo47","email":"thibaut.lassalle@gmail.com"}],"contributors":[{"url":"https://tbo47.github.io/","name":"Thibaut Lassalle"},{"url":"https://github.com/aloisklink","name":"Alois Klink"},{"url":"https://github.com/rustedgrail","name":"David Newell"},{"url":"https://github.com/sidharthv96","name":"Sidharth Vinod"}],"homepage":"https://github.com/tbo47/dagre-es#readme","bugs":{"url":"https://github.com/tbo47/dagre-es/issues"},"dist":{"shasum":"2237e726c0577bfe67d1a7cfd2265b9ab2c15c40","tarball":"http://registry-npm.ywwl.com/dagre-d3-es/download/dagre-d3-es-7.0.11.tgz","fileCount":137,"integrity":"sha512-tvlJLyQf834SylNKax8Wkzco/1ias1OPw8DcUMDE7oUIoSEW25riQVuiu/0OWEFqT0cxHT3Pa9/D82Jr47IONw==","signatures":[{"sig":"MEUCIQDMHZ3+zOPMf8i8F0FdvYJBDOgB689CqAir+DU45yLQXAIgEucpkG3Btg5dauI6JjQY7fE8Z8Jlx22eX7KRvi1cGYQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":152750,"size":44214,"noattachment":false,"key":"/dagre-d3-es/-/dagre-d3-es-7.0.11.tgz"},"main":"src/index.js","type":"module","types":"./src/index.d.ts","gitHead":"e20dc062e6886d06fced07e24ed73917b2ccb65e","scripts":{"lint":"eslint .","test":"vitest ","format":"prettier --write .","prepack":"npm run generate_types","lint:fix":"eslint --fix .","my_2_publish":"echo update_package_version ; git clean -xdf ; npm ci ; npm publish","generate_types":"find src -name '*.d.ts' -type f -delete ; tsc --build","my_1_npm_login":"npm login","compile_js_as_ts":"tsc src/index.js --AllowJs --checkJs --outDir dist/"},"_npmUser":{"name":"teebo47","email":"thibaut.lassalle@gmail.com"},"repository":{"url":"git+https://github.com/tbo47/dagre-es.git","type":"git"},"_npmVersion":"10.8.3","description":"<p align=\"center\">   <a href=\"https://www.npmjs.com/dagre-d3-es\"><img src=\"https://img.shields.io/npm/v/dagre-d3-es.svg?logo=npm&logoColor=fff&label=NPM+package&color=limegreen\" alt=\"dagre-d3-es on npm\" /></a>&nbsp;   <a href=\"https://www.npmjs.com/dagre-","directories":{},"_nodeVersion":"20.17.0","dependencies":{"d3":"^7.9.0","lodash-es":"^4.17.21"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.1.1","prettier":"^3.3.3","@types/d3":"^7.4.3","typescript":"^5.6.2","@types/jest":"^29.5.13","@types/lodash-es":"^4.17.12","eslint-plugin-import":"^2.30.0"},"_npmOperationalInternal":{"tmp":"tmp/dagre-d3-es_7.0.11_1727791307175_0.2988608921377256","host":"s3://npm-registry-packages"},"readme":"<p align=\"center\">\n  <a href=\"https://tbo47.github.io/\" ><img src=\"https://img.shields.io/badge/created_by-tbo47-blue.svg\" alt=\"Created by tbo47\"></a>\n  <a href=\"https://www.npmjs.com/dagre-d3-es\"><img src=\"https://img.shields.io/npm/v/dagre-d3-es.svg?logo=npm&logoColor=fff&label=NPM+package&color=limegreen\" alt=\"dagre-d3-es on npm\" /></a>&nbsp;\n  <a href=\"https://www.npmjs.com/dagre-d3-es\"><img src=\"https://img.shields.io/npm/dw/dagre-d3-es.svg?logo=npm&logoColor=fff&label=NPM+package&color=limegreen\" alt=\"dagre-d3-es on npm\" /></a>\n</p>\n\n# dagre-d3-es\n\n[dagre-d3-es](https://www.npmjs.com/package/dagre-d3-es) is a fork of [dagre-d3](https://github.com/dagrejs) using the more modern ES6 javascript syntax.\n\nIt uses [ES](https://262.ecma-international.org/6.0/) modules, thus the name [dagre-d3-es](https://www.npmjs.com/package/dagre-d3-es).\n\n[dagre-d3-es](https://www.npmjs.com/package/dagre-d3-es) follows [d3](https://www.npmjs.com/package/d3) versions. Ex: dagre-d3-es version 7 depends on [d3](https://www.npmjs.com/package/d3) version 7.\n\n## Demos\n\n- [simple graph demo](https://codesandbox.io/s/dagre-d3-es-tree-9ywg9) using react\n- clone and run [dagre-es-example](https://github.com/tbo47/dagre-es-example) using angular\n- [vanilla javascript example](https://tbo47.github.io/dagre-d3-esm_example1/)\n- [jsfiddle vanilla javascript example](https://jsfiddle.net/tbo47/fm9ovqeb/)\n\n## Install\n\n```\nnpm install dagre-d3-es\n```\n\n## Code example\n\nComing from the legacy `dagre-d3`, the main changes in your code will be:\n\n```\nimport * as dagreD3 from 'dagre-d3-es';\n...\nconst g = new dagreD3.graphlib.Graph().setGraph({});\n...\nconst zoom = d3.zoom().on('zoom', (zoomEvent) => {\n  inner.attr('transform', zoomEvent.transform);\n});\n\n```\n","publish_time":1727791307419,"_cnpm_publish_time":1727791307419,"dist-tags":{"latest":"7.0.14"}}