Skip to content

Commit

Permalink
improved follow
Browse files Browse the repository at this point in the history
  • Loading branch information
tbenr committed Aug 30, 2022
1 parent a022b06 commit 047a830
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "proto-vis",
"version": "0.1.0",
"version": "0.1.1",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.16.5",
Expand Down
2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "proto-vis-server",
"version": "0.1.0",
"version": "0.1.1",
"description": "",
"main": "server.js",
"private": true,
Expand Down
7 changes: 4 additions & 3 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ type IdToNetworkNode = {
const DEFAULT_NODE_SIZE_MODE: NodeSizeMode = NodeSizeMode.rootToHeadsCumulated
const DEFAULT_SOURCE_TYPE: SourceType = SourceType.teku
const DEFAULT_DRAW_MISSING_SLOT_NODES: boolean = true
const DEFAULT_PHYSICS: boolean = false
const DEFAULT_PHYSICS: boolean = true

type ForckchoiceDump = {
timestamp: moment.Moment
Expand Down Expand Up @@ -447,8 +447,9 @@ function App() {

const handleCanonicalHead = useCallback(() => {
if (heads.length === 0) return
network.fit({
nodes: [heads[0].id],
network.moveTo({
position: network.getPosition(heads[0].id),
offset: { x: SLOT_WIDTH * 3, y: 0 },
animation: true
})
setheadIdx(0)
Expand Down

0 comments on commit 047a830

Please sign in to comment.