tldraw / tldraw

SDK for creating whiteboards and canvas experiences on the web.
https://tldraw.dev
Other
35.14k stars 2.12k forks source link

[Feature]: Non-decaying laser #2802

Open deemp opened 6 months ago

deemp commented 6 months ago

What's the feature?

Allow a laser (e.g., via a toggle) to not decay while a user moves a drawing device on the screen without lifting it.

Contact Details

No response

Code of Conduct

linear[bot] commented 6 months ago

TLD-2209 [Feature]: Non-decaying laser

Nerixyz commented 4 months ago

I've tried to make a mini implementation of what I'd like the feature to look like: https://github.com/Nerixyz/tldraw/commit/d65d009bc3c750b3568e15cafb50020d329afb8c. Using the laser tool now looks like this:

https://github.com/tldraw/tldraw/assets/19953266/5d353d8f-5481-445b-9c6c-b366e024a624

Not sure about the taper effect. The main idea is that laser strokes don't disappear until you lift the pen and repeatedly "drawing" with the laser is supported. It kinda works like the laser in GoodNotes, which is really nice for presentations.

This should definitely be behind some setting/option (maybe even a separate tool?).

teith commented 2 months ago

+1

Taha-Hassan-Git commented 1 month ago

Duplicated here:

https://github.com/tldraw/tldraw/issues/4211

Nerixyz commented 1 month ago

I don't think #4211 is a duplicate. #4211 proposes a customizable delay, but this issue asks for a laser that doesn't have a delay as long as the pointer is held down. This is especially useful when doing presentations.

Even if this was a duplicate, #4211 should be closed, as this was opened earlier.

deemp commented 1 month ago

@Taha-Hassan-Git, please consider reopening this issue.

Taha-Hassan-Git commented 1 month ago

You're right, my bad!