Files
autodoc/.tmp-capture-test.js
Iisyourdad 382dbc9717 Capture hardening, editor blocks/shortcuts, handoff checklist
- capture.js: window-mode falls back to screen under WSLg; app window
  hides during capture (showInactive restore for hotkey path so focus
  is not stolen from the documented app); region capture hides too
- editor: Blocks panel (text/code/table block editors), focused-view
  zoom/pan sliders, capture context menu, paste-image step, share as
  .sfgz, apply-style-across step/guide, annotation copy/paste,
  tool-key shortcuts (s/r/o/l/a/t/g/n/b/h/m/u/c), PageUp/Down step nav,
  Ctrl+=/-/0 zoom, Ctrl+Delete step delete, Shift-arrow fast nudge
- prompt2.md: prescriptive handoff checklist for finishing remaining
  dialogs/topbar/IPC/polish work

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-10 22:01:20 -05:00

19 lines
687 B
JavaScript

// Probe desktopCapturer under WSLg: can we actually grab a screen?
const { app, desktopCapturer, screen } = require('electron');
app.whenReady().then(async () => {
try {
const display = screen.getPrimaryDisplay();
const sources = await desktopCapturer.getSources({
types: ['screen', 'window'],
thumbnailSize: { width: 800, height: 600 },
});
console.log('SOURCES:', sources.length);
for (const s of sources.slice(0, 5)) {
console.log(' -', s.id, JSON.stringify(s.name), 'empty:', s.thumbnail.isEmpty(), 'size:', JSON.stringify(s.thumbnail.getSize()));
}
} catch (err) {
console.log('CAPTURE-ERROR:', err.message);
}
app.quit();
});