Skip to content

Commit

Permalink
fix: fix issue with indent setting not working correctly in intended …
Browse files Browse the repository at this point in the history
…tree (#32)

* fix: fix issue with indent setting not working correctly in intended tree

* chore: update version
  • Loading branch information
yvonneyx authored Sep 20, 2024
1 parent d1446a9 commit d786901
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/hierarchy",
"version": "0.6.13",
"version": "0.6.14",
"description": "layout algorithms for visualizing hierarchical data",
"main": "build/hierarchy.js",
"browser": "build/hierarchy.js",
Expand Down
2 changes: 1 addition & 1 deletion src/layout/indented.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const util = require("../util");
function positionNode(node, previousNode, indent, dropCap, align) {
// caculate the node's horizontal offset DX, dx's type might be number or function
const displacementX =
typeof indent === "function" ? indent(node) : indent * node.depth;
(typeof indent === "function" ? indent(node) : indent) * node.depth;

if (!dropCap) {
try {
Expand Down

0 comments on commit d786901

Please sign in to comment.