Skip to content

Commit

Permalink
refactor jsmind screenshot plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
hizzgdev committed Sep 29, 2023
1 parent db2fba9 commit c092df4
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 298 deletions.
3 changes: 2 additions & 1 deletion .config/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,10 @@ export default [
sourcemap: true,
globals: {
jsmind: 'jsMind',
'dom-to-image': 'domtoimage',
},
},
external: ['jsmind'],
external: ['jsmind', 'dom-to-image'],
plugins: [
cleanup({
comments: 'none',
Expand Down
2 changes: 1 addition & 1 deletion src/jsmind.plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function _apply(jm, options) {
}

export class Plugin {
// fn_init(jm, options)
// function fn_init(jm, options){ }
constructor(name, fn_init) {
if (!name) {
throw new Error('plugin must has a name');
Expand Down
Loading

0 comments on commit c092df4

Please sign in to comment.