Skip to content

feat(examples): add bezier-js integration example #2890

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

kumilingus
Copy link
Contributor

Description

An example demonstrating how to use the bezier-js library to create a link with parallel segments of varying widths.

image

There are currently several issues:

  • The bezier-js library cannot handle paths where control points coincide with end points (issue).
  • bezier-js generates incorrect offsets when numbers are not rounded.
  • The example does not account for the gaps created by PolyBezier offsets at discontinuities (docs).

Copy link

This PR is stale because it has been open 60 days with no activity. Please remove stale label or comment or this will be closed in 14 days.

@github-actions github-actions bot added the stale This issue/PR shows no activity for an extended period of time. label Apr 25, 2025
@kumilingus kumilingus requested a review from Copilot April 25, 2025 04:48
@kumilingus kumilingus removed the stale This issue/PR shows no activity for an extended period of time. label Apr 25, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

An example demonstrating how to integrate the bezier-js library with JointJS to create links with parallel segments of varying widths.

  • Added a webpack configuration to bundle the example code.
  • Introduced a new source file (index.js) implementing custom link rendering with bezier-js and JointJS.
  • Provided an HTML template and documentation (README.md) for running the demo.

Reviewed Changes

Copilot reviewed 5 out of 8 changed files in this pull request and generated 1 comment.

File Description
examples/bezier-js/webpack.config.js Standard webpack configuration for bundling the example.
examples/bezier-js/src/index.js Implements bezier-js offset/outline paths for link rendering.
examples/bezier-js/index.html Basic HTML template to load the bundled script.
examples/bezier-js/README.md Documentation for setup and running the demo.
Files not reviewed (3)
  • examples/bezier-js/.gitignore: Language not supported
  • examples/bezier-js/css/bezier.css: Language not supported
  • examples/bezier-js/package.json: Language not supported

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