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

change json object that sigma.js is fed from the d3 version #32

Open
bshambaugh opened this issue Aug 25, 2017 · 5 comments
Open

change json object that sigma.js is fed from the d3 version #32

bshambaugh opened this issue Aug 25, 2017 · 5 comments

Comments

@bshambaugh
Copy link
Owner

See:

https://gist.github.com/bshambaugh/3312e2e69351b30eed86baaf54dc5d83

for the d3 version

@bshambaugh
Copy link
Owner Author

I fed a json object, and then did no-overlap, but I cannot see the node labels unless I zoom in. I want them visible by default. (at least to a certain density)

https://gist.github.com/bshambaugh/9b9b4f89c321deea8f1f8b5c9948048d

@bshambaugh
Copy link
Owner Author

I modified createprimatives.js to create a new json object:

createprimitives.js modified:
https://gist.github.com/bshambaugh/39fa5c69eeb4319d820d1968b42782bb

new json object:
https://gist.github.com/bshambaugh/311b3a2a45270a0af51512ee50e505db

@bshambaugh
Copy link
Owner Author

Try this new json object with sigma.js, then merge. You will need to modify d3sketch.js to be for sigma.js instead of d3. (Is there a way to programmatically switch between sigma.js and d3?

@bshambaugh
Copy link
Owner Author

I am still having trouble getting the AMD (require.js) library working with sigma.js. In this blog post a solution is to bound the sigma object to the window object.

See this blog post: (1-bootstrap-sigma.js)
https://gist.github.com/bshambaugh/776830f374378dba5aea0145f0c9c7ad

@bshambaugh
Copy link
Owner Author

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

No branches or pull requests

1 participant