An infinite board of live pages

A zoomable, pannable canvas where every tile is a working document: notes you can type in, a to-do list, a spreadsheet, a sketch pad, and other pages of this site running in iframes. One drawElementImage() per tile under a zoom transform. The text is re-rasterised at every zoom level, and clicks, focus and typing go to the elements.

Show the code a zoomable board of live tiles
  1. One drawable canvas. The tiles are added to it by script.
  2. Each tile is an element appended to the canvas. A note is a contenteditable, a page is an <iframe>.
  3. Paint: one drawElementImage() per tile, under the camera transform. cam.k is the zoom. Text is drawn again at that zoom, so it stays sharp, and the element's hit box follows the draw. A tile that isn't drawn is parked off stage with updateElementGeometry() so it can't be clicked.
  4. The whole script, with panning, pinch zoom and the minimap.

Drag the background or scroll to pan. Ctrl + wheel or pinch to zoom. Double-click the background for a new note. Drag a tile by its title bar, resize from its corner. Page tiles wake up when you click them; Escape hands the wheel back to the board.

Live checks

ResultExperimentDetail

Findings