A rewrite of MS Paint for Windows 95 in Angular
翻譯準備中
開發工具TypeScript · HTMLGitHub @jgosar自行安裝營運者未確認
試用過了嗎? 點一下就好,不需要登入。
尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
安裝型專案無需部署網域也可驗證。個人儲存庫可透過 GitHub 登入驗證,組織儲存庫可使用上方的儲存庫驗證檔案。
製作者的介紹僅有上面的一句話。 更多詳情請閱讀儲存庫 README。 儲存庫 README ↗
正在載入完整 README。
檢視完整 README ↗A rewrite of MS Paint for Windows 95 in Typescript and Angular
Screenshot:
Live version:
https://jgosar.github.io/ts-paint/
The project is still at an early stage of development, but the general roadmap is:
TS Paint is a Progressive Web App. Open the live version in a browser that supports installing web apps (Chrome, Edge, Safari) and use the browser's install option to add it to your desktop or home screen. Once installed it works offline, and new versions are picked up automatically the next time you launch it.
In Chromium-based browsers the installed app also registers as a handler for image files, so you can right-click a .png, .jpg, .gif, .bmp or .webp file and choose Open with TS Paint. Files opened this way (or via File > Open, or by dragging them into the window) are saved back in place with File > Save.
The UI always renders with a whole number of device pixels per CSS pixel. Fractional OS display scaling (such as 125% or 150% on Windows) is snapped to the nearest integer, so the Windows 95 look stays pixel-perfect on high-DPI screens. Browser zoom (Ctrl +/-) is snapped to integer steps as well.
On a touchscreen, one finger uses the selected tool like the left mouse button: it draws as it moves, and a tap is a click, so the fill and magnifier tools work with a single tap. Two fingers scroll the image and pinch to zoom in and out, one 2x step at a time; the point between the fingers stays where it is.
Everything below runs from the ts-paint directory.
Unit tests use Vitest in browser mode, running in a real Chromium (the app draws on canvases, which jsdom cannot do):
npm test # watch mode
npm run test:ci # single run with coverage
End-to-end and visual tests use Playwright against the production build:
npx playwright install --with-deps chromium # once
npm run test:e2e # functional tests, natively
npm run test:e2e:docker # functional + visual tests in the pinned Playwright Docker image
npm run test:e2e:update # regenerate the visual baselines (Docker only)
The visual baselines are exact-match screenshots generated only on Linux inside Docker; never commit snapshots taken on macOS or Windows. See ts-paint/e2e/README.md for the details and conventions. Every pull request runs lint, unit and e2e tests, and the GitHub Pages deploy only runs after they pass on master.
As a fun exercise, I have also implemented an extension for Google Chrome. It uses Manifest V3, so it works in current versions of Chrome. It adds the option 'Edit in TS Paint' to the context menu when you right-click on an image on any website, which loads the image into TS Paint in a new tab. To install the extension, follow these steps:
ts-paint\ts-paint-chrome-extension directory