Live data from Hacker News

Excalidraw whiteboard – easily sketch diagrams with a hand-drawn feel

github.com

51–56 of 56 posts

Re: Excalidraw whiteboard – easily sketch diagrams with a hand-drawn feel

#53

Cool! I found it a little unintuitive that after each stroke, it reset to the pointer tool. I would've expected to be able to draw more lines without pressing 'X' each time. Also, as a mathematician, I would love some Unicode support for greek letters and super/sub-scripts. Something similar to https://docs.julialang.org/en/v1/manual/unicode-input/ . I tried to just draw the text I wanted but the first point I brough…

there's also a lock icon that keeps the tool selected which i think is the behavior you want

Re: Excalidraw whiteboard – easily sketch diagrams with a hand-drawn feel

#54

Is there any API or method for pressure sensitive pens/tablets to work on the web? Or any native apps that support pressure and work with online apps? I love my Wacom and I love collaborative whiteboards, but it feels like neither is at its full potential.

PointerEvents: https://developer.mozilla.org/en-US/docs/Web/API/Pointer_eve...

They are pretty easy to use, but most online whiteboards don't bother. Perhaps the developers don't have suitable hardware?

The only pressure sensitive one I've seen is https://github.com/melvinroest/doodledocs, which is ... not very polished yet.

Re: Excalidraw whiteboard – easily sketch diagrams with a hand-drawn feel

#56

Earlier quoted context omitted.

When using the stylus, it doesn't support pressure sensitivity (I just tried with my Wacom). I created doodledocs.com as a side project, which does support it (and almost doesn't support anything else :P). The code is open source and also purely front-end based. So the Excalidraw authors can see how it could be implemented. It's basically Bresenham's algorithm combined with the DOM API. The code is at https://github.…

The relevant part: https://github.com/melvinroest/doodledocs/blob/master/app/co...

Yup, that's the Bresenham part. Somewhere else, I expose this to actually drawing it with a pencil.

Thanks for pointing it out, I was overcomplicating it a bit in my mind (I wanted to point out more things) and therefore I didn't point it out.

Post reply on HN