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

Improve graph display ++ #140

Merged
merged 13 commits into from
Jun 7, 2022
Merged

Improve graph display ++ #140

merged 13 commits into from
Jun 7, 2022

Conversation

DhammaCharts
Copy link
Contributor

Add options and ability to have a global graph on the home page, local graphs on subpage. Plus options :

scale: 1
repelForce: 2
centerForce: 1
linkDistance: 1
fontSize: 0.6
opacityScale: 3

I had to comment out window.Million.prefetch(new URL(`${baseUrl}${decodeURI(d.id).replace(/\s+/g, "-")}/`)) line 183 of graph.js, because the click on node was not working well and clicked as soon as hovered.

This Vault shows a demo.

Thanks for this very nice Quartz !

@DhammaCharts
Copy link
Contributor Author

oups, LinkDistance is not used yet in the code

assets/js/graph.js Outdated Show resolved Hide resolved
Copy link
Owner

@jackyzha0 jackyzha0 left a comment

Choose a reason for hiding this comment

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

Some initial comments

layouts/partials/head.html Outdated Show resolved Hide resolved
layouts/partials/head.html Outdated Show resolved Hide resolved
config.toml Outdated Show resolved Hide resolved
assets/js/graph.js Outdated Show resolved Hide resolved
data/graphConfig.yaml Outdated Show resolved Hide resolved

</div>
{{else}}
<hr/>
Copy link
Owner

Choose a reason for hiding this comment

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

duplicate <hr/>

layouts/partials/head.html Outdated Show resolved Hide resolved
@jackyzha0 jackyzha0 merged commit 34b0353 into jackyzha0:hugo Jun 7, 2022
DorielRivalet pushed a commit to DorielRivalet/quartz that referenced this pull request Jun 23, 2022
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.

3 participants