Select the types of activity you want to include in your feed.
[READ-ONLY] Mirror of https://github.com/flo-bit/jazz-endless-canvas. infinite multiplayer drawing canvas in the browser, jazz, svelte, paper.js
flo-bit.dev/jazz-endless-canvas/
···7373 let furthestCell = '';
74747575 let pathCount = 0;
7676+ let segmentCount = 0;
7677 let loadedCells = 0;
77787879 let painters = new Set();
···103104 console.log('error loading cell', cell);
104105 continue;
105106 }
106106-107107+107108 loadedCells++;
108109 pathCount += paths.length;
109110110111 for (let path of paths) {
111112 painters.add(path._edits.segments?.by?.profile?.id);
113113+ segmentCount += (path.segments?.length ?? 0) * 2;
112114 }
113115114116 console.log(num + '/' + Object.keys(loadedPainting.cells).length);
···120122 console.log('loaded cells', loadedCells, 'of', Object.keys(loadedPainting.cells).length);
121123122124 console.log('path count', pathCount);
125125+ console.log('segment count', segmentCount);
123126 console.log('painters', painters.size);
124127 }
125128···148151149152 <ul>
150153 <li>
151151- Move around by selecting the "move" tool and dragging the canvas around (or use w, a, s, d)
154154+ Move around by selecting the "move" tool and dragging the canvas around (or use w, a, s, d) (or while painting, shift + drag or drag with two fingers)
152155 </li>
153156 <li>
154157 Select the "paint" tool to draw on the canvas (you can also change the color and stroke
155158 width)
156159 </li>
160160+157161 <li>Zoom with + and - or pinch on mobile</li>
158162 <li>Send this website to your friends to draw together</li>
159163 </ul>