Comments (4)
Not sure what you mean - there's the flowy.import()
method to load a tree from JSON data.
from flowy.
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.
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.
@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)
- Output is Not define
- Block name change
- More advanced demo? HOT 7
- Prevent junctions
- Is it possible to implement for nodes to have more than 1 parent? HOT 4
- How to use it in Vuejs ? HOT 3
- Output not getting imported HOT 2
- Can you give me a solution to use it in React js ? HOT 3
- Conditional Snapping Issue HOT 1
- Please invite me in your project. HOT 1
- Drag block item when scrolled
- Hey
- Unable to add text box in the flowchart
- Demo Site link working HOT 1
- Live demo link broken HOT 2
- [Feature request] Dark theme
- Create zoom canva preview
- Support? HOT 2
- How to split branches manually
- How to support cyclic relations between blocks in flowy
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flowy.