{"name":"dagre-d3-es","version":"7.0.14","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","license":"MIT","main":"src/index.js","type":"module","scripts":{"bundle":"chmod +x bundle.sh ; ./bundle.sh && cp dist/dagre-d3*.js ../tbo47.github.io","generate_types":"find src -name '*.d.ts' -type f -delete ; tsc --project tsconfig.build.json","prepack":"npm run generate_types","lint":"eslint .","lint:fix":"eslint --fix .","format":"prettier --write .","test":"vitest ","my_1_npm_login":"npm login","my_2_publish":"echo update_package_version ; git clean -xdf ; npm ci ; npm publish","compile_js_as_ts":"tsc src/index.js --AllowJs --checkJs --outDir dist/"},"keywords":["dagre-d3"],"repository":{"type":"git","url":"git+https://github.com/tbo47/dagre-es.git"},"dependencies":{"d3":"^7.9.0","lodash-es":"^4.17.21"},"devDependencies":{"@types/d3":"^7.4.3","@types/lodash-es":"^4.17.12","esbuild":"^0.25.10","eslint":"^8.57.1","eslint-plugin-import":"^2.32.0","prettier":"^3.6.2","typescript":"^5.9.3","vitest":"^3.2.4"},"contributors":[{"name":"Thibaut Lassalle","url":"https://tbo47.github.io/"},{"name":"Alois Klink","url":"https://github.com/aloisklink"},{"name":"David Newell","url":"https://github.com/rustedgrail"},{"name":"Sidharth Vinod","url":"https://github.com/sidharthv96"}],"types":"./src/index.d.ts","gitHead":"4b95ad0a0bca6ce4cfa4cb83dfa9be19ca740e8f","_id":"dagre-d3-es@7.0.14","bugs":{"url":"https://github.com/tbo47/dagre-es/issues"},"homepage":"https://github.com/tbo47/dagre-es#readme","_nodeVersion":"24.3.0","_npmVersion":"11.6.4","dist":{"integrity":"sha512-P4rFMVq9ESWqmOgK+dlXvOtLwYg0i7u0HBGJER0LZDJT2VHIPAMZ/riPxqJceWMStH5+E61QxFra9kIS3AqdMg==","shasum":"1272276e26457cf3b97dac569f8f0531ec33c377","tarball":"http://registry-npm.ywwl.com/dagre-d3-es/download/dagre-d3-es-7.0.14.tgz","fileCount":137,"unpackedSize":243154,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDFFlBus1UEu6eWg0SnMDPNd0kId8sT0xc19ZtsweaR6QIgJrSrJ6Va2M/fgxkUj2NCruLISC0kHRQIuIZd8W6EpkU="}],"size":64093,"noattachment":false,"key":"/dagre-d3-es/-/dagre-d3-es-7.0.14.tgz"},"_npmUser":{"name":"teebo47","email":"thibaut.lassalle@gmail.com"},"directories":{},"maintainers":[{"name":"teebo47","email":"thibaut.lassalle@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dagre-d3-es_7.0.14_1764778962275_0.3912111921391095"},"_hasShrinkwrap":false,"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":1764778962483,"_cnpm_publish_time":1764778962483,"dist-tags":{"latest":"7.0.14"}}