Comments (1)
Overall all of the suggestion look good,
I was trying to see if I could be useful and implement (1).
I don't have experience with three.js, but I was trying to understand how you populate the DATA variable in dep-tree/internal/entropy/index.html
That's done on Golang's code https://github.com/gabotechs/dep-tree/blob/main/internal/entropy/render.go#L38 that takes the Graph, serializes it, and performs a plain string replacement in the index.html
file.
I can see it has nodes, links and optional ['enableGui'].
If the user already "Choose the file that will act as the root of the dependency graph" then you can pass that info down somehow, and add the node to highlightNodes or as selectedNode.
The necessary info is actually already passed down. This structure https://github.com/gabotechs/dep-tree/blob/main/internal/entropy/graph.go#L17 is what gets serialized as a node object and passed down to the index.html
file. So the node
object on the JS side already has a boolean attribute isEntrypoint
determining whether the file is the main entrypoint or not.
About your other suggestions, I have gathered some feedback from other people using dep-tree and created a bunch of issues that seem somehow related to your suggestions:
I think this issue and the ones I shared set a good baseline for the direction dep-tree should take for improving usability on the frontend side.
from dep-tree.
Related Issues (20)
- Error: exec: "xdg-open": executable file not found in $PATH HOT 1
- Fails to Resolve Modules from 'main' Field in package.json HOT 4
- feature request: build graph using directory path HOT 2
- How to define a dependency? - Proposal and a technique to trace control flow and data flow HOT 4
- Doesn't work on Python project with `src` layout HOT 1
- Support node subpath imports HOT 1
- [improvement] Run directly dep-tree via npx HOT 2
- How to run the command with config file? HOT 3
- Any plan to support C codebase? HOT 3
- Define some sort of format to read in that third-party tools can generate HOT 1
- Support for Go codebase HOT 3
- Loading spinner freezing
- Could `dep-tree entropy` take a graph (as JSON?) as input? HOT 3
- Support alias in code HOT 1
- Implement an IDE-like file explorer
- Graphical differentiation between kinds of edges
- Better navigation through the 3D space
- Allow folding and unfolding groups of nodes
- Export webpage files HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dep-tree.