markmap-view 0.14.5-alpha.16 → 0.14.5-alpha.17

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.
@@ -1,4 +1,4 @@
1
- /*! markmap-view v0.14.5-alpha.16+33e8294 | MIT License */
1
+ /*! markmap-view v0.14.5-alpha.17+0d6a717 | MIT License */
2
2
  (function (exports, d3) {
3
3
  'use strict';
4
4
 
@@ -15,7 +15,7 @@ return Object.freeze(n);
15
15
 
16
16
  var d3__namespace = /*#__PURE__*/_interopNamespaceDefault(d3);
17
17
 
18
- /*! markmap-common v0.14.5-alpha.16+33e8294 | MIT License */
18
+ /*! markmap-common v0.14.2 | MIT License */
19
19
  class Hook {
20
20
  constructor() {
21
21
  this.listeners = [];
@@ -1248,7 +1248,7 @@ class Markmap {
1248
1248
  style.remove();
1249
1249
  }
1250
1250
  setOptions(opts) {
1251
- this.options = _extends({}, Markmap.defaultOptions, opts);
1251
+ this.options = _extends({}, this.options, opts);
1252
1252
  if (this.options.zoom) {
1253
1253
  this.svg.call(this.zoom);
1254
1254
  } else {
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! markmap-view v0.14.5-alpha.16+33e8294 | MIT License */
1
+ /*! markmap-view v0.14.5-alpha.17+0d6a717 | MIT License */
2
2
  'use strict';
3
3
 
4
4
  var markmapCommon = require('markmap-common');
@@ -942,7 +942,7 @@ class Markmap {
942
942
  style.remove();
943
943
  }
944
944
  setOptions(opts) {
945
- this.options = _extends({}, Markmap.defaultOptions, opts);
945
+ this.options = _extends({}, this.options, opts);
946
946
  if (this.options.zoom) {
947
947
  this.svg.call(this.zoom);
948
948
  } else {
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! markmap-view v0.14.5-alpha.16+33e8294 | MIT License */
1
+ /*! markmap-view v0.14.5-alpha.17+0d6a717 | 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 * as d3 from 'd3';
@@ -928,7 +928,7 @@ class Markmap {
928
928
  style.remove();
929
929
  }
930
930
  setOptions(opts) {
931
- this.options = _extends({}, Markmap.defaultOptions, opts);
931
+ this.options = _extends({}, this.options, opts);
932
932
  if (this.options.zoom) {
933
933
  this.svg.call(this.zoom);
934
934
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "markmap-view",
3
- "version": "0.14.5-alpha.16+33e8294",
3
+ "version": "0.14.5-alpha.17+0d6a717",
4
4
  "description": "View markmaps in browser",
5
5
  "author": "Gerald <gera2ld@live.com>",
6
6
  "license": "MIT",
@@ -45,10 +45,10 @@
45
45
  "devDependencies": {
46
46
  "@gera2ld/jsx-dom": "^2.2.2",
47
47
  "@types/d3-flextree": "^2.1.1",
48
- "markmap-common": "0.14.5-alpha.16+33e8294"
48
+ "markmap-common": "0.14.2"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "markmap-common": "*"
52
52
  },
53
- "gitHead": "33e8294050d7438f6cdadd5bf06a665560585195"
53
+ "gitHead": "0d6a717b05c622a23faa501e79a7da7cda3ea0b6"
54
54
  }