depwire-cli 0.9.6 → 0.9.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -153,7 +153,13 @@ function startPlayback() {
153
153
  return;
154
154
  }
155
155
 
156
- console.log('Starting playback from index:', currentIndex);
156
+ // If we're at the last snapshot, start from the beginning
157
+ if (currentIndex >= temporalData.snapshots.length - 1) {
158
+ currentIndex = 0;
159
+ goToSnapshot(0);
160
+ }
161
+
162
+ console.log(`Temporal playback started: ${temporalData.snapshots.length} snapshots at ${playSpeed}x speed`);
157
163
  isPlaying = true;
158
164
  document.getElementById('playBtn').innerHTML = `
159
165
  <svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor">
@@ -270,13 +276,20 @@ function renderArcDiagram(snapshot) {
270
276
  const margin = { top: 60, right: 40, bottom: 120, left: 40 };
271
277
  const plotWidth = width - margin.left - margin.right;
272
278
  const plotHeight = height - margin.top - margin.bottom;
273
- const baseline = margin.top + plotHeight;
279
+ const baseline = margin.top + plotHeight; // Position baseline at consistent percentage
274
280
 
275
281
  const totalSymbols = d3.sum(snapshot.files, (d) => d.symbols);
276
282
  const minBarWidth = 4;
277
283
  const gap = 2;
278
284
 
279
- let x = margin.left;
285
+ // Calculate total width needed for all bars
286
+ const totalBarsWidth = snapshot.files.reduce((sum, file) => {
287
+ const barWidth = Math.max(minBarWidth, (file.symbols / totalSymbols) * plotWidth * 0.8);
288
+ return sum + barWidth + gap;
289
+ }, 0) - gap; // Remove last gap
290
+
291
+ // Center the bar group horizontally
292
+ let x = margin.left + (plotWidth - totalBarsWidth) / 2;
280
293
  filePositions.clear();
281
294
 
282
295
  snapshot.files.forEach((file) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "depwire-cli",
3
- "version": "0.9.6",
3
+ "version": "0.9.7",
4
4
  "description": "Code cross-reference visualization and AI context engine for TypeScript, JavaScript, Python, Go, Rust, and C. Zero native dependencies — works on Windows, macOS, and Linux.",
5
5
  "type": "module",
6
6
  "bin": {