diff --git a/package.json b/package.json index ed2235d..8c62cd5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "siyuan-jsdraw-plugin", - "version": "0.5.0", + "version": "0.5.2", "type": "module", "description": "Include a whiteboard for freehand drawing anywhere in your documents.", "repository": "https://git.massive.box/massivebox/siyuan-jsdraw-plugin", @@ -35,8 +35,8 @@ "vite-plugin-zip-pack": "^1.0.5" }, "dependencies": { - "@js-draw/material-icons": "^1.29.0", - "js-draw": "^1.29.0", + "@js-draw/material-icons": "^1.31.1", + "js-draw": "^1.31.1", "ts-serializable": "^4.2.0" } } diff --git a/plugin.json b/plugin.json index 959cd69..65997ac 100644 --- a/plugin.json +++ b/plugin.json @@ -2,7 +2,7 @@ "name": "siyuan-jsdraw-plugin", "author": "massivebox", "url": "https://git.massive.box/massivebox/siyuan-jsdraw-plugin", - "version": "0.5.0", + "version": "0.5.2", "minAppVersion": "3.0.12", "backends": [ "windows", diff --git a/src/index.ts b/src/index.ts index ae064b0..886b87b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -33,7 +33,7 @@ export default class DrawJSPlugin extends Plugin { void this.analytics.sendEvent('create'); const fileID = generateRandomString(); const syncID = generateTimeString() + '-' + generateRandomString(); - protyle.insert(getMarkdownBlock(fileID, syncID), true, false); + protyle.insert(getMarkdownBlock(fileID, syncID), false, false); (await EditorManager.create(fileID, this)).open(this); } }];