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

feat(edgeless): support more connector arrow style #5064

Conversation

donteatfriedrice
Copy link
Member

@donteatfriedrice donteatfriedrice commented Oct 19, 2023

To close #4501

  • Support changing start point arrow style.
  • Support changing end point arrow style.
  • Support switching start and end point style.
Screen.Recording.2023-10-20.at.16.58.16.mov

@vercel
Copy link

vercel bot commented Oct 19, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
blocksuite ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 25, 2023 8:15am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
blocksuite-docs ⬜️ Ignored (Inspect) Visit Preview Oct 25, 2023 8:15am

@@ -969,7 +969,7 @@ export class EdgelessConnectorManager {
const start = this._getConnectorEndElement(connector, 'source');
const end = this._getConnectorEndElement(connector, 'target');

const [startPoint, endPoint] = this._computeStartEndPoint(connector);
const [startPoint, endPoint] = this._computeStartEndpoint(connector);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that "endpoint" itself is a non-synthetic word, which can be confused with the endPoint here (within the context of startPoint / endPoint). Could you try to avoid the startPoint / endPoint naming to
reduce the potential cost of understanding?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I'll try to avoid it.

@donteatfriedrice
Copy link
Member Author

Need to update diamond, triangle, arrow to add rounded corners.

shot-2023-10-24-17 30 29@2x

@hwangdev97
Copy link
Member

shot-2023-10-25-15 58 38@2x

Please use new design of triangle

@doodlewind doodlewind merged commit 536f9fa into toeverything:master Oct 25, 2023
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notable Major improvement worth emphasizing
Projects
Archived in project
Archived in project
Development

Successfully merging this pull request may close these issues.

Support connector arrow style selection
3 participants