Skip to content

Commit

Permalink
Merge pull request #455 from kiva/kiva-treemap-fork
Browse files Browse the repository at this point in the history
feat: use kiva fork of treemap repo
  • Loading branch information
dyersituations authored Sep 4, 2024
2 parents f2d768c + 50cc510 commit 30f8227
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion @kiva/kv-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"nanoid": "^3.1.23",
"numeral": "^2.0.6",
"popper.js": "^1.16.1",
"treemap-squarify": "^1.0.1",
"treemap-squarify": "github:kiva/treemap",
"vue-demi": "^0.14.7"
},
"peerDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions @kiva/kv-components/vue/KvTreeMapChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

<script>
import numeral from 'numeral';
import treemap from 'treemap-squarify';
import { getTreemap } from 'treemap-squarify';
import kvTokensPrimitives from '@kiva/kv-tokens/primitives.json';
import { throttle } from '../utils/throttle';
import KvTooltip from './KvTooltip.vue';
Expand Down Expand Up @@ -100,7 +100,7 @@ export default {
}
// Calculate treemap blocks using canvas size 100x100 to easily translate to percentages
const blocks = treemap.getTreemap({
const blocks = getTreemap({
data: this.values,
width: 100,
height: 100,
Expand Down
12 changes: 5 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 30f8227

Please sign in to comment.