-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
acfecf0
commit 7d114c7
Showing
4 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
<title>Markmap</title> | ||
<style> | ||
* { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
#mindmap { | ||
display: block; | ||
width: 100vw; | ||
height: 100vh; | ||
} | ||
</style> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/style.css"> | ||
</head> | ||
<body> | ||
<svg id="mindmap"></svg> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/d3.min.js"></script><script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/browser/index.js"></script><script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/index.js"></script><script>((r) => { | ||
setTimeout(r); | ||
})(() => { | ||
const { markmap, mm } = window; | ||
const toolbar = new markmap.Toolbar(); | ||
toolbar.attach(mm); | ||
const el = toolbar.render(); | ||
el.setAttribute("style", "position:absolute;bottom:20px;right:20px"); | ||
document.body.append(el); | ||
})</script><script>((getMarkmap, getOptions, root2, jsonOptions) => { | ||
const markmap = getMarkmap(); | ||
window.mm = markmap.Markmap.create( | ||
"svg#mindmap", | ||
(getOptions || markmap.deriveOptions)(jsonOptions), | ||
root2 | ||
); | ||
})(() => window.markmap,null,{"type":"heading","depth":0,"payload":{"lines":[0,1]},"content":"Main","children":[{"type":"heading","depth":1,"payload":{"lines":[1,2]},"content":"Sub 1","children":[{"type":"heading","depth":2,"payload":{"lines":[2,3]},"content":"Sub 1a","children":[]},{"type":"heading","depth":2,"payload":{"lines":[3,4]},"content":"Sub 1b","children":[]},{"type":"heading","depth":2,"payload":{"lines":[4,5]},"content":"Sub 1c","children":[]}]},{"type":"heading","depth":1,"payload":{"lines":[5,6]},"content":"Sub 2","children":[{"type":"heading","depth":2,"payload":{"lines":[6,7]},"content":"Sub 2a","children":[]},{"type":"heading","depth":2,"payload":{"lines":[7,8]},"content":"Sub 2b","children":[]},{"type":"heading","depth":2,"payload":{"lines":[8,9]},"content":"Sub 2c","children":[]}]},{"type":"heading","depth":1,"payload":{"lines":[9,10]},"content":"Sub 3","children":[{"type":"heading","depth":2,"payload":{"lines":[10,11]},"content":"Sub 3a","children":[]},{"type":"heading","depth":2,"payload":{"lines":[11,12]},"content":"Sub 3b","children":[{"type":"heading","depth":3,"payload":{"lines":[12,13]},"content":"Sub 3bI","children":[]},{"type":"heading","depth":3,"payload":{"lines":[13,14]},"content":"Sub 3bII","children":[]}]}]}]},null)</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Main | ||
## Sub 1 | ||
### Sub 1a | ||
### Sub 1b | ||
### Sub 1c | ||
## Sub 2 | ||
### Sub 2a | ||
### Sub 2b | ||
### Sub 2c | ||
## Sub 3 | ||
### Sub 3a | ||
### Sub 3b | ||
#### Sub 3bI | ||
#### Sub 3bII |
Submodule yaml-mindmap
added at
4f82e5