GithubHelp home page GithubHelp logo

Comments (6)

JerryI avatar JerryI commented on May 27, 2024 1

Kinda works now. I rewrote some primitives of Graphics package and rewrote MakeBoxes definition to apply GraphPlot to any Graph symbol on output. Works as a syntax sugar, the inner expression is still the same.

Screenshot 2024-05-03 at 18 53 25

I checked some of examples from WM refs page

PS: To get new version click on Check Updates in settings menu. On the next startup it will fetch and install them.

from wolfram-js-frontend.

gdelfino avatar gdelfino commented on May 27, 2024 1

Thanks! The output is no longer wrong, so I think this issue should now be closed.

from wolfram-js-frontend.

JerryI avatar JerryI commented on May 27, 2024

Thank you for your feedback!

In general all Graphs-related plotting functions are not supported for now. Please, check this page (Plotting function section), where we listed all tested functions (there are probably more...). Since Wolfram Language uses higher-order function, that produce low-level Graphics primitives with million options used, we can't really say in advance which is going to work correctly and which isnt. In this sense, feel free to post anything you found working incorrectly to Issues. Then we can also know how to distribute our attention as developers.

Since you requested Graphs here, we will try to fix it 😀
In principle, Graphs relies on Graphics primitives, which are mostly implemented. We need to work a bit on converting Mathematica's boxes to our format.

from wolfram-js-frontend.

JerryI avatar JerryI commented on May 27, 2024

I see, an issue mostly connected with Arrow and GraphicsComplex functions

Screenshot 2024-05-01 at 22 14 28

and any Graph object being wrapped into GraphPlot kinda works...

from wolfram-js-frontend.

gdelfino avatar gdelfino commented on May 27, 2024

Thanks for your quick answer and your effort developing this project. Yes, I noticed that Graph is not supported yet. That is why I tried GraphPlot which returns a Graphics instead of a Graph.

For the future, maybe graphs could be rendered using https://github.com/DerYeger/yeger/tree/main/packages/d3-graph-controller

from wolfram-js-frontend.

JerryI avatar JerryI commented on May 27, 2024

Thanks for your quick answer and your effort developing this project. Yes, I noticed that Graph is not supported yet. That is why I tried GraphPlot which returns a Graphics instead of a Graph.

For the future, maybe graphs could be rendered using https://github.com/DerYeger/yeger/tree/main/packages/d3-graph-controller

Awesome! It might be even better than Wolfram's implementation
Thank you

from wolfram-js-frontend.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.