{"name":"dagre-d3-es","version":"7.0.13","keywords":["dagre-d3"],"license":"MIT","_id":"dagre-d3-es@7.0.13","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":"acfb4b449f6dcdd48d8ea8081a6d8c59bc8128c3","tarball":"http://registry-npm.ywwl.com/dagre-d3-es/download/dagre-d3-es-7.0.13.tgz","fileCount":137,"integrity":"sha512-efEhnxpSuwpYOKRm/L5KbqoZmNNukHa/Flty4Wp62JRvgH2ojwVgPgdYyr4twpieZnyRDdIH7PY2mopX26+j2Q==","signatures":[{"sig":"MEQCIFsXsq6tXGieO1vt0fBU0SoWWB2LtPrPiUlrj7CN9nWtAiBaq0IlHP1N7S8njZ44YiOG2nccsoStz1i2GkE6SqZGXg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":154659,"size":44768,"noattachment":false,"key":"/dagre-d3-es/-/dagre-d3-es-7.0.13.tgz"},"main":"src/index.js","type":"module","types":"./src/index.d.ts","gitHead":"2d0f8b72bfdd69c8c278d31c4529b55f76bd6499","scripts":{"lint":"eslint .","test":"vitest ","bundle":"chmod +x bundle.sh ; ./bundle.sh && cp dist/dagre-d3*.js ../tbo47.github.io","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":"11.6.2","description":"<p align=\"center\">   <a href=\"https://tbo47.github.io/\" ><img src=\"https://img.shields.io/badge/created_by-tbo47-blue.svg\" alt=\"Created by tbo47\"></a>   <a href=\"https://www.npmjs.com/dagre-d3-es\"><img src=\"https://img.shields.io/npm/v/dagre-d3-es.svg?log","directories":{},"_nodeVersion":"24.3.0","dependencies":{"d3":"^7.9.0","lodash-es":"^4.17.21"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.57.1","vitest":"^3.2.4","esbuild":"^0.25.10","prettier":"^3.6.2","@types/d3":"^7.4.3","typescript":"^5.9.3","@types/lodash-es":"^4.17.12","eslint-plugin-import":"^2.32.0"},"_npmOperationalInternal":{"tmp":"tmp/dagre-d3-es_7.0.13_1761287684515_0.46530114153063984","host":"s3://npm-registry-packages-npm-production"},"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":1761287684706,"_cnpm_publish_time":1761287684706,"dist-tags":{"latest":"7.0.14"}}