diff --git a/README.md b/README.md index 6e2ed57..7ad34ff 100644 --- a/README.md +++ b/README.md @@ -99,6 +99,10 @@ You now have ultimate flexibility over your Excalidraw templates using Templater ### 1.0.10 update [![Obsidian-Excalidraw 1.0.10 update](https://user-images.githubusercontent.com/14358394/117579017-60a58800-b0f1-11eb-8553-7820964662aa.jpg)](https://youtu.be/W7pWXGIe4rQ) +### 1.0.12 Freehand drawing +- now includes the new freehand drawing features from Excalidraw.com +- If you use Obsydian sync with Excalidraw sync, be sure to update all your devices to the new version, as the old excalidraw will simply delete the freehand drawn images and/or simply not show the drawing. + #### Temporary workaround - use it only if you are ok with hacky solutions - I implemented a temporary workaround to enable Obsidian Sync for Excalidraw files. This enables almost real-time two-way sync between your devices. You can draw on your iPad with your pencil, on your Android with your stylus, and the image will be available in Obsidian as well and vice versa. - By enabling this feature Excalidraw will sync drawings to a sync folder where drawings are stored in an ".md" file. This will allow Obsidian sync to synchronize Excalidraw drawings as well... Whenever your drawing changes, the corresponding file in the sync folder will also get updated. Similarly, whenever a file is synchronized to the sync folder by Obsidian sync, Excalidraw will sync it with the .excalidraw file in your vault. diff --git a/manifest.json b/manifest.json index 7688396..6fe5c88 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "obsidian-excalidraw-plugin", "name": "Excalidraw", - "version": "1.0.11", + "version": "1.0.12", "minAppVersion": "0.11.13", "description": "An Obsidian plugin to edit and view Excalidraw drawings", "author": "Zsolt Viczian", diff --git a/package.json b/package.json index b93cf74..ca13dda 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "license": "MIT", "dependencies": { "@excalidraw/excalidraw": "0.7.0", - "aakansha-excalidraw": "0.7.0-draft", + "aakansha-excalidraw": "0.8.0-bec34f2", "react": "17.0.1", "react-dom": "17.0.1", "react-scripts": "4.0.1" diff --git a/src/ExcalidrawView.ts b/src/ExcalidrawView.ts index 75f4729..492bcab 100644 --- a/src/ExcalidrawView.ts +++ b/src/ExcalidrawView.ts @@ -7,7 +7,8 @@ import { } from "obsidian"; import * as React from "react"; import * as ReactDOM from "react-dom"; -import Excalidraw, {exportToSvg, getSceneVersion} from "@excalidraw/excalidraw"; +//import Excalidraw, {exportToSvg, getSceneVersion} from "@excalidraw/excalidraw"; +import Excalidraw, {exportToSvg, getSceneVersion} from "aakansha-excalidraw"; import { ExcalidrawElement } from "@excalidraw/excalidraw/types/element/types"; import { AppState, diff --git a/versions.json b/versions.json index 53fc57e..c6cce99 100644 --- a/versions.json +++ b/versions.json @@ -1,3 +1,3 @@ { - "1.0.11": "0.11.13" + "1.0.12": "0.11.13" } diff --git a/yarn.lock b/yarn.lock index 5815342..d0da458 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2156,10 +2156,10 @@ "resolved" "https://registry.npmjs.org/@xtuc/long/-/long-4.2.2.tgz" "version" "4.2.2" -"aakansha-excalidraw@0.7.0-draft": - "integrity" "sha512-bafyy/qQES3E+uI7YHGuMzIh2kKlTKx+NYYpHwR5QhdAdDsA+Tru56Yglo+8cLCSDncN/KyEb1ffQlYJyBqQwA==" - "resolved" "https://registry.npmjs.org/aakansha-excalidraw/-/aakansha-excalidraw-0.7.0-draft.tgz" - "version" "0.7.0-draft" +"aakansha-excalidraw@0.8.0-bec34f2": + "integrity" "sha512-Bvz/vyh3KL6G7KaoIDVCDjHerR8thX3SRUEMZS2fqbzNTe5dT19u44ujonDPGP3YAcXRZ5RhsIO+rv16ucx76A==" + "resolved" "https://registry.npmjs.org/aakansha-excalidraw/-/aakansha-excalidraw-0.8.0-bec34f2.tgz" + "version" "0.8.0-bec34f2" "abab@^2.0.3", "abab@^2.0.5": "integrity" "sha512-9IK9EadsbHo6jLWIpxpR6pL0sazTXV6+SQv25ZB+F7Bj9mJNaOc4nCRabwd5M/JwmUa8idz6Eci6eKfJryPs6Q=="