Skip to content

feat(lines): add curved lines with curvature option#165

Merged
themustafaomar merged 2 commits intomainfrom
feature/curved-lines
Aug 17, 2024
Merged

feat(lines): add curved lines with curvature option#165
themustafaomar merged 2 commits intomainfrom
feature/curved-lines

Conversation

@themustafaomar
Copy link
Copy Markdown
Owner

This PR adds the ability to curve lines with optional curvature option.

Screenshot 2024-08-17 004517-min

BREAKING CHANGES

Lines will be configured via lines key only instead of lineStyle and lines keys.

const map = new jsVectorMap({
  ...
  lines: {
    curvature: -0.5,
    animate: true,
    elements: lines,
    style: {
      stroke: '#333',
      strokeDasharray: '2 4 2',
      strokeWidth: 0.5,
    },
  },
  ...
})

@vercel
Copy link
Copy Markdown

vercel bot commented Aug 16, 2024

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

Name Status Preview Comments Updated (UTC)
jvm-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 16, 2024 9:54pm

@themustafaomar themustafaomar added this to the Curved lines milestone Aug 16, 2024
@themustafaomar themustafaomar merged commit 79ba655 into main Aug 17, 2024
@themustafaomar themustafaomar deleted the feature/curved-lines branch August 17, 2024 08:27
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.

1 participant