Adjust css of mindmap.

master
Andy Stewart 6 years ago
parent 05c7b90ead
commit 3c363cbc8d
  1. 5
      app/mindmap/index.html
  2. 14
      app/mindmap/jsmind.css
  3. 4
      app/mindmap/jsmind.js

@ -35,6 +35,11 @@
_jm = jsMind.show(options);
_jm.select_node("root");
var selected_node = _jm.get_selected_node(); // as parent of new node
if (selected_node) {
_jm.view.edit_node_begin(selected_node);
}
}
open_empty();

@ -29,6 +29,19 @@ canvas {
z-index: 1;
}
input {
outline-style: none;
border: blue;
font-size: 24px;
background-color: rgba(255, 255, 255, 0.3);
border-radius: 5px;
padding-left: 5px;
padding-right: 5px;
padding-top: 3px;
padding-bottom: 3px;
min-width: 100px;
}
/* z-index: 2 */
jmnodes {
position: absolute;
@ -68,7 +81,6 @@ jmnode {
background-color: #30A3C0;
color: #FFF;
border-radius: 5px;
font: 16px/1.125 Verdana,Arial,Helvetica,sans-serif;
padding-left: 30px;
padding-right: 30px;
}

@ -2755,7 +2755,7 @@
var selected_node = _jm.get_selected_node();
if(!!selected_node){
var nodeid = jm.util.uuid.newid();
var node = _jm.add_node(selected_node, nodeid, 'New Node');
var node = _jm.add_node(selected_node, nodeid, 'Topic');
if(!!node){
_jm.select_node(nodeid);
_jm.begin_edit(nodeid);
@ -2766,7 +2766,7 @@
var selected_node = _jm.get_selected_node();
if(!!selected_node && !selected_node.isroot){
var nodeid = jm.util.uuid.newid();
var node = _jm.insert_node_after(selected_node, nodeid, 'New Node');
var node = _jm.insert_node_after(selected_node, nodeid, 'Topic');
if(!!node){
_jm.select_node(nodeid);
_jm.begin_edit(nodeid);

Loading…
Cancel
Save