wayscriber icon indicating copy to clipboard operation
wayscriber copied to clipboard

[FEATURE] Live Shaping tool

Open gsmith-alvarez opened this issue 2 months ago • 7 comments

What problem are you trying to solve?

To aid freehand work. It may be good to have a snapping drawing tool.

So it can recognize when if your line is within some margin of area and attempt to snap it either to grid lines or to straight lines (if skew).

This could be expanded to include some common shapes like a circle which is typical or a square. But I think the most useful would be straight lines and then circles.

The workflow you want

PR for Excalidraw which has the automatic shape detection.

I would want something like this and like Microsoft's Whiteboard "ink to shape" tool.

Microsoft Whiteboard Reference Image Something like this.

Why do the existing features not fit?

The existing features of using the shape tools adds friction for useful simply drawings that many people use regularly like a line or circles. Having to switch tools adds friction and having to fiddle with placement is just another potential pain point.

Compositor and distro

Niri on Fedora Linux

Can you help?

  • [x] I can test a build
  • [x] I can share screenshots or a short recording
  • [ ] I could contribute a PR

gsmith-alvarez avatar Sep 23 '26 22:09 gsmith-alvarez

@gsmith-alvarez let me know how it behaves for you, or if you any more suggestions.

devmobasa avatar Sep 25 '26 12:09 devmobasa

It works really well. I especially like that you turn them into proper shapes so they can be manipulated with the logic of the shapes like stretching a rectangle vs pulling it's sides. There is only 1 thing I believe could potentially be improved.

I find the detection for if you make a circle a bit too strict which leads to it feeling a bit unforgiving from a user's stand point.

Image

gsmith-alvarez avatar Sep 25 '26 13:09 gsmith-alvarez

I had the same experience. Will be fixed soon.

Let me know if it behaves better or not really. You can also adjust shape_recognition_sensitivity (0-4) in config file.

devmobasa avatar Sep 25 '26 13:09 devmobasa

I don't think it helped much. I do like all the other features you added with it especially the ghost lines. But I think the thing that makes it feel bad with circles vs all other shapes at least for myself is that when I write circles, about half the time I don't pick up my pen at the joining point of the line. Typically, I make my circle and I over lap the start and end by some amount and that seems to be what breaks it. like you can see in the gif for second circle it recognized that I was drawing a circle but when I went past the end point and overlapped that's when it dropped the recognition.

gsmith-alvarez avatar Sep 25 '26 22:09 gsmith-alvarez

Should be a lot better now. Let me know @gsmith-alvarez

devmobasa avatar Sep 26 '26 12:09 devmobasa

Yeah much more forgiving and natural.

gsmith-alvarez avatar Sep 26 '26 13:09 gsmith-alvarez

Good to hear. Let me know if you run into any issues.

devmobasa avatar Sep 26 '26 13:09 devmobasa