{"id":16610146,"url":"https://github.com/SandroMaglione/infinite-html-canvas","last_synced_at":"2025-10-29T17:30:52.973Z","repository":{"id":180988042,"uuid":"664480543","full_name":"SandroMaglione/infinite-html-canvas","owner":"SandroMaglione","description":"Infinite HTML \u003ccanvas\u003e that can be zoomed and panned using touch on mobile 🤏","archived":false,"fork":false,"pushed_at":"2024-07-24T06:35:05.000Z","size":13,"stargazers_count":43,"open_issues_count":0,"forks_count":11,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-01T08:41:30.548Z","etag":null,"topics":["canvas","typescript"],"latest_commit_sha":null,"homepage":"https://www.sandromaglione.com/techblog/infinite-canvas-html-with-zoom-and-pan","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SandroMaglione.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-10T04:34:52.000Z","updated_at":"2025-01-08T15:00:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"c0453778-e115-446e-aa7b-8b64c486f116","html_url":"https://github.com/SandroMaglione/infinite-html-canvas","commit_stats":null,"previous_names":["sandromaglione/infinite-html-canvas"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SandroMaglione%2Finfinite-html-canvas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SandroMaglione%2Finfinite-html-canvas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SandroMaglione%2Finfinite-html-canvas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SandroMaglione%2Finfinite-html-canvas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SandroMaglione","download_url":"https://codeload.github.com/SandroMaglione/infinite-html-canvas/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238856084,"owners_count":19542141,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["canvas","typescript"],"created_at":"2024-10-12T01:29:29.245Z","updated_at":"2025-10-29T17:30:52.639Z","avatar_url":"https://github.com/SandroMaglione.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# `Infinite HTML \u003ccanvas\u003e`\n\u003cp\u003e\n  \u003ca href=\"https://github.com/SandroMaglione\"\u003e\n    \u003cimg alt=\"GitHub: SandroMaglione\" src=\"https://img.shields.io/github/followers/SandroMaglione?label=Follow\u0026style=social\" target=\"_blank\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://twitter.com/SandroMaglione\"\u003e\n    \u003cimg alt=\"Twitter: SandroMaglione\" src=\"https://img.shields.io/twitter/follow/SandroMaglione.svg?style=social\" target=\"_blank\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\nThis repository contains a **Typescript implementation of an infinite HTML** `\u003ccanvas\u003e`.\n\nThis is the same effect that many whiteboard and diagram apps use to achieve a simulated infinite canvas. These apps simulate an infinite amount of space by **using math to update the coordinates of the canvas content**.\n\nYou can read a [**step by step explanation on the blog post**](https://www.sandromaglione.com/articles/infinite-canvas-html-with-zoom-and-pan).\n\n### 💻 Code\nThe complete logic is implemented inside the `InfiniteCanvas` class ([`infinite-canvas.ts`](./src/infinite-canvas.ts)).\n\n[`main.ts`](./src/main.ts) contains an example of how to use the `InfiniteCanvas` class in a simple [Vite project](https://vitejs.dev/).\n\n## 😀 Support\nHi, I am Sandro 👋\n\nYou can follow me on my [**Twitter**](https://twitter.com/SandroMaglione) for more updates on my projects and interests.\n\nI also have a newsletter, in which I share tutorials, guides, and code snippets: [**Subscribe to the Newsletter here** 📧](https://www.sandromaglione.com/newsletter)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSandroMaglione%2Finfinite-html-canvas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSandroMaglione%2Finfinite-html-canvas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSandroMaglione%2Finfinite-html-canvas/lists"}