Skip to content

Commit c9eab3b

Browse files
aboydnwcursoragent
andcommitted
Merge remove-center-node into fix-scroll
Co-authored-by: Cursor <cursoragent@cursor.com>
2 parents 32d1df5 + 1a22ae2 commit c9eab3b

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

js/chart.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,6 @@ const createContributorNetworkVisual = (
348348
// Initialize filters to show all
349349
applyFilters();
350350

351-
// contributors, repos, links are now set by applyFilters
352-
353351
// Prepare data using extracted module
354352
const prepared = prepareData(
355353
{
@@ -616,7 +614,7 @@ const createContributorNetworkVisual = (
616614
SF = state.SF;
617615
nodes_delaunay = state.nodes_delaunay;
618616
delaunay = state.delaunay;
619-
617+
620618
// Debug: Log after resize
621619
console.log('chart.resize() completed', { WIDTH, HEIGHT, SF, nodesCount: nodes.length });
622620
}; //function resize
@@ -721,6 +719,7 @@ const createContributorNetworkVisual = (
721719
/////////////////////////////////////////////////////////////////
722720
// Extracted to src/js/simulations/collaborationSimulation.js
723721

722+
724723
/////////////////////////////////////////////////////////////////
725724
///////////////////// Node Drawing Functions ////////////////////
726725
/////////////////////////////////////////////////////////////////

js/data/prepare.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export function prepareData(data, config, scales) {
111111
const {
112112
contributors,
113113
repos,
114-
links,
114+
links
115115
} = data;
116116

117117
const {
@@ -132,7 +132,7 @@ export function prepareData(data, config, scales) {
132132
const {
133133
scale_repo_radius,
134134
scale_contributor_radius,
135-
scale_link_width,
135+
scale_link_width
136136
} = scales;
137137

138138
// Create date formatters

js/interaction/click.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export function setupClick(options) {
5252
if (options.zoomState && shouldSuppressClick(options.zoomState, options.ZOOM_CLICK_SUPPRESS_MS)) {
5353
return;
5454
}
55-
55+
5656
// Get the position of the mouse on the canvas
5757
let [mx, my] = d3.pointer(event, this);
5858
const zoomTransform = options.zoomState?.zoomTransform || null;

0 commit comments

Comments
 (0)