Comments (3)
Change Raphael(0, 0, options.mapArea.x,options.mapArea.y) to Raphael('divID',options.mapArea.x,options.mapArea.y).
from js-mindmap.
I tried to make a wordpress plugin out of your awesome code, so I also have to put the mindmap in a div-container (#js-mindmap). Your advise worked nearly, but nevertheless all anchor elements are put into body element, so the mindmap always overlaps all other content.
<body>
<a>1</a>
<a>2</a>
<a>3</a>
<div id="js-mindmap"></div>
</body>
Is there a workaround? So the anchor elements will be put into my div container?
<body>
<div id="js-mindmap">
<a>1</a>
<a>2</a>
<a>3</a>
</div>
</body>
Thanks in advance!
from js-mindmap.
I had this same issue. I'll try to clean up my solution enough to be worthy of adding to the js-mindmap project for others to take advantage of. It proved tricksier than just updating the line for Raphael.
from js-mindmap.
Related Issues (14)
- change color HOT 1
- customizing styles for last child nodes
- non-hirarchal relation between nodes HOT 1
- console.log breaks IE
- change shapes HOT 3
- performance on ios (iPad)
- Load on-demand <ul>
- image as node
- Incompatible with bootstrap menu
- Broken link in read me
- Anchor doesn't work to link HOT 1
- Integration with shadowbox.js (addition) HOT 1
- Window width sometimes not set correctly
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 js-mindmap.