{"versions":{"0.2.0":{"name":"@mermaid-js/layout-tidy-tree","version":"0.2.0","description":"Tidy-tree layout engine for mermaid","module":"dist/mermaid-layout-tidy-tree.core.mjs","types":"dist/layouts.d.ts","type":"module","exports":{".":{"import":"./dist/mermaid-layout-tidy-tree.core.mjs","types":"./dist/layouts.d.ts"},"./":"./"},"keywords":["diagram","markdown","tidy-tree","mermaid","layout"],"repository":{"type":"git","url":"git+https://github.com/mermaid-js/mermaid.git"},"contributors":[{"name":"Knut Sveidqvist"},{"name":"Sidharth Vinod"}],"license":"MIT","dependencies":{"d3":"^7.9.0","non-layered-tidy-tree-layout":"^2.0.2"},"devDependencies":{"@types/d3":"^7.4.3","mermaid":"^11.11.0"},"peerDependencies":{"mermaid":"^11.0.2"},"scripts":{},"_id":"@mermaid-js/layout-tidy-tree@0.2.0","bugs":{"url":"https://github.com/mermaid-js/mermaid/issues"},"homepage":"https://github.com/mermaid-js/mermaid#readme","_integrity":"sha512-0bZFuMQKgpW16cQ4MlUkLTi8l4UUz1pQ0tokGAuR/uVSo2BYvixYBPGxYm13fyQ5M/UUSjUQQ0Zo2nrWUKPwSA==","_resolved":"/tmp/0265aa4e7534d95efeadf53979c274df/mermaid-js-layout-tidy-tree-0.2.0.tgz","_from":"file:mermaid-js-layout-tidy-tree-0.2.0.tgz","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-0bZFuMQKgpW16cQ4MlUkLTi8l4UUz1pQ0tokGAuR/uVSo2BYvixYBPGxYm13fyQ5M/UUSjUQQ0Zo2nrWUKPwSA==","shasum":"b35b7bd048d79798b8c5c4071383dae376d317fb","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@mermaid-js/layout-tidy-tree/-/layout-tidy-tree-0.2.0.tgz","fileCount":27,"unpackedSize":217707,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@mermaid-js%2flayout-tidy-tree@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHbAHn7uxu59z550UB6XxND0aUgpaPfgHepLrYNhmsZEAiBERKJcx2MdlriaW2WNOTGMns/YRWV+cMpwts/iG3ChGw=="}],"size":50555},"_npmUser":{"name":"anonymous","email":"npmjs@sidharth.dev"},"directories":{},"maintainers":[{"name":"anonymous","email":"knsv@sveido.com"},{"name":"anonymous","email":"mindaugas.laganeckas@gmail.com"},{"name":"anonymous","email":"ashishjain0512@gmail.com"},{"name":"anonymous","email":"npmjs@sidharth.dev"},{"name":"anonymous","email":"alois@aloisklink.com"},{"name":"anonymous","email":"per@mermaidchart.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/layout-tidy-tree_0.2.0_1756998486010_0.4917203336991449"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-09-04T15:08:06.270Z","publish_time":1756998486270,"_source_registry_name":"default"},"0.2.1":{"name":"@mermaid-js/layout-tidy-tree","version":"0.2.1","description":"Tidy-tree layout engine for mermaid","module":"dist/mermaid-layout-tidy-tree.core.mjs","types":"dist/layouts.d.ts","type":"module","exports":{".":{"import":"./dist/mermaid-layout-tidy-tree.core.mjs","types":"./dist/layouts.d.ts"},"./":"./"},"keywords":["diagram","markdown","tidy-tree","mermaid","layout"],"repository":{"type":"git","url":"git+https://github.com/mermaid-js/mermaid.git"},"contributors":[{"name":"Knut Sveidqvist"},{"name":"Sidharth Vinod"}],"license":"MIT","dependencies":{"d3":"^7.9.0"},"devDependencies":{"@types/d3":"^7.4.3","non-layered-tidy-tree-layout":"^2.0.2","mermaid":"^11.12.2"},"peerDependencies":{"mermaid":"^11.0.2"},"scripts":{},"_id":"@mermaid-js/layout-tidy-tree@0.2.1","bugs":{"url":"https://github.com/mermaid-js/mermaid/issues"},"homepage":"https://github.com/mermaid-js/mermaid#readme","_integrity":"sha512-LZFmu6SZmAR5N/aesR7ya5JwEjCrGh7J64n7vFmHqVDHDJjIx+LsEi0dmt0WTYbP4wdKFLLykpvRsemRgAnLXA==","_resolved":"/tmp/034b1a0fc86c1b546dd357e341c71f69/mermaid-js-layout-tidy-tree-0.2.1.tgz","_from":"file:mermaid-js-layout-tidy-tree-0.2.1.tgz","_nodeVersion":"22.14.0","_npmVersion":"11.8.0","dist":{"integrity":"sha512-LZFmu6SZmAR5N/aesR7ya5JwEjCrGh7J64n7vFmHqVDHDJjIx+LsEi0dmt0WTYbP4wdKFLLykpvRsemRgAnLXA==","shasum":"4d43c2701fad38c709df3d898ae7594074856590","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@mermaid-js/layout-tidy-tree/-/layout-tidy-tree-0.2.1.tgz","fileCount":27,"unpackedSize":241283,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@mermaid-js%2flayout-tidy-tree@0.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEHQVl3jgqc9B9d92GD6J/X9xh2aRI1STsHRX3Q3pvKKAiEA/ChCFWbsY36+55UkHt5wTkWCaU1ezoeA2546rnjSqCk="}],"size":54457},"_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:c650c708-dc2e-45d6-876a-8cb25abe82d0"}},"directories":{},"maintainers":[{"name":"anonymous","email":"knsv@sveido.com"},{"name":"anonymous","email":"mindaugas.laganeckas@gmail.com"},{"name":"anonymous","email":"ashishjain0512@gmail.com"},{"name":"anonymous","email":"npmjs@sidharth.dev"},{"name":"anonymous","email":"alois@aloisklink.com"},{"name":"anonymous","email":"per@mermaidchart.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/layout-tidy-tree_0.2.1_1769676576938_0.9180253908020235"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-01-29T08:49:37.122Z","publish_time":1769676577122,"_source_registry_name":"default"},"0.2.2":{"name":"@mermaid-js/layout-tidy-tree","version":"0.2.2","description":"Tidy-tree layout engine for mermaid","module":"dist/mermaid-layout-tidy-tree.core.mjs","types":"dist/layouts.d.ts","type":"module","exports":{".":{"import":"./dist/mermaid-layout-tidy-tree.core.mjs","types":"./dist/layouts.d.ts"},"./":"./"},"keywords":["diagram","markdown","tidy-tree","mermaid","layout"],"repository":{"type":"git","url":"git+https://github.com/mermaid-js/mermaid.git"},"contributors":[{"name":"Knut Sveidqvist"},{"name":"Sidharth Vinod"}],"license":"MIT","dependencies":{"d3":"^7.9.0"},"devDependencies":{"@types/d3":"^7.4.3","non-layered-tidy-tree-layout":"^2.0.2","mermaid":"^11.15.0"},"peerDependencies":{"mermaid":"^11.0.2"},"scripts":{"clean":"rimraf dist"},"_id":"@mermaid-js/layout-tidy-tree@0.2.2","bugs":{"url":"https://github.com/mermaid-js/mermaid/issues"},"homepage":"https://github.com/mermaid-js/mermaid#readme","_integrity":"sha512-8RmjDXjKJBxqTS1mICStm8zWRM45fSzs0SOrkp28+KsOGS2YEMFMVTwwRU8CsC6M1L+pDYZVjf1m9AC1c9Wndg==","_resolved":"/tmp/77c1801c6ecaeeeec3248eb1b31da2f9/mermaid-js-layout-tidy-tree-0.2.2.tgz","_from":"file:mermaid-js-layout-tidy-tree-0.2.2.tgz","_nodeVersion":"22.14.0","_npmVersion":"11.14.1","dist":{"integrity":"sha512-8RmjDXjKJBxqTS1mICStm8zWRM45fSzs0SOrkp28+KsOGS2YEMFMVTwwRU8CsC6M1L+pDYZVjf1m9AC1c9Wndg==","shasum":"cc3c60e3a5e8435c20a6a65994f6f681683b0f42","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@mermaid-js/layout-tidy-tree/-/layout-tidy-tree-0.2.2.tgz","fileCount":27,"unpackedSize":247602,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@mermaid-js%2flayout-tidy-tree@0.2.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDlWgz5OzbwpzX4xRjQbm17ihPYJSvgAdSBTramAEjf9gIgIYC8sykXqkGcVcDBoRCEt026MtymHUmXPqei8HgUq3Q="}],"size":60321},"_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:c650c708-dc2e-45d6-876a-8cb25abe82d0"}},"directories":{},"maintainers":[{"name":"anonymous","email":"knsv@sveido.com"},{"name":"anonymous","email":"mindaugas.laganeckas@gmail.com"},{"name":"anonymous","email":"ashishjain0512@gmail.com"},{"name":"anonymous","email":"npmjs@sidharth.dev"},{"name":"anonymous","email":"alois@aloisklink.com"},{"name":"anonymous","email":"per@mermaidchart.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/layout-tidy-tree_0.2.2_1778496727886_0.5258584474641588"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-05-11T10:52:08.038Z","publish_time":1778496728038,"_source_registry_name":"default"},"1.0.0":{"name":"@mermaid-js/layout-tidy-tree","version":"1.0.0","description":"Tidy-tree layout engine for mermaid","module":"dist/mermaid-layout-tidy-tree.core.mjs","types":"dist/layouts.d.ts","type":"module","exports":{".":{"import":"./dist/mermaid-layout-tidy-tree.core.mjs","types":"./dist/layouts.d.ts"},"./":"./"},"keywords":["diagram","markdown","tidy-tree","mermaid","layout"],"repository":{"type":"git","url":"git+https://github.com/mermaid-js/mermaid.git"},"contributors":[{"name":"Knut Sveidqvist"},{"name":"Sidharth Vinod"}],"license":"MIT","engines":{"node":">=22.12.0"},"dependencies":{"d3":"^7.9.0"},"devDependencies":{"@types/d3":"^7.4.3","non-layered-tidy-tree-layout":"^2.0.2","mermaid":"^12.0.0"},"peerDependencies":{"mermaid":"^11.0.2"},"scripts":{"clean":"rimraf dist"},"_id":"@mermaid-js/layout-tidy-tree@1.0.0","bugs":{"url":"https://github.com/mermaid-js/mermaid/issues"},"homepage":"https://github.com/mermaid-js/mermaid#readme","_integrity":"sha512-oRAURF7kyxh1x9DaRtJLm+F6TkC8EMcNapjt1G61/DcVgNMmBRsoLevXCq1Ir6KuEro/czmHTUfGNPAcPJVV3w==","_resolved":"/tmp/ed727ea466cc7cff63a04caf6240a0b2/mermaid-js-layout-tidy-tree-1.0.0.tgz","_from":"file:mermaid-js-layout-tidy-tree-1.0.0.tgz","_nodeVersion":"24.16.0","_npmVersion":"11.19.1","dist":{"integrity":"sha512-oRAURF7kyxh1x9DaRtJLm+F6TkC8EMcNapjt1G61/DcVgNMmBRsoLevXCq1Ir6KuEro/czmHTUfGNPAcPJVV3w==","shasum":"fd579453d8cb4fceabb6616cbccd36bc01ef79c9","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@mermaid-js/layout-tidy-tree/-/layout-tidy-tree-1.0.0.tgz","fileCount":27,"unpackedSize":247645,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@mermaid-js%2flayout-tidy-tree@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCzwd/TA+8vnNpyrAeb+KGE2SvFndiRuYeRG1SSKU7zUQIgOrwDkezVPo99T8ZiKxE/GFRdw0Mb/cjK31dd7z9ABLo="}],"size":60336},"_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:c650c708-dc2e-45d6-876a-8cb25abe82d0"}},"directories":{},"maintainers":[{"name":"anonymous","email":"knsv@sveido.com"},{"name":"anonymous","email":"mindaugas.laganeckas@gmail.com"},{"name":"anonymous","email":"ashishjain0512@gmail.com"},{"name":"anonymous","email":"npmjs@sidharth.dev"},{"name":"anonymous","email":"alois@aloisklink.com"},{"name":"anonymous","email":"per@mermaidchart.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/layout-tidy-tree_1.0.0_1789025554432_0.8245850787240863"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-09-10T07:32:34.574Z","publish_time":1789025554574,"_source_registry_name":"default"},"1.0.1":{"_id":"@mermaid-js/layout-tidy-tree@1.0.1","bugs":{"url":"https://github.com/mermaid-js/mermaid/issues"},"dist":{"shasum":"93d1b895ccb91670b439abd759ddf346059f2da5","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@mermaid-js/layout-tidy-tree/-/layout-tidy-tree-1.0.1.tgz","fileCount":27,"integrity":"sha512-suZgFgQQHYuAxiEiNVgPJwOoXi/keXV6DghCL3rT4K9DmX7xYQ2XZI2suiBVs/fj1gn/OoXIWB2DFSmeY7trvw==","signatures":[{"sig":"MEUCICn83mmY3V62OwrWOt+CLYPaZ3fcvKqxL0/NcVMq0fT+AiEAhdRqtzV6/mH3njmVCDgZ9cQ/M47XJoksK2HL6FxSD7Y=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCpipxcihdQE5w6LuynqjsXRlUeIl50JWS2Qu2Iq7+g7gIhAPFFQRkLypJHA/oZqdRiwdf8d9aqBaVboOBduNr6Kr9B"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@mermaid-js%2flayout-tidy-tree@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":247656,"size":60341},"name":"@mermaid-js/layout-tidy-tree","type":"module","_from":"file:mermaid-js-layout-tidy-tree-1.0.1.tgz","types":"dist/layouts.d.ts","module":"dist/mermaid-layout-tidy-tree.core.mjs","engines":{"node":">=22.12.0"},"exports":{".":{"types":"./dist/layouts.d.ts","import":"./dist/mermaid-layout-tidy-tree.core.mjs"},"./":"./"},"license":"MIT","scripts":{"clean":"rimraf dist"},"version":"1.0.1","_npmUser":{"name":"anonymous","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:c650c708-dc2e-45d6-876a-8cb25abe82d0"}},"homepage":"https://github.com/mermaid-js/mermaid#readme","keywords":["diagram","markdown","tidy-tree","mermaid","layout"],"_resolved":"/tmp/b12cb50560732c57bc6d12164896c35b/mermaid-js-layout-tidy-tree-1.0.1.tgz","_integrity":"sha512-suZgFgQQHYuAxiEiNVgPJwOoXi/keXV6DghCL3rT4K9DmX7xYQ2XZI2suiBVs/fj1gn/OoXIWB2DFSmeY7trvw==","repository":{"url":"git+https://github.com/mermaid-js/mermaid.git","type":"git"},"_npmVersion":"11.19.1","description":"Tidy-tree layout engine for mermaid","directories":{},"maintainers":[{"name":"anonymous","email":"knsv@sveido.com"},{"name":"anonymous","email":"mindaugas.laganeckas@gmail.com"},{"name":"anonymous","email":"ashishjain0512@gmail.com"},{"name":"anonymous","email":"npmjs@sidharth.dev"},{"name":"anonymous","email":"alois@aloisklink.com"},{"name":"anonymous","email":"per@mermaidchart.com"}],"_nodeVersion":"24.16.0","contributors":[{"name":"Knut Sveidqvist"},{"name":"Sidharth Vinod"}],"dependencies":{"d3":"^7.9.0"},"_hasShrinkwrap":false,"devDependencies":{"mermaid":"^12.0.0","@types/d3":"^7.4.3","non-layered-tidy-tree-layout":"^2.0.2"},"peerDependencies":{"mermaid":"^11.0.2 || ^12.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/layout-tidy-tree_1.0.1_1789728271719_0.9041498173565661"},"_cnpmcore_publish_time":"2026-09-18T10:44:31.800Z","publish_time":1789728271800,"_source_registry_name":"default"}},"dist-tags":{"latest":"1.0.1"},"name":"@mermaid-js/layout-tidy-tree","time":{"created":"2025-09-04T15:08:15.548Z","modified":"2026-09-18T10:44:44.909Z","0.2.0":"2025-09-04T15:08:06.270Z","0.2.1":"2026-01-29T08:49:37.122Z","0.2.2":"2026-05-11T10:52:08.038Z","1.0.0":"2026-09-10T07:32:34.574Z","1.0.1":"2026-09-18T10:44:31.800Z"},"readme":"# @mermaid-js/layout-tidy-tree\n\nThis package provides a bidirectional tidy tree layout engine for Mermaid based on the non-layered-tidy-tree-layout algorithm.\n\n> [!NOTE]\n> The Tidy Tree Layout engine will not be available in all providers that support mermaid by default.\n> The websites will have to install the @mermaid-js/layout-tidy-tree package to use the Tidy Tree layout engine.\n\n## Usage\n\n```\n---\nconfig:\n  layout: tidy-tree\n---\nmindmap\nroot((mindmap))\n  A\n  B\n```\n\n### With bundlers\n\n```sh\nnpm install @mermaid-js/layout-tidy-tree\n```\n\n```ts\nimport mermaid from 'mermaid';\nimport tidyTreeLayouts from '@mermaid-js/layout-tidy-tree';\n\nmermaid.registerLayoutLoaders(tidyTreeLayouts);\n```\n\n### With CDN\n\n```html\n<script type=\"module\">\n  import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.esm.min.mjs';\n  import tidyTreeLayouts from 'https://cdn.jsdelivr.net/npm/@mermaid-js/layout-tidy-tree@0/dist/mermaid-layout-tidy-tree.esm.min.mjs';\n\n  mermaid.registerLayoutLoaders(tidyTreeLayouts);\n</script>\n```\n\n## Tidy Tree Layout Overview\n\ntidy-tree: The bidirectional tidy tree layout\n\nThe bidirectional tidy tree layout algorithm creates two separate trees that grow horizontally in opposite directions from a central root node:\nLeft tree: grows horizontally to the left (children alternate: 1st, 3rd, 5th...)\nRight tree: grows horizontally to the right (children alternate: 2nd, 4th, 6th...)\n\nThis creates a balanced, symmetric layout that is ideal for mindmaps, organizational charts, and other tree-based diagrams.\n\nLayout Structure:\n[Child 3] ← [Child 1] ← [Root] → [Child 2] → [Child 4]\n↓ ↓ ↓ ↓\n[GrandChild] [GrandChild] [GrandChild] [GrandChild]","users":{}}