Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasdavis committed Dec 19, 2024
1 parent 77a7850 commit e449def
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions apps/registry/app/job-similarity/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -718,9 +718,7 @@ const GraphContainer = ({ dataSource, algorithm }) => {
const limit = isLocal ? 300 : 1500;

const response = await fetch(
`/api/${
dataSource === 'jobs' ? 'job-' : ''
}similarity?limit=${limit}`
`/api/${dataSource === 'jobs' ? 'job-' : ''}similarity?limit=${limit}`
);
if (!response.ok) {
throw new Error('Failed to fetch data');
Expand Down Expand Up @@ -813,8 +811,8 @@ const GraphContainer = ({ dataSource, algorithm }) => {
const fontSize = Math.max(14, node.size * 1.5);
ctx.font = `${fontSize}px Sans-Serif`;
const textWidth = ctx.measureText(label).width;
const bckgDimensions = [textWidth, fontSize].map((n) =>
n + fontSize * 0.2
const bckgDimensions = [textWidth, fontSize].map(
(n) => n + fontSize * 0.2
);

// Draw background for label
Expand Down

0 comments on commit e449def

Please sign in to comment.