~/talk

Excalidraw: Cool JS Tricks Behind the Scenes

Talkat ReactEurope 2020 · 2020-05-14..05-15· [javascript]
slides:none on file

Excalidraw is a hand‑drawn diagram editor that ships concrete tricks: lines use rough points at 50% and 75% plus repeated bezier passes to fake sketchiness, circles link last point to the second to get worn edges, and randomness is made stable with a seeded randomness per scene so renders stay identical. Backend supports share links via URL hashes and client side Web Crypto keys for end-to-end encrypted scene blobs. Live collaboration, 80+ contributors, and a usage jump to ~12,000 weekly users validate it; canvas caching cuts redraws from ~30 ms to ~3 ms.

AI-written summary · about

  1. 0:00Start
  2. 9:18Usability
  3. 19:38Random Generator
  4. 21:47End-to-End Encryption
  5. 23:16The Live Collaboration
  6. 27:40Rendering
  7. 29:20Canvas
  8. 30:33Adding a Caching Layer
  9. 35:58Is There a Way to Group Shapes and Resize Them Together
  10. 36:53Layout Dependencies
  11. 38:58Share Shapes
  12. 39:50Using Webgl
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.