Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data import Gives [object object] #6

Closed
melvincarvalho opened this issue Aug 5, 2019 · 4 comments
Closed

Data import Gives [object object] #6

melvincarvalho opened this issue Aug 5, 2019 · 4 comments

Comments

@melvincarvalho
Copy link

      console.log('d', d)
      let mind = new MindElixir({
        el: '#map',
        direction: MindElixir.LEFT,
        data: MindElixir.new(d), // can also set data return from .getAllData()
        draggable: true, // default true
        contextMenu: true, // default true
        toolBar: true, // default true
        nodeMenu: true, // default true
        keypress: true, // default true
      })
      mind.init()

Where d in console

linkData: Object {  }
nodeData: Object { id: "root", topic: "Solid Map", root: true, … }

image

Any ideas?

@melvincarvalho
Copy link
Author

Looking here

https://github.com/ssshooter/mind-elixir-core/blob/master/src/index.js#L101

is should take the nodeData and linkData -- but they appear to be there

Not sure what is going wrong, I'll try and debug.

Thanks for a great app!

@melvincarvalho
Copy link
Author

image

@melvincarvalho
Copy link
Author

Haha, got it! No need for new MindElixir()

Can close!

@SSShooter
Copy link
Owner

😂hmmm, i should explain about this in doc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants