Giter Club home page Giter Club logo

twine-vis's Introduction

twine-vis

A prototype webapp for easily visualising link routes in published Twine files.

Drop in to an existing folder served by a web server, or run for local testing:

python -m http.server  # Visit http://localhost:8000/twine-vis.html to view.

twine-vis's People

Contributors

lobstros avatar

Stargazers

Jamie Bayne avatar

Watchers

 avatar

twine-vis's Issues

Unhelpful z-order of nodes

When in linear display mode, "foreground" nodes can sometimes appear behind faded "background" nodes, which makes mouse interactions wrong/wonky. I gather this is because SVG uses element definition order directly as z-level.

Should fix this by using d3 to order foreground nodes after background nodes.

Presenting loops

Display and/or calcs can get pretty hairy when the app attempts to display a loop in the graph structure. Currently there's just a gap in later occurrences of where a given node should be whenever this happens.

I suppose it would be nice to show something like a virtual node that says "loop to", perhaps with a different colour/shape to true nodes, and that shows a link back to the upstream connection point.

Define route traces by clicking one-at-a-time

Feedback from beta tester: rather than having the app trace through a route to the end straight off the bat, it would be more intuitive to walk a desired route by selecting each node along the way one-by-one, having it reveal potential 'next-step' child nodes each time.

Stale state on loading a new file

When using the load form to open a new file (or reload the same one), some nodes seem to keep some/all attributes from the previous file (e.g. name).

Should flatten the whole programme state whenever a file is loaded.

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.