add loading state to LibraryList
This commit is contained in:
@@ -96,10 +96,10 @@ export default {
|
||||
const radius = window.innerWidth < 769 ? 700 / 1.5 : 700
|
||||
this.$store.dispatch('INIT_LIBRARY_MAP').then(nodes => {
|
||||
this.nodes = nodes.map((node, i) => {
|
||||
return { x: i, rotate: randomUniform(-25, 25)(), data: node }
|
||||
return { x: 0, rotate: randomUniform(-25, 25)(), data: node }
|
||||
})
|
||||
this.simulation.nodes(this.nodes)
|
||||
.force('attract', forceManyBody().strength(10))
|
||||
.force('attract', forceManyBody())
|
||||
.force('collision', forceCollide().radius(radius / 2))
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user