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

Stepped Lines #102

Open
cole-robertson opened this issue May 22, 2020 · 4 comments
Open

Stepped Lines #102

cole-robertson opened this issue May 22, 2020 · 4 comments
Labels
drawing shape enhancement New feature or request

Comments

@cole-robertson
Copy link

There is a use case I have where I would like the lines drawn stepped.
Currently:
image

I would like it to be like:
image

I currently have:

const CONTAINER_STYLE = {
  arrowLength: 0,
  noCurves: true,
  offset: 0,
  strokeColor: "#50616f",
};

and:

const ANCHOR_SETTINGS: IAnchorPositions = {
  sourceAnchor: "bottom",
  targetAnchor: "left",
};

Is there anything I can do currently to achieve my desired result? Thank you!

@pierpo
Copy link
Owner

pierpo commented May 25, 2020

Hey 😊

Unfortunately it is not possible right now, but I'd love to have the option to customize the paths more.
No ETA yet because it might be quite complex!

To quickly solve your issue, you could fork the project (or use patch-package) and edit the following :

return (

You'll be able to do a custom path that fits your needs by changing these lines 😉

@pierpo pierpo added the enhancement New feature or request label May 25, 2020
@sumdook
Copy link

sumdook commented May 30, 2023

Hey @pierpo, is here any way to achieve this yet?

@pierpo
Copy link
Owner

pierpo commented May 30, 2023

Hey! Well, I'd suggest to:

  • either fork the lib, and find a solution to change the paths for your specific use case
  • find some dirty work-arounds... maybe by creating fake archer elements, creating some straight lines to them (arrow with no pointer), and do the 90° turn this way. This is super super dirty, you'd have to handle the positions manually yourself, which may not be always possible. But it requires no action on the lib's side to work.

Having it as required in the core of the lib is, as I said previously, not an obvious solution 😢
I have no estimation for it, maybe it's not that hard 🤷 It'd require some thinking.

@sumdook
Copy link

sumdook commented Jun 1, 2023

Thanks, appreciate the response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
drawing shape enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants