Skip to content

Commit

Permalink
fix: remove old version @antv/util to reduce size (#27)
Browse files Browse the repository at this point in the history
* fix: remove old version @antv/util to reduce size

* chore: 0.6.12
  • Loading branch information
hustcc authored May 13, 2024
1 parent 0e9e4dd commit a62157f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/hierarchy",
"version": "0.6.11",
"version": "0.6.12",
"description": "layout algorithms for visualizing hierarchical data",
"main": "build/hierarchy.js",
"browser": "build/hierarchy.js",
Expand Down Expand Up @@ -34,7 +34,6 @@
"silent": false
},
"dependencies": {
"@antv/util": "^2.0.7"
},
"devDependencies": {
"@babel/cli": "^7.0.0",
Expand Down
4 changes: 1 addition & 3 deletions src/util.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
const { mix } = require('@antv/util');

/**
* Get average height or height for node's position calculation, according to align.
* @param {*} preNode previous node
Expand All @@ -13,6 +11,6 @@ function getHeight(preNode, node, align, heightField = 'height') {
}

module.exports = {
assign: mix,
assign: Object.assign,
getHeight
};

0 comments on commit a62157f

Please sign in to comment.