markmap-view 0.15.4 → 0.15.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/browser/index.js +4 -4
- package/dist/index.js +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
|
|
7
7
|
View markmaps in browser.
|
|
8
8
|
|
|
9
|
-
This package is separated from [markmap-lib](https://github.com/
|
|
9
|
+
This package is separated from [markmap-lib](https://github.com/markmap/markmap/tree/master/packages/markmap-lib) to decrease the size of `node_modules` because you don't need this in `node_modules` most of the time.
|
|
10
10
|
|
|
11
11
|
👉 [Read the documentation](https://markmap.js.org/docs) for more detail.
|
package/dist/browser/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! markmap-view v0.15.
|
|
1
|
+
/*! markmap-view v0.15.5 | MIT License */
|
|
2
2
|
(function (exports, d3) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
|
-
/*! markmap-common v0.15.
|
|
5
|
+
/*! markmap-common v0.15.5 | MIT License */
|
|
6
6
|
function _extends$1() {
|
|
7
7
|
_extends$1 = Object.assign ? Object.assign.bind() : function (target) {
|
|
8
8
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -98,7 +98,7 @@ function noop() {
|
|
|
98
98
|
function walkTree(tree, callback) {
|
|
99
99
|
const walk = (item, parent) => callback(item, () => {
|
|
100
100
|
var _item$children;
|
|
101
|
-
(_item$children = item.children) == null
|
|
101
|
+
(_item$children = item.children) == null || _item$children.forEach(child => {
|
|
102
102
|
walk(child, item);
|
|
103
103
|
});
|
|
104
104
|
}, parent);
|
|
@@ -1355,7 +1355,7 @@ class Markmap {
|
|
|
1355
1355
|
// content in one line as much as possible, and subjecting to the given max-width.
|
|
1356
1356
|
nodes.forEach(node => {
|
|
1357
1357
|
var _node$parentNode;
|
|
1358
|
-
(_node$parentNode = node.parentNode) == null
|
|
1358
|
+
(_node$parentNode = node.parentNode) == null || _node$parentNode.append(node.cloneNode(true));
|
|
1359
1359
|
});
|
|
1360
1360
|
walkTree(node, (item, next, parent) => {
|
|
1361
1361
|
var _parent$state2;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! markmap-view v0.15.
|
|
1
|
+
/*! markmap-view v0.15.5 | MIT License */
|
|
2
2
|
import { Hook, getId, addClass, walkTree, childSelector, noop } from 'markmap-common';
|
|
3
3
|
export { loadCSS, loadJS } from 'markmap-common';
|
|
4
4
|
import { scaleOrdinal, schemeCategory10, zoomTransform, select, zoom, linkHorizontal, min, max, zoomIdentity, minIndex } from 'd3';
|
|
@@ -990,7 +990,7 @@ class Markmap {
|
|
|
990
990
|
// content in one line as much as possible, and subjecting to the given max-width.
|
|
991
991
|
nodes.forEach(node => {
|
|
992
992
|
var _node$parentNode;
|
|
993
|
-
(_node$parentNode = node.parentNode) == null
|
|
993
|
+
(_node$parentNode = node.parentNode) == null || _node$parentNode.append(node.cloneNode(true));
|
|
994
994
|
});
|
|
995
995
|
walkTree(node, (item, next, parent) => {
|
|
996
996
|
var _parent$state2;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "markmap-view",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.5",
|
|
4
4
|
"description": "View markmaps in browser",
|
|
5
5
|
"author": "Gerald <gera2ld@live.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/d3-flextree": "^2.1.1",
|
|
49
|
-
"markmap-common": "0.15.
|
|
49
|
+
"markmap-common": "0.15.5"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"markmap-common": "*"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "f7bda12b219cba3833dec1dae1daad14c3b53db6"
|
|
55
55
|
}
|