Comments (2)
Hi,
I am not sure where is your code located (what function? what backend? etc...), but to load a Mind Map data from a string, you can use the code here: https://github.com/ondras/my-mind/blob/master/bin/phantomjs-my-mind.js#L49
Basically, you do:
var json = MM.Format.JSON.from(string);
var map = MM.Map.fromJSON(json);
MM.App.setMap(map);
from my-mind.
thanks! i use the index.html in my-mind-master to test,ok! can work.
you project is very good!
MM.App.init();
MM.App.io.restore();
var str='{ "root": {"id": "ztemuzzo","text": "ssss", "layout": "map"}, "id": "pqlnmijv"}';
var json = MM.Format.JSON.from(str);
var map = MM.Map.fromJSON(json);
MM.App.setMap(map);
from my-mind.
Related Issues (20)
- Message at bottom of screen HOT 4
- NextCloud Integration HOT 13
- Page does not load correctly when opening index.html locally HOT 6
- [Feature] Dockerize this app HOT 4
- Pinch to zoom HOT 1
- Google analytics and other javascript files HOT 1
- Invalid download link in README.md HOT 2
- To line break on the last line, need to press Enter twice. HOT 1
- [FEATURE]Add a "onbeforeunload" event to prevent the window from being closed by mistake. HOT 1
- The webdav address cannot be entered. HOT 4
- Breakage of connection harms others HOT 2
- Save URI only populates directory when URL is set in query string HOT 3
- [question] how to merge a diff when something has changed HOT 2
- webdav backend should not error on return code 201 HOT 2
- Disable "Save" and "Load" button when required input is missing HOT 2
- [concept] AI Copilot HOT 7
- Taylor Swift should message me so I can give her everything she wants
- urls in items HOT 1
- Copy/cut HOT 1
- How do increase distance between two item? HOT 3
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 my-mind.