Git Product home page Git Product logo

Comments (2)

chrisjpatty avatar chrisjpatty commented on August 15, 2024

This isn't currently possible, but to make it possible I think two features would be required:

  1. Theming: Styles will need to be able to be dynamically applied based on input data.
  2. Live logic resolution in the Node Editor. Right now the node editor has not built-in concept of what data is coming from input nodes, so a boolean port may not know in the editor if the data flowing through it is a true or a false. Unless of course you're intending to have a true and a false output port. Is that the case?

from flume.

andraz-at avatar andraz-at commented on August 15, 2024

If I'm understanding you correctly the nodes are a graphical representation of the logic network, but individual nodes never receive live data while it is getting calculated because the execution is optimized into a separate process?

Could this process get a "debug" mode or a "live" mode, where engine on purpose reduces it's own optimization to push data to the dom node's data properties while the engine is calculating data?

Calculating one output node value would imply all of the inputs and paths values which all should be equal, so this is an easy optimization enabling us to hook css styling to the data property, just copy the output data value on to the linked dom nodes.

Storing the results first into a set as they're getting calculated, and only updating dom nodes at the end, could additionally optimize the execution - if the same dom output object would get multiple changes before stabilizing this could cause redraws.

p.s.: be careful to avoid CSS spec bug for custom data attribute styling, data needs to start with a character: https://stackoverflow.com/a/21971962

from flume.

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.