cocreate icon indicating copy to clipboard operation
cocreate copied to clipboard

Custom line styles (dotted, dashed, etc.)

Open edemaine opened this issue 3 years ago • 5 comments

Similar to colors.

  • [x] Fixed styles (solid, dotted, dashed, maybe dot-dashed for origami)
  • [ ] Allow custom creation (like #14)
  • [x] Scale relative to line width
  • [x] For varying-width pen strokes, we'll need to keep track of the pattern offset modulo the pattern period, and use stroke-dashoffset to resume. Everything else can be done via just stroke-dasharray (which is a good representation for the database).

edemaine avatar Jul 07 '20 17:07 edemaine

There may be other relevant svg presentation attributes to include; e.g. a highlighter can have an opacity (though it would be nice to make it wider too); you can create arrows with marker-start and marker-end, etc.

mehtank avatar Feb 15 '21 19:02 mehtank

In addition to dashed and dotted lines, I'd very much like to be able to do lines with arrows because I draw a lot of vectors! While at it, I would suggest being able to "fill" a rectangle or circle, just like we can in PowerPoint and other presentation-making software.

ndattani avatar Dec 08 '21 22:12 ndattani

In addition to dashed and dotted lines, I'd very much like to be able to do lines with arrows because I draw a lot of vectors!

Agreed. This is currently in issue #35. It's a reasonably high priority for me too.

While at it, I would suggest being able to "fill" a rectangle or circle, just like we can in PowerPoint and other presentation-making software.

This already exists: if you shift-click on a color, it sets the fill. See the user guide for more details.

edemaine avatar Dec 12 '21 18:12 edemaine

FYI, both arrows and line styles are now available. (Line styles will deploy shortly.)

edemaine avatar Nov 16 '22 17:11 edemaine

Very nice! Also, I hadn’t noticed that I could make rectangles be filled by clicking on the raindrop button, but it works well for me now :)

ndattani avatar Nov 16 '22 18:11 ndattani