GithubHelp home page GithubHelp logo

Comments (8)

forresto avatar forresto commented on August 31, 2024

I'd like to take a stab at this tomorrow. @bergie do you have any high-level suggestions of how bind/listen to graph changes that won't be too heavy?

from the-graph.

bergie avatar bergie commented on August 31, 2024

I'll give you an example with the graph plugin API tomorrow.

Here is a nice example of a minimap:

http://www.civfanatics.com/gallery/files/3/4/8/4/3/SpaceRaceContest-start.jpg

from the-graph.

forresto avatar forresto commented on August 31, 2024

o/t:
the next version of the ui should run on that-level hardware

from the-graph.

forresto avatar forresto commented on August 31, 2024

(This could also be useful to preview a subgraph or collapsed group.)

from the-graph.

bergie avatar bergie commented on August 31, 2024

@forresto yeah, optimally the minimap could be reused for providing "thumbnails" of graphs, for example in the NoFlo UI project navigator, or maybe also when displaying a highlighted node that is a subgraph.

Minimap differs only from this "thumbnail" by the fact that it needs to show a square on where your viewport currently is.

Here was a rudimentary minimap implementation in original NoFlo UI, just showing a rectangle where each node would be: https://github.com/noflo/noflo-ui-server/blob/dataflow/assets/js/GraphManager/views.coffee#L135

from the-graph.

forresto avatar forresto commented on August 31, 2024

todo:

  • redraw on graph changes. event from graph? or mutatation observer? 💥
  • the-graph-thumb should use the json version of the graph, not the-graph 💥

screen shot 2013-11-01 at 3 56 35 pm

from the-graph.

forresto avatar forresto commented on August 31, 2024

All of this ^ thrashing was because there was an older version of Polymer in gh-pages. Bleeding-edge fun.

from the-graph.

forresto avatar forresto commented on August 31, 2024

todo:

  • work on viewrectangle
  • width and height attributes on the-graph-editor to bind to

from the-graph.

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.