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

fix(ArrowAnnotate): use svg marker to draw the arrow #1732

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

daker
Copy link
Contributor

@daker daker commented Dec 26, 2024

Context

fix #1671

Changes & Results

size 1 size 2 size 3 size 4
1 2 3 4

Testing

Checklist

PR

  • My Pull Request title is descriptive, accurate and follows the
    semantic-release format and guidelines.

Code

Public Documentation Updates

  • [] The documentation page has been updated as necessary for any public API
    additions or removals.

Tested Environment

  • [] "OS:
  • [] "Node version:
  • [] "Browser:

Copy link

stackblitz bot commented Dec 26, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link

netlify bot commented Dec 26, 2024

Deploy Preview for cornerstone-3d-docs failed. Why did it fail? →

Name Link
🔨 Latest commit 566ab17
🔍 Latest deploy log https://app.netlify.com/sites/cornerstone-3d-docs/deploys/676db12b9148760008d326fa

@daker daker force-pushed the fix-arrowannotate branch from baa240c to 566ab17 Compare December 26, 2024 19:40
);
const {
color = 'rgb(0, 255, 0)',
width = 10,
Copy link
Member

Choose a reason for hiding this comment

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

Why are we changing the width here? Could this break people's tools since we're changing it from 2 to 10?


if (arrow) {
arrow.setAttribute('fill', color);
const newstrokeWidth = strokeWidth >= 4 ? 3 : 6;
Copy link
Member

Choose a reason for hiding this comment

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

Why is strokeWidth >= 4 ? 3 : 6; used here? It seems arbitrary.

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

Successfully merging this pull request may close these issues.

[Bug] Arrow annotate tool ui's become broken when increase the line width
2 participants