Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom line styles (dotted, dashed, etc.) #61

Open
3 of 4 tasks
edemaine opened this issue Jul 7, 2020 · 5 comments
Open
3 of 4 tasks

Custom line styles (dotted, dashed, etc.) #61

edemaine opened this issue Jul 7, 2020 · 5 comments

Comments

@edemaine
Copy link
Owner

edemaine commented Jul 7, 2020

Similar to colors.

  • Fixed styles (solid, dotted, dashed, maybe dot-dashed for origami)
  • Allow custom creation (like Arbitrary color management #14)
  • Scale relative to line width
  • 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 edemaine changed the title Custom line styles Custom line styles (dotted, dashed, etc.) Feb 11, 2021
@mehtank
Copy link

mehtank commented Feb 15, 2021

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.

@edemaine edemaine added the priority High-priority because of requests or importance label Aug 4, 2021
@ndattani
Copy link

ndattani commented Dec 8, 2021

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.

@edemaine
Copy link
Owner Author

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
Copy link
Owner Author

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

@ndattani
Copy link

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 :)

@edemaine edemaine removed the priority High-priority because of requests or importance label Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants