markmap-toolbar 0.14.5-alpha.18 → 0.14.5-alpha.21
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/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! markmap-toolbar v0.14.5-alpha.
|
|
1
|
+
/*! markmap-toolbar v0.14.5-alpha.21+fb81f2c | MIT License */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
@@ -205,7 +205,6 @@ class Toolbar {
|
|
|
205
205
|
static create(mm) {
|
|
206
206
|
const toolbar = new Toolbar();
|
|
207
207
|
toolbar.attach(mm);
|
|
208
|
-
toolbar.render();
|
|
209
208
|
return toolbar;
|
|
210
209
|
}
|
|
211
210
|
static icon(path, attrs = {}) {
|
|
@@ -229,6 +228,7 @@ class Toolbar {
|
|
|
229
228
|
this.el = mountDom(jsx("div", {
|
|
230
229
|
className: "mm-toolbar"
|
|
231
230
|
}));
|
|
231
|
+
this.items = [...Toolbar.defaultItems];
|
|
232
232
|
this.register({
|
|
233
233
|
id: 'zoomIn',
|
|
234
234
|
title: 'Zoom in',
|
|
@@ -260,7 +260,7 @@ class Toolbar {
|
|
|
260
260
|
});
|
|
261
261
|
}
|
|
262
262
|
});
|
|
263
|
-
this.
|
|
263
|
+
this.render();
|
|
264
264
|
}
|
|
265
265
|
setBrand(show) {
|
|
266
266
|
this.showBrand = show;
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! markmap-toolbar v0.14.5-alpha.
|
|
1
|
+
/*! markmap-toolbar v0.14.5-alpha.21+fb81f2c | MIT License */
|
|
2
2
|
import { mountDom } from '@gera2ld/jsx-dom';
|
|
3
3
|
import { jsx, jsxs, Fragment } from '@gera2ld/jsx-dom/jsx-runtime';
|
|
4
4
|
|
|
@@ -59,7 +59,6 @@ class Toolbar {
|
|
|
59
59
|
static create(mm) {
|
|
60
60
|
const toolbar = new Toolbar();
|
|
61
61
|
toolbar.attach(mm);
|
|
62
|
-
toolbar.render();
|
|
63
62
|
return toolbar;
|
|
64
63
|
}
|
|
65
64
|
static icon(path, attrs = {}) {
|
|
@@ -83,6 +82,7 @@ class Toolbar {
|
|
|
83
82
|
this.el = mountDom(jsx("div", {
|
|
84
83
|
className: "mm-toolbar"
|
|
85
84
|
}));
|
|
85
|
+
this.items = [...Toolbar.defaultItems];
|
|
86
86
|
this.register({
|
|
87
87
|
id: 'zoomIn',
|
|
88
88
|
title: 'Zoom in',
|
|
@@ -114,7 +114,7 @@ class Toolbar {
|
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
116
|
});
|
|
117
|
-
this.
|
|
117
|
+
this.render();
|
|
118
118
|
}
|
|
119
119
|
setBrand(show) {
|
|
120
120
|
this.showBrand = show;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "markmap-toolbar",
|
|
3
|
-
"version": "0.14.5-alpha.
|
|
3
|
+
"version": "0.14.5-alpha.21+fb81f2c",
|
|
4
4
|
"description": "Extensible toolbar for markmap",
|
|
5
5
|
"author": "Gerald <gera2ld@live.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,12 +35,12 @@
|
|
|
35
35
|
"markmap-common": "*"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"markmap-common": "0.14.5-alpha.
|
|
39
|
-
"markmap-view": "0.14.5-alpha.
|
|
38
|
+
"markmap-common": "0.14.5-alpha.21+fb81f2c",
|
|
39
|
+
"markmap-view": "0.14.5-alpha.21+fb81f2c"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@babel/runtime": "^7.
|
|
42
|
+
"@babel/runtime": "^7.22.6",
|
|
43
43
|
"@gera2ld/jsx-dom": "^2.2.2"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "fb81f2cb688f400f17f911774539267219f639ce"
|
|
46
46
|
}
|