question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Line Editor shouldn't allow creating rotated two-point lines

See original GitHub issue

Currently, two-point lines must always be unrotated. (angle=0) With Line Editor, we can techniically create a rotated two-point line, which leads to unexpected behaviors. Cc @dwelle

excal80

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:20 (20 by maintainers)

github_iconTop GitHub Comments

1reaction
dwellecommented, Aug 10, 2020

Or, make the line editor prohibit deleting points less than three.

I wouldn’t go that path as it’s non-intuitive and prevents several use cases (e.g. you’re toying with a 3-point line and decide you want to get rid of the middle point).

If we removed, it’d still just be a temp solution as I don’t think we’d want to retain this arbitrary limitation. As such, let’s just fix the problem at hand instead of hacking it further.

1reaction
dwellecommented, Aug 2, 2020

This is gonna be fun 😃. Isn’t it better to handle rotation for 2-point lines as we do elsewhere? Would simplify everything.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Work with the line tool - Adobe Support
The Line Tool allows you to draw a two-point line on the canvas. Lines can be drawn as vector shapes, paths, or pixels....
Read more >
Edit connector lines, arrows, or points - Microsoft Support
Add or delete points, edit line weight and color, change or reverse arrow types, and make connectors curved, angled, or straight.
Read more >
Rotating a feature—ArcMap | Documentation
You can rotate features using the Rotate tool Rotate Tool . With this tool active, drag the pointer to rotate the selected features...
Read more >
Add lines and arrows in Keynote on Mac - Apple Support
To edit the line's shape or position, do any of the following: Move the line: Click anywhere on the line, then drag it...
Read more >
rotate() - CSS: Cascading Style Sheets - MDN Web Docs
The rotate() CSS function defines a transformation that rotates an element around a fixed point on the 2D plane, without deforming it.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found