Git Product home page Git Product logo

Comments (4)

alyssaxuu avatar alyssaxuu commented on May 9, 2024

Not sure what you mean - there's the flowy.import() method to load a tree from JSON data.

from flowy.

Jisco avatar Jisco commented on May 9, 2024

Hi,
i think @Titof974 means the "html" property in the exported JSON Object.

I see in the code it's used to set the "innerHTML" of the canvas div. So it's currently not possible to rebuild the flowchart only with the rest (without the "html" property) of the JSON Object.

from flowy.

alyssaxuu avatar alyssaxuu commented on May 9, 2024

Ah right, yeah, this is because there is not a default "template" for the blocks, so the only way to ensure that the flowchart you created (with the styling/fields/other you've customized) will show as it previously was. Obviously if I "enforced" using the design from the demo the HTML property in the export wouldn't be needed and just from the JSON you could create the tree. But yeah, the idea is to make the library as versatile as possible, so people can make blocks for a large variety of use-cases and even drastically different to what I proposed in the demo.

from flowy.

yellow1912 avatar yellow1912 commented on May 9, 2024

@alyssaxuu It is not so efficient to save the complete HTML inside the database for example, normally you only want to save the tree structure. It would be nice to allow having a render method. This way we can re-render the the blocks by just passing the blocks data. It also allows you to easily update the view any time you need as well as customizing the view of each block on the fly.

from flowy.

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.