diff --git a/.gitignore b/.gitignore index 7b44db5..7b7fdae 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,12 @@ src-tauri/gen/ .env .env.* !.env.example + +# Dev-session scratch (root-only — leaves src-tauri/icons/*.png alone) +/dev.log +/dev.err +/screenshot.png +/screen*.png +/shot*.png +/tiletopia-window.png +/tilescript.ps1 diff --git a/dev.err b/dev.err deleted file mode 100644 index e69de29..0000000 diff --git a/dev.log b/dev.log deleted file mode 100644 index 7b1004b..0000000 Binary files a/dev.log and /dev/null differ diff --git a/screen0.png b/screen0.png deleted file mode 100644 index fea7f3a..0000000 Binary files a/screen0.png and /dev/null differ diff --git a/screen1.png b/screen1.png deleted file mode 100644 index ae7cb3d..0000000 Binary files a/screen1.png and /dev/null differ diff --git a/screen2.png b/screen2.png deleted file mode 100644 index 231713f..0000000 Binary files a/screen2.png and /dev/null differ diff --git a/screenshot.png b/screenshot.png deleted file mode 100644 index 8cb1407..0000000 Binary files a/screenshot.png and /dev/null differ diff --git a/shot01-initial.png b/shot01-initial.png deleted file mode 100644 index 2c25112..0000000 Binary files a/shot01-initial.png and /dev/null differ diff --git a/shot02-clicked-pane1.png b/shot02-clicked-pane1.png deleted file mode 100644 index 53dbd4c..0000000 Binary files a/shot02-clicked-pane1.png and /dev/null differ diff --git a/shot03-f12.png b/shot03-f12.png deleted file mode 100644 index 0d5fa5d..0000000 Binary files a/shot03-f12.png and /dev/null differ diff --git a/shot04-clicked-pane2-immediate.png b/shot04-clicked-pane2-immediate.png deleted file mode 100644 index b4eb8c1..0000000 Binary files a/shot04-clicked-pane2-immediate.png and /dev/null differ diff --git a/shot05-clicked-pane2-after-1s.png b/shot05-clicked-pane2-after-1s.png deleted file mode 100644 index 2169fee..0000000 Binary files a/shot05-clicked-pane2-after-1s.png and /dev/null differ diff --git a/shot06-clicked-pane2-toolbar.png b/shot06-clicked-pane2-toolbar.png deleted file mode 100644 index 6e55917..0000000 Binary files a/shot06-clicked-pane2-toolbar.png and /dev/null differ diff --git a/shot07-devtools-attempt.png b/shot07-devtools-attempt.png deleted file mode 100644 index ad24d21..0000000 Binary files a/shot07-devtools-attempt.png and /dev/null differ diff --git a/shot08-after-hmr.png b/shot08-after-hmr.png deleted file mode 100644 index 25200ee..0000000 Binary files a/shot08-after-hmr.png and /dev/null differ diff --git a/shot09-after-reload.png b/shot09-after-reload.png deleted file mode 100644 index a21a0dc..0000000 Binary files a/shot09-after-reload.png and /dev/null differ diff --git a/shot10-after-restart.png b/shot10-after-restart.png deleted file mode 100644 index 6d11cfb..0000000 Binary files a/shot10-after-restart.png and /dev/null differ diff --git a/shot11-clicked-pane2-toolbar.png b/shot11-clicked-pane2-toolbar.png deleted file mode 100644 index ece890d..0000000 Binary files a/shot11-clicked-pane2-toolbar.png and /dev/null differ diff --git a/shot12-clicked-bcast.png b/shot12-clicked-bcast.png deleted file mode 100644 index bb54e63..0000000 Binary files a/shot12-clicked-bcast.png and /dev/null differ diff --git a/shot13-back-to-pane1.png b/shot13-back-to-pane1.png deleted file mode 100644 index e4ef8aa..0000000 Binary files a/shot13-back-to-pane1.png and /dev/null differ diff --git a/shot14-pane1-bcast.png b/shot14-pane1-bcast.png deleted file mode 100644 index bdcad6a..0000000 Binary files a/shot14-pane1-bcast.png and /dev/null differ diff --git a/shot15-palette.png b/shot15-palette.png deleted file mode 100644 index 24c9e02..0000000 Binary files a/shot15-palette.png and /dev/null differ diff --git a/shot16-pane1-body.png b/shot16-pane1-body.png deleted file mode 100644 index b3c9271..0000000 Binary files a/shot16-pane1-body.png and /dev/null differ diff --git a/shot17-capture-fix-test.png b/shot17-capture-fix-test.png deleted file mode 100644 index 417ad6a..0000000 Binary files a/shot17-capture-fix-test.png and /dev/null differ diff --git a/shot18-restart.png b/shot18-restart.png deleted file mode 100644 index 9a6d097..0000000 Binary files a/shot18-restart.png and /dev/null differ diff --git a/shot19-pane1-body-after-capture.png b/shot19-pane1-body-after-capture.png deleted file mode 100644 index accb99d..0000000 Binary files a/shot19-pane1-body-after-capture.png and /dev/null differ diff --git a/shot20-pane2-body.png b/shot20-pane2-body.png deleted file mode 100644 index 5296095..0000000 Binary files a/shot20-pane2-body.png and /dev/null differ diff --git a/shot21-baseline.png b/shot21-baseline.png deleted file mode 100644 index b09833c..0000000 Binary files a/shot21-baseline.png and /dev/null differ diff --git a/shot22-pane1-body.png b/shot22-pane1-body.png deleted file mode 100644 index 22d4b9b..0000000 Binary files a/shot22-pane1-body.png and /dev/null differ diff --git a/shot23-pane2-body.png b/shot23-pane2-body.png deleted file mode 100644 index 22d4b9b..0000000 Binary files a/shot23-pane2-body.png and /dev/null differ diff --git a/shot24-pane1-again.png b/shot24-pane1-again.png deleted file mode 100644 index 9ed4d76..0000000 Binary files a/shot24-pane1-again.png and /dev/null differ diff --git a/shot25-slow-pane2.png b/shot25-slow-pane2.png deleted file mode 100644 index e62b5cc..0000000 Binary files a/shot25-slow-pane2.png and /dev/null differ diff --git a/shot26-slow-pane1.png b/shot26-slow-pane1.png deleted file mode 100644 index 136ed43..0000000 Binary files a/shot26-slow-pane1.png and /dev/null differ diff --git a/shot27-slow-pane2-again.png b/shot27-slow-pane2-again.png deleted file mode 100644 index 45e9025..0000000 Binary files a/shot27-slow-pane2-again.png and /dev/null differ diff --git a/shot28-fresh.png b/shot28-fresh.png deleted file mode 100644 index 4380aec..0000000 Binary files a/shot28-fresh.png and /dev/null differ diff --git a/shot29-click1.png b/shot29-click1.png deleted file mode 100644 index c3f9f62..0000000 Binary files a/shot29-click1.png and /dev/null differ diff --git a/shot30-click2.png b/shot30-click2.png deleted file mode 100644 index c3f9f62..0000000 Binary files a/shot30-click2.png and /dev/null differ diff --git a/shot31-click3.png b/shot31-click3.png deleted file mode 100644 index acaf5cd..0000000 Binary files a/shot31-click3.png and /dev/null differ diff --git a/tilescript.ps1 b/tilescript.ps1 deleted file mode 100644 index 30dc31f..0000000 --- a/tilescript.ps1 +++ /dev/null @@ -1,60 +0,0 @@ -# Helpers for driving the tiletopia window from PowerShell. -Add-Type -AssemblyName System.Windows.Forms -Add-Type -AssemblyName System.Drawing -Add-Type @' -using System; -using System.Runtime.InteropServices; -public class W { - [DllImport("user32.dll")] public static extern bool GetWindowRect(IntPtr h, out RECT r); - [DllImport("user32.dll")] public static extern bool SetForegroundWindow(IntPtr h); - [DllImport("user32.dll")] public static extern bool ShowWindow(IntPtr h, int n); - [DllImport("user32.dll")] public static extern bool SetCursorPos(int x, int y); - [DllImport("user32.dll")] public static extern void mouse_event(uint flags, uint dx, uint dy, uint dwData, int extraInfo); - [StructLayout(LayoutKind.Sequential)] public struct RECT { public int Left, Top, Right, Bottom; } -} -'@ - -function Get-TileWindow { - $p = Get-Process tiletopia -ErrorAction Stop | Where-Object { $_.MainWindowHandle -ne 0 } | Select-Object -First 1 - if (-not $p) { throw "no tiletopia window" } - return $p -} - -function Bring-ToFront { - $p = Get-TileWindow - [W]::ShowWindow($p.MainWindowHandle, 9) | Out-Null # SW_RESTORE - [W]::SetForegroundWindow($p.MainWindowHandle) | Out-Null - Start-Sleep -Milliseconds 300 - $r = New-Object W+RECT - [W]::GetWindowRect($p.MainWindowHandle, [ref] $r) | Out-Null - return $r -} - -function Save-Shot([string]$path) { - $r = Bring-ToFront - $w = $r.Right - $r.Left - $h = $r.Bottom - $r.Top - $bmp = New-Object System.Drawing.Bitmap $w, $h - $g = [System.Drawing.Graphics]::FromImage($bmp) - $g.CopyFromScreen($r.Left, $r.Top, 0, 0, (New-Object System.Drawing.Size $w, $h)) - $bmp.Save($path) - $g.Dispose() - $bmp.Dispose() - Write-Host ("saved " + $path + " (" + $w + "x" + $h + " at " + $r.Left + "," + $r.Top + ")") - return @{ x = $r.Left; y = $r.Top; w = $w; h = $h } -} - -# Click at *window-relative* coordinates (so we don't depend on the window's -# screen position from one run to the next). -function Click-Win([int]$relX, [int]$relY) { - $r = Bring-ToFront - $absX = $r.Left + $relX - $absY = $r.Top + $relY - [W]::SetCursorPos($absX, $absY) | Out-Null - Start-Sleep -Milliseconds 80 - [W]::mouse_event(0x0002, 0, 0, 0, 0) # LEFTDOWN - Start-Sleep -Milliseconds 30 - [W]::mouse_event(0x0004, 0, 0, 0, 0) # LEFTUP - Start-Sleep -Milliseconds 120 - Write-Host ("clicked window-rel " + $relX + "," + $relY + " (abs " + $absX + "," + $absY + ")") -} diff --git a/tiletopia-window.png b/tiletopia-window.png deleted file mode 100644 index ec79603..0000000 Binary files a/tiletopia-window.png and /dev/null differ