Skip to content

Commit

Permalink
Fix title text
Browse files Browse the repository at this point in the history
  • Loading branch information
onlyskin committed Mar 8, 2024
1 parent d2b6317 commit 82c8cdb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions css/pokemon-types-d3.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@ svg circle:hover {

#focused-text {
font-family: 'Open Sans Condensed', sans-serif;
font-size: 5vw;
text-anchor: middle;
alignment-baseline: middle;
user-select: none;
}

#title-text {
font-family: 'Open Sans Condensed', sans-serif;
font-size: 4vw;
text-anchor: middle;
alignment-baseline: middle;
user-select: none;
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ const Visualisation: m.ClosureComponent<VisualisationAttrs> = function({attrs: {
version: '1',
xmlns: 'http://www.w3.org/2000/svg',
},
m('text#title-text', {}, ''),
m('text#title-text.f5', {}, ''),
m('text#focused-text.f3.small-caps', {}, ''),
),
}
Expand Down
2 changes: 1 addition & 1 deletion src/simulation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function forceSimulation(): d3.Simulation<INode, undefined> {
.force("collision", collisionForce)
.force("x", d3.forceX<INode>(d => d.direction === 'from' ? 0.2 : 0.8)
.strength(1.2))
.force("y", d3.forceY(0.5).strength(0.08))
.force("y", d3.forceY(0.6).strength(0.08))
.force("bounds", boxingForce)
.stop();
}
Expand Down

0 comments on commit 82c8cdb

Please sign in to comment.