markmap-view+0.18.10.patch 634 B

12345678910111213
  1. diff --git a/node_modules/markmap-view/dist/index.js b/node_modules/markmap-view/dist/index.js
  2. index e28a29f..7d2d6e2 100644
  3. --- a/node_modules/markmap-view/dist/index.js
  4. +++ b/node_modules/markmap-view/dist/index.js
  5. @@ -565,7 +565,7 @@ class it {
  6. if (!((h = l.payload) != null && h.fold)) return l.children;
  7. }).nodeSize((l) => {
  8. const [h, d] = l.data.state.size;
  9. - return [d, h + (h ? i * 2 : 0) + n];
  10. + return [d, h + (h + 20 ? i * 2 + 20 : 0) + n];
  11. }).spacing((l, h) => (l.parent === h.parent ? s : s * 2) + t(l.data)), c = a.hierarchy(this.state.data);
  12. a(c);
  13. const o = c.descendants();