Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

MIN_GRID_LEN dynamic ? #373

Closed
calumk opened this issue Nov 4, 2022 · 3 comments
Closed

MIN_GRID_LEN dynamic ? #373

calumk opened this issue Nov 4, 2022 · 3 comments

Comments

@calumk
Copy link

calumk commented Nov 4, 2022

Hi, I have an applicaiton where I need a diffferent (smaller) grid size for the grid line style (small distances between nodes)

At the moment, I can achieve this by re-building the library with MIN_GRID_LEN = 15

I am assuming this is the only way to do this at the moment? - There is no way to dynamically change the grid size on creating a new line?

Cheers

@anseki
Copy link
Owner

anseki commented Nov 5, 2022

Hi @calumk, thank you for the comment.
As that was already mentioned in past issue (#133), the MIN_GRID_LEN has to avoid being accessed because that obviously breaks the API design.
If you really want to do that, you can fork and customize the library to make a special one for your app, as you said.

@calumk
Copy link
Author

calumk commented Nov 5, 2022

Ha! @anseki - sorry - that was actually me that raised that old issue.
2 years later working on a different project, and I came across the same problem.

Sorry for wasting your time.

I have forked the library and solved both this and #374

@anseki
Copy link
Owner

anseki commented Nov 5, 2022

It's ok. 😄
Could you close this issue?

@calumk calumk closed this as completed Nov 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants